birdsql/bird-critic-1.0-open

Dataset

Update 2025-05-22

1

24 commits

1 linked in READMEs

updated Mar 23, 2026

See the code

README

Update 2025-05-22

The previous issue regarding mismatched MySQL instances has been resolved. The updated version of BIRD-CRITIC-Open is now available. Thank you for your patience and understanding.

Update 2025-04-25

We’ve identified a mismatch issue in some uploaded MySQL instances. Our team is actively working to resolve this, and we’ll release the updated version promptly. Please refrain from using MySQL until the fix is deployed. Apologies for any inconvenience caused.

BIRD-CRITIC-1.0-Open

Project Page

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 differnt dialects (PostgreSQL, MySQL, SQL Server, Oracle) template & docker.
  4. Created new RDBs in different scale and professional domains.

We are pleased to announce the release of the complete version of BIRD-Critic (600) shortly, bird-critic-1.0-open, which includes high-quality user issues across multiple database dialects (PostgreSQL, MySQL, SQL Server, Oracle) 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 (By Category)

ModelQueryManagementPersonalizationEfficiencyTotalLevel
o3-mini-2025-01-3126.6446.1537.6556.6734.50🏆 Leading
deepseek-r127.9644.2337.0436.6733.67🌟 Elite
o1-preview-2024-09-1226.6446.1537.6533.3333.33🌟 Elite
claude-3-7-sonnet-20250219(thinking)24.0139.4235.1943.3330.67🌟 Elite
gemini-2.0-flash-thinking-exp-01-2128.9540.3825.3133.3330.17🌟 Elite
grok-3-beta23.3645.1930.2540.0029.83💎 Superior
gpt-4.120.7246.1533.9540.0029.67💎 Superior
o1-mini23.0338.4633.9540.0029.50💎 Superior
claude-3-7-sonnet-2025021922.3739.4230.8636.6728.33💎 Superior
gpt-4o-2024-11-2022.7036.5429.0143.3327.83💎 Superior
gemini-2.5-pro-preview-03-2516.7849.0435.1926.6727.83🔸 Advanced
gpt-4.1-mini24.0135.5827.7833.3327.50🔸 Advanced
QwQ-32B19.0841.3525.9333.3325.50🔸 Advanced
Qwen2.5-Coder-32B-Instruct24.0132.6920.9930.0025.00🔸 Advanced
gemini-2.0-flash21.0531.7324.0743.3324.83🔸 Advanced
claude-3-5-sonnet19.0835.5827.7826.6724.67⚪ Basic
deepseek-v320.0729.8127.1636.6724.50⚪ Basic
o4-mini17.4337.5027.7830.0024.33⚪ Basic
Llama-3.3-70B-Instruct22.0424.0428.3923.3324.17⚪ Basic
Qwen2.5-32B-Instruct20.3934.6223.4630.0024.17⚪ Basic
Llama-3.1-70B-Instruct20.3929.8124.6923.3323.33⚪ Basic
phi-420.7231.7320.3733.3323.17⚪ Basic
gpt-4.1-nano16.4525.9627.1630.0021.67⚪ Basic
QwQ-32B-Preview18.7523.0824.6930.0021.67⚪ Basic
gemma-3-27b-it19.0825.0022.2220.0021.00⚪ Basic
llama-4-maverick20.3917.3124.0710.0020.33⚪ Basic
Codestral-22B-v0.116.4525.9620.3733.3320.00⚪ Basic
Qwen2.5-14B-Instruct17.1124.0420.9920.0019.50⚪ Basic
gemma-3-12b-it19.7422.1216.0523.3319.33⚪ Basic
Qwen2.5-Coder-7B-Instruct15.1325.0018.5216.6717.83⚪ Basic
Qwen2.5-7B-Instruct14.1418.2718.5216.6716.17⚪ Basic
Mixtral-8x7B-Instruct-v0.111.8419.2319.1426.6715.83⚪ Basic
starcoder2-15b-instruct-v0.113.1615.3814.2023.3314.33⚪ Basic
Meta-Llama-3.1-8B-Instruct11.8418.2711.1120.0013.17⚪ Basic
Yi-1.5-34B-Chat-16K10.5316.3514.8110.0012.67⚪ Basic
CodeLlama-34b-Instruct-hf7.5719.239.8823.3311.00⚪ Basic
CodeLlama-7b-Instruct-hf10.538.6510.4913.3310.33⚪ Basic
llama-4-scout11.187.699.886.6710.00⚪ Basic
CodeLlama-13b-Instruct-hf5.598.6513.5820.009.00⚪ Basic
grok-3-mini-beta8.8810.588.643.338.83⚪ Basic
Mistral-7B-Instruct-v0.25.266.738.6410.006.67⚪ Basic

