Editing-Based SQL Query Generation for Cross-Domain Context-Dependent Questions

By Rui Zhang, Tao Yu, Heyang Er, Sungrok Shim, Eric Xue, Xi Victoria Lin, Tianze Shi, Caiming Xiong, Richard Socher, Dragomir R. Radev. 2019

161 citations recorded by the source corpus.

We focus on the cross-domain context-dependent text-to-SQL generation task. Based on the observation that adjacent natural language questions are often linguistically dependent and their corresponding SQL queries tend to overlap, we utilize the interaction history by editing the previous predicted query to improve the generation quality. Our editing mechanism views SQL as sequences and reuses generation results at the token level in a simple manner. It is flexible to change individual tokens and robust to error propagation. Furthermore, to deal with complex table structures in different domains, we employ an utterance-table encoder and a table-aware decoder to incorporate the context of the user utterance and the table schema. We evaluate our approach on the SParC dataset and demonstrate the benefit of editing compared with the state-of-the-art baselines which generate SQL from scratch. Our code is available at https://github.com/ryanzhumich/sparc_atis_pytorch.

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

In Information Systems

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

In Natural Language Processing

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

Citations in the corpus