SQLNet: Generating Structured Queries From Natural Language Without Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
Synthesizing SQL queries from natural language is a long-standing open problem and has been attracting considerable interest recently. Toward solving the problem, the de facto approach is to employ a sequence-to-sequence-style model. Such an approach will necessarily require the SQL queries to be serialized. Since the same SQL query may have multiple equivalent serializations, training a sequence-to-sequence-style model is sensitive to the choice from one of them. This phenomenon is documented as the "order-matters" problem. Existing state-of-the-art approaches rely on reinforcement learning to reward the decoder when it generates any of the equivalent serializations. However, we observe that the improvement from reinforcement learning is limited. In this paper, we propose a novel approach, i.e., SQLNet, to fundamentally solve this problem by avoiding the sequence-to-sequence structure when the order does not matter. In particular, we employ a sketch-based approach where the sketch contains a dependency graph so that one prediction can be done by taking into consideration only the previous predictions that it depends on. In addition, we propose a sequence-to-set model as well as the column attention mechanism to synthesize the query based on the sketch. By combining all these novel techniques, we show that SQLNet can outperform the prior art by 9% to 13% on the WikiSQL task.
Key facts. Cited by 135 papers in the map (data through 7 Oct 2026). First posted on arXiv 13 Nov 2017.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 19; 2022: 13; 2023: 22; 2024: 29; 2025: 29; 2026: 23.
135 papers.
Sort:
By area:
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQLcited by 158
- 2024Large Language Models(LLMs) on Tabular Data: Prediction, Generation, and Understanding -- A Surveycited by 157
- 2021LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relationscited by 119
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 118
- 2023Graphix-T5: Mixing Pre-Trained Transformers with Graph-Aware Layers for Text-to-SQL Parsingcited by 93
- 2022RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQLcited by 85
- 2023Table-GPT: Table-tuned GPT for Diverse Table Taskscited by 69
- 2024A Survey on Employing Large Language Models for Text-to-SQL Taskscited by 67
- 2021Natural SQL: Making SQL Easier to Infer from Natural Language Specificationscited by 66
38 more
- 2023ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-Thoughtcited by 65
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQLcited by 59
- 2024A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?cited by 54
- 2022A Survey on Text-to-SQL Parsing: Concepts, Methods, and Future Directionscited by 51
- 2025OpenSearch-SQL: Enhancing Text-to-SQL with Dynamic Few-shot and Consistency Alignmentcited by 51
- 2022Recent Advances in Text-to-SQL: A Survey of What We Have and What We Expectcited by 47
- 2023Skill-Based Few-Shot Selection for In-Context Learningcited by 46
- 2021SADGA: Structure-Aware Dual Graph Aggregation Network for Text-to-SQLcited by 43
- 2023ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL Systemscited by 42
- 2022A Survey on Table Question Answering: Recent Advancescited by 41
- 2024E-SQL: Direct Schema Linking via Question Enrichment in Text-to-SQLcited by 35
- 2024SQLBench: A Comprehensive Evaluation for Text-to-SQL Capabilities of Large Language Modelscited by 32
- 2021SeaD: End-to-end Text-to-SQL Generation with Schema-aware Denoisingcited by 27
- 2023Natural Language Interfaces for Tabular Data Querying and Visualization: A Surveycited by 27
- 2024PET-SQL: A Prompt-Enhanced Two-Round Refinement of Text-to-SQL with Cross-consistencycited by 26
- 2021Improving Text-to-SQL with Schema Dependency Learningcited by 25
- 2021Dual Reader-Parser on Hybrid Textual and Tabular Evidence for Open Domain Question Answeringcited by 25
- 2021Retrieving Complex Tables with Multi-Granular Graph Representation Learningcited by 24
- 2023Xpert: Empowering Incident Management with Query Recommendations via Large Language Modelscited by 22
- 2024MAG-SQL: Multi-Agent Generative Approach with Soft Schema Linking and Iterative Sub-SQL Refinement for Text-to-SQLcited by 22
- 2024Investigating the Impact of Data Contamination of Large Language Models in Text-to-SQL Translationcited by 21
- 2022UniSAr: A Unified Structure-Aware Autoregressive Language Model for Text-to-SQLcited by 20
- 2024SyntheT2C: Generating Synthetic Data for Fine-Tuning Large Language Models on the Text2Cypher Taskcited by 19
- 2025Reliable Text-to-SQL with Adaptive Abstentioncited by 19
- 2024Metasql: A Generate-then-Rank Framework for Natural Language to SQL Translationcited by 17
- 2025STaR-SQL: Self-Taught Reasoner for Text-to-SQLcited by 16
- 2021mRAT-SQL+GAP:A Portuguese Text-to-SQL Transformercited by 15
- 2025MapQA: Open-domain Geospatial Question Answering on Map Datacited by 15
- 2025ELT-Bench: An End-to-End Benchmark for Evaluating AI Agents on ELT Pipelinescited by 15
- 2025Understanding, Detecting, and Repairing Real-World In-Context-Learning-Based Text-to-SQL Errorscited by 14
- 2024CoE-SQL: In-Context Learning for Multi-Turn Text-to-SQL with Chain-of-Editionscited by 13
- 2022End-to-End Table Question Answering via Retrieval-Augmented Generationcited by 12
- 2022Deep Learning Driven Natural Languages Text to SQL Query Conversion: A Surveycited by 11
- 2024Solid-SQL: Enhanced Schema-linking based In-context Learning for Robust Text-to-SQLcited by 11
- 2021A Survey on Deep Reinforcement Learning for Data Processing and Analyticscited by 10
- 2024Vi(E)va LLM! A Conceptual Stack for Evaluating and Interpreting Generative AI-based Visualizationscited by 10
- 2024SQLucid: Grounding Natural Language Database Queries with Interactive Explanationscited by 10
50 most cited of 135 All 135 (JSON)
- 2026Reflect-SQL: A Self-Reflection Based Framework for Text-to-SQL1 Sep 2026
- 2026DexterSQL: Deep Schema Exploration and Rule-based Correction for Text-to-SQL Generation12 Aug 2026
- 2026SafeQL: Search-based Refinement for Safe and Efficient LLM-based Text-to-SQL10 Aug 2026
- 2026Metadata Reconstruction from Values Alone: Recovering Column Semantics in Undocumented Warehouses8 Aug 2026
- 2026Evaluating LLMs in Database Scenarios: A Lifecycle Benchmark for Assessing Their Potential in Core Database Tasks4 Aug 2026
- 2026The Nuts and Bolts of Natural Language to SQL Translation: A Systematic Analysis of Model Pipeline Optimisation Approaches and their Interactions12 Jul 2026
- 2026SQuaD-SQL: Efficient Text-to-SQL with Small Language Models via LLM-Guided Knowledge Distillation9 Jul 2026
- 2026Beyond Static Rules: Automated Discovery of Latent Vulnerabilities in Text-to-SQL4 Jul 2026
- 2026CHS-SQL: A Text-to-SQL approach based on Confidence-Guided Heuristic Search Schema Linking process17 Jun 2026
- 2026Schema-Aware Localisation (SAL): Live Schema Grounding and Hallucination Validation for Oracle NL2SQL3 Jun 2026
- 2026SANE Schema-aware Natural-language Evaluation of Biological Data3 Jun 2026
- 2026EntSQL: A Benchmark for Grounding Text-to-SQL in Long-Context Enterprise Knowledge2 Jun 2026
38 more
- 2026Learning to Retrieve: Dual-Level Long-Term Memory for Text-to-SQL Agents30 May 2026
- 2026Rose-SQL: Role-State Evolution Guided Structured Reasoning for Multi-Turn Text-to-SQL5 May 2026
- 2026FINER-SQL: Boosting Small Language Models for Text-to-SQL5 May 2026
- 2026Are LLMs Overkill for Databases?: A Study on the Finiteness of SQL26 Mar 2026
- 2026Schema on the Inside: A Two-Phase Fine-Tuning Method for High-Efficiency Text-to-SQL at Scale25 Mar 2026
- 2026Natural Language Interfaces for Spatial and Temporal Databases: A Comprehensive Overview of Methods, Taxonomy, and Future Directions24 Mar 2026
- 2026An Efficient and Effective Evaluator for Text2SQL Models on Unseen and Unlabeled Data8 Mar 2026
- 2026CBR-to-SQL: Rethinking Retrieval-based Text-to-SQL using Case-based Reasoning in the Healthcare Domain5 Mar 2026
- 2026Monte Carlo Tree Search with Reasoning Path Refinement for Small Language Models in Conversational Text-to-NoSQL13 Feb 2026
- 2026SQL-Trail: Multi-Turn Reinforcement Learning with Interleaved Feedback for Text-to-SQL25 Jan 2026
- 2026Cluster Workload Allocation: Semantic Soft Affinity Using Natural Language Processing14 Jan 2026
- 2025A Multi-agent Text2SQL Framework using Small Language Models and Execution Feedback21 Dec 2025
- 2025Scaling Text2SQL via LLM-efficient Schema Filtering with Functional Dependency Graph Rerankers18 Dec 2025
- 2025RAG-Driven Data Quality Governance for Enterprise ERP Systems18 Nov 2025
- 2025Multi-Agent GraphRAG: A Text-to-Cypher Framework for Labeled Property Graphs11 Nov 2025
- 2025GEMMA-SQL: A Novel Text-to-SQL Model Based on Large Language Models5 Nov 2025
- 2025PublicAgent: Multi-Agent Design Principles From an LLM-Based Open Data Analysis Framework4 Nov 2025
- 2025FinAI Data Assistant: LLM-based Financial Database Query Processing with the OpenAI Function Calling API15 Oct 2025
- 2025Role-Conditioned Refusals: Evaluating Access Control Reasoning in Large Language Models9 Oct 2025
- 2025FINCH: Financial Intelligence using Natural language for Contextualized SQL Handling2 Oct 2025
- 2025LLMSQL: Upgrading WikiSQL for the LLM Era of Text-to-SQL27 Sep 2025
- 2025MaskSQL: Safeguarding Privacy for LLM-Based Text-to-SQL via Abstraction27 Sep 2025
- 2025THOR: Transformer Heuristics for On-Demand Retrieval13 Jul 2025
- 2025HI-SQL: Optimizing Text-to-SQL Systems through Dynamic Hint Integration11 Jun 2025
- 2025SDE-SQL: Enhancing Text-to-SQL Generation in Large Language Models via Self-Driven Exploration with SQL Probes8 Jun 2025
- 2025Knowledge Base Construction for Knowledge-Augmented Text-to-SQL28 May 2025
- 2025UNJOIN: Enhancing Multi-Table Text-to-SQL Generation via Schema Simplification23 May 2025
- 2025ELT-Bench: An End-to-End Benchmark for Evaluating AI Agents on ELT Pipelines7 Apr 2025
- 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQL29 Mar 2025
- 2025Domain Specific Question to SQL Conversion with Embedded Data Balancing Technique28 Mar 2025
- 2025GenEdit: Compounding Operators and Continuous Improvement to Tackle Text-to-SQL in the Enterprise27 Mar 2025
- 2025Feather-SQL: A Lightweight NL2SQL Framework with Dual-Model Collaboration Paradigm for Small Language Models22 Mar 2025
- 2025Towards a Barrier-free GeoQA Portal: Natural Language Interaction with Geospatial Data Using Multi-Agent LLMs and Semantic Search18 Mar 2025
- 2025Valid Text-to-SQL Generation with Unification-based DeepStochLog17 Mar 2025
- 2025MapQA: Open-domain Geospatial Question Answering on Map Data10 Mar 2025
- 2025OpenSearch-SQL: Enhancing Text-to-SQL with Dynamic Few-shot and Consistency Alignment19 Feb 2025
- 2025STaR-SQL: Self-Taught Reasoner for Text-to-SQL19 Feb 2025
- 2025What Really Matters for Table LLMs? A Meta-Evaluation of Model and Data Effects24 Jan 2025
50 newest of 135 All 135 (JSON)
- 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQLcited by 158
- 2024MAG-SQL: Multi-Agent Generative Approach with Soft Schema Linking and Iterative Sub-SQL Refinement for Text-to-SQLcited by 22
- 2025ELT-Bench: An End-to-End Benchmark for Evaluating AI Agents on ELT Pipelinescited by 15
- 2025Towards a Barrier-free GeoQA Portal: Natural Language Interaction with Geospatial Data Using Multi-Agent LLMs and Semantic Searchcited by 3
- 2025PublicAgent: Multi-Agent Design Principles From an LLM-Based Open Data Analysis Frameworkcited by 2
- 2025FinAI Data Assistant: LLM-based Financial Database Query Processing with the OpenAI Function Calling APIcited by 0
- 2025A Multi-agent Text2SQL Framework using Small Language Models and Execution Feedbackcited by 0
- 2025A Multi-agent Text2SQL Framework using Small Language Models and Execution Feedback21 Dec 2025
- 2025PublicAgent: Multi-Agent Design Principles From an LLM-Based Open Data Analysis Framework4 Nov 2025
- 2025FinAI Data Assistant: LLM-based Financial Database Query Processing with the OpenAI Function Calling API15 Oct 2025
- 2025ELT-Bench: An End-to-End Benchmark for Evaluating AI Agents on ELT Pipelines7 Apr 2025
- 2025Towards a Barrier-free GeoQA Portal: Natural Language Interaction with Geospatial Data Using Multi-Agent LLMs and Semantic Search18 Mar 2025
- 2024MAG-SQL: Multi-Agent Generative Approach with Soft Schema Linking and Iterative Sub-SQL Refinement for Text-to-SQL15 Aug 2024
- 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQL18 Dec 2023
- 2023ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-Thoughtcited by 65
- 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQLcited by 59
- 2025STaR-SQL: Self-Taught Reasoner for Text-to-SQLcited by 16
- 2025Role-Conditioned Refusals: Evaluating Access Control Reasoning in Large Language Modelscited by 4
- 2026Monte Carlo Tree Search with Reasoning Path Refinement for Small Language Models in Conversational Text-to-NoSQLcited by 0
- 2026CBR-to-SQL: Rethinking Retrieval-based Text-to-SQL using Case-based Reasoning in the Healthcare Domaincited by 0
- 2026Rose-SQL: Role-State Evolution Guided Structured Reasoning for Multi-Turn Text-to-SQLcited by 0
- 2026Rose-SQL: Role-State Evolution Guided Structured Reasoning for Multi-Turn Text-to-SQL5 May 2026
- 2026CBR-to-SQL: Rethinking Retrieval-based Text-to-SQL using Case-based Reasoning in the Healthcare Domain5 Mar 2026
- 2026Monte Carlo Tree Search with Reasoning Path Refinement for Small Language Models in Conversational Text-to-NoSQL13 Feb 2026
- 2025Role-Conditioned Refusals: Evaluating Access Control Reasoning in Large Language Models9 Oct 2025
- 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQL29 Mar 2025
- 2025STaR-SQL: Self-Taught Reasoner for Text-to-SQL19 Feb 2025
- 2023ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-Thought26 Oct 2023
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2024Large Language Models(LLMs) on Tabular Data: Prediction, Generation, and Understanding -- A Surveycited by 157
- 2021LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relationscited by 119
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 118
- 2023Graphix-T5: Mixing Pre-Trained Transformers with Graph-Aware Layers for Text-to-SQL Parsingcited by 93
- 2022RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQLcited by 85
- 2023Table-GPT: Table-tuned GPT for Diverse Table Taskscited by 69
- 2024A Survey on Employing Large Language Models for Text-to-SQL Taskscited by 67
- 2021Natural SQL: Making SQL Easier to Infer from Natural Language Specificationscited by 66
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
12 most cited of 118 All 118 (JSON)
- 2026Reflect-SQL: A Self-Reflection Based Framework for Text-to-SQL1 Sep 2026
- 2026DexterSQL: Deep Schema Exploration and Rule-based Correction for Text-to-SQL Generation12 Aug 2026
- 2026SafeQL: Search-based Refinement for Safe and Efficient LLM-based Text-to-SQL10 Aug 2026
- 2026Metadata Reconstruction from Values Alone: Recovering Column Semantics in Undocumented Warehouses8 Aug 2026
- 2026Evaluating LLMs in Database Scenarios: A Lifecycle Benchmark for Assessing Their Potential in Core Database Tasks4 Aug 2026
- 2026The Nuts and Bolts of Natural Language to SQL Translation: A Systematic Analysis of Model Pipeline Optimisation Approaches and their Interactions12 Jul 2026
- 2026SQuaD-SQL: Efficient Text-to-SQL with Small Language Models via LLM-Guided Knowledge Distillation9 Jul 2026
- 2026Beyond Static Rules: Automated Discovery of Latent Vulnerabilities in Text-to-SQL4 Jul 2026
- 2026CHS-SQL: A Text-to-SQL approach based on Confidence-Guided Heuristic Search Schema Linking process17 Jun 2026
- 2026Schema-Aware Localisation (SAL): Live Schema Grounding and Hallucination Validation for Oracle NL2SQL3 Jun 2026
- 2026SANE Schema-aware Natural-language Evaluation of Biological Data3 Jun 2026
- 2026EntSQL: A Benchmark for Grounding Text-to-SQL in Long-Context Enterprise Knowledge2 Jun 2026
12 newest of 118 All 118 (JSON)