Datasets:

Modalities:
Text
Formats:
json
Languages:
English
ArXiv:
Libraries:
Datasets
pandas
License:
xia01ongLi commited on
Commit
7874919
·
verified ·
1 Parent(s): 2776cf7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +98 -3
README.md CHANGED
@@ -1,3 +1,98 @@
1
- ---
2
- license: cc-by-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ task_categories:
4
+ - table-question-answering
5
+ - question-answering
6
+ language:
7
+ - en
8
+ size_categories:
9
+ - 1K<n<10K
10
+ ---
11
+
12
+ # BIRD-SQL Dev
13
+
14
+ ## 🆕 Update 2025-11-06
15
+
16
+ We would like to express our sincere gratitude to the community for their continuous support and constructive feedback on the **BIRD-SQL Dev** dataset. Over the past year, we have received valuable suggestions through GitHub discussions, emails, and user reports. Based on these insights, we organized a quality review program led by a team of five PhD researchers in Data Science and AI, supported by a globally distributed group of industry engineers with over 10 years of experience and master’s students in DS/AI. The team systematically reviewed all instances in BIRD Dev to minimize ambiguity and correct errors, ensuring improved clarity, consistency, and reliability throughout the dataset. Please note that all questions in BIRD SQL were written by experienced native speakers who received BI training in text-to-SQL annotation. While we have made significant efforts to minimize ambiguity, it remains an inherent feature of natural language and NLP research, reflecting the realistic challenges of interpreting human questions in database contexts. To further address this, we will follow the design of [BIRD-Interact](https://bird-interact.github.io/) and introduce an interactive, clarification-based setting as a new part of our leaderboard in the future, enabling models to handle ambiguity through dynamic interactions and clarification dialogues.
17
+
18
+ ### 🔍 What’s New
19
+ This update focuses on improving the overall clarity, correctness, and consistency of the dataset.
20
+ In this release, we have:
21
+ - Refined **questions** to remove ambiguity and improve natural-language clarity while preserving their original meaning.
22
+ - Revised **evidence** descriptions to make them concise, accurate, and properly scoped.
23
+ - Corrected **SQL queries** to ensure syntactic validity, logical consistency, and successful execution on all released databases.
24
+
25
+ ---
26
+
27
+ ### ✅ TODOs
28
+
29
+ - [ ] Release updated **Dev data**
30
+ - [ ] Release **baseline results** on new Dev set
31
+ - [ ] Integrate **interactive** setting into leaderboard
32
+
33
+
34
+
35
+ ### 📥 For New Users
36
+ If you are new to **BIRD Dev**, you can download the complete databases using the following link:
37
+ [Download BIRD Dev Complete Package](https://drive.google.com/file/d/13VLWIwpw5E3d5DUkMvzw7hvHE67a4XkG/view?usp=sharing)
38
+ Then you can pull the dataset from Hugging Face:
39
+ ```python
40
+ from datasets import load_dataset
41
+
42
+ dataset = load_dataset("birdsql/bird_sql_dev_20251106")
43
+ print(dataset[0])
44
+ ```
45
+
46
+ ### 🔄 For Existing Users
47
+ If you have already downloaded the BIRD databases, you can pull the latest data updates through Hugging Face:
48
+
49
+ ```python
50
+ from datasets import load_dataset
51
+
52
+ dataset = load_dataset("birdsql/bird_sql_dev_20251106")
53
+ print(dataset[0])
54
+ ```
55
+
56
+ ## 🧱 Dataset Fields
57
+
58
+ Each entry in **BIRD-SQL Dev** is a JSON object with the following structure:
59
+
60
+ | Field | Type | Description |
61
+ |:------|:-----|:-------------|
62
+ | `question_id` | `int` | Unique identifier for each instance. |
63
+ | `db_id` | `string` | Database name corresponding to a SQLite file. |
64
+ | `question` | `string` | Natural-language question posed by the user. |
65
+ | `evidence` | `string` or `null` | Supporting information or definitions needed to interpret the question. |
66
+ | `SQL` | `string` | Ground-truth SQL query verified to execute successfully. |
67
+ | `difficulty` | `string` | Difficulty level — one of `simple`, `moderate`, or `challenging`. |
68
+
69
+ ### Example
70
+ ```json
71
+ {
72
+ "question_id": 0,
73
+ "db_id": "california_schools",
74
+ "question": "What is the highest eligible free rate for K-12 students in the schools in Alameda County?",
75
+ "evidence": "Eligible free rate for K-12 = `Free Meal Count (K-12)` / `Enrollment (K-12)`",
76
+ "SQL": "SELECT `Free Meal Count (K-12)` / `Enrollment (K-12)` FROM frpm WHERE `County Name` = 'Alameda' ORDER BY (CAST(`Free Meal Count (K-12)` AS REAL) / `Enrollment (K-12)`) DESC LIMIT 1",
77
+ "difficulty": "simple"
78
+ }
79
+ ```
80
+
81
+
82
+ ## 🙌 Acknowledgement
83
+ We sincerely thank the participating members for their time and dedication in improving this release: Benjamin Jun-jie Glover, Pan Enze, Rain Yiran Xu, Ashley (Juyeon) Lee, Eric Yue Wu, Yu Kaijia, Ziye Luo, Tangpirul Tat, Chik Ki Lok, Xu Haosen, Zhao Mingze, Chen Bingshang, Huang Yingrui, Winiera Sutanto, Zhan Mohan, Leia (Heaju) Kim, Veren Florecita, Xu Zixi, Chui Ting Yu George
84
+
85
+
86
+ We also appreciate the continuous support and feedback from the open community, including GitHub reviewers (@element154, @NL2SQL-Empirical, @erikskalnes), anonymous users, and those who reached out to us via email, such as Arcwise AI (@hansonw), for their valuable suggestions.
87
+
88
+ ## 📝 Citation
89
+ Please cite the repo if you think our work is helpful to you.
90
+ ```
91
+ @article{li2024can,
92
+ title={Can llm already serve as a database interface? a big bench for large-scale database grounded text-to-sqls},
93
+ author={Li, Jinyang and Hui, Binyuan and Qu, Ge and Yang, Jiaxi and Li, Binhua and Li, Bowen and Wang, Bailin and Qin, Bowen and Geng, Ruiying and Huo, Nan and others},
94
+ journal={Advances in Neural Information Processing Systems},
95
+ volume={36},
96
+ year={2024}
97
+ }
98
+ ```