db_id
stringclasses
11 values
instruction
stringlengths
1.63k
14k
role
stringclasses
45 values
policy
unknown
input
stringlengths
23
477
output
stringlengths
23
2.22k
difficulty
stringclasses
3 values
metadata
dict
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
List the names of schools with more than 30 difference in enrollements between K-12 and ages 5-17? Please also give the full street adress of the schools.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.School, T1.Street\nFROM schools AS T1\nINNER JOIN frpm AS T2 ON T1.CDSCode = T2.CDSCode\nWHERE T2.`Enrollment (K-12)` - T2.`Enrollment (Ages 5-17)` > 30;", "permission": "denied", "query_columns": { "frpm": [ "CDSCode", "Enrollment (Ages 5-17)", "Enrollment (K-12)" ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
Give the names of the schools with the percent eligible for free meals in K-12 is more than 0.1 and test takers whose test score is greater than or equal to 1500?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.`School Name` FROM satscores AS T1 INNER JOIN frpm AS T2 ON T1.cds = T2.CDSCode WHERE CAST(T2.`Free Meal Count (K-12)` AS REAL) / T2.`Enrollment (K-12)` > 0.1 AND T1.NumGE1500 > 0", "permission": "denied", "query_columns": { "satscores": [ "NumGE1500", "cds" ], "fr...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
Name schools in Riverside which the average of average math score for SAT is grater than 400, what is the type of educational option that these school provides?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.sname, T2.`Educational Option Type` FROM satscores AS T1 INNER JOIN frpm AS T2 ON T1.cds = T2.CDSCode WHERE T2.`District Name` LIKE 'Riverside%' GROUP BY T1.sname, T2.`Educational Option Type` HAVING CAST(SUM(T1.AvgScrMath) AS REAL) / COUNT(T1.cds) > 400", "permission": "denied", "query_c...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
State the names and full communication addresses of high schools in Monterey that offer more than 800 free or reduced-priced meals for ages 15-17.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.`School Name`, T2.Street, T2.City, T2.State, T2.Zip FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Monterey' AND T1.`FRPM Count (Ages 5-17)` > 800 AND T1.`School Type` = 'High Schools (Public)'", "permission": "denied", "query_columns": { "frpm"...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the average score in writing for the schools that were opened after 1991 or closed before 2000? List the school names along with the score. Also, list the communication number of the schools if there is any.
SELECT T2.School, T1.AvgScrWrite, T2.Phone FROM schools AS T2 LEFT JOIN satscores AS T1 ON T2.CDSCode = T1.cds WHERE strftime('%Y', T2.OpenDate) > '1991' OR strftime('%Y', T2.ClosedDate) < '2000'
moderate
{ "gold_sql": "SELECT T2.School, T1.AvgScrWrite, T2.Phone FROM schools AS T2 LEFT JOIN satscores AS T1 ON T2.CDSCode = T1.cds WHERE strftime('%Y', T2.OpenDate) > '1991' OR strftime('%Y', T2.ClosedDate) < '2000'", "permission": "allowed", "query_columns": { "satscores": [ "AvgScrWrite", "cds" ]...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
Consider the average difference between K-12 enrollment and 15-17 enrollment of schools that are locally funded, list the names and DOC type of schools which has a difference above this average.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT T2.School, T2.DOC FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.FundingType = 'Locally funded' AND (T1.`Enrollment (K-12)` - T1.`Enrollment (Ages 5-17)`) > (SELECT AVG(T3.`Enrollment (K-12)` - T3.`Enrollment (Ages 5-17)`) FROM frpm AS T3 INNER JOIN schools AS T4 ON...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
When did the first-through-twelfth-grade school with the largest enrollment open?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.OpenDate FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode ORDER BY T1.`Enrollment (K-12)` DESC LIMIT 1", "permission": "denied", "query_columns": { "frpm": [ "CDSCode", "Enrollment (K-12)" ], "schools": [ "CDSCode", "OpenDate" ] ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
Which cities have the top 5 lowest enrollment number for students in grades 1 through 12?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.City FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode GROUP BY T2.City ORDER BY SUM(T1.`Enrollment (K-12)`) ASC LIMIT 5", "permission": "denied", "query_columns": { "frpm": [ "CDSCode", "Enrollment (K-12)" ], "schools": [ "CDSCode", "...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
For the 10th and 11th largest schools by K-12 enrollment, provide a comprehensive profile including their enrollment statistics, free meal eligibility rates, location details, school type, grade spans offered, and SAT performance metrics.
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH EnrollmentRanked AS (\n SELECT \n f.CDSCode,\n f.`School Name`,\n f.`District Name`,\n f.`County Name`,\n f.`Enrollment (K-12)`,\n f.`Free Meal Count (K-12)`,\n CAST(f.`Free Meal Count (K-12)` AS REAL) / f.`Enrollment (K-12)` AS EligibleFreeRate,...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
For the top 5 schools with the highest number of students eligible for free or reduced price meals in grades K-12 among schools with ownership code 66, what are their eligibility rates, SAT performance metrics, and how do they compare in terms of SAT participation and high scorer rates?
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH SchoolEligibilityRanking AS (\n SELECT \n T1.CDSCode,\n T2.School,\n T2.County,\n T2.District,\n T2.SOCType,\n T1.`Enrollment (K-12)`,\n T1.`FRPM Count (K-12)`,\n CAST(T1.`FRPM Count (K-12)` AS REAL) / T1.`Enrollment (K-12)` AS Eligibility...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
If there are any, what are the websites address of the schools with a free meal count of 1,900-2,000 to students aged 5-17? Include the name of the school.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.Website, T1.`School Name` FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.`Free Meal Count (Ages 5-17)` BETWEEN 1900 AND 2000 AND T2.Website IS NOT NULL", "permission": "denied", "query_columns": { "frpm": [ "CDSCode", "Free Meal Count (Ages 5-...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the free rate for students between the ages of 5 and 17 at the school run by Kacey Gibson?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT CAST(T2.`Free Meal Count (Ages 5-17)` AS REAL) / T2.`Enrollment (Ages 5-17)` FROM schools AS T1 INNER JOIN frpm AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.AdmFName1 = 'Kacey' AND T1.AdmLName1 = 'Gibson'", "permission": "denied", "query_columns": { "frpm": [ "CDSCode", "Free Me...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the administrator's email address of the chartered school with the fewest students enrolled in grades 1 through 12?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.AdmEmail1 FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.`Charter School (Y/N)` = 1 ORDER BY T1.`Enrollment (K-12)` ASC, T1.CDSCode ASC LIMIT 1", "permission": "denied", "query_columns": { "frpm": [ "CDSCode", "Charter School (Y/N)", "En...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
Under whose administration is the school with the highest number of students scoring 1500 or more on the SAT? Indicate their full names.
SELECT T2.AdmFName1, T2.AdmLName1, T2.AdmFName2, T2.AdmLName2, T2.AdmFName3, T2.AdmLName3 FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.NumGE1500 DESC LIMIT 1
challenging
{ "gold_sql": "SELECT T2.AdmFName1, T2.AdmLName1, T2.AdmFName2, T2.AdmLName2, T2.AdmFName3, T2.AdmLName3 FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.NumGE1500 DESC LIMIT 1", "permission": "allowed", "query_columns": { "satscores": [ "NumGE1500", "cds" ], ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the complete address of the school with the lowest excellence rate? Indicate the Street, City, Zip and State.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.Street, T2.City, T2.State, T2.Zip\nFROM satscores AS T1\nINNER JOIN schools AS T2 ON T1.cds = T2.CDSCode\nORDER BY CAST(T1.NumGE1500 AS REAL) / T1.NumTstTakr ASC\nLIMIT 1;", "permission": "denied", "query_columns": { "satscores": [ "NumGE1500", "NumTstTakr", "cds" ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What are the webpages for the Los Angeles County school that has between 2,000 and 3,000 test takers?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.Website FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T1.NumTstTakr BETWEEN 2000 AND 3000 AND T2.County = 'Los Angeles'", "permission": "denied", "query_columns": { "satscores": [ "NumTstTakr", "cds" ], "schools": [ "CDSCode", ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the average number of test takers from Fresno schools that opened between 1/1/1980 and 12/31/1980?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT AVG(T1.NumTstTakr) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE strftime('%Y', T2.OpenDate) = '1980' AND T2.County = 'Fresno'", "permission": "denied", "query_columns": { "satscores": [ "NumTstTakr", "cds" ], "schools": [ "CDSCode",...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the telephone number for the school with the lowest average score in reading in Fresno Unified?
SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District = 'Fresno Unified' AND T1.AvgScrRead IS NOT NULL ORDER BY T1.AvgScrRead ASC LIMIT 1
moderate
{ "gold_sql": "SELECT T2.Phone FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.District = 'Fresno Unified' AND T1.AvgScrRead IS NOT NULL ORDER BY T1.AvgScrRead ASC LIMIT 1", "permission": "allowed", "query_columns": { "satscores": [ "AvgScrRead", "cds" ], "sch...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
List the names of virtual schools that are among the top 5 in their respective counties based on average reading scores.
SELECT School FROM (SELECT T2.School,T1.AvgScrRead, RANK() OVER (PARTITION BY T2.County ORDER BY T1.AvgScrRead DESC) AS rnk FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.Virtual = 'F' ) ranked_schools WHERE rnk <= 5
simple
{ "gold_sql": "SELECT School FROM (SELECT T2.School,T1.AvgScrRead, RANK() OVER (PARTITION BY T2.County ORDER BY T1.AvgScrRead DESC) AS rnk FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.Virtual = 'F' ) ranked_schools WHERE rnk <= 5", "permission": "allowed", "query_columns": { "...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the type of education offered in the school who scored the highest average in Math?
SELECT T2.EdOpsName FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.AvgScrMath DESC LIMIT 1
simple
{ "gold_sql": "SELECT T2.EdOpsName FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.AvgScrMath DESC LIMIT 1", "permission": "allowed", "query_columns": { "satscores": [ "AvgScrMath", "cds" ], "schools": [ "CDSCode", "EdOpsName" ] }, "miss...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the average math score of the school with the lowest average score for all subjects, and in which county is it located?
SELECT T1.AvgScrMath, T2.County FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T1.AvgScrMath IS NOT NULL AND T1.AvgScrRead IS NOT NULL AND T1.AvgScrWrite IS NOT NULL ORDER BY (T1.AvgScrMath + T1.AvgScrRead + T1.AvgScrWrite) / 3 ASC LIMIT 1
moderate
{ "gold_sql": "SELECT T1.AvgScrMath, T2.County FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T1.AvgScrMath IS NOT NULL AND T1.AvgScrRead IS NOT NULL AND T1.AvgScrWrite IS NOT NULL ORDER BY (T1.AvgScrMath + T1.AvgScrRead + T1.AvgScrWrite) / 3 ASC LIMIT 1", "permission": "allowed", "que...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the average writing score of the school who has the highest number of test takers whose total SAT sscores are greater or equal to 1500? Indicate the city to where the school is situated.
SELECT T1.AvgScrWrite, T2.City FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.NumGE1500 DESC LIMIT 1
simple
{ "gold_sql": "SELECT T1.AvgScrWrite, T2.City FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.NumGE1500 DESC LIMIT 1", "permission": "allowed", "query_columns": { "satscores": [ "AvgScrWrite", "NumGE1500", "cds" ], "schools": [ "CDSCode", ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
For schools administered by Ricci Ulrich, provide a comprehensive performance analysis including their SAT scores in all three sections, total SAT score, rankings compared to other schools, FRPM eligibility rate, test participation rate, and how their writing scores compare to their district average.
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH SchoolStats AS (\n SELECT \n s.CDSCode,\n s.School,\n s.AdmFName1,\n s.AdmLName1,\n sat.AvgScrWrite,\n sat.AvgScrRead,\n sat.AvgScrMath,\n sat.NumTstTakr,\n f.`Enrollment (K-12)`,\n f.`Percent (%) Eligible FRPM (K-12)` * 100 ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
Which state special schools have the highest number of enrollees from grades 1 through 12?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.School FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.DOC = 31 ORDER BY T1.`Enrollment (K-12)` DESC, T2.CDSCode ASC LIMIT 1", "permission": "denied", "query_columns": { "frpm": [ "CDSCode", "Enrollment (K-12)" ], "schools": [ "CD...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the monthly average number of schools that opened in Alameda County under the jurisdiction of the Elementary School District in 1980?
SELECT CAST(COUNT(School) AS REAL) / 12 FROM schools WHERE DOC = 52 AND County = 'Alameda' AND strftime('%Y', OpenDate) = '1980'
moderate
{ "gold_sql": "SELECT CAST(COUNT(School) AS REAL) / 12 FROM schools WHERE DOC = 52 AND County = 'Alameda' AND strftime('%Y', OpenDate) = '1980'", "permission": "allowed", "query_columns": { "schools": [ "County", "DOC", "OpenDate", "School" ] }, "missing_columns": {}, "reason...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the ratio of merged Unified School District schools to merged Elementary School District schools in Orange County?
SELECT CAST(SUM(CASE WHEN DOC = 54 THEN 1 ELSE 0 END) AS REAL) / NULLIF(SUM(CASE WHEN DOC = 52 THEN 1 ELSE 0 END),0) FROM schools WHERE StatusType = 'Merged' AND County = 'Orange'
moderate
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN DOC = 54 THEN 1 ELSE 0 END) AS REAL) / NULLIF(SUM(CASE WHEN DOC = 52 THEN 1 ELSE 0 END),0) FROM schools WHERE StatusType = 'Merged' AND County = 'Orange'", "permission": "allowed", "query_columns": { "schools": [ "County", "DOC", "StatusType" ] ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
Which different county has the most number of closed schools? Please provide the name of each school as well as the closure date.
SELECT DISTINCT County, School, ClosedDate FROM schools WHERE County = ( SELECT County FROM schools WHERE StatusType = 'Closed' GROUP BY County ORDER BY COUNT(School) DESC LIMIT 1 ) AND StatusType = 'Closed' AND school IS NOT NULL
moderate
{ "gold_sql": "SELECT DISTINCT County, School, ClosedDate FROM schools WHERE County = ( SELECT County FROM schools WHERE StatusType = 'Closed' GROUP BY County ORDER BY COUNT(School) DESC LIMIT 1 ) AND StatusType = 'Closed' AND school IS NOT NULL", "permission": "allowed", "query_columns": { "schools": [ ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the postal street address for the school with the 7th highest Math average? Indicate the school's name.
SELECT T2.MailStreet, T2.School FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.AvgScrMath DESC LIMIT 6, 1
simple
{ "gold_sql": "SELECT T2.MailStreet, T2.School FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.AvgScrMath DESC LIMIT 6, 1", "permission": "allowed", "query_columns": { "satscores": [ "AvgScrMath", "cds" ], "schools": [ "CDSCode", "MailStreet", ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
In which mailing street address can you find the school that has the lowest average score in reading? Also give the school's name.
SELECT T2.MailStreet, T2.School FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T1.AvgScrRead IS NOT NULL ORDER BY T1.AvgScrRead ASC, T1.cds DESC LIMIT 1
simple
{ "gold_sql": "SELECT T2.MailStreet, T2.School FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T1.AvgScrRead IS NOT NULL ORDER BY T1.AvgScrRead ASC, T1.cds DESC LIMIT 1", "permission": "allowed", "query_columns": { "satscores": [ "AvgScrRead", "cds" ], "schools":...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the total number of schools whose total SAT scores are greater or equal to 1500 whose mailing city is Lakeport?
SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Lakeport' AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500
simple
{ "gold_sql": "SELECT COUNT(T1.cds) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Lakeport' AND (T1.AvgScrRead + T1.AvgScrMath + T1.AvgScrWrite) >= 1500", "permission": "allowed", "query_columns": { "satscores": [ "AvgScrMath", "AvgScrRead", "AvgSc...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
How many test takers are there at the school/s whose mailing city address is in Fresno?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT SUM(T1.NumTstTakr) FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.MailCity = 'Fresno'", "permission": "denied", "query_columns": { "satscores": [ "NumTstTakr", "cds" ], "schools": [ "CDSCode", "MailCity" ] }, "missing...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
Please specify all of the schools and their related mailing zip codes that are under Avetik Atoian's administration.
SELECT School, MailZip FROM schools WHERE AdmFName1 = 'Avetik' AND AdmLName1 = 'Atoian'
simple
{ "gold_sql": "SELECT School, MailZip FROM schools WHERE AdmFName1 = 'Avetik' AND AdmLName1 = 'Atoian'", "permission": "allowed", "query_columns": { "schools": [ "AdmFName1", "AdmLName1", "MailZip", "School" ] }, "missing_columns": {}, "reason": "All required columns are perm...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What are the ratios comparing various educational metrics between schools in Colusa County and Humboldt County in California, including total number of schools, charter schools, schools with high free meal eligibility rates, average SAT scores, total students receiving free or reduced-price meals, and total enrollment?
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH ColusaSchools AS (\n SELECT \n s.CDSCode,\n s.School,\n s.County,\n s.Charter,\n f.`FRPM Count (K-12)`,\n f.`Enrollment (K-12)`,\n CASE \n WHEN f.`Percent (%) Eligible FRPM (K-12)` > 0.5 THEN 'High FRPM'\n ELSE 'Low FRPM'\n ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
Of all the schools with a mailing state address in California, how many are active in San Joaquin city?
SELECT COUNT(CDSCode) FROM schools WHERE City = 'San Joaquin' AND MailState = 'CA' AND StatusType = 'Active'
simple
{ "gold_sql": "SELECT COUNT(CDSCode) FROM schools WHERE City = 'San Joaquin' AND MailState = 'CA' AND StatusType = 'Active'", "permission": "allowed", "query_columns": { "schools": [ "CDSCode", "City", "MailState", "StatusType" ] }, "missing_columns": {}, "reason": "All requi...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the phone number and extension number for the school that had the 333rd highest average writing score?
SELECT T2.Phone, T2.Ext FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.AvgScrWrite DESC LIMIT 332, 1
simple
{ "gold_sql": "SELECT T2.Phone, T2.Ext FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.AvgScrWrite DESC LIMIT 332, 1", "permission": "allowed", "query_columns": { "satscores": [ "AvgScrWrite", "cds" ], "schools": [ "CDSCode", "Ext", "Phone...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the phone number and extension number for the school with the zip code 95203-3704? Indicate the school's name.
SELECT Phone, Ext, School FROM schools WHERE Zip = '95203-3704'
simple
{ "gold_sql": "SELECT Phone, Ext, School FROM schools WHERE Zip = '95203-3704'", "permission": "allowed", "query_columns": { "schools": [ "Ext", "Phone", "School", "Zip" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 58, "eviden...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the website for the schools under the administrations of Mike Larson and Dante Alvarez?
SELECT Website FROM schools WHERE (AdmFName1 = 'Mike' AND AdmLName1 = 'Larson') OR (AdmFName1 = 'Dante' AND AdmLName1 = 'Alvarez')
simple
{ "gold_sql": "SELECT Website FROM schools WHERE (AdmFName1 = 'Mike' AND AdmLName1 = 'Larson') OR (AdmFName1 = 'Dante' AND AdmLName1 = 'Alvarez')", "permission": "allowed", "query_columns": { "schools": [ "AdmFName1", "AdmLName1", "Website" ] }, "missing_columns": {}, "reason": "Al...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
For all partially virtual charter schools in San Joaquin County, provide a comprehensive analysis including their enrollment statistics, poverty levels based on free and reduced-price meal eligibility, SAT performance metrics, and rank them by enrollment size within the county.
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH CharterSchoolStats AS (\n SELECT \n s.CDSCode,\n s.Website,\n s.School,\n s.County,\n s.Charter,\n s.Virtual,\n s.CharterNum,\n s.FundingType,\n f.`Enrollment (K-12)` AS TotalEnrollment,\n f.`FRPM Count (K-12)` AS FRPMCount,\...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
For charter schools owned by Elementary School Districts in Hickman, what are their enrollment sizes, free and reduced price meal eligibility rates, SAT performance metrics, and how do they rank by size within the city?
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH CharterSchoolStats AS (\n SELECT \n s.CDSCode,\n s.School,\n s.City,\n s.DOC,\n s.Charter,\n f.`Charter School Number`,\n f.`Charter Funding Type`,\n f.`Enrollment (K-12)` AS EnrollmentK12,\n f.`FRPM Count (K-12)` AS FRPMCount,\n ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
For non-chartered schools in Los Angeles County with a free meal rate below 0.18%, provide details about each school including their enrollment, free meal count, exact free meal percentage, their rank within the county, and statistics about how many schools in the county fall into this low free meal category.
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH SchoolStats AS (\n SELECT \n s.CDSCode,\n s.School,\n s.County,\n s.District,\n s.Charter,\n f.`Free Meal Count (K-12)`,\n f.`Enrollment (K-12)`,\n CAST(f.`Free Meal Count (K-12)` AS REAL) * 100 / f.`Enrollment (K-12)` AS FreePercent,\n ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
In chartered schools with charter number 00D2, what are the names of all the administrators? Include the name of the school and the city to which it belongs
SELECT AdmFName1, AdmLName1, School, City FROM schools WHERE Charter = 1 AND CharterNum = '00D2'
simple
{ "gold_sql": "SELECT AdmFName1, AdmLName1, School, City FROM schools WHERE Charter = 1 AND CharterNum = '00D2'", "permission": "allowed", "query_columns": { "schools": [ "AdmFName1", "AdmLName1", "Charter", "CharterNum", "City", "School" ] }, "missing_columns": {},...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the total number of schools with a mailing city in Hickman belonging to the charter number 00D4?
SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity = 'Hickman'
simple
{ "gold_sql": "SELECT COUNT(*) FROM schools WHERE CharterNum = '00D4' AND MailCity = 'Hickman'", "permission": "allowed", "query_columns": { "schools": [ "CharterNum", "MailCity" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 64, "evidence"...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the ratio in percentage of Santa Clara County charter schools that are locally funded compared to charter schools with all other types of funding?
SELECT CAST(SUM(CASE WHEN FundingType = 'Locally funded' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN FundingType != 'Locally funded' THEN 1 ELSE 0 END) FROM schools WHERE County = 'Santa Clara' AND Charter = 1
moderate
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN FundingType = 'Locally funded' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN FundingType != 'Locally funded' THEN 1 ELSE 0 END) FROM schools WHERE County = 'Santa Clara' AND Charter = 1", "permission": "allowed", "query_columns": { "schools": [ "Charter", ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
For directly funded schools that opened in Stanislaus County between 2000 and 2005, provide detailed information about each school including their enrollment, free or reduced price meal eligibility rates, SAT scores, and how they compare to the county average. Also rank them by their FRPM percentage and SAT performance...
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH DirectlyFundedSchools AS (\n SELECT \n s.CDSCode,\n s.School,\n s.County,\n s.OpenDate,\n s.FundingType,\n strftime('%Y', s.OpenDate) AS OpenYear,\n f.`Charter School (Y/N)` AS IsCharter,\n f.`Enrollment (K-12)` AS Enrollment,\n f.`...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the total amount of Community College District closure in 1989 in the city of San Francisco?
SELECT COUNT(School) FROM schools WHERE strftime('%Y', ClosedDate) = '1989' AND City = 'San Francisco' AND DOCType = 'Community College District'
simple
{ "gold_sql": "SELECT COUNT(School) FROM schools WHERE strftime('%Y', ClosedDate) = '1989' AND City = 'San Francisco' AND DOCType = 'Community College District'", "permission": "allowed", "query_columns": { "schools": [ "City", "ClosedDate", "DOCType", "School" ] }, "missing_co...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
Which county reported the most number of school closure in the 1980s with school wonership code belonging to Youth Authority Facilities (CEA)?
SELECT County FROM ( SELECT County, COUNT(CDSCode) as closure_count, DENSE_RANK() OVER (ORDER BY COUNT(CDSCode) DESC) as rank_num FROM schools WHERE strftime('%Y', ClosedDate) BETWEEN '1980' AND '1989' AND StatusType = 'Closed' AND SOC = '11' GROUP BY County ) WHERE rank_num =...
moderate
{ "gold_sql": "SELECT County\nFROM (\n SELECT County, COUNT(CDSCode) as closure_count,\n DENSE_RANK() OVER (ORDER BY COUNT(CDSCode) DESC) as rank_num\n FROM schools \n WHERE strftime('%Y', ClosedDate) BETWEEN '1980' AND '1989' \n AND StatusType = 'Closed' \n AND SOC = '11'\n GROUP BY C...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
For State Special Schools with a School Ownership Code starting with 3, show me their NCES district ID, school name, charter status, current operational status, opening date, enrollment, poverty classification, SAT scores by subject, overall average SAT score, and enrollment ranking. Sort the results by enrollment from...
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH StateSpecialSchools AS (\n SELECT \n s.CDSCode,\n s.NCESDist,\n s.School,\n s.DOCType,\n s.SOC,\n CASE \n WHEN s.Charter = 1 THEN 'Charter'\n ELSE 'Non-Charter'\n END AS SchoolType,\n s.OpenDate,\n s.ClosedDate...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
How many active and closed District Community Day Schools are there in the county of Alpine?
SELECT COUNT(School) FROM schools WHERE (StatusType = 'Closed' OR StatusType = 'Active') AND SOC = 69 AND County = 'Alpine'
simple
{ "gold_sql": "SELECT COUNT(School) FROM schools WHERE (StatusType = 'Closed' OR StatusType = 'Active') AND SOC = 69 AND County = 'Alpine'", "permission": "allowed", "query_columns": { "schools": [ "County", "SOC", "School", "StatusType" ] }, "missing_columns": {}, "reason": ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the district code for the School that does not offer a magnet program in the city of Fresno?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T1.`District Code` FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.City = 'Fresno' AND T2.Magnet = 0", "permission": "denied", "query_columns": { "frpm": [ "CDSCode", "District Code" ], "schools": [ "CDSCode", "City", ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
How many students from the ages of 5 to 17 are enrolled at the State Special School school in Fremont for the 2014-2015 academic year?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.`Enrollment (Ages 5-17)` FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.EdOpsCode = 'SSS' AND T2.City = 'Fremont' AND T1.`Academic Year` BETWEEN 2014 AND 2015", "permission": "denied", "query_columns": { "frpm": [ "Academic Year", "CDSCode", ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the free or reduced price meal count for ages 5 to 17 in the Youth Authority School with a mailing street address of PO Box 1040?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.`FRPM Count (Ages 5-17)` FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.MailStreet = 'PO Box 1040' AND T2.SOCType = 'Youth Authority Facilities'", "permission": "denied", "query_columns": { "frpm": [ "CDSCode", "FRPM Count (Ages 5-17)" ], ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the lowest grade for the District Special Education Consortia School with National Center for Educational Statistics school district identification number of 0613360?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT MIN(T1.`Low Grade`) FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.NCESDist = '0613360' AND T2.EdOpsCode = 'SPECON'", "permission": "denied", "query_columns": { "frpm": [ "CDSCode", "Low Grade" ], "schools": [ "CDSCode", "EdOp...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the educational level name for the schools with Breakfast Provision 2 in county code 37? Indicate the name of the school.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.EILName, T2.School FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.`NSLP Provision Status` = 'Breakfast Provision 2' AND T1.`County Code` = 37", "permission": "denied", "query_columns": { "frpm": [ "CDSCode", "County Code", "NSLP Provisio...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the city location of the high school level school with Lunch Provision 2 whose lowest grade is 9 and the highest grade is 12 in the county of Merced?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.City FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.`NSLP Provision Status` = 'Lunch Provision 2' AND T2.County = 'Merced' AND T1.`Low Grade` = 9 AND T1.`High Grade` = 12 AND T2.EILCode = 'HS'", "permission": "denied", "query_columns": { "frpm": [ "...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
For schools in Los Angeles County that serve grades K-9, what are their poverty levels based on FRPM eligibility rates, and how do they perform on SAT tests? Include their charter status and rank them by FRPM percentage.
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH SchoolStats AS (\n SELECT \n s.CDSCode,\n s.School,\n s.County,\n s.GSserved,\n s.Charter,\n s.CharterNum,\n s.City,\n f.`FRPM Count (Ages 5-17)`,\n f.`Enrollment (Ages 5-17)`,\n f.`FRPM Count (Ages 5-17)` * 100.0 / f.`Enroll...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
For the most common grade span served in Adelanto, what are the enrollment statistics, poverty levels, and average SAT scores across all active schools?
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH SchoolsByGradeSpan AS (\n SELECT \n s.GSserved,\n COUNT(s.CDSCode) AS school_count,\n RANK() OVER (ORDER BY COUNT(s.CDSCode) DESC) AS grade_span_rank\n FROM \n schools s\n WHERE \n s.City = 'Adelanto'\n GROUP BY \n s.GSserved\n),\nSchoolStats A...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
For fully virtual schools in San Diego and Santa Barbara counties, which county has the most virtual schools? Provide comprehensive statistics including the count, breakdown of charter vs regular schools, enrollment figures, average free/reduced meal percentage, average SAT scores, and identify the largest virtual scho...
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH VirtualSchoolsByCounty AS (\n SELECT \n s.County,\n s.School,\n s.Virtual,\n s.SOCType,\n s.GSoffered,\n CASE \n WHEN f.`Charter School (Y/N)` = 1 THEN 'Charter School'\n ELSE 'Regular School'\n END AS SchoolType,\n f...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the school type of the school with the highest latitude? Indicate the name of the school as well as the latitude coordinates.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.`School Type`, T1.`School Name`, T2.Latitude FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode ORDER BY T2.Latitude DESC, T1.CDSCode ASC LIMIT 1", "permission": "denied", "query_columns": { "frpm": [ "CDSCode", "School Name", "School Type" ], ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
In which city can you find the school in the state of California with the lowest latitude coordinates and what is its lowest grade? Indicate the school name.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.City, T1.`Low Grade`, T1.`School Name` FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.State = 'CA' ORDER BY T2.Latitude ASC LIMIT 1", "permission": "denied", "query_columns": { "frpm": [ "CDSCode", "Low Grade", "School Name" ], "...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the grade span offered in the school with the highest longitude?
SELECT GSoffered FROM schools ORDER BY ABS(longitude) DESC LIMIT 1
simple
{ "gold_sql": "SELECT GSoffered FROM schools ORDER BY ABS(longitude) DESC LIMIT 1", "permission": "allowed", "query_columns": { "schools": [ "GSoffered", "Longitude" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 82, "evidence": "the highes...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
Of the schools that offers a magnet program serving a grade span of Kindergarten to 8th grade, how many offers Multiple Provision Types? List the number of cities that offers a Kindergarten to 8th grade span and indicate how many schools are there serving such grade span for each city.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT T2.City, COUNT(T2.CDSCode) FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.Magnet = 1 AND T2.GSoffered = 'K-8' AND T1.`NSLP Provision Status` = 'Multiple Provision Types' GROUP BY T2.City", "permission": "denied", "query_columns": { "frpm": [ "CDSCode",...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What are the two most common first names among the school administrators? Indicate the district to which they administer.
SELECT DISTINCT T1.AdmFName1, T1.District FROM schools AS T1 INNER JOIN ( SELECT admfname1 FROM schools GROUP BY admfname1 ORDER BY COUNT(admfname1) DESC, admfname1 ASC LIMIT 2 ) AS T2 ON T1.AdmFName1 = T2.admfname1;
simple
{ "gold_sql": "SELECT DISTINCT T1.AdmFName1, T1.District \nFROM schools AS T1 \nINNER JOIN (\n SELECT admfname1 \n FROM schools \n GROUP BY admfname1 \n ORDER BY COUNT(admfname1) DESC, admfname1 ASC\n LIMIT 2\n) AS T2 \nON T1.AdmFName1 = T2.admfname1;", "permission": "allowed", "query_columns": { ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the Percent (%) Eligible Free (K-12) in the school administered by an administrator whose first name is Alusine. List the district code of the school.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT \n T1.`Free Meal Count (K-12)` * 100 / T1.`Enrollment (K-12)` AS \"Percent (%) Eligible Free (K-12)\",\n T1.`District Code` \nFROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode \nWHERE T2.AdmFName1 = 'Alusine' OR T2.AdmFName2 = 'Alusine' OR T2.AdmFName3 = 'Alusine'", "pe...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the administrator's last name that oversees the school with Charter number 40? Indicate the district, the county where the school is situated, and the name of the school.
SELECT AdmLName1, District, County, School FROM schools WHERE CharterNum = '0040'
simple
{ "gold_sql": "SELECT AdmLName1, District, County, School FROM schools WHERE CharterNum = '0040'", "permission": "allowed", "query_columns": { "schools": [ "AdmLName1", "CharterNum", "County", "District", "School" ] }, "missing_columns": {}, "reason": "All required colu...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What are the valid e-mail addresses of the administrator of the school located in the San Bernardino county, City of San Bernardino that belongs to a Unified School District and opened between 1/1/2009 to 12/31/2010 whose school types are public Intermediate/Middle Schools?
SELECT AdmEmail1, AdmEmail2 FROM schools WHERE County = 'San Bernardino' AND City = 'San Bernardino' AND DOC = 54 AND strftime('%Y', OpenDate) BETWEEN '2009' AND '2010' AND SOC = 62
challenging
{ "gold_sql": "SELECT AdmEmail1, AdmEmail2 FROM schools WHERE County = 'San Bernardino' AND City = 'San Bernardino' AND DOC = 54 AND strftime('%Y', OpenDate) BETWEEN '2009' AND '2010' AND SOC = 62", "permission": "allowed", "query_columns": { "schools": [ "AdmEmail1", "AdmEmail2", "City", ...
california_schools
##Instruction: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Database: california_schools Total Tables: 3 Total Columns: 89 Table Schemas: Table: frpm (29 columns) ------------------------ • CDSCode (integer): CDSCode • Academic Year (integer): Academic Year • County Code (integer): ...
DataOperator_3
{ "satscores": [ "AvgScrMath", "AvgScrRead", "AvgScrWrite", "NumGE1500", "cds", "cname", "dname", "rtype", "sname" ], "schools": [ "*" ] }
What is the administrator's email address for the school with the highest number of test takers who received SAT scores of at least 1500?Provide the name of the school.
SELECT T2.AdmEmail1, T2.School FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.NumGE1500 DESC, T1.cds ASC LIMIT 1
simple
{ "gold_sql": "SELECT T2.AdmEmail1, T2.School FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.NumGE1500 DESC, T1.cds ASC LIMIT 1", "permission": "allowed", "query_columns": { "satscores": [ "NumGE1500", "cds" ], "schools": [ "AdmEmail1", "CDSCod...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
Please list the reference names of the drivers who are eliminated in the first period in race number 20.
SELECT T2.driverRef FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 20 ORDER BY T1.q1 DESC LIMIT 5
moderate
{ "gold_sql": "SELECT T2.driverRef FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 20 ORDER BY T1.q1 DESC LIMIT 5", "permission": "allowed", "query_columns": { "drivers": [ "driverId", "driverRef" ], "qualifying": [ "driverId", "q1"...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
What is the surname of the driver with the best lap time in race number 19 in the second qualifying period?
SELECT T2.surname FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 19 ORDER BY T1.q2 ASC LIMIT 1;
simple
{ "gold_sql": "SELECT T2.surname\nFROM qualifying AS T1\nINNER JOIN drivers AS T2 ON T2.driverId = T1.driverId\nWHERE T1.raceId = 19\nORDER BY T1.q2 ASC\nLIMIT 1;", "permission": "allowed", "query_columns": { "drivers": [ "driverId", "surname" ], "qualifying": [ "driverId", "q2...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
Please list the year during which the race is held on circuits in Shanghai.
SELECT T2.year FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.location = 'Shanghai'
simple
{ "gold_sql": "SELECT T2.year FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.location = 'Shanghai'", "permission": "allowed", "query_columns": { "races": [ "circuitID", "year" ], "circuits": [ "circuitId", "location" ] }, "missing_col...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
Where can the introduction of the races held on Circuit de Barcelona-Catalunya be found?
SELECT DISTINCT T1.url FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Circuit de Barcelona-Catalunya'
simple
{ "gold_sql": "SELECT DISTINCT T1.url FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Circuit de Barcelona-Catalunya'", "permission": "allowed", "query_columns": { "races": [ "circuitID" ], "circuits": [ "circuitId", "name", "url" ...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
Please give the name of the race held on the circuits in Germany.
SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Germany'
simple
{ "gold_sql": "SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Germany'", "permission": "allowed", "query_columns": { "races": [ "circuitID", "name" ], "circuits": [ "circuitId", "country" ] }, "missi...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
What positions did constructor Renault achieve in the standings?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T1.position FROM constructorStandings AS T1 INNER JOIN constructors AS T2 ON T2.constructorId = T1.constructorId WHERE T2.name = 'Renault'", "permission": "denied", "query_columns": { "constructorstandings": [ "constructorId", "position" ], "constructors": [ ...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
How many races in the year 2010 are held on grand prixs outside Asia and Europe?
SELECT COUNT(T3.raceId) FROM circuits AS T1 INNER JOIN races AS T3 ON T3.circuitID = T1.circuitId WHERE T1.country NOT IN ( 'Bahrain', 'China', 'Singapore', 'Japan', 'Korea', 'Turkey', 'UAE', 'Malaysia', 'Spain', 'Monaco', 'Azerbaijan', 'Austria', 'Belgium', 'France', 'Germany', 'Hungary', 'Italy', 'UK' ) AND T3.year =...
moderate
{ "gold_sql": "SELECT COUNT(T3.raceId) FROM circuits AS T1 INNER JOIN races AS T3 ON T3.circuitID = T1.circuitId WHERE T1.country NOT IN ( 'Bahrain', 'China', 'Singapore', 'Japan', 'Korea', 'Turkey', 'UAE', 'Malaysia', 'Spain', 'Monaco', 'Azerbaijan', 'Austria', 'Belgium', 'France', 'Germany', 'Hungary', 'Italy', 'UK...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
Please give the names of the races held on the circuits in Spain.
SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Spain'
simple
{ "gold_sql": "SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Spain'", "permission": "allowed", "query_columns": { "races": [ "circuitID", "name" ], "circuits": [ "circuitId", "country" ] }, "missing...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
What is the coordinates location of the circuits for Australian grand prix?
SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Australian Grand Prix'
simple
{ "gold_sql": "SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Australian Grand Prix'", "permission": "allowed", "query_columns": { "races": [ "circuitID", "name" ], "circuits": [ "circuitId", "lat", ...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
Where can I find the information about the races held on Sepang International Circuit?
SELECT DISTINCT T1.url FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Sepang International Circuit'
simple
{ "gold_sql": "SELECT DISTINCT T1.url FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Sepang International Circuit'", "permission": "allowed", "query_columns": { "races": [ "circuitID" ], "circuits": [ "circuitId", "name", "url" ] ...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
Please list the time of the races held on Sepang International Circuit.
SELECT DISTINCT T2.`time` FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Sepang International Circuit'
simple
{ "gold_sql": "SELECT DISTINCT T2.`time` FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Sepang International Circuit'", "permission": "allowed", "query_columns": { "races": [ "circuitID", "time" ], "circuits": [ "circuitId", "name" ...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
Give the coordinate position for Abu Dhabi Grand Prix.
SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Abu Dhabi Grand Prix'
simple
{ "gold_sql": "SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Abu Dhabi Grand Prix'", "permission": "allowed", "query_columns": { "races": [ "circuitID", "name" ], "circuits": [ "circuitId", "lat", ...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
Which country is the constructor which got 1 point in the race No. 24 from?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.nationality FROM constructorResults AS T1 INNER JOIN constructors AS T2 ON T2.constructorId = T1.constructorId WHERE T1.raceId = 24 AND T1.points = 1", "permission": "denied", "query_columns": { "constructorresults": [ "constructorId", "points", "raceId" ], "...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
What's Bruno Senna's Q1 result in the qualifying race No. 354?
SELECT T1.q1 FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 354 AND T2.forename = 'Bruno' AND T2.surname = 'Senna'
simple
{ "gold_sql": "SELECT T1.q1 FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 354 AND T2.forename = 'Bruno' AND T2.surname = 'Senna'", "permission": "allowed", "query_columns": { "drivers": [ "driverId", "forename", "surname" ], "qualifying...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
For the driver who had the Q2 time as 0:01:40 in the qualifying race No. 355, what is his nationality?
SELECT DISTINCT T2.nationality FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 355 AND T1.q2 LIKE '1:40%'
simple
{ "gold_sql": "SELECT DISTINCT T2.nationality FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 355 AND T1.q2 LIKE '1:40%'", "permission": "allowed", "query_columns": { "drivers": [ "driverId", "nationality" ], "qualifying": [ "driverId", ...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
What is his number of the driver who finished 0:01:54 in the Q3 of qualifying race No.903?
SELECT T2.number FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 903 AND T1.q3 LIKE '1:54%'
simple
{ "gold_sql": "SELECT T2.number FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 903 AND T1.q3 LIKE '1:54%'", "permission": "allowed", "query_columns": { "drivers": [ "driverId", "number" ], "qualifying": [ "driverId", "q3", "r...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
For the Bahrain Grand Prix in 2007, how many drivers not finished the game?
SELECT COUNT(T2.driverId) FROM races AS T1 JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.year = 2007 AND T1.name = 'Bahrain Grand Prix' AND T2.time IS NULL;
simple
{ "gold_sql": "SELECT COUNT(T2.driverId) FROM races AS T1 JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.year = 2007 AND T1.name = 'Bahrain Grand Prix' AND T2.time IS NULL;", "permission": "allowed", "query_columns": { "results": [ "driverId", "raceId", "time" ], "races": [ ...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
Show me the season page of year when the race No. 901 took place.
SELECT T2.url FROM races AS T1 INNER JOIN seasons AS T2 ON T2.year = T1.year WHERE T1.raceId = 901
simple
{ "gold_sql": "SELECT T2.url FROM races AS T1 INNER JOIN seasons AS T2 ON T2.year = T1.year WHERE T1.raceId = 901", "permission": "allowed", "query_columns": { "seasons": [ "url", "year" ], "races": [ "raceId", "year" ] }, "missing_columns": {}, "reason": "All require...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
For the race happened on 2015/11/29, how many drivers finished the game?
SELECT COUNT(T2.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.date = '2015-11-29' AND T2.time IS NOT NULL
simple
{ "gold_sql": "SELECT COUNT(T2.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.date = '2015-11-29' AND T2.time IS NOT NULL", "permission": "allowed", "query_columns": { "results": [ "driverId", "raceId", "time" ], "races": [ "date", "...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
For all the drivers who finished the game in race No. 592, who is the oldest?
SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 592 AND T2.time IS NOT NULL AND T1.dob IS NOT NULL ORDER BY T1.dob ASC, T1.driverId ASC LIMIT 1;
moderate
{ "gold_sql": "SELECT T1.forename, T1.surname \nFROM drivers AS T1 \nINNER JOIN results AS T2 ON T2.driverId = T1.driverId \nWHERE T2.raceId = 592 \n AND T2.time IS NOT NULL \n AND T1.dob IS NOT NULL \nORDER BY T1.dob ASC, T1.driverId ASC \nLIMIT 1;", "permission": "allowed", "query_columns": { "results": [...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
Who was the player that got the lap time of 0:01:27 in the race No. 161? Show his introduction website.
SELECT DISTINCT T2.forename, T2.surname, T2.url FROM lapTimes AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 161 AND T1.time LIKE '1:27%';
moderate
{ "gold_sql": "SELECT DISTINCT T2.forename, T2.surname, T2.url\nFROM lapTimes AS T1\nINNER JOIN drivers AS T2 ON T2.driverId = T1.driverId\nWHERE T1.raceId = 161 AND T1.time LIKE '1:27%';", "permission": "allowed", "query_columns": { "laptimes": [ "driverId", "raceId", "time" ], "dri...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
For the driver who set the fastest lap speed in race No.933, where does he come from?
SELECT T1.nationality FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 933 AND T2.fastestLapTime IS NOT NULL ORDER BY T2.fastestLapSpeed DESC LIMIT 1
simple
{ "gold_sql": "SELECT T1.nationality FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 933 AND T2.fastestLapTime IS NOT NULL ORDER BY T2.fastestLapSpeed DESC LIMIT 1", "permission": "allowed", "query_columns": { "results": [ "driverId", "fastestLapSpeed", ...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
Where is Malaysian Grand Prix held? Give the location coordinates.
SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Malaysian Grand Prix'
simple
{ "gold_sql": "SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Malaysian Grand Prix'", "permission": "allowed", "query_columns": { "races": [ "circuitID", "name" ], "circuits": [ "circuitId", "lat", ...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
For the constructor which got the highest point in the race No. 9 , what is its introduction website?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.url FROM constructorResults AS T1 INNER JOIN constructors AS T2 ON T2.constructorId = T1.constructorId WHERE T1.raceId = 9 ORDER BY T1.points DESC LIMIT 1", "permission": "denied", "query_columns": { "constructorresults": [ "constructorId", "points", "raceId" ], ...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
What's Lucas di Grassi's Q1 result in the race No. 345?
SELECT T1.q1 FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 345 AND T2.forename = 'Lucas' AND T2.surname = 'di Grassi'
simple
{ "gold_sql": "SELECT T1.q1 FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 345 AND T2.forename = 'Lucas' AND T2.surname = 'di Grassi'", "permission": "allowed", "query_columns": { "drivers": [ "driverId", "forename", "surname" ], "qualif...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
For the driver who had the Q2 time as 0:01:15 in race No. 347, where is he from?
SELECT DISTINCT T2.nationality FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 347 AND T1.q2 LIKE '1:15%'
simple
{ "gold_sql": "SELECT DISTINCT T2.nationality FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 347 AND T1.q2 LIKE '1:15%'", "permission": "allowed", "query_columns": { "drivers": [ "driverId", "nationality" ], "qualifying": [ "driverId", ...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
In the race No. 45, for the driver who had the Q3 time as 0:01:33, what is his abbreviated code?
SELECT T2.code FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 45 AND T1.q3 LIKE '1:33%'
simple
{ "gold_sql": "SELECT T2.code FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 45 AND T1.q3 LIKE '1:33%'", "permission": "allowed", "query_columns": { "drivers": [ "code", "driverId" ], "qualifying": [ "driverId", "q3", "raceId...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
What is the actual finish time for Bruce McLaren in the race No.743?
SELECT T2.time FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 743 AND T1.forename = 'Bruce' AND T1.surname = 'McLaren'
simple
{ "gold_sql": "SELECT T2.time FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 743 AND T1.forename = 'Bruce' AND T1.surname = 'McLaren'", "permission": "allowed", "query_columns": { "results": [ "driverId", "raceId", "time" ], "drivers": [ ...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
Who finished second in the San Marino Grand Prix in 2006?
SELECT T3.forename, T3.surname FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.year = 2006 AND T1.name = 'San Marino Grand Prix' AND T2.position = 2
simple
{ "gold_sql": "SELECT T3.forename, T3.surname FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.year = 2006 AND T1.name = 'San Marino Grand Prix' AND T2.position = 2", "permission": "allowed", "query_columns": { "results": [ ...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
Show me the season page of year when the race No. 901 took place.
SELECT T2.url FROM races AS T1 INNER JOIN seasons AS T2 ON T2.year = T1.year WHERE T1.raceId = 901
simple
{ "gold_sql": "SELECT T2.url FROM races AS T1 INNER JOIN seasons AS T2 ON T2.year = T1.year WHERE T1.raceId = 901", "permission": "allowed", "query_columns": { "seasons": [ "url", "year" ], "races": [ "raceId", "year" ] }, "missing_columns": {}, "reason": "All require...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
For the race happened in 2015/11/29, how many drivers did not finish the race?
SELECT COUNT(T2.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.date = '2015-11-29' AND T2.time IS NULL
simple
{ "gold_sql": "SELECT COUNT(T2.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.date = '2015-11-29' AND T2.time IS NULL", "permission": "allowed", "query_columns": { "results": [ "driverId", "raceId", "time" ], "races": [ "date", "race...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
For all the drivers who finished the game in race No. 872, who is the youngest?
SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 872 AND T2.time IS NOT NULL ORDER BY T1.dob DESC LIMIT 1
moderate
{ "gold_sql": "SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 872 AND T2.time IS NOT NULL ORDER BY T1.dob DESC LIMIT 1", "permission": "allowed", "query_columns": { "results": [ "driverId", "raceId", "time" ], ...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
Who was the driver that got the best lap time in the race No. 348? Give his full name.
SELECT T2.forename, T2.surname FROM lapTimes AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 348 ORDER BY T1.time ASC LIMIT 1
simple
{ "gold_sql": "SELECT T2.forename, T2.surname FROM lapTimes AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 348 ORDER BY T1.time ASC LIMIT 1", "permission": "allowed", "query_columns": { "laptimes": [ "driverId", "raceId", "time" ], "drivers": [ "d...
formula_1
##Instruction: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Database: formula_1 Total Tables: 13 Total Columns: 94 Table Schemas: Table: circuits (9 columns) --------------------------- • circuitId (integer): unique identification number of the circuit • circuitRef (text): circuit reference...
DataOperator_1
{ "circuits": [ "*" ], "constructorResults": [ "constructorResultsId", "raceId", "status" ], "constructorStandings": [ "constructorStandingsId", "points", "positionText", "raceId", "wins" ], "constructors": [ "*" ], "driverStandings": [ "*" ], "drivers":...
For the driver who set the fastest lap speed, what is his nationality?
SELECT T1.nationality FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId ORDER BY T2.fastestLapSpeed DESC LIMIT 1;
moderate
{ "gold_sql": "SELECT T1.nationality\nFROM drivers AS T1\nINNER JOIN results AS T2 ON T2.driverId = T1.driverId\nORDER BY T2.fastestLapSpeed DESC\nLIMIT 1;", "permission": "allowed", "query_columns": { "results": [ "driverId", "fastestLapSpeed" ], "drivers": [ "driverId", "nati...