xia01ongLi commited on
Commit
e4920ad
·
verified ·
1 Parent(s): 20633b8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -6
README.md CHANGED
@@ -33,7 +33,7 @@ Then you can pull the dataset from Hugging Face:
33
  from datasets import load_dataset
34
 
35
  dataset = load_dataset("birdsql/bird_sql_dev_20251106")
36
- print(dataset[0])
37
  ```
38
 
39
  ### 🔄 For Existing Users
@@ -43,7 +43,7 @@ If you have already downloaded the BIRD databases, you can pull the latest data
43
  from datasets import load_dataset
44
 
45
  dataset = load_dataset("birdsql/bird_sql_dev_20251106")
46
- print(dataset[0])
47
  ```
48
 
49
  ## 🧱 Dataset Fields
@@ -64,10 +64,10 @@ Each entry in **BIRD-SQL Dev** is a JSON object with the following structure:
64
  {
65
  "question_id": 0,
66
  "db_id": "california_schools",
67
- "question": "What is the highest eligible free rate for K-12 students in the schools in Alameda County?",
68
- "evidence": "Eligible free rate for K-12 = `Free Meal Count (K-12)` / `Enrollment (K-12)`",
69
- "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",
70
- "difficulty": "simple"
71
  }
72
  ```
73
 
 
33
  from datasets import load_dataset
34
 
35
  dataset = load_dataset("birdsql/bird_sql_dev_20251106")
36
+ print(dataset["dev_20251106"][0])
37
  ```
38
 
39
  ### 🔄 For Existing Users
 
43
  from datasets import load_dataset
44
 
45
  dataset = load_dataset("birdsql/bird_sql_dev_20251106")
46
+ print(dataset["dev_20251106"][0])
47
  ```
48
 
49
  ## 🧱 Dataset Fields
 
64
  {
65
  "question_id": 0,
66
  "db_id": "california_schools",
67
+ "question": "For the school with the highest free meal rate in Alameda County, what are its characteristics including whether it's a charter school, what grades it serves, its SAT performance level, and how much its free meal rate deviates from the county average?",
68
+ "evidence": "Free meal rate = Free Meal Count (K-12) / Enrollment (K-12). SAT performance levels are categorized as: Below Average (total score < 1200), Average (1200-1500), Above Average (> 1500), or No SAT Data if unavailable.",
69
+ "SQL": "WITH CountyStats AS (\n SELECT \n f.`County Name`,\n f.`School Name`,\n f.`Free Meal Count (K-12)`,\n f.`Enrollment (K-12)`,\n CAST(f.`Free Meal Count (K-12)` AS REAL) / f.`Enrollment (K-12)` AS FreeRate,\n s.sname,\n s.AvgScrRead,\n s.AvgScrMath,\n s.AvgScrWrite,\n (s.AvgScrRead + s.AvgScrMath + s.AvgScrWrite) AS TotalSATScore,\n sc.Charter,\n sc.GSserved,\n RANK() OVER (PARTITION BY f.`County Name` ORDER BY CAST(f.`Free Meal Count (K-12)` AS REAL) / f.`Enrollment (K-12)` DESC) AS CountyRank\n FROM frpm f\n LEFT JOIN schools sc ON f.CDSCode = sc.CDSCode\n LEFT JOIN satscores s ON f.CDSCode = s.cds\n WHERE f.`Enrollment (K-12)` > 0 \n AND f.`County Name` = 'Alameda'\n)\nSELECT \n cs.`County Name` AS County,\n cs.`School Name`,\n cs.FreeRate AS HighestFreeRate,\n cs.`Free Meal Count (K-12)` AS FreeMealCount,\n cs.`Enrollment (K-12)` AS TotalEnrollment,\n CASE \n WHEN cs.Charter = 1 THEN 'Yes'\n WHEN cs.Charter = 0 THEN 'No'\n ELSE 'Unknown'\n END AS IsCharterSchool,\n cs.GSserved AS GradesServed,\n CASE\n WHEN cs.TotalSATScore IS NULL THEN 'No SAT Data'\n WHEN cs.TotalSATScore < 1200 THEN 'Below Average'\n WHEN cs.TotalSATScore BETWEEN 1200 AND 1500 THEN 'Average'\n ELSE 'Above Average'\n END AS SATPerformance,\n (SELECT AVG(CAST(f2.`Free Meal Count (K-12)` AS REAL) / f2.`Enrollment (K-12)`)\n FROM frpm f2\n WHERE f2.`County Name` = 'Alameda' AND f2.`Enrollment (K-12)` > 0) AS CountyAverageFreeRate,\n cs.FreeRate - (SELECT AVG(CAST(f2.`Free Meal Count (K-12)` AS REAL) / f2.`Enrollment (K-12)`)\n FROM frpm f2\n WHERE f2.`County Name` = 'Alameda' AND f2.`Enrollment (K-12)` > 0) AS DeviationFromCountyAverage\nFROM CountyStats cs\nWHERE cs.CountyRank = 1\nORDER BY cs.FreeRate DESC\nLIMIT 1;",
70
+ "difficulty": "challenging"
71
  }
72
  ```
73