Dludora/Bird-minidev-sqlserver-oracle huggingface dataset:
Database: european_football_2

Question: For the team "Hannover 96", what was its defence aggression class on 2015/9/10?
Evidence: "Hannover 96" refers to team_long_name = 'Hannover 96'; on 2015/9/10 refers to date LIKE '2015-09-10%';
SQL (SQLite): SELECT t2.defenceAggressionClass FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'Hannover 96' AND t2.`date` LIKE '2015-09-10%'
SQL (SQL Server): SELECT t2.defenceAggressionClass FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'Hannover 96' AND t2.[date] LIKE '2015-09-10%'
SQL (Oracle): SELECT t2.defenceAggressionClass FROM Team t1 INNER JOIN Team_Attributes t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'Hannover 96' AND t2."DATE" LIKE '2015-09-10%'

Question: What was the average overall rating for Marko Arnautovic from 2007/2/22 to 2016/4/21?
Evidence: average overall rating refers to avg(overall_rating); Marko Arnautovic refers to player_name = 'Marko Arnautovic'; from 2007/2/22 to 2016/4/21 refers to the first 10 characters of date BETWEEN '2007-02-22' and '2016-04-21'
SQL (SQLite): SELECT CAST(SUM(t2.overall_rating) AS REAL) / COUNT(t2.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_fifa_api_id = t2.player_fifa_api_id WHERE t1.player_name = 'Marko Arnautovic' AND SUBSTR(t2.`date`, 1, 10) BETWEEN '2007-02-22' AND '2016-04-21'
SQL (SQL Server): SELECT TRY_CAST(SUM(t2.overall_rating) AS FLOAT) / COUNT(t2.id) AS _agg1 FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_fifa_api_id = t2.player_fifa_api_id WHERE t1.player_name = 'Marko Arnautovic' AND SUBSTRING(t2.[date], 1, 10) BETWEEN '2007-02-22' AND '2016-04-21'
SQL (Oracle): SELECT CAST(SUM(t2.overall_rating) AS BINARY_DOUBLE) / COUNT(t2.id) FROM Player t1 INNER JOIN Player_Attributes t2 ON t1.player_fifa_api_id = t2.player_fifa_api_id WHERE t1.player_name = 'Marko Arnautovic' AND SUBSTR(t2."DATE", 1, 10) BETWEEN '2007-02-22' AND '2016-04-21'
Database: european_football_2

Question: What percentage is Landon Donovan's overall rating higher than Jordan Bowery on 2013/7/12?
Evidence: Landon Donovan's refers to player_name = 'Landon Donovan'; Jordan Bowery refers to player_name = 'Jordan Bowery'; percentage refers to DIVIDE(SUBTRACT(player_name = 'Landon Donovan' overall_rating; player_name = 'Jordan Bowery' overall_rating), player_name = 'Landon Donovan' overall_rating)*100
SQL (SQLite): SELECT (SUM(CASE WHEN t1.player_name = 'Landon Donovan' THEN t2.overall_rating ELSE 0 END) * 1.0 - SUM(CASE WHEN t1.player_name = 'Jordan Bowery' THEN t2.overall_rating ELSE 0 END)) * 100 / SUM(CASE WHEN t1.player_name = 'Landon Donovan' THEN t2.overall_rating ELSE 0 END) LvsJ_percent FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_fifa_api_id = t2.player_fifa_api_id WHERE SUBSTR(t2.`date`, 1, 10) = '2013-07-12'
SQL (SQL Server): SELECT (SUM(CASE WHEN t1.player_name = 'Landon Donovan' THEN t2.overall_rating ELSE 0 END) * 1.0 - SUM(CASE WHEN t1.player_name = 'Jordan Bowery' THEN t2.overall_rating ELSE 0 END)) * 100 / SUM(CASE WHEN t1.player_name = 'Landon Donovan' THEN t2.overall_rating ELSE 0 END) LvsJ_percent FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_fifa_api_id = t2.player_fifa_api_id WHERE SUBSTRING(t2.[date], 1, 10) = '2013-07-12'
SQL (Oracle): SELECT (SUM(CASE WHEN t1.player_name = 'Landon Donovan' THEN CAST(t2.overall_rating AS BINARY_DOUBLE) ELSE 0.0 END) * 1.0 - SUM(CASE WHEN t1.player_name = 'Jordan Bowery' THEN CAST(t2.overall_rating AS BINARY_DOUBLE) ELSE 0.0 END)) * 100 / SUM(CASE WHEN t1.player_name = 'Landon Donovan' THEN CAST(t2.overall_rating AS BINARY_DOUBLE) ELSE 0.0 END) LvsJ_percent FROM Player t1 INNER JOIN Player_Attributes t2 ON t1.player_fifa_api_id = t2.player_fifa_api_id WHERE SUBSTR(t2."DATE", 1, 10) = '2013-07-12'

Question: List down most tallest players' name.
Evidence: tallest refers to rank based on the height in descending order; Most tallest players refers to rank = 1 
SQL (SQLite): SELECT player_name FROM (SELECT player_name, height, DENSE_RANK() OVER (ORDER BY height DESC) as rank FROM Player) WHERE rank = 1
SQL (SQL Server): SELECT player_name FROM (SELECT player_name, height, DENSE_RANK() OVER (ORDER BY height DESC) AS [rank] FROM Player) _t1 WHERE rank = 1
SQL (Oracle): SELECT player_name FROM (SELECT player_name, height, DENSE_RANK() OVER (ORDER BY height DESC NULLS LAST) rank FROM Player) WHERE rank = 1
Database: european_football_2

Question: State the name of the most strongest player.
Evidence: strongest players refers to player has MAX(overall_rating)
SQL (SQLite): SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.overall_rating = (SELECT MAX(overall_rating) FROM Player_Attributes)
SQL (SQL Server): SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.overall_rating = (SELECT MAX(overall_rating) AS _agg1 FROM Player_Attributes)
SQL (Oracle): SELECT DISTINCT t1.player_name FROM Player t1 INNER JOIN Player_Attributes t2 ON t1.player_api_id = t2.player_api_id WHERE t2.overall_rating = (SELECT MAX(overall_rating) FROM Player_Attributes)

Question: Who are the players that tend to be attacking when their mates were doing attack moves? List down their name.
Evidence: tend to be attacking when their mates were doing attack moves refers to attacking_work_rate = 'high';
SQL (SQLite): SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.attacking_work_rate = 'high'
SQL (SQL Server): SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.attacking_work_rate = 'high'
SQL (Oracle): SELECT DISTINCT t1.player_name FROM Player t1 INNER JOIN Player_Attributes t2 ON t1.player_api_id = t2.player_api_id WHERE t2.attacking_work_rate = 'high'

Question: What are the short name of team who played safe while creating chance of passing?
Evidence: played safe while creating chance of passing refers to chanceCreationPassingClass = 'Safe'; short name of team refers to team_short_name
SQL (SQLite): SELECT DISTINCT t1.team_short_name FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.chanceCreationPassingClass = 'Safe'
SQL (SQL Server): SELECT DISTINCT t1.team_short_name FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.chanceCreationPassingClass = 'Safe'
SQL (Oracle): SELECT DISTINCT t1.team_short_name FROM Team t1 INNER JOIN Team_Attributes t2 ON t1.team_api_id = t2.team_api_id WHERE t2.chanceCreationPassingClass = 'Safe'

Question: How many football players born after the 1990s have the first name "Aaron"?
Evidence: first name "Aaron" refers to player_name LIKE 'Aaron%'; born after the 1990s refers to birthday > '1990'
SQL (SQLite): SELECT COUNT(id) FROM Player WHERE birthday > '1990' AND player_name LIKE 'Aaron%'
SQL (SQL Server): SELECT COUNT(id) AS _agg1 FROM Player WHERE birthday > '1990' AND player_name LIKE 'Aaron%'
SQL (Oracle): SELECT COUNT(id) FROM Player WHERE birthday > '1990' AND player_name LIKE 'Aaron%'
Database: european_football_2

Question: What is the difference between players 6 and 23's jumping scores?
Evidence: difference between players 6 and 23's jumping scores refers to SUBTRACT(jumping AND id = 6,jumping AND id = 23)
SQL (SQLite): SELECT SUM(CASE WHEN t1.id = 6 THEN t1.jumping ELSE 0 END) - SUM(CASE WHEN t1.id = 23 THEN t1.jumping ELSE 0 END) FROM Player_Attributes AS t1
SQL (SQL Server): SELECT SUM(CASE WHEN t1.id = 6 THEN t1.jumping ELSE 0 END) - SUM(CASE WHEN t1.id = 23 THEN t1.jumping ELSE 0 END) AS _agg1 FROM Player_Attributes AS t1
SQL (Oracle): SELECT SUM(CASE WHEN t1.id = 6 THEN CAST(t1.jumping AS BINARY_DOUBLE) ELSE 0.0 END) - SUM(CASE WHEN t1.id = 23 THEN CAST(t1.jumping AS BINARY_DOUBLE) ELSE 0.0 END) FROM Player_Attributes t1

Question: Please provide top four football players' IDs who are among the lowest potential players and prefer to use the right foot when attacking.
Evidence: lowest potential players refers to MIN(potential); prefer to use the right foot when attacking refers to preferred_foot = 'right'
SQL (SQLite): SELECT id FROM Player_Attributes WHERE preferred_foot = 'right' ORDER BY potential ASC LIMIT 4
SQL (SQL Server): SELECT id FROM Player_Attributes WHERE preferred_foot = 'right' ORDER BY potential ASC OFFSET 0 ROWS FETCH NEXT 4 ROWS ONLY
SQL (Oracle): SELECT id FROM Player_Attributes WHERE preferred_foot = 'right' ORDER BY potential ASC NULLS FIRST FETCH FIRST 4 ROWS ONLY

Question: How many players had the highest potential score for crossing that preferred to use their left foots while attacking?
Evidence: highest potential score for crossing refers to MAX(crossing); preferred to use their left foots while attacking refers to preferred_foot = 'left'
SQL (SQLite): SELECT COUNT(t1.id) FROM Player_Attributes AS t1 WHERE t1.preferred_foot = 'left' AND t1.crossing = ( SELECT MAX(crossing) FROM Player_Attributes)
SQL (SQL Server): SELECT COUNT(t1.id) AS _agg1 FROM Player_Attributes AS t1 WHERE t1.preferred_foot = 'left' AND t1.crossing = ( SELECT MAX(crossing) AS _agg2 FROM Player_Attributes)
SQL (Oracle): SELECT COUNT(t1.id) FROM Player_Attributes t1 WHERE t1.preferred_foot = 'left' AND t1.crossing = ( SELECT MAX(crossing) FROM Player_Attributes)
Database: european_football_2

Question: What was the final score for the match on September 24, 2008, in the Belgian Jupiler League between the home team and the away team?
Evidence: September 24, 2008 refers to date like '2008-09-24%'; in the Belgian Jupiler League refers to League.name = 'Belgium Jupiler League'; final score for home team refers to home_team_goal; final score for away team refers to away_team_goal
SQL (SQLite): SELECT t2.home_team_goal, t2.away_team_goal FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t1.name = 'Belgium Jupiler League' AND t2.`date` LIKE '2008-09-24%'
SQL (SQL Server): SELECT t2.home_team_goal, t2.away_team_goal FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t1.name = 'Belgium Jupiler League' AND t2.[date] LIKE '2008-09-24%'
SQL (Oracle): SELECT t2.home_team_goal, t2.away_team_goal FROM League t1 INNER JOIN Match t2 ON t1.id = t2.league_id WHERE t1.name = 'Belgium Jupiler League' AND t2."DATE" LIKE '2008-09-24%'

Question: Does the KSV Cercle Brugge team have a slow, balanced or fast speed class?
Evidence: KSV Cercle Brugge refers to team_long_name = 'KSV Cercle Brugge'; speed class refers to buildUpPlaySpeedClass
SQL (SQLite): SELECT DISTINCT t1.buildUpPlaySpeedClass FROM Team_Attributes AS t1 INNER JOIN Team AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.team_long_name = 'KSV Cercle Brugge'
SQL (SQL Server): SELECT DISTINCT t1.buildUpPlaySpeedClass FROM Team_Attributes AS t1 INNER JOIN Team AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.team_long_name = 'KSV Cercle Brugge'
SQL (Oracle): SELECT DISTINCT t1.buildUpPlaySpeedClass FROM Team_Attributes t1 INNER JOIN Team t2 ON t1.team_api_id = t2.team_api_id WHERE t2.team_long_name = 'KSV Cercle Brugge'

Question: Please state the finishing rate and curve score of the player who has the heaviest weight.
Evidence: finishing rate refer to finishing; curve score refer to curve; heaviest weight refers to MAX(weight)
SQL (SQLite): SELECT id, finishing, curve FROM Player_Attributes WHERE player_api_id = ( SELECT player_api_id FROM Player ORDER BY weight DESC LIMIT 1 ) LIMIT 1
SQL (SQL Server): SELECT TOP 1 id, finishing, curve FROM Player_Attributes WHERE player_api_id = ( SELECT TOP 1 player_api_id FROM Player ORDER BY weight DESC )
SQL (Oracle): SELECT id, finishing, curve FROM Player_Attributes WHERE player_api_id = ( SELECT player_api_id FROM Player ORDER BY weight DESC NULLS LAST FETCH FIRST 1 ROWS ONLY ) FETCH FIRST 1 ROWS ONLY
Database: european_football_2

Question: Which top 4 leagues had the most games in the 2015-2016 season?
Evidence: in the 2015-2016 season refers to season = '2015/2016'; league with most games refers to League.name where MAX(COUNT(id))
SQL (SQLite): SELECT t1.name FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2015/2016' GROUP BY t1.name ORDER BY COUNT(t2.id) DESC LIMIT 4
SQL (SQL Server): SELECT t1.name FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2015/2016' GROUP BY t1.name ORDER BY COUNT(t2.id) DESC OFFSET 0 ROWS FETCH NEXT 4 ROWS ONLY
SQL (Oracle): SELECT t1.name FROM League t1 INNER JOIN Match t2 ON t1.id = t2.league_id WHERE t2.season = '2015/2016' GROUP BY t1.name ORDER BY COUNT(t2.id) DESC NULLS LAST FETCH FIRST 4 ROWS ONLY

Question: Please provide the full name of the away team that scored the most goals.
Evidence: full name refers to team_long_name; away team refers to away_team_api_id; scored the most goals refers to MAX(away_team_goal)
SQL (SQLite): SELECT t2.team_long_name FROM Match AS t1 INNER JOIN Team AS t2 ON t1.away_team_api_id = t2.team_api_id ORDER BY t1.away_team_goal DESC LIMIT 1
SQL (SQL Server): SELECT t2.team_long_name FROM Match AS t1 INNER JOIN Team AS t2 ON t1.away_team_api_id = t2.team_api_id ORDER BY t1.away_team_goal DESC OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY
SQL (Oracle): SELECT t2.team_long_name FROM Match t1 INNER JOIN Team t2 ON t1.away_team_api_id = t2.team_api_id ORDER BY t1.away_team_goal DESC NULLS LAST FETCH FIRST 1 ROWS ONLY

Question: Please name one player whose overall strength is the greatest.
Evidence: overall strength is the greatest refers to MAX(overall_rating)
SQL (SQLite): SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.overall_rating = ( SELECT MAX(overall_rating) FROM Player_Attributes)
SQL (SQL Server): SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.overall_rating = ( SELECT MAX(overall_rating) AS _agg1 FROM Player_Attributes)
SQL (Oracle): SELECT DISTINCT t1.player_name FROM Player t1 INNER JOIN Player_Attributes t2 ON t1.player_api_id = t2.player_api_id WHERE t2.overall_rating = ( SELECT MAX(overall_rating) FROM Player_Attributes)
Database: european_football_2

Question: What is the percentage of players that are under 180 cm who have an overall strength of more than 70?
Evidence: percentage refers to DIVIDE(COUNT(height < 180 AND overall_rating > 70),COUNT(id)) * 100
SQL (SQLite): SELECT CAST(COUNT(CASE WHEN t2.overall_rating > 70  AND t1.height < 180 THEN t1.id ELSE NULL END) AS REAL) * 100 / COUNT(t1.id) percent FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id 
SQL (SQL Server): SELECT TRY_CAST(COUNT(CASE WHEN t2.overall_rating > 70  AND t1.height < 180 THEN t1.id ELSE NULL END) AS FLOAT) * 100 / COUNT(t1.id) AS [percent] FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id
SQL (Oracle): SELECT CAST(COUNT(CASE WHEN t2.overall_rating > 70  AND t1.height < 180 THEN t1.id ELSE NULL END) AS BINARY_DOUBLE) * 100 / COUNT(t1.id) percent FROM Player t1 INNER JOIN Player_Attributes t2 ON t1.player_api_id = t2.player_api_id
Database: formula_1

Question: Please list the reference names of the drivers who are eliminated in the first period in race number 20.
Evidence: driver reference name refers to driverRef; first qualifying period refers to q1; drivers who are eliminated in the first qualifying period refers to 5 drivers with MAX(q1); race number refers to raceId;
SQL (SQLite): SELECT T2.driverRef FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 20 ORDER BY T1.q1 DESC LIMIT 5
SQL (SQL Server): SELECT T2.driverRef FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 20 ORDER BY T1.q1 DESC OFFSET 0 ROWS FETCH NEXT 5 ROWS ONLY
SQL (Oracle): SELECT T2.driverRef FROM qualifying T1 INNER JOIN drivers T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 20 ORDER BY T1.q1 DESC NULLS LAST FETCH FIRST 5 ROWS ONLY

Question: What is the surname of the driver with the best lap time in race number 19 in the second qualifying period?
Evidence: race number refers to raceId; second qualifying period refers to q2; best lap time refers to MIN(q2);
SQL (SQLite): SELECT T2.surname FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 19 ORDER BY T1.q2 ASC LIMIT 1
SQL (SQL Server): SELECT T2.surname FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 19 ORDER BY T1.q2 ASC OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY
SQL (Oracle): SELECT T2.surname FROM qualifying T1 INNER JOIN drivers T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 19 ORDER BY T1.q2 ASC NULLS FIRST FETCH FIRST 1 ROWS ONLY

Question: Please give the name of the race held on the circuits in Germany.
Evidence: Germany is a name of country;
SQL (SQLite): SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Germany'
SQL (SQL Server): SELECT DISTINCT T2.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Germany'
SQL (Oracle): SELECT DISTINCT T2.name FROM circuits T1 INNER JOIN races T2 ON T2.circuitID = T1.circuitId WHERE T1.country = 'Germany'

Question: What is the coordinates location of the circuits for Australian grand prix?
Evidence: coordinate position/location refers to lat, lng; circuits for Australian grand prix refers to races.name = 'Australian Grand Prix'
SQL (SQLite): SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Australian Grand Prix'
SQL (SQL Server): SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Australian Grand Prix'
SQL (Oracle): SELECT DISTINCT T1.lat, T1.lng FROM circuits T1 INNER JOIN races T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Australian Grand Prix'
Database: formula_1

Question: Give the coordinate position for Abu Dhabi Grand Prix.
Evidence: coordinate position/location refers to lat, lng; Abu Dhabi Grand Prix refers to races.name = 'Abu Dhabi Grand Prix'
SQL (SQLite): SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Abu Dhabi Grand Prix'
SQL (SQL Server): SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Abu Dhabi Grand Prix'
SQL (Oracle): SELECT DISTINCT T1.lat, T1.lng FROM circuits T1 INNER JOIN races T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Abu Dhabi Grand Prix'

Question: What's Bruno Senna's Q1 result in the qualifying race No. 354?
Evidence: race number refers to raceId; Bruno Senna refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname;
SQL (SQLite): SELECT T1.q1 FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 354 AND T2.forename = 'Bruno' AND T2.surname = 'Senna'
SQL (SQL Server): SELECT T1.q1 FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 354 AND T2.forename = 'Bruno' AND T2.surname = 'Senna'
SQL (Oracle): SELECT T1.q1 FROM qualifying T1 INNER JOIN drivers T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 354 AND T2.forename = 'Bruno' AND T2.surname = 'Senna'

Question: What is his number of the driver who finished 0:01:54 in the Q3 of qualifying race No.903?
Evidence: race number refers to raceId; finished 0:0M:SS in the Q3 refers to q3 LIKE 'M:SS%'
SQL (SQLite): SELECT T2.number FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 903 AND T1.q3 LIKE '1:54%'
SQL (SQL Server): SELECT T2.number FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 903 AND T1.q3 LIKE '1:54%'
SQL (Oracle): SELECT T2."NUMBER" FROM qualifying T1 INNER JOIN drivers T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 903 AND T1.q3 LIKE '1:54%'

Question: For the Bahrain Grand Prix in 2007, how many drivers not finished the game?
Evidence: Bahrain Grand Prix refers to races.name = 'Bahrain Grand Prix'; drivers who finished the race refers to time is not empty (i.e. time IS NOT NULL);
SQL (SQLite): SELECT COUNT(T3.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.year = 2007 AND T1.name = 'Bahrain Grand Prix' AND T2.time IS NULL
SQL (SQL Server): SELECT COUNT(T3.driverId) AS _agg1 FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.year = 2007 AND T1.name = 'Bahrain Grand Prix' AND T2.time IS NULL
SQL (Oracle): SELECT COUNT(T3.driverId) FROM races T1 INNER JOIN results T2 ON T2.raceId = T1.raceId INNER JOIN drivers T3 ON T3.driverId = T2.driverId WHERE T1.year = 2007 AND T1.name = 'Bahrain Grand Prix' AND T2."TIME" IS NULL
Database: formula_1

Question: For all the drivers who finished the game in race No. 592, who is the oldest?
Evidence: drivers who finished the race refers to time is not empty (i.e. time IS NOT NULL); race number refers to raceId; date of birth refers to drivers.dob; The larger the birthday value, the younger the person is, and vice versa;
SQL (SQLite): SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 592 AND T2.time IS NOT NULL AND T1.dob IS NOT NULL ORDER BY T1.dob ASC LIMIT 1
SQL (SQL Server): SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 592 AND T2.time IS NOT NULL AND T1.dob IS NOT NULL ORDER BY T1.dob ASC OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY
SQL (Oracle): SELECT T1.forename, T1.surname FROM drivers T1 INNER JOIN results T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 592 AND T2."TIME" IS NOT NULL AND T1.dob IS NOT NULL ORDER BY T1.dob ASC NULLS FIRST FETCH FIRST 1 ROWS ONLY

Question: Who was the player that got the lap time of 0:01:27 in the race No. 161? Show his introduction website.
Evidence: player and driver are synonyms; the lap time of 0:0M:SS refers to lapTime.time LIKE 'M:SS%';race number refers to raceId; introduction website of the drivers refers to url;
SQL (SQLite): SELECT DISTINCT T2.forename, T2.surname, T2.url FROM lapTimes AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 161 AND T1.time LIKE '1:27%'
SQL (SQL Server): SELECT DISTINCT T2.forename, T2.surname, T2.url FROM lapTimes AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 161 AND T1.time LIKE '1:27%'
SQL (Oracle): SELECT DISTINCT T2.forename, T2.surname, T2.url FROM lapTimes T1 INNER JOIN drivers T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 161 AND T1."TIME" LIKE '1:27%'

Question: Where is Malaysian Grand Prix held? Give the location coordinates.
Evidence: location coordinates refers to (lat, lng); Malaysian Grand Prix refers to races.name = 'Malaysian Grand Prix'
SQL (SQLite): SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Malaysian Grand Prix'
SQL (SQL Server): SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Malaysian Grand Prix'
SQL (Oracle): SELECT DISTINCT T1.lat, T1.lng FROM circuits T1 INNER JOIN races T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Malaysian Grand Prix'