mlsanityData to 7 Oct 2026

BEAVER: An Enterprise Benchmark for Text-to-SQL

arXiv 2409.02038 ↗First posted 3 Sep 2024cs.CL cs.AI cs.DBcited by 37

Not on the map. Why?

Abstract (arXiv)

Existing text-to-SQL benchmarks have largely been constructed from public databases with well-structured schemas and simplistic question-SQL pairs. While large language models (LLMs) excel on these settings, their efficacy in complex private enterprise environments, characterized by intricate schemas, domain knowledge, and analytical user queries involving sophisticated structures and functions, remains unproven. To bridge this gap, we introduce BEAVER, the first text-to-SQL benchmark derived from private data warehouses. It comprises 9128 question-SQL pairs sourced from real-world query logs and 812 tables across 19 diverse domains. Building this benchmark is challenging because (1) enterprise query logs are scarce due to privacy constraints, and (2) existing all-or-nothing evaluation metrics based on accuracy make error diagnosis difficult -- especially when producing a correct query involves solving multiple compounded challenges, such as domain knowledge and query complexity. We address these issues at two levels. At the dataset level, we synthesize high-fidelity, expert-verified queries that increase dataset size and isolate individual challenges or combine them, producing queries focused on domain knowledge, query complexity, and both. At the evaluation level, we provide human annotations and evaluation metrics for five critical subtasks to enable fine-grained analysis. Our evaluation reveals a significant performance gap compared to existing benchmarks: SOTA agentic frameworks using the advanced model GPT-5.2 achieve only 10.8% accuracy. When provided with all subtask annotations as oracle hints, accuracy increases to 30.1%, confirming that a major bottleneck lies in correctly resolving these subtasks. Finally, we provide a taxonomy of the residual errors that persist even with subtask hints, identifying specific challenges such as the use of advanced functions.

Key facts. Cited by 37 papers in the map (data through 7 Oct 2026). Builds on 20 of its 41 references that are in the map. First posted on arXiv 3 Sep 2024.

Builds on

20 of 41 references.

References · 20

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  5. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  6. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  7. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  8. 2023Towards General Text Embeddings with Multi-stage Contrastive Learningcited by 705
  9. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  10. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
  11. 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 452
  12. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
8 more
  1. 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 191
  2. 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 164
  3. 2021KaggleDBQA: Realistic Evaluation of Text-to-SQL Parserscited by 105
  4. 2023AnglE-optimized Text Embeddingscited by 98
  5. 2023ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL Systemscited by 42
  6. 2023MultiTabQA: Generating Tabular Answers for Multi-Table Question Answeringcited by 32
  7. 2024Is Table Retrieval a Solved Problem? Exploring Join-Aware Multi-Table Retrievalcited by 27
  8. 2023UNITE: A Unified Benchmark for Text-to-SQL Evaluationcited by 14

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 14; 2026: 22.

37 papers.

Sort:

By area:

  1. 2025Is Long Context All You Need? Leveraging LLM's Extended Context for NL2SQLcited by 30
  2. 2025EnrichIndex: Using LLMs to Enrich Retrieval Indices Offlinecited by 15
  3. 2025SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applicationscited by 15
  4. 2025Think2SQL: Reinforce LLM Reasoning Capabilities for Text2SQLcited by 14
  5. 2025EllieSQL: Cost-Efficient Text-to-SQL with Complexity-Aware Routingcited by 13
  6. 2025An LLM-Based Approach for Insight Generation in Data Analysiscited by 12
  7. 2026Pervasive Annotation Errors Break Text-to-SQL Benchmarks and Leaderboardscited by 12
  8. 2025Can we Retrieve Everything All at Once? ARM: An Alignment-Oriented LLM-based Retrieval Methodcited by 10
  9. 2024DataLab: A Unified Platform for LLM-Powered Business Intelligencecited by 7
  10. 2025GenEdit: Compounding Operators and Continuous Improvement to Tackle Text-to-SQL in the Enterprisecited by 4
  11. 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunitiescited by 4
  12. 2025RubikSQL: Lifelong Learning Agentic Knowledge Base as an Industrial NL2SQL Systemcited by 4
