Chinastark/bird_dataset huggingface dataset:
Database: professional_basketball
Question: Among the Most improved Players awarded from 1985-1990, how many player whose country is USA?
Evidence: the Most improved Player refers to award = 'Most Improved Player'; from 1985-1990 refers to year between 1985 and 1990; country is USA refers to birthCountry = 'USA'
SQL: SELECT COUNT(DISTINCT T2.playerID) FROM awards_players AS T1 INNER JOIN players AS T2 ON T1.playerID = T2.playerID WHERE T1.award = 'Most Improved Player' AND T2.birthCountry = 'USA' AND T1.year BETWEEN 1985 AND 1990
Database: professional_basketball
Question: Please list out the first name and last name of player who attended California college and have been selected as all stars?
Evidence: California college refers to college = 'California'
SQL: SELECT DISTINCT T1.firstName, T1.lastName FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.college = 'California'
Database: professional_basketball
Question: From 1950 to 1970, how many coaches who received more than 1 award?
Evidence: from 1950 to 1970 refers to year between 1950 and 1970; more than 3 awards refers to count(award) > 3
SQL: SELECT COUNT(coachID) FROM awards_coaches WHERE year BETWEEN 1950 AND 1970 GROUP BY coachID HAVING COUNT(coachID) > 1
Database: professional_basketball
Question: How many players received Most Valuable Player award from 1969 to 1975?
Evidence: Most Valuable Player award refers to award = 'Most Valuable Player'; from 1969 to 1975 refers to year between 1969 and 1975
SQL: SELECT COUNT(DISTINCT playerID) FROM awards_players WHERE year BETWEEN 1969 AND 1975 AND award = 'Most Valuable Player'
Database: professional_basketball
Question: Please list the team names which have at least 5 players were born in the same state.
Evidence: team name refers to teams.name; state that a player is born refers to birthState
SQL: SELECT DISTINCT name FROM teams WHERE tmID IN ( SELECT tmID FROM players_teams AS T1 INNER JOIN players AS T2 ON T1.playerID = T2.playerID WHERE T2.birthState IS NOT NULL GROUP BY T1.tmID, T2.birthState HAVING COUNT(*) > 5 )
Database: professional_basketball
Question: How many teams in the NBA which has at least 3 all-star players?
Evidence: NBA refers to lgID = 'NBA'; have at least 3 all-star players refers to count(player_allstar.playerID) > 3
SQL: SELECT COUNT(*) FROM ( SELECT tmID FROM players_teams AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.lgID = 'NBA' GROUP BY T1.tmID HAVING COUNT(DISTINCT T1.playerID) > 3 ) AS T3
Database: professional_basketball
Question: Which state has the most players selected as all stars?
Evidence: state refers to birthState; the most players refers to max(count(playerID))
SQL: SELECT T1.birthState FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID GROUP BY T1.birthState ORDER BY COUNT(DISTINCT T1.playerID) DESC LIMIT 1
Database: professional_basketball
Question: How many players whose teams were ranked 6 in 1937?
Evidence: ranked 6 refers to rank = 6; in 1937 refers to year = 1937
SQL: SELECT COUNT(DISTINCT T1.playerID) FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID INNER JOIN teams AS T3 ON T3.tmID = T2.tmID WHERE T3.year = 1937 AND T3.rank = 6
Database: professional_basketball
Question: In 1950, how many players whose teams have the losing rate less than 20%?
Evidence: in 1950 refers to year = 1950; losing rate less than 20% refers to divide(lost, add(won, lost)) < 0.2
SQL: SELECT COUNT(DISTINCT T1.playerID) FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID INNER JOIN teams AS T3 ON T3.tmID = T2.tmID WHERE CAST(T3.lost AS REAL) * 100 / (T3.lost + T3.won) < 20
Database: professional_basketball
Question: List the full name of players who are born outside USA.
Evidence: full name refers to firstName, middleName, lastName; born outside USA refers to birthCountry ! = 'USA'
SQL: SELECT firstName, middleName, lastName FROM players WHERE birthCountry != 'USA'
Database: professional_basketball
Question: List out all the coach ID who have served more than 2 different teams.
Evidence: more than 2 different teams refers to count(tmID) > 2
SQL: SELECT coachID FROM coaches GROUP BY coachID HAVING COUNT(DISTINCT tmID) > 2
Database: professional_basketball
Question: Which coach has the most 'won' than 'lost' in year '1988'?
Evidence: in year '1988' refers to year = 1988; the most 'won' than 'lost' refers to max(subtract(won, lost))
SQL: SELECT coachID FROM coaches WHERE year = 1988 ORDER BY won - lost DESC LIMIT 1
Database: professional_basketball
Question: Name the team in which the coach won the title 'NBA Coach of the Year' in 2010.
Evidence: team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010
SQL: SELECT DISTINCT T1.tmID FROM coaches AS T1 INNER JOIN awards_coaches AS T2 ON T1.coachID = T2.coachID WHERE T2.year = 2010 AND T2.award = 'NBA Coach of the Year'
Database: professional_basketball
Question: List the first name, last name, height and weight of the players who has all free throw attempted successfully made.
Evidence: all free throw attempted successfully made refers to ftAttempted > 0 and ftAttempted = ftMade
SQL: SELECT DISTINCT T1.firstName, T1.lastName, T1.height, T1.weight FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T2.ft_attempted > 0 AND ft_attempted = ft_made
Database: professional_basketball
Question: List the first name, last name and team name of players who are drafted from 'Seattle' between year 1965 to 1970.
Evidence: team name refers to teams.name; drafted from 'Seattle' refers to draftFrom = 'Seattle'; between year 1965 to 1970 refers to draftYear between 1965 and 1970
SQL: SELECT DISTINCT T1.firstName, T1.lastName, T3.name FROM players AS T1 INNER JOIN draft AS T2 ON T1.playerID = T2.playerID INNER JOIN teams AS T3 ON T2.tmID = T3.tmID WHERE T2.draftFrom = 'Seattle' AND T2.draftYear BETWEEN 1965 AND 1970
Database: professional_basketball
Question: List the full name and age of the player when he won the "Finals MVP" in 2003.
Evidence: full name refers to firstName, middleName, lastName; age = subtract(2003, year(birthDate)); won the "Finals MVP" refers to award = 'Finals MVP'; in 2003 refers to year = 2003
SQL: SELECT T1.firstName, T1.middleName, T1.lastName , 2003 - strftime('%Y', T1.birthDate) FROM awards_players AS T2 JOIN players AS T1 ON T2.playerID = T1.playerID WHERE T2.award = 'Finals MVP' AND T2.year = 2003
Database: professional_basketball
Question: List the champion (team name) and year from year 1950 to 1960.
Evidence: champion refers to round = 'F'; team name refers to teams.name; from year 1950 to 1960 refers to year between 1950 and 1960
SQL: SELECT DISTINCT T1.name, T2.year FROM teams AS T1 JOIN series_post AS T2 ON T1.tmID = T2.tmIDWinner WHERE T2.round = 'F' AND T2.year BETWEEN 1950 AND 1960
Database: professional_basketball
Question: Name the teams along with the coaches that went to 'Quarter Final' round in 1946.
Evidence: team name refers to teams.name; coach refers to coachID; 'Quarter Final' round refers to round = 'QF'; in 1946 refers to year = 1946
SQL: SELECT DISTINCT T1.coachID, T3.name FROM coaches AS T1 JOIN series_post AS T2 ON T1.tmID = T2.tmIDWinner JOIN teams AS T3 ON T3.tmID = T1.tmID WHERE T2.round = 'QF' AND T2.year = 1946
Database: professional_basketball
Question: List out all the players fullname who won the championship in 1970.
Evidence: full name refers to firstName, middleName, lastName; won the championship refers to round = 'F'; in 1970 refers to year = 1970
SQL: SELECT DISTINCT T3.firstName, T3.middleName, T3.lastName FROM series_post AS T1 INNER JOIN players_teams AS T2 ON T1.tmIDWinner = T2.tmID INNER JOIN players AS T3 ON T3.playerID = T2.playerID WHERE T1.year = 1970 AND T1.round = 'F'
Database: professional_basketball
Question: From which college was the player who won the most award in 1970.
Evidence: college refers to highSchool; won the most award refers to max(count(award)); in 1970 refers to year = 1970
SQL: SELECT college FROM players WHERE playerID = ( SELECT playerID FROM awards_players WHERE year = 1970 GROUP BY playerID ORDER BY COUNT(award) DESC LIMIT 1 )
Database: professional_basketball
Question: Name the youngest player who ever won "Rookie of the Year".
Evidence: player name refers to playerID; the youngest refers to max(birthDate); won "Rookie of the Year" refers to award = 'Rookie of the Year'
SQL: SELECT T1.firstName, T1.middleName, T1.lastName FROM players AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE T2.award = 'Rookie of the Year' ORDER BY T1.birthDate DESC LIMIT 1
Database: professional_basketball
Question: List the full name of players who are drafted from round 1 in 1973 but not born in USA.
Evidence: full name refers to firstName, middleName, lastName; in 1973 refers to year = 1973; not born in USA refers to birthCountry <> 'USA'
SQL: SELECT T1.firstName, T1.middleName, T1.lastName FROM players AS T1 INNER JOIN draft AS T2 ON T1.playerID = T2.playerID WHERE T2.draftRound = 1 AND T1.birthCountry != 'USA' AND T2.draftYear = 1973
Database: professional_basketball
Question: What is the percentage of offense rebounds from the total rebounds of the players in year 2000.
Evidence: in year 2000 refers to year = 2000; percentage = divide(sum(o_rebounds), sum(rebounds)) * 100%
SQL: SELECT CAST(SUM(T2.o_rebounds) AS REAL) * 100 / SUM(T2.rebounds) FROM players_teams AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.year = 2000
Database: professional_basketball
Question: List the year, team and coach that with winning rate of above 75%.
Evidence: team refers to teams.name; coach refers to coachID; winning rate of above 75% refers to divide(won, add(won, lost)) > 0.75
SQL: SELECT DISTINCT T1.year, T2.name, T1.coachID FROM coaches AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID WHERE CAST(T1.won AS REAL) / CAST((T1.won + T1.lost) AS REAL) > 0.75
Database: professional_basketball
Question: List all the coatches of the Oklahoma City Thunder
Evidence: coach refers to coachID; Oklahoma City Thunder refers to name = 'Oklahoma City Thunder'
SQL: SELECT DISTINCT coachID FROM coaches AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID WHERE name = 'Oklahoma City Thunder'
Database: professional_basketball
Question: How many players, in games played in 1990, achieved 50% or less of oRebounds than dRebounds.
Evidence: in 1990 refers to season_id = 1990; 50% or less of oRebounds than dRebounds refers to o_rebounds < = multiply(d_rebounds, 0.5)
SQL: SELECT COUNT(playerID) FROM players_teams WHERE CAST(oRebounds AS REAL) * 100 / dRebounds <= 50 AND year = 1990
Database: professional_basketball
Question: How many players did not get more than 10 steals between the years 2000 and 2005?
Evidence: did not get more than 10 steals refers to count(steals) < = 10; between the years 2000 and 2005 refers to season_id between 2000 and 2005
SQL: SELECT COUNT(DISTINCT playerID) FROM player_allstar WHERE season_id BETWEEN 2000 AND 2005 AND steals <= 10
Database: professional_basketball
Question: Which player selected by Portland in 2nd draftRound won Rookie of the Year in 1971?
Evidence: 2nd draftRound refers to draftRound = 2; won Rookie of the Year refers to award = 'Rookie of the Year'; in 1971 refers to draftYear = 1971
SQL: SELECT T1.playerID FROM draft AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE T2.award = 'Rookie of the Year' AND T1.draftYear = 1971 AND T1.draftRound = 2
Database: professional_basketball
Question: How many All Star players who played in the 1973 season were black?
Evidence: 1973 season refers to season_id = 1973; black refers to race = 'B'
SQL: SELECT COUNT(DISTINCT T1.playerID) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T2.season_id = 1973 AND T1.race = 'B'
Database: professional_basketball
Question: Which winning team in the 1947 playoff quarterfinals managed to score 3,513 defensive points that same year?
Evidence: team refers to tmID; quarterfinal refers to round = 'QF'; score 3,513 defensive points refers to d_pts > = 3513
SQL: SELECT T2.tmID FROM series_post AS T1 INNER JOIN teams AS T2 ON T1.tmIDWinner = T2.tmID WHERE T1.year = 1947 AND T1.round = 'QF' AND T2.d_pts = 3513
Database: professional_basketball
Question: Percentage of games lost out of total games played by the Houston Mavericks
Evidence: Houston Mavericks refers to name = 'Houston Mavericks'; percentage = divide(sum(lost), sum(games)) * 100%
SQL: SELECT CAST(SUM(lost) AS REAL) * 100 / SUM(games) FROM teams WHERE name = 'Houston Mavericks'
Database: professional_basketball
Question: Please list the players who received the "Most Valuable Player" award in the NBA league after the year of 1990, along with their IDs.
Evidence: player refers to playerID; "Most Valuable Player" award refers to award = 'Most Valuable Player'; after the year of 1990 refers to year > 1990; ID refers to playerID
SQL: SELECT playerID FROM awards_players WHERE year > 1990 AND award = 'Most Valuable Player' AND lgID = 'NBA'
Database: professional_basketball
Question: How many times between 1975 and 1980 did the player abdulka01 play for LAL?
Evidence: between 1975 and 1980 refers to year between 1975 and 1980; player abdulka01 refers to playerID = 'abdulka01'; play for LAL refers to tmID = 'LAL'
SQL: SELECT COUNT(DISTINCT T2.year) FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T2.tmID = 'LAL' AND T2.year BETWEEN 1975 AND 1980 AND T1.playerID = 'abdulka01'
Database: professional_basketball
Question: What is the percentage of coaches in 1969 who were awarded "NBA Coach of the Year"?
Evidence: in 1969 refers to year = 1969; awarded "NBA Coach of the Year" refers to award = 'NBA Coach of the Year'; percentage = divide(count(coachID where year = 1969 and award = 'NBA Coach of the Year'), count(coachID)) * 100%
SQL: SELECT CAST(SUM(CASE WHEN award = 'NBA Coach of the Year' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM awards_coaches WHERE year = 1969
Database: professional_basketball
Question: What were the difference of the CHS team's winning rate between 1946 and 1947 in the post-season series games? Please provide your answer in percentages.
Evidence: CHS team refers to tmIDWinner = 'CHS'; difference = subtract(divide(count(series_post where year = 1947 and tmIDWinner = 'CHS'), count(series_post where year = 1947)), divide(count(series_post where year = 1946 and tmIDWinner = 'CHS'), count(series_post where year = 1946)))
SQL: SELECT CAST(SUM(CASE WHEN year = 1947 AND tmIDWinner = 'CHS' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN year = 1947 THEN 1 ELSE 0 END) - CAST(SUM(CASE WHEN year = 1946 AND tmIDWinner = 'CHS' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN year = 1946 THEN 1 ELSE 0 END) FROM series_post
Database: professional_basketball
Question: How many awards were given out in 2010 to players who attended high school in Chicago?
Evidence: in 2010 refers to year = 2010; attended high school in Chicago refers to college = 'Chicago'
SQL: SELECT COUNT(T1.award) FROM awards_players AS T1 INNER JOIN players AS T2 ON T1.playerID = T2.playerID WHERE T1.year = 2010 AND T2.hsCity = 'Chicago'
Database: professional_basketball
Question: What is the percentage of players who attended Auburn University and won an "All-Defensive Second Team" award?
Evidence: Auburn University refers to college = 'Auburn'; won an "All-Defensive Second Team" award refers to award = 'All-Defensive Second Team'; percentage = divide(count(playerID where award = 'All-Defensive Second Team'), count(playerID)) where college = 'Auburn' * 100%
SQL: SELECT CAST(SUM(CASE WHEN T2.award = 'All-Defensive Second Team' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM players AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE T1.college = 'Auburn'
Database: professional_basketball
Question: Please list the top five players with the most steals in the year 1997. Please give their full name.
Evidence: full name refers to firstName, middleName, lastName; in the year 1997 refers to year = 1997; the most steals refers to max(steals)
SQL: SELECT DISTINCT T1.firstName, T1.middleName, T1.lastName FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T2.season_id = 1997 ORDER BY T2.steals DESC LIMIT 5
Database: professional_basketball
Question: What is the name of the university that was drafted from the player who won the NBA Finals MVP in 1990?
Evidence: name of the university refers to highSchool; NBA refers to lgID = 'NBA'; Finals MVP refers to award = 'Finals MVP'; in 1990 refers to year = 1990
SQL: SELECT T1.college FROM players AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1990 AND T2.award = 'Finals MVP'
Database: professional_basketball
Question: Among the NBA All-star players in 1996 season , which have more than 70% free throw rate? Please give their player id.
Evidence: NBA refers to lgID = 'NBA'; in 1996 season refers to season_id = 1996; more than 70% free throw rate refers to ft_made > = 0 AND ft_attempted > 0 AND divide(ft_made, ft_attempted) > 0.7
SQL: SELECT playerID FROM player_allstar WHERE season_id = 1996 AND CAST(ft_made AS REAL) * 100 / ft_attempted > 70
Database: professional_basketball
Question: From 1980 to 1983, how many of the NBA All-Star players have more than 60% three point rate?
Evidence: from 1980 to 1983 refers to year BETWEEN 1980 and 1983; NBA refers to lgID = 'NBA'; more than 60% three point rate refers to divide(threeMade, threeAttempted) > 0.6
SQL: SELECT DISTINCT T2.playerID FROM player_allstar AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T2.year BETWEEN 1980 AND 1983 AND T1.three_made / T1.three_attempted > 0.6
Database: professional_basketball
Question: Among the NBA winning coaches, which are from STL team? Please list their coach id.
Evidence: NBA refers to lgID = 'NBA'; STL team refers to tmID = 'STL'
SQL: SELECT DISTINCT T2.coachID FROM coaches AS T1 INNER JOIN awards_coaches AS T2 ON T1.coachID = T2.coachID WHERE T1.tmID = 'STL' AND T1.lgID = 'NBA'
Database: professional_basketball
Question: How many times have coaches who were from CHI been awarded as NBA Coach of the Year?
Evidence: CHI refers to tmID = 'CHI'; awarded Coach of the Year refers to award = 'Coach of the Year'; NBA refers to lgID = 'NBA'
SQL: SELECT COUNT(DISTINCT T2.coachID) FROM coaches AS T1 INNER JOIN awards_coaches AS T2 ON T1.coachID = T2.coachID WHERE T1.tmID = 'CHI' AND T2.award = 'NBA Coach of the Year'
Database: professional_basketball
Question: Of the players drafted in NBA between 1990 and 2000, who has the most points in all-star? List the player's first name and last name.
Evidence: NBA refers to lgID = 'NBA'; between 1990 and 2000 refers to year between 1990 and 2000; the most points refers to max(points)
SQL: SELECT T3.firstname, T3.lastname FROM player_allstar AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID INNER JOIN draft AS T3 ON T1.playerID = T3.playerID WHERE T2.year BETWEEN 1990 AND 2000 ORDER BY T1.points DESC LIMIT 1
Database: professional_basketball
Question: Which player from Wake Forest college did the most offensive rebounds than defensive rebounds in the all-star? Please mention the full name of the player including the middle name if have any.
Evidence: Wake Forest college refers to highSchool = 'Wake Forest college'; did the most offensive rebounds than defensive rebounds refers to max(subtract(sum(oRebounds), sum(dRebounds))); full name refers to first_name, middle_name, last_name
SQL: SELECT T1.firstName, T1.middleName, T1.lastName FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.college = 'Wake Forest' AND T2.o_rebounds > T2.d_rebounds
Database: professional_basketball
Question: Find the full name of the player born in Atlanta and have the highest number of blocks. Also, in which team did this player perform the most number of blocks?
Evidence: full name refers to first_name, middle_name, last_name; born in Atlanta refers to birthCity = 'Atlanta'; the highest number of blocks refers to max(blocks); team refers to tmID
SQL: SELECT T1.firstName, T1.lastName, T2.tmID FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T1.birthCity = 'Atlanta' ORDER BY T2.blocks DESC LIMIT 1
Database: professional_basketball
Question: State the name of teams ranked first five or more times and lost a league two or more times between 1980 and 2000?
Evidence: name of team refers to teams.name; between 1980 and 2000 refers to year between 1980 and 2000; ranked first five or more times refers to count(rank = 1) > = 5; lost a league two or more times refers to lost > 2
SQL: SELECT T1.name FROM teams AS T1 INNER JOIN series_post AS T2 ON T1.tmID = T2.tmIDLoser AND T1.year = T2.year WHERE T1.rank < 5 AND T2.lgIDLoser > 2 AND T2.year BETWEEN 1980 AND 2000
Database: professional_basketball
Question: Player from which team has the highest point per minute in NBA from 1991 to 2000?
Evidence: team refers to tmID; the highest point per minute refers to max(divide(points, minutes)); NBA refers to lgID = 'NBA'; from 1991 to 2000 refers to year BETWEEN 1991 AND 2000
SQL: SELECT tmID FROM players_teams WHERE year BETWEEN 1991 AND 2000 ORDER BY CAST(points AS REAL) / minutes DESC LIMIT 1
Database: professional_basketball
Question: What is the difference in the average age of players when they are drafted in the ABA vs when they are drafted in the NBA between the years 1970 and 1970?
Evidence: ABA refers to lgID = 'ABA'; NBA refers to lgID = 'NBA'; between the years 1970 and 1970 refers to draftYear between 1970 and 1970; difference = subtract(avg(subtract(1970, year(birthDate)) where lgID = 'ABA'), avg(subtract(1970, year(birthDate)) where lgID = 'NBA'))
SQL: SELECT CAST(SUM(IIF(T2.lgID = 'ABA', 1970 - strftime('%Y', T3.birthDate), 0)) AS REAL) / COUNT(IIF(T2.lgID = 'ABA', 1, 0)) - CAST(SUM(IIF(T2.lgID = 'NBA', 1970 - strftime('%Y', T3.birthDate), 0)) AS REAL) / COUNT(IIF(T2.lgID = 'NBA', 1, 0)) FROM draft AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID INNER JOIN players AS T3 ON T2.playerID = T3.playerID WHERE T1.draftYear BETWEEN 1970 AND 1970
Database: professional_basketball
Question: Which player had the most game presentatons in 2011 NBA season.
Evidence: player refers to playerID; the most game presentations refers to max(GP); in 2020 refers to year = 2020; NBA season refers to lgID = 'NBA'
SQL: SELECT playerID FROM players_teams WHERE year = 2011 ORDER BY GP DESC LIMIT 1
Database: professional_basketball
Question: How many first round draft player in 1996 NBA draft became an All-Star?
Evidence: first round refers to round = 1; in 1996 refers to year = 1996; NBA refers to lgID = 'NBA'
SQL: SELECT COUNT(T2.playerID) FROM draft AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.draftYear = 1996 AND T1.draftRound = 1
Database: professional_basketball
Question: Which team did the MVP of 1997 NBA season play in?
Evidence: team refers to tmID; MVP refers to award like '%MVP'; 1997 refers to year = 1997; NBA refers to lgID = 'NBA'
SQL: SELECT DISTINCT T3.tmID FROM players_teams AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID INNER JOIN teams AS T3 ON T1.tmID = T3.tmID AND T1.year = T3.year WHERE T2.year = 1997 AND T2.award = 'Finals MVP' LIMIT 1
Database: professional_basketball
Question: How many games did team of the scoring champion win in 2001 NBA season?
Evidence: the scoring champion refers to max(won); 2001 refers to year = 2001; NBA refers to lgID = 'NBA'
SQL: SELECT T2.W FROM teams AS T1 INNER JOIN series_post AS T2 ON T1.tmID = T2.tmIDLoser AND T1.year = T2.year WHERE T2.year = 2001 ORDER BY T1.o_fgm DESC LIMIT 1
Database: professional_basketball
Question: How many turnovers per game did the assist champion had in the 2003 NBA season?
Evidence: turnovers per game = avg(turnovers); 2003 refers to year = 2003; NBA refers to lgID = 'NBA'
SQL: SELECT AVG(T2.turnovers) FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 2003 GROUP BY T1.playerID, T2.assists ORDER BY T2.assists DESC LIMIT 1