PatentRef

Data version 20261117.2, as of 2026-11-17. Free beta.

US 10872083

Constructing structured database query language statements from natural language questions

Granted 2020-12-22 · Filed 2018-10-31 · Application 16/177,026 · Utility · Kind B2 · Prior publication US 2020/0134032 A1, 2020-04-30

Assignee as printed
  • Microsoft Technology Licensing, LLC, Redmond, WA (US)
Inventors
Yishu Lin, Mountain View, CA (US); Wenxuan Gao, Santa Clara, CA (US); Weidong Zhang, San Jose, CA (US); Jimmy Hong, Belmont, CA (US); Kapil Surlaker, Mountain View, CA (US)
CPC, current
G06F16/24522; G06F16/2246; G06F16/243; G06F16/2456; G06F16/284

Abstract

Computer-implemented techniques for constructing structured database query language statements from natural language questions are disclosed. In some embodiments, a knowledge graph-based approach is employed to construct a structured database query language statement such as, for example, a Structure Query Language (SQL) statement, from a natural language question. The approach encompasses a domain knowledge graph model and a database schema wiring model. The domain knowledge graph model represents domain-specific knowledge about the underlying database data in the form of a graph having nodes and directed edges between the nodes. The database schema wiring model maps routes in the domain knowledge graph to database schema elements. The techniques allow a natural language interface system to accurately translate domain-specific natural language questions posed by users to structured database query language statements that can be executed against a structured database to answer the natural language question.

Claims

21 claims · independent 1, 8 and 15

The claims as the USPTO long-text file prints them (text data version 20261117.3), split by PatentRef's claim parser (structure version 2): each claim's opening words, then one row for each element with its character offsets in the claim text, and the dependent claims under the claim they refer to. The split describes the text; it is not a reading of it. Each claim and each element has a link of its own. How the links are made.

Claim 1

Independent claim.

1. A method, comprising:

  1. Claim 1, element e1obtaining a parse tree of a natural language question; 25–78
  2. Claim 1, element e2based on the parse tree, identifying a plurality of routes in a domain knowledge graph, each route of the plurality of routes encompassing one or more respective nodes of the domain knowledge graph; 80–277
  3. Claim 1, element e3accessing a predefined set of a plurality of wirings to determine a plurality of coverage wirings for the plurality of routes, each coverage wiring of the plurality of coverage wirings being in the predefined set of the plurality of wirings, each coverage wiring of the plurality of coverage wirings mapping a route in the plurality of routes to a column pair, the column pair pairing a primary key of a respective structured database table with a non-primary key column of the respective structured database table; 279–793
  4. Claim 1, element e4constructing a structured database query language statement based on the plurality of coverage wirings; and 795–897
  5. Claim 1, element e5causing the structured database query language statement to be executed against a structured database.903–1004
6 dependent claims: 2 to 7 (2, 3, 4, 5, 6, 7 on claim 1)

Claim 2

Depends on claim 1.

2. The method of claim 1 , wherein

  1. Claim 2, element e1the structured database query language statement is a Structured Query Language (SQL) statement and the structured database is a relational database.35–183

Claim 3

Depends on claim 1.

3. The method of claim 1 , wherein

  1. Claim 3, element e1the identifying the plurality of routes in the domain knowledge graph based on the parse tree is based on: 35–140
  2. Claim 3, element e2traversing nodes of the parse tree; 142–176
  3. Claim 3, element e3matching nodes of the parse tree to nodes of the domain knowledge graph; and 178–249
  4. Claim 3, element e4identifying nodes in the domain knowledge graph matched to nodes of the parse tree that are connected in the domain knowledge graph.255–386

Claim 4

Depends on claim 1.

4. The method of claim 1 , wherein

  1. Claim 4, element e1the constructing the structured database query language statement based on the plurality of coverage wirings is based on: 35–155
  2. Claim 4, element e2identifying a first route in the domain knowledge graph associated with a first coverage wiring of the plurality of coverage wirings; 157–289
  3. Claim 4, element e3identifying a second route in the domain knowledge graph associated with a second coverage wiring of the plurality of coverage wirings; 291–425
  4. Claim 4, element e4determining that the first route ends at a same node in the domain knowledge graph that the second route starts from; and 427–543
  5. Claim 4, element e5constructing a join relation for inclusion in the structured database query language statement based on: 549–652
  6. Claim 4, element e6(a) the non-primary key column of the column pair of the first coverage wiring and 658–732
  7. Claim 4, element e7(b) the primary key of the column pair of the second coverage wiring.741–805

