Chinastark/bird_dataset huggingface dataset:
Database: soccer_2016
Question: What are the average extra runs given in the second innings of every match?
Evidence: second innings refers to Innings_No = 2; average extra runs = divide(sum(Extra_Runs), count(Innings_No)) when Innings_No = 2
SQL: SELECT AVG(Innings_No) FROM Extra_Runs WHERE Innings_No = 2
Database: soccer_2016
Question: Among the matches, what percentage have a winning margin above 100?
Evidence: winning margin above 100 refers to Win_Margin > 100; percentage = divide(count(Match_Id) when Win_Margin > 100, count(Match_Id)) as percentage
SQL: SELECT CAST(COUNT(CASE WHEN Win_Margin > 100 THEN 1 ELSE 0 END) AS REAL) * 100 / TOTAL(Match_Id) FROM `Match`
Database: soccer_2016
Question: List the name of the players born between 1970 and 1990 in descending order of age.
Evidence: name of the players refers to Player_Name; born between 1970 and 1990 refers to DOB between '1970-01-01' and '1990-12-31'
SQL: SELECT Player_Name FROM Player WHERE DOB BETWEEN '1970-01-01' AND '1990-12-31' ORDER BY DOB DESC
Database: soccer_2016
Question: Of the wickets taken in the third overs, how many are without the involvement of fielders?
Evidence: third overs refers to Over_Id = 3; without the involvement of fielders refers to Fielders = ''
SQL: SELECT SUM(CASE WHEN Fielders = '' THEN 1 ELSE 0 END) FROM Wicket_Taken WHERE Over_Id = 3
Database: soccer_2016
Question: From which country does the most umpires are from? How many of them are from the mentioned country?

