Chinastark/bird_dataset huggingface dataset:
Database: hockey
Question: For the goalie who had the most shutouts in 2010, what's his catching hand?
Evidence: the most shutouts refers to max(SHO); shootCatch = 'L' refers to lefthand; shootCatch = 'R' refers to righthand; shootCatch = 'null' or 'empty' means this player is good at both left and right hand
SQL: SELECT T1.shootCatch FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 2010 GROUP BY T2.playerID ORDER BY SUM(T2.SHO) DESC LIMIT 1
Database: hockey
Question: Who is the youngest goalie among those who had more than 150 goal againsts in 2002 season?
Evidence: youngest goalie refers to max(birthYear/birthMon/birthDay); more than 150 goal againsts refers to GA>150
SQL: SELECT T1.firstName, T1.lastName FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 2002 AND T2.GA > 150 GROUP BY T2.playerID, T1.birthYear, T1.birthMon, T1.birthMon HAVING SUM(T2.GA) ORDER BY T1.birthYear DESC, T1.birthMon DESC, SUM(T1.birthDay) DESC LIMIT 1
Database: hockey
Question: In the history of team id NJD, which goalie saved the most goal attempts? Give his full name.
Evidence: saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID
SQL: SELECT T1.firstName, T1.lastName FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.tmID = 'NJD' GROUP BY T2.playerID ORDER BY SUM(T2.SA - T2.GA) DESC LIMIT 1
Database: hockey
Question: Which teams had the most postseason empty net goals in 2010 season? List their team names.
Evidence: most postseason empty net goals refers to max(PostENG)
SQL: SELECT T2.name FROM Goalies AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID WHERE T1.year = 2010 GROUP BY T2.name ORDER BY SUM(PostENG) DESC LIMIT 1
Database: hockey
Question: For the team which had the most postseason shutouts in 1995, how many points did they have that year?
Evidence: points refer to Pts; the most postseason shutouts refers to max(PostSHO)
SQL: SELECT SUM(T2.SHO) FROM Scoring AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1995 GROUP BY T2.tmID ORDER BY SUM(T2.PostSHO) DESC LIMIT 1
Database: hockey
Question: Which coach had the highest winning rates in the 2009 season? What's coach's nickname.
Evidence: the highest winning rate refer to divide(W, sum(W, L))
SQL: SELECT T2.coachID, T1.nameNick FROM Master AS T1 INNER JOIN Coaches AS T2 ON T1.coachID = T2.coachID WHERE T2.year = 2009 ORDER BY CAST(T2.W AS REAL) / (T2.W + T2.L) DESC LIMIT 1
Database: hockey
Question: For the team had the biggest power play percentage in 2011, who was their coach that season? Give the full name.
Evidence: the biggest power play percentage = max(divide(PPG, PPC))
SQL: SELECT T1.coachID FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID WHERE T2.year = 2011 ORDER BY CAST(T2.PPG AS REAL) / T2.PPC DESC LIMIT 1
Database: hockey
Question: In the Stanley Cup finals history, how many games did player id "broadpu01" play in 1922?
Evidence: the number of games refers to GP
SQL: SELECT GP FROM ScoringSC WHERE playerID = 'broadpu01' AND YEAR = 1922
Database: hockey
Question: How many years did player Id "cleghsp01" make to the Stanley Cup finals?
Evidence: the number of years refers to count(year)
SQL: SELECT COUNT(year) FROM ScoringSC WHERE playerID = 'cleghsp01'
Database: hockey
Question: What was the number of goals did player Id "dyeba01" make in the 1921 Stanley Cup finals?
Evidence: the number of goals refers to G
SQL: SELECT G FROM ScoringSC WHERE playerID = 'dyeba01' AND year = 1921
Database: hockey
Question: Who made the most assists in a single game in the Stanley Cup finals ?
Evidence: the most assists refers to max(A)
SQL: SELECT playerID FROM ScoringSC ORDER BY A DESC LIMIT 1
Database: hockey
Question: Which league did player id"adamsja01" play in 1920?
Evidence: which league refers to lgID
SQL: SELECT lgID FROM ScoringSC WHERE playerID = 'adamsja01' AND year = 1920
Database: hockey
Question: What position did player id "hartgi01" play in his Stanley Cup finals performance?
Evidence: position refers to pos
SQL: SELECT DISTINCT pos FROM ScoringSC WHERE playerID = 'hartgi01'
Database: hockey
Question: For the team which had three different goalies in the 2011 postseason games, how many games did they win in the regular season?
Evidence: three different goalies refer to count(playerID) = 3; game won refers to W
SQL: SELECT SUM(T2.W) FROM Goalies AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID WHERE T2.year = 2011 GROUP BY T1.tmID HAVING COUNT(DISTINCT T1.playerID) = 3
Database: hockey
Question: Which year was the goalie who had the most postseaon shots Against in 2008 born?
Evidence: the most postseason shots Against refers to max(PostSA); year born refers to birthYear
SQL: SELECT T1.birthYear FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 2008 ORDER BY T2.PostSA DESC LIMIT 1
Database: hockey
Question: How many years were there after Don Waddell retired and became a coach in NHL?
Evidence: after retired and became a coach refers to max(subtract(year, lastNHL))
SQL: SELECT MAX(T2.year) - MIN(T2.year) FROM Master AS T1 INNER JOIN Coaches AS T2 ON T1.coachID = T2.coachID WHERE T1.firstName = 'Don' AND T1.lastName = 'Waddell'
Database: hockey
Question: Which is the catching hand for the goaltender who had the most shutouts in 1996?
Evidence: the most shutouts refers to max(SHO); catching hand for the goaltender refers to shootCatch; shootCatch = 'L' refers to lefthand; shootCatch = 'R' refers to righthand; shootCatch = 'null' or 'empty' means this player is good at both left and right hand
SQL: SELECT T1.shootCatch FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1996 ORDER BY T2.SHO DESC LIMIT 1
Database: hockey
Question: When was the birthday for the goalie who had most goal againsts in 1965 season?
Evidence: Birthday refers to CONCAT(birthYear / birthMon / birthDate);most goal against refers to MAX(GA);1965 season refers to year = '1965'


