SyntaxSQLNet: Syntax Tree Networks for Complex and Cross-Domain Text-to-SQL Task

By Tao Yu, Michihiro Yasunaga, Kai-Chou Yang, Rui Zhang, Dongxu Wang, Zifan Li, Dragomir R. Radev. 2018

229 citations recorded by the source corpus.

Most existing studies in text-to-SQL tasks do not require generating complex SQL queries with multiple clauses or sub-queries, and generalizing to new, unseen databases. In this paper we propose SyntaxSQLNet, a syntax tree network to address the complex and cross-domain text-to-SQL generation task. SyntaxSQLNet employs a SQL specific syntax tree-based decoder with SQL generation path history and table-aware column attention encoders. We evaluate SyntaxSQLNet on a new large-scale text-to-SQL corpus containing databases with multiple tables and complex SQL queries containing multiple SQL clauses and nested queries. We use a database split setting where databases in the test set are unseen during training. Experimental results show that SyntaxSQLNet can handle a significantly greater number of complex SQL examples than prior work, outperforming the previous state-of-the-art model by 9.5% in exact matching accuracy. To our knowledge, we are the first to study this complex text-to-SQL task. Our task and models with the latest updates are available at https://yale-lily.github.io/seq2sql/spider.

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. Percy Liang
  2. Jonathan Berant
  3. Luke S. Zettlemoyer
  4. Mohit Bansal
  5. Caiming Xiong
  6. Richard Socher
  7. Jianfeng Gao
  8. Graham Neubig

In Information Systems

  1. Jonathan Berant
  2. Tao Yu
  3. Xinyun Chen
  4. Percy Liang
  5. Wen-tau Yih
  6. Michihiro Yasunaga
  7. Dragomir R. Radev
  8. Xi Victoria Lin

In Natural Language Processing

  1. Jonathan Berant
  2. Percy Liang
  3. Luke S. Zettlemoyer
  4. Wen-tau Yih
  5. Caiming Xiong
  6. Richard Socher
  7. Mohit Bansal
  8. Jianfeng Gao

Citations in the corpus