Claim 5

Depends on claim 1.

5. The method of claim 1 , wherein

  1. Claim 5, element e1the identifying the plurality of routes in the domain knowledge graph based on the parse tree is based on: 35–140
  2. Claim 5, element e2traversing nodes of the parse tree; 142–176
  3. Claim 5, element e3matching nodes of the parse tree to nodes of the domain knowledge graph; 178–249
  4. Claim 5, element e4automatically inferring a particular node of the domain knowledge graph based on nodes of the domain knowledge graph to which nodes of the parse tree are matched; 251–412
  5. Claim 5, element e5based on the automatically inferring the particular node, adding the particular node to a particular route of the plurality of routes based on the automatically inferring; 414–584
  6. Claim 5, element e6wherein, after the adding the particular node to the particular route, the particular route comprises a first node of the domain knowledge graph, a second node of the domain knowledge graph, and the particular node; 586–800
  7. Claim 5, element e7wherein the first node of the domain knowledge graph is matched to a node of the parse tree; 802–893
  8. Claim 5, element e8wherein the second node of the domain knowledge graph is matched to a node of the parse tree; and 895–987
  9. Claim 5, element e9wherein the particular node of the domain knowledge graph is not matched to a node of the parse tree but is automatically inferred to be part of the particular route based on connecting the first node and the second node in the domain knowledge graph via the particular node.993–1267

Claim 6

Depends on claim 1.

6. The method of claim 1 , wherein

  1. Claim 6, element e1the plurality of routes is a first plurality of routes; 35–89
  2. Claim 6, element e2wherein the natural language question is a first natural language question; and 91–165
  3. Claim 6, element e3the identifying the plurality of routes in the domain knowledge graph for the first natural language question based on the parse tree is based on: 171–316
  4. Claim 6, element e4obtaining a second plurality of routes in the domain knowledge graph determined for a second natural language question that occurred prior to the first natural language question in a conversation; 318–513
  5. Claim 6, element e5identifying one or more preliminary routes in the domain knowledge graph for the first natural language question; and 515–627
  6. Claim 6, element e6adding a node from a route of the one or more preliminary routes for the first natural language question to a route of the second plurality of routes for the second natural language question to form a route of the first plurality of routes for the first natural language question.633–912

Claim 7

Depends on claim 1.

7. The method of claim 1 , wherein

  1. Claim 7, element e1each node of the domain knowledge graph represents an entity, an action, or a property; and 35–121
  2. Claim 7, element e2wherein a node of the domain knowledge graph is associated with a lexicon, the lexicon for the node specifying a name or alias for the node.127–266

Claim 8

Independent claim.

8. One or more non-transitory computer-readable media storing one or more programs for execution by a computing system having one or more processors and storage media, the one or more programs comprising

  1. Claim 8, element e1instructions configured for: 204–231
  2. Claim 8, element e2obtaining a parse tree of a natural language question; 233–286
  3. Claim 8, element e3based on the parse tree, identifying a plurality of routes in a domain knowledge graph, each route of the plurality of routes encompassing one or more respective nodes of the domain knowledge graph; 288–485
  4. Claim 8, element e4accessing a predefined set of a plurality of wirings to determine a plurality of coverage wirings for the plurality of routes, each coverage wiring of the plurality of coverage wirings being in the predefined set of the plurality of wirings, each coverage wiring of the plurality of coverage wirings mapping a route in the plurality of routes to a column pair, the column pair pairing a primary key of a respective structured database table with a non-primary key column of the respective structured database table; 487–1001
  5. Claim 8, element e5constructing a structured database query language statement based on the plurality of coverage wirings; and 1003–1105
  6. Claim 8, element e6causing the structured database query language statement to be executed against a structured database.1111–1212
6 dependent claims: 9 to 14 (9, 10, 11, 12, 13, 14 on claim 8)

