db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
european_football_2 | 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 | Question: list the top 5 leagues in ascending order of the number of goals made in all seasons combined. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, ... | list the top 5 leagues in ascending order of the number of goals made in all seasons combined. |
european_football_2 | 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' | Question: find the average number of long-shot done by ahmed samir farag. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free... | find the average number of long-shot done by ahmed samir farag. |
european_football_2 | 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 | Question: list the top 10 players' names whose heights are above 180 in descending order of average heading accuracy. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, sh... | list the top 10 players' names whose heights are above 180 in descending order of average heading accuracy. |
european_football_2 | 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... | Question: 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. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, at... | 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. |
european_football_2 | 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 | Question: 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. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, headi... | 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. |
european_football_2 | select team_short_name from team where team_long_name = 'queens park rangers' | Question: what is the short name of the football team queens park rangers? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, fre... | what is the short name of the football team queens park rangers? |
european_football_2 | select player_name from player where substr(birthday, 1, 7) = '1970-10' | Question: list the football players with a birthyear of 1970 and a birthmonth of october. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbl... | list the football players with a birthyear of 1970 and a birthmonth of october. |
european_football_2 | 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' | Question: what is the attacking work rate of the football playerr franco zennaro? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, cur... | what is the attacking work rate of the football playerr franco zennaro? |
european_football_2 | 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' | Question: what is the ado den haag team freedom of movement in the 1st two thirds of the pitch? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, ... | what is the ado den haag team freedom of movement in the 1st two thirds of the pitch? |
european_football_2 | 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' | Question: what is the football player francois affolter header's finishing rate on 18/09/2014? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, d... | what is the football player francois affolter header's finishing rate on 18/09/2014? |
european_football_2 | 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' | Question: what is the overall rating of the football player gabriel tamas in year 2011? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribblin... | what is the overall rating of the football player gabriel tamas in year 2011? |
european_football_2 | 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' | Question: how many matches in the 2015/2016 season were held in scotland premier league? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbli... | how many matches in the 2015/2016 season were held in scotland premier league? |
european_football_2 | 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 | Question: what is the preferred foot when attacking of the youngest football player? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, ... | what is the preferred foot when attacking of the youngest football player? |
european_football_2 | 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) | Question: list all the football player with the highest potential score. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_... | list all the football player with the highest potential score. |
european_football_2 | 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' | Question: among all the players whose weight is under 130, how many of them preferred foot in attacking is left? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_p... | among all the players whose weight is under 130, how many of them preferred foot in attacking is left? |
european_football_2 | 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' | Question: list the football teams that has a chance creation passing class of risky. inidcate its short name only. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short... | list the football teams that has a chance creation passing class of risky. inidcate its short name only. |
european_football_2 | 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' | Question: what is the defensive work rate of the football player david wilson? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve,... | what is the defensive work rate of the football player david wilson? |
european_football_2 | 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 | Question: when is the birthday of the football player who has the highest overall rating? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbl... | when is the birthday of the football player who has the highest overall rating? |
european_football_2 | select t2.name from country as t1 inner join league as t2 on t1.id = t2.country_id where t1.name = 'netherlands' | Question: what is the name of the football league in the country of netherlands? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curv... | what is the name of the football league in the country of netherlands? |
european_football_2 | 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' | Question: calculate the average home team goal in the 2010/2011 season in the country of poland. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys,... | calculate the average home team goal in the 2010/2011 season in the country of poland. |
european_football_2 | 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... | Question: who has the highest average finishing rate between the highest and shortest football player? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, vo... | who has the highest average finishing rate between the highest and shortest football player? |
european_football_2 | select player_name from player where height > 180 | Question: please list player names which are higher than 180. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accura... | please list player names which are higher than 180. |
european_football_2 | select count(id) from player where strftime('%y', birthday) > '1990' | Question: how many players were born after 1990? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy, long_pass... | how many players were born after 1990? |
european_football_2 | select count(id) from player where weight > 170 and player_name like 'adam%' | Question: how many players whose first names are adam and weigh more than 170? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve,... | how many players whose first names are adam and weigh more than 170? |
european_football_2 | 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' | Question: which players had an overall rating of over 80 from 2008 to 2010? please list player names. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, vol... | which players had an overall rating of over 80 from 2008 to 2010? please list player names. |
european_football_2 | 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' | Question: what is aaron doran's potential score? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy, long_pass... | what is aaron doran's potential score? |
european_football_2 | 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' | Question: list out of players whose preferred foot is left. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy... | list out of players whose preferred foot is left. |
european_football_2 | 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' | Question: please list all team names which the speed class is fast. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_... | please list all team names which the speed class is fast. |
european_football_2 | 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' | Question: what is the passing class of clb team? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy, long_pass... | what is the passing class of clb team? |
european_football_2 | 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 | Question: which teams have build up play passing more than 70? please list their short names. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dr... | which teams have build up play passing more than 70? please list their short names. |
european_football_2 | 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' | Question: from 2010 to 2015, what was the average overall rating of players who are higher than 170? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, voll... | from 2010 to 2015, what was the average overall rating of players who are higher than 170? |
european_football_2 | select player_name from player order by height asc limit 1 | Question: which football player has the shortest height? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy, l... | which football player has the shortest height? |
european_football_2 | select t1.name from country as t1 inner join league as t2 on t1.id = t2.country_id where t2.name = 'italy serie a' | Question: which country is the league italy serie a from? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy, ... | which country is the league italy serie a from? |
european_football_2 | 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 | Question: 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. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, def... | 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. |
european_football_2 | 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' | Question: what is the average overall rating of the football player aaron doran? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curv... | what is the average overall rating of the football player aaron doran? |
european_football_2 | 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' | Question: how many matches were held in the league germany 1. bundesligafrom august to october 2008? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, voll... | how many matches were held in the league germany 1. bundesligafrom august to october 2008? |
european_football_2 | 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 | Question: list all the short name of the football team that had a home team goal of 10? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribblin... | list all the short name of the football team that had a home team goal of 10? |
european_football_2 | 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 | Question: list all the football player with the highest balance score and potential score of 61. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys,... | list all the football player with the highest balance score and potential score of 61. |
european_football_2 | 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... | Question: what is the difference of the average ball control score between abdou diallo and aaron appindangoye? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_pa... | what is the difference of the average ball control score between abdou diallo and aaron appindangoye? |
european_football_2 | select team_long_name from team where team_short_name = 'gen' | Question: what's the long name for the team gen? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy, long_pass... | what's the long name for the team gen? |
european_football_2 | select player_name from player where player_name in ('aaron lennon', 'abdelaziz barrada') order by birthday asc limit 1 | Question: which player is older, aaron lennon or abdelaziz barrada? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_... | which player is older, aaron lennon or abdelaziz barrada? |
european_football_2 | select player_name from player order by height desc limit 1 | Question: which player is the tallest? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy, long_passing, ball_... | which player is the tallest? |
european_football_2 | select count(player_api_id) from player_attributes where preferred_foot = 'left' and attacking_work_rate = 'low' | Question: 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? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossi... | 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? |
european_football_2 | select t1.name from country as t1 inner join league as t2 on t1.id = t2.country_id where t2.name = 'belgium jupiler league' | Question: which country is the belgium jupiler league from? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy... | which country is the belgium jupiler league from? |
european_football_2 | select t2.name from country as t1 inner join league as t2 on t1.id = t2.country_id where t1.name = 'germany' | Question: please list the leagues from germany. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy, long_passi... | please list the leagues from germany. |
european_football_2 | 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 | Question: which player has the strongest overall strength? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy,... | which player has the strongest overall strength? |
european_football_2 | 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' | Question: among the players born before the year 1986, how many of them would remain in his position and defense while the team attacked? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, ... | among the players born before the year 1986, how many of them would remain in his position and defense while the team attacked? |
european_football_2 | 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 | Question: which of these players performs the best in crossing actions, alexis, ariel borysiuk or arouna kone? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_pas... | which of these players performs the best in crossing actions, alexis, ariel borysiuk or arouna kone? |
european_football_2 | 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' | Question: what's the heading accuracy of ariel borysiuk? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy, l... | what's the heading accuracy of ariel borysiuk? |
european_football_2 | 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 | Question: among the players whose height is over 180, how many of them have a volley score of over 70? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, vo... | among the players whose height is over 180, how many of them have a volley score of over 70? |
european_football_2 | 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 | Question: please list the names of the players whose volley score and dribbling score are over 70. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volley... | please list the names of the players whose volley score and dribbling score are over 70. |
european_football_2 | 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' | Question: how many matches in the 2008/2009 season were held in belgium? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_... | how many matches in the 2008/2009 season were held in belgium? |
european_football_2 | 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 | Question: what is the long passing score of the oldest player? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accur... | what is the long passing score of the oldest player? |
european_football_2 | 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' | Question: how many matches were held in the belgium jupiler league in april, 2009? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, cu... | how many matches were held in the belgium jupiler league in april, 2009? |
european_football_2 | 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 | Question: which league had the most matches in the 2008/2009 season? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick... | which league had the most matches in the 2008/2009 season? |
european_football_2 | 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' | Question: what is the average overall rating of the players born before the year 1986? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling... | what is the average overall rating of the players born before the year 1986? |
european_football_2 | 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... | Question: how much higher in percentage is ariel borysiuk's overall rating than that of paulin puel? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, voll... | how much higher in percentage is ariel borysiuk's overall rating than that of paulin puel? |
european_football_2 | 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' | Question: how much is the average build up play speed of the heart of midlothian team? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling... | how much is the average build up play speed of the heart of midlothian team? |
european_football_2 | 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' | Question: calculate the average overall rating of pietro marino. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_acc... | calculate the average overall rating of pietro marino. |
european_football_2 | 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' | Question: what is aaron lennox's total crossing score? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy, lon... | what is aaron lennox's total crossing score? |
european_football_2 | 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 | Question: what is ajax's highest chance creation passing score and what is it classified as? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dri... | what is ajax's highest chance creation passing score and what is it classified as? |
european_football_2 | 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' | Question: which foot is preferred by abdou diallo? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy, long_pa... | which foot is preferred by abdou diallo? |
european_football_2 | select max(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 = 'dorlan pabon' | Question: what is the highest overall rating received by dorlan pabon? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_ki... | what is the highest overall rating received by dorlan pabon? |
european_football_2 | select cast(sum(t1.away_team_goal) as real) / count(t1.id) from 'match' as t1 inner join team as t2 on t1.away_team_api_id = t2.team_api_id inner join country as t3 on t1.country_id = t3.id where t2.team_long_name = 'parma' and t3.name = 'italy' | Question: what is the average number of goals made by parma as the away team while playing in italy? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, voll... | what is the average number of goals made by parma as the away team while playing in italy? |
european_football_2 | select t1.player_name from player as t1 inner join player_attributes as t2 on t1.player_api_id = t2.player_api_id where substr(t2.`date`, 1, 10) = '2016-06-23' and t2.overall_rating = 77 order by t1.birthday asc limit 1 | Question: for the players who had a 77 points overall rating on 2016/6/23, who was the oldest? give the name of the player. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accura... | for the players who had a 77 points overall rating on 2016/6/23, who was the oldest? give the name of the player. |
european_football_2 | select t2.overall_rating from player as t1 inner join player_attributes as t2 on t1.player_api_id = t2.player_api_id where substr(t2.`date`, 1, 10) = '2016-02-04' and t1.player_name = 'aaron mooy' | Question: what was the overall rating for aaron mooy on 2016/2/4? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_ac... | what was the overall rating for aaron mooy on 2016/2/4? |
european_football_2 | select t2.potential from player as t1 inner join player_attributes as t2 on t1.player_api_id = t2.player_api_id where substr(t2.`date`, 1, 10) = '2010-08-30' and t1.player_name = 'francesco parravicini' | Question: what was the potiential for francesco parravicini on 2010/8/30? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free... | what was the potiential for francesco parravicini on 2010/8/30? |
european_football_2 | select t2.attacking_work_rate from player as t1 inner join player_attributes as t2 on t1.player_api_id = t2.player_api_id where substr(t2.`date`, 1, 10) = '2015-05-01' and t1.player_name = 'francesco migliore' | Question: how was francesco migliore's attacking work rate on 2015/5/1? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_k... | how was francesco migliore's attacking work rate on 2015/5/1? |
european_football_2 | select t2.defensive_work_rate 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-02-22' and t1.player_name = 'kevin berigaud' | Question: tell the defensive work rate for kevin berigaud on 2013/2/22. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_k... | tell the defensive work rate for kevin berigaud on 2013/2/22. |
european_football_2 | select `date` from ( select t2.crossing, t2.`date` 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 = 'kevin constant' order by t2.crossing desc) order by date desc limit 1 | Question: when was the first time did kevin constant have his highest crossing score? give the date. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, voll... | when was the first time did kevin constant have his highest crossing score? give the date. |
european_football_2 | select t2.buildupplayspeedclass from team as t1 inner join team_attributes as t2 on t1.team_api_id = t2.team_api_id where t1.team_long_name = 'willem ii' and substr(t2.`date`, 1, 10) = '2011-02-22' | Question: what was the build up play speed class for 'willem ii' on 2011/2/22? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve,... | what was the build up play speed class for 'willem ii' on 2011/2/22? |
european_football_2 | select t2.buildupplaydribblingclass from team as t1 inner join team_attributes as t2 on t1.team_api_id = t2.team_api_id where t1.team_short_name = 'lei' and substr(t2.`date`, 1, 10) = '2015-09-10' | Question: how was the build up play dribbling class for 'lei' on 2015/9/10? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, fr... | how was the build up play dribbling class for 'lei' on 2015/9/10? |
european_football_2 | select t2.buildupplaypassingclass from team as t1 inner join team_attributes as t2 on t1.team_api_id = t2.team_api_id where t1.team_long_name = 'fc lorient' and substr(t2.`date`, 1, 10) = '2010-02-22' | Question: tell the build up play passing class for 'fc lorient' on 2010/2/22. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, ... | tell the build up play passing class for 'fc lorient' on 2010/2/22. |
european_football_2 | select 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 = 'pec zwolle' and substr(t2.`date`, 1, 10) = '2013-09-20' | Question: state the chance creation passing class for 'pec zwolle' on 2013/9/20. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curv... | state the chance creation passing class for 'pec zwolle' on 2013/9/20. |
european_football_2 | select t2.chancecreationcrossingclass from team as t1 inner join team_attributes as t2 on t1.team_api_id = t2.team_api_id where t1.team_long_name = 'hull city' and substr(t2.`date`, 1, 10) = '2010-02-22' | Question: what was the chance creation crossing class for 'hull city' on 2010/2/22? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, c... | what was the chance creation crossing class for 'hull city' on 2010/2/22? |
european_football_2 | select t2.chancecreationshootingclass 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 substr(t2.`date`, 1, 10) = '2015-09-10' | Question: for the team 'hannover 96', what was its defence aggression class on 2015/9/10? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbl... | for the team 'hannover 96', what was its defence aggression class on 2015/9/10? |
european_football_2 | 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' | Question: what was the average overall rating for marko arnautovic from 2007/2/22 to 2016/4/21? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, ... | what was the average overall rating for marko arnautovic from 2007/2/22 to 2016/4/21? |
european_football_2 | 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 playe... | Question: what percentage is landon donovan's overall rating higher than jordan bowery on 2013/7/12? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, voll... | what percentage is landon donovan's overall rating higher than jordan bowery on 2013/7/12? |
european_football_2 | select player_name from player order by height desc limit 5 | Question: list down 5 tallest players' name. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy, long_passing,... | list down 5 tallest players' name. |
european_football_2 | select player_api_id from player order by weight desc limit 10 | Question: what are the player api id of 10 heaviest players? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accurac... | what are the player api id of 10 heaviest players? |
european_football_2 | select player_name from player where cast((julianday('now') - julianday(birthday)) as real) / 365 >= 35 | Question: list down the name of players who are 35 years old and above. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_k... | list down the name of players who are 35 years old and above. |
european_football_2 | select sum(t2.home_team_goal) from player as t1 inner join match as t2 on t1.player_api_id = t2.away_player_9 where t1.player_name = 'aaron lennon' | Question: how many home team goal have been scored by aaron lennon? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_... | how many home team goal have been scored by aaron lennon? |
european_football_2 | select sum(t2.away_team_goal) from player as t1 inner join match as t2 on t1.player_api_id = t2.away_player_5 where t1.player_name in ('daan smith', 'filipe ferreira') | Question: sum up the away team goal scored by both daan smith and filipe ferreira. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, cu... | sum up the away team goal scored by both daan smith and filipe ferreira. |
european_football_2 | select sum(t2.home_team_goal) from player as t1 inner join match as t2 on t1.player_api_id = t2.away_player_1 where datetime(current_timestamp, 'localtime') - datetime(t1.birthday) < 31 | Question: calculate the total home team goal scored by players whose age are 30 years old and below. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, voll... | calculate the total home team goal scored by players whose age are 30 years old and below. |
european_football_2 | select distinct 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 10 | Question: state 10 names of the strongest players. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy, long_pa... | state 10 names of the strongest players. |
european_football_2 | select distinct 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.potential desc limit 1 | Question: what is the name of players with the highest potential? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_ac... | what is the name of players with the highest potential? |
european_football_2 | 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' | Question: who are the players that tend to be attacking when their mates were doing attack moves? list down their name. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, ... | who are the players that tend to be attacking when their mates were doing attack moves? list down their name. |
european_football_2 | 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.finishing = 1 order by t1.birthday asc limit 1 | Question: among the players with finishing rate of 1, pick the eldest player and state the player's name. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing,... | among the players with finishing rate of 1, pick the eldest player and state the player's name. |
european_football_2 | select t3.player_name from country as t1 inner join match as t2 on t1.id = t2.country_id inner join player as t3 on t2.home_player_1 = t3.player_api_id where t1.name = 'belgium' | Question: state the name of players who came from belgium. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy,... | state the name of players who came from belgium. |
european_football_2 | select distinct t4.name from player_attributes as t1 inner join player as t2 on t1.player_api_id = t2.player_api_id inner join match as t3 on t2.player_api_id = t3.home_player_8 inner join country as t4 on t3.country_id = t4.id where t1.vision > 89 | Question: locate players with vision scores of 90 and above, state the country of these players. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys,... | locate players with vision scores of 90 and above, state the country of these players. |
european_football_2 | select t1.name from country as t1 inner join match as t2 on t1.id = t2.country_id inner join player as t3 on t2.home_player_1 = t3.player_api_id group by t1.name order by avg(t3.weight) desc limit 1 | Question: which country's players have the heaviest average weights? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick... | which country's players have the heaviest average weights? |
european_football_2 | 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 = 'slow' | Question: list down the long name for slow speed class team. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accurac... | list down the long name for slow speed class team. |
european_football_2 | 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' | Question: what are the short name of team who played safe while creating chance of passing? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, drib... | what are the short name of team who played safe while creating chance of passing? |
european_football_2 | select cast(sum(t1.height) as real) / count(t1.id) from player as t1 inner join match as t2 on t1.id = t2.id inner join country as t3 on t2.country_id = t3.id where t3.name = 'italy' | Question: what is the average heights of italy players? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy, lo... | what is the average heights of italy players? |
european_football_2 | select player_name from player where height > 180 order by player_name limit 3 | Question: please provide the names of top three football players who are over 180 cm tall in alphabetical order. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_p... | please provide the names of top three football players who are over 180 cm tall in alphabetical order. |
european_football_2 | select count(id) from player where birthday > '1990' and player_name like 'aaron%' | Question: how many football players born after the 1990s have the first name 'aaron'? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling,... | how many football players born after the 1990s have the first name 'aaron'? |
european_football_2 | 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 | Question: what is the difference between players 6 and 23's jumping scores? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, fr... | what is the difference between players 6 and 23's jumping scores? |
european_football_2 | select id from player_attributes where preferred_foot = 'right' order by potential desc limit 3 | Question: please provide top three football players' ids who are among the lowest potential players and prefer to use the right foot when attacking. | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, ... | please provide top three football players' ids who are among the lowest potential players and prefer to use the right foot when attacking. |
european_football_2 | select count(t1.id) from player_attributes as t1 where t1.preferred_foot = 'left' and t1.crossing = ( select max(crossing) from player_attributes) | Question: how many players had the highest potential score for crossing that preferred to use their left foots while attacking? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_ac... | how many players had the highest potential score for crossing that preferred to use their left foots while attacking? |
european_football_2 | select cast(count(case when strength > 80 and stamina > 80 then id else null end) as real) * 100 / count(id) from player_attributes t | Question: what percentage of players have a strength and stamina score of more than 80? | Tables: Player_Attributes -> id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribblin... | what percentage of players have a strength and stamina score of more than 80? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.