birdsql/bird-critic-1.0-flash-exp

Dataset

BIRD-CRITIC-1.0-Flash

8

50 commits

1 linked in READMEs

updated Mar 23, 2026

See the code

README

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:

  1. Reproduction of errors on BIRD env to prevent data leakage.
  2. 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.
  3. Fast Eval Sandbox via PostgreSQL template & docker.
  4. 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

RankModel NameQueryManagementPersonalizationEfficiencyOverall ScoreLevel
1o1-preview-2024-09-1246.8836.7330.7740.9138.50πŸ† Leading
2o3-mini-2025-01-3126.5640.0042.1945.4537.00🌟 Elite
3deepseek-reasoner (r1)34.3836.7332.3131.8234.00🌟 Elite
4claude-3-7-sonnet-2025-02-19 (thinking)26.5628.0042.1927.2732.00🌟 Elite
5claude-3-7-sonnet-2025-02-1920.3140.0031.2522.7329.00🌟 Elite
5gpt-4o-2024-11-2032.8122.4532.3122.7329.00🌟 Elite
6o1-mini28.1332.6526.1522.7328.00πŸ’Ž Superior
7deepseek-V328.1330.6126.1522.7327.50πŸ’Ž Superior
8phi-425.0030.6120.0022.7324.50πŸ’Ž Superior
8QwQ-32B23.4426.0025.0022.7324.50πŸ’Ž Superior
9Claude-3-5-sonnet15.6332.6526.1522.7324.00πŸ”Έ Advanced
10gemini-2.0-flash-exp20.3126.5324.6227.2724.00πŸ”Έ Advanced
11Qwen2.5-Coder-32B-Instruct25.0026.5323.089.0923.00πŸ”Έ Advanced
12gemini-2.0-flash-thinking-exp20.3116.3318.4627.2719.50πŸ”Έ Advanced
13Meta-Llama-3.3-70B-Instruct18.7524.4912.3122.7318.50πŸ’« Standard
14Codestral-22B-v0.110.9418.3723.0822.7318.00πŸ’« Standard
15gemma-2-27b-it17.1916.3320.0018.1818.00πŸ’« Standard
16QwQ-32B-Preview21.8814.2916.9213.6417.50πŸ’« Standard
17starcoder2-15b-instruct-v0.110.9416.3316.924.5513.50πŸ’« Standard
18DeepSeek-Coder-V2-Lite-Instruct10.9414.2912.3113.6412.50βšͺ Basic
19Mixtral-8x7B-Instruct-v0.112.5010.2010.7713.6411.50βšͺ Basic
20gemma-2-9b-it9.388.1612.3118.1811.00βšͺ Basic
21Yi-1.5-34B-Chat-16K6.2514.2912.319.0910.50βšͺ Basic
22CodeLlama-34b-Instruct-hf9.3810.209.2313.6410.00βšͺ Basic
23CodeLlama-13b-Instruct-hf10.9412.244.629.099.00βšͺ Basic
24Mistral-7B-Instruct-v0.23.134.084.620.003.50βšͺ Basic

Tier Classification (By Ranking):

  • πŸ† Leading: The Best!
  • 🌟 Elite: Top 15%
  • πŸ’Ž Superior: Top 30%
  • πŸ”Έ Advanced: Top 45%
  • πŸ’« Standard: Top 70%
  • βšͺ Basic: Bottom 30%

Instance Categories:

  • Query: Instances that involve classic retrieval operations (i.e., SELECT).
  • Management: Instances that perform database management (e.g, CREATE, UPDATE, INSERT).
  • Personalization: Instances requiring a custom approach to achieve.
  • Efficiency: Instances focused on query optimization.

Represent as issue_type in each data instance.

Dataset Details

Dataset Description

  • Curated by: BIRD Team & Google Cloud
  • License: cc-by-sa-4.0

Uses

To avoid data leakage by auto-crawling, certain fields (e.g., sol_sql, test_cases) are excluded from the public dataset. For the full dataset, please email: πŸ“§ [email protected] with subject tag [bird-critic-1 GT&Test Cases], which will be sent automatically within 30 mins.

Code Sources

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

πŸ“„ Paper

If you find our work helpful, please cite as:

@article{li2025swe,
  title={SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applications},
  author={Li, Jinyang and Li, Xiaolong and Qu, Ge and Jacobsson, Per and Qin, Bowen and Hui, Binyuan and Si, Shuzheng and Huo, Nan and Xu, Xiaohan and Zhang, Yue and others},
  journal={arXiv preprint arXiv:2506.18951},
  year={2025}
}

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).
  • BIRD-Nest, a Gym-like training set for bird-critic-1.0
  • LiveSQLBench Base
  • BIRD-CRITIC 1.5 / 2.0 on track!

Post By:

BIRD Team & Google Cloud

code
database
text-to-sql