Claim 9

Depends on claim 8.

9. The one or more non-transitory computer-readable media of claim 8 , wherein

  1. Claim 9, element e1the structured database query language statement is a Structured Query Language (SQL) statement and the structured database is a relational database.79–227

Claim 10

Depends on claim 8.

10. The one or more non-transitory computer-readable media of claim 8 , wherein

  1. Claim 10, element e1the identifying the plurality of routes in the domain knowledge graph based on the parse tree is based on: 80–185
  2. Claim 10, element e2traversing nodes of the parse tree; 187–221
  3. Claim 10, element e3matching nodes of the parse tree to nodes of the domain knowledge graph; and 223–294
  4. Claim 10, element e4identifying nodes in the domain knowledge graph matched to nodes of the parse tree that are connected in the domain knowledge graph.300–431

Claim 11

Depends on claim 8.

11. The one or more non-transitory computer-readable media of claim 8 , wherein

  1. Claim 11, element e1the constructing the structured database query language statement based on the plurality of coverage wirings is based on: 80–200
  2. Claim 11, element e2identifying a first route in the domain knowledge graph associated with a first coverage wiring of the plurality of coverage wirings; 202–334
  3. Claim 11, element e3identifying a second route in the domain knowledge graph associated with a second coverage wiring of the plurality of coverage wirings; 336–470
  4. Claim 11, element e4determining that the first route ends at a same node in the domain knowledge graph that the second route starts from; and 472–588
  5. Claim 11, element e5constructing a join relation for inclusion in the structured database query language statement based on: 594–697
  6. Claim 11, element e6(a) the non-primary key column of the column pair of the first coverage wiring and 703–777
  7. Claim 11, element e7(b) the primary key of the column pair of the second coverage wiring.786–850

Claim 12

Depends on claim 8.

12. The one or more non-transitory computer-readable media of claim 8 , wherein

  1. Claim 12, element e1the identifying the plurality of routes in the domain knowledge graph based on the parse tree is based on: 80–185
  2. Claim 12, element e2traversing nodes of the parse tree; 187–221
  3. Claim 12, element e3matching nodes of the parse tree to nodes of the domain knowledge graph; 223–294
  4. Claim 12, element e4automatically inferring a particular node of the domain knowledge graph based on nodes of the domain knowledge graph to which nodes of the parse tree are matched; 296–457
  5. Claim 12, element e5based on the automatically inferring the particular node, adding the particular node to a particular route of the plurality of routes based on the automatically inferring; 459–629
  6. Claim 12, element e6wherein, after the adding the particular node to the particular route, the particular route comprises a first node of the domain knowledge graph, a second node of the domain knowledge graph, and the particular node; 631–845
  7. Claim 12, element e7wherein the first node of the domain knowledge graph is matched to a node of the parse tree; 847–938
  8. Claim 12, element e8wherein the second node of the domain knowledge graph is matched to a node of the parse tree; and 940–1032
  9. Claim 12, element e9wherein the particular node of the domain knowledge graph is not matched to a node of the parse tree but is automatically inferred to be part of the particular route based on connecting the first node and the second node in the domain knowledge graph via the particular node.1038–1312

Claim 13

Depends on claim 8.

13. The one or more non-transitory computer-readable media of claim 8 , wherein

  1. Claim 13, element e1the plurality of routes is a first plurality of routes; 80–134
  2. Claim 13, element e2wherein the natural language question is a first natural language question; and 136–210
  3. Claim 13, element e3the identifying the plurality of routes in the domain knowledge graph for the first natural language question based on the parse tree is based on: 216–361
  4. Claim 13, element e4obtaining a second plurality of routes in the domain knowledge graph determined for a second natural language question that occurred prior to the first natural language question in a conversation; 363–558
  5. Claim 13, element e5identifying one or more preliminary routes in the domain knowledge graph for the first natural language question; and 560–672
  6. Claim 13, element e6adding a node from a route of the one or more preliminary routes for the first natural language question to a route of the second plurality of routes for the second natural language question to form a route of the first plurality of routes for the first natural language question.678–957

Claim 14

Depends on claim 8.

