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: 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
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 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
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 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
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 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
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 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
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: 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
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: 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
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: 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
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 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
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 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
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 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
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 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