T5QL: Taming language models for SQL generation
Not on the map. Why?
Abstract (arXiv)
Automatic SQL generation has been an active research area, aiming at streamlining the access to databases by writing natural language with the given intent instead of writing SQL. Current SOTA methods for semantic parsing depend on LLMs to achieve high predictive accuracy on benchmark datasets. This reduces their applicability, since LLMs requires expensive GPUs. Furthermore, SOTA methods are ungrounded and thus not guaranteed to always generate valid SQL. Here we propose T5QL, a new SQL generation method that improves the performance in benchmark datasets when using smaller LMs, namely T5-Base, by 13pp when compared against SOTA methods. Additionally, T5QL is guaranteed to always output valid SQL using a context-free grammar to constrain SQL generation. Finally, we show that dividing semantic parsing in two tasks, candidate SQLs generation and candidate re-ranking, is a promising research avenue that can reduce the need for large LMs.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 28 of its 38 references that are in the map. First posted on arXiv 21 Sep 2022.
Builds on
28 of 38 references.
References · 28
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 420
- 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 402
- 2020Autoregressive Entity Retrievalcited by 333
- 2022UnifiedSKG: Unifying and Multi-Tasking Structured Knowledge Grounding with Text-to-Text Language Modelscited by 231
- 2020IntelliCode Compose: Code Generation Using Transformercited by 225
- 2019CoSQL: A Conversational Text-to-SQL Challenge Towards Cross-Domain Natural Language Interfaces to Databasescited by 180
- 2020GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsingcited by 171
- 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
- 2020Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?cited by 147
16 more
- 2020Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsingcited by 133
- 2020SmBoP: Semi-autoregressive Bottom-up Semantic Parsingcited by 97
- 2021RnG-KBQA: Generation Augmented Iterative Ranking for Knowledge Base Question Answeringcited by 86
- 2016Neuro-Symbolic Program Synthesiscited by 84
- 2022RankGen: Improving Text Generation with Large Ranking Modelscited by 72
- 2021Natural SQL: Making SQL Easier to Infer from Natural Language Specificationscited by 66
- 2020Learning Contextual Representations for Semantic Parsing with Generation-Augmented Pre-Trainingcited by 65
- 2018A Survey on Semantic Parsingcited by 62
- 2020Deep Learning for Source Code Modeling and Generation: Models, Applications and Challengescited by 55
- 2021Provable Limitations of Acquiring Meaning from Ungrounded Form: What Will Future Language Models Understand?cited by 55
- 2018Retrieval-Based Neural Code Generationcited by 41
- 2019Simple and Effective Noisy Channel Modeling for Neural Machine Translationcited by 37
- 2018A Grammar-Based Structural CNN Decoder for Code Generationcited by 29
- 2021Relation Aware Semi-autoregressive Semantic Parsing for NL2SQLcited by 8
- 2017Type- and Content-Driven Synthesis of SQL Queries from Natural Languagecited by 5
- 2021GP: Context-free Grammar Pre-training for Text-to-SQL Parserscited by 5
Built on by
Citing papers per year: 2023: 5; 2024: 2; 2025: 0; 2026: 1.
8 papers.
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2023Benchmarking and Improving Text-to-SQL Generation under Ambiguitycited by 31
- 2023Error Detection for Text-to-SQL Semantic Parsingcited by 11
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunitiescited by 11
- 2024Towards Tailored Recovery of Lexical Diversity in Literary Machine Translationcited by 5
- 2023Reranking for Natural Language Generation from Logical Forms: A Study based on Large Language Modelscited by 1
- 2026PExA: Parallel Exploration Agent for Complex Text-to-SQLcited by 1
- 2023Natural language to SQL in low-code platformscited by 0
- 2026PExA: Parallel Exploration Agent for Complex Text-to-SQL24 Apr 2026
- 2024Towards Tailored Recovery of Lexical Diversity in Literary Machine Translation30 Aug 2024
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunities17 Jul 2024
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Code14 Nov 2023
- 2023Benchmarking and Improving Text-to-SQL Generation under Ambiguity20 Oct 2023
- 2023Reranking for Natural Language Generation from Logical Forms: A Study based on Large Language Models21 Sep 2023
- 2023Natural language to SQL in low-code platforms29 Aug 2023
- 2023Error Detection for Text-to-SQL Semantic Parsing23 May 2023