Dataset Viewer
Auto-converted to Parquet Duplicate
dataset_name
stringclasses
1 value
split
stringclasses
1 value
prompt_raw
stringlengths
2.07k
8.21k
messages
listlengths
2
2
question
stringlengths
23
286
sample_id
int64
0
1.53k
db_id
stringclasses
11 values
groundtruth_sqls
listlengths
1
1
bird
dev
Database Schema: Table satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts. satscores.cname: TEXT - county name Sample values: "Alameda" satscores.dname: TEXT - district name. distri...
[ { "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 outside...
What is the highest eligible free rate for K-12 students in the schools in Alameda County?
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: free and reduced-price meals 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 (K-12)`: REAL Sample values: "0.519779208831647...
[ { "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 outside...
Please list the lowest three eligible free rates for students aged 5-17 in continuation schools.
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 satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts. satscores.dname: TEXT - district name Sample values: "Fresno County Office of Education", "SBE - Lifeline Ed...
[ { "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 outside...
Please list the zip code of all the charter schools in Fresno County Office of Education.
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: free and reduced-price meals 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 FRPM (Ages 5-17)`: REAL Sample values: "0.6560747663...
[ { "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 outside...
What is the unabbreviated mailing street address of the school with the highest FRPM count for K-12 students?
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: This table contains detailed information about schools in California, including their administrative contacts, location, operational status, educational levels, funding, and district affiliations. schools.FundingType: TEXT Sample values: "Directly funded", "Locally funded" Val...
[ { "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 outside...
Please list the phone numbers of the direct charter-funded schools that are opened after 2000/1/1.
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: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts. satscores.cname: TEXT - county name Sample values: "Alameda" satscores.sname: TEXT - school name Sampl...
[ { "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 outside...
How many schools with an average score in Math greater than 400 in the SAT test are exclusively virtual?
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: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts. satscores.cname: TEXT - county name Sample values: "Alameda" satscores.sname: TEXT - school name Sampl...
[ { "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 outside...
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
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: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts. satscores.cname: TEXT - county name Sample values: "Alameda" satscores.sname: TEXT - school name Sampl...
[ { "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 outside...
What is the phone number of the school that has the highest number of test takers with an SAT score of over 1500?
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 satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts. satscores.cname: TEXT - county name Sample values: "Alameda" satscores.sname: TEXT - school name Sampl...
[ { "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 outside...
What is the number of SAT test takers of the schools with the highest FRPM count for K-12 students?
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: This table contains detailed information about schools in California, including their administrative contacts, location, operational status, educational levels, funding, and district affiliations. schools.FundingType: TEXT Sample values: "Directly funded", "Locally funded" Val...
[ { "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 outside...
Among the schools with the average score in Math over 560 in the SAT test, how many schools are directly charter-funded?
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 satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts. satscores.cname: TEXT - county name Sample values: "Alameda" satscores.sname: TEXT - school name Sampl...
[ { "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 outside...
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
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 frpm: free and reduced-price meals frpm.`FRPM Count (K-12)`: REAL Sample values: "715.0" Value description: commonsense evidence: eligible FRPM rate = FRPM / Enrollment Contains null values: True frpm.`Free Meal Count (K-12)`: REAL Sample values: "565.0" Value descriptio...
[ { "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 outside...
Please list the codes of the schools with a total enrollment of over 500.
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 satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts. satscores.cname: TEXT - county name Sample values: "Alameda" satscores.sname: TEXT - school name Sampl...
[ { "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 outside...
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
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: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts. satscores.cname: TEXT - county name Sample values: "Alameda" satscores.sname: TEXT - school name Sampl...
[ { "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 outside...
Please list the phone numbers of the schools with the top 3 SAT excellence rate.
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 satscores: This table provides average SAT Math, Reading, and Writing scores, the number of test takers, and enrollment details for schools within California counties and districts. satscores.sname: TEXT - school name Sample values: "Five Keys Adult School (SF Sheriff's)", "School of Engin...
[ { "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 outside...
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
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" ]
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4