Dataset Viewer
Auto-converted to Parquet Duplicate
dataset_name
stringclasses
1 value
split
stringclasses
1 value
prompt_raw
stringlengths
1.69k
7.88k
messages
listlengths
2
2
question
stringlengths
23
286
sample_id
int64
0
1.53k
instance_id
int64
0
1.53k
db_id
stringclasses
11 values
groundtruth_sqls
listlengths
1
1
bird
dev
Database Schema: Table frpm frpm.`FRPM Count (K-12)`: REAL - Free or Reduced Price Meal Count (K-12) Sample values: "715.0" Value description: commonsense evidence: eligible FRPM rate = FRPM / Enrollment Contains null values: True frpm.`Percent (%) Eligible FRPM (K-12)`: REAL Sample values: "0.657...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the highest eligible free rate for K-12 students in the schools in Alameda County?
0
0
california_schools
[ "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" ]
bird
dev
Database Schema: Table frpm frpm.`FRPM Count (K-12)`: REAL Sample values: "715.0" Value description: commonsense evidence: eligible FRPM rate = FRPM / Enrollment Contains null values: True frpm.`Percent (%) Eligible Free (Ages 5-17)`: REAL Sample values: "0.516822429906542" Contains null value...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Please list the lowest three eligible free rates for students aged 5-17 in continuation schools.
1
1
california_schools
[ "SELECT `Free Meal Count (Ages 5-17)` / `Enrollment (Ages 5-17)` FROM frpm WHERE `Educational Option Type` = 'Continuation School' AND `Free Meal Count (Ages 5-17)` / `Enrollment (Ages 5-17)` IS NOT NULL ORDER BY `Free Meal Count (Ages 5-17)` / `Enrollment (Ages 5-17)` ASC LIMIT 3" ]
bird
dev
Database Schema: Table schools schools.DOC: TEXT - District Ownership Code Sample values: "00" Value description: The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education • 02 – State Board of Education ...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Please list the zip code of all the charter schools in Fresno County Office of Education.
2
2
california_schools
[ "SELECT T2.Zip FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.`District Name` = 'Fresno County Office of Education' AND T1.`Charter School (Y/N)` = 1" ]
bird
dev
Database Schema: Table frpm frpm.`FRPM Count (K-12)`: REAL Sample values: "715.0" Value description: commonsense evidence: eligible FRPM rate = FRPM / Enrollment Contains null values: True frpm.`School Name`: TEXT Sample values: "Avalon K-12", "Whittier K-12" frpm.`High Grade`: TEXT Sample v...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the unabbreviated mailing street address of the school with the highest FRPM count for K-12 students?
3
3
california_schools
[ "SELECT T2.MailStreet FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode ORDER BY T1.`FRPM Count (K-12)` DESC LIMIT 1" ]
bird
dev
Database Schema: Table schools schools.DOC: TEXT - District Ownership Code Sample values: "00" Value description: The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education • 02 – State Board of Education ...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Please list the phone numbers of the direct charter-funded schools that are opened after 2000/1/1.
4
4
california_schools
[ "SELECT T2.Phone FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.`Charter Funding Type` = 'Directly funded' AND T1.`Charter School (Y/N)` = 1 AND T2.OpenDate > '2000-01-01'" ]
bird
dev
Database Schema: Table satscores satscores.cname: TEXT - county name Sample values: "Alameda" satscores.NumTstTakr: INTEGER - Number of Test Takers Sample values: "400" Value description: number of test takers in each school satscores.AvgScrMath: INTEGER - average scores in Math Sample values: "4...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many schools with an average score in Math greater than 400 in the SAT test are exclusively virtual?
5
5
california_schools
[ "SELECT COUNT(DISTINCT T2.School) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.Virtual = 'F' AND T1.AvgScrMath > 400" ]
bird
dev
Database Schema: Table satscores satscores.cname: TEXT - county name Sample values: "Alameda" satscores.NumTstTakr: INTEGER - Number of Test Takers Sample values: "88" Value description: number of test takers in each school satscores.AvgScrMath: INTEGER - average scores in Math Sample values: "50...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Among the schools with the SAT test takers of over 500, please list the schools that are magnet schools or offer a magnet program.
6
6
california_schools
[ "SELECT T2.School FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.Magnet = 1 AND T1.NumTstTakr > 500" ]
bird
dev
Database Schema: Table satscores satscores.cname: TEXT - county name Sample values: "Alameda" satscores.NumTstTakr: INTEGER - Number of Test Takers Sample values: "1500" Value description: number of test takers in each school satscores.AvgScrMath: INTEGER - average scores in Math Sample values: "...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the phone number of the school that has the highest number of test takers with an SAT score of over 1500?
7
7
california_schools
[ "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.NumGE1500 DESC LIMIT 1" ]
bird
dev
Database Schema: Table frpm frpm.`FRPM Count (K-12)`: REAL Sample values: "715.0" Value description: commonsense evidence: eligible FRPM rate = FRPM / Enrollment Contains null values: True frpm.`Academic Year`: TEXT Sample values: "2014-2015" frpm.`School Name`: TEXT Sample values: "Avalon K...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the number of SAT test takers of the schools with the highest FRPM count for K-12 students?
8
8
california_schools
[ "SELECT NumTstTakr FROM satscores WHERE cds = ( SELECT CDSCode FROM frpm ORDER BY `FRPM Count (K-12)` DESC LIMIT 1 )" ]
bird
dev
Database Schema: Table schools schools.DOC: TEXT - District Ownership Code Sample values: "00" Value description: The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education • 02 – State Board of Education ...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Among the schools with the average score in Math over 560 in the SAT test, how many schools are directly charter-funded?
9
9
california_schools
[ "SELECT COUNT(T2.`School Code`) FROM satscores AS T1 INNER JOIN frpm AS T2 ON T1.cds = T2.CDSCode WHERE T1.AvgScrMath > 560 AND T2.`Charter Funding Type` = 'Directly funded'" ]
bird
dev
Database Schema: Table frpm frpm.`FRPM Count (K-12)`: REAL Sample values: "715.0" Value description: commonsense evidence: eligible FRPM rate = FRPM / Enrollment Contains null values: True frpm.`Percent (%) Eligible Free (Ages 5-17)`: REAL Sample values: "0.516822429906542" Contains null value...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
For the school with the highest average score in Reading in the SAT test, what is its FRPM count for students aged 5-17?
10
10
california_schools
[ "SELECT T2.`FRPM Count (Ages 5-17)` FROM satscores AS T1 INNER JOIN frpm AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.AvgScrRead DESC LIMIT 1" ]
bird
dev
Database Schema: Table schools schools.DOC: TEXT - District Ownership Code Sample values: "00" Value description: The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education • 02 – State Board of Education ...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Please list the codes of the schools with a total enrollment of over 500.
11
11
california_schools
[ "SELECT T2.CDSCode FROM schools AS T1 INNER JOIN frpm AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.`Enrollment (K-12)` + T2.`Enrollment (Ages 5-17)` > 500" ]
bird
dev
Database Schema: Table frpm frpm.`FRPM Count (K-12)`: REAL Sample values: "715.0" Value description: commonsense evidence: eligible FRPM rate = FRPM / Enrollment Contains null values: True frpm.`Percent (%) Eligible Free (Ages 5-17)`: REAL Sample values: "0.3" Contains null values: True frpm...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Among the schools with an SAT excellence rate of over 0.3, what is the highest eligible free rate for students aged 5-17?
12
12
california_schools
[ "SELECT MAX(CAST(T1.`Free Meal Count (Ages 5-17)` AS REAL) / T1.`Enrollment (Ages 5-17)`) FROM frpm AS T1 INNER JOIN satscores AS T2 ON T1.CDSCode = T2.cds WHERE CAST(T2.NumGE1500 AS REAL) / T2.NumTstTakr > 0.3" ]
bird
dev
Database Schema: Table satscores satscores.cname: TEXT - county name Sample values: "Alameda" satscores.NumTstTakr: INTEGER - Number of Test Takers Sample values: "3" Value description: number of test takers in each school satscores.AvgScrMath: INTEGER - average scores in Math Sample values: "418...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Please list the phone numbers of the schools with the top 3 SAT excellence rate.
13
13
california_schools
[ "SELECT T1.Phone FROM schools AS T1 INNER JOIN satscores AS T2 ON T1.CDSCode = T2.cds ORDER BY CAST(T2.NumGE1500 AS REAL) / T2.NumTstTakr DESC LIMIT 3" ]
bird
dev
Database Schema: Table schools schools.District: TEXT Sample values: "Ventura School for Girls", "Eureka City Schools" schools.Longitude: REAL Sample values: "-122.09713" Value description: The angular distance (expressed in degrees) between the location of the school, district, or administrative autho...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
List the top five schools, by descending order, from the highest to the lowest, the most number of Enrollment (Ages 5-17). Please give their NCES school identification number.
14
14
california_schools
[ "SELECT T1.NCESSchool FROM schools AS T1 INNER JOIN frpm AS T2 ON T1.CDSCode = T2.CDSCode ORDER BY T2.`Enrollment (Ages 5-17)` DESC LIMIT 5" ]
bird
dev
Database Schema: Table schools schools.DOC: TEXT - District Ownership Code Sample values: "00" Value description: The District Ownership Code (DOC) is the numeric code used to identify the category of the Administrative Authority. • 00 - County Office of Education • 02 – State Board of Education ...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Which active district has the highest average score in Reading?
15
15
california_schools
[ "SELECT T1.District FROM schools AS T1 INNER JOIN satscores AS T2 ON T1.CDSCode = T2.cds WHERE T1.StatusType = 'Active' ORDER BY T2.AvgScrRead DESC LIMIT 1" ]
bird
dev
Database Schema: Table satscores satscores.cname: TEXT - county name Sample values: "Alameda" satscores.NumTstTakr: INTEGER - Number of Test Takers Sample values: "100" Value description: number of test takers in each school satscores.AvgScrMath: INTEGER - average scores in Math Sample values: "4...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many schools in merged Alameda have number of test takers less than 100?
16
16
california_schools
[ "SELECT COUNT(T1.CDSCode) FROM schools AS T1 INNER JOIN satscores AS T2 ON T1.CDSCode = T2.cds WHERE T1.StatusType = 'Merged' AND T2.NumTstTakr < 100 AND T1.County = 'Lake'" ]
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
29