SQL: SELECT T1.birthYear, T1.birthMon, birthDay FROM Master AS T1 INNER JOIN Goalies AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1965 ORDER BY T2.GA DESC LIMIT 1
Database: hockey
Question: For he who had the highest plus / minus on the court in the 1981 season, what's his full name?
Evidence: highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'


SQL: SELECT T1.firstName, T1.lastName FROM Master AS T1 INNER JOIN Scoring AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1981 GROUP BY T2.playerID ORDER BY SUM(T2.`+/-`) DESC LIMIT 1
Database: hockey
Question: What's the weight of the player who had the most Power Play Goals in the 21st century?
Evidence: 21st century refers to year >2000; Power play goals refers to PPG
SQL: SELECT T1.weight FROM Master AS T1 INNER JOIN Scoring AS T2 ON T1.playerID = T2.playerID WHERE T2.year > 2000 GROUP BY T1.playerID, T1.weight ORDER BY SUM(T2.PPG) DESC LIMIT 1
Database: hockey
Question: For the player who scored 7 shorthanded goals in 1989, what's his dominant hand?
Evidence: 1989 refers to the year of scoring; "dominant hand" and "shooting hand" are synonyms which refers to shootCatch


SQL: SELECT T1.shootCatch FROM Master AS T1 INNER JOIN Scoring AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1989 GROUP BY T2.playerID HAVING SUM(T2.SHG) = 7
Database: hockey
Question: Who was the most clutch player in 1986? Give his full name.
Evidence: clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played
SQL: SELECT T1.firstName, T1.lastName FROM Master AS T1 INNER JOIN Scoring AS T2 ON T1.playerID = T2.playerID WHERE T2.year = 1986 GROUP BY T2.playerID ORDER BY SUM(T2.GWG) DESC LIMIT 1
Database: hockey
Question: How many shots on goal did Cam Neely had in the year of 1990?
Evidence: 1990 refers to the year played; Shot on goal refers to SOG

