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

Question: Find the average number of long-shot done by Ahmed Samir Farag.
Evidence: average number of long shot = DIVIDE(SUM(long_shots), COUNT(player_fifa_api_id));
SQL (SQLite): 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'
SQL (SQL Server): SELECT TRY_CAST(SUM(t2.long_shots) AS FLOAT) / COUNT(t2.[date]) AS _agg1 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'
SQL (Oracle): SELECT CAST(SUM(t2.long_shots) AS BINARY_DOUBLE) / COUNT(t2."DATE") FROM Player t1 INNER JOIN Player_Attributes t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Ahmed Samir Farag'

Question: List the top 10 players' names whose heights are above 180 in descending order of average heading accuracy.
Evidence: heights are above 180 refers to Player.height > 180; average heading accuracy = DIVIDE(SUM(heading_accuracy), COUNT(player_fifa_api_id));
SQL (SQLite): 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
SQL (SQL Server): SELECT MIN(t1.player_name) AS 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 TRY_CAST(SUM(t2.heading_accuracy) AS FLOAT) / COUNT(t2.[player_fifa_api_id]) DESC OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY
SQL (Oracle): SELECT MIN(t1.player_name) player_name FROM Player t1 INNER JOIN Player_Attributes 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 BINARY_DOUBLE) / COUNT(t2."PLAYER_FIFA_API_ID") DESC NULLS LAST FETCH FIRST 10 ROWS ONLY
Database: european_football_2

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.
Evidence: name of league refers to League.name; average goals by the home team is higher than the away team = AVG(home_team_goal) > AVG(away_team_goal); AVG(xx_goal) = SUM(xx_goal) / COUNT(DISTINCT Match.id); 2009/2010 season refers to season = '2009/2010'
SQL (SQLite): 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
SQL (SQL Server): 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 (TRY_CAST(SUM(t2.home_team_goal) AS FLOAT) / COUNT(DISTINCT t2.id)) - (TRY_CAST(SUM(t2.away_team_goal) AS FLOAT) / COUNT(DISTINCT t2.id)) > 0
SQL (Oracle): SELECT t1.name FROM League t1 INNER JOIN Match t2 ON t1.id = t2.league_id WHERE t2.season = '2009/2010' GROUP BY t1.name HAVING (CAST(SUM(t2.home_team_goal) AS BINARY_DOUBLE) / COUNT(DISTINCT t2.id)) - (CAST(SUM(t2.away_team_goal) AS BINARY_DOUBLE) / COUNT(DISTINCT t2.id)) > 0

Question: List the football players with a birthyear of 1970 and a birthmonth of October.
Evidence: players with a birthyear of 1970 and a birthmonth of October refers to substr(birthday,1,7) AS 'year-month',WHERE year = '1970' AND month = '10';
SQL (SQLite): SELECT player_name FROM Player WHERE SUBSTR(birthday, 1, 7) = '1970-10'
SQL (SQL Server): SELECT player_name FROM Player WHERE SUBSTRING(birthday, 1, 7) = '1970-10'
SQL (Oracle): SELECT player_name FROM Player WHERE SUBSTR(birthday, 1, 7) = '1970-10'

Question: What is the overall rating of the football player Gabriel Tamas in year 2011?
Evidence: in year 2011 refers to strftime('%Y', date) = '2011';
SQL (SQLite): 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 strftime('%Y', t2.date) = '2011'
SQL (SQL Server): 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 YEAR(t2.date) = '2011'
SQL (Oracle): SELECT t2.overall_rating FROM Player t1 INNER JOIN Player_Attributes t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Gabriel Tamas' AND SUBSTR(t2."DATE", 1, 4) = '2011'
Database: european_football_2

