An Encoder-Decoder Framework Translating Natural Language to Database Queries
Not on the map. Why?
Abstract (arXiv)
Machine translation is going through a radical revolution, driven by the explosive development of deep learning techniques using Convolutional Neural Network (CNN) and Recurrent Neural Network (RNN). In this paper, we consider a special case in machine translation problems, targeting to convert natural language into Structured Query Language (SQL) for data retrieval over relational database. Although generic CNN and RNN learn the grammar structure of SQL when trained with sufficient samples, the accuracy and training efficiency of the model could be dramatically improved, when the translation model is deeply integrated with the grammar rules of SQL. We present a new encoder-decoder framework, with a suite of new approaches, including new semantic features fed into the encoder, grammar-aware states injected into the memory of decoder, as well as recursive state management for sub-queries. These techniques help the neural network better focus on understanding semantics of operations in natural language and save the efforts on SQL grammar learning. The empirical evaluation on real world database and queries show that our approach outperform state-of-the-art solution by a significant margin.
Key facts. Cited by 23 papers in the map (data through 14 Oct 2026). First posted on arXiv 16 Nov 2017.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 0; 2023: 9; 2024: 4; 2025: 7; 2026: 1.
23 papers.
Sort:
By area:
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 385
- 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 195
- 2023Graphix-T5: Mixing Pre-Trained Transformers with Graph-Aware Layers for Text-to-SQL Parsingcited by 93
- 2024Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generationcited by 50
- 2021SADGA: Structure-Aware Dual Graph Aggregation Network for Text-to-SQLcited by 43
- 2025LinkAlign: Scalable Schema Linking for Real-World Large-Scale Multi-Database Text-to-SQLcited by 29
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2025STaR-SQL: Self-Taught Reasoner for Text-to-SQLcited by 17
- 2023Prompting GPT-3.5 for Text-to-SQL with De-semanticization and Skeleton Retrievalcited by 16
- 2023Retrieval-augmented GPT-3.5-based Text-to-SQL Framework with Sample-aware Prompting and Dynamic Revision Chaincited by 12
- 2025Text-to-SQL as Dual-State Reasoning: Integrating Adaptive Context and Progressive Generationcited by 10
11 more
- 2025Knowledge Base Construction for Knowledge-Augmented Text-to-SQLcited by 9
- 2024SQLfuse: Enhancing Text-to-SQL Performance through Comprehensive LLM Synergycited by 7
- 2024Open-SQL Framework: Enhancing Text-to-SQL on Open-source Large Language Modelscited by 5
- 2023SQLformer: Deep Auto-Regressive Query Graph Generation for Text-to-SQL Translationcited by 3
- 2023Fine-Tuning Language Models for Context-Specific SQL Query Generationcited by 3
- 2024KU-DMIS at EHRSQL 2024:Generating SQL query via question templatization in EHRcited by 3
- 2025MultiTEND: A Multilingual Benchmark for Natural Language to NoSQL Query Translationcited by 3
- 2025Pi-SQL: Enhancing Text-to-SQL with Fine-Grained Guidance from Pivot Programming Languagescited by 3
- 2025End-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query Generationcited by 2
- 2021Knowledge Graph Question Answering via SPARQL Silhouette Generationcited by 1
- 2026Knowledge Distillation for Low-Resource Open-source Text-to-SQL Modelcited by 0
- 2026Knowledge Distillation for Low-Resource Open-source Text-to-SQL Model13 May 2026
- 2025Text-to-SQL as Dual-State Reasoning: Integrating Adaptive Context and Progressive Generation26 Nov 2025
- 2025End-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query Generation8 Aug 2025
- 2025Pi-SQL: Enhancing Text-to-SQL with Fine-Grained Guidance from Pivot Programming Languages1 Jun 2025
- 2025Knowledge Base Construction for Knowledge-Augmented Text-to-SQL28 May 2025
- 2025LinkAlign: Scalable Schema Linking for Real-World Large-Scale Multi-Database Text-to-SQL24 Mar 2025
- 2025STaR-SQL: Self-Taught Reasoner for Text-to-SQL19 Feb 2025
- 2025MultiTEND: A Multilingual Benchmark for Natural Language to NoSQL Query Translation16 Feb 2025
- 2024SQLfuse: Enhancing Text-to-SQL Performance through Comprehensive LLM Synergy19 Jul 2024
- 2024Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generation24 May 2024
- 2024KU-DMIS at EHRSQL 2024:Generating SQL query via question templatization in EHR22 May 2024
- 2024Open-SQL Framework: Enhancing Text-to-SQL on Open-source Large Language Models4 May 2024
11 more
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Fine-Tuning Language Models for Context-Specific SQL Query Generation4 Dec 2023
- 2023SQLformer: Deep Auto-Regressive Query Graph Generation for Text-to-SQL Translation27 Oct 2023
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation29 Aug 2023
- 2023Retrieval-augmented GPT-3.5-based Text-to-SQL Framework with Sample-aware Prompting and Dynamic Revision Chain11 Jul 2023
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLs4 May 2023
- 2023Prompting GPT-3.5 for Text-to-SQL with De-semanticization and Skeleton Retrieval26 Apr 2023
- 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQL12 Feb 2023
- 2023Graphix-T5: Mixing Pre-Trained Transformers with Graph-Aware Layers for Text-to-SQL Parsing18 Jan 2023
- 2021SADGA: Structure-Aware Dual Graph Aggregation Network for Text-to-SQL1 Nov 2021
- 2021Knowledge Graph Question Answering via SPARQL Silhouette Generation6 Sep 2021
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 385
- 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 195
- 2023Graphix-T5: Mixing Pre-Trained Transformers with Graph-Aware Layers for Text-to-SQL Parsingcited by 93
- 2024Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generationcited by 50
- 2021SADGA: Structure-Aware Dual Graph Aggregation Network for Text-to-SQLcited by 43
- 2025LinkAlign: Scalable Schema Linking for Real-World Large-Scale Multi-Database Text-to-SQLcited by 29
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2023Prompting GPT-3.5 for Text-to-SQL with De-semanticization and Skeleton Retrievalcited by 16
- 2025Knowledge Base Construction for Knowledge-Augmented Text-to-SQLcited by 9
- 2024SQLfuse: Enhancing Text-to-SQL Performance through Comprehensive LLM Synergycited by 7
- 2024Open-SQL Framework: Enhancing Text-to-SQL on Open-source Large Language Modelscited by 5
12 most cited of 19 All 19 (JSON)
- 2025End-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query Generation8 Aug 2025
- 2025Pi-SQL: Enhancing Text-to-SQL with Fine-Grained Guidance from Pivot Programming Languages1 Jun 2025
- 2025Knowledge Base Construction for Knowledge-Augmented Text-to-SQL28 May 2025
- 2025LinkAlign: Scalable Schema Linking for Real-World Large-Scale Multi-Database Text-to-SQL24 Mar 2025
- 2025MultiTEND: A Multilingual Benchmark for Natural Language to NoSQL Query Translation16 Feb 2025
- 2024SQLfuse: Enhancing Text-to-SQL Performance through Comprehensive LLM Synergy19 Jul 2024
- 2024Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generation24 May 2024
- 2024KU-DMIS at EHRSQL 2024:Generating SQL query via question templatization in EHR22 May 2024
- 2024Open-SQL Framework: Enhancing Text-to-SQL on Open-source Large Language Models4 May 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Fine-Tuning Language Models for Context-Specific SQL Query Generation4 Dec 2023
- 2023SQLformer: Deep Auto-Regressive Query Graph Generation for Text-to-SQL Translation27 Oct 2023
12 newest of 19 All 19 (JSON)