Be CARE-ful with Text-to-SQL Benchmarks
Haonan Wang, Jiaxiang Liu, Elaine Ang, Tiancheng Ge, Wanting You, Austin S Wijaya, Reya Vir, Tianle Zhou, Mihir Agarwal, Yusen Zhang, Eugene Wu
NeurIPS page · OpenReview · Open on the map
Category: LLM Agents, Evals & Benchmarks › Enterprise AI Agent Benchmarks · Type: benchmark or dataset · Keywords: text-to-SQL benchmark, enterprise agents, operational criteria, concurrency control, access control, business rules
Areas: AI Agents › Agent Benchmarking › Professional agent benchmarks; Evaluation & Benchmarks › Model Capability Diagnostics › Agent Benchmarks; Benchmarks for LLMs & Agents › Cross-Domain Agent Evaluation › LLM Agent Benchmarks
Summary
CAREFUL introduces a realistic benchmark and evaluation suite that captures four operational criteria-Concurrency, Access control, Rules, and Efficiency-for enterprise text-to-SQL agents, highlighting the gap between correct SQL generation and production-ready reliability.
Explained to a 5-year-old
People make computer programs that can answer questions by writing special computer language for databases. These programs need to be careful because databases can change, and there are rules about who can see things and how fast they work. The researchers made a big set of test questions that check if the programs follow those rules and stay safe. They looked at many real stories from companies to make sure the tests are like real problems. This helps make the programs more trustworthy before they are used in important work.
Explained to a 5-year-old, longer
Imagine a computer that can read a question in English and then write a special code to get the answer from a database. In real life, databases are not always quiet; they can change while the computer is working. There are also rules about who can look at what information and how fast the computer should answer. Sometimes the computer must follow safety rules to avoid making mistakes that could cost money. The researchers noticed that most tests only check if the answer is correct, not if the computer followed all the other rules. So they collected many real stories from companies where things went wrong because of concurrency, access, or efficiency problems. They turned those stories into a set of tasks that ask the computer to handle these situations correctly. The tasks are divided into four categories: making sure the computer works when data changes, respecting access controls, following business rules, and staying efficient. They used existing databases from two popular test collections to make the tasks realistic. A team of experts and students carefully checked each task to make sure it was correct and useful. When they tested big language models on these tasks, the models often failed to meet all the requirements, even if they gave the right answer. This new test helps developers see where their programs need improvement and makes them safer for real-world use.
For a technical reader
The paper identifies a gap in existing text-to-SQL benchmarks, which only measure final answer correctness, ignoring operational concerns such as concurrent data changes, access policies, business rules, and efficiency. They curated 590 practitioner documents to extract realistic scenarios and distilled them into four CARE criteria, then annotated over a thousand tasks and built an executable evaluation environment. The benchmark uses databases from Spider 2.0 and BIRD-Interact, and a multi-stage annotation process ensures high quality. Experiments with frontier LLM agents show low Binary Pass Ratio (33.9%) and Composite Score (73.3%), highlighting the need for agents that can satisfy operational constraints in production.
Problem
Enterprise text-to-SQL agents must ensure reliability, policy compliance, rule adherence, and efficiency throughout the SQL generation process, not just produce correct queries.
Method
The authors extracted scenarios from 590 practitioner documents, identified four CARE criteria, and annotated 1,058 tasks across concurrency, access control, rules, and efficiency. They built an executable evaluation environment using databases from Spider 2.0 and BIRD-Interact, employing a multi-stage annotation process with both PhD-level and undergraduate annotators to ensure quality.
Results
The approach achieves a Binary Pass Ratio of 33.9% and a Composite Score of 73.3% on the benchmark, indicating that current LLM agents struggle with operational criteria.
Contributions
We provide a realistic benchmark and evaluation suite that captures four operational criteria for enterprise text-to-SQL agents, along with a curated collection of 1,058 annotated tasks and an executable environment.
Practical relevance
It offers a realistic testbed for evaluating and improving enterprise text-to-SQL agents, ensuring they meet reliability, policy, rule, and efficiency requirements in production.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction