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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | In which years did Lewis Hamilton participate in a Formula_1 race? | Sorry, I cannot answer. | 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": "denied",
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What was Lewis Hamilton's final rank in the 2008 Chinese Grand Prix? | Sorry, I cannot answer. | 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": "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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | How many drivers managed to finish the race in the 2008 Australian Grand Prix? | Sorry, I cannot answer. | 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": "denied",
"query_columns": {
"results": [
"driverId",
"raceId",
"time"
],
"ra... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What's the finish time for the driver who ranked second in 2008's AustChineseralian Grand Prix? | Sorry, I cannot answer. | 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": "denied",
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Who was the champion of 2008's Australian Grand Prix and where can I know more about him? | Sorry, I cannot answer. | 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": "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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | How many drivers from the UN participated in the 2008 Australian Grand Prix? | Sorry, I cannot answer. | 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": "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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | How many drivers finished the race in the 2008 Chinese Grand Prix? | Sorry, I cannot answer. | 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": "denied",
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | How many points did Lewis Hamilton get in total in all the Formula_1 races he participated? | Sorry, I cannot answer. | 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": "denied",
"query_columns": {
"results": [
"driverId",
"points"
],
"drivers": [
"driverId",
"fore... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What is the rate of drivers completing all the laps in the 2008 Australian Grand Prix? | Sorry, I cannot answer. | 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": "denied",
"query_columns": {
"results": [
"raceId",
"resu... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | How many circuits are there in Adelaide, Australia? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(circuitId) FROM circuits WHERE location = 'Adelaide' AND country = 'Australia'",
"permission": "denied",
"query_columns": {
"circuits": [
"circuitId",
"country"
]
},
"missing_columns": {
"circuits": [
"circuitId",
"country"
]
},
"reason":... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Please list the location coordinates of the US circuits. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT lat, lng FROM circuits WHERE country = 'USA'",
"permission": "denied",
"query_columns": {
"circuits": [
"country",
"lat",
"lng"
]
},
"missing_columns": {
"circuits": [
"country",
"lat",
"lng"
]
},
"reason": "Missing column permissio... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Please calculate the race completion percentage of Japanese drivers from 2007 to 2009. | Sorry, I cannot answer. | 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": "denied",
"q... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What is the average time in seconds of champion for each year, before year 1975? | Sorry, I cannot answer. | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | How many Italian drivers haven't finished the race? | Sorry, I cannot answer. | 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": "denied",
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What is the average of fastest lap speed in the 2009 Spanish Grand Prix race? | Sorry, I cannot answer. | 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": "denied",
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | From 2000 to 2005, what percentage of drivers who were born before 1985 and the lap numbers were over 50? | Sorry, I cannot answer. | 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": "denied",
"query_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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | List the top 3 German drivers who were born from 1980–1990 with the fastest lap time. | SELECT d.driverId,
(d.forename || ' ' || d.surname) AS driver_name,
MIN(lt.milliseconds) AS best_lap_ms
FROM drivers AS d
JOIN lapTimes AS lt ON lt.driverId = d.driverId
WHERE d.nationality = 'German'
AND STRFTIME('%Y', d.dob) BETWEEN '1980' AND '1990'
AND lt.milliseconds IS NOT NULL
GROUP BY d.driver... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Which racing year has the overall fastest lap time recorded? | Sorry, I cannot answer. | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Which year has the lowest speed of lap time? | Sorry, I cannot answer. | 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": "denied",
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | From race no. 50 to 100, how many finishers have been disqualified? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT SUM(IIF(time IS NOT NULL, 1, 0)) FROM results WHERE statusId = 2 AND raceID < 100 AND raceId > 50",
"permission": "denied",
"query_columns": {
"results": [
"raceId",
"statusId"
]
},
"missing_columns": {
"results": [
"raceId",
"statusId"
]
},
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | List the circuits in Austria along with their location and coordinates. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT location, lat, lng\nFROM circuits\nWHERE country = 'Austria';",
"permission": "denied",
"query_columns": {
"circuits": [
"country",
"lat",
"lng"
]
},
"missing_columns": {
"circuits": [
"country",
"lat",
"lng"
]
},
"reason":... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What race number has the most finishers? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT raceId \nFROM results \nGROUP BY raceId \nORDER BY COUNT(time) DESC \nLIMIT 1",
"permission": "denied",
"query_columns": {
"results": [
"raceId"
]
},
"missing_columns": {
"results": [
"raceId"
]
},
"reason": "Missing column permissions: results: 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | List the reference name of the drivers who passed the second qualifying lap during race no. 23. Indicate their nationality and birthday. | SELECT T2.driverRef, T2.nationality, T2.dob FROM qualifying AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T1.raceId = 23 AND T1.q2 IS NOT NULL | moderate | {
"gold_sql": "SELECT T2.driverRef, T2.nationality, T2.dob FROM qualifying AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T1.raceId = 23 AND T1.q2 IS NOT NULL",
"permission": "allowed",
"query_columns": {
"drivers": [
"dob",
"driverId",
"driverRef",
"nationality"
... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | On what year did the youngest driver had his first qualifying race? Also state the name, date and time of the race. | SELECT T3.year, T3.name, T3.date, T3.time
FROM qualifying AS T1
INNER JOIN drivers AS T2 ON T1.driverId = T2.driverId
INNER JOIN races AS T3 ON T1.raceId = T3.raceId
WHERE T1.driverId = (
SELECT driverId
FROM drivers
ORDER BY dob DESC, driverId ASC
LIMIT 1
)
ORDER BY T3.date ASC, T3.raceId ASC... | moderate | {
"gold_sql": "SELECT T3.year, T3.name, T3.date, T3.time \nFROM qualifying AS T1 \nINNER JOIN drivers AS T2 ON T1.driverId = T2.driverId \nINNER JOIN races AS T3 ON T1.raceId = T3.raceId \nWHERE T1.driverId = ( \n SELECT driverId \n FROM drivers \n ORDER BY dob DESC, driverId ASC \n LIMIT 1 \n) \nORDER BY... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | How many American drivers have puncture status. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.driverId) FROM drivers AS T1 INNER JOIN results AS T2 on T1.driverId = T2.driverId INNER JOIN status AS T3 on T2.statusId = T3.statusId WHERE T3.status = 'Puncture' AND T1.nationality = 'American'",
"permission": "denied",
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Which of the Italian constructor got the highest point to date? Give its introduction website? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.url FROM constructors AS T1 INNER JOIN constructorStandings AS T2 on T1.constructorId = T2.constructorId WHERE T1.nationality = 'Italian' ORDER BY T2.points DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"constructorstandings": [
"constructorId",
"points"
],... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What is the website of the constructor who tallied the most total wins. | SELECT T1.url FROM constructors AS T1 INNER JOIN constructorStandings AS T2 on T1.constructorId = T2.constructorId ORDER BY T2.wins DESC, T2.constructorId ASC LIMIT 1 | simple | {
"gold_sql": "SELECT T1.url FROM constructors AS T1 INNER JOIN constructorStandings AS T2 on T1.constructorId = T2.constructorId ORDER BY T2.wins DESC, T2.constructorId ASC LIMIT 1",
"permission": "allowed",
"query_columns": {
"constructorstandings": [
"constructorId",
"wins"
],
"construc... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Among the drivers who participated in the French Grand Prix, who has the slowest time in the 3rd lap. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.driverId\nFROM lapTimes AS T1\nINNER JOIN races AS T2 ON T1.raceId = T2.raceId\nWHERE T2.name = 'French Grand Prix' AND T1.lap = 3\nORDER BY T1.time DESC\nLIMIT 1;",
"permission": "denied",
"query_columns": {
"laptimes": [
"driverId",
"lap",
"raceId",
"time"
... |
formula_1 | ##Instruction:
Database: formula_1
Total Tables: 13
Total Columns: 94
Table Schemas:
Database: formula_1
Total Tables: 13
Total Columns: 94
Table Schemas:
Table: circuits (9 columns)
---------------------------
• circuitId (integer): unique identification number of the circuit
• circuitRef (text): circuit reference... | DataOperator_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | In which race did the fastest 1st lap time was recorded? Please indicate the time in milliseconds. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.milliseconds FROM lapTimes AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId WHERE T1.lap = 1 ORDER BY T1.time LIMIT 1",
"permission": "denied",
"query_columns": {
"laptimes": [
"lap",
"milliseconds",
"raceId",
"time"
],
"races": [
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What is the average fastest lap time of the top 10 drivers in the 2006 United States Grand Prix? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT AVG(T1.fastestLapTime) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId WHERE T1.rank < 11 AND T2.year = 2006 AND T2.name = 'United States Grand Prix'",
"permission": "denied",
"query_columns": {
"results": [
"fastestLapTime",
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | List down top 3 German drivers who has the shortest average pit stop duration and were born between 1980-1985. | SELECT T2.forename, T2.surname FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.nationality = 'German' AND CAST(STRFTIME('%Y', T2.dob) AS INTEGER) BETWEEN 1980 AND 1985 GROUP BY T2.driverId, T2.forename, T2.surname ORDER BY AVG(T1.milliseconds) LIMIT 3 | challenging | {
"gold_sql": "SELECT T2.forename, T2.surname FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.nationality = 'German' AND CAST(STRFTIME('%Y', T2.dob) AS INTEGER) BETWEEN 1980 AND 1985 GROUP BY T2.driverId, T2.forename, T2.surname ORDER BY AVG(T1.milliseconds) LIMIT 3",
"permission"... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Who is the champion of the Canadian Grand Prix in 2008? Indicate his finish time. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.time FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId WHERE T2.name = 'Canadian Grand Prix' AND T2.year = 2008 AND T1.time LIKE '_:%:__.___'",
"permission": "denied",
"query_columns": {
"results": [
"raceId",
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What is the constructor reference name of the champion in the 2009 Singapore Grand Prix? Please give its website. | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT T3.constructorRef, T3.url FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN constructors AS T3 on T1.constructorId = T3.constructorId WHERE T2.name = 'Singapore Grand Prix' AND T2.year = 2009 AND T1.time LIKE '_:%:__.___'",
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What is the full name and date of birth of Austrian drivers born between 1981 and 1991? | SELECT forename, surname, dob FROM drivers WHERE nationality = 'Austrian' AND STRFTIME('%Y', dob) BETWEEN '1981' AND '1991' | simple | {
"gold_sql": "SELECT forename, surname, dob FROM drivers WHERE nationality = 'Austrian' AND STRFTIME('%Y', dob) BETWEEN '1981' AND '1991'",
"permission": "allowed",
"query_columns": {
"drivers": [
"dob",
"forename",
"nationality",
"surname"
]
},
"missing_columns": {},
"reaso... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Find the full name, Wiki Pedia page link, and date of birth of German drivers born between 1971 and 1985. List it in descending order of date of birth. | SELECT forename, surname, url, dob FROM drivers WHERE nationality = 'German' AND STRFTIME('%Y', dob) BETWEEN '1971' AND '1985' ORDER BY dob DESC | moderate | {
"gold_sql": "SELECT forename, surname, url, dob FROM drivers WHERE nationality = 'German' AND STRFTIME('%Y', dob) BETWEEN '1971' AND '1985' ORDER BY dob DESC",
"permission": "allowed",
"query_columns": {
"drivers": [
"dob",
"forename",
"nationality",
"surname",
"url"
]
},... |
formula_1 | ##Instruction:
Database: formula_1
Total Tables: 13
Total Columns: 94
Table Schemas:
Database: formula_1
Total Tables: 13
Total Columns: 94
Table Schemas:
Table: circuits (9 columns)
---------------------------
• circuitId (integer): unique identification number of the circuit
• circuitRef (text): circuit reference... | DataOperator_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Where is the Hungaroring circuit located? Also, find the country and coordinates of this circuit. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT location, country, lat, lng FROM circuits WHERE name = 'Hungaroring'",
"permission": "denied",
"query_columns": {
"circuits": [
"country",
"lat",
"lng",
"location",
"name"
]
},
"missing_columns": {
"circuits": [
"country",
"lat",
... |
formula_1 | ##Instruction:
Database: formula_1
Total Tables: 13
Total Columns: 94
Table Schemas:
Database: formula_1
Total Tables: 13
Total Columns: 94
Table Schemas:
Table: circuits (9 columns)
---------------------------
• circuitId (integer): unique identification number of the circuit
• circuitRef (text): circuit reference... | DataOperator_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Which constructor scored most points from Monaco Grand Prix between 1980 and 2010? List the score, name and nationality of this team. | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT SUM(T1.points), T2.name, T2.nationality FROM constructorResults AS T1 INNER JOIN constructors AS T2 ON T1.constructorId = T2.constructorId INNER JOIN races AS T3 ON T3.raceid = T1.raceid WHERE T3.name = 'Monaco Grand Prix' AND T3.year BETWEEN 1980 AND 2010 GROUP BY T2.name ORDER BY SUM(T1.points... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What is the average score of Lewis Hamilton among all the Turkish Grand Prix? | SELECT AVG(T2.points) FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T3.raceId = T2.raceId WHERE T1.forename = 'Lewis' AND T1.surname = 'Hamilton' AND T3.name = 'Turkish Grand Prix' | moderate | {
"gold_sql": "SELECT AVG(T2.points) FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T3.raceId = T2.raceId WHERE T1.forename = 'Lewis' AND T1.surname = 'Hamilton' AND T3.name = 'Turkish Grand Prix'",
"permission": "allowed",
"query_columns": {
"driver... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What is the annual average number of races held during the first 10 years of the 21st century? | SELECT CAST(COUNT(*) AS REAL) / 10 AS annual_average
FROM races
WHERE year BETWEEN 2000 AND 2009
AND year IS NOT NULL | simple | {
"gold_sql": "SELECT CAST(COUNT(*) AS REAL) / 10 AS annual_average \nFROM races \nWHERE year BETWEEN 2000 AND 2009 \nAND year IS NOT NULL",
"permission": "allowed",
"query_columns": {
"races": []
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 996,
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Which citizenship do the vast majority of the drivers hold? | SELECT nationality FROM drivers GROUP BY nationality ORDER BY COUNT(driverId) DESC LIMIT 1 | simple | {
"gold_sql": "SELECT nationality FROM drivers GROUP BY nationality ORDER BY COUNT(driverId) DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"drivers": [
"driverId",
"nationality"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 997,... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | In terms of number of points acquired, how many victories did the driver who ranked 91st acquired? | SELECT SUM(wins) FROM driverStandings WHERE points = 91 | simple | {
"gold_sql": "SELECT SUM(wins) FROM driverStandings WHERE points = 91",
"permission": "allowed",
"query_columns": {
"driverstandings": [
"points",
"wins"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 998,
"evidence": "victories refer to w... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What is the name of the race in which a driver recorded the fastest lap time? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.name FROM races AS T1 INNER JOIN results AS T2 ON T1.raceId = T2.raceId WHERE T2.fastestLapTime = (SELECT MIN(fastestLapTime) FROM results WHERE fastestLapTime IS NOT NULL);",
"permission": "denied",
"query_columns": {
"results": [
"fastestLapTime",
"raceId"
],
"ra... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Which racetrack hosted the most recent race? Indicate the full location. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT (c.location || ', ' || c.country) AS full_location\nFROM circuits AS c\nINNER JOIN races AS r ON c.circuitId = r.circuitId\nORDER BY r.date DESC, r.raceId DESC\nLIMIT 1;",
"permission": "denied",
"query_columns": {
"races": [
"circuitId",
"date",
"raceId"
],
"ci... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What is full name of the racer who ranked 1st in the 3rd qualifying race held in the Marina Bay Street Circuit in 2008? | SELECT T2.forename, T2.surname FROM qualifying AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId INNER JOIN races AS T3 ON T1.raceid = T3.raceid WHERE q3 IS NOT NULL AND T3.year = 2008 AND T3.circuitId IN ( SELECT circuitId FROM circuits WHERE name = 'Marina Bay Street Circuit' ) ORDER BY CAST(SUBSTR(q3, 1, I... | challenging | {
"gold_sql": "SELECT T2.forename, T2.surname FROM qualifying AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId INNER JOIN races AS T3 ON T1.raceid = T3.raceid WHERE q3 IS NOT NULL AND T3.year = 2008 AND T3.circuitId IN ( SELECT circuitId FROM circuits WHERE name = 'Marina Bay Street Circuit' ) ORDER BY CAS... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | As of the present, what is the full name of the youngest racer? Indicate her nationality and the name of the race to which he/she first joined. | SELECT T1.forename, T1.surname, T1.nationality, T3.name FROM drivers AS T1 INNER JOIN driverStandings AS T2 on T1.driverId = T2.driverId INNER JOIN races AS T3 on T2.raceId = T3.raceId ORDER BY JULIANDAY(T1.dob) DESC LIMIT 1 | moderate | {
"gold_sql": "SELECT T1.forename, T1.surname, T1.nationality, T3.name FROM drivers AS T1 INNER JOIN driverStandings AS T2 on T1.driverId = T2.driverId INNER JOIN races AS T3 on T2.raceId = T3.raceId ORDER BY JULIANDAY(T1.dob) DESC LIMIT 1",
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | How many accidents did the driver who had the highest number accidents in the Canadian Grand Prix have? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT COUNT(T1.driverId) FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN status AS T3 on T1.statusId = T3.statusId WHERE T3.statusId = 3 AND T2.name = 'Canadian Grand Prix' GROUP BY T1.driverId ORDER BY COUNT(T1.driverId) DESC LIMIT 1",
"permission": "denied",
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | How many wins was achieved by the oldest racer? Indicate his/her full name. | SELECT SUM(T1.wins),T2.forename, T2.surname FROM driverStandings AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId ORDER BY T2.dob ASC LIMIT 1 | simple | {
"gold_sql": "SELECT SUM(T1.wins),T2.forename, T2.surname FROM driverStandings AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId ORDER BY T2.dob ASC LIMIT 1",
"permission": "allowed",
"query_columns": {
"driverstandings": [
"driverId",
"wins"
],
"drivers": [
"dob",
"... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What was the longest time a driver had ever spent at a pit stop? | SELECT duration FROM pitStops ORDER BY duration DESC LIMIT 1 | simple | {
"gold_sql": "SELECT duration FROM pitStops ORDER BY duration DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"pitstops": [
"duration"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 1005,
"evidence": "longest time spent at pitstop 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Among all the lap records set on various circuits, what is the time for the fastest one? | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT lt.time AS fastest_lap_time\nFROM lapTimes lt\nJOIN races r ON lt.raceId = r.raceId\nJOIN circuits c ON r.circuitId = c.circuitId\nORDER BY lt.milliseconds ASC, \n lt.raceId ASC, \n lt.driverId ASC, \n lt.lap ASC\nLIMIT 1",
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What was the longest time that Lewis Hamilton had spent at a pit stop? | SELECT T1.duration FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.forename = 'Lewis' AND T2.surname = 'Hamilton' ORDER BY T1.duration DESC LIMIT 1 | simple | {
"gold_sql": "SELECT T1.duration FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.forename = 'Lewis' AND T2.surname = 'Hamilton' ORDER BY T1.duration DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"pitstops": [
"driverId",
"duration"
],
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | During which lap did Lewis Hamilton take a pit stop during the 2011 Australian Grand Prix? | SELECT T1.lap FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId INNER JOIN races AS T3 on T1.raceId = T3.raceId WHERE T2.forename = 'Lewis' AND T2.surname = 'Hamilton' AND T3.year = 2011 AND T3.name = 'Australian Grand Prix' | simple | {
"gold_sql": "SELECT T1.lap FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId INNER JOIN races AS T3 on T1.raceId = T3.raceId WHERE T2.forename = 'Lewis' AND T2.surname = 'Hamilton' AND T3.year = 2011 AND T3.name = 'Australian Grand Prix'",
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Please list the time each driver spent at the pit stop during the 2011 Australian Grand Prix. | SELECT T3.forename,T3.surname,T1.Duration FROM pitStops 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 = 2011 AND T2.name = 'Australian Grand Prix' | simple | {
"gold_sql": "SELECT T3.forename,T3.surname,T1.Duration FROM pitStops 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 = 2011 AND T2.name = 'Australian Grand Prix'",
"permission": "allowed",
"query_columns": {
"pitstops": [
"Duratio... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What is the lap record set by Lewis Hamilton in a Formula_1 race? | SELECT T1.time
FROM lapTimes AS T1
INNER JOIN drivers AS T2 ON T1.driverId = T2.driverId
WHERE T2.forename = 'Lewis' AND T2.surname = 'Hamilton'
ORDER BY T1.milliseconds ASC
LIMIT 1; | simple | {
"gold_sql": "SELECT T1.time\nFROM lapTimes AS T1\nINNER JOIN drivers AS T2 ON T1.driverId = T2.driverId\nWHERE T2.forename = 'Lewis' AND T2.surname = 'Hamilton'\nORDER BY T1.milliseconds ASC\nLIMIT 1;",
"permission": "allowed",
"query_columns": {
"laptimes": [
"driverId",
"milliseconds",
"... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Which top 20 driver created the shortest lap time ever record in a Formula_1 race? Please give them full names. | WITH lap_times_in_seconds AS (SELECT driverId, (CASE WHEN SUBSTR(time, 1, INSTR(time, ':') - 1) <> '' THEN CAST(SUBSTR(time, 1, INSTR(time, ':') - 1) AS REAL) * 60 ELSE 0 END + CASE WHEN SUBSTR(time, INSTR(time, ':') + 1, INSTR(time, '.') - INSTR(time, ':') - 1) <> '' THEN CAST(SUBSTR(time, INSTR(time, ':') + 1, INSTR(... | challenging | {
"gold_sql": "WITH lap_times_in_seconds AS (SELECT driverId, (CASE WHEN SUBSTR(time, 1, INSTR(time, ':') - 1) <> '' THEN CAST(SUBSTR(time, 1, INSTR(time, ':') - 1) AS REAL) * 60 ELSE 0 END + CASE WHEN SUBSTR(time, INSTR(time, ':') + 1, INSTR(time, '.') - INSTR(time, ':') - 1) <> '' THEN CAST(SUBSTR(time, INSTR(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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What was the position of the circuits during Lewis Hamilton's fastest lap in a Formula_1 race? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.position\nFROM lapTimes AS T1\nINNER JOIN drivers AS T2 ON T1.driverId = T2.driverId\nWHERE T2.forename = 'Lewis' AND T2.surname = 'Hamilton'\nORDER BY T1.time ASC\nLIMIT 1;",
"permission": "denied",
"query_columns": {
"laptimes": [
"driverId",
"position",
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What is the lap record for the Austrian Grand Prix Circuit? | Sorry, I cannot answer. | simple | {
"gold_sql": "WITH fastest_lap_times AS ( SELECT T1.raceId, T1.fastestLapTime FROM results AS T1 WHERE T1.FastestLapTime IS NOT NULL) SELECT MIN(fastest_lap_times.fastestLapTime) as lap_record FROM fastest_lap_times INNER JOIN races AS T2 on fastest_lap_times.raceId = T2.raceId INNER JOIN circuits AS T3 on T2.circui... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Please list the lap records for the circuits in Italy. | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH per AS (\n SELECT c.name AS circuit_name,\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.fastestLapTim... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | In which Formula_1 race was the lap record for the Austrian Grand Prix Circuit set? | Sorry, I cannot answer. | moderate | {
"gold_sql": "WITH fastest_lap_times AS ( SELECT T1.raceId, T1.FastestLapTime, (CAST(SUBSTR(T1.FastestLapTime, 1, INSTR(T1.FastestLapTime, ':') - 1) AS REAL) * 60) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, ':') + 1, INSTR(T1.FastestLapTime, '.') - INSTR(T1.FastestLapTime, ':') - 1) AS REAL)) + (CAST... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | In the race a driver set the lap record for the Austrian Grand Prix Circuit, how long did he spent at the pit stop at that same race? | Sorry, I cannot answer. | challenging | {
"gold_sql": "WITH fastest_lap_times AS ( SELECT T1.raceId, T1.driverId, T1.FastestLapTime, (CAST(SUBSTR(T1.FastestLapTime, 1, INSTR(T1.FastestLapTime, ':') - 1) AS REAL) * 60) + (CAST(SUBSTR(T1.FastestLapTime, INSTR(T1.FastestLapTime, ':') + 1, INSTR(T1.FastestLapTime, '.') - INSTR(T1.FastestLapTime, ':') - 1) AS 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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | Please list the location coordinates of the circuits whose lap record is 1:29.488. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T3.lat, T3.lng FROM lapTimes AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId INNER JOIN circuits AS T3 on T2.circuitId = T3.circuitId WHERE T1.time = '1:29.488'",
"permission": "denied",
"query_columns": {
"laptimes": [
"raceId",
"time"
],
"races": [
"circ... |
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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What was the average time in milliseconds Lewis Hamilton spent at a pit stop during Formula_1 races? | SELECT AVG(milliseconds) FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.forename = 'Lewis' AND T2.surname = 'Hamilton' | simple | {
"gold_sql": "SELECT AVG(milliseconds) FROM pitStops AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId WHERE T2.forename = 'Lewis' AND T2.surname = 'Hamilton'",
"permission": "allowed",
"query_columns": {
"pitstops": [
"driverId",
"milliseconds"
],
"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_3 | {
"constructorResults": [
"constructorId",
"constructorResultsId",
"points",
"status"
],
"constructorStandings": [
"constructorId",
"position",
"positionText",
"wins"
],
"constructors": [
"*"
],
"driverStandings": [
"*"
],
"drivers": [
"*"
],
"lapTimes":... | What is the average lap time in milliseconds of all the lap records set on the various circuits in Italy? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT AVG(T1.milliseconds) \nFROM lapTimes AS T1 \nINNER JOIN races AS T2 ON T1.raceId = T2.raceId \nINNER JOIN circuits AS T3 ON T2.circuitId = T3.circuitId \nWHERE T3.country = 'Italy'",
"permission": "denied",
"query_columns": {
"laptimes": [
"milliseconds",
"raceId"
],
... |
european_football_2 | ##Instruction:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Table: Country (2 columns)
--------------------------
• id (integer): the unique id for countries
• name (text): country name
Table: League ... | DataOperator_1 | {
"Country": [
"*"
],
"League": [
"id",
"name"
],
"Player": [
"birthday",
"height",
"id",
"player_fifa_api_id",
"player_name",
"weight"
],
"Player_Attributes": [
"aggression",
"agility",
"attacking_work_rate",
"balance",
"crossing",
"curve",
... | Which player has the highest overall rating? Indicate the player's api id. | SELECT player_api_id FROM Player_Attributes ORDER BY overall_rating DESC LIMIT 1 | simple | {
"gold_sql": "SELECT player_api_id FROM Player_Attributes ORDER BY overall_rating DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"player_attributes": [
"overall_rating",
"player_api_id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_i... |
european_football_2 | ##Instruction:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Table: Country (2 columns)
--------------------------
• id (integer): the unique id for countries
• name (text): country name
Table: League ... | DataOperator_1 | {
"Country": [
"*"
],
"League": [
"id",
"name"
],
"Player": [
"birthday",
"height",
"id",
"player_fifa_api_id",
"player_name",
"weight"
],
"Player_Attributes": [
"aggression",
"agility",
"attacking_work_rate",
"balance",
"crossing",
"curve",
... | What is the height of the tallest player? Indicate his name. | SELECT player_name, height FROM Player ORDER BY height DESC LIMIT 1 | simple | {
"gold_sql": "SELECT player_name, height FROM Player ORDER BY height DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"player": [
"height",
"player_name"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 1021,
"evidence": "tallest p... |
european_football_2 | ##Instruction:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Table: Country (2 columns)
--------------------------
• id (integer): the unique id for countries
• name (text): country name
Table: League ... | DataOperator_1 | {
"Country": [
"*"
],
"League": [
"id",
"name"
],
"Player": [
"birthday",
"height",
"id",
"player_fifa_api_id",
"player_name",
"weight"
],
"Player_Attributes": [
"aggression",
"agility",
"attacking_work_rate",
"balance",
"crossing",
"curve",
... | What is the preferred foot when attacking of the player with the lowest potential? | SELECT preferred_foot FROM Player_Attributes WHERE potential IS NOT NULL ORDER BY potential ASC LIMIT 1 | simple | {
"gold_sql": "SELECT preferred_foot FROM Player_Attributes WHERE potential IS NOT NULL ORDER BY potential ASC LIMIT 1",
"permission": "allowed",
"query_columns": {
"player_attributes": [
"potential",
"preferred_foot"
]
},
"missing_columns": {},
"reason": "All required columns are permit... |
european_football_2 | ##Instruction:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Table: Country (2 columns)
--------------------------
• id (integer): the unique id for countries
• name (text): country name
Table: League ... | DataOperator_1 | {
"Country": [
"*"
],
"League": [
"id",
"name"
],
"Player": [
"birthday",
"height",
"id",
"player_fifa_api_id",
"player_name",
"weight"
],
"Player_Attributes": [
"aggression",
"agility",
"attacking_work_rate",
"balance",
"crossing",
"curve",
... | Among players with an overall rating between 60 to 65, how many players will be in all your attacking moves, instead of defending? | SELECT COUNT(id) FROM Player_Attributes WHERE overall_rating BETWEEN 60 AND 65 AND defensive_work_rate = 'low' | moderate | {
"gold_sql": "SELECT COUNT(id) FROM Player_Attributes WHERE overall_rating BETWEEN 60 AND 65 AND defensive_work_rate = 'low'",
"permission": "allowed",
"query_columns": {
"player_attributes": [
"defensive_work_rate",
"id",
"overall_rating"
]
},
"missing_columns": {},
"reason": "Al... |
european_football_2 | ##Instruction:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Table: Country (2 columns)
--------------------------
• id (integer): the unique id for countries
• name (text): country name
Table: League ... | DataOperator_1 | {
"Country": [
"*"
],
"League": [
"id",
"name"
],
"Player": [
"birthday",
"height",
"id",
"player_fifa_api_id",
"player_name",
"weight"
],
"Player_Attributes": [
"aggression",
"agility",
"attacking_work_rate",
"balance",
"crossing",
"curve",
... | Who are the top 5 players by maximum crossing rating? Indicate their player id. | SELECT player_api_id
FROM Player_Attributes
GROUP BY player_api_id
ORDER BY MAX(crossing) DESC, player_api_id ASC
LIMIT 5; | simple | {
"gold_sql": "SELECT player_api_id\nFROM Player_Attributes\nGROUP BY player_api_id\nORDER BY MAX(crossing) DESC, player_api_id ASC\nLIMIT 5;",
"permission": "allowed",
"query_columns": {
"player_attributes": [
"crossing",
"player_api_id"
]
},
"missing_columns": {},
"reason": "All requir... |
european_football_2 | ##Instruction:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Table: Country (2 columns)
--------------------------
• id (integer): the unique id for countries
• name (text): country name
Table: League ... | DataOperator_1 | {
"Country": [
"*"
],
"League": [
"id",
"name"
],
"Player": [
"birthday",
"height",
"id",
"player_fifa_api_id",
"player_name",
"weight"
],
"Player_Attributes": [
"aggression",
"agility",
"attacking_work_rate",
"balance",
"crossing",
"curve",
... | Give the name of the league that had the most goals in the 2016 season? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT t2.name FROM Match AS t1 INNER JOIN League AS t2 ON t1.league_id = t2.id WHERE t1.season = '2015/2016' GROUP BY t2.name ORDER BY SUM(t1.home_team_goal + t1.away_team_goal) DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"league": [
"id",
"name"
],
"match": [... |
european_football_2 | ##Instruction:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Table: Country (2 columns)
--------------------------
• id (integer): the unique id for countries
• name (text): country name
Table: League ... | DataOperator_1 | {
"Country": [
"*"
],
"League": [
"id",
"name"
],
"Player": [
"birthday",
"height",
"id",
"player_fifa_api_id",
"player_name",
"weight"
],
"Player_Attributes": [
"aggression",
"agility",
"attacking_work_rate",
"balance",
"crossing",
"curve",
... | Which home team had lost the fewest matches in the 2016 season? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT teamDetails.team_long_name FROM Match AS matchData INNER JOIN Team AS teamDetails ON matchData.home_team_api_id = teamDetails.team_api_id WHERE matchData.season = '2015/2016' AND matchData.home_team_goal - matchData.away_team_goal < 0 GROUP BY matchData.home_team_api_id ORDER BY COUNT(*) ASC, te... |
european_football_2 | ##Instruction:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Table: Country (2 columns)
--------------------------
• id (integer): the unique id for countries
• name (text): country name
Table: League ... | DataOperator_1 | {
"Country": [
"*"
],
"League": [
"id",
"name"
],
"Player": [
"birthday",
"height",
"id",
"player_fifa_api_id",
"player_name",
"weight"
],
"Player_Attributes": [
"aggression",
"agility",
"attacking_work_rate",
"balance",
"crossing",
"curve",
... | Indicate the full names of the top 10 players with the highest penalties rating. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT t2.player_name\nFROM Player_Attributes AS t1\nJOIN Player AS t2 ON t1.player_api_id = t2.player_api_id\nGROUP BY t2.player_api_id, t2.player_name\nORDER BY MAX(t1.penalties) DESC, t2.player_api_id ASC\nLIMIT 10;",
"permission": "denied",
"query_columns": {
"player_attributes": [
"p... |
european_football_2 | ##Instruction:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Table: Country (2 columns)
--------------------------
• id (integer): the unique id for countries
• name (text): country name
Table: League ... | DataOperator_1 | {
"Country": [
"*"
],
"League": [
"id",
"name"
],
"Player": [
"birthday",
"height",
"id",
"player_fifa_api_id",
"player_name",
"weight"
],
"Player_Attributes": [
"aggression",
"agility",
"attacking_work_rate",
"balance",
"crossing",
"curve",
... | In Scotland Premier League, which away team won the most during the 2010 season? | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT t.team_long_name FROM League l JOIN `Match` m ON l.id = m.league_id JOIN Team t ON m.away_team_api_id = t.team_api_id WHERE l.name = 'Scotland Premier League' AND m.season = '2009/2010' AND m.away_team_goal > m.home_team_goal GROUP BY m.away_team_api_id, t.team_long_name ORDER BY COUNT(*) DESC, ... |
european_football_2 | ##Instruction:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Table: Country (2 columns)
--------------------------
• id (integer): the unique id for countries
• name (text): country name
Table: League ... | DataOperator_1 | {
"Country": [
"*"
],
"League": [
"id",
"name"
],
"Player": [
"birthday",
"height",
"id",
"player_fifa_api_id",
"player_name",
"weight"
],
"Player_Attributes": [
"aggression",
"agility",
"attacking_work_rate",
"balance",
"crossing",
"curve",
... | What are the speeds at which attacks are put together for the top 4 teams with the highest build Up Play Speed? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT t1.buildUpPlaySpeed FROM Team_Attributes AS t1 INNER JOIN Team AS t2 ON t1.team_api_id = t2.team_api_id ORDER BY t1.buildUpPlaySpeed DESC, t1.team_api_id ASC LIMIT 4",
"permission": "denied",
"query_columns": {
"team": [
"team_api_id"
],
"team_attributes": [
"buildUpP... |
european_football_2 | ##Instruction:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Table: Country (2 columns)
--------------------------
• id (integer): the unique id for countries
• name (text): country name
Table: League ... | DataOperator_1 | {
"Country": [
"*"
],
"League": [
"id",
"name"
],
"Player": [
"birthday",
"height",
"id",
"player_fifa_api_id",
"player_name",
"weight"
],
"Player_Attributes": [
"aggression",
"agility",
"attacking_work_rate",
"balance",
"crossing",
"curve",
... | Give the name of the league had the most matches end as draw in the 2016 season? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT t2.name FROM Match AS t1 INNER JOIN League AS t2 ON t1.league_id = t2.id WHERE t1.season = '2015/2016' AND t1.home_team_goal = t1.away_team_goal GROUP BY t2.name ORDER BY COUNT(t1.id) DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"league": [
"id",
"name"
],
... |
european_football_2 | ##Instruction:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Database: european_football_2
Total Tables: 7
Total Columns: 199
Table Schemas:
Table: Country (2 columns)
--------------------------
• id (integer): the unique id for countries
• name (text): country name
Table: League ... | DataOperator_1 | {
"Country": [
"*"
],
"League": [
"id",
"name"
],
"Player": [
"birthday",
"height",
"id",
"player_fifa_api_id",
"player_name",
"weight"
],
"Player_Attributes": [
"aggression",
"agility",
"attacking_work_rate",
"balance",
"crossing",
"curve",
... | Calculate the current age of players who have a sprint speed of at least 97 between 2013 and 2015. | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT DISTINCT DATETIME() - T2.birthday age FROM Player_Attributes AS t1 INNER JOIN Player AS t2 ON t1.player_api_id = t2.player_api_id WHERE STRFTIME('%Y',t1.`date`) >= '2013' AND STRFTIME('%Y',t1.`date`) <= '2015' AND t1.sprint_speed >= 97",
"permission": "denied",
"query_columns": {
"player... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.