preprintarXiv (Cornell University)Aug 31, 2017GREEN OA

Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learning

Indexed inarxivdatacite

Abstract

A significant amount of the world's knowledge is stored in relational databases. However, the ability for users to retrieve facts from a database is limited due to a lack of understanding of query languages such as SQL. We propose Seq2SQL, a deep neural network for translating natural language questions to corresponding SQL queries. Our model leverages the structure of SQL queries to significantly reduce the output space of generated queries. Moreover, we use rewards from in-the-loop query execution over the database to learn a policy to generate unordered parts of the query, which we show are less suitable for optimization via cross entropy loss. In addition, we will publish WikiSQL, a dataset of 80654…

Citation impact

788
total citations
FWCI
Percentile
References
40
Citations per year

Authors

3

Topics & keywords

Keywords
  • Computer science
  • Reinforcement learning
  • Reinforcement
  • Natural (archaeology)
  • Natural language processing
  • Natural language
  • Artificial intelligence
  • Psychology
No related works found for this paper.