Get the newsletter
IBM · AI / ML · Filed Jan 3, 2025 · USPTO published Jul 9, 2026 · Jul 9 release

IBM Patents a System That Turns Plain-English Questions Into Database Queries

Most company databases are locked behind a programming language almost nobody outside IT actually knows. IBM's new patent describes a system that lets anyone ask a question in plain English and get back a real database answer.

IBM Patent: Plain-English Questions Converted to SQL, figure from US 2026/0195324 A1
Figure from the official USPTO publication.All 12 drawings ↓
Publication number
US 2026/0195324 A1(US20260195324A1)
Applicant
International Business Machines Corporation
Filed · Published
Jan 3, 2025 · Jul 9, 2026
Inventors
Rui Han, Yuan Yuan Ding, Qi Liang Zhou, Yong Wang, Deng Xin Luo
Status when we published
Approved; patent expected soon
Document
26 claims
US classification
707/705
Examiner
ALAM, SHAHID AL (Art Unit 2161)

How IBM's AI translates plain questions into database code

Imagine your company's sales data lives in a giant database. You want to know which products sold best in the Midwest last quarter among customers who placed more than three orders. Getting that answer normally means asking a developer to write a formal query in a language called SQL, which looks nothing like plain English and takes time to get right.

IBM's patent describes a system where you just type your question the way you'd say it out loud. An AI model breaks that question into smaller pieces, then searches through a structured map of your database to figure out exactly what data fields and relationships are needed. It uses a search technique borrowed from game AI (the same family of methods used in chess and Go engines) to find the most reliable path to the right answer.

The result is a proper SQL command, generated automatically, that runs against your real database and hands you back actual results. No developer required, no waiting.

How the tree search picks the right SQL query path

The patent covers a pipeline with four main stages:

  • Breaking down the question: A machine learning model reads the natural-language input and splits it into multiple sub-queries (smaller, more specific questions the system can work with individually).
  • Searching a knowledge tree: The system stores information about the database's structure as a tree, where each branch represents a data field, a relationship between fields, or a calculation. It searches this tree using Monte Carlo Tree Search (MCTS), a probabilistic technique (originally developed for board-game AI) that explores many possible paths and picks the one with the highest confidence score. Think of it as the system playing out thousands of possible "moves" to decide which database fields to use.
  • Assembling the SQL command: Once the right fields and relationships are identified, the system stitches them together into a valid SQL query, a line of code that can actually run against a database.
  • Returning results: The query runs on the database and the results come back to whatever application the user was working in.

The MCTS angle is the technical centerpiece here. Standard approaches to natural-language-to-SQL often fail on complex, multi-part questions because they try to map the whole question at once. Breaking it into sub-queries and searching a tree of options gives the system more flexibility with complicated requests.

What this means for business users who don't know SQL

SQL is one of the most widely used tools in business intelligence, but it creates a hard wall between the people who have data questions and the people who can actually retrieve answers. Systems like this one could let analysts, managers, or even customer-service reps query databases directly from whatever interface they're already using, without writing a single line of code.

IBM has a large enterprise software and data business (think Db2, Watson, and its consulting arm), so this kind of technology fits squarely into tools companies pay for to make their data more accessible. The MCTS approach also suggests IBM is targeting the harder end of the problem: vague, multi-part questions that simpler AI-to-SQL tools tend to fumble.

Source: US 2026/0195324 A1 at the USPTO (PDF). Full patent text and figures are in the official publication.

Get our take in your Top Stories

Liked this breakdown? Add Patentlyze as a preferred source on Google, and our plain-English take shows up more often in your Top Stories the next time IBM patent news breaks.

There are more where this came from

We read the new patents from Big Tech, carmakers and more and send you the ones worth knowing. Plain English, free, every week.

The drawings · 12 sheets

12 drawing sheets from US 2026/0195324 A1 · click any drawing to enlarge

IBM Patents a System That Turns Plain-English Questions Into Database Queries patent drawing, sheet 1
Sheet 1
IBM Patents a System That Turns Plain-English Questions Into Database Queries patent drawing, sheet 2
Sheet 2
IBM Patents a System That Turns Plain-English Questions Into Database Queries patent drawing, sheet 3
Sheet 3
IBM Patents a System That Turns Plain-English Questions Into Database Queries patent drawing, sheet 4
Sheet 4
IBM Patents a System That Turns Plain-English Questions Into Database Queries patent drawing, sheet 5
Sheet 5
IBM Patents a System That Turns Plain-English Questions Into Database Queries patent drawing, sheet 6
Sheet 6
IBM Patents a System That Turns Plain-English Questions Into Database Queries patent drawing, sheet 7
Sheet 7
IBM Patents a System That Turns Plain-English Questions Into Database Queries patent drawing, sheet 8
Sheet 8
Show the other 4 sheets
IBM Patents a System That Turns Plain-English Questions Into Database Queries patent drawing, sheet 9
Sheet 9
IBM Patents a System That Turns Plain-English Questions Into Database Queries patent drawing, sheet 10
Sheet 10
IBM Patents a System That Turns Plain-English Questions Into Database Queries patent drawing, sheet 11
Sheet 11
IBM Patents a System That Turns Plain-English Questions Into Database Queries patent drawing, sheet 12
Sheet 12
Patent filing page