BAPPA: Benchmarking Agents, Plans, and Pipelines for Automated Text-to-SQL Generation
On the map: LLM agents and tool use → Web, search, and research agents
Abstract (arXiv)
Text-to-SQL systems provide a natural language interface that can enable even laymen to access information stored in databases. However, existing Large Language Models (LLM) struggle with SQL generation from natural instructions due to large schema sizes and complex reasoning. Prior work often focuses on complex, somewhat impractical pipelines using flagship models, while smaller, efficient models remain overlooked. In this work, we explore three multi-agent LLM pipelines, with systematic performance benchmarking across a range of small to large open-source models: (1) Multi-agent discussion pipeline, where agents iteratively critique and refine SQL queries, and a judge synthesizes the final answer; (2) Planner-Coder pipeline, where a thinking model planner generates stepwise SQL generation plans and a coder synthesizes queries; and (3) Coder-Aggregator pipeline, where multiple coders independently generate SQL queries, and a reasoning agent selects the best query. Experiments on the Bird-Bench Mini-Dev set reveal that Multi-Agent discussion can improve small model performance, with up to 10.6% increase in Execution Accuracy for Qwen2.5-7b-Instruct seen after three rounds of discussion. Among the pipelines, the LLM Reasoner-Coder pipeline yields the best results, with DeepSeek-R1-32B and QwQ-32B planners boosting Gemma 3 27B IT accuracy from 52.4% to the highest score of 56.4%. Codes are available at https://github.com/treeDweller98/bappa-sql.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 22 of its 27 references that are in the map. First posted on arXiv 6 Nov 2025.
Builds on
22 of 27 references.
Closest ancestors · 1
Same direction, newest first
Other references · 21
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
- 2024Chain-of-Thought Reasoning Without Promptingcited by 210
- 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solvingcited by 177
- 2023OpenAgents: An Open Platform for Language Agents in the Wildcited by 137
- 2024Improving Multi-Agent Debate with Sparse Communication Topologycited by 107
- 2024MCS-SQL: Leveraging Multiple Prompts and Multiple-Choice Selection For Text-to-SQL Generationcited by 105
- 2023AssistGPT: A General Multi-modal Assistant that can Plan, Execute, Inspect, and Learncited by 97
9 more
- 2024Automated Unit Test Improvement using Large Language Models at Metacited by 75
- 2024The Death of Schema Linking? Text-to-SQL in the Age of Well-Reasoned Language Modelscited by 67
- 2025Reasoning-SQL: Reinforcement Learning with SQL Tailored Partial Rewards for Reasoning-Enhanced Text-to-SQLcited by 59
- 2024RSL-SQL: Robust Schema Linking in Text-to-SQL Generationcited by 52
- 2024Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generationcited by 50
- 2023LeanContext: Cost-Efficient Domain-Specific Question Answering Using LLMscited by 40
- 2024Large Language Model Enhanced Text-to-SQL Generation: A Surveycited by 24
- 2024DataLab: A Unified Platform for LLM-Powered Business Intelligencecited by 8
- 2023Fine-Tuning Language Models for Context-Specific SQL Query Generationcited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025AGENTIQL: An Agent-Inspired Multi-Expert Framework for Text-to-SQL Generation
- 2025RAISE: Reasoning Agent for Interactive SQL Exploration
- 2025Multilingual Text-to-SQL: Benchmarking the Limits of Language Models with Collaborative Language Agents
- 2025A Multi-agent Text2SQL Framework using Small Language Models and Execution Feedback
- 2025Rethinking Agentic Workflows: Evaluating Inference-Based Test-Time Scaling Strategies in Text2SQL Tasks
- 2025From Queries to Insights: Agentic LLM Pipelines for Spatio-Temporal Text-to-SQL
- 2026GenDB: The Next Generation of Query Processing -- Synthesized, Not Engineered
- 2026APEX-SQL: Talking to the data via Agentic Exploration for Text-to-SQL