Chinastark/bird_dataset huggingface dataset:
Database: soccer_2016
Question: Who is the player who received the man of the match award during the last match of Season 9?
Evidence: Who refers to Player_Name; last match of Season 9 refers to max(Match_Date) where Season_Id = 9
SQL: SELECT T1.Player_name FROM Player AS T1 INNER JOIN Match AS T2 ON T1.Player_Id = T2.Man_of_the_Match WHERE T2.Season_Id = 9 ORDER BY T2.Match_Date DESC LIMIT 1
Database: soccer_2016
Question: What is the name of the team that won the first ever match?
Evidence: name of the team refers to Team_Name; won the first ever match refers to Match_Winner where max(Match_Date)
SQL: SELECT T1.Team_Name FROM team AS T1 INNER JOIN Match AS T2 ON T1.Team_Id = T2.Match_Winner WHERE T2.Season_Id = 1 ORDER BY T2.Match_Date LIMIT 1
Database: soccer_2016
Question: How many cities are in U.A.E?
Evidence: U.A.E refers to Country_Name = 'U.A.E'
SQL: SELECT SUM(CASE WHEN T2.Country_Name = 'U.A.E' THEN 1 ELSE 0 END) FROM City AS T1 INNER JOIN country AS T2 ON T1.Country_id = T2.Country_id
Database: soccer_2016
Question: List the names of all the umpires from England.
Evidence: from England refers to Country_Name = 'England'
SQL: SELECT T1.Umpire_Name FROM Umpire AS T1 INNER JOIN country AS T2 ON T2.Country_Id = T1.Umpire_Country WHERE T2.Country_Name = 'England'
Database: soccer_2016
Question: How many players bowl in the legbreak style?
Evidence: legbreak style refers to Bowling_skill = 'Legbreak'
SQL: SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Bowling_Style AS T2 ON T1.Bowling_skill = T2.Bowling_Id WHERE T2.Bowling_skill = 'Legbreak'
Database: soccer_2016
Question: How many matches did Rajasthan Royals play in Season 8?
Evidence:  Season 8 refers to Season_Id = 8
SQL: SELECT SUM(CASE WHEN T1.Season_Id = 8 THEN 1 ELSE 0 END) FROM `Match` AS T1 INNER JOIN Team AS T2 ON T1.Team_1 = T2.Team_Id OR T1.Team_2 = T2.Team_Id WHERE T2.Team_Name = 'Rajasthan Royals'
Database: soccer_2016
Question: Which country is umpire TH Wijewardene from?
Evidence: country refers to Country_Name
SQL: SELECT T2.Country_Name FROM Umpire AS T1 INNER JOIN country AS T2 ON T2.Country_Id = T1.Umpire_Country WHERE T1.Umpire_Name = 'TH Wijewardene'
Database: soccer_2016
Question: What are the names of the venues in Abu Dhabi?
Evidence: names of the venues refers to Venue_Name; Abu Dhabi refers to City_Name = 'Abu Dhabi'
SQL: SELECT T1.Venue_Name FROM Venue AS T1 INNER JOIN City AS T2 ON T1.City_Id = T2.City_Id WHERE T2.City_Name = 'Abu Dhabi'
Database: soccer_2016
Question: Which country is the youngest player from?
Evidence: country refers to Country_Name; youngest player refers to max(DOB)
SQL: SELECT T1.Country_Name FROM Country AS T1 INNER JOIN Player AS T2 ON T1.Country_Id = T2.Country_Name ORDER BY T2.DOB DESC LIMIT 1
Database: soccer_2016
Question: List all the names of the winning team's players in the first match of season 1.
Evidence: names refers to Player_Name; winning team's refers to Match_Winner; first match of season 1 refers to Season_Id = 1 and min(Match_Date)
SQL: SELECT T3.Player_Name FROM `Match` AS T1 INNER JOIN Player_Match AS T2 ON T1.Match_Winner = T2.Team_Id INNER JOIN Player AS T3 ON T2.Player_Id = T3.Player_Id WHERE T1.Season_Id = 1 ORDER BY T1.Match_Date LIMIT 1
Database: soccer_2016
Question: Who is the youngest player to have won the Purple Cap?
Evidence: Who refers to Player_Name; youngest player to have won the Purple Cap refers to min(subtract(Season_Year, DOB))
SQL: SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Season AS T2 ON T1.Player_Id = T2.Purple_Cap ORDER BY T2.Season_Year - SUBSTR(T1.DOB, 1, 4) LIMIT 1
Database: soccer_2016
Question: Provide the complete name of the venue, city and country where the last match was held.
Evidence: name of the venue, city and country refers to Venue_Name and City_Name and Country_Name; last match refers to max(Match_Date)
SQL: SELECT T1.Venue_Name, T2.City_Name, T3.Country_Name FROM Venue AS T1 INNER JOIN City AS T2 ON T1.City_Id = T2.City_Id INNER JOIN Country AS T3 ON T2.Country_Id = T3.Country_Id INNER JOIN Match AS T4 ON T1.Venue_Id = T4.Venue_Id ORDER BY T4.Match_Date DESC LIMIT 1
Database: soccer_2016
Question: How many overs were there in each innings of match ID "336011"?
SQL: SELECT SUM(CASE WHEN Innings_No = 1 THEN 1 ELSE 0 END) AS IN1 , SUM(CASE WHEN Innings_No = 2 THEN 1 ELSE 0 END) AS IN2 FROM Ball_by_Ball WHERE Match_Id = 336011
Database: soccer_2016
Question: List the ball IDs, scores, and innings numbers in the over ID 20 of match ID "335988".
Evidence: innings numbers refers to Innings_No
SQL: SELECT Ball_Id, Runs_Scored, Innings_No FROM Batsman_Scored WHERE Match_Id = 335988 AND Over_Id = 20
Database: soccer_2016
Question: How many matches were held in 2011?
Evidence: held in 2011 refers to Match_Date like '2011%';
SQL: SELECT COUNT(Match_Id) FROM `Match` WHERE Match_Date LIKE '2011%'
Database: soccer_2016
Question: How old is Ishan Kishan in 2022?
Evidence: old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';
SQL: SELECT 2022 - SUBSTR(DOB, 1, 4) FROM Player WHERE Player_Name = 'Ishan Kishan'
Database: soccer_2016
Question: Calculate the win rate of the toss-winners in 2012.
Evidence: in 2012 refers to Match_Date like '2012%'; win rate refers to DIVIDE(COUNT(Toss_Winner = Match_Winner), COUNT(Match_Date like '2012%'))
SQL: SELECT CAST(SUM(CASE WHEN Toss_Winner = Match_Winner THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN Match_Date LIKE '2012%' THEN 1 ELSE 0 END) FROM `Match`
Database: soccer_2016
Question: How many matches in 2009 had win margins of less than 10?
Evidence: in 2009 refers to Match_Date like '2009%'; win margins of less than 10 refers to Win_Margin < 10;
SQL: SELECT COUNT(Match_Id) FROM `Match` WHERE Match_Date LIKE '2009%' AND Win_Margin < 10
Database: soccer_2016
Question: Provide the players' names in both teams of the match that was held in June 2014.
Evidence: held in June 2014 refers to SUBSTR(Match_Date, 7, 1) = 6 and SUBSTR(Match_Date, 1, 4) = 2014
SQL: SELECT T1.Player_Name 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 WHERE SUBSTR(T3.Match_Date, 1, 4) = '2014' AND SUBSTR(T3.Match_Date, 7, 1) = '6' LIMIT 2
Database: soccer_2016
Question: How many matches did Mohammad Hafeez play?
Evidence: Mohammad Hafeez refers to Player_Name = 'Mohammad Hafeez';
SQL: SELECT SUM(CASE WHEN T2.Player_Name = 'Mohammad Hafeez' THEN 1 ELSE 0 END) FROM Player_Match AS T1 INNER JOIN Player AS T2 ON T1.Player_Id = T2.Player_Id
Database: soccer_2016
Question: Among the players from South Africa, provide the players' names who were born in 1984.
Evidence: from South Africa refers to Country_Name = 'South Africa'; born in 1984 refers to DOB like '1984%';
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 = 'South Africa' AND T1.DOB LIKE '1984%'
Database: soccer_2016
Question: Among the" Mumbai Indians" team that played in 2009, how many percent of the matches did they win?
Evidence: played in 2009 Match_Date like '2009%'; Mumbai Indians" team refers to Team_Name = 'Mumbai Indians'; percent of the matches did they win refers to DIVIDE(COUNT(Match_Winner = Team_Id), COUNT(Match_Id))
SQL: SELECT CAST(SUM(CASE WHEN T1.Match_Winner = T2.Team_Id THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Match_Id) FROM `Match` AS T1 INNER JOIN Team AS T2 ON T1.Team_1 = T2.Team_Id OR T1.Team_2 = T2.Team_Id WHERE T2.Team_Name = 'Mumbai Indians' AND T1.Match_Date LIKE '2009%'
Database: soccer_2016
Question: What is the ratio of players with batting hands of left and right?
Evidence: batting hands of left refers to Batting_hand = 'Left-hand bat'; right refers to Batting_hand = 2; ratio refers to DIVIDE(COUNT(Batting_hand = 'Right-hand bat'), COUNT(Batting_hand = 2))
SQL: SELECT CAST(SUM(CASE WHEN T2.Batting_hand = 'Left-hand bat' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.Batting_hand = 'Right-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: Who is the eldest player and where did he/she come from?
Evidence: eldest player refers to MIN(DOB); where he/she come from refers to Country_Name
SQL: SELECT T1.Player_Name, T2.Country_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_Id ORDER BY T1.DOB LIMIT 1
Database: soccer_2016
Question: Which bowling skills did the players from Zimbabwea have?
Evidence: Zimbabwea refers to Country_Name = 'Zimbabwea';
SQL: SELECT T1.Bowling_skill 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 T3.Country_Name = 'Zimbabwea'
Database: soccer_2016
Question: List the IDs and names of the umpires from New Zealand.
Evidence: New Zealand refers to Country_Name = 'New Zealand'; ID of the umpire refers to Umpire_Id; name of the umpire refers to Umpire_Name
SQL: SELECT T1.Umpire_Id, 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: Who was the captain-keeper of Rising Pune Supergiants?
Evidence: captain-keeper refers to Role_Desc = 'CaptainKeeper'; Rising Pune Supergiants refers to Role_Desc = 'CaptainKeeper'
SQL: SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Team AS T3 ON T2.Team_Id = T3.Team_Id INNER JOIN Rolee AS T4 ON T2.Role_Id = T4.Role_Id WHERE T3.Team_Name = 'Rising Pune Supergiants' AND T4.Role_Desc = 'CaptainKeeper' GROUP BY T1.Player_Name
Database: soccer_2016
Question: How many matches did the Sunrisers Hyderabad team win in 2013?
Evidence: Sunrisers Hyderabad team refers to Team_Name = 'Sunrisers Hyderabad'; in 2013 refers to Match_Date like '2013%';
SQL: SELECT SUM(CASE WHEN Match_Date LIKE '2013%' THEN 1 ELSE 0 END) 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: Provide match ID which had the extra type of penalty.
Evidence: extra type of penalty refers to Extra_Name = 'penalty';
SQL: SELECT T1.Match_Id FROM Extra_Runs AS T1 INNER JOIN Extra_Type AS T2 ON T1.Extra_Type_Id = T2.Extra_Id WHERE T2.Extra_Name = 'penalty'
Database: soccer_2016
Question: Name the teams played in a match which resulted in a tie in 2015.
Evidence: resulted in a tie refers to Win_Type = 'Tie'; in 2015 refers to SUBSTR(Match_Date, 1, 4) = 2015
SQL: SELECT T1.Team_Name FROM Team AS T1 INNER JOIN Match AS T2 ON T1.Team_Id = T2.Team_1 OR T1.Team_Id = T2.Team_2 INNER JOIN Win_By AS T3 ON T2.Win_Type = T3.Win_Id WHERE SUBSTR(T2.Match_Date, 1, 4) = '2015' AND T3.Win_Type = 'Tie' LIMIT 1
Database: soccer_2016
Question: Calculate the average players out in the first innings per match. How many of them were out by the leg before wicket?
Evidence: out by the leg refers to Out_Name = 'lbw'; out in the first innings refers to Innings_No = 2;
SQL: SELECT CAST(COUNT(T1.Player_Out) AS REAL) / COUNT(T1.Match_Id), SUM(CASE WHEN T2.Out_Name = 'lbw' THEN 1 ELSE 0 END) FROM Wicket_Taken AS T1 INNER JOIN Out_Type AS T2 ON T1.Kind_Out = T2.Out_Id WHERE T1.Innings_No = 2
Database: soccer_2016
Question: How many matches are there in 2008?
Evidence: in 2008 refers to Match_Date like '2008%'
SQL: SELECT COUNT(Match_Id) FROM `Match` WHERE Match_Date LIKE '2008%'
Database: soccer_2016
Question: Count the matches with a total of two innings.
Evidence: total of two innings refers to innings_no = 2;
SQL: SELECT COUNT(Match_Id) FROM Wicket_Taken WHERE innings_no = 2
Database: soccer_2016
Question: Which is the country of the city named "Rajkot"?
Evidence: city named "Rajkot" refers to city_name = 'Rajkot';
SQL: SELECT T1.Country_Name FROM Country AS T1 INNER JOIN city AS T2 ON T1.Country_Id = T2.Country_Id WHERE city_name = 'Rajkot'
Database: soccer_2016
Question: How many of the matches are Superover?
Evidence: are Superover refers to win_type = 'wickets';
SQL: SELECT SUM(CASE WHEN T2.win_type = 'wickets' 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: What are the teams that played in a match with the point of winning margin of 38 on April 30, 2009?
Evidence: point of winning margin of 38 refers to win_margin = 38; on April 30, 2009 refers to match_date = '2009-04-30'; team refers to Team_Name;
SQL: SELECT T1.Team_Name FROM Team AS T1 INNER JOIN Match AS T2 ON T1.Team_Id = T2.Team_1 WHERE T2.win_margin = 38 AND match_date = '2009-04-30'
Database: soccer_2016
Question: Give the name of the team of T Kohli in the match ID 335989.
Evidence: team of T Kohli refers to player_name = 'T Kohli';
SQL: SELECT T1.Team_Name FROM Team AS T1 INNER JOIN Player_Match AS T2 ON T1.Team_Id = T2.Team_Id INNER JOIN Player AS T3 ON T2.Player_Id = T3.Player_Id WHERE T2.match_id = 335989 AND T3.player_name = 'T Kohli'
Database: soccer_2016
Question: How many venues are located at Centurion, South Africa?
Evidence: venues are located at Centurion refers to city_name = 'Centurion'; South Africa refers to country_name = 'South Africa'
SQL: SELECT COUNT(T1.Venue_name) FROM Venue AS T1 INNER JOIN City AS T2 ON T1.City_Id = T2.City_Id INNER JOIN Country AS T3 ON T2.Country_Id = T3.Country_Id WHERE T3.country_name = 'South Africa' AND T2.city_name = 'Centurion'
Database: soccer_2016
Question: Among the matches of Delhi Daredevils in 2014, how many won matches are there?
Evidence: Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2014 refers to Match_Date contains '2014';
SQL: SELECT COUNT(T1.Match_Winner) FROM `Match` AS T1 INNER JOIN Team AS T2 ON T2.Team_Id = T1.Team_1 OR T2.Team_Id = T1.Team_2 WHERE T2.team_name = 'Delhi Daredevils' AND T1.Match_Date LIKE '2014%'
Database: soccer_2016
Question: Among the matches played by Royal Challengers Bangalore, what is the match ID of the match with the highest winning margin?
Evidence: Royal Challengers Bangalore refers to team_name = 'Royal Challengers Bangalore'; highest winning margin refers to MAX(win_margin)
SQL: SELECT T2.match_id FROM Team AS T1 INNER JOIN Match AS T2 ON T1.team_id = T2.match_winner WHERE T1.team_name = 'Royal Challengers Bangalore' AND T2.match_date LIKE '2012%' ORDER BY T2.win_margin DESC LIMIT 1
Database: soccer_2016
Question: How many times did K Goel played as a player only?
Evidence: K Goel refers to Player_Name = 'K Goel'; played as a player only refers to Role_Id = 3
SQL: SELECT COUNT(T1.Match_Id) FROM Player_Match AS T1 INNER JOIN Player AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T1.Role_Id = T3.Role_Id WHERE T2.Player_Name = 'K Goel' AND T3.Role_Id = 3
Database: soccer_2016
Question: What is the average winning margin of the matches held in Newlands?
Evidence: average winning margin refers to avg(win_margin); held in Newlands refers to venue_name = 'Newlands'
SQL: SELECT AVG(T1.win_margin) FROM Match AS T1 INNER JOIN Venue AS T2 ON T1.venue_id = T2.venue_id WHERE T2.venue_name = 'Newlands'
Database: soccer_2016
Question: Provide the losing team's name in the match ID 336039.
Evidence: losing team's name refers to Team_Id NOT in "match_winner" column
SQL: SELECT Team_Name FROM Team WHERE Team_Id = ( SELECT CASE WHEN Team_1 = Match_Winner THEN Team_2 ELSE Team_1 END FROM Match WHERE match_id = 336039 )
Database: soccer_2016
Question: What is the venue for the match ID 829768?
Evidence: 
venue refers to Venue_Name
SQL: SELECT T1.Venue_Name FROM Venue AS T1 INNER JOIN Match AS T2 ON T1.venue_id = T2.venue_id WHERE T2.match_id = 829768
Database: soccer_2016
Question: What is the second team's name in the match with the lowest winning margin?
Evidence: lowest winning margin refers to MIN(win_margin); team name refers to team_name; second team refers to team_2
SQL: SELECT T1.team_name FROM Team AS T1 INNER JOIN Match AS T2 ON T1.team_id = T2.team_2 ORDER BY T2.win_margin LIMIT 1
Database: soccer_2016
Question: Among the matches in 2013, what is the percentage of winning of the team "Mumbai Indians"?
Evidence: in 2013 refers to Match_Date like '2013%'; winning of the team "Mumbai Indians" refers to Match_Winner = 7; percentage refers to DIVIDE(COUNT(Match_Winner = 7), COUNT(Match_Winner))
SQL: SELECT CAST(SUM(CASE WHEN T2.Match_Winner = 7 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.Match_Winner) FROM Team AS T1 INNER JOIN Match AS T2 ON T1.Team_Id = T2.Match_Winner WHERE T2.Match_Date LIKE '2013%'
Database: soccer_2016
Question: What is the difference between the number of matches where SC Ganguly played as a Captain and those matches where he played other roles?
Evidence: SC Ganguly refers to Player_Name = 'SC Ganguly'; played as a Captain refers to Role_Id = 1; played other roles refers to Role_Id > 1; difference refers to SUBTRACT(COUNT(Role_Id = 1), COUNT(Role_Id > 1))
SQL: SELECT SUM(CASE WHEN T3.Role_Id = 1 THEN 1 ELSE 0 END) - SUM(CASE WHEN T3.Role_Id > 1 THEN 1 ELSE 0 END) FROM Player_Match AS T1 INNER JOIN Player AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T1.Role_Id = T3.Role_Id WHERE T2.Player_Name = 'SC Ganguly'
Database: soccer_2016
Question: How many players have the bowling skill greater than 2?
Evidence: bowling skill greater than 2 refers to Bowling_skill > 2
SQL: SELECT COUNT(Player_Name) FROM Player WHERE Bowling_skill > 2
Database: soccer_2016
Question: How many players were born in 1970?
Evidence: born in 1970 refers to DOB like '1970%';
SQL: SELECT COUNT(Player_Name) FROM Player WHERE DOB LIKE '1970%'
Database: soccer_2016
Question: How many players were born in the 80s and have bowling skill of 2?
Evidence: born in the 80s refers to DOB like '198%'; have bowling skill of 2 refers to Bowling_skill = 2;
SQL: SELECT COUNT(Player_Name) FROM Player WHERE DOB LIKE '198%' AND Bowling_skill = 2
Database: soccer_2016
Question: How many matches are there in April, 2008?
Evidence: in April, 2008 refers to Match_date like '2008-04%'
SQL: SELECT COUNT(Match_Id) FROM Match WHERE Match_date LIKE '2008-04%'
Database: soccer_2016
Question: What is the city name of country ID 3?
SQL: SELECT City_Name FROM City WHERE Country_ID = 3
Database: soccer_2016
Question: How many victory matches were there in 2008?
Evidence: in 2008 refers to Match_Date like '2008%'
SQL: SELECT COUNT(Match_Id) FROM Match WHERE Match_Date LIKE '2008%' AND Match_Winner IS NOT NULL
Database: soccer_2016
Question: Provide the country ID of East London.
Evidence: East London refers to City_Name = 'East London'
SQL: SELECT Country_id FROM City WHERE City_Name = 'East London'
Database: soccer_2016
Question: How old is SC Ganguly in 2008?
Evidence: SC Ganguly refers to Player_Name = 'SC Ganguly'; old refers to SUBTRACT(2008, strftime('%Y',DOB))
SQL: SELECT 2008 - strftime('%Y', DOB) FROM Player WHERE Player_Name = 'SC Ganguly'
Database: soccer_2016
Question: List the names of players who play by the left hand.
Evidence: play by the left hand refers to Batting_hand =   'Left-hand bat'
SQL: SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Batting_Style AS T2 ON T1.Batting_hand = T2.Batting_Id WHERE T2.Batting_hand = 'Left-hand bat'
Database: soccer_2016
Question: How many players are Indians?
Evidence: are Indians refers to Country_Name = 'India'
SQL: SELECT COUNT(T1.Player_Id) FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_ID WHERE T2.Country_Name = 'India'
Database: soccer_2016
Question: List the name of England players.
Evidence: England players refers to Country_Name = 'England'
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 = 'England'
Database: soccer_2016
Question: What is the venue name of Bandladore?
Evidence: Bandladore refers to City_Name = 'Bangalore'
SQL: SELECT T1.Venue_Name FROM Venue AS T1 INNER JOIN City AS T2 ON T1.City_ID = T2.City_ID WHERE T2.City_Name = 'Bangalore'
Database: soccer_2016
Question: What are the names of players who participated in season year 2008?
Evidence: season year 2008 refers to Season_Year = 2008
SQL: SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Match AS T2 ON T1.Player_Id = T2.Man_of_the_Match INNER JOIN Player_Match AS T3 ON T3.Player_Id = T1.Player_Id INNER JOIN Season AS T4 ON T2.Season_Id = T4.Season_Id WHERE T4.Season_Year = 2008 GROUP BY T1.Player_Name
Database: soccer_2016
Question: What are the names of players that have run scored less than 3?
Evidence: scored less than 3 refers to Runs_Scored < 3; name of player refers to Player_name;
SQL: SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Batsman_Scored AS T3 ON T2.Match_ID = T3.Match_ID WHERE T3.Runs_Scored < 3 GROUP BY T1.Player_Name
Database: soccer_2016
Question: What is the role of SC Ganguly?
Evidence: SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc
SQL: SELECT T3.Role_Desc FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T2.Role_Id = T3.Role_Id WHERE T1.Player_Name = 'SC Ganguly' GROUP BY T3.Role_Desc
Database: soccer_2016
Question: List the names of players who played as a keeper.
Evidence: played as a keeper refers to Role_Desc = 'Keeper'; name of player refers to Player_Name;
SQL: SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Rolee AS T3 ON T2.Role_Id = T3.Role_Id WHERE T3.Role_Desc = 'Keeper' GROUP BY T1.Player_Name
Database: soccer_2016
Question: What are the names of players in team 1?
Evidence: in team 1 refers to Team_Id = 1; name of player refers to Player_Name;
SQL: SELECT T1.Player_Name FROM Player AS T1 INNER JOIN Player_Match AS T2 ON T1.Player_Id = T2.Player_Id INNER JOIN Team AS T3 ON T2.Team_Id = T3.Team_Id WHERE T3.Team_Id = 1 GROUP BY T1.Player_Name
Database: soccer_2016
Question: How many players played as a captain in season year 2008?
Evidence: played as a captain refers to Role_Desc = 'Captain'; in season year 2008 refers Match_Date like '2008%'
SQL: SELECT COUNT(T1.Player_Id) FROM Player_Match AS T1 INNER JOIN Match AS T2 ON T1.Match_Id = T2.Match_Id INNER JOIN Rolee AS T3 ON T1.Role_Id = T3.Role_Id WHERE T3.Role_Desc = 'Captain' AND T2.Match_Date LIKE '2008%'
Database: soccer_2016
Question: Which teams did SC Ganguly join in season year 2008?
Evidence: SC Ganguly refers to Player_Name = 'SC Ganguly'; in season year 2008 refers to Season_Year = 2008
SQL: SELECT T5.Team_Name FROM Player AS T1 INNER JOIN Match AS T2 ON T1.Player_Id = T2.Man_of_the_Match INNER JOIN Player_Match AS T3 ON T3.Player_Id = T1.Player_Id INNER JOIN Season AS T4 ON T2.Season_Id = T4.Season_Id INNER JOIN Team AS T5 ON T3.Team_Id = T5.Team_Id WHERE T4.Season_Year = 2008 AND T1.Player_Name = 'SC Ganguly' GROUP BY T5.Team_Name
Database: soccer_2016
Question: What type did match ID 336000 win?
Evidence: type of match won refers to Win_Type
SQL: SELECT T2.Win_Type FROM Match AS T1 INNER JOIN Win_By AS T2 ON T1.Win_Type = T2.Win_Id WHERE T1.Match_Id = 336000
Database: soccer_2016
Question: Where did SB Joshi come from?
Evidence: SB Joshi refers to Player_Name = 'SB Joshi'; where the player come from refers to Country_Name
SQL: SELECT T2.Country_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_ID WHERE T1.Player_Name = 'SB Joshi'
Database: soccer_2016
Question: How many players have left arm fast in bowling skill?
Evidence: have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';
SQL: SELECT COUNT(T1.Player_Id) FROM Player AS T1 INNER JOIN Bowling_Style AS T2 ON T1.Bowling_skill = T2.Bowling_Id WHERE T2.Bowling_skill = 'Left-arm fast'
Database: soccer_2016
Question: What is the outcome type of match ID 392195?
SQL: SELECT T2.Outcome_Type FROM Match AS T1 INNER JOIN Outcome AS T2 ON T1.Outcome_type = T2.Outcome_Id WHERE T1.Match_Id = '392195'
Database: soccer_2016
Question: Who is the youngest player and which city did he/she come from?
Evidence: youngest player refers to MIN(DOB); city refers to City_Name
SQL: SELECT T3.City_Name FROM Player AS T1 INNER JOIN Country AS T2 ON T1.Country_Name = T2.Country_Id INNER JOIN City AS T3 ON T2.Country_Id = T3.Country_Id ORDER BY T1.DOB LIMIT 1