14. The one or more non-transitory computer-readable media of claim 8 , wherein

  1. Claim 14, element e1each node of the domain knowledge graph represents an entity, an action, or a property; and 80–166
  2. Claim 14, element e2wherein a node of the domain knowledge graph is associated with a lexicon, the lexicon for the node specifying a name or alias for the node.172–311

Claim 15

Independent claim.

15. A computing system, comprising:

  1. Claim 15, element e1one or more processors; 36–58
  2. Claim 15, element e2storage media; and 60–73
  3. Claim 15, element e3one or more programs stored in the storage media and configured for execution by the one or more processors, the one or more programs comprising instructions configured for: 79–251
  4. Claim 15, element e4obtaining a parse tree of a natural language question; 253–306
  5. Claim 15, element e5based on the parse tree, identifying a plurality of routes in a domain knowledge graph, each route of the plurality of routes encompassing one or more respective nodes of the domain knowledge graph; 308–505
  6. Claim 15, element e6accessing a predefined set of a plurality of wirings to determine a plurality of coverage wirings for the plurality of routes, each coverage wiring of the plurality of coverage wirings being in the predefined set of the plurality of wirings, each coverage wiring of the plurality of coverage wirings mapping a route in the plurality of routes to a column pair, the column pair pairing a primary key of a respective structured database table with a non-primary key column of the respective structured database table; 507–1021
  7. Claim 15, element e7constructing a structured database query language statement based on the plurality of coverage wirings; and 1023–1125
  8. Claim 15, element e8causing the structured database query language statement to be executed against a structured database.1131–1232
6 dependent claims: 16 to 21 (16, 17, 18, 19, 20, 21 on claim 15)

Claim 16

Depends on claim 15.

16. The computing system of claim 15 , wherein

  1. Claim 16, element e1the structured database query language statement is a Structured Query Language (SQL) statement and the structured database is a relational database.47–195

Claim 17

Depends on claim 15.

17. The computing system of claim 15 , wherein

  1. Claim 17, element e1the identifying the plurality of routes in the domain knowledge graph based on the parse tree is based on: 47–152
  2. Claim 17, element e2traversing nodes of the parse tree; 154–188
  3. Claim 17, element e3matching nodes of the parse tree to nodes of the domain knowledge graph; and 190–261
  4. Claim 17, element e4identifying nodes in the domain knowledge graph matched to nodes of the parse tree that are connected in the domain knowledge graph.267–398

Claim 18

Depends on claim 15.

18. The computing system of claim 15 , wherein

  1. Claim 18, element e1the constructing the structured database query language statement based on the plurality of coverage wirings is based on: 47–167
  2. Claim 18, element e2identifying a first route in the domain knowledge graph associated with a first coverage wiring of the plurality of coverage wirings; 169–301
  3. Claim 18, element e3identifying a second route in the domain knowledge graph associated with a second coverage wiring of the plurality of coverage wirings; 303–437
  4. Claim 18, element e4determining that the first route ends at a same node in the domain knowledge graph that the second route starts from; and 439–555
  5. Claim 18, element e5constructing a join relation for inclusion in the structured database query language statement based on: 561–664
  6. Claim 18, element e6(a) the non-primary key column of the column pair of the first coverage wiring and 670–744
  7. Claim 18, element e7(b) the primary key of the column pair of the second coverage wiring.753–817

Claim 19

Depends on claim 15.

19. The computing system of claim 15 , wherein

  1. Claim 19, element e1the identifying the plurality of routes in the domain knowledge graph based on the parse tree is based on: 47–152
  2. Claim 19, element e2traversing nodes of the parse tree; 154–188
  3. Claim 19, element e3matching nodes of the parse tree to nodes of the domain knowledge graph; 190–261
  4. Claim 19, element e4automatically inferring a particular node of the domain knowledge graph based on nodes of the domain knowledge graph to which nodes of the parse tree are matched; 263–424
  5. Claim 19, element e5based on the automatically inferring the particular node, adding the particular node to a particular route of the plurality of routes based on the automatically inferring; 426–596
  6. Claim 19, element e6wherein, after the adding the particular node to the particular route, the particular route comprises a first node of the domain knowledge graph, a second node of the domain knowledge graph, and the particular node; 598–812
  7. Claim 19, element e7wherein the first node of the domain knowledge graph is matched to a node of the parse tree; 814–905
  8. Claim 19, element e8wherein the second node of the domain knowledge graph is matched to a node of the parse tree; and 907–999
  9. Claim 19, element e9wherein the particular node of the domain knowledge graph is not matched to a node of the parse tree but is automatically inferred to be part of the particular route based on connecting the first node and the second node in the domain knowledge graph via the particular node.1005–1279

