NL2SQL-BUGs: A Benchmark for Detecting Semantic Errors in NL2SQL Translation
Not on the map. Why?
Abstract (arXiv)
Natural Language to SQL (i.e., NL2SQL) translation is crucial for democratizing database access, but even state-of-the-art models frequently generate semantically incorrect SQL queries, hindering the widespread adoption of these techniques by database vendors. While existing NL2SQL benchmarks primarily focus on correct query translation, we argue that a benchmark dedicated to identifying common errors in NL2SQL translations is equally important, as accurately detecting these errors is a prerequisite for any subsequent correction-whether performed by humans or models. To address this gap, we propose NL2SQL-BUGs, the first benchmark dedicated to detecting and categorizing semantic errors in NL2SQL translation. NL2SQL-BUGs adopts a two-level taxonomy to systematically classify semantic errors, covering 9 main categories and 31 subcategories. The benchmark consists of 2,018 expert-annotated instances, each containing a natural language query, database schema, and SQL query, with detailed error annotations for semantically incorrect queries. Through comprehensive experiments, we demonstrate that current large language models exhibit significant limitations in semantic error detection, achieving an average detection accuracy of 75.16%. Specifically, our method successfully detected 106 errors (accounting for 6.91%) in BIRD, a widely-used NL2SQL dataset, which were previously undetected annotation errors. This highlights the importance of semantic error detection in NL2SQL systems. The benchmark is publicly available at https://nl2sql-bugs.github.io/.
Key facts. Cited by 33 papers in the map (data through 14 Oct 2026). First posted on arXiv 15 Mar 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 9; 2026: 24.
33 papers.
Sort:
By area:
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 126
- 2025A Survey of Data Agents: Emerging Paradigm or Overstated Hype?cited by 30
- 2025Reward-SQL: Boosting Text-to-SQL via Stepwise Execution-Aware Reasoning and Process-Supervised Rewardscited by 27
- 2025Time Travel is Cheating: Going Live with DeepFund for Real-Time Fund Investment Benchmarkingcited by 21
- 2025EllieSQL: Cost-Efficient Text-to-SQL with Complexity-Aware Routingcited by 13
- 2025ReEx-SQL: Reasoning with Execution-Aware Reinforcement Learning for Text-to-SQLcited by 8
- 2026Arming Data Agents with Tribal Knowledgecited by 7
- 2025StepFly: Agentic Troubleshooting Guide Automation for Incident Diagnosiscited by 5
- 2026Noisy Data is Destructive to Reinforcement Learning with Verifiable Rewardscited by 5
- 2025InsightEval: An Expert-Curated Benchmark for Assessing Insight Discovery in LLM-Driven Data Agentscited by 3
- 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Modelscited by 3
- 2026DataSpace: Benchmarking Data Agents for Verifiable Analytics over Heterogeneous Workspacescited by 3
21 more
- 2026ErrorLLM: Modeling SQL Errors for Text-to-SQL Refinementcited by 2
- 2026An Efficient and Effective Evaluator for Text2SQL Models on Unseen and Unlabeled Datacited by 2
- 2026Generating Expressive and Customizable Evals for Timeseries Data Analysis Agents with AgentFuelcited by 1
- 2026Human-Level Text-to-SQL via Reinforcement Learning on Verified Data, Without Pipeline Engineeringcited by 1
- 2026NL2SQLBench: A Modular Benchmarking Framework for LLM-Enabled NL2SQL Solutionscited by 1
- 2026Learning to Evaluate: Cost-Effective Model Evaluation on Unlabeled Data with Meta-Learningcited by 1
- 2026TuneAhead: Predicting Fine-tuning Performance Before Full Training Beginscited by 1
- 2026SQLConductor: Search-to-Policy Learning for Step-wise Text-to-SQL Orchestrationcited by 1
- 2025Bridging Global Intent with Local Details: A Hierarchical Representation Approach for Semantic Validation in Text-to-SQLcited by 0
- 2026ROSE: An Intent-Centered Evaluation Metric for NL2SQLcited by 0
- 2026FINER-SQL: Boosting Small Language Models for Text-to-SQLcited by 0
- 2026Business Utility of Large Language Models as Exploratory Data Analysis Agentscited by 0
- 2026Integrating Reasoning and Generalization in Text-to-SQL via Self-Enhanced Fine-Tuningcited by 0
- 2026A Risk Decomposition Framework for Pre-Hoc Fine-Tuning Predictioncited by 0
- 2026EvoSQL: Memory-Augmented Critic-Generator Co-Evolution for Text-to-SQLcited by 0
- 2026TLA+-Bench: An Execution-Grounded Benchmark and Dataset for Natural-Language to TLA Specification Generationcited by 0
- 2026ACTS-SQL: Agentic and Critic-Oriented Tree-Structured SQL Correctness with Large Language Modelscited by 0
- 2026Symbolic Separation: Grounding Deep Agents in Knowledge Graphs for Trustworthy Operational Data Analyticscited by 0
- 2026COAL-SQL: Coverage-Guided Augmentation and Failure-Driven Learning for Text-to-SQL Post-Trainingcited by 0
- 2026Why, Where, How: Taxonomy-guided Error Grounding for Code Repair in NL2SQLcited by 0
- 2026SALUS: Automated Auditing of NL-to-SQL Benchmarks through Weak Supervision of Multi-Agent Outputcited by 0
- 2026SALUS: Automated Auditing of NL-to-SQL Benchmarks through Weak Supervision of Multi-Agent Output4 Oct 2026
- 2026Why, Where, How: Taxonomy-guided Error Grounding for Code Repair in NL2SQL4 Oct 2026
- 2026Symbolic Separation: Grounding Deep Agents in Knowledge Graphs for Trustworthy Operational Data Analytics15 Sep 2026
- 2026ACTS-SQL: Agentic and Critic-Oriented Tree-Structured SQL Correctness with Large Language Models15 Aug 2026
- 2026COAL-SQL: Coverage-Guided Augmentation and Failure-Driven Learning for Text-to-SQL Post-Training4 Aug 2026
- 2026DataSpace: Benchmarking Data Agents for Verifiable Analytics over Heterogeneous Workspaces4 Aug 2026
- 2026TLA+-Bench: An Execution-Grounded Benchmark and Dataset for Natural-Language to TLA Specification Generation26 Jul 2026
- 2026SQLConductor: Search-to-Policy Learning for Step-wise Text-to-SQL Orchestration22 Jun 2026
- 2026TuneAhead: Predicting Fine-tuning Performance Before Full Training Begins16 Jun 2026
- 2026A Risk Decomposition Framework for Pre-Hoc Fine-Tuning Prediction16 Jun 2026
- 2026Integrating Reasoning and Generalization in Text-to-SQL via Self-Enhanced Fine-Tuning14 Jun 2026
- 2026EvoSQL: Memory-Augmented Critic-Generator Co-Evolution for Text-to-SQL4 Jun 2026
21 more
- 2026Learning to Evaluate: Cost-Effective Model Evaluation on Unlabeled Data with Meta-Learning22 May 2026
- 2026Business Utility of Large Language Models as Exploratory Data Analysis Agents8 May 2026
- 2026FINER-SQL: Boosting Small Language Models for Text-to-SQL5 May 2026
- 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Models28 Apr 2026
- 2026ROSE: An Intent-Centered Evaluation Metric for NL2SQL14 Apr 2026
- 2026NL2SQLBench: A Modular Benchmarking Framework for LLM-Enabled NL2SQL Solutions13 Apr 2026
- 2026Human-Level Text-to-SQL via Reinforcement Learning on Verified Data, Without Pipeline Engineering20 Mar 2026
- 2026Noisy Data is Destructive to Reinforcement Learning with Verifiable Rewards17 Mar 2026
- 2026Generating Expressive and Customizable Evals for Timeseries Data Analysis Agents with AgentFuel12 Mar 2026
- 2026An Efficient and Effective Evaluator for Text2SQL Models on Unseen and Unlabeled Data8 Mar 2026
- 2026ErrorLLM: Modeling SQL Errors for Text-to-SQL Refinement4 Mar 2026
- 2026Arming Data Agents with Tribal Knowledge13 Feb 2026
- 2025Bridging Global Intent with Local Details: A Hierarchical Representation Approach for Semantic Validation in Text-to-SQL28 Dec 2025
- 2025InsightEval: An Expert-Curated Benchmark for Assessing Insight Discovery in LLM-Driven Data Agents28 Nov 2025
- 2025A Survey of Data Agents: Emerging Paradigm or Overstated Hype?27 Oct 2025
- 2025StepFly: Agentic Troubleshooting Guide Automation for Incident Diagnosis11 Oct 2025
- 2025ReEx-SQL: Reasoning with Execution-Aware Reinforcement Learning for Text-to-SQL19 May 2025
- 2025Time Travel is Cheating: Going Live with DeepFund for Real-Time Fund Investment Benchmarking16 May 2025
- 2025Reward-SQL: Boosting Text-to-SQL via Stepwise Execution-Aware Reasoning and Process-Supervised Rewards7 May 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025EllieSQL: Cost-Efficient Text-to-SQL with Complexity-Aware Routing28 Mar 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 126
- 2025A Survey of Data Agents: Emerging Paradigm or Overstated Hype?cited by 30
- 2026Arming Data Agents with Tribal Knowledgecited by 7
- 2025StepFly: Agentic Troubleshooting Guide Automation for Incident Diagnosiscited by 5
- 2025InsightEval: An Expert-Curated Benchmark for Assessing Insight Discovery in LLM-Driven Data Agentscited by 3
- 2026Business Utility of Large Language Models as Exploratory Data Analysis Agentscited by 0
- 2026ACTS-SQL: Agentic and Critic-Oriented Tree-Structured SQL Correctness with Large Language Modelscited by 0
- 2026Symbolic Separation: Grounding Deep Agents in Knowledge Graphs for Trustworthy Operational Data Analyticscited by 0
- 2026SALUS: Automated Auditing of NL-to-SQL Benchmarks through Weak Supervision of Multi-Agent Outputcited by 0
- 2026SALUS: Automated Auditing of NL-to-SQL Benchmarks through Weak Supervision of Multi-Agent Output4 Oct 2026
- 2026Symbolic Separation: Grounding Deep Agents in Knowledge Graphs for Trustworthy Operational Data Analytics15 Sep 2026
- 2026ACTS-SQL: Agentic and Critic-Oriented Tree-Structured SQL Correctness with Large Language Models15 Aug 2026
- 2026Business Utility of Large Language Models as Exploratory Data Analysis Agents8 May 2026
- 2026Arming Data Agents with Tribal Knowledge13 Feb 2026
- 2025InsightEval: An Expert-Curated Benchmark for Assessing Insight Discovery in LLM-Driven Data Agents28 Nov 2025
- 2025A Survey of Data Agents: Emerging Paradigm or Overstated Hype?27 Oct 2025
- 2025StepFly: Agentic Troubleshooting Guide Automation for Incident Diagnosis11 Oct 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025Reward-SQL: Boosting Text-to-SQL via Stepwise Execution-Aware Reasoning and Process-Supervised Rewardscited by 27
- 2025ReEx-SQL: Reasoning with Execution-Aware Reinforcement Learning for Text-to-SQLcited by 8
- 2026Integrating Reasoning and Generalization in Text-to-SQL via Self-Enhanced Fine-Tuningcited by 0
- 2026Integrating Reasoning and Generalization in Text-to-SQL via Self-Enhanced Fine-Tuning14 Jun 2026
- 2025ReEx-SQL: Reasoning with Execution-Aware Reinforcement Learning for Text-to-SQL19 May 2025
- 2025Reward-SQL: Boosting Text-to-SQL via Stepwise Execution-Aware Reasoning and Process-Supervised Rewards7 May 2025
- 2025Time Travel is Cheating: Going Live with DeepFund for Real-Time Fund Investment Benchmarkingcited by 21
- 2025EllieSQL: Cost-Efficient Text-to-SQL with Complexity-Aware Routingcited by 13
- 2026Noisy Data is Destructive to Reinforcement Learning with Verifiable Rewardscited by 5
- 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Modelscited by 3
- 2026DataSpace: Benchmarking Data Agents for Verifiable Analytics over Heterogeneous Workspacescited by 3
- 2026ErrorLLM: Modeling SQL Errors for Text-to-SQL Refinementcited by 2
- 2026An Efficient and Effective Evaluator for Text2SQL Models on Unseen and Unlabeled Datacited by 2
- 2026Generating Expressive and Customizable Evals for Timeseries Data Analysis Agents with AgentFuelcited by 1
- 2026NL2SQLBench: A Modular Benchmarking Framework for LLM-Enabled NL2SQL Solutionscited by 1
- 2026Learning to Evaluate: Cost-Effective Model Evaluation on Unlabeled Data with Meta-Learningcited by 1
- 2026TuneAhead: Predicting Fine-tuning Performance Before Full Training Beginscited by 1
- 2026SQLConductor: Search-to-Policy Learning for Step-wise Text-to-SQL Orchestrationcited by 1
12 most cited of 20 All 20 (JSON)
- 2026Why, Where, How: Taxonomy-guided Error Grounding for Code Repair in NL2SQL4 Oct 2026
- 2026COAL-SQL: Coverage-Guided Augmentation and Failure-Driven Learning for Text-to-SQL Post-Training4 Aug 2026
- 2026DataSpace: Benchmarking Data Agents for Verifiable Analytics over Heterogeneous Workspaces4 Aug 2026
- 2026TLA+-Bench: An Execution-Grounded Benchmark and Dataset for Natural-Language to TLA Specification Generation26 Jul 2026
- 2026SQLConductor: Search-to-Policy Learning for Step-wise Text-to-SQL Orchestration22 Jun 2026
- 2026TuneAhead: Predicting Fine-tuning Performance Before Full Training Begins16 Jun 2026
- 2026A Risk Decomposition Framework for Pre-Hoc Fine-Tuning Prediction16 Jun 2026
- 2026EvoSQL: Memory-Augmented Critic-Generator Co-Evolution for Text-to-SQL4 Jun 2026
- 2026Learning to Evaluate: Cost-Effective Model Evaluation on Unlabeled Data with Meta-Learning22 May 2026
- 2026FINER-SQL: Boosting Small Language Models for Text-to-SQL5 May 2026
- 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Models28 Apr 2026
- 2026ROSE: An Intent-Centered Evaluation Metric for NL2SQL14 Apr 2026
12 newest of 20 All 20 (JSON)