BEAVER: An Enterprise Benchmark for Text-to-SQL
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
- 2023GPT-4 Technical Reportcited by 18,132
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
- 2023Towards General Text Embeddings with Multi-stage Contrastive Learningcited by 705
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
- 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 452
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
8 more
- 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 191
- 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 164
- 2021KaggleDBQA: Realistic Evaluation of Text-to-SQL Parserscited by 105
- 2023AnglE-optimized Text Embeddingscited by 98
- 2023ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL Systemscited by 42
- 2023MultiTabQA: Generating Tabular Answers for Multi-Table Question Answeringcited by 32
- 2024Is Table Retrieval a Solved Problem? Exploring Join-Aware Multi-Table Retrievalcited by 27
- 2023UNITE: A Unified Benchmark for Text-to-SQL Evaluationcited by 14
Built on by
Citing papers per year: 2024: 1; 2025: 14; 2026: 22.
37 papers.
Sort:
By area:
- 2025Is Long Context All You Need? Leveraging LLM's Extended Context for NL2SQLcited by 30
- 2025EnrichIndex: Using LLMs to Enrich Retrieval Indices Offlinecited by 15
- 2025SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applicationscited by 15
- 2025Think2SQL: Reinforce LLM Reasoning Capabilities for Text2SQLcited by 14
- 2025EllieSQL: Cost-Efficient Text-to-SQL with Complexity-Aware Routingcited by 13
- 2025An LLM-Based Approach for Insight Generation in Data Analysiscited by 12
- 2026Pervasive Annotation Errors Break Text-to-SQL Benchmarks and Leaderboardscited by 12
- 2025Can we Retrieve Everything All at Once? ARM: An Alignment-Oriented LLM-based Retrieval Methodcited by 10
- 2024DataLab: A Unified Platform for LLM-Powered Business Intelligencecited by 7
- 2025GenEdit: Compounding Operators and Continuous Improvement to Tackle Text-to-SQL in the Enterprisecited by 4
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunitiescited by 4
- 2025RubikSQL: Lifelong Learning Agentic Knowledge Base as an Industrial NL2SQL Systemcited by 4
25 more
- 2025BenchPress: A Human-in-the-Loop Annotation System for Rapid Text-to-SQL Benchmark Curationcited by 3
- 2025SQaLe: A Large Text-to-SQL Corpus Grounded in Real Schemascited by 3
- 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Modelscited by 3
- 2025Evaluating NL2SQL via SQL2NLcited by 2
- 2025Exploring Multi-Table Retrieval Through Iterative Searchcited by 2
- 2026CORE-T: COherent REtrieval of Tables for Text-to-SQLcited by 1
- 2026Fine-Grained Table Retrieval Through the Lens of Complex Queriescited by 1
- 2026EGREFINE: An Execution-Grounded Optimization Framework for Text-to-SQL Schema Refinementcited by 1
- 2026Never the Number: Structural Abstention for AI Systems Whose Answers Are Consumed as Factcited by 1
- 2026SQLMorph: Query Mutation and Fine-Grained Metrics for Text-to-SQL Evaluationcited by 1
- 2026Semantic Caching and Intent-Driven Context Optimization for Multi-Agent Natural Language to Code Systemscited by 0
- 2026GraphER: An Efficient Graph-Based Enrichment and Reranking Method for Retrieval-Augmented Generationcited by 0
- 2026A Demonstration of SQLyzr: A Platform for Fine-Grained Text-to-SQL Evaluation and Analysiscited by 0
- 2026Retrieve Only Relevant Tables Whether Few or Many: Adaptive Table Retrieval Methodcited by 0
- 2026BADGER: Bridging Agentic and Deterministic Evaluation for Generative Enterprise Reasoningcited by 0
- 2026SOMA-SQL: Resolving Multi-Source Ambiguity in NL-to-SQL via Synthetic Log and Execution Probingcited by 0
- 2026Finding the Right Tables and Columns: A Benchmark and Corpus-Adaptive Embeddings for SQL Schema Retrievalcited by 0
- 2026SEGRA: A Structured Experience Guided Reasoning Agent for Property Graph Question Answeringcited by 0
- 2026PLSQLBench: Benchmarking LLM Systems for Executable Procedural Database Programmingcited by 0
- 2026Beyond the Harness: End-to-End Optimization of Context Artifacts for Enterprise Text-to-SQLcited by 0
- 2026Self-Evolving Search Indexcited by 0
- 2026BudgetSchemaBench: A Budget-Swept Diagnostic for Schema Context in Text-to-SQLcited by 0
- 2026Enterprise Representation Simplification (ERS): Reducing Representational Complexity for Enterprise AIcited by 0
- 2026JoinGR: Learning to Traverse Join Graphs for Table Retrievalcited by 0
- 2026Argo-Bench: Evaluating Data Agents on Enterprise-Scale Workflowscited by 0
- 2026Argo-Bench: Evaluating Data Agents on Enterprise-Scale Workflows1 Oct 2026
- 2026JoinGR: Learning to Traverse Join Graphs for Table Retrieval1 Oct 2026
- 2026Enterprise Representation Simplification (ERS): Reducing Representational Complexity for Enterprise AI30 Sep 2026
- 2026Self-Evolving Search Index17 Sep 2026
- 2026BudgetSchemaBench: A Budget-Swept Diagnostic for Schema Context in Text-to-SQL8 Sep 2026
- 2026SQLMorph: Query Mutation and Fine-Grained Metrics for Text-to-SQL Evaluation8 Sep 2026
- 2026Beyond the Harness: End-to-End Optimization of Context Artifacts for Enterprise Text-to-SQL24 Aug 2026
- 2026PLSQLBench: Benchmarking LLM Systems for Executable Procedural Database Programming16 Aug 2026
- 2026Never the Number: Structural Abstention for AI Systems Whose Answers Are Consumed as Fact14 Aug 2026
- 2026SEGRA: A Structured Experience Guided Reasoning Agent for Property Graph Question Answering21 Jul 2026
- 2026Finding the Right Tables and Columns: A Benchmark and Corpus-Adaptive Embeddings for SQL Schema Retrieval14 Jul 2026
- 2026SOMA-SQL: Resolving Multi-Source Ambiguity in NL-to-SQL via Synthetic Log and Execution Probing9 Jun 2026
25 more
- 2026BADGER: Bridging Agentic and Deterministic Evaluation for Generative Enterprise Reasoning1 Jun 2026
- 2026EGREFINE: An Execution-Grounded Optimization Framework for Text-to-SQL Schema Refinement1 May 2026
- 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Models28 Apr 2026
- 2026A Demonstration of SQLyzr: A Platform for Fine-Grained Text-to-SQL Evaluation and Analysis23 Apr 2026
- 2026Retrieve Only Relevant Tables Whether Few or Many: Adaptive Table Retrieval Method12 Apr 2026
- 2026GraphER: An Efficient Graph-Based Enrichment and Reranking Method for Retrieval-Augmented Generation26 Mar 2026
- 2026Fine-Grained Table Retrieval Through the Lens of Complex Queries7 Mar 2026
- 2026CORE-T: COherent REtrieval of Tables for Text-to-SQL19 Jan 2026
- 2026Semantic Caching and Intent-Driven Context Optimization for Multi-Agent Natural Language to Code Systems16 Jan 2026
- 2026Pervasive Annotation Errors Break Text-to-SQL Benchmarks and Leaderboards13 Jan 2026
- 2025SQaLe: A Large Text-to-SQL Corpus Grounded in Real Schemas16 Dec 2025
- 2025Exploring Multi-Table Retrieval Through Iterative Search17 Nov 2025
- 2025BenchPress: A Human-in-the-Loop Annotation System for Rapid Text-to-SQL Benchmark Curation11 Oct 2025
- 2025Evaluating NL2SQL via SQL2NL4 Sep 2025
- 2025RubikSQL: Lifelong Learning Agentic Knowledge Base as an Industrial NL2SQL System25 Aug 2025
- 2025SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applications23 Jun 2025
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunities28 May 2025
- 2025Think2SQL: Reinforce LLM Reasoning Capabilities for Text2SQL21 Apr 2025
- 2025EnrichIndex: Using LLMs to Enrich Retrieval Indices Offline4 Apr 2025
- 2025EllieSQL: Cost-Efficient Text-to-SQL with Complexity-Aware Routing28 Mar 2025
- 2025GenEdit: Compounding Operators and Continuous Improvement to Tackle Text-to-SQL in the Enterprise27 Mar 2025
- 2025An LLM-Based Approach for Insight Generation in Data Analysis20 Feb 2025
- 2025Can we Retrieve Everything All at Once? ARM: An Alignment-Oriented LLM-based Retrieval Method30 Jan 2025
- 2025Is Long Context All You Need? Leveraging LLM's Extended Context for NL2SQL21 Jan 2025
- 2024DataLab: A Unified Platform for LLM-Powered Business Intelligence3 Dec 2024
- 2025Can we Retrieve Everything All at Once? ARM: An Alignment-Oriented LLM-based Retrieval Methodcited by 10
- 2025RubikSQL: Lifelong Learning Agentic Knowledge Base as an Industrial NL2SQL Systemcited by 4
- 2026Semantic Caching and Intent-Driven Context Optimization for Multi-Agent Natural Language to Code Systemscited by 0
- 2026Self-Evolving Search Indexcited by 0
- 2026Self-Evolving Search Index17 Sep 2026
- 2026Semantic Caching and Intent-Driven Context Optimization for Multi-Agent Natural Language to Code Systems16 Jan 2026
- 2025RubikSQL: Lifelong Learning Agentic Knowledge Base as an Industrial NL2SQL System25 Aug 2025
- 2025Can we Retrieve Everything All at Once? ARM: An Alignment-Oriented LLM-based Retrieval Method30 Jan 2025
- 2025Is Long Context All You Need? Leveraging LLM's Extended Context for NL2SQLcited by 30
- 2025EnrichIndex: Using LLMs to Enrich Retrieval Indices Offlinecited by 15
- 2025SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applicationscited by 15
- 2025EllieSQL: Cost-Efficient Text-to-SQL with Complexity-Aware Routingcited by 13
- 2025An LLM-Based Approach for Insight Generation in Data Analysiscited by 12
- 2026Pervasive Annotation Errors Break Text-to-SQL Benchmarks and Leaderboardscited by 12
- 2024DataLab: A Unified Platform for LLM-Powered Business Intelligencecited by 7
- 2025GenEdit: Compounding Operators and Continuous Improvement to Tackle Text-to-SQL in the Enterprisecited by 4
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunitiescited by 4
- 2025BenchPress: A Human-in-the-Loop Annotation System for Rapid Text-to-SQL Benchmark Curationcited by 3
- 2025SQaLe: A Large Text-to-SQL Corpus Grounded in Real Schemascited by 3
- 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Modelscited by 3
12 most cited of 29 All 29 (JSON)
- 2026Argo-Bench: Evaluating Data Agents on Enterprise-Scale Workflows1 Oct 2026
- 2026JoinGR: Learning to Traverse Join Graphs for Table Retrieval1 Oct 2026
- 2026Enterprise Representation Simplification (ERS): Reducing Representational Complexity for Enterprise AI30 Sep 2026
- 2026BudgetSchemaBench: A Budget-Swept Diagnostic for Schema Context in Text-to-SQL8 Sep 2026
- 2026SQLMorph: Query Mutation and Fine-Grained Metrics for Text-to-SQL Evaluation8 Sep 2026
- 2026Beyond the Harness: End-to-End Optimization of Context Artifacts for Enterprise Text-to-SQL24 Aug 2026
- 2026PLSQLBench: Benchmarking LLM Systems for Executable Procedural Database Programming16 Aug 2026
- 2026Never the Number: Structural Abstention for AI Systems Whose Answers Are Consumed as Fact14 Aug 2026
- 2026Finding the Right Tables and Columns: A Benchmark and Corpus-Adaptive Embeddings for SQL Schema Retrieval14 Jul 2026
- 2026SOMA-SQL: Resolving Multi-Source Ambiguity in NL-to-SQL via Synthetic Log and Execution Probing9 Jun 2026
- 2026EGREFINE: An Execution-Grounded Optimization Framework for Text-to-SQL Schema Refinement1 May 2026
- 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Models28 Apr 2026
12 newest of 29 All 29 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026PIPE-RDF: An LLM-Assisted Pipeline for Enterprise RDF Benchmarking
- 2024Lucy: Think and Reason to Solve Text-to-SQL
- 2025SING-SQL: A Synthetic Data Generation Framework for In-Domain Text-to-SQL Translation
- 2025Multilingual Text-to-SQL: Benchmarking the Limits of Language Models with Collaborative Language Agents
- 2026BatchDAG: LLM-Planned Execution Graphs for Scalable Ad-Hoc Analysis Over Enterprise Data
- 2025LLMSQL: Upgrading WikiSQL for the LLM Era of Text-to-SQL
- 2026GROUND: Reducing Hallucinations in LLM-Based Enterprise Analytics Through Governed Semantic Definitions
- 2025ORANGE: An Online Reflection ANd GEneration framework with Domain Knowledge for Text-to-SQL