Agentic NL2SQL to Reduce Computational Costs
On the map: LLM agents and tool use → Web, search, and research agents
Abstract (arXiv)
Translating natural language queries into SQL queries (NL2SQL or Text-to-SQL) has recently been empowered by large language models (LLMs). Using LLMs to perform NL2SQL methods on a large collection of SQL databases necessitates processing large quantities of meta-information about the databases, which in turn results in lengthy prompts with many tokens and high processing costs. To address this challenge, we introduce Datalake Agent, an agentic system designed to enable an LLM to solve NL2SQL tasks more efficiently. Instead of utilizing direct solvers for NL2SQL that call the LLM once with all meta-information in the prompt, the Datalake Agent employs an interactive loop to reduce the utilized meta-information. Within the loop, the LLM is used in a reasoning framework that selectively requests only the necessary information to solve a table question answering task. We evaluate the Datalake Agent on a collection of 23 databases with 100 table question answering tasks. The Datalake Agent reduces the tokens used by the LLM by up to 87% and thus allows for substantial cost reductions while maintaining competitive performance.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 10 of its 13 references that are in the map. First posted on arXiv 16 Oct 2025.
Builds on
10 of 13 references.
References · 10
- 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
- 2023Large Language Models for Information Retrieval: A Surveycited by 331
- 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 232
- 2024RelBench: A Benchmark for Deep Learning on Relational Databasescited by 96
- 2024A Survey on Employing Large Language Models for Text-to-SQL Taskscited by 67
- 2024TQA-Bench: Evaluating LLMs for Multi-Table Question Answeringcited by 17
- 2025SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applicationscited by 16
- 2024A Reality check of the benefits of LLM in businesscited by 5
- 2024Redefining Information Retrieval of Structured Database via Large Language Modelscited by 4
Built on by
Citing papers per year: 2025: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026An Agentic System for Schema Aware NL2SQL Generation
- 2026AgentNLQ: A General-Purpose Agent for Natural Language to SQL
- 2025Agentic LLMs for Question Answering over Tabular Data
- 2025A Multi-agent Text2SQL Framework using Small Language Models and Execution Feedback
- 2026Arming Data Agents with Tribal Knowledge
- 2025BAPPA: Benchmarking Agents, Plans, and Pipelines for Automated Text-to-SQL Generation
- 2024NAT-NL2GQL: A Novel Multi-Agent Framework for Translating Natural Language to Graph Query Language
- 2025RAISE: Reasoning Agent for Interactive SQL Exploration