question stringlengths 23 286 | sql stringlengths 29 1.45k | db_id stringclasses 11
values | prompt stringlengths 1.09k 6.84k | question_id int64 0 1.53k | difficulty stringclasses 3
values |
|---|---|---|---|---|---|
Which racetrack hosted the most recent race? Indicate the full location. | SELECT T1.location FROM circuits AS T1 INNER JOIN races AS T2 ON T1.circuitId = T2.circuitId ORDER BY T2.date DESC LIMIT 1 | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,000 | simple |
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... | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,001 | challenging |
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 | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,002 | moderate |
How many accidents did the driver who had the highest number accidents in the Canadian Grand Prix have? | 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 | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,003 | moderate |
How many wins was achieved by the oldest racer? Indicate his/her full name. | SELECT SUM(T1.wins) FROM driverStandings AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId GROUP BY T2.forename, T2.surname ORDER BY T2.dob ASC LIMIT 1 | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,004 | simple |
What was the longest time a driver had ever spent at a pit stop? | SELECT duration FROM pitStops ORDER BY duration DESC LIMIT 1 | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,005 | simple |
Among all the lap records set on various circuits, what is the time for the fastest one? | SELECT time FROM lapTimes ORDER BY (CASE WHEN INSTR(time, ':') <> INSTR(SUBSTR(time, INSTR(time, ':') + 1), ':') + INSTR(time, ':') THEN CAST(SUBSTR(time, 1, INSTR(time, ':') - 1) AS REAL) * 3600 ELSE 0 END) + (CAST(SUBSTR(time, INSTR(time, ':') - 2 * (INSTR(time, ':') = INSTR(SUBSTR(time, INSTR(time, ':') + 1), ':') +... | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,006 | challenging |
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 | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,007 | simple |
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' | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,008 | simple |
Please list the time each driver spent at the pit stop during the 2011 Australian Grand Prix. | SELECT T1.duration FROM pitStops AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId WHERE T2.year = 2011 AND T2.name = 'Australian Grand Prix' | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,009 | simple |
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' | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,010 | simple |
Which driver created the shortest lap time ever record in a Formula_1 race? Please give his full name. | WITH lap_times_in_seconds AS ( SELECT driverId, (CASE WHEN INSTR(time, ':') <> INSTR(SUBSTR(time, INSTR(time, ':') + 1), ':') + INSTR(time, ':') THEN CAST(SUBSTR(time, 1, INSTR(time, ':') - 1) AS REAL) * 3600 ELSE 0 END) + (CAST(SUBSTR(time, INSTR(time, ':') - 2 * (INSTR(time, ':') = INSTR(SUBSTR(time, INSTR(time, ':')... | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,011 | challenging |
What was the position of the circuits during Lewis Hamilton's fastest lap in a Formula_1 race? | SELECT T1.position 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.time ASC LIMIT 1 | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,012 | simple |
What is the lap record for the Austrian Grand Prix Circuit? | 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.circuitId = T3.circuitI... | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,013 | simple |
Please list the lap records for the circuits in Italy. | 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(SUBSTR(T1.Fastest... | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,014 | challenging |
In which Formula_1 race was the lap record for the Austrian Grand Prix Circuit set? | 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(SUBSTR(T1.Fastes... | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,015 | moderate |
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? | 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 REAL)) + (CAST(SUB... | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,016 | challenging |
Please list the location coordinates of the circuits whose lap record is 1:29.488. | 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' | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,017 | moderate |
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' | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,018 | simple |
What is the average lap time in milliseconds of all the lap records set on the various circuits in Italy? | SELECT CAST(SUM(T1.milliseconds) AS REAL) / COUNT(T1.lap) 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 T3.country = 'Italy' | formula_1 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#circuits (circuitId integer, circuitRef text, name text, location text, country text, lat real, lng real, alt integer, url text, , PRIMARY ... | 1,019 | moderate |
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 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,020 | simple |
What is the height of the tallest player? Indicate his name. | SELECT player_name FROM Player ORDER BY height DESC LIMIT 1 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,021 | simple |
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 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,022 | simple |
Among the players with an overall rating between 60 to 65, how many players whose going to be in all of your attack moves instead of defensing? | SELECT COUNT(id) FROM Player_Attributes WHERE overall_rating BETWEEN 60 AND 65 AND defensive_work_rate = 'low' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,023 | moderate |
Who are the top 5 players who perform better in crossing actions? Indicate their player id. | SELECT id FROM Player_Attributes ORDER BY crossing DESC LIMIT 5 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,024 | simple |
Which league had the most goals in the 2016 season? | 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 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,025 | moderate |
Which home team had lost the fewest matches in the 2016 season? | 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 LIMIT 1 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,026 | moderate |
Indicate the full names of the top 10 players with the highest number of penalties. | SELECT t2.player_name FROM Player_Attributes AS t1 INNER JOIN Player AS t2 ON t1.id = t2.id ORDER BY t1.penalties DESC LIMIT 10 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,027 | simple |
In Scotland Premier League, which away team won the most during the 2010 season? | SELECT teamInfo.team_long_name FROM League AS leagueData INNER JOIN Match AS matchData ON leagueData.id = matchData.league_id INNER JOIN Team AS teamInfo ON matchData.away_team_api_id = teamInfo.team_api_id WHERE leagueData.name = 'Scotland Premier League' AND matchData.season = '2009/2010' AND matchData.away_team_goal... | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,028 | challenging |
What are the speed in which attacks are put together of the top 4 teams with the highest build Up Play Speed? | 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.buildUpPlayDribbling ASC LIMIT 4 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,029 | moderate |
Which League had the most matches end as draw in the 2016 season? | 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 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,030 | moderate |
At present, calculate for the player's age who have a sprint speed of no less than 97 between 2013 to 2015. | SELECT DATETIME() - T2.birthday age FROM Player_Attributes AS t1 INNER JOIN Player AS t2 ON t1.player_api_id = t2.player_api_id WHERE SUBSTR(t1.`date`, 1, 10) BETWEEN '2013-01-01' AND '2015-12-31' AND t1.sprint_speed >= 97 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,031 | challenging |
Give the name of the league with the highest matches of all time and how many matches were played in the said league. | SELECT t2.name, COUNT(t1.id) FROM Match AS t1 INNER JOIN League AS t2 ON t1.league_id = t2.id GROUP BY t2.name ORDER BY COUNT(t1.id) DESC LIMIT 1 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,032 | moderate |
What is the average height of players born between 1990 and 1995? | SELECT SUM(height) / COUNT(id) FROM Player WHERE SUBSTR(birthday, 1, 4) BETWEEN '1990' AND '1995' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,033 | simple |
List the players' api id who had the highest above average overall ratings in 2010. | SELECT player_api_id FROM Player_Attributes WHERE SUBSTR(`date`, 1, 4) = '2010' ORDER BY overall_rating DESC LIMIT 1 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,034 | simple |
Give the team_fifa_api_id of teams with more than 50 but less than 60 build-up play speed. | SELECT DISTINCT team_fifa_api_id FROM Team_Attributes WHERE buildUpPlaySpeed > 50 AND buildUpPlaySpeed < 60 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,035 | simple |
List the long name of teams with above-average build-up play passing in 2012. | SELECT DISTINCT t4.team_long_name FROM Team_Attributes AS t3 INNER JOIN Team AS t4 ON t3.team_api_id = t4.team_api_id WHERE SUBSTR(t3.`date`, 1, 4) = '2012' AND t3.buildUpPlayPassing > ( SELECT CAST(SUM(t2.buildUpPlayPassing) AS REAL) / COUNT(t1.id) FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t... | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,036 | challenging |
Calculate the percentage of players who prefer left foot, who were born between 1987 and 1992. | SELECT CAST(COUNT(CASE WHEN t2.preferred_foot = 'left' 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 WHERE SUBSTR(t1.birthday, 1, 4) BETWEEN '1987' AND '1992' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,037 | challenging |
List the top 5 leagues in ascending order of the number of goals made in all seasons combined. | SELECT t1.name, SUM(t2.home_team_goal) + SUM(t2.away_team_goal) FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id GROUP BY t1.name ORDER BY SUM(t2.home_team_goal) + SUM(t2.away_team_goal) ASC LIMIT 5 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,038 | moderate |
Find the average number of long-shot done by Ahmed Samir Farag. | SELECT CAST(SUM(t2.long_shots) AS REAL) / COUNT(t2.`date`) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Ahmed Samir Farag' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,039 | simple |
List the top 10 players' names whose heights are above 180 in descending order of average heading accuracy. | SELECT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.height > 180 GROUP BY t1.id ORDER BY CAST(SUM(t2.heading_accuracy) AS REAL) / COUNT(t2.`player_fifa_api_id`) DESC LIMIT 10 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,040 | moderate |
For the teams with normal build-up play dribbling class in 2014, List the names of the teams with less than average chance creation passing, in descending order of chance creation passing. | SELECT t3.team_long_name FROM Team AS t3 INNER JOIN Team_Attributes AS t4 ON t3.team_api_id = t4.team_api_id WHERE t4.buildUpPlayDribblingClass = 'Normal' AND t4.chanceCreationPassing < ( SELECT CAST(SUM(t2.chanceCreationPassing) AS REAL) / COUNT(t1.id) FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id... | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,041 | challenging |
List the name of leagues in which the average goals by the home team is higher than the away team in the 2009/2010 season. | SELECT t1.name FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2009/2010' GROUP BY t1.name HAVING (CAST(SUM(t2.home_team_goal) AS REAL) / COUNT(DISTINCT t2.id)) - (CAST(SUM(t2.away_team_goal) AS REAL) / COUNT(DISTINCT t2.id)) > 0 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,042 | challenging |
What is the short name of the football team Queens Park Rangers? | SELECT team_short_name FROM Team WHERE team_long_name = 'Queens Park Rangers' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,043 | simple |
List the football players with a birthyear of 1970 and a birthmonth of October. | SELECT player_name FROM Player WHERE SUBSTR(birthday, 1, 7) = '1970-10' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,044 | simple |
What is the attacking work rate of the football playerr Franco Zennaro? | SELECT DISTINCT t2.attacking_work_rate FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Franco Zennaro' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,045 | simple |
What is the ADO Den Haag team freedom of movement in the 1st two thirds of the pitch? | SELECT DISTINCT t2.buildUpPlayPositioningClass FROM Team AS t1 INNER JOIN Team_attributes AS t2 ON t1.team_fifa_api_id = t2.team_fifa_api_id WHERE t1.team_long_name = 'ADO Den Haag' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,046 | moderate |
What is the football player Francois Affolter header's finishing rate on 18/09/2014? | SELECT t2.heading_accuracy FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Francois Affolter' AND SUBSTR(t2.`date`, 1, 10) = '2014-09-18' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,047 | moderate |
What is the overall rating of the football player Gabriel Tamas in year 2011? | SELECT t2.overall_rating FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Gabriel Tamas' AND SUBSTR(t2.`date`, 1, 4) = '2011' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,048 | simple |
How many matches in the 2015/2016 season were held in Scotland Premier League
? | SELECT COUNT(t2.id) FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2015/2016' AND t1.name = 'Scotland Premier League' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,049 | simple |
What is the preferred foot when attacking of the youngest football player? | SELECT t2.preferred_foot FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id ORDER BY t1.birthday DESC LIMIT 1 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,050 | simple |
List all the football player with the highest potential score. | 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.potential = (SELECT MAX(potential) FROM Player_Attributes) | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,051 | simple |
Among all the players whose weight is under 130, how many of them preferred foot in attacking is left? | SELECT COUNT(DISTINCT t1.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.weight < 130 AND t2.preferred_foot = 'left' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,052 | moderate |
List the football teams that has a chance creation passing class of Risky. Inidcate its short name only. | 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 = 'Risky' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,053 | moderate |
What is the defensive work rate of the football player David Wilson
? | SELECT DISTINCT t2.defensive_work_rate FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'David Wilson' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,054 | simple |
When is the birthday of the football player who has the highest overall rating? | SELECT t1.birthday FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id ORDER BY t2.overall_rating DESC LIMIT 1 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,055 | simple |
What is the name of the football league in the country of Netherlands? | SELECT t2.name FROM Country AS t1 INNER JOIN League AS t2 ON t1.id = t2.country_id WHERE t1.name = 'Netherlands' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,056 | simple |
Calculate the average home team goal in the 2010/2011 season in the country of Poland. | SELECT CAST(SUM(t2.home_team_goal) AS REAL) / COUNT(t2.id) FROM Country AS t1 INNER JOIN Match AS t2 ON t1.id = t2.country_id WHERE t1.name = 'Poland' AND t2.season = '2010/2011' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,057 | moderate |
Who has the highest average finishing rate between the highest and shortest football player? | SELECT A FROM ( SELECT AVG(finishing) result, 'Max' A FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T1.height = ( SELECT MAX(height) FROM Player ) UNION SELECT AVG(finishing) result, 'Min' A FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.player_api_id = T2... | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,058 | challenging |
Please list player names which are higher than 180. | SELECT player_name FROM Player WHERE height > 180 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,059 | simple |
How many players were born after 1990? | SELECT COUNT(id) FROM Player WHERE STRFTIME('%Y', birthday) > '1990' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,060 | simple |
How many players whose first names are Adam and weigh more than 170? | SELECT COUNT(id) FROM Player WHERE weight > 170 AND player_name LIKE 'Adam%' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,061 | simple |
Which players had an overall rating of over 80 from 2008 to 2010? Please list player names. | 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 > 80 AND SUBSTR(t2.`date`, 1, 4) BETWEEN '2008' AND '2010' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,062 | moderate |
What is Aaron Doran's potential score? | SELECT t2.potential FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Aaron Doran' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,063 | simple |
List out of players whose preferred foot is left. | SELECT DISTINCT t1.id, t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.preferred_foot = 'left' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,064 | simple |
Please list all team names which the speed class is fast. | SELECT DISTINCT t1.team_long_name FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.buildUpPlaySpeedClass = 'Fast' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,065 | simple |
What is the passing class of CLB team? | SELECT DISTINCT t2.buildUpPlayPassingClass FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_short_name = 'CLB' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,066 | simple |
Which teams have build up play passing more than 70? Please list their short names. | 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.buildUpPlayPassing > 70 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,067 | moderate |
From 2010 to 2015, what was the average overall rating of players who are higher than 170? | SELECT CAST(SUM(t2.overall_rating) AS REAL) / COUNT(t2.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.height > 170 AND SUBSTR(t2.`date`, 1, 4) BETWEEN '2010' AND '2015' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,068 | moderate |
Which football player has the shortest height? | SELECT player_name FROM player ORDER BY height ASC LIMIT 1 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,069 | simple |
Which country is the league Italy Serie A from? | SELECT t1.name FROM Country AS t1 INNER JOIN League AS t2 ON t1.id = t2.country_id WHERE t2.name = 'Italy Serie A' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,070 | simple |
List the football team that has a build up play speed of 31, build up plan dribbling of 53, and build up play passing of 32. Only indicate the short name of the team. | 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.buildUpPlaySpeed = 31 AND t2.buildUpPlayDribbling = 53 AND t2.buildUpPlayPassing = 32 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,071 | challenging |
What is the average overall rating of the football player Aaron Doran? | SELECT CAST(SUM(t2.overall_rating) AS REAL) / COUNT(t2.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Aaron Doran' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,072 | simple |
How many matches were held in the league Germany 1. Bundesliga
from August to October 2008? | SELECT COUNT(t2.id) FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t1.name = 'Germany 1. Bundesliga' AND SUBSTR(t2.`date`, 1, 7) BETWEEN '2008-08' AND '2008-10' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,073 | moderate |
List all the short name of the football team that had a home team goal of 10? | SELECT t1.team_short_name FROM Team AS t1 INNER JOIN Match AS t2 ON t1.team_api_id = t2.home_team_api_id WHERE t2.home_team_goal = 10 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,074 | simple |
List all the football player with the highest balance score and potential score of 61. | SELECT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.potential = '61' ORDER BY t2.balance DESC LIMIT 1 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,075 | moderate |
What is the difference of the average ball control score between Abdou Diallo and Aaron Appindangoye
? | SELECT CAST(SUM(CASE WHEN t1.player_name = 'Abdou Diallo' THEN t2.ball_control ELSE 0 END) AS REAL) / COUNT(CASE WHEN t1.player_name = 'Abdou Diallo' THEN t2.id ELSE NULL END) - CAST(SUM(CASE WHEN t1.player_name = 'Aaron Appindangoye' THEN t2.ball_control ELSE 0 END) AS REAL) / COUNT(CASE WHEN t1.player_name = 'Aaron A... | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,076 | challenging |
What's the long name for the team GEN? | SELECT team_long_name FROM Team WHERE team_short_name = 'GEN' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,077 | simple |
Which player is older, Aaron Lennon or Abdelaziz Barrada? | SELECT player_name FROM Player WHERE player_name IN ('Aaron Lennon', 'Abdelaziz Barrada') ORDER BY birthday ASC LIMIT 1 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,078 | simple |
Which player is the tallest? | SELECT player_name FROM Player ORDER BY height DESC LIMIT 1 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,079 | simple |
Among the players whose preferred foot was the left foot when attacking, how many of them would remain in his position when the team attacked? | SELECT COUNT(player_api_id) FROM Player_Attributes WHERE preferred_foot = 'left' AND attacking_work_rate = 'low' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,080 | moderate |
Which country is the Belgium Jupiler League from? | SELECT t1.name FROM Country AS t1 INNER JOIN League AS t2 ON t1.id = t2.country_id WHERE t2.name = 'Belgium Jupiler League' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,081 | simple |
Please list the leagues from Germany. | SELECT t2.name FROM Country AS t1 INNER JOIN League AS t2 ON t1.id = t2.country_id WHERE t1.name = 'Germany' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,082 | simple |
Which player has the strongest overall strength? | SELECT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id ORDER BY t2.overall_rating DESC LIMIT 1 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,083 | simple |
Among the players born before the year 1986, how many of them would remain in his position and defense while the team attacked? | SELECT COUNT(DISTINCT t1.player_name) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE SUBSTR(t1.birthday, 1, 4) < '1986' AND t2.defensive_work_rate = 'high' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,084 | challenging |
Which of these players performs the best in crossing actions, Alexis, Ariel Borysiuk or Arouna Kone? | SELECT t1.player_name, t2.crossing FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name IN ('Alexis', 'Ariel Borysiuk', 'Arouna Kone') ORDER BY t2.crossing DESC LIMIT 1 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,085 | moderate |
What's the heading accuracy of Ariel Borysiuk? | SELECT t2.heading_accuracy FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Ariel Borysiuk' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,086 | simple |
Among the players whose height is over 180, how many of them have a volley score of over 70? | SELECT COUNT(DISTINCT t1.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.height > 180 AND t2.volleys > 70 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,087 | simple |
Please list the names of the players whose volley score and dribbling score are over 70. | 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.volleys > 70 AND t2.dribbling > 70 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,088 | moderate |
How many matches in the 2008/2009 season were held in Belgium? | SELECT COUNT(t2.id) FROM Country AS t1 INNER JOIN Match AS t2 ON t1.id = t2.country_id WHERE t1.name = 'Belgium' AND t2.season = '2008/2009' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,089 | simple |
What is the long passing score of the oldest player? | SELECT t2.long_passing FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id ORDER BY t1.birthday ASC LIMIT 1 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,090 | simple |
How many matches were held in the Belgium Jupiler League in April, 2009? | SELECT COUNT(t2.id) FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t1.name = 'Belgium Jupiler League' AND SUBSTR(t2.`date`, 1, 4) = '2009' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,091 | moderate |
Which league had the most matches in the 2008/2009 season? | SELECT t1.name FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2008/2009' GROUP BY t1.name ORDER BY COUNT(t2.id) DESC LIMIT 1 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,092 | simple |
What is the average overall rating of the players born before the year 1986? | SELECT SUM(t2.overall_rating) / COUNT(t1.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE SUBSTR(t1.birthday, 1, 4) < '1986' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,093 | moderate |
How much higher in percentage is Ariel Borysiuk's overall rating than that of Paulin Puel? | SELECT (SUM(CASE WHEN t1.player_name = 'Ariel Borysiuk' THEN t2.overall_rating ELSE 0 END) * 1.0 - SUM(CASE WHEN t1.player_name = 'Paulin Puel' THEN t2.overall_rating ELSE 0 END)) * 100 / SUM(CASE WHEN t1.player_name = 'Paulin Puel' THEN t2.overall_rating ELSE 0 END) FROM Player AS t1 INNER JOIN Player_Attributes AS t2... | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,094 | challenging |
How much is the average build up play speed of the Heart of Midlothian team? | SELECT CAST(SUM(t2.buildUpPlaySpeed) AS REAL) / COUNT(t2.id) FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'Heart of Midlothian' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,095 | moderate |
Calculate the average overall rating of Pietro Marino. | SELECT CAST(SUM(t2.overall_rating) AS REAL) / COUNT(t2.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Pietro Marino' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,096 | moderate |
What is Aaron Lennox's total crossing score? | SELECT SUM(t2.crossing) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Aaron Lennox' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,097 | simple |
What is Ajax's highest chance creation passing score and what is it classified as? | SELECT t2.chanceCreationPassing, t2.chanceCreationPassingClass FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'Ajax' ORDER BY t2.chanceCreationPassing DESC LIMIT 1 | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,098 | moderate |
Which foot is preferred by Abdou Diallo? | SELECT DISTINCT t2.preferred_foot FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Abdou Diallo' | european_football_2 | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#Country (id integer, name text, , PRIMARY KEY(id), )
#League (id integer, country_id integer, name text, , PRIMARY KEY(id), FOREIGN KEY(cou... | 1,099 | simple |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.