Automatic Metadata Extraction for Text-to-SQL
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have recently become sophisticated enough to automate many tasks ranging from pattern finding to writing assistance to code generation. In this paper, we examine text-to-SQL generation. We have observed from decades of experience that the most difficult part of query development lies in understanding the database contents. These experiences inform the direction of our research. Text-to-SQL benchmarks such as SPIDER and Bird contain extensive metadata that is generally not available in practice. Human-generated metadata requires the use of expensive Subject Matter Experts (SMEs), who are often not fully aware of many aspects of their databases. In this paper, we explore techniques for automatic metadata extraction to enable text-to-SQL generation. We explore the use of two standard and one newer metadata extraction techniques: profiling, query log analysis, and SQL-to text generation using an LLM. We use BIRD benchmark [JHQY+23] to evaluate the effectiveness of these techniques. BIRD does not provide query logs on their test database, so we prepared a submission that uses profiling alone, and does not use any specially tuned model (we used GPT-4o). From Sept 1 to Sept 23, 2024, and Nov 11 through Nov 23, 2024 we achieved the highest score both with and without using the "oracle" information provided with the question set. We regained the number 1 spot on Mar 11, 2025, and are still at #1 at the time of the writing (May, 2025).
Key facts. Cited by 27 papers in the map (data through 14 Oct 2026). First posted on arXiv 26 May 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 13; 2026: 14.
27 papers.
Sort:
By area:
- 2025A Survey of Data Agents: Emerging Paradigm or Overstated Hype?cited by 30
- 2025Agentar-Scale-SQL: Advancing Text-to-SQL through Orchestrated Test-Time Scalingcited by 24
- 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQLcited by 10
- 2025Text-to-SQL as Dual-State Reasoning: Integrating Adaptive Context and Progressive Generationcited by 10
- 2026APEX-SQL: Talking to the data via Agentic Exploration for Text-to-SQLcited by 8
- 2025SING-SQL: A Synthetic Data Generation Framework for In-Domain Text-to-SQL Translationcited by 5
- 2025RubikSQL: Lifelong Learning Agentic Knowledge Base as an Industrial NL2SQL Systemcited by 4
- 2025SpotIt: Evaluating Text-to-SQL Evaluation with Formal Verificationcited by 4
- 2025BenchPress: A Human-in-the-Loop Annotation System for Rapid Text-to-SQL Benchmark Curationcited by 3
- 2026RoboPhD: Self-Improving Text-to-SQL Through Autonomous Agent Evolutioncited by 3
- 2026TRUST-SQL: Tool-Integrated Multi-Turn Reinforcement Learning for Text-to-SQL over Unknown Schemascited by 3
- 2026ELT-Bench-Verified: Benchmark Quality Issues Underestimate AI Agent Capabilitiescited by 3
15 more
- 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Modelscited by 3
- 2025Node-Level Uncertainty Estimation in LLM-Generated SQLcited by 2
- 2025AGRO-SQL: Agentic Group-Relative Optimization with High-Fidelity Data Synthesiscited by 2
- 2025SteinerSQL: Graph-Guided Mathematical Reasoning for Text-to-SQL Generationcited by 1
- 2025HES-SQL: Hybrid Reasoning for Efficient Text-to-SQL with Structural Skeleton Guidancecited by 1
- 2025Continual Learning of Domain Knowledge from Human Feedback in Text-to-SQLcited by 1
- 2026Human-Level Text-to-SQL via Reinforcement Learning on Verified Data, Without Pipeline Engineeringcited by 1
- 2026FGTR: Fine-Grained Multi-Table Retrieval via Hierarchical LLM Reasoningcited by 0
- 2026SODIUM: From Open Web Data to Queryable Databasescited by 0
- 2026Sophrosyne: Agentic Exploration of Relational Data Systems Needs Moderationcited by 0
- 2026Bootstrapping Semantic Layer from Execution for Text-to-SQLcited by 0
- 2026DexterSQL: Deep Schema Exploration and Rule-based Correction for Text-to-SQL Generationcited by 0
- 2026DualSQL: Text-to-SQL with Multi-Agent Reinforcement Learningcited by 0
- 2026AptMQL-Bench: From Text-to-SQL to Text-to-MQL via Access-Pattern Schema Design and Data-Preserving Migrationcited by 0
- 2026ARCS: Towards Precise Text-to-SQL via Structured Disambiguationcited by 0
- 2026ARCS: Towards Precise Text-to-SQL via Structured Disambiguation7 Oct 2026
- 2026AptMQL-Bench: From Text-to-SQL to Text-to-MQL via Access-Pattern Schema Design and Data-Preserving Migration2 Oct 2026
- 2026DualSQL: Text-to-SQL with Multi-Agent Reinforcement Learning16 Sep 2026
- 2026DexterSQL: Deep Schema Exploration and Rule-based Correction for Text-to-SQL Generation12 Aug 2026
- 2026Bootstrapping Semantic Layer from Execution for Text-to-SQL4 Jun 2026
- 2026Sophrosyne: Agentic Exploration of Relational Data Systems Needs Moderation29 May 2026
- 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Models28 Apr 2026
- 2026ELT-Bench-Verified: Benchmark Quality Issues Underestimate AI Agent Capabilities31 Mar 2026
- 2026Human-Level Text-to-SQL via Reinforcement Learning on Verified Data, Without Pipeline Engineering20 Mar 2026
- 2026SODIUM: From Open Web Data to Queryable Databases19 Mar 2026
- 2026TRUST-SQL: Tool-Integrated Multi-Turn Reinforcement Learning for Text-to-SQL over Unknown Schemas17 Mar 2026
- 2026FGTR: Fine-Grained Multi-Table Retrieval via Hierarchical LLM Reasoning13 Mar 2026
15 more
- 2026APEX-SQL: Talking to the data via Agentic Exploration for Text-to-SQL11 Feb 2026
- 2026RoboPhD: Self-Improving Text-to-SQL Through Autonomous Agent Evolution3 Jan 2026
- 2025AGRO-SQL: Agentic Group-Relative Optimization with High-Fidelity Data Synthesis29 Dec 2025
- 2025Text-to-SQL as Dual-State Reasoning: Integrating Adaptive Context and Progressive Generation26 Nov 2025
- 2025Node-Level Uncertainty Estimation in LLM-Generated SQL17 Nov 2025
- 2025Continual Learning of Domain Knowledge from Human Feedback in Text-to-SQL10 Nov 2025
- 2025SpotIt: Evaluating Text-to-SQL Evaluation with Formal Verification30 Oct 2025
- 2025A Survey of Data Agents: Emerging Paradigm or Overstated Hype?27 Oct 2025
- 2025BenchPress: A Human-in-the-Loop Annotation System for Rapid Text-to-SQL Benchmark Curation11 Oct 2025
- 2025HES-SQL: Hybrid Reasoning for Efficient Text-to-SQL with Structural Skeleton Guidance10 Oct 2025
- 2025SING-SQL: A Synthetic Data Generation Framework for In-Domain Text-to-SQL Translation30 Sep 2025
- 2025Agentar-Scale-SQL: Advancing Text-to-SQL through Orchestrated Test-Time Scaling29 Sep 2025
- 2025SteinerSQL: Graph-Guided Mathematical Reasoning for Text-to-SQL Generation23 Sep 2025
- 2025RubikSQL: Lifelong Learning Agentic Knowledge Base as an Industrial NL2SQL System25 Aug 2025
- 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQL30 Jul 2025
- 2025Agentar-Scale-SQL: Advancing Text-to-SQL through Orchestrated Test-Time Scalingcited by 24
- 2025Text-to-SQL as Dual-State Reasoning: Integrating Adaptive Context and Progressive Generationcited by 10
- 2025AGRO-SQL: Agentic Group-Relative Optimization with High-Fidelity Data Synthesiscited by 2
- 2025SteinerSQL: Graph-Guided Mathematical Reasoning for Text-to-SQL Generationcited by 1
- 2025HES-SQL: Hybrid Reasoning for Efficient Text-to-SQL with Structural Skeleton Guidancecited by 1
- 2026FGTR: Fine-Grained Multi-Table Retrieval via Hierarchical LLM Reasoningcited by 0
- 2026FGTR: Fine-Grained Multi-Table Retrieval via Hierarchical LLM Reasoning13 Mar 2026
- 2025AGRO-SQL: Agentic Group-Relative Optimization with High-Fidelity Data Synthesis29 Dec 2025
- 2025Text-to-SQL as Dual-State Reasoning: Integrating Adaptive Context and Progressive Generation26 Nov 2025
- 2025HES-SQL: Hybrid Reasoning for Efficient Text-to-SQL with Structural Skeleton Guidance10 Oct 2025
- 2025Agentar-Scale-SQL: Advancing Text-to-SQL through Orchestrated Test-Time Scaling29 Sep 2025
- 2025SteinerSQL: Graph-Guided Mathematical Reasoning for Text-to-SQL Generation23 Sep 2025
- 2025A Survey of Data Agents: Emerging Paradigm or Overstated Hype?cited by 30
- 2026APEX-SQL: Talking to the data via Agentic Exploration for Text-to-SQLcited by 8
- 2025RubikSQL: Lifelong Learning Agentic Knowledge Base as an Industrial NL2SQL Systemcited by 4
- 2026ELT-Bench-Verified: Benchmark Quality Issues Underestimate AI Agent Capabilitiescited by 3
- 2026Sophrosyne: Agentic Exploration of Relational Data Systems Needs Moderationcited by 0
- 2026Sophrosyne: Agentic Exploration of Relational Data Systems Needs Moderation29 May 2026
- 2026ELT-Bench-Verified: Benchmark Quality Issues Underestimate AI Agent Capabilities31 Mar 2026
- 2026APEX-SQL: Talking to the data via Agentic Exploration for Text-to-SQL11 Feb 2026
- 2025A Survey of Data Agents: Emerging Paradigm or Overstated Hype?27 Oct 2025
- 2025RubikSQL: Lifelong Learning Agentic Knowledge Base as an Industrial NL2SQL System25 Aug 2025
- 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQLcited by 10
- 2025SpotIt: Evaluating Text-to-SQL Evaluation with Formal Verificationcited by 4
- 2025BenchPress: A Human-in-the-Loop Annotation System for Rapid Text-to-SQL Benchmark Curationcited by 3
- 2026RoboPhD: Self-Improving Text-to-SQL Through Autonomous Agent Evolutioncited by 3
- 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Modelscited by 3
- 2025Node-Level Uncertainty Estimation in LLM-Generated SQLcited by 2
- 2026SODIUM: From Open Web Data to Queryable Databasescited by 0
- 2026Bootstrapping Semantic Layer from Execution for Text-to-SQLcited by 0
- 2026DexterSQL: Deep Schema Exploration and Rule-based Correction for Text-to-SQL Generationcited by 0
- 2026DualSQL: Text-to-SQL with Multi-Agent Reinforcement Learningcited by 0
- 2026AptMQL-Bench: From Text-to-SQL to Text-to-MQL via Access-Pattern Schema Design and Data-Preserving Migrationcited by 0
- 2026ARCS: Towards Precise Text-to-SQL via Structured Disambiguationcited by 0
- 2026ARCS: Towards Precise Text-to-SQL via Structured Disambiguation7 Oct 2026
- 2026AptMQL-Bench: From Text-to-SQL to Text-to-MQL via Access-Pattern Schema Design and Data-Preserving Migration2 Oct 2026
- 2026DualSQL: Text-to-SQL with Multi-Agent Reinforcement Learning16 Sep 2026
- 2026DexterSQL: Deep Schema Exploration and Rule-based Correction for Text-to-SQL Generation12 Aug 2026
- 2026Bootstrapping Semantic Layer from Execution for Text-to-SQL4 Jun 2026
- 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Models28 Apr 2026
- 2026SODIUM: From Open Web Data to Queryable Databases19 Mar 2026
- 2026RoboPhD: Self-Improving Text-to-SQL Through Autonomous Agent Evolution3 Jan 2026
- 2025Node-Level Uncertainty Estimation in LLM-Generated SQL17 Nov 2025
- 2025SpotIt: Evaluating Text-to-SQL Evaluation with Formal Verification30 Oct 2025
- 2025BenchPress: A Human-in-the-Loop Annotation System for Rapid Text-to-SQL Benchmark Curation11 Oct 2025
- 2025SLM-SQL: An Exploration of Small Language Models for Text-to-SQL30 Jul 2025