Question: Calculate the average home team goal in the 2010/2011 season in the country of Poland.
Evidence: average home team goal = AVG(home_team_goal)= SUM(home_team_goal) / COUNT(DISTINCT Match.id) WHERE name = 'Poland' and season = '2010/2011';
SQL (SQLite): 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'
SQL (SQL Server): SELECT TRY_CAST(SUM(t2.home_team_goal) AS FLOAT) / COUNT(t2.id) AS _agg1 FROM Country AS t1 INNER JOIN Match AS t2 ON t1.id = t2.country_id WHERE t1.name = 'Poland' AND t2.season = '2010/2011'
SQL (Oracle): SELECT CAST(SUM(t2.home_team_goal) AS BINARY_DOUBLE) / COUNT(t2.id) FROM Country t1 INNER JOIN Match t2 ON t1.id = t2.country_id WHERE t1.name = 'Poland' AND t2.season = '2010/2011'

Question: Who has the highest average finishing rate between the highest and shortest football player?
Evidence: finishing rate refers to finishing; highest average finishing rate = MAX(AVG(finishing)); highest football player refers to MAX(height); shortest football player refers to MIN(height);
SQL (SQLite): 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.player_api_id WHERE T1.height = ( SELECT MIN(height) FROM Player ) ) ORDER BY result DESC LIMIT 1
SQL (SQL Server): SELECT A FROM ( SELECT AVG(TRY_CAST(finishing AS FLOAT)) 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) AS _agg1 FROM Player ) UNION SELECT AVG(TRY_CAST(finishing AS FLOAT)) result, 'Min' A FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T1.height = ( SELECT MIN(height) AS _agg2 FROM Player ) ) _t1 ORDER BY result DESC OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY
SQL (Oracle): SELECT A FROM ( SELECT AVG(finishing) result, 'Max' A FROM Player T1 INNER JOIN Player_Attributes 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 T1 INNER JOIN Player_Attributes T2 ON T1.player_api_id = T2.player_api_id WHERE T1.height = ( SELECT MIN(height) FROM Player ) ) ORDER BY result DESC NULLS LAST FETCH FIRST 1 ROWS ONLY
Database: european_football_2

