license: cc-by-sa-4.0
language:
- en
tags:
- text-to-sql
- database
- code
BIRD-CRITIC-1.0-Flash
BIRD-Critic is the first SQL debugging benchmark designed to answer a critical question:
Can large language models (LLMs) fix user issues in real-world database applications?
Each task in BIRD-CRITIC has been verified by human experts on the following dimensions:
- Reproduction of errors on BIRD env to prevent data leakage.
- Carefully curate test case functions for each task specifically.
- Soft EX: This metric can evaluate SELECT-ONLY tasks.
- Soft EX + Parsing: This metric can evaluate tasks with user specific requirements or refinements.
- Test Case: For DBA tasks, such as CRUD (CREAT, READ, UPDATE, DELET), test cases should be promised to evaluate the correct logic. This is also effective for user issues requiring multiple sequential SQLs to resolve.
- Query Execution Plan: For user tasks involving efficiency improvement or runtime errors, QEP can be introduced to evaluate solution SQLs on algorithm level.
- Fast Eval Sandbox via PostgreSQL template & docker.
- Created new RDBs in different scale and professional domains.
We are releasing a lite version of BIRD-Critic, bird-critic-1.0-flash-exp
, which includes 200 high-quality user issues on PostgreSQL when developing real-world applications. We curate tasks by:
- Collecting and understanding realistic user issues.
- Distilling problem definitions and SQL knowledge.
- Reproducing bugs and solutions in the BIRD environment.
- Designing test cases for evaluation.
Model Performance Results
Rank | Model Name | Score | Level |
---|---|---|---|
1 | o1-preview-2024-09-12 | 38.5 | π Leading |
2 | deepseek-reasoner (r1) | 34.0 | π Elite |
3 | gpt-4o-2024-11-20 | 29.0 | π Elite |
4 | o1-mini | 28.0 | π Superior |
5 | deepseek-V3 | 27.5 | π Superior |
6 | phi-4 | 24.5 | π Superior |
7 | claude-3-5-sonnet | 24.0 | πΈ Advanced |
8 | gemini-2.0-flash-exp | 24.0 | πΈ Advanced |
9 | Qwen2.5-Coder-32B-Instruct | 23.5 | πΈ Advanced |
10 | gemini-2.0-flash-thinking-exp | 19.5 | πΈ Advanced |
11 | Meta-Llama-3.3-70B-Instruct | 18.5 | π« Standard |
12 | Codestral-22B-v0.1 | 18.0 | π« Standard |
13 | gemma-2-27b-it | 18.0 | π« Standard |
14 | QwQ-32B-Preview | 17.5 | π« Standard |
15 | starcoder2-15b-instruct-v0.1 | 15.5 | π« Standard |
16 | DeepSeek-Coder-V2-Lite-Instruct | 12.5 | βͺ Basic |
17 | Mixtral-8x7B-Instruct-v0.1 | 11.5 | βͺ Basic |
18 | gemma-2-9b-it | 10.5 | βͺ Basic |
19 | Yi-1.5-34B-Chat-16K | 10.5 | βͺ Basic |
20 | CodeLlama-34b-Instruct-hf | 10.0 | βͺ Basic |
21 | CodeLlama-13b-Instruct-hf | 8.5 | βͺ Basic |
22 | Mistral-7B-Instruct-v0.2 | 3.5 | βͺ Basic |
Tier Classification (By Ranking):
- π Leading: The Best!
- π Elite: Top 15%
- π Superior: Top 30%
- πΈ Advanced: Top 45%
- π« Standard: Top 70%
- βͺ Basic: Bottom 30%
Dataset Details
Dataset Description
- Curated by: BIRD Team & Google Cloud
- License: cc-by-sa-4.0
Uses
To avoid data leakage by auto-crawling, we do not include GT solution sqls and test cases along with data. please email [email protected] or [email protected] for full set, which will be sent automatically.
Code Sources
- Repository: Comming soon.
Dataset Structure
Below is a description of the dataset fields and additional information about the structure:
- db_id: The name of the database.
- query: The user query is rewritten in the BIRD environment.
- error_sql: The buggy SQL query written by the user.
- sol_sql: The ground truth SQL solution.
- preprocess_sql: SQL queries to run before executing the solution or prediction.
- clean_up_sql: SQL queries to run after the test cases to revert any changes made to the database.
- test_cases: A set of test cases to validate the predicted corrected SQL.
- efficiency: True if this question needs optimization, measure the cost by Query Execution Plan (QEP)
- external_data: For the external JSON data if present
Todo Lists
- Release lite version, bird-critic-1.0-flash (200).
- Open source code, leaderboard page.
- Release Full bird-critic-1.0-open (600 w/ 5 dialects).
- Release Full bird-critic-1.0-postgresql (600 pg tasks).
- Update agent baselines.
- BIRD-Pro v0.5
- BIRD-CRITIC 1.5 / 2.0 on track!
Post By:
BIRD Team & Google Cloud