SQL: SELECT T2.SOG FROM Master AS T1 INNER JOIN Scoring AS T2 ON T1.playerID = T2.playerID WHERE T1.firstName = 'Cam' AND T1.lastName = 'Neely' AND T2.year = '1990'
Database: hockey
Question: Who was the coach for the team which had the most bench minors penalty in 2003？
Evidence: Coach of the team refers to firstName+lastName; 2003 refers to the year


SQL: SELECT DISTINCT T3.firstName, T3.lastName FROM Teams AS T1 INNER JOIN Coaches AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year INNER JOIN Master AS T3 ON T2.coachID = T3.coachID WHERE T1.year = '2003' GROUP BY T3.firstName, T3.lastName ORDER BY SUM(T1.BenchMinor) DESC LIMIT 1
Database: hockey
Question: For the goalies whose weight are above 190, who had most goal againsts in 1978 season?
Evidence: Weight of above 190 refers to weight >190; 1978 season refers to the year played
SQL: SELECT T1.playerID FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.year = '1978' AND T2.weight > 190 ORDER BY T1.GA DESC LIMIT 1
Database: hockey
Question: What is the percentage of winning rate of improvement since Alain Vigneault became the coach of Vancouver Canucks in 2006 season?
Evidence: winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'
Winning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))

SQL: SELECT SUM(CASE WHEN T1.year = 2006 THEN CAST(T1.W AS REAL) * 100 / (T1.W + T1.L) ELSE 0 END) - ( SELECT CAST(W AS REAL) * 100 / (W + L) FROM Teams WHERE year = '2005' AND name = 'Vancouver Canucks' ) FROM Teams AS T1 INNER JOIN Coaches AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year INNER JOIN Master AS T3 ON T2.coachID = T3.coachID WHERE T1.name = 'Vancouver Canucks' AND T3.firstName = 'Alain' AND T3.lastName = 'Vigneault'
Database: hockey
Question: For the goalie who had the highest defensive success rate in the postseason of 2011, what's his legends ID ?
Evidence: Post season of 2011 refers to year = ’2011’
defensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)

SQL: SELECT T2.legendsID FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.year = 2011 ORDER BY 1 - CAST(T1.PostGA AS REAL) / T1.PostSA DESC LIMIT 1
Database: hockey
Question: How many former athletes go on to become coaches after retiring?
SQL: SELECT COUNT(playerID) FROM Master WHERE playerID IS NOT NULL AND coachID IS NOT NULL
Database: hockey
Question: Among the teams with the most number of ties, how many penalty was committed by a player or coach that is not on the ice? Indicate the name of the team.
Evidence: penalty refers to BenchMinor; Ties refer to T
SQL: SELECT BenchMinor, name FROM Teams ORDER BY T DESC LIMIT 1
Database: hockey
Question: Which NHL award was most frequently won by the coach with the most wins?
SQL: SELECT award FROM Teams AS T1 INNER JOIN AwardsCoaches AS T2 ON T1.lgID = T2.lgID WHERE T1.lgID = 'NHL' GROUP BY T2.coachID, T2.award ORDER BY COUNT(T2.award) DESC LIMIT 1
Database: hockey
Question: What is the power play percentage of the team with the most number of loses?
Evidence: Power play percentage refers to PPG, most number of loses refers to MAX(L)


SQL: SELECT CAST(SUM(PPG) AS REAL) * 100 / SUM(PPC) FROM Teams GROUP BY tmID ORDER BY SUM(L) DESC LIMIT 1
Database: hockey
Question: How many players were included in the Hall of Fame on average between 1950 and 1980?
Evidence: year BETWEEN 1950 and 1980; average = DIVIDE(COUNT(hofID)), 30)


