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

Claim 12:
13. A method of responding to an input question to query a database, the method comprising:
receiving an input question in a natural language, using a processor;
generating a sequence of utterances from the input question;
generating a listing of possible Structured Query Language (SQL) queries from words of the input question;
generating a sequence of utterances of each possible SQL query;
for each possible SQL query, executing a paraphrase model that measures a probability of similarity between a sequence of utterances generated for that SQL query and the sequence of utterances generated from the input question;
determining which possible SQL query has the highest probability of similar meaning;
executing a query on the database using the SQL query determined to have the highest probability of similar meaning; and
providing a response to the input question by reporting a result of the executed SQL query.