db_id
stringclasses 69
values | question
stringlengths 24
325
| evidence
stringlengths 1
673
⌀ | SQL
stringlengths 23
804
| schema
stringclasses 69
values |
---|---|---|---|---|
hockey | For the team had the biggest power play percentage in 2011, who was their coach that season? Give the full name. | the biggest power play percentage = max(divide(PPG, PPC)) | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | In the Stanley Cup finals history, how many games did player id "broadpu01" play in 1922? | the number of games refers to GP | SELECT GP FROM ScoringSC WHERE playerID = 'broadpu01' AND YEAR = 1922 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How many years did player Id "cleghsp01" make to the Stanley Cup finals? | the number of years refers to count(year) | SELECT COUNT(year) FROM ScoringSC WHERE playerID = 'cleghsp01' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | What was the number of goals did player Id "dyeba01" make in the 1921 Stanley Cup finals? | the number of goals refers to G | SELECT G FROM ScoringSC WHERE playerID = 'dyeba01' AND year = 1921 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Who made the most assists in a single game in the Stanley Cup finals ? | the most assists refers to max(A) | SELECT playerID FROM ScoringSC ORDER BY A DESC LIMIT 1 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Which league did player id"adamsja01" play in 1920? | which league refers to lgID | SELECT lgID FROM ScoringSC WHERE playerID = 'adamsja01' AND year = 1920 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | What position did player id "hartgi01" play in his Stanley Cup finals performance? | position refers to pos | SELECT DISTINCT pos FROM ScoringSC WHERE playerID = 'hartgi01' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | For the team which had three different goalies in the 2011 postseason games, how many games did they win in the regular season? | three different goalies refer to count(playerID) = 3; game won refers to W | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Which year was the goalie who had the most postseaon shots Against in 2008 born? | the most postseason shots Against refers to max(PostSA); year born refers to birthYear | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How many years were there after Don Waddell retired and became a coach in NHL? | after retired and became a coach refers to max(subtract(year, lastNHL)) | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Which is the catching hand for the goaltender who had the most shutouts in 1996? | 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 | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | When was the birthday for the goalie who had most goal againsts in 1965 season? | Birthday refers to CONCAT(birthYear / birthMon / birthDate);most goal against refers to MAX(GA);1965 season refers to year = '1965'
| 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | For he who had the highest plus / minus on the court in the 1981 season, what's his full name? | highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'
| 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | What's the weight of the player who had the most Power Play Goals in the 21st century? | 21st century refers to year >2000; Power play goals refers to PPG | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | For the player who scored 7 shorthanded goals in 1989, what's his dominant hand? | 1989 refers to the year of scoring; "dominant hand" and "shooting hand" are synonyms which refers to shootCatch
| 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Who was the most clutch player in 1986? Give his full name. | 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 | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How many shots on goal did Cam Neely had in the year of 1990? | 1990 refers to the year played; Shot on goal refers to SOG
| 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Who was the coach for the team which had the most bench minors penalty in 2003? | Coach of the team refers to firstName+lastName; 2003 refers to the year
| 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | For the goalies whose weight are above 190, who had most goal againsts in 1978 season? | Weight of above 190 refers to weight >190; 1978 season refers to the year played | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | What is the percentage of winning rate of improvement since Alain Vigneault became the coach of Vancouver Canucks in 2006 season? | 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))
| 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | For the goalie who had the highest defensive success rate in the postseason of 2011, what's his legends ID ? | Post season of 2011 refers to year = ’2011’
defensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)
| 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How many former athletes go on to become coaches after retiring? | null | SELECT COUNT(playerID) FROM Master WHERE playerID IS NOT NULL AND coachID IS NOT NULL | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | 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. | penalty refers to BenchMinor; Ties refer to T | SELECT BenchMinor, name FROM Teams ORDER BY T DESC LIMIT 1 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Which NHL award was most frequently won by the coach with the most wins? | null | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | What is the power play percentage of the team with the most number of loses? | Power play percentage refers to PPG, most number of loses refers to MAX(L)
| SELECT CAST(SUM(PPG) AS REAL) * 100 / SUM(PPC) FROM Teams GROUP BY tmID ORDER BY SUM(L) DESC LIMIT 1 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How many players were included in the Hall of Fame on average between 1950 and 1980? | year BETWEEN 1950 and 1980; average = DIVIDE(COUNT(hofID)), 30)
| SELECT CAST(COUNT(name) AS REAL) / 30 FROM HOF WHERE year BETWEEN 1950 AND 1980 AND category = 'Player' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Which country produced the most number of hockey players? Identify which year was most of the hockey players are born. | Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born
| SELECT DISTINCT birthCountry, birthYear FROM Master GROUP BY birthCountry, birthYear ORDER BY COUNT(birthCountry) DESC LIMIT 1 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | 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? | 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.
| SELECT SUM(W) FROM Goalies GROUP BY tmID ORDER BY SUM(SHO) DESC LIMIT 1 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Which team recorded the most number of road victories in 2005? Indicate the team ID. | road victories refers to rW; team id refers to tmID; victories and wins are synonyms
| SELECT tmID FROM TeamSplits WHERE YEAR = '2005' ORDER BY rW DESC LIMIT 1 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | What is the position of the 9th oldest hockey player? | position refers to pos; date of birth refers to birthDay + birthMon + birthYear | SELECT pos FROM Master WHERE birthYear IS NOT NULL ORDER BY birthYear, birthMon, birthDay LIMIT 8 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How many goals were scored while the goalkeeper was on the ice in the 1924 WCHL by the goalie with the most goals scored? | 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. | SELECT SUM(PostGA) FROM Goalies WHERE lgID = 'WCHL' AND year = '1924' GROUP BY playerID ORDER BY SUM(PostGA) DESC LIMIT 1 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | In 2006, what is the overall number of october defeats for the team with the most October defeats? Indicate the team ID. | team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL) | SELECT OctL, tmID FROM TeamSplits WHERE year = '2006' ORDER BY OctL DESC LIMIT 1 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How many players, whose shooting/catching hand is both left and right, debuted their first NHL in 2011? | shooting/catching hand is both left and right refers to shootCatch is NULL, debuted their first NHL in 2011 refers to firstNHL = 2011 | SELECT COUNT(playerID) FROM Master WHERE shootCatch IS NULL AND firstNHL = '2011' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | 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? | most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear) | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | 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? | 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) | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | What is the total amount of assists of the NHL player with the most assists in history? Please indicate his/her full name. | NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A)))) | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | 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. | 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 | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | 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. | victories' and 'wins' are synonyms; most number of victories refers to max(w) | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | What is the name of the losing team during an exhibition game in 1912? | exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | 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. | 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 | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | 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? | penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP) | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How old was the goaltender who scored the fewest goals while on the ice when he retired from the NHL? | 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))))) | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | 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. | 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 | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How many games did the coach who received the first-ever Second Team All-Star award play before receiving such award? | 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))) | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | 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. | team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w) | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Among the teams whose shorthanded goals are between 1 to 5, which player is the most trustworthy in the critical moment? | shorthanded goals refers to SHG; SHG BETWEEN 1 AND 5; most trustworthy in the critical moment refers to max(GWG) | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | In 1997, how many loss did the coach have who temporary coached Tampa Bay Lightning? Indicate his/her coach ID. | temporary coached refers to notes = 'interim'; number of loss refers to L (to add) | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | 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. | 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)
| 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | What is the name of the coach whose team placed 4th in the 1969 game? Indicate their coachID. | name of coach refers to coachID; placed 4th refers to rank = 4; 1969 game refers to year = 1969 | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Between 1917 to 1920, what are the names of the team who ranked first in the first half of the season each year? | year BETWEEN 1917 AND 1920; first half of season refers to half = 1 | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | 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. | 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 | 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 name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How many bench minor penalties did the team St. Louis Blues got in total in all the games? | null | SELECT CAST(SUM(BenchMinor) AS REAL) / 2 FROM Teams WHERE name = 'St. Louis Blues' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | What is the power play chances of New York Rangers in 2009? | power play chanses = DIVIDE (PPG, PPC); name = New York Rangers; year = 2009 | SELECT CAST(PPG AS REAL) / PPC FROM Teams WHERE year = 2009 AND name = 'New York Rangers' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | What is the highest total points a team got in a year? | the highest total points = MAX(Pts) | SELECT SUM(Pts), year FROM Teams GROUP BY year, tmID ORDER BY SUM(Pts) DESC LIMIT 1 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Among the teams that had more wins than loses in the year 2006, how many of them have over 100 points? | more wins than loses refers to W > L; over 100 points refers to Pts > 100 | SELECT COUNT(tmID) FROM Teams WHERE year = 2006 AND W > L AND Pts > 100 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Which team got the most bench minor penalties in 2006? | team refers to name; year = 2006 | SELECT name FROM Teams WHERE year = 2006 GROUP BY tmID, name ORDER BY CAST(SUM(BenchMinor) AS REAL) / 2 DESC LIMIT 1 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Please list the first 3 teams that got the most penalty minutes in 2006. | the first 3 teams that got the most penalty minutes refer to name where MAX(PIM) limit to 3; year = 2006; | SELECT name FROM Teams WHERE year = 2006 GROUP BY tmID, name ORDER BY SUM(PIM) DESC LIMIT 3 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Which team had the highest penalty kill chances in 1995, Florida Panthers, Edmonton Oilers or Los Angeles Kings? | the highest penalty kill chances refer to MAX(PKC); year = 1995; | SELECT name FROM Teams WHERE year = 1995 AND name IN ('Florida Panthers', 'Edmonton Oilers', 'Los Angeles Kings') ORDER BY PKC DESC LIMIT 1 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | What is the name of the team that got more wins than loses in the Stanley Cup finals in 1917? | more wins than loses refers to W>L; year = 1917; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Please list the teams that have played in 1922's Stanley Cup finals. | teams refer to tmID; year = 1922; | 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' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Among the teams that played in 1922's Stanley Cup finals, how many of them had over 20 points in that year? | how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | What were the penalty minutes in 1923's Stanley Cup finals of the team that ranked second in that year? | teams refer to tmID; year = 1922; ranked second refers to rank = 2; penalty minutes refer to PIM; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Which team got the most wins in the Stanley Cup finals? | team refers name; most wins = MAX(W); | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How many wins did the Philadelphia Flyers have over the Boston Bruins in 1985? | Philadelphia Flyers is name of team playing; Boston Bruins is name of opposing team where oppID = 'BOS'; year = 1985; wins refer to W; | 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' ) | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Please list the names of the teams that had a tie in 1909. | tie refers to T>0; year = 1909; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Please list the first names of the coaches who have taught the Montreal Canadiens. | Montreal Canadiens is the name of team. | 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' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How many coaches of the Montreal Canadiens have gotten in the Hall of Fame? | have gotten in the Hall of Fame means hofID is not NULL;
Montreal Canadiens is the name of team. | 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' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Please give the height of the tallest coach of the Montreal Canadiens. | the tallest refers to MAX(height); Montreal Canadiens is the name of team; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Please list the first names of the coaches whose team played in 1922's Stanley Cup finals. | teams refer to tmID; year = 1922; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Among the coaches who have taught the Philadelphia Flyers, how many of them are born in March? | born in March refers to birthMon = 3; Philadelphia Flyers is the name of team; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Among the coaches who are born in the USA, how many of them used to train the Philadelphia Flyers? | born in the USA refers to birthCountry = 'USA'; Philadelphia Flyers is the name of team; | 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' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How many coaches who have taught the Buffalo Sabres have died? | have died means deathYear is not NULL; Buffalo Sabres is the name of team; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Please list the nick names of the coaches who are from the USA and have taught the Buffalo Sabres. | from the USA refers to birthCountry = 'USA'; nick names of the coaches refer to nameNick where coachID is not NULL ; Buffalo Sabres is the name of team; | 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' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Among the coaches who taught the teams in 1922's Stanley Cup finals, how many of them are from the USA? | from the USA refers to birthCountry = 'USA'; year = 1922; | 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' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | In the year 2000, which team has played the most games against the Buffalo Sabres? | which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Please list the names of all the teams that have played against the Buffalo Sabres. | teams that have played against refer to oppID; Buffalo Sabres is the name of team; | 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' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How many penalty minutes did the Montreal Canadiens have in the 1918's Stanley Cup Finals? | penalty minutes refer to PIM; year = 1918; Montreal Canadiens is name of team; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | 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? | penalty minutes refer to PIM = 24; wins refer to W; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | In which year did the Montreal Canadiens have 49 penalty minutes in the Stanley Cup finals? Was it 1924, 1923 or 1918? | penalty minutes refer to PIM = 49; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Which coach was the first one to teach the Montreal Canadiens, please give his first name. | the first one refers to MIN(year); | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | What is the average winning rate of the Buffalo Sabres in 2000? | DIVIDE(SUM(DIVIDE(W,G), COUNT(oppID) where year = 2000; Montreal Canadiens is name of team; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How many penalty minutes did the Montreal Canadiens have on average in the Stanley Cup Finals? | AVG(PIM) = DIVIDE(SUM(PIM), COUNT(G)); Montreal Canadiens is name of team; | 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' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | What is the average winning rate of the Montreal Canadiens in the Stanley Cup finals? | DIVIDE(SUM(DIVIDE(W,G), COUNT(oppID); | 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' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | What is the percentage of American coaches among all the coaches who taught the Montreal Canadiens? | American refers to birthCountry = 'USA'; DIVIDE(COUNT(coachID where birthCountry = 'USA', name` = 'Montreal Canadiens'), COUNT(coachID where name` = 'Montreal Canadiens')) as percentage; | 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' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Who was the latest non player/builder to become the hall of famer? Give the full name. | latest refers to MAX(year); non player/builder refers to category = NOT IN ('player', 'builder'); | SELECT name FROM HOF WHERE category IN ('Player', 'Builder') ORDER BY year DESC LIMIT 1 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | For all the referees, who became a hall of famer in the 1970s? What's his hofID? | 1970s refers to year between 1970 and 1979; referees stand for category; | SELECT name, hofID FROM HOF WHERE category = 'Builder' AND year BETWEEN 1970 AND 1979 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | In the year 1958, what is the total number of players that became hall of famers? | hall of famers refers to hofID; players stand for category; | SELECT COUNT(hofID) FROM HOF WHERE category = 'Player' AND year = 1958 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How many hall of famers both played and coached in the league? | hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL; | SELECT COUNT(playerID) FROM Master WHERE hofID IS NOT NULL AND playerID IS NOT NULL AND coachID IS NOT NULL | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | What is the number of players whose last name is Green that played in the league but not coached? | played in the league but not coached means playerID is not NULL and coachID is NULL; | SELECT COUNT(playerID) FROM Master WHERE lastName = 'Green' AND coachID IS NULL | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | For the team that Scotty Bowman coached in 1982, how many bench minor penalties did they have that year? | bench minor penalties refer to BenchMinor; Scotty Bowman is a coach; year = 1982; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Among the players who had 10 empty net goals in their career, who is the tallest? Show his full name. | 10 empty net goals refer to ENG = 10; tallest refers to MAX(height); | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Which was the dominant hand for the goaltender who played 32 games for QUN in 1973? Give the full name. | the dominant hand refers to shootCatch; year = 1973; tmID = 'QUN'; played 32 games refers to GP = 32; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | For the goalie whose last name is "Young", how many teams did he play in? | goalie is a players; teams refer to tmID; | SELECT COUNT(DISTINCT T1.tmID) FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T2.lastName = 'Young' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | For the goalkeeper that became a coach than a Hall of Famer, who played for BOS in 1972? | BOS refers to tmID = 'BOS'; year = 1972; became a coach than a Hall of Famer means coachID is not NULL and hofID is NULL; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | For the goalie whose legendsID is "P196402" , how many games did he play in the league? | null | SELECT SUM(T1.GP) FROM Goalies AS T1 INNER JOIN Master AS T2 ON T1.playerID = T2.playerID WHERE T2.legendsID = 'P196402' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | In the history of all the Quebec Bulldogs, which goalie had the most play minutes for the team? Give the full name. | the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How many goalies played for Calgary Flames? | Calgary Flames is the name of team; | 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' | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | Which Minnesota North Stars' goalkeeper had the most Goal Againsts in his play time? | Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | How many Haileybury Hockey Club goalies became a hall of famer? | hall of famers refers to hofID where playerID is not NULL; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|
hockey | For the goalie who had the most shutouts in 2010, what's his catching hand? | the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010; | 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 | database name:db_id hockey
AwardsMisc table AwardsMisc Cols: name dtype text, ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
HOF table HOF Cols: year dtype integer, hall of fame id dtype text, name dtype text, category dtype text,
Teams table Teams Cols: year dtype integer, league ID dtype text, team ID dtype text, Franchise ID dtype text, Conference ID dtype text, Division ID dtype text, rank dtype integer, playoff dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, Overtime losses dtype text, points dtype integer, Shootout wins dtype text, Shootout loses dtype text, Goals for dtype integer, Goals against dtype integer, Full team name dtype text, Penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
Coaches table Coaches Cols: coach ID dtype text, year dtype integer, team ID dtype text, league ID dtype text, stint dtype integer, notes dtype text, games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, post-season games dtype text, post-season wins dtype text, post-season loses dtype text, post-season ties dtype text,
AwardsCoaches table AwardsCoaches Cols: coach ID dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text,
Master table Master Cols: playerID dtype text, coach ID dtype text, hofID dtype text, first name dtype text, last name dtype text, name note dtype text, name given dtype text, Nickname dtype text, height dtype text, weight dtype text, shoot catch dtype text, legends ID dtype text, Internet Hockey Database ID dtype text, Hockey-Reference.com ID dtype text, First NHL season dtype text, Last NHL season dtype text, First WHA season dtype text, Last WHA season dtype text, position dtype text, birth Year dtype text, birth Month dtype text, birth Day dtype text, birth Country dtype text, birth State dtype text, birth city dtype text, death year dtype text, death month dtype text, death day dtype text, death country dtype text, death state dtype text, death city dtype text,
AwardsPlayers table AwardsPlayers Cols: player id dtype text, award dtype text, year dtype integer, league ID dtype text, note dtype text, position dtype text,
CombinedShutouts table CombinedShutouts Cols: year dtype integer, month dtype integer, date dtype integer, team ID dtype text, opposite team ID dtype text, regular / postseason dtype text, ID of goalie 1 dtype text, ID of goalie 2 dtype text,
Goalies table Goalies Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, league ID dtype text, Games played dtype text, Minutes dtype text, wins dtype text, loses dtype text, Ties / overtime losses dtype text, Empty net goals dtype text, Shutouts dtype text, Goals against dtype text, Shots against dtype text, Postseason games played dtype text, Postseason minutes dtype text, Postseason wins dtype text, Postseason loses dtype text, Postseason ties dtype text, Postseason empty net goals dtype text, Postseason Shutouts dtype text, Postseason Goals against dtype text, Postseason Shots against dtype text,
GoaliesSC table GoaliesSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, Games played dtype integer, Minutes dtype integer, Wins dtype integer, Loses dtype integer, Ties dtype integer, Shutouts dtype integer, Goals against dtype integer,
GoaliesShootout table GoaliesShootout Cols: playerID dtype text, year dtype integer, stint dtype integer, team ID dtype text, Wins dtype integer, Loses dtype integer, Shots against dtype integer, Goals against dtype integer,
Scoring table Scoring Cols: playerID dtype text, year dtype integer, stint dtype integer, team id dtype text, league id dtype text, position dtype text, game played dtype integer, goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer, Plus / minus dtype text, Power play goals dtype text, Power play assists dtype text, Shorthanded goals dtype text, Shorthanded assists dtype text, Game-winning goals dtype text, Game-tying goals dtype text, Shots on goal dtype text, Postseason games played dtype text, Postseason goals dtype text, Postseason assists dtype text, Postseason points dtype text, Postseason penalty minutes dtype text, Postseason Plus / minus dtype text, Postseason power play goals dtype text, Postseason power play assists dtype text, Postseason Shorthanded goals dtype text, Postseason Shorthanded assists dtype text, Postseason game-winning goals dtype text, Postseason shots on goal dtype text,
ScoringSC table ScoringSC Cols: playerID dtype text, year dtype integer, team ID dtype text, league ID dtype text, position dtype text, Games played dtype integer, Goals dtype integer, assists dtype integer, points dtype integer, Penalty minutes dtype integer,
ScoringShootout table ScoringShootout Cols: player id dtype text, year dtype integer, stint dtype integer, team ID dtype text, shots dtype integer, goals dtype integer, game deciding goals dtype integer,
ScoringSup table ScoringSup Cols: player id dtype text, year dtype integer, Power play assists dtype text, Shorthanded assists dtype text,
SeriesPost table SeriesPost Cols: year dtype integer, round dtype text, series dtype text, Team ID of winner dtype text, League ID of winner dtype text, Team ID of loser dtype text, league id of loser dtype text, wins dtype integer, loses dtype integer, ties dtype integer, goals for winner dtype integer, goals for loser dtype integer, note dtype text,
TeamSplits table TeamSplits Cols: year dtype integer, league ID dtype text, team ID dtype text, home wins dtype integer, home loses dtype integer, home ties dtype integer, Home overtime losses dtype text, Road wins dtype integer, Road loses dtype integer, Road ties dtype integer, road overtime loses dtype text, September wins dtype text, September loses dtype text, September ties dtype text, September overtime loses dtype text, October wins dtype text, October loses dtype text, October ties dtype text, October overtime loses dtype text, November wins dtype text, November loses dtype text, November ties dtype text, November overtime loses dtype text, December wins dtype text, December loses dtype text, December ties dtype text, December overtime loses dtype text, January wins dtype integer, January loses dtype integer, January ties dtype integer, January overtime loses dtype text, February wins dtype integer, February loses dtype integer, February ties dtype integer, February overtime loses dtype text, March wins dtype text, March loses dtype text, March ties dtype text, March overtime loses dtype text, April wins dtype text, April loses dtype text, April ties dtype text, April overtime loses dtype text,
TeamVsTeam table TeamVsTeam Cols: year dtype integer, league ID dtype text, team ID dtype text, opponent ID dtype text, wins dtype integer, loses dtype integer, ties dtype integer, overtime loses dtype text,
TeamsHalf table TeamsHalf Cols: year dtype integer, league ID dtype text, team ID dtype text, half dtype integer, rank dtype integer, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer,
TeamsPost table TeamsPost Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text, Bench minors (minutes) dtype text, Power play goals dtype text, Power play chances dtype text, Shorthanded goals against dtype text, Power play goals against dtype text, Penalty kill chances dtype text, Shorthanded goals for dtype text,
TeamsSC table TeamsSC Cols: year dtype integer, league ID dtype text, team ID dtype text, Games dtype integer, wins dtype integer, loses dtype integer, ties dtype integer, goals for dtype integer, goals against dtype integer, penalty minutes dtype text,
abbrev table abbrev Cols: Type dtype text, Code dtype text, Fullname dtype text,
|