Claim 20

Depends on claim 15.

20. The computing system of claim 15 , wherein

  1. Claim 20, element e1the plurality of routes is a first plurality of routes; 47–101
  2. Claim 20, element e2wherein the natural language question is a first natural language question; and 103–177
  3. Claim 20, element e3the identifying the plurality of routes in the domain knowledge graph for the first natural language question based on the parse tree is based on: 183–328
  4. Claim 20, element e4obtaining a second plurality of routes in the domain knowledge graph determined for a second natural language question that occurred prior to the first natural language question in a conversation; 330–525
  5. Claim 20, element e5identifying one or more preliminary routes in the domain knowledge graph for the first natural language question; and 527–639
  6. Claim 20, element e6adding a node from a route of the one or more preliminary routes for the first natural language question to a route of the second plurality of routes for the second natural language question to form a route of the first plurality of routes for the first natural language question.645–924

Claim 21

Depends on claim 15.

21. The computing system of claim 15 , wherein

  1. Claim 21, element e1each node of the domain knowledge graph represents an entity, an action, or a property; and 47–133
  2. Claim 21, element e2wherein a node of the domain knowledge graph is associated with a lexicon, the lexicon for the node specifying a name or alias for the node.139–278

Status

active

As of 2026-11-17, the USPTO record for US 10872083 shows no unresolved maintenance-fee lapse, and the term end computed from the dates in that record is 2039-03-15 (20 years from filing, plus 135 days of patent term adjustment), a date not yet passed (data version 20261117.2).

Basis
term_20y · pta_days:135 (20 years from filing, plus 135 days of patent term adjustment)
Term end
2039-03-15 Computed from the dates in the USPTO record
Fee lapse
none on record
Reinstatement
none on record; reinstatement_possible: false, not lapsed
As of
2026-11-17
Data version
20261117.2

A fact about the record with its basis and its as-of date, not legal advice.

Citations

References cited on the grant: 1 US patent document · Cited by: 67 US patents in this data · Lists through the API: /api/v1/patent/us_patent_citation/10872083/ (needs a free key, as the links under Get this as data)

Family outside the US

Google Patents Public Datasets lists no publication outside the US in this patent's family (read 2026-10-15).

This patent's family on USPTO Global Dossier

Family data from Google Patents Public Datasets, used under CC BY 4.0.

Record JSON
{
 "patent_id": "10872083",
 "status": "active",
 "basis": [
  "term_20y",
  "pta_days:135"
 ],
 "reinstatement_possible": false,
 "reinstatement_basis": "not lapsed",
 "expiry_date_estimated": "2039-03-15",
 "lapse_date": null,
 "reinstated_date": null,
 "as_of": "2026-11-17",
 "data_version": "20261117.2",
 "catalog_data_version": "20261117.2",
 "permalink": "https://patentref.io/p/10872083?v=20261117.2",
 "next_steps": [
  {
   "kind": "record",
   "url": "https://patentref.io/p/10872083?v=20261117.2",
   "audience": "human"
  },
  {
   "kind": "patent",
   "url": "https://patentref.io/api/v1/patent/10872083/",
   "audience": "agent"
  },
  {
   "kind": "fee_events",
   "tool": "uspto_patent_center",
   "url": "https://patentcenter.uspto.gov/applications?patentNumber=10872083",
   "audience": "agent"
  }
 ]
}

Get this as data

These four links need a free key (1,000 requests a month). Opened in a browser, which sends no key, they answer 403. Get a free key on the sign-up page, then send it in the X-Api-Key header. To see the shape of an answer without a key, open Try it.

Elsewhere

Cite this record

https://patentref.io/p/10872083?v=20261117.2

Data 20261117.2 · as of 2026-11-17