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: Among the players that went to high school in New York and have won the MVP, what is their average height?
Evidence: high school in New York refers to highSchool like '%New York%'; won the MVP refers to award = 'Most Valuable Player'; average height = Divide (Sum(height), Count(playerID))
SQL: SELECT AVG(T1.height) FROM players AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE T2.award = 'Most Valuable Player' AND T1.birthCity = 'New York'
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 top ten teams with the highest scores in 2000.
Evidence: in 2000 refers to year = 2000; team with highest score refers to Max(o_fgm)
SQL: SELECT tmID FROM players_teams WHERE year = 2000 GROUP BY tmID ORDER BY SUM(PostPoints) DESC LIMIT 10
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: Which teams have winning rate less than 50%?
Evidence: team with winning rate less than 50% refers to Divide (won, Sum(won, lost)) < 0.5
SQL: SELECT name FROM teams WHERE CAST(won AS REAL) * 100 / (won + lost) < 50
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: Who are the coaches for team with winning rate of 80% and above?
Evidence: winning rate of 80% and above refers to Divide (won, Sum(won, lost)) > 0.8; coaches refers to coachID
SQL: SELECT coachID FROM coaches GROUP BY tmID, coachID, won, lost HAVING CAST(won AS REAL) * 100 / (won + lost) > 80
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: Which coach has serviced in NBA for more than 10 years.
Evidence: "NBA" is the lgID; coach who serviced for more than 10 years refers to coachID where Subtract (Max(year), Min(year)) > 10
SQL: SELECT coachID FROM coaches WHERE lgID = 'NBA' GROUP BY coachID HAVING MAX(year) - MIN(year) > 10
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 teams have played more than 3800 points and have player with "Most Valuable Player" award?
Evidence: played more than 3800 points refers to Sum(points) > = 3800
SQL: SELECT COUNT(DISTINCT T4.name) FROM ( SELECT T1.name, SUM(T2.points) FROM teams AS T1 INNER JOIN players_teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year INNER JOIN awards_players AS T3 ON T2.playerID = T3.playerID WHERE T3.award = 'Most Valuable Player' GROUP BY T1.name HAVING SUM(T2.points) >= 3800 ) AS T4
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: Which player from "AFS" team has the tallest height?
Evidence: "AFS" is the tmID; tallest height refers to Max(height)
SQL: SELECT T1.firstName, T1.middleName, T1.lastName FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T2.tmID = 'AFS' ORDER BY T1.height DESC LIMIT 1
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 down the last name of players from "BLB" team.
Evidence: "BLB" is the tmID
SQL: SELECT T1.lastName FROM players AS T1 INNER JOIN players_teams AS T2 ON T1.playerID = T2.playerID WHERE T2.tmID = 'BLB'
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 1975, how many coaches received the award?
Evidence: from 1960 to 1975 refers to year between 1960 and 1975
SQL: SELECT COUNT(DISTINCT coachID) FROM awards_coaches WHERE year BETWEEN 1962 AND 1975