Question: From 2010 to 2015, what was the average overall rating of players who are higher than 170?
Evidence: from 2010 to 2015 refers to strftime('%Y', date) >= '2010' AND <= '2015'; average overall rating = SUM(t2.overall_rating)/ COUNT(t2.id); higher than 170 refers to Player.height > 170;
SQL (SQLite): SELECT CAST(SUM(t2.overall_rating) AS REAL) / COUNT(t2.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.height > 170 AND STRFTIME('%Y',t2.`date`) >= '2010' AND STRFTIME('%Y',t2.`date`) <= '2015'
SQL (SQL Server): SELECT TRY_CAST(SUM(t2.overall_rating) AS FLOAT) / COUNT(t2.id) AS _agg1 FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.height > 170 AND YEAR(t2.[date]) >= '2010' AND YEAR(t2.[date]) <= '2015'
SQL (Oracle): SELECT CAST(SUM(t2.overall_rating) AS BINARY_DOUBLE) / COUNT(t2.id) FROM Player t1 INNER JOIN Player_Attributes t2 ON t1.player_api_id = t2.player_api_id WHERE t1.height > 170 AND SUBSTR(t2."DATE", 1, 4) >= '2010' AND SUBSTR(t2."DATE", 1, 4) <= '2015'

Question: What is the difference of the average ball control score between Abdou Diallo and Aaron Appindangoye
?
Evidence: difference of the average ball control = SUBTRACT(AVG(ball_control WHERE player_name = 'Abdou Diallo'), AVG(ball_control WHERE player_name = 'Aaron Appindangoye')); AVG(ball_control WHERE player_name = 'XX XX') = SUM(CASE WHEN player_name = 'XX XX' THEN ball_control ELSE 0 END) / COUNT(CASE WHEN player_name = 'XX XX' THEN id ELSE NULL END)
SQL (SQLite): 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 Appindangoye' THEN t2.id ELSE NULL END) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id
SQL (SQL Server): SELECT TRY_CAST(SUM(CASE WHEN t1.player_name = 'Abdou Diallo' THEN t2.ball_control ELSE 0 END) AS FLOAT) / COUNT(CASE WHEN t1.player_name = 'Abdou Diallo' THEN t2.id ELSE NULL END) - TRY_CAST(SUM(CASE WHEN t1.player_name = 'Aaron Appindangoye' THEN t2.ball_control ELSE 0 END) AS FLOAT) / COUNT(CASE WHEN t1.player_name = 'Aaron Appindangoye' THEN t2.id ELSE NULL END) AS _agg1 FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id
SQL (Oracle): SELECT CAST(SUM(CASE WHEN t1.player_name = 'Abdou Diallo' THEN CAST(t2.ball_control AS BINARY_DOUBLE) ELSE 0.0 END) AS BINARY_DOUBLE) / COUNT(CASE WHEN t1.player_name = 'Abdou Diallo' THEN t2.id ELSE NULL END) - CAST(SUM(CASE WHEN t1.player_name = 'Aaron Appindangoye' THEN CAST(t2.ball_control AS BINARY_DOUBLE) ELSE 0.0 END) AS BINARY_DOUBLE) / COUNT(CASE WHEN t1.player_name = 'Aaron Appindangoye' THEN t2.id ELSE NULL END) FROM Player t1 INNER JOIN Player_Attributes t2 ON t1.player_api_id = t2.player_api_id
Database: european_football_2

Question: Which player is older, Aaron Lennon or Abdelaziz Barrada?
Evidence: The larger the birthday value, the younger the person is, and vice versa;
SQL (SQLite): SELECT player_name FROM Player WHERE player_name IN ('Aaron Lennon', 'Abdelaziz Barrada') ORDER BY birthday ASC LIMIT 1
SQL (SQL Server): SELECT player_name FROM Player WHERE player_name IN ('Aaron Lennon', 'Abdelaziz Barrada') ORDER BY birthday ASC OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY
SQL (Oracle): SELECT player_name FROM Player WHERE player_name IN ('Aaron Lennon', 'Abdelaziz Barrada') ORDER BY birthday ASC NULLS FIRST FETCH FIRST 1 ROWS ONLY

Question: Which player is the tallest?
Evidence: tallest player refers to MAX(height);
SQL (SQLite): SELECT player_name FROM Player ORDER BY height DESC LIMIT 1
SQL (SQL Server): SELECT player_name FROM Player ORDER BY height DESC OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY
SQL (Oracle): SELECT player_name FROM Player ORDER BY height DESC NULLS LAST FETCH FIRST 1 ROWS ONLY

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?
Evidence: preferred foot when attacking was the left refers to preferred_foot = 'left'; players who would remain in his position when the team attacked refers to attacking_work_rate = 'low';
SQL (SQLite): SELECT COUNT(player_api_id) FROM Player_Attributes WHERE preferred_foot = 'left' AND attacking_work_rate = 'low'
SQL (SQL Server): SELECT COUNT(player_api_id) AS _agg1 FROM Player_Attributes WHERE preferred_foot = 'left' AND attacking_work_rate = 'low'
SQL (Oracle): SELECT COUNT(player_api_id) FROM Player_Attributes WHERE preferred_foot = 'left' AND attacking_work_rate = 'low'

Question: Among the players born before the year 1986, how many of them would remain in his position and defense while the team attacked?
Evidence: players born before the year 1986 refers to strftime('%Y', birthday)<'1986'; players who would remain in his position and defense while the team attacked refers to defensive_work_rate = 'high'; Should consider DISTINCT in the final result;
SQL (SQLite): 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 STRFTIME('%Y',t1.birthday) < '1986' AND t2.defensive_work_rate = 'high'
SQL (SQL Server): SELECT COUNT(DISTINCT t1.player_name) AS _agg1 FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE YEAR(t1.birthday) < '1986' AND t2.defensive_work_rate = 'high'
SQL (Oracle): SELECT COUNT(DISTINCT t1.player_name) FROM Player t1 INNER JOIN Player_Attributes t2 ON t1.player_api_id = t2.player_api_id WHERE SUBSTR(t1.birthday, 1, 4) < '1986' AND t2.defensive_work_rate = 'high'
Database: european_football_2

Question: Please list the names of the players whose volley score and dribbling score are over 70.
Evidence: volley score are over 70 refers to volleys > 70; dribbling score refers to dribbling are over 70 refers to dribbling > 70;
SQL (SQLite): SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.volleys > 70 AND t2.dribbling > 70
SQL (SQL Server): SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.volleys > 70 AND t2.dribbling > 70
SQL (Oracle): SELECT DISTINCT t1.player_name FROM Player t1 INNER JOIN Player_Attributes t2 ON t1.player_api_id = t2.player_api_id WHERE t2.volleys > 70 AND t2.dribbling > 70

Question: How many matches were held in the Belgium Jupiler League in April, 2009?
Evidence: Belgium Jupiler League refers to League.name = 'Belgium Jupiler League'; in April, 2009 refers to SUBSTR(`date`, 1, 7);
SQL (SQLite): 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, 7) = '2009-04'
SQL (SQL Server): SELECT COUNT(t2.id) AS _agg1 FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t1.name = 'Belgium Jupiler League' AND SUBSTRING(t2.[date], 1, 7) = '2009-04'
SQL (Oracle): SELECT COUNT(t2.id) FROM League t1 INNER JOIN Match t2 ON t1.id = t2.league_id WHERE t1.name = 'Belgium Jupiler League' AND SUBSTR(t2."DATE", 1, 7) = '2009-04'

