Dataset Viewer
Auto-converted to Parquet Duplicate
dataset_name
stringclasses
1 value
split
stringclasses
1 value
prompt_raw
stringlengths
1.06k
7.84k
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: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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'" ]
bird
dev
Database Schema: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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...
Rank schools by their average score in Writing where the score is greater than 499, showing their charter numbers.
17
17
california_schools
[ "SELECT CharterNum, AvgScrWrite, RANK() OVER (ORDER BY AvgScrWrite DESC) AS WritingScoreRank FROM schools AS T1 INNER JOIN satscores AS T2 ON T1.CDSCode = T2.cds WHERE T2.AvgScrWrite > 499 AND CharterNum is not null" ]
bird
dev
Database Schema: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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 Fresno (directly funded) have number of test takers not more than 250?
18
18
california_schools
[ "SELECT COUNT(T1.CDSCode) FROM frpm AS T1 INNER JOIN satscores AS T2 ON T1.CDSCode = T2.cds WHERE T1.`Charter Funding Type` = 'Directly funded' AND T1.`County Name` = 'Fresno' AND T2.NumTstTakr <= 250" ]
bird
dev
Database Schema: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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 average score in Math?
19
19
california_schools
[ "SELECT T1.Phone FROM schools AS T1 INNER JOIN satscores AS T2 ON T1.CDSCode = T2.cds ORDER BY T2.AvgScrMath DESC LIMIT 1" ]
bird
dev
Database Schema: CREATE TABLE frpm ( CDSCode TEXT not null primary key, `Academic Year` TEXT null, `County Code` TEXT null, `District Code` INTEGER null, ...
[ { "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 Amador which the Low Grade is 9 and the High Grade is 12?
20
20
california_schools
[ "SELECT COUNT(T1.`School Name`) FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Amador' AND T1.`Low Grade` = 9 AND T1.`High Grade` = 12" ]
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
9