db_id
stringlengths
4
31
SQL
stringlengths
18
1.45k
input_sequence
stringlengths
148
11k
question
stringlengths
16
325
hockey
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
Question: for the team had the biggest power play percentage in 2011, who was their coach that season? give the full name. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF,...
for the team had the biggest power play percentage in 2011, who was their coach that season? give the full name.
hockey
select gp from scoringsc where playerid = 'broadpu01' and year = 1922
Question: in the stanley cup finals history, how many games did player id 'broadpu01' play in 1922? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMi...
in the stanley cup finals history, how many games did player id 'broadpu01' play in 1922?
hockey
select count(year) from scoringsc where playerid = 'cleghsp01'
Question: how many years did player id 'cleghsp01' make to the stanley cup finals? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SH...
how many years did player id 'cleghsp01' make to the stanley cup finals?
hockey
select g from scoringsc where playerid = 'dyeba01' and year = 1921
Question: what was the number of goals did player id 'dyeba01' make in the 1921 stanley cup finals? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMi...
what was the number of goals did player id 'dyeba01' make in the 1921 stanley cup finals?
hockey
select playerid from scoringsc order by a desc limit 1
Question: who made the most assists in a single game in the stanley cup finals ? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA,...
who made the most assists in a single game in the stanley cup finals ?
hockey
select lgid from scoringsc where playerid = 'adamsja01' and year = 1920
Question: which league did player id'adamsja01' play in 1920? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC, SHF. Coa...
which league did player id'adamsja01' play in 1920?
hockey
select distinct pos from scoringsc where playerid = 'hartgi01'
Question: what position did player id 'hartgi01' play in his stanley cup finals performance? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PP...
what position did player id 'hartgi01' play in his stanley cup finals performance?
hockey
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
Question: for the team which had three different goalies in the 2011 postseason games, how many games did they win in the regular season? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts...
for the team which had three different goalies in the 2011 postseason games, how many games did they win in the regular season?
hockey
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
Question: which year was the goalie who had the most postseaon shots against in 2008 born? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG,...
which year was the goalie who had the most postseaon shots against in 2008 born?
hockey
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'
Question: how many years were there after don waddell retired and became a coach in nhl? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, P...
how many years were there after don waddell retired and became a coach in nhl?
hockey
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
Question: which is the catching hand for the goaltender who had the most shutouts in 1996? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG,...
which is the catching hand for the goaltender who had the most shutouts in 1996?
hockey
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
Question: when was the birthday for the goalie who had most goal againsts in 1965 season? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, ...
when was the birthday for the goalie who had most goal againsts in 1965 season?
hockey
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
Question: for he who had the highest plus / minus on the court in the 1981 season, what's his full name? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, Be...
for he who had the highest plus / minus on the court in the 1981 season, what's his full name?
hockey
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
Question: what's the weight of the player who had the most power play goals in the 21st century? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor...
what's the weight of the player who had the most power play goals in the 21st century?
hockey
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
Question: for the player who scored 7 shorthanded goals in 1989, what's his dominant hand? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG,...
for the player who scored 7 shorthanded goals in 1989, what's his dominant hand?
hockey
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
Question: who was the most clutch player in 1986? give his full name. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC, ...
who was the most clutch player in 1986? give his full name.
hockey
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'
Question: how many shots on goal did cam neely had in the year of 1990? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC...
how many shots on goal did cam neely had in the year of 1990?
hockey
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
Question: who was the coach for the team which had the most bench minors penalty in 2003 | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, P...
who was the coach for the team which had the most bench minors penalty in 2003
hockey
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
Question: for the goalies whose weight are above 190, who had most goal againsts in 1978 season? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor...
for the goalies whose weight are above 190, who had most goal againsts in 1978 season?
hockey
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.coac...
Question: what is the percentage of winning rate of improvement since alain vigneault became the coach of vancouver canucks in 2006 season? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, P...
what is the percentage of winning rate of improvement since alain vigneault became the coach of vancouver canucks in 2006 season?
hockey
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
Question: for the goalie who had the highest defensive success rate in the postseason of 2011, what's his legends id ? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA,...
for the goalie who had the highest defensive success rate in the postseason of 2011, what's his legends id ?
hockey
select count(playerid) from master where playerid is not null and coachid is not null
Question: how many former athletes go on to become coaches after retiring? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, ...
how many former athletes go on to become coaches after retiring?
hockey
select benchminor, name from teams order by t desc limit 1
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. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, play...
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.
hockey
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
Question: which nhl award was most frequently won by the coach with the most wins? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SH...
which nhl award was most frequently won by the coach with the most wins?
hockey
select cast(sum(ppg) as real) * 100 / sum(ppc) from teams group by tmid order by sum(l) desc limit 1
Question: what is the power play percentage of the team with the most number of loses? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC...
what is the power play percentage of the team with the most number of loses?
hockey
select cast(count(name) as real) / 30 from hof where year between 1950 and 1980 and category = 'player'
Question: how many players were included in the hall of fame on average between 1950 and 1980? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, ...
how many players were included in the hall of fame on average between 1950 and 1980?
hockey
select distinct birthcountry, birthyear from master group by birthcountry, birthyear order by count(birthcountry) desc limit 1
Question: which country produced the most number of hockey players? identify which year was most of the hockey players are born. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, So...
which country produced the most number of hockey players? identify which year was most of the hockey players are born.
hockey
select sum(w) from goalies group by tmid order by sum(sho) desc limit 1
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? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, ...
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?
hockey
select tmid from teamsplits where year = '2005' order by rw desc limit 1
Question: which team recorded the most number of road victories in 2005? indicate the team id. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, ...
which team recorded the most number of road victories in 2005? indicate the team id.
hockey
select pos from master where birthyear is not null order by birthyear, birthmon, birthday limit 8
Question: what is the position of the 9th oldest hockey player? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC, SHF. C...
what is the position of the 9th oldest hockey player?
hockey
select sum(postga) from goalies where lgid = 'wchl' and year = '1924' group by playerid order by sum(postga) desc limit 1
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? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW,...
how many goals were scored while the goalkeeper was on the ice in the 1924 wchl by the goalie with the most goals scored?
hockey
select octl, tmid from teamsplits where year = '2006' order by octl desc limit 1
Question: in 2006, what is the overall number of october defeats for the team with the most october defeats? indicate the team id. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, ...
in 2006, what is the overall number of october defeats for the team with the most october defeats? indicate the team id.
hockey
select count(playerid) from master where shootcatch is null and firstnhl = '2011'
Question: how many players, whose shooting/catching hand is both left and right, debuted their first nhl in 2011? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name...
how many players, whose shooting/catching hand is both left and right, debuted their first nhl in 2011?
hockey
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
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? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, ...
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?
hockey
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')
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? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, di...
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?
hockey
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
Question: what is the total amount of assists of the nhl player with the most assists in history? please indicate his/her full name. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW...
what is the total amount of assists of the nhl player with the most assists in history? please indicate his/her full name.
hockey
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
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. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franc...
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.
hockey
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
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. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pt...
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.
hockey
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'
Question: what is the name of the losing team during an exhibition game in 1912? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA,...
what is the name of the losing team during an exhibition game in 1912?
hockey
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.`+/-`) as...
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. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year,...
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.
hockey
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
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? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W...
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?
hockey
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
Question: how old was the goaltender who scored the fewest goals while on the ice when he retired from the nhl? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, ...
how old was the goaltender who scored the fewest goals while on the ice when he retired from the nhl?
hockey
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
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. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, fr...
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.
hockey
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
Question: how many games did the coach who received the first-ever second team all-star award play before receiving such award? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL...
how many games did the coach who received the first-ever second team all-star award play before receiving such award?
hockey
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
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. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, ...
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.
hockey
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
Question: among the teams whose shorthanded goals are between 1 to 5, which player is the most trustworthy in the critical moment? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, ...
among the teams whose shorthanded goals are between 1 to 5, which player is the most trustworthy in the critical moment?
hockey
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
Question: in 1997, how many loss did the coach have who temporary coached tampa bay lightning? indicate his/her coach id. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, ...
in 1997, how many loss did the coach have who temporary coached tampa bay lightning? indicate his/her coach id.
hockey
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
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. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, h...
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.
hockey
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
Question: what is the name of the coach whose team placed 4th in the 1969 game? indicate their coachid. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, Ben...
what is the name of the coach whose team placed 4th in the 1969 game? indicate their coachid.
hockey
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
Question: between 1917 to 1920, what are the names of the team who ranked first in the first half of the season each year? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF,...
between 1917 to 1920, what are the names of the team who ranked first in the first half of the season each year?
hockey
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
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. | Tables: AwardsMisc -> name, ID, award, year, lgID, no...
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.
hockey
select cast(sum(benchminor) as real) / 2 from teams where name = 'st. louis blues'
Question: how many bench minor penalties did the team st. louis blues got in total in all the games? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchM...
how many bench minor penalties did the team st. louis blues got in total in all the games?
hockey
select cast(ppg as real) / ppc from teams where year = 2009 and name = 'new york rangers'
Question: what is the power play chances of new york rangers in 2009? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC, ...
what is the power play chances of new york rangers in 2009?
hockey
select sum(pts), year from teams group by year, tmid order by sum(pts) desc limit 1
Question: what is the highest total points a team got in a year? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC, SHF. ...
what is the highest total points a team got in a year?
hockey
select count(tmid) from teams where year = 2006 and w > l and pts > 100
Question: among the teams that had more wins than loses in the year 2006, how many of them have over 100 points? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name,...
among the teams that had more wins than loses in the year 2006, how many of them have over 100 points?
hockey
select name from teams where year = 2006 group by tmid, name order by cast(sum(benchminor) as real) / 2 desc limit 1
Question: which team got the most bench minor penalties in 2006? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC, SHF. ...
which team got the most bench minor penalties in 2006?
hockey
select name from teams where year = 2006 group by tmid, name order by sum(pim) desc limit 3
Question: please list the first 3 teams that got the most penalty minutes in 2006. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SH...
please list the first 3 teams that got the most penalty minutes in 2006.
hockey
select name from teams where year = 1995 and name in ('florida panthers', 'edmonton oilers', 'los angeles kings') order by pkc desc limit 1
Question: which team had the highest penalty kill chances in 1995, florida panthers, edmonton oilers or los angeles kings? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF,...
which team had the highest penalty kill chances in 1995, florida panthers, edmonton oilers or los angeles kings?
hockey
select t2.name from teamssc as t1 inner join teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t1.year = '1917' and t1.w > t1.l
Question: what is the name of the team that got more wins than loses in the stanley cup finals in 1917? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, Ben...
what is the name of the team that got more wins than loses in the stanley cup finals in 1917?
hockey
select t2.name from teamssc as t1 inner join teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t1.year = '1922'
Question: please list the teams that have played in 1922's stanley cup finals. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, P...
please list the teams that have played in 1922's stanley cup finals.
hockey
select count(t1.tmid) from teamssc as t1 inner join teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t1.year = '1922' and t2.pts > 20
Question: among the teams that played in 1922's stanley cup finals, how many of them had over 20 points in that year? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, ...
among the teams that played in 1922's stanley cup finals, how many of them had over 20 points in that year?
hockey
select t1.pim from teamssc as t1 inner join teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t1.year = '1923' and t2.rank = 2
Question: what were the penalty minutes in 1923's stanley cup finals of the team that ranked second in that year? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name...
what were the penalty minutes in 1923's stanley cup finals of the team that ranked second in that year?
hockey
select t2.name from teamssc as t1 inner join teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year group by t2.name order by sum(t1.w) desc limit 1
Question: which team got the most wins in the stanley cup finals? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC, SHF....
which team got the most wins in the stanley cup finals?
hockey
select t1.w from teamvsteam as t1 inner join teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t1.year = 1985 and t1.tmid = ( select distinct tmid from teams where name = 'philadelphia flyers' ) and t1.oppid = ( select distinct tmid from teams where name = 'boston bruins' )
Question: how many wins did the philadelphia flyers have over the boston bruins in 1985? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, P...
how many wins did the philadelphia flyers have over the boston bruins in 1985?
hockey
select t2.name, t3.name from teamvsteam as t1 inner join teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year inner join teams as t3 on t1.year = t3.year and t1.oppid = t3.tmid where t1.year = 1909 and t1.t = 1
Question: please list the names of the teams that had a tie in 1909. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC, S...
please list the names of the teams that had a tie in 1909.
hockey
select distinct t3.firstname from coaches as t1 inner join teams as t2 on t1.year = t2.year and t1.tmid = t2.tmid inner join master as t3 on t1.coachid = t3.coachid where t2.name = 'montreal canadiens'
Question: please list the first names of the coaches who have taught the montreal canadiens. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PP...
please list the first names of the coaches who have taught the montreal canadiens.
hockey
select count(distinct hofid) from coaches as t1 inner join teams as t2 on t1.year = t2.year and t1.tmid = t2.tmid inner join master as t3 on t1.coachid = t3.coachid where t2.name = 'montreal canadiens'
Question: how many coaches of the montreal canadiens have gotten in the hall of fame? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC,...
how many coaches of the montreal canadiens have gotten in the hall of fame?
hockey
select t3.height from coaches as t1 inner join teams as t2 on t1.year = t2.year and t1.tmid = t2.tmid inner join master as t3 on t1.coachid = t3.coachid where t2.name = 'montreal canadiens' and t3.coachid is not null order by t3.height desc limit 1
Question: please give the height of the tallest coach of the montreal canadiens. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA,...
please give the height of the tallest coach of the montreal canadiens.
hockey
select t3.firstname from coaches as t1 inner join teamssc as t2 on t1.year = t2.year and t1.tmid = t2.tmid inner join master as t3 on t1.coachid = t3.coachid where t2.year = 1922
Question: please list the first names of the coaches whose team played in 1922's stanley cup finals. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchM...
please list the first names of the coaches whose team played in 1922's stanley cup finals.
hockey
select count(distinct t3.coachid) from coaches as t1 inner join teams as t2 on t1.year = t2.year and t1.tmid = t2.tmid inner join master as t3 on t1.coachid = t3.coachid where t2.name = 'philadelphia flyers' and t3.birthmon = 3
Question: among the coaches who have taught the philadelphia flyers, how many of them are born in march? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, Be...
among the coaches who have taught the philadelphia flyers, how many of them are born in march?
hockey
select count(distinct t3.coachid) from coaches as t1 inner join teams as t2 on t1.year = t2.year and t1.tmid = t2.tmid inner join master as t3 on t1.coachid = t3.coachid where t2.name = 'philadelphia flyers' and t3.birthcountry = 'usa'
Question: among the coaches who are born in the usa, how many of them used to train the philadelphia flyers? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM...
among the coaches who are born in the usa, how many of them used to train the philadelphia flyers?
hockey
select count(distinct t3.coachid) from coaches as t1 inner join teams as t2 on t1.year = t2.year and t1.tmid = t2.tmid inner join master as t3 on t1.coachid = t3.coachid where t2.name = 'buffalo sabres' and t3.deathyear is not null
Question: how many coaches who have taught the buffalo sabres have died? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PK...
how many coaches who have taught the buffalo sabres have died?
hockey
select distinct namenick from coaches as t1 inner join teams as t2 on t1.year = t2.year and t1.tmid = t2.tmid inner join master as t3 on t1.coachid = t3.coachid where t2.name = 'buffalo sabres' and t3.birthcountry = 'usa'
Question: please list the nick names of the coaches who are from the usa and have taught the buffalo sabres. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM...
please list the nick names of the coaches who are from the usa and have taught the buffalo sabres.
hockey
select count(distinct t3.coachid) from coaches as t1 inner join teamssc as t2 on t1.year = t2.year and t1.tmid = t2.tmid inner join master as t3 on t1.coachid = t3.coachid where t2.year = 1922 and t3.birthcountry = 'usa'
Question: among the coaches who taught the teams in 1922's stanley cup finals, how many of them are from the usa? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name...
among the coaches who taught the teams in 1922's stanley cup finals, how many of them are from the usa?
hockey
select t3.name from teamvsteam as t1 inner join teams as t2 on t1.year = t2.year and t1.oppid = t2.tmid inner join teams as t3 on t1.year = t3.year and t1.tmid = t3.tmid where t1.year = 2000 and t2.name = 'buffalo sabres' group by t3.name order by sum(t2.g) desc limit 1
Question: in the year 2000, which team has played the most games against the buffalo sabres? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PP...
in the year 2000, which team has played the most games against the buffalo sabres?
hockey
select distinct t3.name from teamvsteam as t1 inner join teams as t2 on t1.year = t2.year and t1.oppid = t2.tmid inner join teams as t3 on t1.year = t3.year and t1.tmid = t3.tmid where t2.name = 'buffalo sabres'
Question: please list the names of all the teams that have played against the buffalo sabres. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, P...
please list the names of all the teams that have played against the buffalo sabres.
hockey
select t2.pim from teams as t1 inner join teamssc as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t1.name = 'montreal canadiens' and t1.year = 1918
Question: how many penalty minutes did the montreal canadiens have in the 1918's stanley cup finals? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchM...
how many penalty minutes did the montreal canadiens have in the 1918's stanley cup finals?
hockey
select t2.w from teams as t1 inner join teamssc as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t1.name = 'montreal canadiens' and t2.pim = 24
Question: in the year that the montreal canadiens had 24 penalty minutes in the stanley cup finals, how many wins did the team had in total? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, ...
in the year that the montreal canadiens had 24 penalty minutes in the stanley cup finals, how many wins did the team had in total?
hockey
select t1.year from teams as t1 inner join teamssc as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t1.name = 'montreal canadiens' and t2.pim = 49
Question: in which year did the montreal canadiens have 49 penalty minutes in the stanley cup finals? was it 1924, 1923 or 1918? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, So...
in which year did the montreal canadiens have 49 penalty minutes in the stanley cup finals? was it 1924, 1923 or 1918?
hockey
select t3.firstname from coaches as t1 inner join teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year inner join master as t3 on t1.coachid = t3.coachid where t2.name = 'montreal canadiens' order by t1.year limit 1
Question: which coach was the first one to teach the montreal canadiens, please give his first name. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchM...
which coach was the first one to teach the montreal canadiens, please give his first name.
hockey
select sum(cast(t2.w as real) / t2.g) / count(t1.oppid) from teamvsteam as t1 inner join teams as t2 on t1.year = t2.year and t1.tmid = t2.tmid where t2.name = 'buffalo sabres' and t1.year = 2000
Question: what is the average winning rate of the buffalo sabres in 2000? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, P...
what is the average winning rate of the buffalo sabres in 2000?
hockey
select cast(sum(t2.pim) as real) / count(t2.pim) from teams as t1 inner join teamssc as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t1.name = 'montreal canadiens'
Question: how many penalty minutes did the montreal canadiens have on average in the stanley cup finals? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, Be...
how many penalty minutes did the montreal canadiens have on average in the stanley cup finals?
hockey
select sum(t2.w / t2.g) / sum(t2.g + t2.w) from teams as t1 inner join teamssc as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t1.name = 'montreal canadiens'
Question: what is the average winning rate of the montreal canadiens in the stanley cup finals? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor,...
what is the average winning rate of the montreal canadiens in the stanley cup finals?
hockey
select sum(cast(t2.w as real) / t2.g) / sum(t2.g + t2.w) from teams as t1 inner join teamssc as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t1.name = 'montreal canadiens'
Question: what is the percentage of american coaches among all the coaches who taught the montreal canadiens? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PI...
what is the percentage of american coaches among all the coaches who taught the montreal canadiens?
hockey
select name from hof where category in ('player', 'builder') order by year desc limit 1
Question: who was the latest non player/builder to become the hall of famer? give the full name. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor...
who was the latest non player/builder to become the hall of famer? give the full name.
hockey
select name, hofid from hof where category = 'builder' and year between 1970 and 1979
Question: for all the referees, who became a hall of famer in the 1970s? what's his hofid? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG,...
for all the referees, who became a hall of famer in the 1970s? what's his hofid?
hockey
select count(hofid) from hof where category = 'player' and year = 1958
Question: in the year 1958, what is the total number of players that became hall of famers? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG...
in the year 1958, what is the total number of players that became hall of famers?
hockey
select count(playerid) from master where hofid is not null and playerid is not null and coachid is not null
Question: how many hall of famers both played and coached in the league? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PK...
how many hall of famers both played and coached in the league?
hockey
select count(playerid) from master where lastname = 'green' and coachid is null
Question: what is the number of players whose last name is green that played in the league but not coached? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM,...
what is the number of players whose last name is green that played in the league but not coached?
hockey
select t2.benchminor from coaches as t1 inner join teams as t2 on t1.year = t2.year and t1.tmid = t2.tmid inner join master as t3 on t1.coachid = t3.coachid where t3.firstname = 'scotty' and t3.lastname = 'bowman' and t1.year = 1982
Question: for the team that scotty bowman coached in 1982, how many bench minor penalties did they have that year? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, nam...
for the team that scotty bowman coached in 1982, how many bench minor penalties did they have that year?
hockey
select t2.firstname, t2.lastname from goalies as t1 inner join master as t2 on t1.playerid = t2.playerid where t1.eng = 10 order by t2.height desc limit 1
Question: among the players who had 10 empty net goals in their career, who is the tallest? show his full name. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, ...
among the players who had 10 empty net goals in their career, who is the tallest? show his full name.
hockey
select t2.shootcatch, t2.firstname, t2.lastname from goalies as t1 inner join master as t2 on t1.playerid = t2.playerid and t1.year = 1973 where t1.tmid = 'qun' and t1.gp = 32
Question: which was the dominant hand for the goaltender who played 32 games for qun in 1973? give the full name. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name...
which was the dominant hand for the goaltender who played 32 games for qun in 1973? give the full name.
hockey
select count(distinct t1.tmid) from goalies as t1 inner join master as t2 on t1.playerid = t2.playerid where t2.lastname = 'young'
Question: for the goalie whose last name is 'young', how many teams did he play in? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, S...
for the goalie whose last name is 'young', how many teams did he play in?
hockey
select t2.firstname, t2.lastname , iif(t1.tmid = 'bos', 'yes', 'no') from goalies as t1 inner join master as t2 on t1.playerid = t2.playerid where t1.year = 1972 and t1.tmid = 'bos' and t2.coachid is not null and t2.hofid is null
Question: for the goalkeeper that became a coach than a hall of famer, who played for bos in 1972? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMin...
for the goalkeeper that became a coach than a hall of famer, who played for bos in 1972?
hockey
select sum(t1.gp) from goalies as t1 inner join master as t2 on t1.playerid = t2.playerid where t2.legendsid = 'p196402'
Question: for the goalie whose legendsid is 'p196402' , how many games did he play in the league? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMino...
for the goalie whose legendsid is 'p196402' , how many games did he play in the league?
hockey
select t2.firstname, t2.lastname from goalies as t1 inner join master as t2 on t1.playerid = t2.playerid inner join teams as t3 on t1.tmid = t3.tmid and t1.year = t3.year where t3.name = 'quebec bulldogs' and t2.pos = 'd' group by t1.playerid, t2.firstname, t2.lastname order by sum(t1.min) desc limit 1
Question: in the history of all the quebec bulldogs, which goalie had the most play minutes for the team? give the full name. | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, ...
in the history of all the quebec bulldogs, which goalie had the most play minutes for the team? give the full name.
hockey
select count(distinct playerid) from goalies as t1 inner join teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t2.name = 'calgary flames'
Question: how many goalies played for calgary flames? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, PKC, SHF. Coaches -> ...
how many goalies played for calgary flames?
hockey
select playerid from goalies as t1 inner join teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t2.name = 'minnesota north stars' group by t1.playerid order by sum(t1.ga) desc limit 1
Question: which minnesota north stars' goalkeeper had the most goal againsts in his play time? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, ...
which minnesota north stars' goalkeeper had the most goal againsts in his play time?
hockey
select count(distinct t1.playerid) from goalies as t1 inner join master as t2 on t1.playerid = t2.playerid inner join teams as t3 on t1.tmid = t3.tmid and t1.year = t3.year where t3.name = 'haileybury hockey club' and t2.hofid is not null
Question: how many haileybury hockey club goalies became a hall of famer? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC, SHA, PKG, P...
how many haileybury hockey club goalies became a hall of famer?
hockey
select t2.shootcatch from goalies as t1 inner join master as t2 on t1.playerid = t2.playerid where t1.year = 2010 group by t2.shootcatch order by sum(t1.sho) desc limit 1
Question: for the goalie who had the most shutouts in 2010, what's his catching hand? | Tables: AwardsMisc -> name, ID, award, year, lgID, note. HOF -> year, hofID, name, category. Teams -> year, lgID, tmID, franchID, confID, divID, rank, playoff, G, W, L, T, OTL, Pts, SoW, SoL, GF, GA, name, PIM, BenchMinor, PPG, PPC,...
for the goalie who had the most shutouts in 2010, what's his catching hand?