mlsanityData to 7 Oct 2026

Prefix-to-SQL: Text-to-SQL Generation from Incomplete User Questions

arXiv 2109.13066 ↗First posted 15 Sep 2021cs.CL cs.AI cs.DBcited by 2

Not on the map. Why?

Abstract (arXiv)

Existing text-to-SQL research only considers complete questions as the input, but lay-users might strive to formulate a complete question. To build a smarter natural language interface to database systems (NLIDB) that also processes incomplete questions, we propose a new task, prefix-to-SQL which takes question prefix from users as the input and predicts the intended SQL. We construct a new benchmark called PAGSAS that contains 124K user question prefixes and the intended SQL for 5 sub-tasks Advising, GeoQuery, Scholar, ATIS, and Spider. Additionally, we propose a new metric SAVE to measure how much effort can be saved by users. Experimental results show that PAGSAS is challenging even for strong baseline models such as T5. As we observe the difficulty of prefix-to-SQL is related to the number of omitted tokens, we incorporate curriculum learning of feeding examples with an increasing number of omitted tokens. This improves scores on various sub-tasks by as much as 9% recall scores on sub-task GeoQuery in PAGSAS.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 24 of its 71 references that are in the map. First posted on arXiv 15 Sep 2021.

Builds on

24 of 71 references.

References · 24

  1. 2017Attention Is All You Needcited by 59,932
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  5. 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
  6. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 420
  7. 2017OpenNMT: Open-source Toolkit for Neural Machine Translationcited by 251
  8. 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
  9. 2020GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsingcited by 171
  10. 2020Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?cited by 147
  11. 2018Improving Text-to-SQL Evaluation Methodologycited by 133
  12. 2021LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relationscited by 119
12 more
  1. 2018Coarse-to-Fine Decoding for Neural Semantic Parsingcited by 110
  2. 2017Learning a Neural Semantic Parser from User Feedbackcited by 98
  3. 2020SmBoP: Semi-autoregressive Bottom-up Semantic Parsingcited by 97
  4. 2018TRANX: A Transition-based Neural Abstract Syntax Parser for Semantic Parsing and Code Generationcited by 88
  5. 2019Representing Schema Structure with Graph Neural Networks for Text-to-SQL Parsingcited by 74
  6. 2015A Hierarchical Recurrent Encoder-Decoder For Generative Context-Aware Query Suggestioncited by 68
  7. 2020Learning Contextual Representations for Semantic Parsing with Generation-Augmented Pre-Trainingcited by 65
  8. 2021Text-to-SQL in the Wild: A Naturally-Occurring Dataset Based on Stack Exchange Datacited by 43
  9. 2019Model-based Interactive Semantic Parsing: A Unified Framework and A Text-to-SQL Case Studycited by 40
  10. 2019Semantic Parsing with Dual Learningcited by 28
  11. 2021Relation Aware Semi-autoregressive Semantic Parsing for NL2SQLcited by 8
  12. 2021GP: Context-free Grammar Pre-training for Text-to-SQL Parserscited by 5

Built on by

Cited by year

Citing papers per year: 2022: 2.

2 papers.