SQL: SELECT CAST(COUNT(name) AS REAL) / 30 FROM HOF WHERE year BETWEEN 1950 AND 1980 AND category = 'Player'
Database: hockey
Question: Which country produced the most number of hockey players? Identify which year was most of the hockey players are born.
Evidence: Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born

SQL: SELECT DISTINCT birthCountry, birthYear FROM Master GROUP BY birthCountry, birthYear ORDER BY COUNT(birthCountry) DESC LIMIT 1
Database: hockey
Question: How many wins does the team have whose goaltender have the most number of successfully stopping the other team from scoring during the entire game?
Evidence: Number of wins refers to W; Shutout refers to SHO; a shutout is credited to a goaltender who successfully stops the other team from scoring during the entire game.

SQL: SELECT SUM(W) FROM Goalies GROUP BY tmID ORDER BY SUM(SHO) DESC LIMIT 1
Database: hockey
Question: Which team recorded the most number of road victories in 2005? Indicate the team ID.
Evidence: road victories refers to rW; team id refers to tmID; victories and wins are synonyms


SQL: SELECT tmID FROM TeamSplits WHERE YEAR = '2005' ORDER BY rW DESC LIMIT 1
Database: hockey
Question: What is the position of the 9th oldest hockey player?
Evidence: position refers to pos; date of birth refers to birthDay + birthMon + birthYear
SQL: SELECT pos FROM Master WHERE birthYear IS NOT NULL ORDER BY birthYear, birthMon, birthDay LIMIT 8
Database: hockey
Question: How many goals were scored while the goalkeeper was on the ice in the 1924 WCHL by the goalie with the most goals scored?
Evidence: WCHL is the league's abbreviated name which refers to lgID = 'WCHL'; most goals scored referst to MAX(PostGA); GA is abbreviation for Post Against which means number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.
SQL: SELECT SUM(PostGA) FROM Goalies WHERE lgID = 'WCHL' AND year = '1924' GROUP BY playerID ORDER BY SUM(PostGA) DESC LIMIT 1
Database: hockey
Question: In 2006, what is the overall number of october defeats for the team with the most October defeats? Indicate the team ID.
Evidence: team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)
SQL: SELECT OctL, tmID FROM TeamSplits WHERE year = '2006' ORDER BY OctL DESC LIMIT 1
Database: hockey
Question: How many players, whose shooting/catching hand is both left and right, debuted their first NHL in 2011?
Evidence: shooting/catching hand is both left and right refers to shootCatch is NULL, debuted their first NHL in 2011 refers to firstNHL = 2011
SQL: SELECT COUNT(playerID) FROM Master WHERE shootCatch IS NULL AND firstNHL = '2011'
Database: hockey
Question: Which year recorded the most number of goals by a player and how old was the player at the time the most number of goals was achieved by him?
Evidence: most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)
SQL: SELECT T1.year, T1.year - T2.birthYear FROM Scoring AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID GROUP BY T1.year, T1.year - T2.birthYear ORDER BY SUM(T1.G) DESC LIMIT 1
Database: hockey
Question: What is the average height of all the goalies born in the 70s who's a left shooting/catching dominant and to which team do the tallest player/s play for most recently?
Evidence: goalies refers to pos = 'G'; born in the 70s refers to birthYear between '1970' and '1979'; left shooting/catching dominant refers to shootCatch = 'L'; tallest refers to max(height); average height = avg(height(pos = 'G' & birthYear between '1970' and '1979' & shootCatch = 'L')); most recently refers to max(Teams.year)
SQL: SELECT CAST(SUM(T2.height) AS REAL) / COUNT(*) FROM AwardsPlayers AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T2.height IS NOT NULL AND (T2.pos = 'LW' OR T2.pos = 'L/C')
Database: hockey
Question: What is the total amount of assists of the NHL player with the most assists in history? Please indicate his/her full name.
Evidence: NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))
SQL: SELECT SUM(T1.A), T2.firstName, T2.lastName FROM Scoring AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.lgID = 'NHL' GROUP BY T2.firstName, T2.lastName ORDER BY SUM(T1.A) DESC LIMIT 1
Database: hockey
Question: What is the power play percentage of the team with the least number of penalty kill chances and to which team were they playing against? Indicate whether the team lost or victorious.
Evidence: least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa
SQL: SELECT SUM(T1.A), T2.firstName, T2.lastName FROM Scoring AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.lgID = 'NHL' GROUP BY T2.firstName, T2.lastName ORDER BY SUM(T1.A) DESC LIMIT 1
Database: hockey
Question: What are the awards won by the coach who coached the team with the most number of victories of all time? Indicate the choach ID.
Evidence: victories' and 'wins' are synonyms; most number of victories refers to max(w)
SQL: SELECT DISTINCT T2.coachID, T1.award FROM AwardsCoaches AS T1 INNER JOIN Coaches AS T2 ON T1.coachID = T2.coachID GROUP BY T2.coachID, T1.award ORDER BY SUM(T2.w) DESC LIMIT 1
Database: hockey
Question: What is the name of the losing team during an exhibition game in 1912?
Evidence: exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser
SQL: SELECT T2.name FROM SeriesPost AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND tmIDLoser = tmID WHERE T1.note = 'EX' AND T2.year = '1912'
Database: hockey
Question: How long has the NHL player been playing during the year when he recorded the least number of times being on the ice when a goal is scored for the team versus against the team? Indicate his full name.
Evidence: NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName
SQL: SELECT DISTINCT T3.firstNHL - T1.year, T3.nameGiven , T3.firstName, T3.lastName FROM Scoring AS T1 INNER JOIN Teams AS T2 ON T2.tmID = T1.tmID INNER JOIN Master AS T3 ON T1.playerID = T3.playerID GROUP BY T3.firstName, T3.lastName, T3.nameGiven, T3.firstNHL - T1.year, T3.firstName, T3.lastName ORDER BY SUM(T1.`+/-`) ASC LIMIT 1
Database: hockey
Question: Between 2003 to 2005, what are the given names of the players with the most number of games played whose Penalty minutes is between 200 to 250?
Evidence: penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)
SQL: SELECT T2.nameGiven FROM Scoring AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID AND T1.PIM BETWEEN 200 AND 250 AND T1.year BETWEEN 2003 AND 2005 ORDER BY T1.GP DESC LIMIT 1
Database: hockey
Question: How old was the goaltender who scored the fewest goals while on the ice when he retired from the NHL?
Evidence: goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))
SQL: SELECT T2.lastNHL - T2.birthYear FROM GoaliesSC AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T2.lastNHL IS NOT NULL GROUP BY T2.lastNHL, T2.birthYear ORDER BY SUM(GA) LIMIT 1
Database: hockey
Question: Which position has won the most awards and who is the most recent player that was awarded with an award in that position? Indicate the name of the award and the full name of the player.
Evidence: position has won the most awards refers to pos(max(count(award))); most recent player refers to playerID(pos(max(count(award)))& max(year)); full name = nameGiven + lastName
SQL: SELECT T1.pos, T2.award, T1.nameGiven, T1.lastName FROM Master AS T1 INNER JOIN AwardsCoaches AS T2 ON T2.coachID = T1.coachID GROUP BY T1.pos, T2.award, T1.nameGiven, T1.lastName ORDER BY COUNT(T2.award) LIMIT 1
Database: hockey
Question: How many games did the coach who received the first-ever Second Team All-Star award play before receiving such award?
Evidence: first-ever Second Team All-Star award refers to min(year(award = 'Second Team All-Star')); How many games before receiving such award = sum(g(coachID(min(year(award = 'Second Team All-Star')))): g(min(year)))
SQL: SELECT SUM(T1.g) FROM Coaches AS T1 INNER JOIN ( SELECT coachID, year FROM AwardsCoaches WHERE award = 'Second Team All-Star' ORDER BY year LIMIT 1 ) AS T2 ON T1.coachID = T2.coachID AND T1.year < T2.year
Database: hockey
Question: How many teams did the team with the most victories in 1915 play against?
Indicate the name of the team who won the most games in 1915, as well as the names of the opposing team.
Evidence: team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)
SQL: SELECT COUNT(DISTINCT oppID), T2.tmID, T2.oppID FROM Teams AS T1 INNER JOIN TeamVsTeam AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID WHERE T2.year = 1915 GROUP BY T2.tmID, T2.oppID ORDER BY SUM(T2.W) DESC LIMIT 1
Database: hockey
Question: Among the teams whose shorthanded goals are between 1 to 5, which player is the most trustworthy in the critical moment?
Evidence: shorthanded goals refers to SHG; SHG BETWEEN 1 AND 5; most trustworthy in the critical moment refers to max(GWG)
SQL: SELECT T2.nameGiven, T2.lastName FROM Scoring AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T1.SHG BETWEEN 1 AND 5 ORDER BY T1.GWG DESC LIMIT 1
Database: hockey
Question: In 1997, how many loss did the coach have who temporary coached Tampa Bay Lightning? Indicate his/her coach ID.
Evidence: temporary coached refers to notes = 'interim'; number of loss refers to L (to add)
SQL: SELECT SUM(T1.l), T1.coachID FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.notes = 'interim' AND T1.year = '1997' AND T2.name = 'Tampa Bay Lightning' GROUP BY T1.coachID
Database: hockey
Question: Among the players whose short handed assists are greater or equal to 7, what is the final standing of the team with the most number of assists? Indicate the year to which the most number of assists was achieved and the name of the team.
Evidence: short handed assists refers to SHA; SHA> = 7; final standing refers to rank; the final standing of the team with the most number of assists refers to max(A)