Model Performance Results (By Dialect)

ModelPostgreSQLMySQLSQL ServerOracleTotalLevel
o3-mini-2025-01-3142.3326.0034.0020.0034.50🏆 Leading
deepseek-r136.3338.0034.0021.0033.67🌟 Elite
o1-preview-2024-09-1240.0033.0035.0012.0033.33🌟 Elite
claude-3-7-sonnet-20250219(thinking)36.0031.0029.0016.0030.67🌟 Elite
gemini-2.0-flash-thinking-exp-01-2129.3335.0038.0020.0030.17🌟 Elite
grok-3-beta33.3330.0029.0020.0029.83💎 Superior
gpt-4.136.3328.0030.0011.0029.67💎 Superior
o1-mini36.6729.0026.0012.0029.50💎 Superior
claude-3-7-sonnet-2025021932.6730.0023.0019.0028.33💎 Superior
gpt-4o-2024-11-2031.6730.0026.0016.0027.83💎 Superior
gemini-2.5-pro-preview-03-2533.3335.0018.0014.0027.83🔸 Advanced
gpt-4.1-mini31.6725.0031.0014.0027.50🔸 Advanced
QwQ-32B28.3326.0027.0015.0025.50🔸 Advanced
Qwen2.5-Coder-32B-Instruct28.3324.0031.0010.0025.00🔸 Advanced
gemini-2.0-flash28.6722.0032.009.0024.83🔸 Advanced
claude-3-5-sonnet27.3328.0026.0012.0024.67⚪ Basic
deepseek-v327.3326.0023.0016.0024.50⚪ Basic
o4-mini31.6724.0018.009.0024.33⚪ Basic
Llama-3.3-70B-Instruct26.6722.0028.0015.0024.17⚪ Basic
Qwen2.5-32B-Instruct25.3331.0029.009.0024.17⚪ Basic
Llama-3.1-70B-Instruct23.6728.0028.0013.0023.33⚪ Basic
phi-426.3327.0024.009.0023.17⚪ Basic
gpt-4.1-nano24.6722.0022.0012.0021.67⚪ Basic
QwQ-32B-Preview25.3318.0030.006.0021.67⚪ Basic
gemma-3-27b-it23.0022.0029.006.0021.00⚪ Basic
llama-4-maverick20.6725.0022.0013.0020.33⚪ Basic
Codestral-22B-v0.122.0018.0027.009.0020.00⚪ Basic
Qwen2.5-14B-Instruct23.3318.0024.005.0019.50⚪ Basic
gemma-3-12b-it19.0021.0030.008.0019.33⚪ Basic
Qwen2.5-Coder-7B-Instruct20.3318.0020.008.0017.83⚪ Basic
Qwen2.5-7B-Instruct17.0021.0019.006.0016.17⚪ Basic
Mixtral-8x7B-Instruct-v0.118.6717.0022.000.0015.83⚪ Basic
starcoder2-15b-instruct-v0.113.6714.0027.004.0014.33⚪ Basic
Meta-Llama-3.1-8B-Instruct13.6713.0021.004.0013.17⚪ Basic
Yi-1.5-34B-Chat-16K12.6715.0021.002.0012.67⚪ Basic
CodeLlama-34b-Instruct-hf12.3313.0012.004.0011.00⚪ Basic
CodeLlama-7b-Instruct-hf11.0011.0015.003.0010.33⚪ Basic
llama-4-scout8.6711.0014.009.0010.00⚪ Basic
CodeLlama-13b-Instruct-hf9.3311.0010.005.009.00⚪ Basic
grok-3-mini-beta10.3311.009.002.008.83⚪ Basic
Mistral-7B-Instruct-v0.27.338.0010.000.006.67⚪ Basic

Paper: SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applications

Tier Classification (By Ranking):

  • 🏆 Leading: The Best!
  • 🌟 Elite: Top 15%
  • 💎 Superior: Top 30%
  • 🔸 Advanced: Top 45%
  • 💫 Standard: Top 70%
  • ⚪ Basic: Bottom 30%

Dialect Distribution:

  • PostgreSQL: 300
  • MySQL: 100
  • SQL Server: 100
  • Oracle 100

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

database
question-answering
table-question-answering
text-to-sql

