1sf/bird-sql-train-with-schema huggingface dataset:
Database: professional_basketball
Tables: awards_players, coaches, draft, player_allstar, players, teams, awards_coaches, players_teams, series_post
Columns (table index, column name): -1, *, 0, playerID, 0, award, 0, year, 0, lgID, 0, note, 0, pos, 1, coachID, 1, year, 1, tmID, 1, lgID, 1, stint, 1, won, 1, lost, 1, post_wins, 1, post_losses, 2, id, 2, draftYear, 2, draftRound, 2, draftSelection, 2, draftOverall, 2, tmID, 2, firstName, 2, lastName, 2, suffixName, 2, playerID, 2, draftFrom, 2, lgID, 3, playerID, 3, last_name, 3, first_name, 3, season_id, 3, conference, 3, league_id, 3, games_played, 3, minutes, 3, points, 3, o_rebounds, 3, d_rebounds, 3, rebounds, 3, assists, 3, steals, 3, blocks, 3, turnovers, 3, personal_fouls, 3, fg_attempted, 3, fg_made, 3, ft_attempted, 3, ft_made, 3, three_attempted, 3, three_made, 4, playerID, 4, useFirst, 4, firstName, 4, middleName, 4, lastName, 4, nameGiven, 4, fullGivenName, 4, nameSuffix, 4, nameNick, 4, pos, 4, firstseason, 4, lastseason, 4, height, 4, weight, 4, college, 4, collegeOther, 4, birthDate, 4, birthCity, 4, birthState, 4, birthCountry, 4, highSchool, 4, hsCity, 4, hsState, 4, hsCountry, 4, deathDate, 4, race, 5, year, 5, lgID, 5, tmID, 5, franchID, 5, confID, 5, divID, 5, rank, 5, confRank, 5, playoff, 5, name, 5, o_fgm, 5, o_ftm, 5, o_pts, 5, d_pts, 5, homeWon, 5, homeLost, 5, awayWon, 5, awayLost, 5, won, 5, lost, 5, games, 5, arena, 6, id, 6, year, 6, coachID, 6, award, 6, lgID, 6, note, 7, id, 7, playerID, 7, year, 7, stint, 7, tmID, 7, lgID, 7, GP, 7, GS, 7, minutes, 7, points, 7, oRebounds, 7, dRebounds, 7, rebounds, 7, assists, 7, steals, 7, blocks, 7, turnovers, 7, PF, 7, fgAttempted, 7, fgMade, 7, ftAttempted, 7, ftMade, 7, threeAttempted, 7, threeMade, 7, PostGP, 7, PostGS, 7, PostMinutes, 7, PostPoints, 7, PostoRebounds, 7, PostdRebounds, 7, PostRebounds, 7, PostAssists, 7, PostSteals, 7, PostBlocks, 7, PostTurnovers, 7, PostPF, 7, PostfgAttempted, 7, PostfgMade, 7, PostftAttempted, 7, PostftMade, 7, PostthreeAttempted, 7, PostthreeMade, 7, note, 8, id, 8, year, 8, round, 8, series, 8, tmIDWinner, 8, lgIDWinner, 8, tmIDLoser, 8, lgIDLoser, 8, W, 8, L
Question: Please list the coach IDs who received the award twice from 1970 to 1990.
Evidence: from 1970 to 1990 refers to year between 1970 and 1990;  received award twice refers to coachID where Count(coachID) = 2
SQL: SELECT coachID FROM awards_coaches WHERE year BETWEEN 1970 AND 1990 GROUP BY coachID, award HAVING COUNT(award) = 2
Database: professional_basketball
Tables: awards_players, coaches, draft, player_allstar, players, teams, awards_coaches, players_teams, series_post
Columns (table index, column name): -1, *, 0, playerID, 0, award, 0, year, 0, lgID, 0, note, 0, pos, 1, coachID, 1, year, 1, tmID, 1, lgID, 1, stint, 1, won, 1, lost, 1, post_wins, 1, post_losses, 2, id, 2, draftYear, 2, draftRound, 2, draftSelection, 2, draftOverall, 2, tmID, 2, firstName, 2, lastName, 2, suffixName, 2, playerID, 2, draftFrom, 2, lgID, 3, playerID, 3, last_name, 3, first_name, 3, season_id, 3, conference, 3, league_id, 3, games_played, 3, minutes, 3, points, 3, o_rebounds, 3, d_rebounds, 3, rebounds, 3, assists, 3, steals, 3, blocks, 3, turnovers, 3, personal_fouls, 3, fg_attempted, 3, fg_made, 3, ft_attempted, 3, ft_made, 3, three_attempted, 3, three_made, 4, playerID, 4, useFirst, 4, firstName, 4, middleName, 4, lastName, 4, nameGiven, 4, fullGivenName, 4, nameSuffix, 4, nameNick, 4, pos, 4, firstseason, 4, lastseason, 4, height, 4, weight, 4, college, 4, collegeOther, 4, birthDate, 4, birthCity, 4, birthState, 4, birthCountry, 4, highSchool, 4, hsCity, 4, hsState, 4, hsCountry, 4, deathDate, 4, race, 5, year, 5, lgID, 5, tmID, 5, franchID, 5, confID, 5, divID, 5, rank, 5, confRank, 5, playoff, 5, name, 5, o_fgm, 5, o_ftm, 5, o_pts, 5, d_pts, 5, homeWon, 5, homeLost, 5, awayWon, 5, awayLost, 5, won, 5, lost, 5, games, 5, arena, 6, id, 6, year, 6, coachID, 6, award, 6, lgID, 6, note, 7, id, 7, playerID, 7, year, 7, stint, 7, tmID, 7, lgID, 7, GP, 7, GS, 7, minutes, 7, points, 7, oRebounds, 7, dRebounds, 7, rebounds, 7, assists, 7, steals, 7, blocks, 7, turnovers, 7, PF, 7, fgAttempted, 7, fgMade, 7, ftAttempted, 7, ftMade, 7, threeAttempted, 7, threeMade, 7, PostGP, 7, PostGS, 7, PostMinutes, 7, PostPoints, 7, PostoRebounds, 7, PostdRebounds, 7, PostRebounds, 7, PostAssists, 7, PostSteals, 7, PostBlocks, 7, PostTurnovers, 7, PostPF, 7, PostfgAttempted, 7, PostfgMade, 7, PostftAttempted, 7, PostftMade, 7, PostthreeAttempted, 7, PostthreeMade, 7, note, 8, id, 8, year, 8, round, 8, series, 8, tmIDWinner, 8, lgIDWinner, 8, tmIDLoser, 8, lgIDLoser, 8, W, 8, L
Question: From 1962 to 2011, how many coaches received both NBA and ABA awards?
Evidence: from 1962 to 2011 refers to year between 1960 and 2011; received both NBA and ABA award refers to coachID where award LIKE 'NBA%' and 'ABA%'
SQL: SELECT COUNT(DISTINCT coachID) FROM awards_coaches WHERE year BETWEEN 1962 AND 2011 AND award = 'ABA Coach of the Year' AND coachID IN ( SELECT coachID FROM awards_coaches WHERE year BETWEEN 1962 AND 2011 AND award = 'NBA Coach of the Year' )
Database: professional_basketball
Tables: awards_players, coaches, draft, player_allstar, players, teams, awards_coaches, players_teams, series_post
Columns (table index, column name): -1, *, 0, playerID, 0, award, 0, year, 0, lgID, 0, note, 0, pos, 1, coachID, 1, year, 1, tmID, 1, lgID, 1, stint, 1, won, 1, lost, 1, post_wins, 1, post_losses, 2, id, 2, draftYear, 2, draftRound, 2, draftSelection, 2, draftOverall, 2, tmID, 2, firstName, 2, lastName, 2, suffixName, 2, playerID, 2, draftFrom, 2, lgID, 3, playerID, 3, last_name, 3, first_name, 3, season_id, 3, conference, 3, league_id, 3, games_played, 3, minutes, 3, points, 3, o_rebounds, 3, d_rebounds, 3, rebounds, 3, assists, 3, steals, 3, blocks, 3, turnovers, 3, personal_fouls, 3, fg_attempted, 3, fg_made, 3, ft_attempted, 3, ft_made, 3, three_attempted, 3, three_made, 4, playerID, 4, useFirst, 4, firstName, 4, middleName, 4, lastName, 4, nameGiven, 4, fullGivenName, 4, nameSuffix, 4, nameNick, 4, pos, 4, firstseason, 4, lastseason, 4, height, 4, weight, 4, college, 4, collegeOther, 4, birthDate, 4, birthCity, 4, birthState, 4, birthCountry, 4, highSchool, 4, hsCity, 4, hsState, 4, hsCountry, 4, deathDate, 4, race, 5, year, 5, lgID, 5, tmID, 5, franchID, 5, confID, 5, divID, 5, rank, 5, confRank, 5, playoff, 5, name, 5, o_fgm, 5, o_ftm, 5, o_pts, 5, d_pts, 5, homeWon, 5, homeLost, 5, awayWon, 5, awayLost, 5, won, 5, lost, 5, games, 5, arena, 6, id, 6, year, 6, coachID, 6, award, 6, lgID, 6, note, 7, id, 7, playerID, 7, year, 7, stint, 7, tmID, 7, lgID, 7, GP, 7, GS, 7, minutes, 7, points, 7, oRebounds, 7, dRebounds, 7, rebounds, 7, assists, 7, steals, 7, blocks, 7, turnovers, 7, PF, 7, fgAttempted, 7, fgMade, 7, ftAttempted, 7, ftMade, 7, threeAttempted, 7, threeMade, 7, PostGP, 7, PostGS, 7, PostMinutes, 7, PostPoints, 7, PostoRebounds, 7, PostdRebounds, 7, PostRebounds, 7, PostAssists, 7, PostSteals, 7, PostBlocks, 7, PostTurnovers, 7, PostPF, 7, PostfgAttempted, 7, PostfgMade, 7, PostftAttempted, 7, PostftMade, 7, PostthreeAttempted, 7, PostthreeMade, 7, note, 8, id, 8, year, 8, round, 8, series, 8, tmIDWinner, 8, lgIDWinner, 8, tmIDLoser, 8, lgIDLoser, 8, W, 8, L
Question: In 1975, what was the average point of all-star players coming from the USA?
Evidence: in 1975 refers to season_id = 1975; coming from USA refers to birthCountry = 'USA'; average point refers to Divide (Sum(points), Count(playerID))
SQL: SELECT AVG(T2.points) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T2.season_id = 1975
Database: professional_basketball
Tables: awards_players, coaches, draft, player_allstar, players, teams, awards_coaches, players_teams, series_post
Columns (table index, column name): -1, *, 0, playerID, 0, award, 0, year, 0, lgID, 0, note, 0, pos, 1, coachID, 1, year, 1, tmID, 1, lgID, 1, stint, 1, won, 1, lost, 1, post_wins, 1, post_losses, 2, id, 2, draftYear, 2, draftRound, 2, draftSelection, 2, draftOverall, 2, tmID, 2, firstName, 2, lastName, 2, suffixName, 2, playerID, 2, draftFrom, 2, lgID, 3, playerID, 3, last_name, 3, first_name, 3, season_id, 3, conference, 3, league_id, 3, games_played, 3, minutes, 3, points, 3, o_rebounds, 3, d_rebounds, 3, rebounds, 3, assists, 3, steals, 3, blocks, 3, turnovers, 3, personal_fouls, 3, fg_attempted, 3, fg_made, 3, ft_attempted, 3, ft_made, 3, three_attempted, 3, three_made, 4, playerID, 4, useFirst, 4, firstName, 4, middleName, 4, lastName, 4, nameGiven, 4, fullGivenName, 4, nameSuffix, 4, nameNick, 4, pos, 4, firstseason, 4, lastseason, 4, height, 4, weight, 4, college, 4, collegeOther, 4, birthDate, 4, birthCity, 4, birthState, 4, birthCountry, 4, highSchool, 4, hsCity, 4, hsState, 4, hsCountry, 4, deathDate, 4, race, 5, year, 5, lgID, 5, tmID, 5, franchID, 5, confID, 5, divID, 5, rank, 5, confRank, 5, playoff, 5, name, 5, o_fgm, 5, o_ftm, 5, o_pts, 5, d_pts, 5, homeWon, 5, homeLost, 5, awayWon, 5, awayLost, 5, won, 5, lost, 5, games, 5, arena, 6, id, 6, year, 6, coachID, 6, award, 6, lgID, 6, note, 7, id, 7, playerID, 7, year, 7, stint, 7, tmID, 7, lgID, 7, GP, 7, GS, 7, minutes, 7, points, 7, oRebounds, 7, dRebounds, 7, rebounds, 7, assists, 7, steals, 7, blocks, 7, turnovers, 7, PF, 7, fgAttempted, 7, fgMade, 7, ftAttempted, 7, ftMade, 7, threeAttempted, 7, threeMade, 7, PostGP, 7, PostGS, 7, PostMinutes, 7, PostPoints, 7, PostoRebounds, 7, PostdRebounds, 7, PostRebounds, 7, PostAssists, 7, PostSteals, 7, PostBlocks, 7, PostTurnovers, 7, PostPF, 7, PostfgAttempted, 7, PostfgMade, 7, PostftAttempted, 7, PostftMade, 7, PostthreeAttempted, 7, PostthreeMade, 7, note, 8, id, 8, year, 8, round, 8, series, 8, tmIDWinner, 8, lgIDWinner, 8, tmIDLoser, 8, lgIDLoser, 8, W, 8, L
Question: Please list the last names and first names of all-star players who are higher than 75 inch.
Evidence: higher than 75 inch refers to height > 75
SQL: SELECT DISTINCT T1.lastName, T1.firstName FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.height > 75
Database: professional_basketball
Tables: awards_players, coaches, draft, player_allstar, players, teams, awards_coaches, players_teams, series_post
Columns (table index, column name): -1, *, 0, playerID, 0, award, 0, year, 0, lgID, 0, note, 0, pos, 1, coachID, 1, year, 1, tmID, 1, lgID, 1, stint, 1, won, 1, lost, 1, post_wins, 1, post_losses, 2, id, 2, draftYear, 2, draftRound, 2, draftSelection, 2, draftOverall, 2, tmID, 2, firstName, 2, lastName, 2, suffixName, 2, playerID, 2, draftFrom, 2, lgID, 3, playerID, 3, last_name, 3, first_name, 3, season_id, 3, conference, 3, league_id, 3, games_played, 3, minutes, 3, points, 3, o_rebounds, 3, d_rebounds, 3, rebounds, 3, assists, 3, steals, 3, blocks, 3, turnovers, 3, personal_fouls, 3, fg_attempted, 3, fg_made, 3, ft_attempted, 3, ft_made, 3, three_attempted, 3, three_made, 4, playerID, 4, useFirst, 4, firstName, 4, middleName, 4, lastName, 4, nameGiven, 4, fullGivenName, 4, nameSuffix, 4, nameNick, 4, pos, 4, firstseason, 4, lastseason, 4, height, 4, weight, 4, college, 4, collegeOther, 4, birthDate, 4, birthCity, 4, birthState, 4, birthCountry, 4, highSchool, 4, hsCity, 4, hsState, 4, hsCountry, 4, deathDate, 4, race, 5, year, 5, lgID, 5, tmID, 5, franchID, 5, confID, 5, divID, 5, rank, 5, confRank, 5, playoff, 5, name, 5, o_fgm, 5, o_ftm, 5, o_pts, 5, d_pts, 5, homeWon, 5, homeLost, 5, awayWon, 5, awayLost, 5, won, 5, lost, 5, games, 5, arena, 6, id, 6, year, 6, coachID, 6, award, 6, lgID, 6, note, 7, id, 7, playerID, 7, year, 7, stint, 7, tmID, 7, lgID, 7, GP, 7, GS, 7, minutes, 7, points, 7, oRebounds, 7, dRebounds, 7, rebounds, 7, assists, 7, steals, 7, blocks, 7, turnovers, 7, PF, 7, fgAttempted, 7, fgMade, 7, ftAttempted, 7, ftMade, 7, threeAttempted, 7, threeMade, 7, PostGP, 7, PostGS, 7, PostMinutes, 7, PostPoints, 7, PostoRebounds, 7, PostdRebounds, 7, PostRebounds, 7, PostAssists, 7, PostSteals, 7, PostBlocks, 7, PostTurnovers, 7, PostPF, 7, PostfgAttempted, 7, PostfgMade, 7, PostftAttempted, 7, PostftMade, 7, PostthreeAttempted, 7, PostthreeMade, 7, note, 8, id, 8, year, 8, round, 8, series, 8, tmIDWinner, 8, lgIDWinner, 8, tmIDLoser, 8, lgIDLoser, 8, W, 8, L
Question: What is the minimum weight of all-star players coming from UCLA college?
Evidence: minimum weight refers to Min(weight)
SQL: SELECT MIN(T1.weight) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.college = 'UCLA'
Database: professional_basketball
Tables: awards_players, coaches, draft, player_allstar, players, teams, awards_coaches, players_teams, series_post
Columns (table index, column name): -1, *, 0, playerID, 0, award, 0, year, 0, lgID, 0, note, 0, pos, 1, coachID, 1, year, 1, tmID, 1, lgID, 1, stint, 1, won, 1, lost, 1, post_wins, 1, post_losses, 2, id, 2, draftYear, 2, draftRound, 2, draftSelection, 2, draftOverall, 2, tmID, 2, firstName, 2, lastName, 2, suffixName, 2, playerID, 2, draftFrom, 2, lgID, 3, playerID, 3, last_name, 3, first_name, 3, season_id, 3, conference, 3, league_id, 3, games_played, 3, minutes, 3, points, 3, o_rebounds, 3, d_rebounds, 3, rebounds, 3, assists, 3, steals, 3, blocks, 3, turnovers, 3, personal_fouls, 3, fg_attempted, 3, fg_made, 3, ft_attempted, 3, ft_made, 3, three_attempted, 3, three_made, 4, playerID, 4, useFirst, 4, firstName, 4, middleName, 4, lastName, 4, nameGiven, 4, fullGivenName, 4, nameSuffix, 4, nameNick, 4, pos, 4, firstseason, 4, lastseason, 4, height, 4, weight, 4, college, 4, collegeOther, 4, birthDate, 4, birthCity, 4, birthState, 4, birthCountry, 4, highSchool, 4, hsCity, 4, hsState, 4, hsCountry, 4, deathDate, 4, race, 5, year, 5, lgID, 5, tmID, 5, franchID, 5, confID, 5, divID, 5, rank, 5, confRank, 5, playoff, 5, name, 5, o_fgm, 5, o_ftm, 5, o_pts, 5, d_pts, 5, homeWon, 5, homeLost, 5, awayWon, 5, awayLost, 5, won, 5, lost, 5, games, 5, arena, 6, id, 6, year, 6, coachID, 6, award, 6, lgID, 6, note, 7, id, 7, playerID, 7, year, 7, stint, 7, tmID, 7, lgID, 7, GP, 7, GS, 7, minutes, 7, points, 7, oRebounds, 7, dRebounds, 7, rebounds, 7, assists, 7, steals, 7, blocks, 7, turnovers, 7, PF, 7, fgAttempted, 7, fgMade, 7, ftAttempted, 7, ftMade, 7, threeAttempted, 7, threeMade, 7, PostGP, 7, PostGS, 7, PostMinutes, 7, PostPoints, 7, PostoRebounds, 7, PostdRebounds, 7, PostRebounds, 7, PostAssists, 7, PostSteals, 7, PostBlocks, 7, PostTurnovers, 7, PostPF, 7, PostfgAttempted, 7, PostfgMade, 7, PostftAttempted, 7, PostftMade, 7, PostthreeAttempted, 7, PostthreeMade, 7, note, 8, id, 8, year, 8, round, 8, series, 8, tmIDWinner, 8, lgIDWinner, 8, tmIDLoser, 8, lgIDLoser, 8, W, 8, L
Question: What is the maximum weight of USA all-star players?
Evidence: "USA" is the birthCountry of player;  maximum weight refers to Max(weight)
SQL: SELECT MAX(T1.weight) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.birthCountry = 'USA'
Database: professional_basketball
Tables: awards_players, coaches, draft, player_allstar, players, teams, awards_coaches, players_teams, series_post
Columns (table index, column name): -1, *, 0, playerID, 0, award, 0, year, 0, lgID, 0, note, 0, pos, 1, coachID, 1, year, 1, tmID, 1, lgID, 1, stint, 1, won, 1, lost, 1, post_wins, 1, post_losses, 2, id, 2, draftYear, 2, draftRound, 2, draftSelection, 2, draftOverall, 2, tmID, 2, firstName, 2, lastName, 2, suffixName, 2, playerID, 2, draftFrom, 2, lgID, 3, playerID, 3, last_name, 3, first_name, 3, season_id, 3, conference, 3, league_id, 3, games_played, 3, minutes, 3, points, 3, o_rebounds, 3, d_rebounds, 3, rebounds, 3, assists, 3, steals, 3, blocks, 3, turnovers, 3, personal_fouls, 3, fg_attempted, 3, fg_made, 3, ft_attempted, 3, ft_made, 3, three_attempted, 3, three_made, 4, playerID, 4, useFirst, 4, firstName, 4, middleName, 4, lastName, 4, nameGiven, 4, fullGivenName, 4, nameSuffix, 4, nameNick, 4, pos, 4, firstseason, 4, lastseason, 4, height, 4, weight, 4, college, 4, collegeOther, 4, birthDate, 4, birthCity, 4, birthState, 4, birthCountry, 4, highSchool, 4, hsCity, 4, hsState, 4, hsCountry, 4, deathDate, 4, race, 5, year, 5, lgID, 5, tmID, 5, franchID, 5, confID, 5, divID, 5, rank, 5, confRank, 5, playoff, 5, name, 5, o_fgm, 5, o_ftm, 5, o_pts, 5, d_pts, 5, homeWon, 5, homeLost, 5, awayWon, 5, awayLost, 5, won, 5, lost, 5, games, 5, arena, 6, id, 6, year, 6, coachID, 6, award, 6, lgID, 6, note, 7, id, 7, playerID, 7, year, 7, stint, 7, tmID, 7, lgID, 7, GP, 7, GS, 7, minutes, 7, points, 7, oRebounds, 7, dRebounds, 7, rebounds, 7, assists, 7, steals, 7, blocks, 7, turnovers, 7, PF, 7, fgAttempted, 7, fgMade, 7, ftAttempted, 7, ftMade, 7, threeAttempted, 7, threeMade, 7, PostGP, 7, PostGS, 7, PostMinutes, 7, PostPoints, 7, PostoRebounds, 7, PostdRebounds, 7, PostRebounds, 7, PostAssists, 7, PostSteals, 7, PostBlocks, 7, PostTurnovers, 7, PostPF, 7, PostfgAttempted, 7, PostfgMade, 7, PostftAttempted, 7, PostftMade, 7, PostthreeAttempted, 7, PostthreeMade, 7, note, 8, id, 8, year, 8, round, 8, series, 8, tmIDWinner, 8, lgIDWinner, 8, tmIDLoser, 8, lgIDLoser, 8, W, 8, L
Question: From 1960 to 1970, what is the total point of all-star players who are still alive?
Evidence: from 1960 to 1970 refers to season_id between 1960 and 1970; still alive refers to deathDate = '0000-00-00'
SQL: SELECT SUM(T2.points) FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T2.season_id BETWEEN 1960 AND 1970 AND T1.deathDate = '0000-00-00'
Database: professional_basketball
Tables: awards_players, coaches, draft, player_allstar, players, teams, awards_coaches, players_teams, series_post
Columns (table index, column name): -1, *, 0, playerID, 0, award, 0, year, 0, lgID, 0, note, 0, pos, 1, coachID, 1, year, 1, tmID, 1, lgID, 1, stint, 1, won, 1, lost, 1, post_wins, 1, post_losses, 2, id, 2, draftYear, 2, draftRound, 2, draftSelection, 2, draftOverall, 2, tmID, 2, firstName, 2, lastName, 2, suffixName, 2, playerID, 2, draftFrom, 2, lgID, 3, playerID, 3, last_name, 3, first_name, 3, season_id, 3, conference, 3, league_id, 3, games_played, 3, minutes, 3, points, 3, o_rebounds, 3, d_rebounds, 3, rebounds, 3, assists, 3, steals, 3, blocks, 3, turnovers, 3, personal_fouls, 3, fg_attempted, 3, fg_made, 3, ft_attempted, 3, ft_made, 3, three_attempted, 3, three_made, 4, playerID, 4, useFirst, 4, firstName, 4, middleName, 4, lastName, 4, nameGiven, 4, fullGivenName, 4, nameSuffix, 4, nameNick, 4, pos, 4, firstseason, 4, lastseason, 4, height, 4, weight, 4, college, 4, collegeOther, 4, birthDate, 4, birthCity, 4, birthState, 4, birthCountry, 4, highSchool, 4, hsCity, 4, hsState, 4, hsCountry, 4, deathDate, 4, race, 5, year, 5, lgID, 5, tmID, 5, franchID, 5, confID, 5, divID, 5, rank, 5, confRank, 5, playoff, 5, name, 5, o_fgm, 5, o_ftm, 5, o_pts, 5, d_pts, 5, homeWon, 5, homeLost, 5, awayWon, 5, awayLost, 5, won, 5, lost, 5, games, 5, arena, 6, id, 6, year, 6, coachID, 6, award, 6, lgID, 6, note, 7, id, 7, playerID, 7, year, 7, stint, 7, tmID, 7, lgID, 7, GP, 7, GS, 7, minutes, 7, points, 7, oRebounds, 7, dRebounds, 7, rebounds, 7, assists, 7, steals, 7, blocks, 7, turnovers, 7, PF, 7, fgAttempted, 7, fgMade, 7, ftAttempted, 7, ftMade, 7, threeAttempted, 7, threeMade, 7, PostGP, 7, PostGS, 7, PostMinutes, 7, PostPoints, 7, PostoRebounds, 7, PostdRebounds, 7, PostRebounds, 7, PostAssists, 7, PostSteals, 7, PostBlocks, 7, PostTurnovers, 7, PostPF, 7, PostfgAttempted, 7, PostfgMade, 7, PostftAttempted, 7, PostftMade, 7, PostthreeAttempted, 7, PostthreeMade, 7, note, 8, id, 8, year, 8, round, 8, series, 8, tmIDWinner, 8, lgIDWinner, 8, tmIDLoser, 8, lgIDLoser, 8, W, 8, L
Question: Among players who were born after 1950, who had offence rebounds rates more than 30%? Please list their last names and first names.
Evidence: born after 1950 refers to birthDate > = '1950-01-01'; offence rebound rate more than 30% refers to Divide (oRebounds, rebounds) > 0.3
SQL: SELECT DISTINCT T1.lastName, T1.firstName FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T1.birthDate > 1950 AND CAST(T2.o_rebounds AS REAL) * 100 / T2.rebounds > 30
Database: professional_basketball
Tables: awards_players, coaches, draft, player_allstar, players, teams, awards_coaches, players_teams, series_post
Columns (table index, column name): -1, *, 0, playerID, 0, award, 0, year, 0, lgID, 0, note, 0, pos, 1, coachID, 1, year, 1, tmID, 1, lgID, 1, stint, 1, won, 1, lost, 1, post_wins, 1, post_losses, 2, id, 2, draftYear, 2, draftRound, 2, draftSelection, 2, draftOverall, 2, tmID, 2, firstName, 2, lastName, 2, suffixName, 2, playerID, 2, draftFrom, 2, lgID, 3, playerID, 3, last_name, 3, first_name, 3, season_id, 3, conference, 3, league_id, 3, games_played, 3, minutes, 3, points, 3, o_rebounds, 3, d_rebounds, 3, rebounds, 3, assists, 3, steals, 3, blocks, 3, turnovers, 3, personal_fouls, 3, fg_attempted, 3, fg_made, 3, ft_attempted, 3, ft_made, 3, three_attempted, 3, three_made, 4, playerID, 4, useFirst, 4, firstName, 4, middleName, 4, lastName, 4, nameGiven, 4, fullGivenName, 4, nameSuffix, 4, nameNick, 4, pos, 4, firstseason, 4, lastseason, 4, height, 4, weight, 4, college, 4, collegeOther, 4, birthDate, 4, birthCity, 4, birthState, 4, birthCountry, 4, highSchool, 4, hsCity, 4, hsState, 4, hsCountry, 4, deathDate, 4, race, 5, year, 5, lgID, 5, tmID, 5, franchID, 5, confID, 5, divID, 5, rank, 5, confRank, 5, playoff, 5, name, 5, o_fgm, 5, o_ftm, 5, o_pts, 5, d_pts, 5, homeWon, 5, homeLost, 5, awayWon, 5, awayLost, 5, won, 5, lost, 5, games, 5, arena, 6, id, 6, year, 6, coachID, 6, award, 6, lgID, 6, note, 7, id, 7, playerID, 7, year, 7, stint, 7, tmID, 7, lgID, 7, GP, 7, GS, 7, minutes, 7, points, 7, oRebounds, 7, dRebounds, 7, rebounds, 7, assists, 7, steals, 7, blocks, 7, turnovers, 7, PF, 7, fgAttempted, 7, fgMade, 7, ftAttempted, 7, ftMade, 7, threeAttempted, 7, threeMade, 7, PostGP, 7, PostGS, 7, PostMinutes, 7, PostPoints, 7, PostoRebounds, 7, PostdRebounds, 7, PostRebounds, 7, PostAssists, 7, PostSteals, 7, PostBlocks, 7, PostTurnovers, 7, PostPF, 7, PostfgAttempted, 7, PostfgMade, 7, PostftAttempted, 7, PostftMade, 7, PostthreeAttempted, 7, PostthreeMade, 7, note, 8, id, 8, year, 8, round, 8, series, 8, tmIDWinner, 8, lgIDWinner, 8, tmIDLoser, 8, lgIDLoser, 8, W, 8, L
Question: How many players received Rookie of the Year award from 1969 to 2010?
Evidence: from 1969 to 2010 refers to year BETWEEN 1969 and 2010; 'Rookie of the Year' is the award
SQL: SELECT COUNT(playerID) FROM awards_players WHERE year BETWEEN 1969 AND 2010 AND award = 'Rookie of the Year'