birdsql/bird-critic-1.0-flash-exp

Dataset

BIRD-CRITIC-1.0-Flash

8

50 commits

1 linked in READMEs

updated Mar 23, 2026

See the code

README

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:

  1. Reproduction of errors on BIRD env to prevent data leakage.
  2. 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.
  3. Fast Eval Sandbox via PostgreSQL template & docker.
  4. 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

RankModel NameQueryManagementPersonalizationEfficiencyOverall ScoreLevel
1o1-preview-2024-09-1246.8836.7330.7740.9138.50πŸ† Leading
2o3-mini-2025-01-3126.5640.0042.1945.4537.00🌟 Elite
3deepseek-reasoner (r1)34.3836.7332.3131.8234.00🌟 Elite
4claude-3-7-sonnet-2025-02-19 (thinking)26.5628.0042.1927.2732.00🌟 Elite
5claude-3-7-sonnet-2025-02-1920.3140.0031.2522.7329.00🌟 Elite
5gpt-4o-2024-11-2032.8122.4532.3122.7329.00🌟 Elite
6o1-mini28.1332.6526.1522.7328.00πŸ’Ž Superior
7deepseek-V328.1330.6126.1522.7327.50πŸ’Ž Superior
8phi-425.0030.6120.0022.7324.50πŸ’Ž Superior
8QwQ-32B23.4426.0025.0022.7324.50πŸ’Ž Superior
9Claude-3-5-sonnet15.6332.6526.1522.7324.00πŸ”Έ Advanced
10gemini-2.0-flash-exp20.3126.5324.6227.2724.00πŸ”Έ Advanced
11Qwen2.5-Coder-32B-Instruct25.0026.5323.089.0923.00πŸ”Έ Advanced
12gemini-2.0-flash-thinking-exp20.3116.3318.4627.2719.50πŸ”Έ Advanced
13Meta-Llama-3.3-70B-Instruct18.7524.4912.3122.7318.50πŸ’« Standard
14Codestral-22B-v0.110.9418.3723.0822.7318.00πŸ’« Standard
15gemma-2-27b-it17.1916.3320.0018.1818.00πŸ’« Standard
16QwQ-32B-Preview21.8814.2916.9213.6417.50πŸ’« Standard
17starcoder2-15b-instruct-v0.110.9416.3316.924.5513.50πŸ’« Standard
18DeepSeek-Coder-V2-Lite-Instruct10.9414.2912.3113.6412.50βšͺ Basic
19Mixtral-8x7B-Instruct-v0.112.5010.2010.7713.6411.50βšͺ Basic
20gemma-2-9b-it9.388.1612.3118.1811.00βšͺ Basic
21Yi-1.5-34B-Chat-16K6.2514.2912.319.0910.50βšͺ Basic
22CodeLlama-34b-Instruct-hf9.3810.209.2313.6410.00βšͺ Basic
23CodeLlama-13b-Instruct-hf10.9412.244.629.099.00βšͺ Basic
24Mistral-7B-Instruct-v0.23.134.084.620.003.50βšͺ Basic

Tier Classification (By Ranking):

  • πŸ† Leading: The Best!
  • 🌟 Elite: Top 15%
  • πŸ’Ž Superior: Top 30%
  • πŸ”Έ Advanced: Top 45%
  • πŸ’« Standard: Top 70%
  • βšͺ Basic: Bottom 30%

Instance Categories:

  • Query: Instances that involve classic retrieval operations (i.e., SELECT).
  • Management: Instances that perform database management (e.g, CREATE, UPDATE, INSERT).
  • Personalization: Instances requiring a custom approach to achieve.
  • Efficiency: Instances focused on query optimization.

Represent as issue_type in each data instance.

Dataset Details

Dataset Description

  • Curated by: BIRD Team & Google Cloud
  • License: cc-by-sa-4.0

Uses

To avoid data leakage by auto-crawling, certain fields (e.g., sol_sql, test_cases) are excluded from the public dataset. For the full dataset, please email: πŸ“§ [email protected] with subject tag [bird-critic-1 GT&Test Cases], which will be sent automatically within 30 mins.

Code Sources

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

πŸ“„ Paper

If you find our work helpful, please cite as:

@article{li2025swe,
  title={SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applications},
  author={Li, Jinyang and Li, Xiaolong and Qu, Ge and Jacobsson, Per and Qin, Bowen and Hui, Binyuan and Si, Shuzheng and Huo, Nan and Xu, Xiaohan and Zhang, Yue and others},
  journal={arXiv preprint arXiv:2506.18951},
  year={2025}
}

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).
  • BIRD-Nest, a Gym-like training set for bird-critic-1.0
  • LiveSQLBench Base
  • BIRD-CRITIC 1.5 / 2.0 on track!

Post By:

BIRD Team & Google Cloud

code
database
text-to-sql