1sf/bird-sql-train-with-schema huggingface dataset:
Database: soccer_2016
Tables: Batting_Style, Bowling_Style, City, Country, Extra_Type, Extra_Runs, Out_Type, Outcome, Player, Rolee, Season, Team, Toss_Decision, Umpire, Venue, Win_By, Match, Ball_by_Ball, Batsman_Scored, Player_Match, Wicket_Taken
Columns (table index, column name): -1, *, 0, Batting_Id, 0, Batting_hand, 1, Bowling_Id, 1, Bowling_skill, 2, City_Id, 2, City_Name, 2, Country_id, 3, Country_Id, 3, Country_Name, 4, Extra_Id, 4, Extra_Name, 5, Match_Id, 5, Over_Id, 5, Ball_Id, 5, Extra_Type_Id, 5, Extra_Runs, 5, Innings_No, 6, Out_Id, 6, Out_Name, 7, Outcome_Id, 7, Outcome_Type, 8, Player_Id, 8, Player_Name, 8, DOB, 8, Batting_hand, 8, Bowling_skill, 8, Country_Name, 9, Role_Id, 9, Role_Desc, 10, Season_Id, 10, Man_of_the_Series, 10, Orange_Cap, 10, Purple_Cap, 10, Season_Year, 11, Team_Id, 11, Team_Name, 12, Toss_Id, 12, Toss_Name, 13, Umpire_Id, 13, Umpire_Name, 13, Umpire_Country, 14, Venue_Id, 14, Venue_Name, 14, City_Id, 15, Win_Id, 15, Win_Type, 16, Match_Id, 16, Team_1, 16, Team_2, 16, Match_Date, 16, Season_Id, 16, Venue_Id, 16, Toss_Winner, 16, Toss_Decide, 16, Win_Type, 16, Win_Margin, 16, Outcome_type, 16, Match_Winner, 16, Man_of_the_Match, 17, Match_Id, 17, Over_Id, 17, Ball_Id, 17, Innings_No, 17, Team_Batting, 17, Team_Bowling, 17, Striker_Batting_Position, 17, Striker, 17, Non_Striker, 17, Bowler, 18, Match_Id, 18, Over_Id, 18, Ball_Id, 18, Runs_Scored, 18, Innings_No, 19, Match_Id, 19, Player_Id, 19, Role_Id, 19, Team_Id, 20, Match_Id, 20, Over_Id, 20, Ball_Id, 20, Player_Out, 20, Kind_Out, 20, Fielders, 20, Innings_No
Question: How many players got out by being stumped in the second innings of all matches?
Evidence: got out by being stumped refers to Out_Name = 'stumped'; the second innings refers to Innings_No = 2
SQL: SELECT SUM(CASE WHEN T1.Innings_No = 2 THEN 1 ELSE 0 END) FROM Wicket_Taken AS T1 INNER JOIN Out_Type AS T2 ON T2.Out_Id = T1.Kind_Out WHERE T2.Out_Name = 'stumped'
Database: soccer_2016
Tables: Batting_Style, Bowling_Style, City, Country, Extra_Type, Extra_Runs, Out_Type, Outcome, Player, Rolee, Season, Team, Toss_Decision, Umpire, Venue, Win_By, Match, Ball_by_Ball, Batsman_Scored, Player_Match, Wicket_Taken
Columns (table index, column name): -1, *, 0, Batting_Id, 0, Batting_hand, 1, Bowling_Id, 1, Bowling_skill, 2, City_Id, 2, City_Name, 2, Country_id, 3, Country_Id, 3, Country_Name, 4, Extra_Id, 4, Extra_Name, 5, Match_Id, 5, Over_Id, 5, Ball_Id, 5, Extra_Type_Id, 5, Extra_Runs, 5, Innings_No, 6, Out_Id, 6, Out_Name, 7, Outcome_Id, 7, Outcome_Type, 8, Player_Id, 8, Player_Name, 8, DOB, 8, Batting_hand, 8, Bowling_skill, 8, Country_Name, 9, Role_Id, 9, Role_Desc, 10, Season_Id, 10, Man_of_the_Series, 10, Orange_Cap, 10, Purple_Cap, 10, Season_Year, 11, Team_Id, 11, Team_Name, 12, Toss_Id, 12, Toss_Name, 13, Umpire_Id, 13, Umpire_Name, 13, Umpire_Country, 14, Venue_Id, 14, Venue_Name, 14, City_Id, 15, Win_Id, 15, Win_Type, 16, Match_Id, 16, Team_1, 16, Team_2, 16, Match_Date, 16, Season_Id, 16, Venue_Id, 16, Toss_Winner, 16, Toss_Decide, 16, Win_Type, 16, Win_Margin, 16, Outcome_type, 16, Match_Winner, 16, Man_of_the_Match, 17, Match_Id, 17, Over_Id, 17, Ball_Id, 17, Innings_No, 17, Team_Batting, 17, Team_Bowling, 17, Striker_Batting_Position, 17, Striker, 17, Non_Striker, 17, Bowler, 18, Match_Id, 18, Over_Id, 18, Ball_Id, 18, Runs_Scored, 18, Innings_No, 19, Match_Id, 19, Player_Id, 19, Role_Id, 19, Team_Id, 20, Match_Id, 20, Over_Id, 20, Ball_Id, 20, Player_Out, 20, Kind_Out, 20, Fielders, 20, Innings_No
Question: How many times did Yuvraj Singh receive the Man of the Match award?
Evidence: Yuvraj Singh refers to Player_Name = 'Yuvraj Singh'; receive the Man of the Match award refers to Player_Id = Man_of_the_Match
SQL: SELECT SUM(CASE WHEN T2.Player_Name = 'Yuvraj Singh' THEN 1 ELSE 0 END) FROM Match AS T1 INNER JOIN Player AS T2 ON T2.Player_Id = T1.Man_of_the_Match
Database: soccer_2016
Tables: Batting_Style, Bowling_Style, City, Country, Extra_Type, Extra_Runs, Out_Type, Outcome, Player, Rolee, Season, Team, Toss_Decision, Umpire, Venue, Win_By, Match, Ball_by_Ball, Batsman_Scored, Player_Match, Wicket_Taken
Columns (table index, column name): -1, *, 0, Batting_Id, 0, Batting_hand, 1, Bowling_Id, 1, Bowling_skill, 2, City_Id, 2, City_Name, 2, Country_id, 3, Country_Id, 3, Country_Name, 4, Extra_Id, 4, Extra_Name, 5, Match_Id, 5, Over_Id, 5, Ball_Id, 5, Extra_Type_Id, 5, Extra_Runs, 5, Innings_No, 6, Out_Id, 6, Out_Name, 7, Outcome_Id, 7, Outcome_Type, 8, Player_Id, 8, Player_Name, 8, DOB, 8, Batting_hand, 8, Bowling_skill, 8, Country_Name, 9, Role_Id, 9, Role_Desc, 10, Season_Id, 10, Man_of_the_Series, 10, Orange_Cap, 10, Purple_Cap, 10, Season_Year, 11, Team_Id, 11, Team_Name, 12, Toss_Id, 12, Toss_Name, 13, Umpire_Id, 13, Umpire_Name, 13, Umpire_Country, 14, Venue_Id, 14, Venue_Name, 14, City_Id, 15, Win_Id, 15, Win_Type, 16, Match_Id, 16, Team_1, 16, Team_2, 16, Match_Date, 16, Season_Id, 16, Venue_Id, 16, Toss_Winner, 16, Toss_Decide, 16, Win_Type, 16, Win_Margin, 16, Outcome_type, 16, Match_Winner, 16, Man_of_the_Match, 17, Match_Id, 17, Over_Id, 17, Ball_Id, 17, Innings_No, 17, Team_Batting, 17, Team_Bowling, 17, Striker_Batting_Position, 17, Striker, 17, Non_Striker, 17, Bowler, 18, Match_Id, 18, Over_Id, 18, Ball_Id, 18, Runs_Scored, 18, Innings_No, 19, Match_Id, 19, Player_Id, 19, Role_Id, 19, Team_Id, 20, Match_Id, 20, Over_Id, 20, Ball_Id, 20, Player_Out, 20, Kind_Out, 20, Fielders, 20, Innings_No
Question: Among the players who were born in 1977, provide names and birthdates of the players from England.
Evidence: born in 1977 refers to DOB LIKE '1977%'; name refers to Player_Name; birthdate refers to DOB; England refers to Country_Name = 'England'
SQL: SELECT T2.Player_Name, T2.DOB FROM Country AS T1 INNER JOIN Player AS T2 ON T2.Country_Name = T1.Country_Id WHERE T2.DOB LIKE '1977%' AND T1.Country_Name = 'England'
Database: soccer_2016
Tables: Batting_Style, Bowling_Style, City, Country, Extra_Type, Extra_Runs, Out_Type, Outcome, Player, Rolee, Season, Team, Toss_Decision, Umpire, Venue, Win_By, Match, Ball_by_Ball, Batsman_Scored, Player_Match, Wicket_Taken
Columns (table index, column name): -1, *, 0, Batting_Id, 0, Batting_hand, 1, Bowling_Id, 1, Bowling_skill, 2, City_Id, 2, City_Name, 2, Country_id, 3, Country_Id, 3, Country_Name, 4, Extra_Id, 4, Extra_Name, 5, Match_Id, 5, Over_Id, 5, Ball_Id, 5, Extra_Type_Id, 5, Extra_Runs, 5, Innings_No, 6, Out_Id, 6, Out_Name, 7, Outcome_Id, 7, Outcome_Type, 8, Player_Id, 8, Player_Name, 8, DOB, 8, Batting_hand, 8, Bowling_skill, 8, Country_Name, 9, Role_Id, 9, Role_Desc, 10, Season_Id, 10, Man_of_the_Series, 10, Orange_Cap, 10, Purple_Cap, 10, Season_Year, 11, Team_Id, 11, Team_Name, 12, Toss_Id, 12, Toss_Name, 13, Umpire_Id, 13, Umpire_Name, 13, Umpire_Country, 14, Venue_Id, 14, Venue_Name, 14, City_Id, 15, Win_Id, 15, Win_Type, 16, Match_Id, 16, Team_1, 16, Team_2, 16, Match_Date, 16, Season_Id, 16, Venue_Id, 16, Toss_Winner, 16, Toss_Decide, 16, Win_Type, 16, Win_Margin, 16, Outcome_type, 16, Match_Winner, 16, Man_of_the_Match, 17, Match_Id, 17, Over_Id, 17, Ball_Id, 17, Innings_No, 17, Team_Batting, 17, Team_Bowling, 17, Striker_Batting_Position, 17, Striker, 17, Non_Striker, 17, Bowler, 18, Match_Id, 18, Over_Id, 18, Ball_Id, 18, Runs_Scored, 18, Innings_No, 19, Match_Id, 19, Player_Id, 19, Role_Id, 19, Team_Id, 20, Match_Id, 20, Over_Id, 20, Ball_Id, 20, Player_Out, 20, Kind_Out, 20, Fielders, 20, Innings_No
Question: Who got the Man of the Series Award in 2010?
Evidence: player's name refers to Player_Name; got the Man of the Series Award refers to Man_of_the_Match = Player_Id; in 2010 refers to Season_Year = 2010
SQL: SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Match AS T2 ON T2.Man_of_the_Match = T1.Player_Id INNER JOIN Season AS T3 ON T3.Season_Id = T2.Season_Id WHERE T3.Season_Year = 2010 GROUP BY T1.Player_Name
Database: soccer_2016
Tables: Batting_Style, Bowling_Style, City, Country, Extra_Type, Extra_Runs, Out_Type, Outcome, Player, Rolee, Season, Team, Toss_Decision, Umpire, Venue, Win_By, Match, Ball_by_Ball, Batsman_Scored, Player_Match, Wicket_Taken
Columns (table index, column name): -1, *, 0, Batting_Id, 0, Batting_hand, 1, Bowling_Id, 1, Bowling_skill, 2, City_Id, 2, City_Name, 2, Country_id, 3, Country_Id, 3, Country_Name, 4, Extra_Id, 4, Extra_Name, 5, Match_Id, 5, Over_Id, 5, Ball_Id, 5, Extra_Type_Id, 5, Extra_Runs, 5, Innings_No, 6, Out_Id, 6, Out_Name, 7, Outcome_Id, 7, Outcome_Type, 8, Player_Id, 8, Player_Name, 8, DOB, 8, Batting_hand, 8, Bowling_skill, 8, Country_Name, 9, Role_Id, 9, Role_Desc, 10, Season_Id, 10, Man_of_the_Series, 10, Orange_Cap, 10, Purple_Cap, 10, Season_Year, 11, Team_Id, 11, Team_Name, 12, Toss_Id, 12, Toss_Name, 13, Umpire_Id, 13, Umpire_Name, 13, Umpire_Country, 14, Venue_Id, 14, Venue_Name, 14, City_Id, 15, Win_Id, 15, Win_Type, 16, Match_Id, 16, Team_1, 16, Team_2, 16, Match_Date, 16, Season_Id, 16, Venue_Id, 16, Toss_Winner, 16, Toss_Decide, 16, Win_Type, 16, Win_Margin, 16, Outcome_type, 16, Match_Winner, 16, Man_of_the_Match, 17, Match_Id, 17, Over_Id, 17, Ball_Id, 17, Innings_No, 17, Team_Batting, 17, Team_Bowling, 17, Striker_Batting_Position, 17, Striker, 17, Non_Striker, 17, Bowler, 18, Match_Id, 18, Over_Id, 18, Ball_Id, 18, Runs_Scored, 18, Innings_No, 19, Match_Id, 19, Player_Id, 19, Role_Id, 19, Team_Id, 20, Match_Id, 20, Over_Id, 20, Ball_Id, 20, Player_Out, 20, Kind_Out, 20, Fielders, 20, Innings_No
Question: Calculate the win rate of the team "Chennai Super Kings".
Evidence: team "Chennai Super Kings" refers to Team_Name = 'Chennai Super Kings'; win rate = divide(count(Match_Id where Match_Winner = 3), count(Match_Id)) * 100%
SQL: SELECT CAST(SUM(CASE WHEN T1.Match_Winner = 3 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Match_Id) FROM Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Team_1 INNER JOIN Team AS T3 ON T3.Team_Id = T1.Team_2 WHERE T2.Team_Name = 'Chennai Super Kings' OR T3.Team_Name = 'Chennai Super Kings'
Database: soccer_2016
Tables: Batting_Style, Bowling_Style, City, Country, Extra_Type, Extra_Runs, Out_Type, Outcome, Player, Rolee, Season, Team, Toss_Decision, Umpire, Venue, Win_By, Match, Ball_by_Ball, Batsman_Scored, Player_Match, Wicket_Taken
Columns (table index, column name): -1, *, 0, Batting_Id, 0, Batting_hand, 1, Bowling_Id, 1, Bowling_skill, 2, City_Id, 2, City_Name, 2, Country_id, 3, Country_Id, 3, Country_Name, 4, Extra_Id, 4, Extra_Name, 5, Match_Id, 5, Over_Id, 5, Ball_Id, 5, Extra_Type_Id, 5, Extra_Runs, 5, Innings_No, 6, Out_Id, 6, Out_Name, 7, Outcome_Id, 7, Outcome_Type, 8, Player_Id, 8, Player_Name, 8, DOB, 8, Batting_hand, 8, Bowling_skill, 8, Country_Name, 9, Role_Id, 9, Role_Desc, 10, Season_Id, 10, Man_of_the_Series, 10, Orange_Cap, 10, Purple_Cap, 10, Season_Year, 11, Team_Id, 11, Team_Name, 12, Toss_Id, 12, Toss_Name, 13, Umpire_Id, 13, Umpire_Name, 13, Umpire_Country, 14, Venue_Id, 14, Venue_Name, 14, City_Id, 15, Win_Id, 15, Win_Type, 16, Match_Id, 16, Team_1, 16, Team_2, 16, Match_Date, 16, Season_Id, 16, Venue_Id, 16, Toss_Winner, 16, Toss_Decide, 16, Win_Type, 16, Win_Margin, 16, Outcome_type, 16, Match_Winner, 16, Man_of_the_Match, 17, Match_Id, 17, Over_Id, 17, Ball_Id, 17, Innings_No, 17, Team_Batting, 17, Team_Bowling, 17, Striker_Batting_Position, 17, Striker, 17, Non_Striker, 17, Bowler, 18, Match_Id, 18, Over_Id, 18, Ball_Id, 18, Runs_Scored, 18, Innings_No, 19, Match_Id, 19, Player_Id, 19, Role_Id, 19, Team_Id, 20, Match_Id, 20, Over_Id, 20, Ball_Id, 20, Player_Out, 20, Kind_Out, 20, Fielders, 20, Innings_No
Question: List the names and countries of the players from Gujarat Lions who played in the match held on 11th April 2016.
Evidence: player's name refers to Player_Name; country refers to Country_Name; Gujarat Lions refers to Team_Name = 'Gujarat Lions'; on 11th April 2016 refers to Match_Date = '2016-04-11'
SQL: SELECT T4.Player_Name, T5.Country_Name FROM Player_Match AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Team_Id INNER JOIN Match AS T3 ON T3.Match_Id = T1.Match_Id INNER JOIN Player AS T4 ON T4.Player_Id = T1.Player_Id INNER JOIN Country AS T5 ON T5.Country_Id = T4.Country_Name WHERE T2.Team_Name = 'Gujarat Lions' AND T3.Match_Date = '2016-04-11'
Database: soccer_2016
Tables: Batting_Style, Bowling_Style, City, Country, Extra_Type, Extra_Runs, Out_Type, Outcome, Player, Rolee, Season, Team, Toss_Decision, Umpire, Venue, Win_By, Match, Ball_by_Ball, Batsman_Scored, Player_Match, Wicket_Taken
Columns (table index, column name): -1, *, 0, Batting_Id, 0, Batting_hand, 1, Bowling_Id, 1, Bowling_skill, 2, City_Id, 2, City_Name, 2, Country_id, 3, Country_Id, 3, Country_Name, 4, Extra_Id, 4, Extra_Name, 5, Match_Id, 5, Over_Id, 5, Ball_Id, 5, Extra_Type_Id, 5, Extra_Runs, 5, Innings_No, 6, Out_Id, 6, Out_Name, 7, Outcome_Id, 7, Outcome_Type, 8, Player_Id, 8, Player_Name, 8, DOB, 8, Batting_hand, 8, Bowling_skill, 8, Country_Name, 9, Role_Id, 9, Role_Desc, 10, Season_Id, 10, Man_of_the_Series, 10, Orange_Cap, 10, Purple_Cap, 10, Season_Year, 11, Team_Id, 11, Team_Name, 12, Toss_Id, 12, Toss_Name, 13, Umpire_Id, 13, Umpire_Name, 13, Umpire_Country, 14, Venue_Id, 14, Venue_Name, 14, City_Id, 15, Win_Id, 15, Win_Type, 16, Match_Id, 16, Team_1, 16, Team_2, 16, Match_Date, 16, Season_Id, 16, Venue_Id, 16, Toss_Winner, 16, Toss_Decide, 16, Win_Type, 16, Win_Margin, 16, Outcome_type, 16, Match_Winner, 16, Man_of_the_Match, 17, Match_Id, 17, Over_Id, 17, Ball_Id, 17, Innings_No, 17, Team_Batting, 17, Team_Bowling, 17, Striker_Batting_Position, 17, Striker, 17, Non_Striker, 17, Bowler, 18, Match_Id, 18, Over_Id, 18, Ball_Id, 18, Runs_Scored, 18, Innings_No, 19, Match_Id, 19, Player_Id, 19, Role_Id, 19, Team_Id, 20, Match_Id, 20, Over_Id, 20, Ball_Id, 20, Player_Out, 20, Kind_Out, 20, Fielders, 20, Innings_No
Question: Provide the names and birthdates of players who have left-arm fast skills.
Evidence: player's name refers to Player_Name; birthdate refers to DOB; have left-arm fast skills refers to Bowling_skill = 'Left-arm fast'
SQL: SELECT T1.Player_Name, T1.DOB FROM Player AS T1 INNER JOIN Bowling_Style AS T2 ON T2.Bowling_Id = T1.Bowling_skill WHERE T2.Bowling_skill = 'Left-arm fast'
Database: soccer_2016
Tables: Batting_Style, Bowling_Style, City, Country, Extra_Type, Extra_Runs, Out_Type, Outcome, Player, Rolee, Season, Team, Toss_Decision, Umpire, Venue, Win_By, Match, Ball_by_Ball, Batsman_Scored, Player_Match, Wicket_Taken
Columns (table index, column name): -1, *, 0, Batting_Id, 0, Batting_hand, 1, Bowling_Id, 1, Bowling_skill, 2, City_Id, 2, City_Name, 2, Country_id, 3, Country_Id, 3, Country_Name, 4, Extra_Id, 4, Extra_Name, 5, Match_Id, 5, Over_Id, 5, Ball_Id, 5, Extra_Type_Id, 5, Extra_Runs, 5, Innings_No, 6, Out_Id, 6, Out_Name, 7, Outcome_Id, 7, Outcome_Type, 8, Player_Id, 8, Player_Name, 8, DOB, 8, Batting_hand, 8, Bowling_skill, 8, Country_Name, 9, Role_Id, 9, Role_Desc, 10, Season_Id, 10, Man_of_the_Series, 10, Orange_Cap, 10, Purple_Cap, 10, Season_Year, 11, Team_Id, 11, Team_Name, 12, Toss_Id, 12, Toss_Name, 13, Umpire_Id, 13, Umpire_Name, 13, Umpire_Country, 14, Venue_Id, 14, Venue_Name, 14, City_Id, 15, Win_Id, 15, Win_Type, 16, Match_Id, 16, Team_1, 16, Team_2, 16, Match_Date, 16, Season_Id, 16, Venue_Id, 16, Toss_Winner, 16, Toss_Decide, 16, Win_Type, 16, Win_Margin, 16, Outcome_type, 16, Match_Winner, 16, Man_of_the_Match, 17, Match_Id, 17, Over_Id, 17, Ball_Id, 17, Innings_No, 17, Team_Batting, 17, Team_Bowling, 17, Striker_Batting_Position, 17, Striker, 17, Non_Striker, 17, Bowler, 18, Match_Id, 18, Over_Id, 18, Ball_Id, 18, Runs_Scored, 18, Innings_No, 19, Match_Id, 19, Player_Id, 19, Role_Id, 19, Team_Id, 20, Match_Id, 20, Over_Id, 20, Ball_Id, 20, Player_Out, 20, Kind_Out, 20, Fielders, 20, Innings_No
Question: Where did BR Doctrove come from?
Evidence: the country the umpire comes from refers to Country_Name; BR Doctrove refers to Umpire_Name = 'BR Doctrove'
SQL: SELECT T1.Country_Name FROM Country AS T1 INNER JOIN Umpire AS T2 ON T2.Umpire_Country = T1.Country_Id WHERE T2.Umpire_Name = 'BR Doctrove'
Database: soccer_2016
Tables: Batting_Style, Bowling_Style, City, Country, Extra_Type, Extra_Runs, Out_Type, Outcome, Player, Rolee, Season, Team, Toss_Decision, Umpire, Venue, Win_By, Match, Ball_by_Ball, Batsman_Scored, Player_Match, Wicket_Taken
Columns (table index, column name): -1, *, 0, Batting_Id, 0, Batting_hand, 1, Bowling_Id, 1, Bowling_skill, 2, City_Id, 2, City_Name, 2, Country_id, 3, Country_Id, 3, Country_Name, 4, Extra_Id, 4, Extra_Name, 5, Match_Id, 5, Over_Id, 5, Ball_Id, 5, Extra_Type_Id, 5, Extra_Runs, 5, Innings_No, 6, Out_Id, 6, Out_Name, 7, Outcome_Id, 7, Outcome_Type, 8, Player_Id, 8, Player_Name, 8, DOB, 8, Batting_hand, 8, Bowling_skill, 8, Country_Name, 9, Role_Id, 9, Role_Desc, 10, Season_Id, 10, Man_of_the_Series, 10, Orange_Cap, 10, Purple_Cap, 10, Season_Year, 11, Team_Id, 11, Team_Name, 12, Toss_Id, 12, Toss_Name, 13, Umpire_Id, 13, Umpire_Name, 13, Umpire_Country, 14, Venue_Id, 14, Venue_Name, 14, City_Id, 15, Win_Id, 15, Win_Type, 16, Match_Id, 16, Team_1, 16, Team_2, 16, Match_Date, 16, Season_Id, 16, Venue_Id, 16, Toss_Winner, 16, Toss_Decide, 16, Win_Type, 16, Win_Margin, 16, Outcome_type, 16, Match_Winner, 16, Man_of_the_Match, 17, Match_Id, 17, Over_Id, 17, Ball_Id, 17, Innings_No, 17, Team_Batting, 17, Team_Bowling, 17, Striker_Batting_Position, 17, Striker, 17, Non_Striker, 17, Bowler, 18, Match_Id, 18, Over_Id, 18, Ball_Id, 18, Runs_Scored, 18, Innings_No, 19, Match_Id, 19, Player_Id, 19, Role_Id, 19, Team_Id, 20, Match_Id, 20, Over_Id, 20, Ball_Id, 20, Player_Out, 20, Kind_Out, 20, Fielders, 20, Innings_No
Question: Who was the captain of the winning team in the match held on 1st June 2008?
Evidence: player's name refers to Player_Name; captain refers to Role_Desc = 'Captain'; the winning team refers to Match_Winner = Team_Id; on 1st June 2008 refers to Match_Date = '2008-06-01'
SQL: SELECT T3.Player_Name FROM Player_Match AS T1 INNER JOIN Match AS T2 ON T2.Match_Id = T1.Match_Id INNER JOIN Player AS T3 ON T3.Player_Id = T1.Player_Id INNER JOIN Rolee AS T4 ON T4.Role_Id = T1.Role_Id WHERE T2.Match_Date = '2008-06-01' AND T4.Role_Desc = 'Captain' AND T2.Match_Winner = T1.Team_Id
Database: soccer_2016
Tables: Batting_Style, Bowling_Style, City, Country, Extra_Type, Extra_Runs, Out_Type, Outcome, Player, Rolee, Season, Team, Toss_Decision, Umpire, Venue, Win_By, Match, Ball_by_Ball, Batsman_Scored, Player_Match, Wicket_Taken
Columns (table index, column name): -1, *, 0, Batting_Id, 0, Batting_hand, 1, Bowling_Id, 1, Bowling_skill, 2, City_Id, 2, City_Name, 2, Country_id, 3, Country_Id, 3, Country_Name, 4, Extra_Id, 4, Extra_Name, 5, Match_Id, 5, Over_Id, 5, Ball_Id, 5, Extra_Type_Id, 5, Extra_Runs, 5, Innings_No, 6, Out_Id, 6, Out_Name, 7, Outcome_Id, 7, Outcome_Type, 8, Player_Id, 8, Player_Name, 8, DOB, 8, Batting_hand, 8, Bowling_skill, 8, Country_Name, 9, Role_Id, 9, Role_Desc, 10, Season_Id, 10, Man_of_the_Series, 10, Orange_Cap, 10, Purple_Cap, 10, Season_Year, 11, Team_Id, 11, Team_Name, 12, Toss_Id, 12, Toss_Name, 13, Umpire_Id, 13, Umpire_Name, 13, Umpire_Country, 14, Venue_Id, 14, Venue_Name, 14, City_Id, 15, Win_Id, 15, Win_Type, 16, Match_Id, 16, Team_1, 16, Team_2, 16, Match_Date, 16, Season_Id, 16, Venue_Id, 16, Toss_Winner, 16, Toss_Decide, 16, Win_Type, 16, Win_Margin, 16, Outcome_type, 16, Match_Winner, 16, Man_of_the_Match, 17, Match_Id, 17, Over_Id, 17, Ball_Id, 17, Innings_No, 17, Team_Batting, 17, Team_Bowling, 17, Striker_Batting_Position, 17, Striker, 17, Non_Striker, 17, Bowler, 18, Match_Id, 18, Over_Id, 18, Ball_Id, 18, Runs_Scored, 18, Innings_No, 19, Match_Id, 19, Player_Id, 19, Role_Id, 19, Team_Id, 20, Match_Id, 20, Over_Id, 20, Ball_Id, 20, Player_Out, 20, Kind_Out, 20, Fielders, 20, Innings_No
Question: Which team did CK Kapugedera belong to? How many matches did he play?
Evidence: team refers to Team_Name; CK Kapugedera refers to Player_Name = 'CK Kapugedera'
SQL: SELECT T3.Team_Name, COUNT(T2.Match_Id) FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T2.Player_Id = T1.Player_Id INNER JOIN Team AS T3 ON T3.Team_Id = T2.Team_Id WHERE T1.Player_Name = 'CK Kapugedera'
Database: soccer_2016
Tables: Batting_Style, Bowling_Style, City, Country, Extra_Type, Extra_Runs, Out_Type, Outcome, Player, Rolee, Season, Team, Toss_Decision, Umpire, Venue, Win_By, Match, Ball_by_Ball, Batsman_Scored, Player_Match, Wicket_Taken
Columns (table index, column name): -1, *, 0, Batting_Id, 0, Batting_hand, 1, Bowling_Id, 1, Bowling_skill, 2, City_Id, 2, City_Name, 2, Country_id, 3, Country_Id, 3, Country_Name, 4, Extra_Id, 4, Extra_Name, 5, Match_Id, 5, Over_Id, 5, Ball_Id, 5, Extra_Type_Id, 5, Extra_Runs, 5, Innings_No, 6, Out_Id, 6, Out_Name, 7, Outcome_Id, 7, Outcome_Type, 8, Player_Id, 8, Player_Name, 8, DOB, 8, Batting_hand, 8, Bowling_skill, 8, Country_Name, 9, Role_Id, 9, Role_Desc, 10, Season_Id, 10, Man_of_the_Series, 10, Orange_Cap, 10, Purple_Cap, 10, Season_Year, 11, Team_Id, 11, Team_Name, 12, Toss_Id, 12, Toss_Name, 13, Umpire_Id, 13, Umpire_Name, 13, Umpire_Country, 14, Venue_Id, 14, Venue_Name, 14, City_Id, 15, Win_Id, 15, Win_Type, 16, Match_Id, 16, Team_1, 16, Team_2, 16, Match_Date, 16, Season_Id, 16, Venue_Id, 16, Toss_Winner, 16, Toss_Decide, 16, Win_Type, 16, Win_Margin, 16, Outcome_type, 16, Match_Winner, 16, Man_of_the_Match, 17, Match_Id, 17, Over_Id, 17, Ball_Id, 17, Innings_No, 17, Team_Batting, 17, Team_Bowling, 17, Striker_Batting_Position, 17, Striker, 17, Non_Striker, 17, Bowler, 18, Match_Id, 18, Over_Id, 18, Ball_Id, 18, Runs_Scored, 18, Innings_No, 19, Match_Id, 19, Player_Id, 19, Role_Id, 19, Team_Id, 20, Match_Id, 20, Over_Id, 20, Ball_Id, 20, Player_Out, 20, Kind_Out, 20, Fielders, 20, Innings_No
Question: Among the matches held in Mumbai, how many percent of them were held in Wankhede Stadium?
Evidence: Mumbai refers to City_Name = 'Mumbai'; Wankhede Stadium refers to Venue_Name = 'Wankhede Stadium'; percent = divide(count(Match_Id where Venue_Name = 'Wankhede Stadium'), count(Match_Id)) * 100% where City_Name = 'Mumbai'
SQL: SELECT CAST(SUM(CASE WHEN T2.Venue_Name = 'Wankhede Stadium' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.Match_Id) FROM City AS T1 INNER JOIN Venue AS T2 ON T2.City_Id = T1.City_Id INNER JOIN Match AS T3 ON T3.Venue_Id = T2.Venue_Id WHERE T1.City_Name = 'Mumbai'
Database: soccer_2016
Tables: Batting_Style, Bowling_Style, City, Country, Extra_Type, Extra_Runs, Out_Type, Outcome, Player, Rolee, Season, Team, Toss_Decision, Umpire, Venue, Win_By, Match, Ball_by_Ball, Batsman_Scored, Player_Match, Wicket_Taken
Columns (table index, column name): -1, *, 0, Batting_Id, 0, Batting_hand, 1, Bowling_Id, 1, Bowling_skill, 2, City_Id, 2, City_Name, 2, Country_id, 3, Country_Id, 3, Country_Name, 4, Extra_Id, 4, Extra_Name, 5, Match_Id, 5, Over_Id, 5, Ball_Id, 5, Extra_Type_Id, 5, Extra_Runs, 5, Innings_No, 6, Out_Id, 6, Out_Name, 7, Outcome_Id, 7, Outcome_Type, 8, Player_Id, 8, Player_Name, 8, DOB, 8, Batting_hand, 8, Bowling_skill, 8, Country_Name, 9, Role_Id, 9, Role_Desc, 10, Season_Id, 10, Man_of_the_Series, 10, Orange_Cap, 10, Purple_Cap, 10, Season_Year, 11, Team_Id, 11, Team_Name, 12, Toss_Id, 12, Toss_Name, 13, Umpire_Id, 13, Umpire_Name, 13, Umpire_Country, 14, Venue_Id, 14, Venue_Name, 14, City_Id, 15, Win_Id, 15, Win_Type, 16, Match_Id, 16, Team_1, 16, Team_2, 16, Match_Date, 16, Season_Id, 16, Venue_Id, 16, Toss_Winner, 16, Toss_Decide, 16, Win_Type, 16, Win_Margin, 16, Outcome_type, 16, Match_Winner, 16, Man_of_the_Match, 17, Match_Id, 17, Over_Id, 17, Ball_Id, 17, Innings_No, 17, Team_Batting, 17, Team_Bowling, 17, Striker_Batting_Position, 17, Striker, 17, Non_Striker, 17, Bowler, 18, Match_Id, 18, Over_Id, 18, Ball_Id, 18, Runs_Scored, 18, Innings_No, 19, Match_Id, 19, Player_Id, 19, Role_Id, 19, Team_Id, 20, Match_Id, 20, Over_Id, 20, Ball_Id, 20, Player_Out, 20, Kind_Out, 20, Fielders, 20, Innings_No
Question: Among the players out in match ID 392187, calculate the percentage of players out by bowl.
Evidence: out by bowl refers to Out_Name = 'bowled'; percentage = divide(count(Player_Out where Out_Name = 'bowled'), count(Player_Out)) * 100% where Match_Id = 392187
SQL: SELECT CAST(SUM(CASE WHEN T2.Out_Name = 'bowled' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Player_Out) FROM Wicket_Taken AS T1 INNER JOIN Out_Type AS T2 ON T2.Out_Id = T1.Kind_Out WHERE T1.Match_Id = 392187