birdsql/bird-critic-1.0-open

Dataset

Update 2025-05-22

1

24 commits

1 linked in READMEs

updated Mar 23, 2026

See the code

README

Update 2025-05-22

The previous issue regarding mismatched MySQL instances has been resolved. The updated version of BIRD-CRITIC-Open is now available. Thank you for your patience and understanding.

Update 2025-04-25

We’ve identified a mismatch issue in some uploaded MySQL instances. Our team is actively working to resolve this, and we’ll release the updated version promptly. Please refrain from using MySQL until the fix is deployed. Apologies for any inconvenience caused.

BIRD-CRITIC-1.0-Open

Project Page

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 differnt dialects (PostgreSQL, MySQL, SQL Server, Oracle) template & docker.
  4. Created new RDBs in different scale and professional domains.

We are pleased to announce the release of the complete version of BIRD-Critic (600) shortly, bird-critic-1.0-open, which includes high-quality user issues across multiple database dialects (PostgreSQL, MySQL, SQL Server, Oracle) 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 (By Category)

ModelQueryManagementPersonalizationEfficiencyTotalLevel
o3-mini-2025-01-3126.6446.1537.6556.6734.50🏆 Leading
deepseek-r127.9644.2337.0436.6733.67🌟 Elite
o1-preview-2024-09-1226.6446.1537.6533.3333.33🌟 Elite
claude-3-7-sonnet-20250219(thinking)24.0139.4235.1943.3330.67🌟 Elite
gemini-2.0-flash-thinking-exp-01-2128.9540.3825.3133.3330.17🌟 Elite
grok-3-beta23.3645.1930.2540.0029.83💎 Superior
gpt-4.120.7246.1533.9540.0029.67💎 Superior
o1-mini23.0338.4633.9540.0029.50💎 Superior
claude-3-7-sonnet-2025021922.3739.4230.8636.6728.33💎 Superior
gpt-4o-2024-11-2022.7036.5429.0143.3327.83💎 Superior
gemini-2.5-pro-preview-03-2516.7849.0435.1926.6727.83🔸 Advanced
gpt-4.1-mini24.0135.5827.7833.3327.50🔸 Advanced
QwQ-32B19.0841.3525.9333.3325.50🔸 Advanced
Qwen2.5-Coder-32B-Instruct24.0132.6920.9930.0025.00🔸 Advanced
gemini-2.0-flash21.0531.7324.0743.3324.83🔸 Advanced
claude-3-5-sonnet19.0835.5827.7826.6724.67⚪ Basic
deepseek-v320.0729.8127.1636.6724.50⚪ Basic
o4-mini17.4337.5027.7830.0024.33⚪ Basic
Llama-3.3-70B-Instruct22.0424.0428.3923.3324.17⚪ Basic
Qwen2.5-32B-Instruct20.3934.6223.4630.0024.17⚪ Basic
Llama-3.1-70B-Instruct20.3929.8124.6923.3323.33⚪ Basic
phi-420.7231.7320.3733.3323.17⚪ Basic
gpt-4.1-nano16.4525.9627.1630.0021.67⚪ Basic
QwQ-32B-Preview18.7523.0824.6930.0021.67⚪ Basic
gemma-3-27b-it19.0825.0022.2220.0021.00⚪ Basic
llama-4-maverick20.3917.3124.0710.0020.33⚪ Basic
Codestral-22B-v0.116.4525.9620.3733.3320.00⚪ Basic
Qwen2.5-14B-Instruct17.1124.0420.9920.0019.50⚪ Basic
gemma-3-12b-it19.7422.1216.0523.3319.33⚪ Basic
Qwen2.5-Coder-7B-Instruct15.1325.0018.5216.6717.83⚪ Basic
Qwen2.5-7B-Instruct14.1418.2718.5216.6716.17⚪ Basic
Mixtral-8x7B-Instruct-v0.111.8419.2319.1426.6715.83⚪ Basic
starcoder2-15b-instruct-v0.113.1615.3814.2023.3314.33⚪ Basic
Meta-Llama-3.1-8B-Instruct11.8418.2711.1120.0013.17⚪ Basic
Yi-1.5-34B-Chat-16K10.5316.3514.8110.0012.67⚪ Basic
CodeLlama-34b-Instruct-hf7.5719.239.8823.3311.00⚪ Basic
CodeLlama-7b-Instruct-hf10.538.6510.4913.3310.33⚪ Basic
llama-4-scout11.187.699.886.6710.00⚪ Basic
CodeLlama-13b-Instruct-hf5.598.6513.5820.009.00⚪ Basic
grok-3-mini-beta8.8810.588.643.338.83⚪ Basic
Mistral-7B-Instruct-v0.25.266.738.6410.006.67⚪ Basic

