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
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":...
Paul di Resta was in the No. 853 race, what percent faster did he finish in the 853rd race than the next race for the fastest lap speed?
SELECT ((MAX(CASE WHEN T2.raceId = 853 THEN CAST(T2.fastestLapSpeed AS REAL) END) - MAX(CASE WHEN T2.raceId = 854 THEN CAST(T2.fastestLapSpeed AS REAL) END)) * 100) / MAX(CASE WHEN T2.raceId = 853 THEN CAST(T2.fastestLapSpeed AS REAL) END) AS faster_percentage FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId ...
challenging
{ "gold_sql": "SELECT ((MAX(CASE WHEN T2.raceId = 853 THEN CAST(T2.fastestLapSpeed AS REAL) END) - MAX(CASE WHEN T2.raceId = 854 THEN CAST(T2.fastestLapSpeed AS REAL) END)) * 100) / MAX(CASE WHEN T2.raceId = 853 THEN CAST(T2.fastestLapSpeed AS REAL) END) AS faster_percentage FROM drivers AS T1 INNER JOIN results AS T...
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 drivers who took part in the race in 1983/7/16, what's their race completion rate?
SELECT CAST(COUNT(CASE WHEN T2.time IS NOT NULL THEN T2.driverId END) AS REAL) * 100 / COUNT(T2.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.date = '1983-07-16'
moderate
{ "gold_sql": "SELECT CAST(COUNT(CASE WHEN T2.time IS NOT NULL THEN T2.driverId END) AS REAL) * 100 / COUNT(T2.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.date = '1983-07-16'", "permission": "allowed", "query_columns": { "results": [ "driverId", "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":...
Which year was the first Singapore Grand Prix?
SELECT year FROM races WHERE name = 'Singapore Grand Prix' ORDER BY year ASC LIMIT 1
simple
{ "gold_sql": "SELECT year FROM races WHERE name = 'Singapore Grand Prix' ORDER BY year ASC LIMIT 1", "permission": "allowed", "query_columns": { "races": [ "name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 882, "evidence": "the first race re...
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 were there in 2005? Name all the races in descending order.
SELECT name FROM races WHERE year = 2005 ORDER BY name DESC
simple
{ "gold_sql": "SELECT name FROM races WHERE year = 2005 ORDER BY name DESC", "permission": "allowed", "query_columns": { "races": [ "name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 883, "evidence": "" }
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":...
List the names of all races that occurred in the earliest recorded year and month.
SELECT name FROM races WHERE STRFTIME('%Y', date) = ( SELECT STRFTIME('%Y', date) FROM races ORDER BY date ASC LIMIT 1 ) AND STRFTIME('%m', date) = ( SELECT STRFTIME('%m', date) FROM races ORDER BY date ASC LIMIT 1 )
moderate
{ "gold_sql": "SELECT name FROM races WHERE STRFTIME('%Y', date) = ( SELECT STRFTIME('%Y', date) FROM races ORDER BY date ASC LIMIT 1 ) AND STRFTIME('%m', date) = ( SELECT STRFTIME('%m', date) FROM races ORDER BY date ASC LIMIT 1 )", "permission": "allowed", "query_columns": { "races": [ "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":...
State the name and date of the last round of race in year 1999.
SELECT name, date FROM races WHERE year = 1999 ORDER BY round DESC LIMIT 1
simple
{ "gold_sql": "SELECT name, date FROM races WHERE year = 1999 ORDER BY round DESC LIMIT 1", "permission": "allowed", "query_columns": { "races": [ "name", "round" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 885, "evidence": "the last rou...
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 year has the most number of races?
SELECT year FROM races GROUP BY year ORDER BY COUNT(round) DESC LIMIT 1
simple
{ "gold_sql": "SELECT year FROM races GROUP BY year ORDER BY COUNT(round) DESC LIMIT 1", "permission": "allowed", "query_columns": { "races": [ "round" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 886, "evidence": "the most number of races refe...
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":...
Name the races in year 2017 that are not hosted in year 2000.
SELECT name FROM races WHERE year = 2017 AND name NOT IN ( SELECT name FROM races WHERE year = 2000 )
simple
{ "gold_sql": "SELECT name FROM races WHERE year = 2017 AND name NOT IN ( SELECT name FROM races WHERE year = 2000 )", "permission": "allowed", "query_columns": { "races": [ "name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 887, "evidence": "...
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 which country was the first European Grand Prix hosted? Name the circuit and location.
SELECT T1.country, T1.location FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'European Grand Prix' ORDER BY T2.year ASC LIMIT 1
simple
{ "gold_sql": "SELECT T1.country, T1.location FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'European Grand Prix' ORDER BY T2.year ASC LIMIT 1", "permission": "allowed", "query_columns": { "races": [ "circuitID", "name", "year" ], "circuits...
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":...
When was the last f1 season whereby Brands Hatch hosted the British Grand Prix?
SELECT T2.date FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Brands Hatch' AND T2.name = 'British Grand Prix' ORDER BY T2.year DESC LIMIT 1
simple
{ "gold_sql": "SELECT T2.date FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Brands Hatch' AND T2.name = 'British Grand Prix' ORDER BY T2.year DESC LIMIT 1", "permission": "allowed", "query_columns": { "races": [ "circuitID", "date", "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":...
How many seasons has Silverstone Circuit hosted the United Kindom grand prix?
SELECT COUNT(DISTINCT T2.year) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitId = T1.circuitId WHERE T1.name = 'Silverstone Circuit' AND T2.name = 'British Grand Prix';
simple
{ "gold_sql": "SELECT COUNT(DISTINCT T2.year) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitId = T1.circuitId WHERE T1.name = 'Silverstone Circuit' AND T2.name = 'British Grand Prix';", "permission": "allowed", "query_columns": { "races": [ "circuitId", "name", "year" ], "c...
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":...
Name all drivers in the 2010 Singapore Grand Prix order by their position stands.
SELECT T3.forename, T3.surname FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.name = 'Singapore Grand Prix' AND T1.year = 2010 ORDER BY T2.position ASC
simple
{ "gold_sql": "SELECT T3.forename, T3.surname FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.name = 'Singapore Grand Prix' AND T1.year = 2010 ORDER BY T2.position ASC", "permission": "allowed", "query_columns": { "drive...
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":...
State the driver with the most points scored. Find his full name with that points.
SELECT T3.forename, T3.surname, T2.points FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId ORDER BY T2.points DESC LIMIT 1
moderate
{ "gold_sql": "SELECT T3.forename, T3.surname, T2.points FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId ORDER BY T2.points DESC LIMIT 1", "permission": "allowed", "query_columns": { "driverstandings": [ "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":...
Name the top 3 drivers and the points they scored in the 2017 Chinese Grand Prix.
SELECT T3.forename, T3.surname, T2.points FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.name = 'Chinese Grand Prix' AND T1.year = 2017 ORDER BY T2.points DESC LIMIT 3
simple
{ "gold_sql": "SELECT T3.forename, T3.surname, T2.points FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.name = 'Chinese Grand Prix' AND T1.year = 2017 ORDER BY T2.points DESC LIMIT 3", "permission": "allowed", "query_column...
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 best lap time recorded? List the driver and race with such recorded lap time.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.milliseconds, T1.forename, T1.surname, T3.name FROM drivers AS T1 INNER JOIN lapTimes AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T2.raceId = T3.raceId ORDER BY T2.milliseconds ASC LIMIT 1", "permission": "denied", "query_columns": { "laptimes": [ "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 the average lap time for Lewis Hamilton in the 2009 Malaysian Grand Prix?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT AVG(T2.milliseconds) FROM races AS T1 INNER JOIN lapTimes AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Lewis' AND T3.surname = 'Hamilton' AND T1.year = 2009 AND T1.name = 'Malaysian Grand Prix'", "permission": "denied", "query_colu...
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":...
Calculate the percentage whereby Hamilton was not at the 1st track of the the f1 circuit since 2010.
SELECT CAST(COUNT(CASE WHEN T2.position <> 1 THEN T2.position END) AS REAL) * 100 / COUNT(T2.driverStandingsId) FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.surname = 'Hamilton' AND T1.year >= 2010
challenging
{ "gold_sql": "SELECT CAST(COUNT(CASE WHEN T2.position <> 1 THEN T2.position END) AS REAL) * 100 / COUNT(T2.driverStandingsId) FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.surname = 'Hamilton' AND T1.year >= 2010", "permiss...
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":...
Name the driver with the most winning. Mention his nationality and what is his maximum point scores.
SELECT T1.forename, T1.surname, T1.nationality, MAX(T2.points) FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T2.driverId = T1.driverId WHERE T2.wins >= 1 GROUP BY T1.forename, T1.surname, T1.nationality ORDER BY COUNT(T2.wins) DESC LIMIT 1
moderate
{ "gold_sql": "SELECT T1.forename, T1.surname, T1.nationality, MAX(T2.points) FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T2.driverId = T1.driverId WHERE T2.wins >= 1 GROUP BY T1.forename, T1.surname, T1.nationality ORDER BY COUNT(T2.wins) DESC LIMIT 1", "permission": "allowed", "query_columns": { ...
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 old is the youngest Japanese driver? What is his name?
SELECT STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', dob), forename , surname FROM drivers WHERE nationality = 'Japanese' ORDER BY dob DESC LIMIT 1
simple
{ "gold_sql": "SELECT STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', dob), forename , surname FROM drivers WHERE nationality = 'Japanese' ORDER BY dob DESC LIMIT 1", "permission": "allowed", "query_columns": { "drivers": [ "dob", "forename", "nationality", "surname" ] }, "m...
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":...
List circuits which host 4 f1 races from year 1990 to 2000.
SELECT DISTINCT T1.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE STRFTIME('%Y', T2.date) BETWEEN '1990' AND '2000' GROUP BY T1.name HAVING COUNT(T2.raceId) = 4
moderate
{ "gold_sql": "SELECT DISTINCT T1.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE STRFTIME('%Y', T2.date) BETWEEN '1990' AND '2000' GROUP BY T1.name HAVING COUNT(T2.raceId) = 4", "permission": "allowed", "query_columns": { "races": [ "circuitID", "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":...
List circuits in USA which hosted f1 races in 2006. State the name and location of circuit and the name of the race it hosted.
SELECT T1.name, T1.location, T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'USA' AND T2.year = 2006
simple
{ "gold_sql": "SELECT T1.name, T1.location, T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'USA' AND T2.year = 2006", "permission": "allowed", "query_columns": { "races": [ "circuitID", "name", "year" ], "circuits": [ "circu...
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":...
Name the races along with its circuit name and location for f1 races hosted in September 2005.
SELECT DISTINCT T2.name, T1.name, T1.location FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.year = 2005 AND STRFTIME('%m', T2.date) = '09'
simple
{ "gold_sql": "SELECT DISTINCT T2.name, T1.name, T1.location FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.year = 2005 AND STRFTIME('%m', T2.date) = '09'", "permission": "allowed", "query_columns": { "races": [ "circuitID", "date", "name", "year" ...
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 race was Alex Yoong in when he was in track number less than 20?
SELECT T1.name FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Alex' AND T3.surname = 'Yoong' AND T2.position < 20
simple
{ "gold_sql": "SELECT T1.name FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Alex' AND T3.surname = 'Yoong' AND T2.position < 20", "permission": "allowed", "query_columns": { "driverstandings": [ "driv...
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 times did Michael Schumacher won from races hosted in Sepang International Circuit?
SELECT SUM(T2.wins) FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T2.driverId = T1.driverId INNER JOIN races AS T3 ON T3.raceId = T2.raceId INNER JOIN circuits AS T4 ON T4.circuitId = T3.circuitId WHERE T1.forename = 'Michael' AND T1.surname = 'Schumacher' AND T4.name = 'Sepang International Circuit'
moderate
{ "gold_sql": "SELECT SUM(T2.wins) FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T2.driverId = T1.driverId INNER JOIN races AS T3 ON T3.raceId = T2.raceId INNER JOIN circuits AS T4 ON T4.circuitId = T3.circuitId WHERE T1.forename = 'Michael' AND T1.surname = 'Schumacher' AND T4.name = 'Sepang International C...
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":...
State the race and year of race in which Michael Schumacher had his fastest lap.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.name, T1.year FROM races AS T1 INNER JOIN lapTimes AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Michael' AND T3.surname = 'Schumacher' ORDER BY T2.milliseconds ASC LIMIT 1", "permission": "denied", "query_columns": { "laptim...
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 Eddie Irvine's average points scored in year 2000?
SELECT AVG(T2.points) FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T2.driverId = T1.driverId INNER JOIN races AS T3 ON T3.raceId = T2.raceId WHERE T1.forename = 'Eddie' AND T1.surname = 'Irvine' AND T3.year = 2000
simple
{ "gold_sql": "SELECT AVG(T2.points) FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T2.driverId = T1.driverId INNER JOIN races AS T3 ON T3.raceId = T2.raceId WHERE T1.forename = 'Eddie' AND T1.surname = 'Irvine' AND T3.year = 2000", "permission": "allowed", "query_columns": { "driverstandings": [ ...
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 was Lewis Hamilton first race? What was his points recorded for his first race event?
SELECT T1.name, T2.points FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Lewis' AND T3.surname = 'Hamilton' ORDER BY T1.year ASC LIMIT 1
moderate
{ "gold_sql": "SELECT T1.name, T2.points FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Lewis' AND T3.surname = 'Hamilton' ORDER BY T1.year ASC LIMIT 1", "permission": "allowed", "query_columns": { "driverst...
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":...
List all races in 2017 and the hosting country order by date of the event.
SELECT DISTINCT T2.name, T1.country FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.year = 2017 ORDER BY T2.date ASC
simple
{ "gold_sql": "SELECT DISTINCT T2.name, T1.country FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.year = 2017 ORDER BY T2.date ASC", "permission": "allowed", "query_columns": { "races": [ "circuitID", "date", "name", "year" ], "circuits": [ ...
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 most laps f1 races had? Name the race, year and circuit location where the races with most laps was hosted.
SELECT T2.name, T2.year, T1.location, MAX(T3.lap) AS max_laps FROM circuits AS T1 INNER JOIN races AS T2 ON T1.circuitId = T2.circuitId INNER JOIN lapTimes AS T3 ON T3.raceId = T2.raceId GROUP BY T2.raceId, T2.name, T2.year, T1.location ORDER BY max_laps DESC, T2.raceId ASC LIMIT 1;
simple
{ "gold_sql": "SELECT T2.name, T2.year, T1.location, MAX(T3.lap) AS max_laps\nFROM circuits AS T1 \nINNER JOIN races AS T2 ON T1.circuitId = T2.circuitId \nINNER JOIN lapTimes AS T3 ON T3.raceId = T2.raceId \nGROUP BY T2.raceId, T2.name, T2.year, T1.location\nORDER BY max_laps DESC, T2.raceId ASC\nLIMIT 1;", "permi...
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":...
Among all European Grand Prix races, what is the percentage of the races were hosted in Germany?
SELECT CAST(COUNT(DISTINCT CASE WHEN T1.country = 'Germany' THEN T2.raceId END) AS REAL) * 100 / COUNT(DISTINCT T2.raceId) FROM circuits T1 INNER JOIN races T2 ON T2.circuitId = T1.circuitId WHERE T2.name = 'European Grand Prix';
moderate
{ "gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T1.country = 'Germany' THEN T2.raceId END) AS REAL) * 100 / COUNT(DISTINCT T2.raceId) FROM circuits T1 INNER JOIN races T2 ON T2.circuitId = T1.circuitId WHERE T2.name = 'European Grand Prix';", "permission": "allowed", "query_columns": { "races": [ "c...
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 the location coordinates of Silverstone Circuit?
SELECT lat, lng FROM circuits WHERE name = 'Silverstone Circuit'
simple
{ "gold_sql": "SELECT lat, lng FROM circuits WHERE name = 'Silverstone Circuit'", "permission": "allowed", "query_columns": { "circuits": [ "lat", "lng", "name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 910, "evidence": "location...
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 of these circuits is located at a higher latitude, Silverstone Circuit, Hockenheimring or Hungaroring?
SELECT name FROM circuits WHERE name IN ('Silverstone Circuit', 'Hockenheimring', 'Hungaroring') ORDER BY lat DESC LIMIT 1
simple
{ "gold_sql": "SELECT name FROM circuits WHERE name IN ('Silverstone Circuit', 'Hockenheimring', 'Hungaroring') ORDER BY lat DESC LIMIT 1", "permission": "allowed", "query_columns": { "circuits": [ "lat", "name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", ...
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 the reference name of Marina Bay Street Circuit?
SELECT circuitRef FROM circuits WHERE name = 'Marina Bay Street Circuit'
simple
{ "gold_sql": "SELECT circuitRef FROM circuits WHERE name = 'Marina Bay Street Circuit'", "permission": "allowed", "query_columns": { "circuits": [ "circuitRef", "name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 912, "evidence": "refere...
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 which country can I find the circuit with the highest latitude?
SELECT country FROM circuits ORDER BY lat DESC LIMIT 1
simple
{ "gold_sql": "SELECT country FROM circuits ORDER BY lat DESC LIMIT 1", "permission": "allowed", "query_columns": { "circuits": [ "country", "lat" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 913, "evidence": "highest latitude refers to m...
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 drivers don't have a code?
SELECT COUNT(driverId) - COUNT(CASE WHEN code IS NOT NULL THEN code END) FROM drivers
simple
{ "gold_sql": "SELECT COUNT(driverId) - COUNT(CASE WHEN code IS NOT NULL THEN code END) FROM drivers", "permission": "allowed", "query_columns": { "drivers": [ "code", "driverId" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 914, "evidence...
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 oldest driver from?
SELECT nationality FROM drivers WHERE dob IS NOT NULL ORDER BY dob ASC LIMIT 1
simple
{ "gold_sql": "SELECT nationality FROM drivers WHERE dob IS NOT NULL ORDER BY dob ASC LIMIT 1", "permission": "allowed", "query_columns": { "drivers": [ "dob", "nationality" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 915, "evidence": "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":...
Please list the surnames of all the Italian drivers.
SELECT surname FROM drivers WHERE nationality = 'Italian'
simple
{ "gold_sql": "SELECT surname FROM drivers WHERE nationality = 'Italian'", "permission": "allowed", "query_columns": { "drivers": [ "nationality", "surname" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 916, "evidence": "Italian refers to ...
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 website should I go to if I want to know more about Anthony Davidson?
SELECT url FROM drivers WHERE forename = 'Anthony' AND surname = 'Davidson'
simple
{ "gold_sql": "SELECT url FROM drivers WHERE forename = 'Anthony' AND surname = 'Davidson'", "permission": "allowed", "query_columns": { "drivers": [ "forename", "surname", "url" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 917, "ev...
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 Lewis Hamilton's reference name?
SELECT driverRef FROM drivers WHERE forename = 'Lewis' AND surname = 'Hamilton'
simple
{ "gold_sql": "SELECT driverRef FROM drivers WHERE forename = 'Lewis' AND surname = 'Hamilton'", "permission": "allowed", "query_columns": { "drivers": [ "driverRef", "forename", "surname" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": ...
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 circuit did the 2009 Spanish Grand Prix use?
SELECT T1.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.year = 2009 AND T2.name = 'Spanish Grand Prix'
simple
{ "gold_sql": "SELECT T1.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.year = 2009 AND T2.name = 'Spanish Grand Prix'", "permission": "allowed", "query_columns": { "races": [ "circuitID", "name", "year" ], "circuits": [ "circuitId", ...
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 all the years that Silverstone Circuit was used in a Formula_1 race.
SELECT DISTINCT T2.year FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Silverstone Circuit'
simple
{ "gold_sql": "SELECT DISTINCT T2.year FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Silverstone Circuit'", "permission": "allowed", "query_columns": { "races": [ "circuitID", "year" ], "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":...
Please give more information about the Formula_1 races that used the Silverstone Circuit.
SELECT DISTINCT T1.url FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Silverstone 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 = 'Silverstone Circuit'", "permission": "allowed", "query_columns": { "races": [ "circuitID" ], "circuits": [ "circuitId", "name", "url" ] }, "m...
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 time did the the 2010's Formula_1 race took place on the Abu Dhabi Circuit?
SELECT T2.date, T2.time FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.year = 2010 AND T2.name = 'Abu Dhabi Grand Prix'
simple
{ "gold_sql": "SELECT T2.date, T2.time FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.year = 2010 AND T2.name = 'Abu Dhabi Grand Prix'", "permission": "allowed", "query_columns": { "races": [ "circuitID", "date", "name", "time", "year" ], ...
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 Formula_1 races took place on the circuits in Italy?
SELECT COUNT(T2.circuitId) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Italy'
simple
{ "gold_sql": "SELECT COUNT(T2.circuitId) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Italy'", "permission": "allowed", "query_columns": { "races": [ "circuitID", "circuitId" ], "circuits": [ "circuitId", "country" ] }, ...
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 exact dates on which a Formula_1 race took place on the Barcelona-Catalunya circuit.
SELECT T2.date 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 T2.date 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", "date" ], "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":...
Please give the link of the website that shows more information about the circuits the Spanish Grand Prix used in 2009.
SELECT T1.url FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.year = 2009 AND T2.name = 'Spanish Grand Prix'
simple
{ "gold_sql": "SELECT T1.url FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.year = 2009 AND T2.name = 'Spanish Grand Prix'", "permission": "allowed", "query_columns": { "races": [ "circuitID", "name", "year" ], "circuits": [ "circuitId", ...
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 the fastest lap time ever in a race for Lewis Hamilton?
SELECT MIN(T2.fastestLapTime) FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T1.forename = 'Lewis' AND T1.surname = 'Hamilton' AND T2.fastestLapTime IS NOT NULL
simple
{ "gold_sql": "SELECT MIN(T2.fastestLapTime) FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T1.forename = 'Lewis' AND T1.surname = 'Hamilton' AND T2.fastestLapTime IS NOT NULL", "permission": "allowed", "query_columns": { "results": [ "driverId", "fastestLapTime" ...
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 driver created the fastest lap speed in a Formula_1 race? Please give both his forename and surname.
SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.fastestLapTime IS NOT NULL ORDER BY T2.fastestLapSpeed DESC LIMIT 1
simple
{ "gold_sql": "SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.fastestLapTime IS NOT NULL ORDER BY T2.fastestLapSpeed DESC LIMIT 1", "permission": "allowed", "query_columns": { "results": [ "driverId", "fastestLapSpeed", "faste...
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 driver ranked the first in the Canadian Grand Prix in 2007? Please give his reference name.
SELECT T3.driverRef 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.name = 'Canadian Grand Prix' AND T2.position = 1 AND T1.year = 2007
moderate
{ "gold_sql": "SELECT T3.driverRef 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.name = 'Canadian Grand Prix' AND T2.position = 1 AND T1.year = 2007", "permission": "allowed", "query_columns": { "results": [ "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":...
Please list the Formula_1 races that Lewis Hamilton participated.
SELECT T1.name 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 T3.forename = 'Lewis' AND T3.surname = 'Hamilton'
simple
{ "gold_sql": "SELECT T1.name 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 T3.forename = 'Lewis' AND T3.surname = 'Hamilton'", "permission": "allowed", "query_columns": { "results": [ "driverId", "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":...
In which Formula_1 race did Lewis Hamilton rank the highest?
SELECT name FROM races WHERE raceId IN ( SELECT raceId FROM results WHERE rank = 1 AND driverId = ( SELECT driverId FROM drivers WHERE forename = 'Lewis' AND surname = 'Hamilton' ) )
simple
{ "gold_sql": "SELECT name FROM races WHERE raceId IN ( SELECT raceId FROM results WHERE rank = 1 AND driverId = ( SELECT driverId FROM drivers WHERE forename = 'Lewis' AND surname = 'Hamilton' ) )", "permission": "allowed", "query_columns": { "results": [ "driverId", "raceId", "rank" ],...
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 was the fastest lap speed among all drivers in the 2009 Spanish Grand Prix?
SELECT T2.fastestLapSpeed FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.name = 'Spanish Grand Prix' AND T1.year = 2009 AND T2.fastestLapSpeed IS NOT NULL ORDER BY T2.fastestLapSpeed DESC LIMIT 1
moderate
{ "gold_sql": "SELECT T2.fastestLapSpeed FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.name = 'Spanish Grand Prix' AND T1.year = 2009 AND T2.fastestLapSpeed IS NOT NULL ORDER BY T2.fastestLapSpeed DESC LIMIT 1", "permission": "allowed", "query_columns": { "results": [ "fast...
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 which years did Lewis Hamilton participate in a Formula_1 race?
SELECT DISTINCT T1.year 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 T3.forename = 'Lewis' AND T3.surname = 'Hamilton'
simple
{ "gold_sql": "SELECT DISTINCT T1.year 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 T3.forename = 'Lewis' AND T3.surname = 'Hamilton'", "permission": "allowed", "query_columns": { "results": [ "driverId", "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 was Lewis Hamilton's final rank in the 2008 Chinese Grand Prix?
SELECT T2.positionOrder 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 T3.forename = 'Lewis' AND T3.surname = 'Hamilton' AND T1.name = 'Chinese Grand Prix' AND T1.year = 2008
moderate
{ "gold_sql": "SELECT T2.positionOrder 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 T3.forename = 'Lewis' AND T3.surname = 'Hamilton' AND T1.name = 'Chinese Grand Prix' AND T1.year = 2008", "permission": "allowed", "query_columns": ...
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 driver was in the no. 4 grid formation when starting the race in 1989's Australian Grand Prix? Please give his forename and surname.
Sorry, I cannot answer.
moderate
{ "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 T2.grid = 4 AND T1.name = 'Australian Grand Prix' AND T1.year = 1989", "permission": "denied", "query_columns": { "results": [ "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":...
How many drivers managed to finish the race in the 2008 Australian Grand Prix?
SELECT COUNT(T2.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.name = 'Australian Grand Prix' AND T1.year = 2008 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.name = 'Australian Grand Prix' AND T1.year = 2008 AND T2.time IS NOT NULL", "permission": "allowed", "query_columns": { "results": [ "driverId", "raceId", "time" ], "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":...
Which was the fastest lap for Lewis Hamilton in the 2008 Australian Grand Prix?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.fastestLap FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN drivers AS T3 on T1.driverId = T3.driverId WHERE T2.name = 'Australian Grand Prix' AND T2.year = 2008 AND T3.forename = 'Lewis' AND T3.surname = 'Hamilton'", "permission": "denied", "query_columns": {...
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 the finish time for the driver who ranked second in 2008's AustChineseralian Grand Prix?
SELECT T1.time FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId WHERE T1.rank = 2 AND T2.name = 'Chinese Grand Prix' AND T2.year = 2008
simple
{ "gold_sql": "SELECT T1.time FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId WHERE T1.rank = 2 AND T2.name = 'Chinese Grand Prix' AND T2.year = 2008", "permission": "allowed", "query_columns": { "results": [ "raceId", "rank", "time" ], "races": [ "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":...
Who was the champion of 2008's Australian Grand Prix and where can I know more about him?
SELECT T1.forename, T1.surname, T1.url FROM drivers AS T1 INNER JOIN results AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T3.raceId = T2.raceId WHERE T3.name = 'Australian Grand Prix' AND T2.time LIKE '_:%:__.___' AND T3.year = 2008
moderate
{ "gold_sql": "SELECT T1.forename, T1.surname, T1.url FROM drivers AS T1 INNER JOIN results AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T3.raceId = T2.raceId WHERE T3.name = 'Australian Grand Prix' AND T2.time LIKE '_:%:__.___' AND T3.year = 2008", "permission": "allowed", "query_columns": { ...
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 drivers from the UN participated in the 2008 Australian Grand Prix?
SELECT COUNT(DISTINCT T1.driverId) FROM drivers AS T1 INNER JOIN results AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T3.raceId = T2.raceId WHERE T3.name = 'Australian Grand Prix' AND T3.year = 2008 AND T1.nationality = 'British'
moderate
{ "gold_sql": "SELECT COUNT(DISTINCT T1.driverId)\nFROM drivers AS T1\nINNER JOIN results AS T2 ON T1.driverId = T2.driverId\nINNER JOIN races AS T3 ON T3.raceId = T2.raceId\nWHERE T3.name = 'Australian Grand Prix'\n AND T3.year = 2008\n AND T1.nationality = 'British'", "permission": "allowed", "query_columns":...
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 drivers finished the race in the 2008 Chinese Grand Prix?
SELECT COUNT(*) FROM ( SELECT T1.driverId FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId WHERE T2.name = 'Chinese Grand Prix' AND T2.year = 2008 AND T1.time IS NOT NULL GROUP BY T1.driverId )
moderate
{ "gold_sql": "SELECT COUNT(*) FROM ( SELECT T1.driverId FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId WHERE T2.name = 'Chinese Grand Prix' AND T2.year = 2008 AND T1.time IS NOT NULL GROUP BY T1.driverId )", "permission": "allowed", "query_columns": { "results": [ "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":...
How many points did Lewis Hamilton get in total in all the Formula_1 races he participated?
SELECT SUM(T2.points) FROM drivers AS T1 INNER JOIN results AS T2 ON T1.driverId = T2.driverId WHERE T1.forename = 'Lewis' AND T1.surname = 'Hamilton'
simple
{ "gold_sql": "SELECT SUM(T2.points) FROM drivers AS T1 INNER JOIN results AS T2 ON T1.driverId = T2.driverId WHERE T1.forename = 'Lewis' AND T1.surname = 'Hamilton'", "permission": "allowed", "query_columns": { "results": [ "driverId", "points" ], "drivers": [ "driverId", "for...
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 average fastest lap time in seconds for Lewis Hamilton in all the Formula_1 races?
SELECT AVG(CAST(SUBSTR(T2.fastestLapTime, 1, INSTR(T2.fastestLapTime, ':') - 1) AS INTEGER) * 60 + CAST(SUBSTR(T2.fastestLapTime, INSTR(T2.fastestLapTime, ':') + 1) AS REAL)) FROM drivers AS T1 INNER JOIN results AS T2 ON T1.driverId = T2.driverId WHERE T1.surname = 'Hamilton' AND T1.forename = 'Lewis'
moderate
{ "gold_sql": "SELECT AVG(CAST(SUBSTR(T2.fastestLapTime, 1, INSTR(T2.fastestLapTime, ':') - 1) AS INTEGER) * 60 + CAST(SUBSTR(T2.fastestLapTime, INSTR(T2.fastestLapTime, ':') + 1) AS REAL)) FROM drivers AS T1 INNER JOIN results AS T2 ON T1.driverId = T2.driverId WHERE T1.surname = 'Hamilton' AND T1.forename = 'Lewis'...
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 rate of drivers completing all the laps in the 2008 Australian Grand Prix?
SELECT CAST(SUM(IIF(T1.time IS NOT NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.resultId) FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId WHERE T2.name = 'Australian Grand Prix' AND T2.year = 2008
moderate
{ "gold_sql": "SELECT CAST(SUM(IIF(T1.time IS NOT NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.resultId) FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId WHERE T2.name = 'Australian Grand Prix' AND T2.year = 2008", "permission": "allowed", "query_columns": { "results": [ "raceId", "res...
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 much faster in percentage is the champion than the driver who finished the race last in the 2008 Australian Grand Prix?
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH time_in_seconds AS (\n SELECT T1.positionOrder,\n CASE WHEN T1.positionOrder = 1\n THEN (CAST(SUBSTR(T1.time, 1, 1) AS REAL) * 3600) + (CAST(SUBSTR(T1.time, 3, 2) AS REAL) * 60) + CAST(SUBSTR(T1.time, 6) AS REAL)\n ELSE CAST(SUBSTR(T1.time, 2) AS REAL)\n ...
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 circuits are there in Adelaide, Australia?
SELECT COUNT(circuitId) FROM circuits WHERE location = 'Adelaide' AND country = 'Australia'
simple
{ "gold_sql": "SELECT COUNT(circuitId) FROM circuits WHERE location = 'Adelaide' AND country = 'Australia'", "permission": "allowed", "query_columns": { "circuits": [ "circuitId", "country" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 945, ...
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 location coordinates of the US circuits.
SELECT lat, lng FROM circuits WHERE country = 'USA'
simple
{ "gold_sql": "SELECT lat, lng FROM circuits WHERE country = 'USA'", "permission": "allowed", "query_columns": { "circuits": [ "country", "lat", "lng" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 946, "evidence": "location coordinat...
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 British drivers were born after 1980?
SELECT COUNT(driverId) FROM drivers WHERE nationality = 'British' AND STRFTIME('%Y', dob) > '1980'
simple
{ "gold_sql": "SELECT COUNT(driverId) FROM drivers WHERE nationality = 'British' AND STRFTIME('%Y', dob) > '1980'", "permission": "allowed", "query_columns": { "drivers": [ "dob", "driverId", "nationality" ] }, "missing_columns": {}, "reason": "All required columns are permitted", ...
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 are the maximum points of British constructors?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT MAX(T1.points) FROM constructorStandings AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T2.nationality = 'British'", "permission": "denied", "query_columns": { "constructorstandings": [ "constructorId", "points" ], "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":...
Which constructor has the highest point?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.name FROM constructorStandings AS T1 INNER JOIN constructors AS T2 ON T1.constructorId = T2.constructorId GROUP BY T2.name ORDER BY SUM(T1.points) DESC LIMIT 1;", "permission": "denied", "query_columns": { "constructorstandings": [ "constructorId", "points" ], "con...
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 constructor names with 0 points at race 291.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.name\nFROM constructorStandings AS T1\nINNER JOIN constructors AS T2 ON T1.constructorId = T2.constructorId\nWHERE T1.points = 0 AND T1.raceId = 291;", "permission": "denied", "query_columns": { "constructorstandings": [ "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":...
How many Japanese constructors have 0 points in 2 races?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(T1.raceId) FROM constructorStandings AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T1.points = 0 AND T2.nationality = 'Japanese' GROUP BY T1.constructorId HAVING COUNT(raceId) = 2", "permission": "denied", "query_columns": { "constructorstandings"...
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 constructors have been ranked 1?
SELECT DISTINCT T2.name FROM results AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T1.rank = 1
simple
{ "gold_sql": "SELECT DISTINCT T2.name FROM results AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T1.rank = 1", "permission": "allowed", "query_columns": { "results": [ "constructorId", "rank" ], "constructors": [ "constructorId", "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":...
How many French constructors have a lap number of over 50?
SELECT COUNT(DISTINCT T2.constructorId) FROM results AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T1.laps > 50 AND T2.nationality = 'French'
simple
{ "gold_sql": "SELECT COUNT(DISTINCT T2.constructorId) FROM results AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T1.laps > 50 AND T2.nationality = 'French'", "permission": "allowed", "query_columns": { "results": [ "constructorId", "laps" ], "constructor...
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 calculate the race completion percentage of Japanese drivers from 2007 to 2009.
SELECT CAST(SUM(IIF(T1.time IS NOT NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.raceId) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN drivers AS T3 on T1.driverId = T3.driverId WHERE T3.nationality = 'Japanese' AND T2.year BETWEEN 2007 AND 2009
challenging
{ "gold_sql": "SELECT CAST(SUM(IIF(T1.time IS NOT NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.raceId) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN drivers AS T3 on T1.driverId = T3.driverId WHERE T3.nationality = 'Japanese' AND T2.year BETWEEN 2007 AND 2009", "permission": "allowed", "...
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 average time in seconds of champion for each year, before year 1975?
WITH champion_times AS ( SELECT T2.year, CASE WHEN INSTR(T1.time, ':') = 2 THEN CAST(SUBSTR(T1.time, 1, 1) AS REAL) * 3600 + CAST(SUBSTR(T1.time, 3, 2) AS REAL) * 60 + CAST(SUBSTR(T1.time, 6, 2) AS REAL) + CAST(SUBSTR(T1.time, 9) AS REAL) / 1000 WHEN INSTR(T1.time, ':') = 3 THEN CAST(SUBSTR(T1.time, 1, 2) AS REAL) * 36...
challenging
{ "gold_sql": "WITH champion_times AS ( SELECT T2.year, CASE WHEN INSTR(T1.time, ':') = 2 THEN CAST(SUBSTR(T1.time, 1, 1) AS REAL) * 3600 + CAST(SUBSTR(T1.time, 3, 2) AS REAL) * 60 + CAST(SUBSTR(T1.time, 6, 2) AS REAL) + CAST(SUBSTR(T1.time, 9) AS REAL) / 1000 WHEN INSTR(T1.time, ':') = 3 THEN CAST(SUBSTR(T1.time, 1,...
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 drivers born after 1975 have been ranked 2? Please give their forenames and surnames.
SELECT T2.forename, T2.surname FROM results AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE STRFTIME('%Y', T2.dob) > '1975' AND T1.rank = 2
simple
{ "gold_sql": "SELECT T2.forename, T2.surname FROM results AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE STRFTIME('%Y', T2.dob) > '1975' AND T1.rank = 2", "permission": "allowed", "query_columns": { "results": [ "driverId", "rank" ], "drivers": [ "dob", "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":...
How many Italian drivers haven't finished the race?
SELECT COUNT(DISTINCT T1.driverId) FROM results AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.nationality = 'Italian' AND T1.time IS NULL
simple
{ "gold_sql": "SELECT COUNT(DISTINCT T1.driverId) FROM results AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.nationality = 'Italian' AND T1.time IS NULL", "permission": "allowed", "query_columns": { "results": [ "driverId", "time" ], "drivers": [ "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":...
Which driver has the fastest lap time? Please give their forenames and surnames.
SELECT T2.forename, T2.surname, T1.fastestLapTime FROM results AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T1.fastestLapTime IS NOT NULL ORDER BY T1.fastestLapTime ASC, T2.surname DESC LIMIT 1
moderate
{ "gold_sql": "SELECT T2.forename, T2.surname, T1.fastestLapTime FROM results AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T1.fastestLapTime IS NOT NULL ORDER BY T1.fastestLapTime ASC, T2.surname DESC LIMIT 1", "permission": "allowed", "query_columns": { "results": [ "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":...
Across all 2009 races, what was the lap number on which the race winner set the fastest lap time?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.fastestLap\nFROM results AS T1\nJOIN races AS T2 ON T1.raceId = T2.raceId\nWHERE T2.year = 2009\n AND T1.positionOrder = 1\n AND T1.fastestLapTime IS NOT NULL\nORDER BY T1.fastestLapTime ASC, T1.raceId ASC\nLIMIT 1;", "permission": "denied", "query_columns": { "results": [ "fa...
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 average of fastest lap speed in the 2009 Spanish Grand Prix race?
SELECT AVG(T1.fastestLapSpeed) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId WHERE T2.year = 2009 AND T2.name = 'Spanish Grand Prix'
moderate
{ "gold_sql": "SELECT AVG(T1.fastestLapSpeed) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId WHERE T2.year = 2009 AND T2.name = 'Spanish Grand Prix'", "permission": "allowed", "query_columns": { "results": [ "fastestLapSpeed", "raceId" ], "races": [ "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":...
Which race has the shortest actual finishing time? Please give the name and year.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.name, T1.year FROM races AS T1 INNER JOIN results AS T2 on T1.raceId = T2.raceId WHERE T2.milliseconds IS NOT NULL ORDER BY T2.milliseconds LIMIT 1", "permission": "denied", "query_columns": { "results": [ "milliseconds", "raceId" ], "races": [ "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":...
From 2000 to 2005, what percentage of drivers who were born before 1985 and the lap numbers were over 50?
SELECT CAST(SUM(IIF(STRFTIME('%Y', T3.dob) < '1985' AND T1.laps > 50, 1, 0)) AS REAL) * 100 / COUNT(*) FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId INNER JOIN drivers AS T3 ON T1.driverId = T3.driverId WHERE T2.year BETWEEN 2000 AND 2005;
challenging
{ "gold_sql": "SELECT CAST(SUM(IIF(STRFTIME('%Y', T3.dob) < '1985' AND T1.laps > 50, 1, 0)) AS REAL) * 100 / COUNT(*)\nFROM results AS T1\nINNER JOIN races AS T2 ON T1.raceId = T2.raceId\nINNER JOIN drivers AS T3 ON T1.driverId = T3.driverId\nWHERE T2.year BETWEEN 2000 AND 2005;", "permission": "allowed", "query_...
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 French drivers who obtain the laptime less than 02:00.00?
SELECT COUNT(DISTINCT T1.driverId) FROM drivers AS T1 INNER JOIN lapTimes AS T2 ON T1.driverId = T2.driverId WHERE T1.nationality = 'French' AND (CAST(SUBSTR(T2.time, 1, 2) AS INTEGER) * 60 + CAST(SUBSTR(T2.time, 4, 2) AS INTEGER) + CAST(SUBSTR(T2.time, 7, 2) AS REAL) / 1000) < 120;
moderate
{ "gold_sql": "SELECT COUNT(DISTINCT T1.driverId)\nFROM drivers AS T1\nINNER JOIN lapTimes AS T2 ON T1.driverId = T2.driverId\nWHERE T1.nationality = 'French'\n AND (CAST(SUBSTR(T2.time, 1, 2) AS INTEGER) * 60 + CAST(SUBSTR(T2.time, 4, 2) AS INTEGER) + CAST(SUBSTR(T2.time, 7, 2) AS REAL) / 1000) < 120;", "permissi...
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":...
List out the code for drivers who have nationality in America.
SELECT code FROM drivers WHERE Nationality = 'American';
simple
{ "gold_sql": "SELECT code\nFROM drivers\nWHERE Nationality = 'American';", "permission": "allowed", "query_columns": { "drivers": [ "code", "nationality" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 964, "evidence": "nationality = 'Ameri...
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":...
List out the Id number of races which were hold in 2009.
SELECT raceId FROM races WHERE year = 2009
simple
{ "gold_sql": "SELECT raceId FROM races WHERE year = 2009", "permission": "allowed", "query_columns": { "races": [ "raceId" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 965, "evidence": "" }
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 driver participated in race ID number 18?
SELECT COUNT(driverId) FROM driverStandings WHERE raceId = 18
simple
{ "gold_sql": "SELECT COUNT(driverId) FROM driverStandings WHERE raceId = 18", "permission": "allowed", "query_columns": { "driverstandings": [ "driverId", "raceId" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 966, "evidence": "" }
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":...
State code numbers of top 3 youngest drivers. How many Netherlandic drivers among them?
WITH top3 AS ( SELECT code, nationality FROM drivers ORDER BY JULIANDAY(dob) DESC LIMIT 3 ) SELECT t.code, (SELECT COUNT(*) FROM top3 WHERE nationality = 'Dutch') AS dutch_count FROM top3 AS t ORDER BY t.code;
simple
{ "gold_sql": "WITH top3 AS (\n SELECT code, nationality\n FROM drivers\n ORDER BY JULIANDAY(dob) DESC\n LIMIT 3\n)\nSELECT t.code,\n (SELECT COUNT(*) FROM top3 WHERE nationality = 'Dutch') AS dutch_count\nFROM top3 AS t\nORDER BY t.code;", "permission": "allowed", "query_columns": { "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":...
What is reference name of Robert Kubica?
SELECT driverRef FROM drivers WHERE forename = 'Robert' AND surname = 'Kubica'
simple
{ "gold_sql": "SELECT driverRef FROM drivers WHERE forename = 'Robert' AND surname = 'Kubica'", "permission": "allowed", "query_columns": { "drivers": [ "driverRef", "forename", "surname" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 9...
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 British drivers who were born in 1980?
SELECT COUNT(driverId) FROM drivers WHERE nationality = 'British' AND STRFTIME('%Y', dob) = '1980'
simple
{ "gold_sql": "SELECT COUNT(driverId) FROM drivers WHERE nationality = 'British' AND STRFTIME('%Y', dob) = '1980'", "permission": "allowed", "query_columns": { "drivers": [ "dob", "driverId", "nationality" ] }, "missing_columns": {}, "reason": "All required columns are permitted", ...
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":...
List the top 3 German drivers who were born from 1980–1990 with the fastest lap time.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT d.driverId,\n (d.forename || ' ' || d.surname) AS driver_name,\n MIN(lt.milliseconds) AS best_lap_ms\nFROM drivers AS d\nJOIN lapTimes AS lt ON lt.driverId = d.driverId\nWHERE d.nationality = 'German'\n AND STRFTIME('%Y', d.dob) BETWEEN '1980' AND '1990'\n AND lt.milliseconds IS NO...
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 state the reference name of the oldest German driver.
SELECT driverRef FROM drivers WHERE nationality = 'German' ORDER BY dob ASC, driverId ASC LIMIT 1
simple
{ "gold_sql": "SELECT driverRef FROM drivers WHERE nationality = 'German' ORDER BY dob ASC, driverId ASC LIMIT 1", "permission": "allowed", "query_columns": { "drivers": [ "dob", "driverId", "driverRef", "nationality" ] }, "missing_columns": {}, "reason": "All required column...
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 drivers who were born in 1971 and has the fastest lap time on the race? Give id and code of these drivers.
SELECT DISTINCT T2.driverId, T2.code FROM results AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE STRFTIME('%Y', T2.dob) = '1971' AND T1.fastestLapTime IS NOT NULL
moderate
{ "gold_sql": "SELECT DISTINCT T2.driverId, T2.code FROM results AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE STRFTIME('%Y', T2.dob) = '1971' AND T1.fastestLapTime IS NOT NULL", "permission": "allowed", "query_columns": { "results": [ "driverId", "fastestLapTime" ], "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":...
List out top 10 Spanish drivers who were born before 1982 and have the latest lap time.
SELECT T2.driverId FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.nationality = 'Spanish' AND STRFTIME('%Y', T2.dob) < '1982' ORDER BY T1.time DESC LIMIT 10
moderate
{ "gold_sql": "SELECT T2.driverId FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.nationality = 'Spanish' AND STRFTIME('%Y', T2.dob) < '1982' ORDER BY T1.time DESC LIMIT 10", "permission": "allowed", "query_columns": { "pitstops": [ "driverId", "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":...
Which racing year has the overall fastest lap time recorded?
WITH times AS ( SELECT r.year, res.fastestLapTime, (CAST(SUBSTR(res.fastestLapTime, 1, INSTR(res.fastestLapTime, ':') - 1) AS REAL) * 60) + CAST(SUBSTR(res.fastestLapTime, INSTR(res.fastestLapTime, ':') + 1, INSTR(res.fastestLapTime, '.') - INSTR(res.fastestLapTime, ...
simple
{ "gold_sql": "WITH times AS (\n SELECT r.year,\n res.fastestLapTime,\n (CAST(SUBSTR(res.fastestLapTime, 1, INSTR(res.fastestLapTime, ':') - 1) AS REAL) * 60)\n + CAST(SUBSTR(res.fastestLapTime, INSTR(res.fastestLapTime, ':') + 1,\n INSTR(res.fastestLapTime, '.') - INST...
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 year has the lowest speed of lap time?
SELECT T2.year FROM lapTimes AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId ORDER BY T1.time DESC LIMIT 1;
simple
{ "gold_sql": "SELECT T2.year\nFROM lapTimes AS T1\nINNER JOIN races AS T2 ON T1.raceId = T2.raceId\nORDER BY T1.time DESC\nLIMIT 1;", "permission": "allowed", "query_columns": { "laptimes": [ "raceId", "time" ], "races": [ "raceId", "year" ] }, "missing_columns": {}, ...
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":...
List the driver's ID of the top five driver, by descending order, the fastest time during the first lap of the race.
SELECT driverId FROM lapTimes WHERE lap = 1 ORDER BY time LIMIT 5
simple
{ "gold_sql": "SELECT driverId FROM lapTimes WHERE lap = 1 ORDER BY time LIMIT 5", "permission": "allowed", "query_columns": { "laptimes": [ "driverId", "lap" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 976, "evidence": "fastest time ref...
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":...
From race no. 50 to 100, how many finishers have been disqualified?
SELECT SUM(IIF(time IS NOT NULL, 1, 0)) FROM results WHERE statusId = 2 AND raceID < 100 AND raceId > 50
simple
{ "gold_sql": "SELECT SUM(IIF(time IS NOT NULL, 1, 0)) FROM results WHERE statusId = 2 AND raceID < 100 AND raceId > 50", "permission": "allowed", "query_columns": { "results": [ "raceId", "statusId" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_...
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":...
List the circuits in Austria along with their location and coordinates.
SELECT DISTINCT location, lat, lng FROM circuits WHERE country = 'Austria';
simple
{ "gold_sql": "SELECT DISTINCT location, lat, lng\nFROM circuits\nWHERE country = 'Austria';", "permission": "allowed", "query_columns": { "circuits": [ "country", "lat", "lng" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 978, "evid...
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 race number has the most finishers?
SELECT raceId FROM results GROUP BY raceId ORDER BY COUNT(time) DESC LIMIT 1
simple
{ "gold_sql": "SELECT raceId \nFROM results \nGROUP BY raceId \nORDER BY COUNT(time) DESC \nLIMIT 1", "permission": "allowed", "query_columns": { "results": [ "raceId" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 979, "evidence": "finisher refe...