Evidence: which country refers to Country_Id; most umpires refers to max(count(Umpire_Id))
SQL: SELECT T2.Country_Id, COUNT(T1.Umpire_Id) FROM Umpire AS T1 INNER JOIN Country AS T2 ON T2.Country_Id = T1.Umpire_Country GROUP BY T2.Country_Id ORDER BY COUNT(T1.Umpire_Id) DESC LIMIT 1
Database: soccer_2016
Question: Among the players, what percentage are both captain and keeper?
Evidence: captain and keeper refers to Role_Desc = 'CaptainKeeper'; percentage = divide(count(Player_Id) when Role_Desc = 'CaptainKeeper', count(Player_Id)) as percentage
SQL: SELECT CAST(SUM(CASE WHEN T2.Role_Desc = 'CaptainKeeper' THEN 1 ELSE 0 END) AS REAL) * 100 / TOTAL(T1.Player_Id) FROM Player_Match AS T1 INNER JOIN Rolee AS T2 ON T1.Role_Id = T2.Role_Id
Database: soccer_2016
Question: In the players, how many were out by hit wicket?
Evidence: out by hit wicket refers to Out_Name = 'hit wicket'
SQL: SELECT Player_Out FROM Wicket_Taken AS T1 INNER JOIN Out_Type AS T2 ON T1.Kind_Out = T2.Out_Id WHERE Out_Name = 'hit wicket'
Database: soccer_2016
Question: On average, how many players from each country bat with their right hand?
Evidence: bat with their right hand refers to Batting_hand = 'Right-hand bat'; average = divide(count(Player_Id) when Batting_hand = 'Right-hand bat', count(Country_Name))
SQL: SELECT CAST(SUM(CASE WHEN T1.Batting_hand = 'Right-hand bat' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.Country_Name) FROM Batting_Style AS T1 INNER JOIN Player AS T2 ON T1.Batting_id = T2.Batting_hand
Database: soccer_2016
Question: What percentage of players have Legbreak skill?
Evidence: Legbreak skill refers to Bowling_skill = 'Legbreak' ; percentage = divide(sum(Player_Id) when Bowling_skill = 'Legbreak', count(Player_Id)) as percentage
SQL: SELECT CAST(SUM(CASE WHEN T2.Bowling_skill = ' Legbreak' THEN 1 ELSE 0 END) AS REAL) * 100 / TOTAL(T1.Player_Id) FROM Player AS T1 INNER JOIN Bowling_Style AS T2 ON T1.Bowling_skill = T2.Bowling_Id
Database: soccer_2016
Question: In the matches where the winning margin is less than fifty, how many teams won by wicket?
Evidence: winning margin is less than fifty refers to Win_Margin < 50; won by wicket refers to Win_Type = 'wickets'
SQL: SELECT COUNT(T2.Win_Id) FROM `Match` AS T1 INNER JOIN Win_By AS T2 ON T1.Win_Type = T2.Win_Id WHERE T2.Win_Type = 'wickets' AND T1.Win_Margin < 50
Database: soccer_2016
Question: In how many venues did team 2 win the toss and lose the match?
Evidence: team 2 win the toss refers to Toss_Winner = Team_2 ; lose the match refers to Match_Winner = Team_1
SQL: SELECT SUM(CASE WHEN T1.Team_2 = T1.Match_Winner THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id WHERE T1.Team_1 = T1.Toss_Winner
Database: soccer_2016
Question: Which player became the man of the series in the year 2012? Give the name and country of this player.
Evidence: year 2012 refers to Season_Year = 2012; name of player refers to Player_Name.; country of this player refers to Country_Name
SQL: SELECT T2.Player_Name, T3.Country_Name FROM Season AS T1 INNER JOIN Player AS T2 ON T1.Man_of_the_Series = T2.Player_Id INNER JOIN Country AS T3 ON T2.Country_Name = T3.Country_Id WHERE T1.Season_Year = 2012
Database: soccer_2016
Question: Give the name of the venue where the most number of matches are held.
Evidence: name of the venue refers to Venue_Name; most number of matches refers to max(count(Venue_Id))
SQL: SELECT T2.Venue_Name FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id GROUP BY T2.Venue_Name ORDER BY COUNT(T2.Venue_Id) DESC LIMIT 1
Database: soccer_2016
Question: Which city hosted the least number of no-result matches?
Evidence: city refers to City_Name; no-result matches refers to Win_type = 'NoResult'; least number refers to min(count(Win_type = 'NoResult'))
SQL: SELECT T4.City_Name FROM `Match` AS T1 INNER JOIN Win_By AS T2 ON T1.Win_Type = T2.Win_Id INNER JOIN Venue AS T3 ON T1.Venue_Id = T3.Venue_Id INNER JOIN City AS T4 ON T3.City_Id = T4.City_Id WHERE T2.Win_Type = 'NO Result' GROUP BY T4.City_Id ORDER BY COUNT(T2.Win_Type) ASC LIMIT 1
Database: soccer_2016
Question: Write the name of the player who was the man of the series more than one time.
Evidence: name of the player refers to Player_Name; man of the series more than one time refers to count(Man_of_the_Series) > 1
SQL: SELECT T2.Player_Name FROM Season AS T1 INNER JOIN Player AS T2 ON T1.Man_of_the_Series = T2.Player_Id WHERE T1.Man_of_the_Series > 1
Database: soccer_2016
Question: List the name and country of the players who got more than average catches in ascending order of the number of catches.
Evidence: name and country of the players refers to Player_Name and Country_Name; catches refers to Out_name = 'caught'; average catches refers to divide(count(Player_ID) when Out_name = 'caught', sum(Player_ID))
SQL: SELECT T1.Player_Name, T4.Country_Name FROM Player AS T1 INNER JOIN Wicket_Taken AS T2 ON T1.Player_Id = T2.Fielders INNER JOIN Out_Type AS T3 ON T2.Kind_Out = T3.Out_Id INNER JOIN Country AS T4 ON T1.Country_Name = T4.Country_Id GROUP BY T1.Player_Name ORDER BY COUNT(T3.Out_Name) ASC
Database: soccer_2016
Question: Of the matches that were won by runs by team 1, what percentage have team 1 won the toss and decided to field?
Evidence: won by runs refers to Win_Type = 'runs'; won the toss and decided to field refers to Toss_Winner and Toss_Name = 'field'; percentage = divide(count(Team_1) when Match_Winner = Team_1 and Toss_Winner = Team_1, count(Team_1)) as percentage
SQL: SELECT CAST(COUNT(CASE WHEN T1.Team_1 = T1.Match_Winner = T1.Toss_Winner THEN 1 ELSE 0 END) AS REAL) * 100 / TOTAL(T1.Team_1) FROM `Match` AS T1 INNER JOIN Win_By AS T2 ON T1.Win_Type = T2.Win_Id INNER JOIN Toss_Decision AS T3 ON T1.Toss_Decide = T3.Toss_Id WHERE T3.Toss_Name = 'field' AND T2.Win_Type = 'runs'
Database: soccer_2016
Question: What is the difference in the average number of players out by lbw and runout in the matches?
Evidence: out by lbw refers to Out_Id = 4; runout refers to Out_Id = 3; average out by lbw refers to  avg(Player_Out when Out_Id = 4); average out by runout refers to  avg(Player_Out when Out_Id = 3)
SQL: SELECT AVG(T1.Player_Out) FROM Wicket_Taken AS T1 INNER JOIN Out_Type AS T2 ON T1.Kind_Out = T2.Out_Id WHERE T2.Out_Name = 'lbw'
Database: soccer_2016
Question: Identify by their ID all the overs in which the player with ID 7 was on strike.
Evidence: Identify by their ID all the overs refers to Over_Id; player with ID 7 was on strike refers to Striker = 7
SQL: SELECT DISTINCT Over_Id FROM Ball_by_Ball WHERE Striker = 7
Database: soccer_2016
Question: How many first teams chose to bat after winning the toss?
Evidence: first teams refers to Team_1; chose to bat after winning the toss refers to Toss_Winner and Toss_Decide = 2
SQL: SELECT COUNT(Team_1) FROM `Match` WHERE Team_1 = Toss_Winner AND Toss_Decide = 2
Database: soccer_2016
Question: How many games were played in March 2010?
Evidence: were played in March 2010 refers to Match_Date = '2010-03%'
SQL: SELECT SUM(CASE WHEN Match_Date LIKE '2010-03%' THEN 1 ELSE 0 END) FROM `Match`
Database: soccer_2016
Question: How many players are older than Gurkeerat Singh player?
Evidence: older than Gurkeerat Singh player refers to DOB ! = 'Gurkeerat Singh' and DOB < '1990-06-29'
SQL: SELECT SUM(CASE WHEN DOB < '1990-06-29' THEN 1 ELSE 0 END) FROM Player WHERE Player_Name != 'Gurkeerat Singh'
Database: soccer_2016
Question: How many times has SR Watson been named 'Man of the Match'?
SQL: SELECT SUM(CASE WHEN T2.Player_Name = 'SR Watson' THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Player AS T2 ON T1.Man_of_the_Match = T2.Player_Id
Database: soccer_2016
Question: Indicate the name of the most versatile players of the Delhi Daredevils.
Evidence: if a player has multiple roles in a match, it means this player is versatile; name refers to Player_Name; most versatile player refers to MAX(COUNT(Role_id)); Delhi Daredevils refers to Team_Name = 'Delhi Daredevils'
SQL: SELECT T3.Player_Name FROM Player_Match AS T1 INNER JOIN Team AS T2 ON T1.Team_Id = T2.Team_Id INNER JOIN Player AS T3 ON T1.Player_Id = T3.Player_Id WHERE T2.Team_Name = 'Delhi Daredevils' GROUP BY T3.Player_Name ORDER BY COUNT(T1.Role_Id) DESC LIMIT 1
Database: soccer_2016
Question: What is the name of the player who has been chosen the most times for 'Man of the Series'?
Evidence: name of the player refers to Player_Name; most times for 'Man of the Series' refers to max(count(Man_of_the_Match))
SQL: SELECT T3.Player_Name FROM Season AS T1 INNER JOIN Match AS T2 ON T1.Man_of_the_Series = T2.Man_of_the_Match INNER JOIN Player AS T3 ON T2.Man_of_the_Match = T3.Player_Id GROUP BY T3.Player_Name ORDER BY COUNT(T1.Man_of_the_Series) DESC LIMIT 1
Database: soccer_2016
Question: In what year did SP Narine win the Orange Cap?
Evidence: year refers to Season_Year
SQL: SELECT T4.Season_Year, T4.Orange_Cap FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Match AS T3 ON T2.Match_Id = T3.Match_Id INNER JOIN Season AS T4 ON T3.Season_Id = T4.Season_Id WHERE T1.Player_Name = 'SP Narine' GROUP BY T4.Season_Year, T4.Orange_Cap
Database: soccer_2016
Question: Which teams have had a player awarded the Purple Cap and another with the Orange Cap in the same season?
SQL: SELECT T5.Team_Name, T1.Orange_Cap, T1.Purple_Cap FROM Season AS T1 INNER JOIN Match AS T2 ON T1.Season_Id = T2.Season_Id INNER JOIN Player_Match AS T3 ON T2.Match_Id = T3.Match_Id INNER JOIN Player AS T4 ON T3.Player_Id = T4.Player_Id INNER JOIN Team AS T5 ON T3.Team_Id = T5.Team_Id GROUP BY T5.Team_Name, T1.Orange_Cap, T1.Purple_Cap
Database: soccer_2016
Question: List all Zimbabwean players.
Evidence: Zimbabwean refers to Country_Name = 'Zimbabwea'; players refers to Player_Name
SQL: SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_Id WHERE T2.Country_Name = 'Zimbabwea'
Database: soccer_2016
Question: How many players bat with their left hands?
Evidence: bat with their left hands refers to Batting_hand = 'Left-hand bat'
SQL: SELECT SUM(CASE WHEN T2.Batting_hand = 'Left-hand bat' THEN 1 ELSE 0 END) FROM Player AS T1 INNER JOIN Batting_Style AS T2 ON T1.Batting_hand = T2.Batting_Id
Database: soccer_2016
Question: How many games were not won by runs?
Evidence: not won by runs refers to Win_Type ! = 'runs'
SQL: SELECT SUM(CASE WHEN T2.Win_Type != 'runs' THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Win_By AS T2 ON T1.Win_Type = T2.Win_Id
Database: soccer_2016
Question: List the name of all New Zealand umpires.
Evidence: New Zealand umpires refers to Country_Name = 'New Zealand'; name of umpires refers to Umpire_Name
SQL: SELECT T1.Umpire_Name FROM Umpire AS T1 INNER JOIN Country AS T2 ON T1.Umpire_Country = T2.Country_Id WHERE T2.Country_Name = 'New Zealand'
Database: soccer_2016
Question: In which country do most players have the 'slow left-arm chinaman' bowling style?
Evidence: 'slow left-arm chinaman' bowling style refers to Bowling_skill = 'Slow left-arm chinaman'; most players  refers to max(count(Country_Id))
SQL: SELECT T3.Country_Name FROM Bowling_Style AS T1 INNER JOIN Player AS T2 ON T1.Bowling_Id = T2.Bowling_skill INNER JOIN Country AS T3 ON T2.Country_Name = T3.Country_Id WHERE T1.Bowling_skill = 'Slow left-arm chinaman'
Database: soccer_2016
Question: In which venue did Kochi Tuskers Kerala play most of their matches?
Evidence: Kochi Tuskers Kerala refers to Team_Name = 'Kochi Tuskers Kerala'; most of their matches refers to max(Venue_Id)
SQL: SELECT T1.Venue_Name FROM Venue AS T1 INNER JOIN Match AS T2 ON T1.Venue_Id = T2.Venue_Id INNER JOIN Team AS T3 ON T2.Team_1 = T3.Team_Id WHERE T3.Team_Name = 'Kochi Tuskers Kerala' GROUP BY T1.Venue_Name
Database: soccer_2016
Question: In how many games in which the batting team was the Delhi Daredevils were no runs scored?
Evidence: batting team was the Delhi Daredevils refers to Team_Name = 'Delhi Daredevils' and Team_1 = Team_Id where Team_Batting = 1 or Team_2 = Team_Id where Team_Batting = 2; no runs scored refers to Runs_Scored = 0
SQL: SELECT COUNT(T1.Runs_Scored) FROM Batsman_Scored AS T1 INNER JOIN Ball_by_Ball AS T2 ON T1.Match_Id = T2.Match_Id INNER JOIN Match AS T3 ON T2.Match_Id = T3.Match_Id INNER JOIN Team AS T4 ON T3.Team_1 = T4.Team_Id WHERE T2.Team_Batting = 1 OR T2.Team_Batting = 2 AND T4.Team_Name = 'Delhi Daredevils'
Database: soccer_2016
Question: In what percentage of games played at the Dr DY Patil Sports Academy venue did the winning team win by a margin of less than 10?
Evidence: Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage
SQL: SELECT CAST(COUNT(CASE WHEN T2.Win_Margin < 10 THEN 1 ELSE 0 END) AS REAL) * 100 / TOTAL(T1.Venue_Id) FROM Venue AS T1 INNER JOIN Match AS T2 ON T1.Venue_Id = T2.Venue_Id WHERE T1.Venue_Name = 'Dr DY Patil Sports Academy'
Database: soccer_2016
Question: What is the average number of extra runs made as noballs?
Evidence: noballs refers to Extra_Name = 'noballs' ; average number = divide(sum(Extra_Runs), count(Extra_Runs))
SQL: SELECT AVG(T1.Extra_Runs) FROM Extra_Runs AS T1 INNER JOIN Extra_Type AS T2 ON T1.Extra_Type_Id = T2.Extra_Id WHERE T2.Extra_Name = 'noballs'
Database: soccer_2016
Question: List the player's ID of the top five players, by descending order, in terms of bowling skill.
Evidence: player's ID refers to Player_Id
SQL: SELECT Player_Id FROM Player ORDER BY Bowling_skill DESC LIMIT 5
Database: soccer_2016
Question: How many players were born before 10/16/1975, and have a bowling skill of less than 3?
Evidence: born before 10/16/1975 refers to DOB < 1975-10-16; bowling skill of less than 3 refers to Bowling_skill < 3
SQL: SELECT COUNT(*) FROM Player WHERE DOB < '1975-10-16' AND Bowling_skill < 3
Database: soccer_2016
Question: What is the name of the youngest player?
Evidence: name refers to Player_Name; youngest player refers to max(DOB)
SQL: SELECT Player_Name FROM Player ORDER BY DOB DESC LIMIT 1
Database: soccer_2016
Question: Tally the player IDs of "Man of the Series" awardees for the seasons from 2011 to 2015.
Evidence: seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015
SQL: SELECT Man_of_the_Series FROM Season WHERE 2011 < Season_Year < 2015
Database: soccer_2016
Question: What is the total number of runs scored by the batsmen during the 2nd inning of the match ID 335988?
Evidence: number of runs refers to Runs_Scored; 2nd inning refers to Innings_No = 2
SQL: SELECT SUM(Runs_Scored) FROM Batsman_Scored WHERE Match_Id = 335988 AND Innings_No = 2
Database: soccer_2016
Question: Between match nos. 335989 and 337000, how many times did a batsman score more than 3 runs during over no. 1, ball no. 1, and inning no. 1 of the matches?
Evidence: Between match no. 335989 and 337000 refers to 335989 < Match_Id < 337000; batsman score more than 3 runs during over no. 1, ball no. 1, and inning no. 1 of the matches refers to Runs_Scored > 3 and  Over_Id = 1 and Ball_Id = 1 and Innings_No = 1
SQL: SELECT SUM(CASE WHEN Runs_Scored > 3 THEN 1 ELSE 0 END) FROM Batsman_Scored WHERE 335989 < Match_Id < 337000 AND Innings_No = 1 AND Over_Id = 1 AND Ball_Id = 1
Database: soccer_2016
Question: Give me the match ID and date of the matches that were held in Kingsmead for three consecutive days.
Evidence: date of the matches refers to Match_Date; held in Kingsmead refers to Venue_Name = 'Kingsmead'
SQL: SELECT T1.Match_Id, T1.Match_Date FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id WHERE T2.Venue_Name = 'Kingsmead'
Database: soccer_2016
Question: How many times did the matches were held in MA Chidambaram Stadium from 5/9/2009 to 8/8/2011?
Evidence: MA Chidambaram Stadium refers to Venue_Name = 'MA Chidambaram Stadium' ; from 5/9/2009 to 8/8/2011 refers to Match_Date between '2009-05-09' and '2011-08-08'
SQL: SELECT SUM(CASE WHEN Venue_Name = 'MA Chidambaram Stadium' THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id WHERE Match_Date BETWEEN '2009-05-09' AND '2011-08-08'
Database: soccer_2016
Question: Where was the ID 336005 match held? Please give me the venue and the city.
Evidence: ID 336005 match refers to Match_Id = '336005'; venue refers to Venue_Name; city refers to City_Name
SQL: SELECT T2.Venue_Name, T3.City_Name FROM `Match` AS T1 INNER JOIN Venue AS T2 ON T1.Venue_Id = T2.Venue_Id INNER JOIN City AS T3 ON T2.City_Id = T3.City_Id WHERE T1.Match_Id = '336005'
Database: soccer_2016
Question: Which team wins the toss during the match ID 336011, and can you tell me whether they decided to bat or field?
Evidence: wins the toss refers to Toss_Winner; whether they decided to bat or field refers to Toss_Name
SQL: SELECT T2.Toss_Name, T1.Toss_Decide, T1.Toss_Winner FROM `Match` AS T1 INNER JOIN Toss_Decision AS T2 ON T1.Toss_Decide = T2.Toss_Id WHERE T1.Match_Id = '336011'
Database: soccer_2016
Question: Among the South African players, how many were born before 4/11/1980?
Evidence: South African players refers to Country_Name = 'South Africa'; born before 4/11/1980 refers to DOB < '1980-4-11'
SQL: SELECT SUM(CASE WHEN T1.DOB < '1980-4-11' THEN 1 ELSE 0 END) FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_Id WHERE T2.Country_Name = 'South Africa'
Database: soccer_2016
Question: Write down the name of players whose bowling skill is Legbreak.
Evidence: name of players refers to Player_Name
SQL: SELECT T2.Player_Name FROM Bowling_Style AS T1 INNER JOIN Player AS T2 ON T1.Bowling_Id = T2.Bowling_skill WHERE T1.Bowling_skill = 'Legbreak'
Database: soccer_2016
Question: When and for what role did the youngest player appear in his first match?
Evidence: When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)
SQL: SELECT T1.Match_Date, T4.Role_Desc FROM `Match` AS T1 INNER JOIN Player_Match AS T2 ON T1.Match_Id = T2.Match_Id INNER JOIN Player AS T3 ON T2.Player_Id = T3.Player_Id INNER JOIN Rolee AS T4 ON T2.Role_Id = T4.Role_Id ORDER BY T3.DOB DESC LIMIT 1
Database: soccer_2016
Question: Tally the match IDs in which V Kohli is the "Man of the Match".
SQL: SELECT T1.Match_Id FROM `Match` AS T1 INNER JOIN Player AS T2 ON T1.Man_of_the_Match = T2.Player_Id WHERE T2.Player_Name = 'V Kohli'
Database: soccer_2016
Question: From 2011 to 2012, how many Australian players became the "Man of the Match"?
Evidence: From 2011 to 2012 refers to Match_Date between '2011%' and '2012%'; Australian players refers to Country_Name = 'Australia'
SQL: SELECT SUM(CASE WHEN T1.Match_Date BETWEEN '2011%' AND '2012%' THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Player AS T2 ON T2.Player_Id = T1.Man_of_the_Match INNER JOIN Country AS T3 ON T3.Country_Id = T2.Country_Name WHERE T3.Country_Name = 'Australia'
Database: soccer_2016
Question: Who among the players won both "Man of the Series" and "Orange Cap" in the same season?
Evidence: Who refers to Player_Name;
SQL: SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Season AS T2 ON T1.Player_Id = T2.Man_of_the_Series = T2.Orange_Cap
Database: soccer_2016
Question: When did the Sunrisers Hyderabad win their first match?
Evidence: Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; win their first match refers to Match_Winner and min(Match_Date)
SQL: SELECT T1.Match_Date FROM `Match` AS T1 INNER JOIN Team AS T2 ON T1.Match_Winner = T2.Team_Id WHERE T2.Team_Name = 'Sunrisers Hyderabad'
Database: soccer_2016
Question: Write down the player names and IDs of the English umpires.
Evidence: English umpires refers to Country_Name = 'England'
SQL: SELECT T1.Umpire_Name, T1.Umpire_Id FROM Umpire AS T1 INNER JOIN Country AS T2 ON T1.Umpire_Country = T2.Country_Id WHERE T2.Country_Name = 'England'
Database: soccer_2016
Question: Calculate the run rate at the end of 17 overs of the match ID 335987 on 4/18/2008.
Evidence: 4/18/2008 refers to Match_Date = 4/18/2008; end of 17 overs refers to count(Toss_Name = 'field' ) = 17; run rate = divide(sum(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id) when Toss_Name = 'field')
SQL: SELECT CAST(COUNT(CASE WHEN T1.Toss_Name = 'bat' THEN T3.Runs_Scored ELSE NULL END) AS REAL) / SUM(CASE WHEN T1.Toss_Name = 'field' THEN 1 ELSE 0 END) FROM Toss_Decision AS T1 INNER JOIN Match AS T2 ON T1.Toss_Id = T2.Toss_Decide INNER JOIN Batsman_Scored AS T3 ON T2.Match_Id = T3.Match_Id WHERE T2.Match_Id = 335987 AND T2.Match_Date = '2008-04-18' GROUP BY T3.Over_Id HAVING COUNT(T1.Toss_Name = 'field') = 17
Database: soccer_2016
Question: Compute the run rate at the end of 16 overs of the match ID 335999. Please include the name of the "Man of_the Match".
Evidence: end of 16 overs refers to count(Toss_Name = 'field' ) = 16; run rate = divide(count(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id)when Toss_Name = 'field'); name refers to Player_Name
SQL: SELECT CAST(COUNT(CASE WHEN T1.Toss_Name = 'bat' THEN T3.Runs_Scored ELSE NULL END) AS REAL) / SUM(CASE WHEN T1.Toss_Name = 'field' THEN 1 ELSE 0 END) FROM Toss_Decision AS T1 INNER JOIN Match AS T2 ON T1.Toss_Id = T2.Toss_Decide INNER JOIN Batsman_Scored AS T3 ON T2.Match_Id = T3.Match_Id WHERE T2.Match_Id = 335987 AND T2.Match_Date = '2008-04-18' GROUP BY T3.Over_Id HAVING COUNT(T1.Toss_Name = 'field') = 16
Database: soccer_2016
Question: What is the id of the team with the highest number of matches won?
Evidence: id of the team refers to Team_Id; highest number of matches won refers to max(count(Match_Winner))
SQL: SELECT Match_Id FROM `Match` ORDER BY Match_Winner DESC LIMIT 1
Database: soccer_2016
Question: Which year do the majority of the players were born?
Evidence: year refers to DOB; majority of the players refers to max(count(Player_Id))
SQL: SELECT DOB FROM Player GROUP BY DOB ORDER BY COUNT(DOB) DESC LIMIT 1
Database: soccer_2016
Question: What is the date of the match that has the highest wager on the final result of a game?
Evidence: date of the match refers to Match_Date; highest wager refers to max(Win_Margin)
SQL: SELECT Match_Date FROM `Match` ORDER BY Win_Margin DESC LIMIT 1
Database: soccer_2016
Question: Which season has the fewest number of matches?
Evidence: fewest number of matches refers to min(count(Match_Id))
SQL: SELECT Season_Id FROM `Match` GROUP BY Season_Id ORDER BY COUNT(Match_Id) LIMIT 1
Database: soccer_2016
Question: How many players have won at least 5 man of the match awards?
Evidence: won at least 5 man of the match awards refers to COUNT(Match_Id) > = 5
SQL: SELECT COUNT(Match_Id) FROM `Match` GROUP BY Man_of_the_Match HAVING COUNT(Match_Id) >= 5