Chinastark/bird_dataset huggingface dataset:
Database: european_football_1
Question: How many matches were played in the Scottish Premiership division from 2006 to 2008?
Evidence: Scottish Premiership is a name of division; from 2006 to 2008 means seasons between 2006 and 2008;
SQL: SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Scottish Premiership' AND (T1.season BETWEEN 2006 AND 2008)
Database: european_football_1
Question: In which division was the match between Hibernian, the away team, and Hearts, the home team, played? To which country does this division belong?
Evidence: FALSE;
SQL: SELECT DISTINCT T2.division,T2.country FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.HomeTeam = 'Hearts' AND T1.AwayTeam = 'Hibernian'
Database: european_football_1
Question: Which away team in the division of Bundesliga has the highest final time goals?
Evidence: Bundesliga is a name of division; the highest final time goals refers to MAX(FTAG);
SQL: SELECT T1.AwayTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div=T2.division WHERE T2.name = 'Bundesliga' ORDER BY T1.FTAG DESC LIMIT 1
Database: european_football_1
Question: Please provide the names of any three away teams that competed in the Italian divisions.
Evidence: Italian means belong to country = 'Italy";
SQL: SELECT T1.AwayTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div=T2.division WHERE T2.country = 'Italy' LIMIT 3
Database: european_football_1
Question: What is the name of the division that has had the lowest number of draft matches in the 2019 season?
Evidence: the lowest number of draft matches refers to MIN(COUNT(FTR = 'D'));
SQL: SELECT T2.name FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2019 AND T1.FTR = 'D' GROUP BY T2.division ORDER BY COUNT(FTR) LIMIT 1
Database: european_football_1
Question: How many times did Valencia's home team win in the LaLiga division?
Evidence: LaLiga is a name of the division; Valencia's home team refers to HomeTeam = 'Valencia'; win refers to FTR = 'H';
SQL: SELECT COUNT(T1.HomeTeam) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'LaLiga' AND T1.HomeTeam = 'Valencia' AND T1.FTR = 'H'
Database: european_football_1
Question: In how many matches in the Seria A division did both teams have equal goals?
Evidence: Seria A is a name of division; equal goals refers to FTR = 'D', where D stands for draft;
SQL: SELECT COUNT(T1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Seria A' AND T1.FTR = 'D'
Database: european_football_1
Question: How many football divisions does England have?
Evidence: England is the name of country;
SQL: SELECT COUNT(division) FROM divisions WHERE country = 'England'
Database: european_football_1
Question: What's the name of the football division in the Netherlands?
Evidence: Netherlands is the name of country;
SQL: SELECT name FROM divisions WHERE country = 'Netherlands'
Database: european_football_1
Question: Who is the winner of the game happened on 2009/10/10, between "East Fife" and "Dumbarton"?
Evidence: 2009/10/10 is a date; the winner refers to FTR = 'A'; East Fife and Dumbarton are name of teams where HomeTeam = 'East Fife'; AwayTeam = 'Dumbarton';
SQL: SELECT CASE WHEN FTR = 'H' THEN 'East Fife' ELSE 'Dumbarton' END WINNER FROM matchs WHERE Date = '2009-10-10' AND HomeTeam = 'East Fife' AND AwayTeam = 'Dumbarton'
Database: european_football_1
Question: What was the final score for the game Bursaspor vs Denizlispor on 2009/4/26?
Evidence: Bursaspor vs Denizlispor are names of teams where HomeTeam = 'Bursaspor' and AwayTeam = 'Denizlispor'; Date = '2009-04-26'; final score refers to FTHG, FTAG;
SQL: SELECT FTHG, FTAG FROM matchs WHERE Date = '2009-04-26' AND HomeTeam = 'Bursaspor' AND AwayTeam = 'Denizlispor'
Database: european_football_1
Question: When did the first match that score more than 10 goals happen?
Evidence: score more than 10 goals refers to SUM(FTHG, FTAG)>10, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; the first means the earliest and refers to MIN(Date);
SQL: SELECT MIN(Date) FROM matchs WHERE FTHG + FTAG > 10
Database: european_football_1
Question: For the Ligue 2 game that made the most goals, who is the winner of that game?
Evidence: Ligue 2 is the name of division; the most goals refer to MAX(SUM(FTHG, FTAG)) which are short names for Final-time Home-team Goals and Final-time Away-team Goals; winner refers to FTR = 'A';
SQL: SELECT CASE WHEN T1.FTR = 'H' THEN T1.HomeTeam ELSE T1.AwayTeam END WINNER FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Ligue 2' ORDER BY T1.FTAG + T1.FTHG DESC LIMIT 1
Database: european_football_1
Question: How many Away Victories happened on 2016/3/27 in the LaLiga 2 division?
Evidence: Away victories refer to FTR = 'A'; LaLiga 2 is the name of division; Date = '2016-03-27';
SQL: SELECT COUNT(T1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'LaLiga 2' AND T1.Date = '2016-03-27' AND T1.FTR = 'A'
Database: european_football_1
Question: How many draw games happened on 2018/8/7 for National League?
Evidence: National League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;
SQL: SELECT COUNT(T1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'National League' AND T1.Date = '2018-08-07' AND T1.FTR = 'D'
Database: european_football_1
Question: Which country had the game that Away team made the most goals?
Evidence: the most goals refer to MAX(FTAG), which is a short name for Final-time Away-team Goals;
SQL: SELECT T2.country FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division GROUP BY T2.country ORDER BY SUM(T1.FTAG) DESC LIMIT 1
Database: european_football_1
Question: For a game had a score of 1-8 in the year of 2011, what division was that game in? Give the full name of the division.
Evidence: 2011 refers to season; a score of 1-8 refers to FTHG = '1' and FTAG = '8';
SQL: SELECT T2.division, T2.name FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2011 AND T1.FTHG = 1 AND T1.FTAG = 8
Database: european_football_1
Question: Which division had the most games with more than 5 total field goals on 2020/2/22? Give the full name of the division?
Evidence: more than 5 total field goals refers to SUM(FTHG, FTAG)>5, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; 2020/2/22 is a date;
SQL: SELECT T2.division, T2.name FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.Date = '2020-02-22' AND T1.FTAG + T1.FTHG > 5 ORDER BY T1.FTAG + T1.FTHG DESC LIMIT 1
Database: european_football_1
Question: Give the full name of the divison that had the most 0-0 games.
Evidence: the most 0-0 games means a no-score draw and refers to MAX(COUNT(Div where FTHG = '0' and FTAG = '0'));
SQL: SELECT T2.name FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.FTAG = 0 AND T1.FTHG = 0 GROUP BY T2.division ORDER BY COUNT(T1.FTAG) DESC LIMIT 1
Database: european_football_1
Question: How many Scottish League One games took place on the day that "Pro Vercelli" and "Pescara"had a 5-2 game?
Evidence: Pro Vercelli and Pescara are names of teams; HomeTeam = 'Pro Vercelli'; AwayTeam = 'Pescara'; 5-2 is a score where FTHG = '5' and FTAG = '2'; Scottish League One is a name of division; games refer to Div;
SQL: SELECT COUNT(T1.Date) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Scottish League One' AND T1.Date = ( SELECT Date FROM matchs WHERE FTHG = 5 AND FTAG = 2 AND HomeTeam = 'Pro Vercelli' AND AwayTeam = 'Pescara' )
Database: european_football_1
Question: List the number of games that ended up with 5-0 in Greece.
Evidence: 5-0 is a score where FTHG = '5' and FTAG = '0'; Greece is a name of country; games refer to Div;
SQL: SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.country = 'Greece' AND T1.FTHG = 5 AND T1.FTAG = 0
Database: european_football_1
Question: Which country did Bradford Team belongs to?
Evidence: Bradford team refers to HomeTeam = 'Bradford' or AwayTeam = 'Bradford';
SQL: SELECT DISTINCT T2.country FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.HomeTeam = 'Bradford' OR T1.AwayTeam = 'Bradford'
Database: european_football_1
Question: How many Eredivisie teams have played in 2008?
Evidence: Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;
SQL: SELECT COUNT(DISTINCT T1.HomeTeam) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Eredivisie' AND T1.season = 2008
Database: european_football_1
Question: What's the home win ratio of the Bundesliga division in 2021?
Evidence: home win refers to FTR = 'H', where H stands for home victory; season = '2021'; Bundesliga is a name of division; DIVIDE(COUNT(Div where FTR = 'H, season = '2021' and name = 'Bundesliga'), COUNT(Div where season = '2021' and name = 'Bundesliga')) as percentage;
SQL: SELECT CAST(COUNT(CASE WHEN T1.FTR = 'H' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T2.name = 'Bundesliga'
Database: european_football_1
Question: For all the games ended up with 1-1, what percentage of them are from Liga NOS division?
Evidence: 1-1 is a score where FTHG = '1' and FTAG = '1'; Liga NOS is the name of division; DIVIDE(COUNT(Div where FTHG = '1', FTAG = '1', name = 'Liga NOS'), COUNT(Div where FTHG = '1' and FTAG = '1')) as percentage;
SQL: SELECT CAST(COUNT(CASE WHEN T2.name = 'Liga NOS' THEN T1.Div ELSE NULL END) AS REAL) * 100 / COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.FTHG = 1 AND FTAG = 1
Database: european_football_1
Question: How many matches were held during the 2021 season's Premier League?
Evidence: Premier League is the name of division;
SQL: SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T2.name = 'Premier League'
Database: european_football_1
Question: Which team was the home team in the match of the Bundesliga division on 2020/10/2?
Evidence: Bundesliga is the name of division; Date = '2020/10/2';
SQL: SELECT T1.HomeTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.Date = '2020-10-02' AND T2.name = 'Bundesliga'
Database: european_football_1
Question: Which team won the match of the Bundesliga division on 2020/10/2?
Evidence: Bundesliga is the name of division; Date = '2020/10/2'; won the match refers to FTR = 'H';
SQL: SELECT CASE WHEN T1.FTR = 'H' THEN T1.HomeTeam WHEN T1.FTR = 'A' THEN T1.AwayTeam END WINNER FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.Date = '2020-10-02' AND T2.name = 'Bundesliga'
Database: european_football_1
Question: Which team has the most victories as the home team in matches of the Bundesliga division?
Evidence: Bundesliga is the name of division; the most victories as the home team refers to MAX(COUNT(FTR = 'H'));
SQL: SELECT T1.HomeTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.FTR = 'H' GROUP BY T1.HomeTeam ORDER BY COUNT(T1.FTR) DESC LIMIT 1
Database: european_football_1
Question: How many times did the team Werder Bremen win as the away team in matches of the Bundesliga division?
Evidence: Bundesliga is the name of division; win as the away team refers to FTR = 'A', where 'A' stands for away victory;
SQL: SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.AwayTeam = 'Werder Bremen' AND T1.FTR = 'A'
Database: european_football_1
Question: How many matches of the Bundesliga division ended with an away victory in the 2021 season?
Evidence: Bundesliga is the name of division; away victory refers to FTR = 'A', where 'A' stands for away victory;
SQL: SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.FTR = 'A' AND T1.season = 2021
Database: european_football_1
Question: Of the matches in all seasons of the Bundesliga division, how many of them ended with a tie?
Evidence: Bundesliga is the name of division; tie refers to FTR = 'D', where D stands for draft;
SQL: SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.FTR = 'D'
Database: european_football_1
Question: How many home victories does the Bundesliga division have in more or less than the Premier League division in the 2021 season?
Evidence: Bundesliga and the Premier League are names of division; home victories refer to FTR = 'H', where H stands for home victory; SUBTRACT(COUNT(FTR = 'H' where season = 2021, name = 'Bundesliga'), COUNT(FTR = 'H' where season = 2021, name = 'Premier League'));
SQL: SELECT COUNT(CASE WHEN T2.name = 'Bundesliga' THEN 1 ELSE NULL END) - COUNT(CASE WHEN T2.name = 'Premier League' THEN 1 ELSE NULL END) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T1.FTR = 'H'
Database: european_football_1
Question: Please list the home teams in the matches of the Bundesliga division that ended with a home victory in the 2021 season.
Evidence: Bundesliga is the name of division; home victory refers to refer to FTR = 'H', where H stands for home victory;
SQL: SELECT DISTINCT T1.HomeTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T1.FTR = 'H' AND T2.name = 'Bundesliga'
Database: european_football_1
Question: Which team had more home victories in the 2021 season's matches of the Bundesliga division, Augsburg or Mainz?
Evidence: Bundesliga is the name of division; more home victories refer to MAX(FTR = 'H)'; Augsburg and Mainz are names of teams and refer to HomeTeam;
SQL: SELECT CASE WHEN COUNT(CASE WHEN T1.HomeTeam = 'Augsburg' THEN 1 ELSE NULL END) - COUNT(CASE WHEN T1.HomeTeam = ' Mainz' THEN 1 ELSE NULL END) > 0 THEN 'Augsburg' ELSE 'Mainz' END FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T1.FTR = 'H'
Database: european_football_1
Question: Which team had the most final-time home-team goals in the 2021 season's matches of the Bundesliga division?
Evidence: Bundesliga is the name of division; the most final-time home-team goals refers to MAX(FTHG);
SQL: SELECT T1.HomeTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.season = 2021 ORDER BY T1.FTHG DESC LIMIT 1
Database: european_football_1
Question: How many final-time home-team goals were there in total in all the matches of the Bundesliga division in the 2021 season?
Evidence: Bundesliga is the name of division; final-time home-team goals refers to FTHG;
SQL: SELECT SUM(T1.FTHG) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.season = 2021
Database: european_football_1
Question: What's the winning rate of Club Brugge in the 2021 Premier League?
Evidence: Premier League is name of division; season = 2021; Club Brugge is name of team; Club Brugge wins implies HomeTeam = 'Club Brugge' and FTR = 'H' and AwayTeam = 'Club Brugge' and FTR = 'A'; DIVIDE(SUM(COUNT(FTR = 'H' where HomeTeam = 'Club Brugge', name = 'Premier League', season = 2021), COUNT(FTR = 'A'where AwayTeam = 'Club Brugge', name = 'Premier League', season = 2021)), COUNT(Div where name = 'Premier League', season = 2021));
SQL: SELECT CAST(COUNT(CASE WHEN T1.FTR = 'H' THEN 1 ELSE NULL END) + COUNT(CASE WHEN T1.FTR = 'A' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(t1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T1.AwayTeam = 'Club Brugge' OR T1.HomeTeam = 'Club Brugge'
Database: professional_basketball
Question: Among the winning game from the team, what is the percentage of the winning was home game.
Evidence: percentage of winning at the home = Divide(homeWon, won) * 100
SQL: SELECT CAST(homeWon AS REAL) * 100 / won  FROM teams
Database: professional_basketball
Question: Which team(s) has greater than 75% lost among all the games played.
Evidence: greater than 75% lost refers to Divide(lost, games) > 0.75; team refers to tmID
SQL: SELECT name FROM teams WHERE CAST(lost AS REAL) * 100 / games > 75
Database: professional_basketball
Question: List the team name and the total wins of the team in year 2005 which has greater winning from the previous year.
Evidence: 2005 refers to year = 2005 ; previous year refers to year = 2004; team with greater winning than previous year refers to Won where year = 2005 > Won where year = 2004; team name refers to tmID
SQL: SELECT T1.name, T1.won FROM teams AS T1 INNER JOIN ( SELECT * FROM teams WHERE year = 2004 ) AS T2 on T1.tmID = T2.tmID WHERE T1.year = 2005 and T1.won > T2.won
Database: professional_basketball
Question: For team who has more home won than home lost more than 80%, list the team name and the offense points.
Evidence: home won than home lost more than 80% refers to Divide(Subtract(homeWon, homeLost), games) > 0.8; offense point refers to o_fgm
SQL: SELECT name, o_pts FROM teams WHERE CAST((homeWon - homeLost) AS REAL) * 100 / games > 80
Database: professional_basketball
Question: What is the percentage of the teams who had post season (playoff) were ranked number 1?
Evidence: had post season (play off) refers to playoff is not null; percentage = Divide (Count(Team where rank = 1, Count(Team))) * 100
SQL: SELECT CAST(SUM(CASE WHEN rank = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(name) FROM teams
Database: professional_basketball
Question: Who is the coach for 'BOS' team in year 1950. List the coach ID together with the number of game won and lost.
Evidence: 'BOS' is the tmID; 1950 refers to year = 1950; number of game won refers to won; number of game lost refers to lost
SQL: SELECT coachID, won, lost FROM coaches WHERE year = 1950 AND tmID = 'BOS'
Database: professional_basketball
Question: Who is the longest serving coach from year 1970 to 1980. List the coach ID and the team(s) he served.
Evidence: 1970 to 1980 refers to year between 1970 and 1980; longest serving coach Max(Count(coachID)); team(s) he served refers to tmID
SQL: SELECT coachID, tmID FROM coaches WHERE year BETWEEN 1970 AND 1980 ORDER BY stint DESC LIMIT 1
Database: professional_basketball
Question: In year 2000, who are the coaches with more than 50 games won. List the coachID, team name and number of game won at home game.
Evidence: more than 50 games won refers to won > 50
SQL: SELECT T1.coachID, T2.name, T2.won FROM coaches AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year = 2000 AND T2.won > 50
Database: professional_basketball
Question: List all the coaches with more game lost than won from year 2000-2010. List the coach ID, team name and year.
Evidence: from year 2000 to 2010 refers to year between 2000 and 2010; more game lost then won refers to lost > won
SQL: SELECT DISTINCT T1.coachID, T2.tmID, T1.year FROM coaches AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year BETWEEN 2000 AND 2010 AND T2.lost > T2.won
Database: professional_basketball
Question: Which are the teams coached by 'adelmri01' from year 1990-1995. List the team name, year and offense point.
Evidence: year 1990-1995 refers to year between 1990 and 1995; 'adelmri01' is the coachID; offense point refers to o_fgm
SQL: SELECT T2.name, T1.year, T2.o_pts FROM coaches AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year BETWEEN 1990 AND 1995 AND T1.coachID = 'adelmri01'
Database: professional_basketball
Question: Which team(s) had 90% games won. List the coach ID for the team and year played.
Evidence: team with 90% games won refers to Divide (won, games) > 0.9
SQL: SELECT DISTINCT T2.name, T1.year, T1.coachID FROM coaches AS T1 INNER JOIN teams AS T2 ON T1.tmID = T2.tmID WHERE CAST(T2.won AS REAL) * 100 / T2.games > 90
Database: professional_basketball
Question: What is the percentage of player who won "All-Defensive First Team" from 1980 - 2000 is from 'NY'.
Evidence: "All-Defensive First Team" is the award; ' NY' is the birthState; 1980 to 2000 refers to year between 1980 and 2000; percentage = Divide (Count(playerID where birthState = 'NY'), Count(playerID)) * 100
SQL: SELECT COUNT(DISTINCT T1.playerID) FROM players AS T1 INNER JOIN awards_players AS T2 ON T1.playerID = T2.playerID WHERE T1.birthState = 'NY' AND T2.award = 'All-Defensive First Team' AND T2.year BETWEEN 1980 AND 2000
Database: professional_basketball
Question: What division did the team coached by the winner of the 1977 NBA Coach of the Year award play in in 1976?
Evidence: "NBA Coach of the Year" is the award; in 1977 refers to year = 1977; in 1976 refers to year = 1976; division refers to divisionID
SQL: SELECT DISTINCT T3.divID FROM awards_coaches AS T1 INNER JOIN coaches AS T2 ON T1.coachID = T2.coachID INNER JOIN teams AS T3 ON T2.tmID = T3.tmID WHERE T1.year = 1977 AND T1.award = 'NBA Coach of the Year' AND T3.year = 1976
Database: professional_basketball
Question: Which coach of the Chicago Bulls during the year 1981 won the NBA Coach of the Year award in the 1970s?
Evidence: "Chicago Bull" is the name of team; during the year 1981 refers to year = 1981; 'NBA Coach of the Year' is the award; in the 1970s refers to year between 1970 to 1979
SQL: SELECT DISTINCT T2.coachID FROM coaches AS T1 INNER JOIN awards_coaches AS T2 ON T1.coachID = T2.coachID INNER JOIN teams AS T3 ON T3.tmID = T1.tmID WHERE T2.award = 'NBA Coach of the Year' AND T2.year BETWEEN 1970 AND 1979 AND T1.year = 1981 AND T3.name = 'Chicago Bulls'
Database: professional_basketball
Question: What is the nickname of the NBA player whose team competed in the Western Conference in the season 2006 and who had a total of two blocks?
Evidence: completed in the Western conference refers to conference = 'West'; in season 2006 refers to season_id = 2006; total of two blocks refers to blocks = 2; nickname refers to nameNick
SQL: SELECT T2.nameNick FROM player_allstar AS T1 INNER JOIN players AS T2 ON T1.playerID = T2.playerID WHERE T1.blocks = 2 AND T1.conference = 'West' AND T1.season_id = 2006
Database: professional_basketball
Question: In what year did the only team to beat the Houston in the final round of postseason series games earn its lowest ranking?
Evidence: beat the Huston refers to tmIDLoser = 'HSM';  in final round of post season refers to round = 'DSF'
SQL: SELECT T2.year FROM series_post AS T1 INNER JOIN teams AS T2 ON T1.tmIDWinner = T2.tmID WHERE T1.round = 'DSF' AND T1.tmIDLoser = 'HSM' ORDER BY T2.rank ASC LIMIT 1
Database: professional_basketball
Question: What is the birth date of the player with the most assists during the 1985 All-Star season?
Evidence: most assist refers to Max(assists); in 1985 All Star season refers to season_id = 1985
SQL: SELECT T1.birthDate FROM players AS T1 INNER JOIN player_allstar AS T2 ON T1.playerID = T2.playerID WHERE T2.season_id = 1985 ORDER BY T2.assists DESC LIMIT 1
Database: professional_basketball
Question: Which player, born in Winter Haven, played 12 minutes per season during the 1980s in the All-Stars?
Evidence: born in Winter Haven refers to birthCity = 'Winter Haven'; during the 1980s in All-Stars refers to season_id = 1980; played in 12 minutes  per season refers to minutes = 12
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 T1.birthCity = 'Winter Haven' AND T2.season_id BETWEEN 1980 AND 1989 AND T2.minutes = 12