Question: Give the name of the league had the most matches in the 2008/2009 season?
Evidence: league that had the most matches in the 2008/2009 season refers to MAX(league_name WHERE season = '2008/2009');
SQL (SQLite): SELECT t1.name FROM League AS t1 JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2008/2009' GROUP BY t1.name HAVING COUNT(t2.id) = (SELECT MAX(match_count) FROM (SELECT COUNT(t2.id) AS match_count FROM Match AS t2 WHERE t2.season = '2008/2009' GROUP BY t2.league_id))
SQL (SQL Server): SELECT t1.name FROM League AS t1 JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2008/2009' GROUP BY t1.name HAVING COUNT(t2.id) = (SELECT MAX(match_count) AS _agg1 FROM (SELECT COUNT(t2.id) AS match_count FROM Match AS t2 WHERE t2.season = '2008/2009' GROUP BY t2.league_id) _t1)
SQL (Oracle): SELECT t1.name FROM League t1 JOIN Match t2 ON t1.id = t2.league_id WHERE t2.season = '2008/2009' GROUP BY t1.name HAVING COUNT(t2.id) = (SELECT MAX(match_count) FROM (SELECT COUNT(t2.id) match_count FROM Match t2 WHERE t2.season = '2008/2009' GROUP BY t2.league_id))
Database: european_football_2

Question: How much higher in percentage is Ariel Borysiuk's overall rating than that of Paulin Puel?
Evidence: how much higher in percentage = MULTIPLY(DIVIDE(SUBTRACT(overall_rating WHERE player_name = 'Ariel Borysiuk', overall_rating WHERE player_name = 'Paulin Puel'), overall_rating WHERE player_name = 'Paulin Puel'), 100);
SQL (SQLite): 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 ON t1.player_api_id = t2.player_api_id
SQL (SQL Server): 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) AS _agg1 FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id
SQL (Oracle): SELECT (SUM(CASE WHEN t1.player_name = 'Ariel Borysiuk' THEN CAST(t2.overall_rating AS BINARY_DOUBLE) ELSE 0.0 END) * 1.0 - SUM(CASE WHEN t1.player_name = 'Paulin Puel' THEN CAST(t2.overall_rating AS BINARY_DOUBLE) ELSE 0.0 END)) * 100 / SUM(CASE WHEN t1.player_name = 'Paulin Puel' THEN CAST(t2.overall_rating AS BINARY_DOUBLE) ELSE 0.0 END) FROM Player t1 INNER JOIN Player_Attributes t2 ON t1.player_api_id = t2.player_api_id

