Patent ID: 11966389
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 16:
17. A computer system, comprising:
at least one processor; and
a memory device storing machine-readable instructions permitting the at least one processor to execute a method for responding to an input question to query a database accessible to the computer system, wherein the method comprises:
receiving an input question presented in a natural language;
enumerating at least one possible Structured Query Language (SQL) query from the received input question;
using a paraphrasing model that is pre-trained to rank the enumerated at least one possible SQL query based on a similarity and executing a highest-ranked SQL query against the database to search the database; and

providing a result of the executing of the highest-ranked SQL query as a response to the input question,
wherein the paraphrasing model comprises a
pre-trained Long Short-Term Memory Recurrent Neural Network (LSTM RNN) that
receives two sentences as input and determines a similarity of the two sentences,
wherein one sentence of the two sentences comprises utterances generated from the input question and the other sentence comprises utterances generated from a possible SQL query.