Microsoft patents system to translate database queries using AI
Microsoft describes a method for converting database queries from one language to another when moving data between systems. It works by feeding the original query and detailed maps of the database structures into an AI model to generate the correct translated version.
In the filing’s own words
A method disclosed herein translates database queries between query languages and across databases that utilize different schemas. The method includes accessing knowledge graphs in response to receiving a query translation request. The knowledge graphs correspond to different databases and store schema elements relationships and value constraint information. The method further provides for constructing a metaprompt comprising the initial query, select portions of the knowledge graphs, and an instruction to use the knowledge graphs to help translate the initial query into the translated query.
What exactly they claim (claim 1)
1. A method for translating a database query, the method comprising: receiving a request to translate an initial query directed to a first database into a translated query directed to a second database that utilizes a different query language; in response to the request, accessing contextual data comprising knowledge graphs corresponding to the first database and the second database, the knowledge graphs identifying database schema elements, relationships between the database schema elements, and value constraint information pertaining to values stored within the first database and the second database; constructing a metaprompt comprising the initial query, the contextual data, and an instruction to use the contextual data to help translate the initial query into the translated query; and receiving the translated query as an output from a language model, the translated query being generated based on processing of the metaprompt.
Facts
- Company
- Microsoft (Microsoft Technology Licensing, LLC)
- Official title
- QUERY TRANSLATION SYSTEM TO COMPLEMENT CROSS-SCHEMA DATABASE MIGRATIONS
- Publication number
- US20260300282A1
- Application number
- 19089253
- Filed
- Mar 25, 2025
- Published
- Oct 1, 2026
- Inventors
- 1
- Claims
- 20
Classified under
G06F 16/2452 Physics & computingG06F 16/22 Physics & computingG06F 40/30 Physics & computingMore from Microsoft in AI & software
- Microsoft patents method to check AI answers against verified facts Oct 20, 2026
- Microsoft patents AI that presents PowerPoint slides for you Sep 3, 2026
- Microsoft patents method to check if LLM answers are based on real data Sep 10, 2026
- Microsoft patents system to blend multiple AI agents into one chat Oct 1, 2026
- Microsoft patents system that answers questions using your screen history Oct 15, 2026
Summaries are simplified from the filing’s own abstract and first claim. A patent filing is not a product announcement.
Patent data and drawings: U.S. Patent and Trademark Office (USPTO). Nebula is not affiliated with or endorsed by the USPTO.