Question: Calculate the average overall rating of Pietro Marino.
Evidence: Pietro Marino refers to player_name = 'Pietro Marino'; average overall rating AVG(T1.overall_rating)
SQL (SQLite): SELECT CAST(SUM(t2.overall_rating) AS REAL) / COUNT(t2.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Pietro Marino'
SQL (SQL Server): SELECT TRY_CAST(SUM(t2.overall_rating) AS FLOAT) / COUNT(t2.id) AS _agg1 FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Pietro Marino'
SQL (Oracle): SELECT CAST(SUM(t2.overall_rating) AS BINARY_DOUBLE) / COUNT(t2.id) FROM Player t1 INNER JOIN Player_Attributes t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Pietro Marino'
Database: european_football_2

Question: What is Ajax's highest chance creation passing score and what is it classified as?
Evidence: Ajax's refers to team_long_name = 'Ajax'; chance creation passing score refers to MAX(chanceCreationPassing); classified refer to chanceCreationPassingClass
SQL (SQLite): 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
SQL (SQL Server): 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 OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY
SQL (Oracle): SELECT t2.chanceCreationPassing, t2.chanceCreationPassingClass FROM Team t1 INNER JOIN Team_Attributes t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'Ajax' ORDER BY t2.chanceCreationPassing DESC NULLS LAST FETCH FIRST 1 ROWS ONLY

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.
Evidence: 77 points overall rating refers to overall_rating = 77; on 2016/6/23 refers to date LIKE '2016-06-23%'; The larger the birthday value, the younger the person is, and vice versa;
SQL (SQLite): 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
SQL (SQL Server): SELECT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE SUBSTRING(t2.[date], 1, 10) = '2016-06-23' AND t2.overall_rating = 77 ORDER BY t1.birthday ASC OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY
SQL (Oracle): SELECT t1.player_name FROM Player t1 INNER JOIN Player_Attributes 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 NULLS FIRST FETCH FIRST 1 ROWS ONLY

Question: What was the overall rating for Aaron Mooy on 2016/2/4?
Evidence: Aaron Mooy refers to player_name = 'Aaron Mooy'; on 2016/2/4 refers to date LIKE '2016-02-04%';
SQL (SQLite): 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'
SQL (SQL Server): SELECT t2.overall_rating FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE SUBSTRING(t2.[date], 1, 10) = '2016-02-04' AND t1.player_name = 'Aaron Mooy'
SQL (Oracle): SELECT t2.overall_rating FROM Player t1 INNER JOIN Player_Attributes 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'
Database: european_football_2

Question: How was Francesco Migliore's attacking work rate on 2015/5/1?
Evidence: Francesco Migliore refers to player_name = 'Francesco Migliore'; on 2015/5/1 refers to date LIKE '2015-05-01%';
SQL (SQLite): 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 t2.`date` LIKE '2015-05-01%' AND t1.player_name = 'Francesco Migliore'
SQL (SQL Server): 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 t2.[date] LIKE '2015-05-01%' AND t1.player_name = 'Francesco Migliore'
SQL (Oracle): SELECT t2.attacking_work_rate FROM Player t1 INNER JOIN Player_Attributes t2 ON t1.player_api_id = t2.player_api_id WHERE t2."DATE" LIKE '2015-05-01%' AND t1.player_name = 'Francesco Migliore'

Question: When was the first time did Kevin Constant have his highest crossing score? Give the date.
Evidence: Kevin Constant refers to player_name = 'Kevin Constant'; highest crossing score refers to MAX(crossing)
SQL (SQLite): 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
SQL (SQL Server): 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') _t1 ORDER BY date DESC OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY
SQL (Oracle): SELECT "DATE" FROM ( SELECT t2.crossing, t2."DATE" FROM Player t1 INNER JOIN Player_Attributes 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 NULLS LAST FETCH FIRST 1 ROWS ONLY

Question: Tell the build Up play passing class for "FC Lorient" on 2010/2/22.
Evidence: "FC Lorient" refers to team_long_name = 'FC Lorient'; on 2010/2/22 refers to date LIKE '2010-02-22%';
SQL (SQLite): 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 t2.`date` LIKE '2010-02-22%'
SQL (SQL Server): 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 t2.[date] LIKE '2010-02-22%'
SQL (Oracle): SELECT t2.buildUpPlayPassingClass FROM Team t1 INNER JOIN Team_Attributes t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'FC Lorient' AND t2."DATE" LIKE '2010-02-22%'