Model Performance Results (By Dialect)

ModelPostgreSQLMySQLSQL ServerOracleTotalLevel
o3-mini-2025-01-3142.3326.0034.0020.0034.50🏆 Leading
deepseek-r136.3338.0034.0021.0033.67🌟 Elite
o1-preview-2024-09-1240.0033.0035.0012.0033.33🌟 Elite
claude-3-7-sonnet-20250219(thinking)36.0031.0029.0016.0030.67🌟 Elite
gemini-2.0-flash-thinking-exp-01-2129.3335.0038.0020.0030.17🌟 Elite
grok-3-beta33.3330.0029.0020.0029.83💎 Superior
gpt-4.136.3328.0030.0011.0029.67💎 Superior
o1-mini36.6729.0026.0012.0029.50💎 Superior
claude-3-7-sonnet-2025021932.6730.0023.0019.0028.33💎 Superior
gpt-4o-2024-11-2031.6730.0026.0016.0027.83💎 Superior
gemini-2.5-pro-preview-03-2533.3335.0018.0014.0027.83🔸 Advanced
gpt-4.1-mini31.6725.0031.0014.0027.50🔸 Advanced
QwQ-32B28.3326.0027.0015.0025.50🔸 Advanced
Qwen2.5-Coder-32B-Instruct28.3324.0031.0010.0025.00🔸 Advanced
gemini-2.0-flash28.6722.0032.009.0024.83🔸 Advanced
claude-3-5-sonnet27.3328.0026.0012.0024.67⚪ Basic
deepseek-v327.3326.0023.0016.0024.50⚪ Basic
o4-mini31.6724.0018.009.0024.33⚪ Basic
Llama-3.3-70B-Instruct26.6722.0028.0015.0024.17⚪ Basic
Qwen2.5-32B-Instruct25.3331.0029.009.0024.17⚪ Basic
Llama-3.1-70B-Instruct23.6728.0028.0013.0023.33⚪ Basic
phi-426.3327.0024.009.0023.17⚪ Basic
gpt-4.1-nano24.6722.0022.0012.0021.67⚪ Basic
QwQ-32B-Preview25.3318.0030.006.0021.67⚪ Basic
gemma-3-27b-it23.0022.0029.006.0021.00⚪ Basic
llama-4-maverick20.6725.0022.0013.0020.33⚪ Basic
Codestral-22B-v0.122.0018.0027.009.0020.00⚪ Basic
Qwen2.5-14B-Instruct23.3318.0024.005.0019.50⚪ Basic
gemma-3-12b-it19.0021.0030.008.0019.33⚪ Basic
Qwen2.5-Coder-7B-Instruct20.3318.0020.008.0017.83⚪ Basic
Qwen2.5-7B-Instruct17.0021.0019.006.0016.17⚪ Basic
Mixtral-8x7B-Instruct-v0.118.6717.0022.000.0015.83⚪ Basic
starcoder2-15b-instruct-v0.113.6714.0027.004.0014.33⚪ Basic
Meta-Llama-3.1-8B-Instruct13.6713.0021.004.0013.17⚪ Basic
Yi-1.5-34B-Chat-16K12.6715.0021.002.0012.67⚪ Basic
CodeLlama-34b-Instruct-hf12.3313.0012.004.0011.00⚪ Basic
CodeLlama-7b-Instruct-hf11.0011.0015.003.0010.33⚪ Basic
llama-4-scout8.6711.0014.009.0010.00⚪ Basic
CodeLlama-13b-Instruct-hf9.3311.0010.005.009.00⚪ Basic
grok-3-mini-beta10.3311.009.002.008.83⚪ Basic
Mistral-7B-Instruct-v0.27.338.0010.000.006.67⚪ Basic

Paper: SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applications

Tier Classification (By Ranking):

  • 🏆 Leading: The Best!
  • 🌟 Elite: Top 15%
  • 💎 Superior: Top 30%
  • 🔸 Advanced: Top 45%
  • 💫 Standard: Top 70%
  • ⚪ Basic: Bottom 30%

Dialect Distribution:

  • PostgreSQL: 300
  • MySQL: 100
  • SQL Server: 100
  • Oracle 100

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

database
question-answering
table-question-answering
text-to-sql