How to Prompt LLMs for Text-to-SQL: A Study in Zero-shot, Single-domain, and Cross-domain Settings
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) with in-context learning have demonstrated remarkable capability in the text-to-SQL task. Previous research has prompted LLMs with various demonstration-retrieval strategies and intermediate reasoning steps to enhance the performance of LLMs. However, those works often employ varied strategies when constructing the prompt text for text-to-SQL inputs, such as databases and demonstration examples. This leads to a lack of comparability in both the prompt constructions and their primary contributions. Furthermore, selecting an effective prompt construction has emerged as a persistent problem for future research. To address this limitation, we comprehensively investigate the impact of prompt constructions across various settings and provide insights into prompt constructions for future text-to-SQL studies.
Key facts. Cited by 58 papers in the map (data through 14 Oct 2026). Builds on 29 of its 33 references that are in the map. First posted on arXiv 19 May 2023.
Builds on
29 of 33 references.
References · 29
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
- 2023Teaching Large Language Models to Self-Debugcited by 988
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
- 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 424
- 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 411
- 2022Binding Language Models in Symbolic Languagescited by 228
17 more
- 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
- 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
- 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 139
- 2018Improving Text-to-SQL Evaluation Methodologycited by 135
- 2020Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsingcited by 133
- 2021LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relationscited by 119
- 2023A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capabilitycited by 119
- 2022Evaluating the Text-to-SQL Capabilities of Large Language Modelscited by 101
- 2020SmBoP: Semi-autoregressive Bottom-up Semantic Parsingcited by 97
- 2023Graphix-T5: Mixing Pre-Trained Transformers with Graph-Aware Layers for Text-to-SQL Parsingcited by 93
- 2019Representing Schema Structure with Graph Neural Networks for Text-to-SQL Parsingcited by 74
- 2021Natural SQL: Making SQL Easier to Infer from Natural Language Specificationscited by 68
- 2023Dr.Spider: A Diagnostic Evaluation Benchmark towards Text-to-SQL Robustnesscited by 53
- 2021ShadowGNN: Graph Projection Neural Network for Text-to-SQL Parsercited by 35
- 2022XRICL: Cross-lingual Retrieval-Augmented In-Context Learning for Cross-lingual Text-to-SQL Semantic Parsingcited by 33
Built on by
Citing papers per year: 2023: 10; 2024: 32; 2025: 12; 2026: 4.
58 papers.
Sort:
By area:
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 385
- 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
- 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQLcited by 164
- 2024Large Language Models(LLMs) on Tabular Data: Prediction, Generation, and Understanding -- A Surveycited by 159
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 120
- 2023Data-Copilot: Bridging Billions of Data and Humans with Autonomous Workflowcited by 76
- 2024A Survey on Employing Large Language Models for Text-to-SQL Taskscited by 67
- 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
- 2023A Comprehensive Survey on Vector Database: Storage and Retrieval Technique, Challengecited by 55
- 2024Synthesizing Text-to-SQL Data from Weak and Strong LLMscited by 54
38 more
- 2024TabSQLify: Enhancing Reasoning Capabilities of LLMs Through Table Decompositioncited by 39
- 2024Knowledge-to-SQL: Enhancing SQL Generation with Data Expert LLMcited by 35
- 2024PURPLE: Making a Large Language Model a Better SQL Writercited by 34
- 2024Decomposition for Enhancing Attention: Improving LLM-based Text-to-SQL through Workflow Paradigmcited by 31
- 2023Selective Demonstrations for Cross-domain Text-to-SQLcited by 21
- 2025Reliable Text-to-SQL with Adaptive Abstentioncited by 20
- 2024TrustSQL: Benchmarking Text-to-SQL Reliability with Penalty-Based Scoringcited by 17
- 2024Improving Retrieval-augmented Text-to-SQL with AST-based Ranking and Schema Pruningcited by 16
- 2024Aligning Large Language Models to a Domain-specific Graph Database for NL2GQLcited by 14
- 2025Think2SQL: Reinforce LLM Reasoning Capabilities for Text2SQLcited by 14
- 2024SQL-to-Schema Enhances Schema Linking in Text-to-SQLcited by 12
- 2024Overview of the EHRSQL 2024 Shared Task on Reliable Text-to-SQL Modeling on Electronic Health Recordscited by 11
- 2024Improving Demonstration Diversity by Human-Free Fusing for Text-to-SQLcited by 10
- 2025Rethinking Table Instruction Tuningcited by 10
- 2023Reboost Large Language Model-based Text-to-SQL, Text-to-Python, and Text-to-Function -- with Real Applications in Traffic Domaincited by 9
- 2024Structure Guided Large Language Model for SQL Generationcited by 9
- 2025Knowledge Base Construction for Knowledge-Augmented Text-to-SQLcited by 9
- 2023Adapt and Decompose: Efficient Generalization of Text-to-SQL via Domain Adapted Least-To-Most Promptingcited by 8
- 2024Enhancing Large Language Models with Pseudo- and Multisource- Knowledge Graphs for Open-ended Question Answeringcited by 8
- 2024Retrieval augmented text-to-SQL generation for epidemiological question answering using electronic health recordscited by 8
- 2024SQLfuse: Enhancing Text-to-SQL Performance through Comprehensive LLM Synergycited by 7
- 2023Battle of the Large Language Models: Dolly vs LLaMA vs Vicuna vs Guanaco vs Bard vs ChatGPT -- A Text-to-SQL Parsing Comparisoncited by 6
- 2024StatBot.Swiss: Bilingual Open Data Exploration in Natural Languagecited by 6
- 2024Chameleon: Foundation Models for Fairness-aware Multi-modal Data Augmentation to Enhance Coverage of Minoritiescited by 5
- 2024Open-SQL Framework: Enhancing Text-to-SQL on Open-source Large Language Modelscited by 5
- 2024Leveraging Prior Experience: An Expandable Auxiliary Knowledge Base for Text-to-SQLcited by 5
- 2024SelECT-SQL: Self-correcting ensemble Chain-of-Thought for Text-to-SQLcited by 4
- 2025Generating patient cohorts from electronic health records using two-step retrieval-augmented text-to-SQL generationcited by 4
- 2025DCG-SQL: Enhancing In-Context Learning for Text-to-SQL with Deep Contextual Schema Link Graphcited by 4
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunitiescited by 4
- 2025SpotIt: Evaluating Text-to-SQL Evaluation with Formal Verificationcited by 4
- 2024Improving Factual Accuracy of Neural Table-to-Text Output by Addressing Input Problems in ToTTocited by 3
- 2024KU-DMIS at EHRSQL 2024:Generating SQL query via question templatization in EHRcited by 3
- 2024AnnotatedTables: A Large Tabular Dataset with Language Model Annotationscited by 3
- 2024Fact Finder -- Enhancing Domain Expertise of Large Language Models by Incorporating Knowledge Graphscited by 3
- 2024Filling Memory Gaps: Enhancing Continual Semantic Parsing via SQL Syntax Variance-Guided LLMs without Real Data Replaycited by 3
- 2025What Really Matters for Table LLMs? A Meta-Evaluation of Model and Data Effectscited by 2
- 2025Are Human Interactions Replicable by Generative Agents? A Case Study on Pronoun Usage in Hierarchical Interactionscited by 2
50 most cited of 58 All 58 (JSON)
- 2026Reliable Text-to-SQL in Resource-Constrained Settings with Small LLMs via Iterative Retry Workflows12 Oct 2026
- 2026EvoOntology: A Self-Evolving Ontology Layer for Data Agents14 Sep 2026
- 2026SemanticAgent: A Semantics-Aware Framework for Text-to-SQL Data Synthesis23 Apr 2026
- 2026stratum: A System Infrastructure for Massive Agent-Centric ML Workloads3 Mar 2026
- 2025Prompt Engineering Techniques for Context-dependent Text-to-SQL in Arabic16 Nov 2025
- 2025SCARE: A Benchmark for SQL Correction and Question Answerability Classification for Reliable EHR Question Answering13 Nov 2025
- 2025SpotIt: Evaluating Text-to-SQL Evaluation with Formal Verification30 Oct 2025
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunities28 May 2025
- 2025Knowledge Base Construction for Knowledge-Augmented Text-to-SQL28 May 2025
- 2025DCG-SQL: Enhancing In-Context Learning for Text-to-SQL with Deep Contextual Schema Link Graph26 May 2025
- 2025Think2SQL: Reinforce LLM Reasoning Capabilities for Text2SQL21 Apr 2025
- 2025Generating patient cohorts from electronic health records using two-step retrieval-augmented text-to-SQL generation28 Feb 2025
38 more
- 2025Are Human Interactions Replicable by Generative Agents? A Case Study on Pronoun Usage in Hierarchical Interactions25 Jan 2025
- 2025What Really Matters for Table LLMs? A Meta-Evaluation of Model and Data Effects24 Jan 2025
- 2025Rethinking Table Instruction Tuning24 Jan 2025
- 2025Reliable Text-to-SQL with Adaptive Abstention18 Jan 2025
- 2024Filling Memory Gaps: Enhancing Continual Semantic Parsing via SQL Syntax Variance-Guided LLMs without Real Data Replay10 Dec 2024
- 2024Leveraging Prior Experience: An Expandable Auxiliary Knowledge Base for Text-to-SQL20 Nov 2024
- 2024An Actor-Critic Approach to Boosting Text-to-SQL Large Language Model28 Oct 2024
- 2024Qwen2.5-Coder Technical Report18 Sep 2024
- 2024SelECT-SQL: Self-correcting ensemble Chain-of-Thought for Text-to-SQL16 Sep 2024
- 2024Synthesizing Text-to-SQL Data from Weak and Strong LLMs6 Aug 2024
- 2024Fact Finder -- Enhancing Domain Expertise of Large Language Models by Incorporating Knowledge Graphs6 Aug 2024
- 2024A Survey on Employing Large Language Models for Text-to-SQL Tasks21 Jul 2024
- 2024SQLfuse: Enhancing Text-to-SQL Performance through Comprehensive LLM Synergy19 Jul 2024
- 2024Lucy: Think and Reason to Solve Text-to-SQL6 Jul 2024
- 2024Improving Retrieval-augmented Text-to-SQL with AST-based Ranking and Schema Pruning3 Jul 2024
- 2024AnnotatedTables: A Large Tabular Dataset with Language Model Annotations24 Jun 2024
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQL12 Jun 2024
- 2024StatBot.Swiss: Bilingual Open Data Exploration in Natural Language5 Jun 2024
- 2024KU-DMIS at EHRSQL 2024:Generating SQL query via question templatization in EHR22 May 2024
- 2024SQL-to-Schema Enhances Schema Linking in Text-to-SQL15 May 2024
- 2024Open-SQL Framework: Enhancing Text-to-SQL on Open-source Large Language Models4 May 2024
- 2024Overview of the EHRSQL 2024 Shared Task on Reliable Text-to-SQL Modeling on Electronic Health Records4 May 2024
- 2024TabSQLify: Enhancing Reasoning Capabilities of LLMs Through Table Decomposition15 Apr 2024
- 2024Improving Factual Accuracy of Neural Table-to-Text Output by Addressing Input Problems in ToTTo5 Apr 2024
- 2024PURPLE: Making a Large Language Model a Better SQL Writer29 Mar 2024
- 2024TrustSQL: Benchmarking Text-to-SQL Reliability with Penalty-Based Scoring23 Mar 2024
- 2024Retrieval augmented text-to-SQL generation for epidemiological question answering using electronic health records14 Mar 2024
- 2024Large Language Models(LLMs) on Tabular Data: Prediction, Generation, and Understanding -- A Survey27 Feb 2024
- 2024Aligning Large Language Models to a Domain-specific Graph Database for NL2GQL26 Feb 2024
- 2024CodeS: Towards Building Open-source Language Models for Text-to-SQL26 Feb 2024
- 2024Structure Guided Large Language Model for SQL Generation19 Feb 2024
- 2024Knowledge-to-SQL: Enhancing SQL Generation with Data Expert LLM18 Feb 2024
- 2024Decomposition for Enhancing Attention: Improving LLM-based Text-to-SQL through Workflow Paradigm16 Feb 2024
- 2024Improving Demonstration Diversity by Human-Free Fusing for Text-to-SQL16 Feb 2024
- 2024Enhancing Large Language Models with Pseudo- and Multisource- Knowledge Graphs for Open-ended Question Answering15 Feb 2024
- 2024Chameleon: Foundation Models for Fairness-aware Multi-modal Data Augmentation to Enhance Coverage of Minorities2 Feb 2024
- 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQL18 Dec 2023
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Code14 Nov 2023
50 newest of 58 All 58 (JSON)
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2023ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-Thoughtcited by 65
- 2024TabSQLify: Enhancing Reasoning Capabilities of LLMs Through Table Decompositioncited by 39
- 2024Decomposition for Enhancing Attention: Improving LLM-based Text-to-SQL through Workflow Paradigmcited by 31
- 2025Think2SQL: Reinforce LLM Reasoning Capabilities for Text2SQLcited by 14
- 2025Rethinking Table Instruction Tuningcited by 10
- 2024SelECT-SQL: Self-correcting ensemble Chain-of-Thought for Text-to-SQLcited by 4
- 2024Lucy: Think and Reason to Solve Text-to-SQLcited by 0
- 2025Think2SQL: Reinforce LLM Reasoning Capabilities for Text2SQL21 Apr 2025
- 2025Rethinking Table Instruction Tuning24 Jan 2025
- 2024Qwen2.5-Coder Technical Report18 Sep 2024
- 2024SelECT-SQL: Self-correcting ensemble Chain-of-Thought for Text-to-SQL16 Sep 2024
- 2024Lucy: Think and Reason to Solve Text-to-SQL6 Jul 2024
- 2024TabSQLify: Enhancing Reasoning Capabilities of LLMs Through Table Decomposition15 Apr 2024
- 2024Decomposition for Enhancing Attention: Improving LLM-based Text-to-SQL through Workflow Paradigm16 Feb 2024
- 2023ACT-SQL: In-Context Learning for Text-to-SQL with Automatically-Generated Chain-of-Thought26 Oct 2023
- 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQLcited by 164
- 2025Are Human Interactions Replicable by Generative Agents? A Case Study on Pronoun Usage in Hierarchical Interactionscited by 2
- 2026EvoOntology: A Self-Evolving Ontology Layer for Data Agentscited by 2
- 2026stratum: A System Infrastructure for Massive Agent-Centric ML Workloadscited by 1
- 2026EvoOntology: A Self-Evolving Ontology Layer for Data Agents14 Sep 2026
- 2026stratum: A System Infrastructure for Massive Agent-Centric ML Workloads3 Mar 2026
- 2025Are Human Interactions Replicable by Generative Agents? A Case Study on Pronoun Usage in Hierarchical Interactions25 Jan 2025
- 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQL18 Dec 2023
- 2024Improving Retrieval-augmented Text-to-SQL with AST-based Ranking and Schema Pruningcited by 16
- 2024Retrieval augmented text-to-SQL generation for epidemiological question answering using electronic health recordscited by 8
- 2025Generating patient cohorts from electronic health records using two-step retrieval-augmented text-to-SQL generationcited by 4
- 2025Generating patient cohorts from electronic health records using two-step retrieval-augmented text-to-SQL generation28 Feb 2025
- 2024Improving Retrieval-augmented Text-to-SQL with AST-based Ranking and Schema Pruning3 Jul 2024
- 2024Retrieval augmented text-to-SQL generation for epidemiological question answering using electronic health records14 Mar 2024
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 385
- 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
- 2024Large Language Models(LLMs) on Tabular Data: Prediction, Generation, and Understanding -- A Surveycited by 159
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 120
- 2023Data-Copilot: Bridging Billions of Data and Humans with Autonomous Workflowcited by 76
- 2024A Survey on Employing Large Language Models for Text-to-SQL Taskscited by 67
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2023A Comprehensive Survey on Vector Database: Storage and Retrieval Technique, Challengecited by 55
- 2024Synthesizing Text-to-SQL Data from Weak and Strong LLMscited by 54
- 2024Knowledge-to-SQL: Enhancing SQL Generation with Data Expert LLMcited by 35
- 2024PURPLE: Making a Large Language Model a Better SQL Writercited by 34
- 2023Selective Demonstrations for Cross-domain Text-to-SQLcited by 21
12 most cited of 42 All 42 (JSON)
- 2026Reliable Text-to-SQL in Resource-Constrained Settings with Small LLMs via Iterative Retry Workflows12 Oct 2026
- 2026SemanticAgent: A Semantics-Aware Framework for Text-to-SQL Data Synthesis23 Apr 2026
- 2025Prompt Engineering Techniques for Context-dependent Text-to-SQL in Arabic16 Nov 2025
- 2025SCARE: A Benchmark for SQL Correction and Question Answerability Classification for Reliable EHR Question Answering13 Nov 2025
- 2025SpotIt: Evaluating Text-to-SQL Evaluation with Formal Verification30 Oct 2025
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunities28 May 2025
- 2025Knowledge Base Construction for Knowledge-Augmented Text-to-SQL28 May 2025
- 2025DCG-SQL: Enhancing In-Context Learning for Text-to-SQL with Deep Contextual Schema Link Graph26 May 2025
- 2025What Really Matters for Table LLMs? A Meta-Evaluation of Model and Data Effects24 Jan 2025
- 2025Reliable Text-to-SQL with Adaptive Abstention18 Jan 2025
- 2024Filling Memory Gaps: Enhancing Continual Semantic Parsing via SQL Syntax Variance-Guided LLMs without Real Data Replay10 Dec 2024
- 2024Leveraging Prior Experience: An Expandable Auxiliary Knowledge Base for Text-to-SQL20 Nov 2024
12 newest of 42 All 42 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024RB-SQL: A Retrieval-based LLM Framework for Text-to-SQL
- 2023Exploring Chain-of-Thought Style Prompting for Text-to-SQL
- 2024CoE-SQL: In-Context Learning for Multi-Turn Text-to-SQL with Chain-of-Editions
- 2023Retrieval-augmented GPT-3.5-based Text-to-SQL Framework with Sample-aware Prompting and Dynamic Revision Chain
- 2024PET-SQL: A Prompt-Enhanced Two-Round Refinement of Text-to-SQL with Cross-consistency
- 2023Divide and Prompt: Chain of Thought Prompting for Text-to-SQL
- 2025Auto prompt sql: a resource-efficient architecture for text-to-sql translation in constrained environments
- 2026Structured Prompt Language: Declarative Context Management for LLMs