mlsanityData to 14 Oct 2026

NL2SQL-BUGs: A Benchmark for Detecting Semantic Errors in NL2SQL Translation

arXiv 2503.11984 ↗First posted 15 Mar 2025cs.DBcited by 33

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

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 9; 2026: 24.

33 papers.

Sort:

By area:

  1. 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 126
  2. 2025A Survey of Data Agents: Emerging Paradigm or Overstated Hype?cited by 30
  3. 2025Reward-SQL: Boosting Text-to-SQL via Stepwise Execution-Aware Reasoning and Process-Supervised Rewardscited by 27
  4. 2025Time Travel is Cheating: Going Live with DeepFund for Real-Time Fund Investment Benchmarkingcited by 21
  5. 2025EllieSQL: Cost-Efficient Text-to-SQL with Complexity-Aware Routingcited by 13
  6. 2025ReEx-SQL: Reasoning with Execution-Aware Reinforcement Learning for Text-to-SQLcited by 8
  7. 2026Arming Data Agents with Tribal Knowledgecited by 7
  8. 2025StepFly: Agentic Troubleshooting Guide Automation for Incident Diagnosiscited by 5
  9. 2026Noisy Data is Destructive to Reinforcement Learning with Verifiable Rewardscited by 5
  10. 2025InsightEval: An Expert-Curated Benchmark for Assessing Insight Discovery in LLM-Driven Data Agentscited by 3
  11. 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Modelscited by 3
  12. 2026DataSpace: Benchmarking Data Agents for Verifiable Analytics over Heterogeneous Workspacescited by 3
21 more
  1. 2026ErrorLLM: Modeling SQL Errors for Text-to-SQL Refinementcited by 2
  2. 2026An Efficient and Effective Evaluator for Text2SQL Models on Unseen and Unlabeled Datacited by 2
  3. 2026Generating Expressive and Customizable Evals for Timeseries Data Analysis Agents with AgentFuelcited by 1
  4. 2026Human-Level Text-to-SQL via Reinforcement Learning on Verified Data, Without Pipeline Engineeringcited by 1
  5. 2026NL2SQLBench: A Modular Benchmarking Framework for LLM-Enabled NL2SQL Solutionscited by 1
  6. 2026Learning to Evaluate: Cost-Effective Model Evaluation on Unlabeled Data with Meta-Learningcited by 1
  7. 2026TuneAhead: Predicting Fine-tuning Performance Before Full Training Beginscited by 1
  8. 2026SQLConductor: Search-to-Policy Learning for Step-wise Text-to-SQL Orchestrationcited by 1
  9. 2025Bridging Global Intent with Local Details: A Hierarchical Representation Approach for Semantic Validation in Text-to-SQLcited by 0
  10. 2026ROSE: An Intent-Centered Evaluation Metric for NL2SQLcited by 0
  11. 2026FINER-SQL: Boosting Small Language Models for Text-to-SQLcited by 0
  12. 2026Business Utility of Large Language Models as Exploratory Data Analysis Agentscited by 0
  13. 2026Integrating Reasoning and Generalization in Text-to-SQL via Self-Enhanced Fine-Tuningcited by 0
  14. 2026A Risk Decomposition Framework for Pre-Hoc Fine-Tuning Predictioncited by 0
  15. 2026EvoSQL: Memory-Augmented Critic-Generator Co-Evolution for Text-to-SQLcited by 0
  16. 2026TLA+-Bench: An Execution-Grounded Benchmark and Dataset for Natural-Language to TLA Specification Generationcited by 0
  17. 2026ACTS-SQL: Agentic and Critic-Oriented Tree-Structured SQL Correctness with Large Language Modelscited by 0
  18. 2026Symbolic Separation: Grounding Deep Agents in Knowledge Graphs for Trustworthy Operational Data Analyticscited by 0
  19. 2026COAL-SQL: Coverage-Guided Augmentation and Failure-Driven Learning for Text-to-SQL Post-Trainingcited by 0
  20. 2026Why, Where, How: Taxonomy-guided Error Grounding for Code Repair in NL2SQLcited by 0
  21. 2026SALUS: Automated Auditing of NL-to-SQL Benchmarks through Weak Supervision of Multi-Agent Outputcited by 0