25 more
  1. 2025BenchPress: A Human-in-the-Loop Annotation System for Rapid Text-to-SQL Benchmark Curationcited by 3
  2. 2025SQaLe: A Large Text-to-SQL Corpus Grounded in Real Schemascited by 3
  3. 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Modelscited by 3
  4. 2025Evaluating NL2SQL via SQL2NLcited by 2
  5. 2025Exploring Multi-Table Retrieval Through Iterative Searchcited by 2
  6. 2026CORE-T: COherent REtrieval of Tables for Text-to-SQLcited by 1
  7. 2026Fine-Grained Table Retrieval Through the Lens of Complex Queriescited by 1
  8. 2026EGREFINE: An Execution-Grounded Optimization Framework for Text-to-SQL Schema Refinementcited by 1
  9. 2026Never the Number: Structural Abstention for AI Systems Whose Answers Are Consumed as Factcited by 1
  10. 2026SQLMorph: Query Mutation and Fine-Grained Metrics for Text-to-SQL Evaluationcited by 1
  11. 2026Semantic Caching and Intent-Driven Context Optimization for Multi-Agent Natural Language to Code Systemscited by 0
  12. 2026GraphER: An Efficient Graph-Based Enrichment and Reranking Method for Retrieval-Augmented Generationcited by 0
  13. 2026A Demonstration of SQLyzr: A Platform for Fine-Grained Text-to-SQL Evaluation and Analysiscited by 0
  14. 2026Retrieve Only Relevant Tables Whether Few or Many: Adaptive Table Retrieval Methodcited by 0
  15. 2026BADGER: Bridging Agentic and Deterministic Evaluation for Generative Enterprise Reasoningcited by 0
  16. 2026SOMA-SQL: Resolving Multi-Source Ambiguity in NL-to-SQL via Synthetic Log and Execution Probingcited by 0
  17. 2026Finding the Right Tables and Columns: A Benchmark and Corpus-Adaptive Embeddings for SQL Schema Retrievalcited by 0
  18. 2026SEGRA: A Structured Experience Guided Reasoning Agent for Property Graph Question Answeringcited by 0
  19. 2026PLSQLBench: Benchmarking LLM Systems for Executable Procedural Database Programmingcited by 0
  20. 2026Beyond the Harness: End-to-End Optimization of Context Artifacts for Enterprise Text-to-SQLcited by 0
  21. 2026Self-Evolving Search Indexcited by 0
  22. 2026BudgetSchemaBench: A Budget-Swept Diagnostic for Schema Context in Text-to-SQLcited by 0
  23. 2026Enterprise Representation Simplification (ERS): Reducing Representational Complexity for Enterprise AIcited by 0
  24. 2026JoinGR: Learning to Traverse Join Graphs for Table Retrievalcited by 0
  25. 2026Argo-Bench: Evaluating Data Agents on Enterprise-Scale Workflowscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026PIPE-RDF: An LLM-Assisted Pipeline for Enterprise RDF Benchmarking
  2. 2024Lucy: Think and Reason to Solve Text-to-SQL
  3. 2025SING-SQL: A Synthetic Data Generation Framework for In-Domain Text-to-SQL Translation
  4. 2025Multilingual Text-to-SQL: Benchmarking the Limits of Language Models with Collaborative Language Agents
  5. 2026BatchDAG: LLM-Planned Execution Graphs for Scalable Ad-Hoc Analysis Over Enterprise Data
  6. 2025LLMSQL: Upgrading WikiSQL for the LLM Era of Text-to-SQL
  7. 2026GROUND: Reducing Hallucinations in LLM-Based Enterprise Analytics Through Governed Semantic Definitions
  8. 2025ORANGE: An Online Reflection ANd GEneration framework with Domain Knowledge for Text-to-SQL