mlsanityData to 7 Oct 2026

APEX-SQL: Talking to the data via Agentic Exploration for Text-to-SQL

arXiv 2602.16720 ↗First posted 11 Feb 2026cs.DB cs.AIcited by 7

On the map: LLM agents and tool use → Web, search, and research agents

Abstract (arXiv)

Text-to-SQL systems powered by Large Language Models have excelled on academic benchmarks but struggle in complex enterprise environments. The primary limitation lies in their reliance on static schema representations, which fails to resolve semantic ambiguity and scale effectively to large, complex databases. To address this, we propose APEX-SQL, an Agentic Text-to-SQL Framework that shifts the paradigm from passive translation to agentic exploration. Our framework employs a hypothesis-verification loop to ground model reasoning in real data. In the schema linking phase, we use logical planning to verbalize hypotheses, dual-pathway pruning to reduce the search space, and parallel data profiling to validate column roles against real data, followed by global synthesis to ensure topological connectivity. For SQL generation, we introduce a deterministic mechanism to retrieve exploration directives, allowing the agent to effectively explore data distributions, refine hypotheses, and generate semantically accurate SQLs. Experiments on BIRD (70.65% execution accuracy) and Spider 2.0-Snow (51.01% execution accuracy) demonstrate that APEX-SQL outperforms competitive baselines with reduced token consumption. Further analysis reveals that agentic exploration acts as a performance multiplier, unlocking the latent reasoning potential of foundation models in enterprise settings. Ablation studies confirm the critical contributions of each component in ensuring robust and accurate data analysis. Our code is released at https://github.com/Tencent/APEX-SQL-Project.

Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 20 of its 46 references that are in the map. First posted on arXiv 11 Feb 2026.

Builds on

20 of 46 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024MAG-SQL: Multi-Agent Generative Approach with Soft Schema Linking and Iterative Sub-SQL Refinement for Text-to-SQL15 Aug
  2. 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQL18 Dec

Other references · 18

  1. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  2. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  3. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
  4. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
  5. 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 223
  6. 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 191
  7. 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 183
  8. 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 164
  9. 2024MCS-SQL: Leveraging Multiple Prompts and Multiple-Choice Selection For Text-to-SQL Generationcited by 103
  10. 2024The Dawn of Natural Language to SQL: Are We Fully Ready?cited by 78
  11. 2024A Survey on Employing Large Language Models for Text-to-SQL Taskscited by 67
  12. 2024A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?cited by 54
6 more
  1. 2024RSL-SQL: Robust Schema Linking in Text-to-SQL Generationcited by 51
  2. 2025OpenSearch-SQL: Enhancing Text-to-SQL with Dynamic Few-shot and Consistency Alignmentcited by 51
  3. 2024Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generationcited by 49
  4. 2025Automatic Metadata Extraction for Text-to-SQLcited by 25
  5. 2025AutoLink: Autonomous Schema Exploration and Expansion for Scalable Schema Linking in Text-to-SQL at Scalecited by 15
  6. 2025Text-to-SQL as Dual-State Reasoning: Integrating Adaptive Context and Progressive Generationcited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 7.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026AgentSM: Semantic Memory for Agentic Text-to-SQL
  2. 2025BAPPA: Benchmarking Agents, Plans, and Pipelines for Automated Text-to-SQL Generation
  3. 2025ReFoRCE: A Text-to-SQL Agent with Self-Refinement, Consensus Enforcement, and Column Exploration
  4. 2026PV-SQL: Synergizing Database Probing and Rule-based Verification for Text-to-SQL Agents
  5. 2026A Semantic-Layer-Mediated Agent for Natural Language to SQL over Heterogeneous Enterprise Databases
  6. 2025RAISE: Reasoning Agent for Interactive SQL Exploration
  7. 2025From Queries to Insights: Agentic LLM Pipelines for Spatio-Temporal Text-to-SQL
  8. 2026AV-SQL: Decomposing Complex Text-to-SQL Queries with Agentic Views