Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representation

By Jiaqi Guo, Zecheng Zhan, Yan Gao, Yan Xiao, Jian-Guang Lou, Ting Liu, Dongmei Zhang. 2019

493 citations recorded by the source corpus.

We present a neural approach called IRNet for complex and cross-domain Text-to-SQL. IRNet aims to address two challenges: 1) the mismatch between intents expressed in natural language (NL) and the implementation details in SQL; 2) the challenge in predicting columns caused by the large number of out-of-domain words. Instead of end-to-end synthesizing a SQL query, IRNet decomposes the synthesis process into three phases. In the first phase, IRNet performs a schema linking over a question and a database schema. Then, IRNet adopts a grammar-based neural model to synthesize a SemQL query which is an intermediate representation that we design to bridge NL and SQL. Finally, IRNet deterministically infers a SQL query from the synthesized SemQL query with domain knowledge. On the challenging Text-to-SQL benchmark Spider, IRNet achieves 46.7% accuracy, obtaining 19.5% absolute improvement over previous state-of-the-art approaches. At the time of writing, IRNet achieves the first position on the Spider leaderboard.

Subfields: Artificial Intelligence, Information Systems, Natural Language Processing

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Luke S. Zettlemoyer
  2. Jonathan Berant
  3. Graham Neubig
  4. Mohit Bansal
  5. Percy Liang
  6. Caiming Xiong
  7. Hannaneh Hajishirzi
  8. Jianfeng Gao

In Information Systems

  1. Jonathan Berant
  2. Graham Neubig
  3. Luke S. Zettlemoyer
  4. Wen-tau Yih
  5. Dragomir R. Radev
  6. Tao Yu
  7. Caiming Xiong
  8. Xi Victoria Lin

In Natural Language Processing

  1. Luke S. Zettlemoyer
  2. Jonathan Berant
  3. Mohit Bansal
  4. Graham Neubig
  5. Percy Liang
  6. Caiming Xiong
  7. Richard Socher
  8. Hannaneh Hajishirzi

Citations in the corpus