SQL: SELECT T2.rank, T2.year, T2.name FROM Scoring AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.SHA >= 7 ORDER BY T1.A DESC LIMIT 1
Database: hockey
Question: What is the name of the coach whose team placed 4th in the 1969 game? Indicate their coachID.
Evidence: name of coach refers to coachID; placed 4th refers to rank = 4; 1969 game refers to year = 1969
SQL: SELECT T1.coachID FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.year = 1969 AND T2.rank = 4
Database: hockey
Question: Between 1917 to 1920, what are the names of the team who ranked first in the first half of the season each year?
Evidence: year BETWEEN 1917 AND 1920; first half of season refers to half = 1
SQL: SELECT DISTINCT T2.name FROM TeamsHalf AS T1 INNER JOIN Teams AS T2 ON T1.tmID = T2.tmID AND T1.year = T2.year WHERE T1.half = 1 AND T1.rank = 1 AND T1.year BETWEEN 1917 AND 1920
Database: hockey
Question: How many Canadian players, between the ages of 18 and 24 when they initially played their first NHL, had a cumulative goal total of no more than 5? Indicate their complete names, the year, and the team for which they scored the specified amount of goals.
Evidence: Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName
SQL: SELECT T2.nameGiven, T2.lastName, T2.birthYear, birthMon, birthDay , T3.tmID FROM Scoring AS T1 INNER JOIN Master AS T2 ON T2.playerID = T1.playerID INNER JOIN Teams AS T3 ON T3.tmID = T1.tmID WHERE (T2.firstNHL - T2.birthYear) BETWEEN 18 AND 24 AND T3.G < 5
Database: hockey
Question: How many bench minor penalties did the team St. Louis Blues got in total in all the games?
SQL: SELECT CAST(SUM(BenchMinor) AS REAL) / 2 FROM Teams WHERE name = 'St. Louis Blues'