goals_per_game G/GP
built from sum(goals) sum(games)
Goals per game played.
from nhl.skaters select player, goals_per_game group by player order by goals_per_game desc limit 10
nhlfrom nhl readsnhl.skatersC Centre · L Left wing · R Right wing · D Defence · G Goalienhl.skaters Skater seasonsOne row per skater per season since 1917-18 — scoring, time on ice, possession, faceoffs, penalties and shot types, from the league's sixteen reports.
from nhl.skaters select player, team, position, games, goals, assists, points, toi_per_game order by points desc limit 100
player-season)nhl_skater_seasons NHL, nhlscraperplayer team position games goals assists points toi_per_gamepoints descseasonseasonspointswhere season_type = POST for the playoffs.team — teams lists them and clubs counts them; nhl.skater_games has the split itself.| Name | Bound to |
|---|---|
league |
always nhl |
team |
the team column |
player |
the player column |
position |
the position column |
season |
the season column |
| Name | Heading | Type | What it is |
|---|---|---|---|
season
completes season
|
Season | seasondimension |
The season, by the year it started — 2024 is 2024-25. |
season_type
completes season_type
|
Type | stringdimension |
REG for the regular season, POST for the playoffs. REG or POST |
player
completes player
|
Player | stringdimension |
The player, by the name the league's registry lists him under. |
team
completes team
|
Team | stringdimension |
The club, by the code it wore that season. The code the club wore that season — Arizona's 2023 season is under ARI |
franchise
completes franchise
|
Franchise | stringdimension |
The club's franchise, by the code it wears today — the thread through relocations. The franchise's current code — every Coyotes and Mammoth season is under UTA |
teams
|
Clubs | stringdimension |
Every club he played for that season, in order, when there was more than one. Every club he played for that season, in order |
clubs
|
#Clubs | integermeasure |
How many clubs he played for that season. |
position
completes position
|
Pos | stringdimension |
C, L, R or D for a skater; G for a goalie. NHL.com C, L, R, D or G |
shoots
|
Shoots | stringdimension |
Which way he shoots — L or R. |
age
|
Age | integermeasure |
His age on February 1st of the season. Age on February 1st of the season |
nationality
completes nationality
|
Nat | stringdimension |
His nationality, as a three-letter country code. Three-letter country code |
games
|
GP | integermeasure |
Games played. NHL.com |
goals
|
G | integermeasure |
Goals scored. NHL.com |
assists
|
A | integermeasure |
Assists. NHL.com |
points
|
P | integermeasure |
Goals plus assists for a player; standings points for a club. NHL.com |
plus_minus
|
+/- | integermeasure |
Even-strength and short-handed goals for while on the ice, less those against. NHL.com |
pim
lower is better
|
PIM | integermeasure |
Penalty minutes. NHL.com |
shots
|
SOG | integermeasure |
Shots on goal. NHL.com |
shooting_pct
|
S% | numbermeasure |
Goals as a share of shots on goal. NHL.com |
ev_goals
|
EVG | integermeasure |
Goals at even strength. NHL.com |
ev_points
|
EVP | integermeasure |
Points at even strength. NHL.com |
pp_goals
|
PPG | integermeasure |
Goals on the power play. NHL.com |
pp_points
|
PPP | integermeasure |
Points on the power play. NHL.com |
sh_goals
|
SHG | integermeasure |
Goals while short-handed. NHL.com |
sh_points
|
SHP | integermeasure |
Points while short-handed. NHL.com |
ot_goals
|
OTG | integermeasure |
Goals in overtime. NHL.com |
gwg
|
GWG | integermeasure |
Game-winning goals — the goal that put his club one past the loser's total. NHL.com |
first_goals
|
1stG | integermeasure |
Goals that opened the scoring. 1stG starts in 2005 |
en_goals
|
ENG | integermeasure |
Goals into an empty net. ENG starts in 2005 |
en_points
|
ENP | integermeasure |
Points on empty-net goals. ENP starts in 2005 |
primary_assists
|
A1 | integermeasure |
First assists — the last pass before the goal. |
secondary_assists
|
A2 | integermeasure |
Second assists. |
ppg
|
P/GP | numbermeasure |
Points per game played. |
toi
|
TOI | numbermeasure |
Minutes on ice. NHL.com Minutes on ice TOI starts in 1997 |
ev_toi
|
EV TOI | numbermeasure |
Minutes at even strength. EV TOI starts in 1997 |
pp_toi
|
PP TOI | numbermeasure |
Minutes on the power play. PP TOI starts in 1997 |
sh_toi
|
SH TOI | numbermeasure |
Minutes killing penalties. SH TOI starts in 1997 |
ot_toi
|
OT TOI | numbermeasure |
Minutes in overtime. OT TOI starts in 1997 |
shifts
|
Shifts | integermeasure |
Shifts taken. Shifts starts in 1997 |
toi_per_shift
|
Sec/Shift | numbermeasure |
Seconds per shift. Seconds per shift Sec/Shift starts in 1997 |
points_per_60
|
P/60 | numbermeasure |
Points per sixty minutes of ice time, all situations. Points per sixty minutes of ice time, all situations P/60 starts in 1997 |
goals_per_60
|
G/60 | numbermeasure |
Goals per sixty minutes of ice time, all situations. G/60 starts in 1997 |
toi_per_game
|
TOI/GP | numbermeasure |
Minutes on ice per game. NHL.com Minutes per game TOI/GP starts in 1997 |
pp_toi_per_game
|
PP/GP | numbermeasure |
Power-play minutes per game. PP/GP starts in 1997 |
sh_toi_per_game
|
SH/GP | numbermeasure |
Penalty-kill minutes per game. SH/GP starts in 1997 |
hits
|
Hits | integermeasure |
Hits delivered. NHL.com Hits starts in 2005 |
blocks
|
BkS | integermeasure |
Shots blocked. NHL.com BkS starts in 2005 |
giveaways
lower is better
|
GvA | integermeasure |
Times he gave the puck away. NHL.com GvA starts in 2005 |
takeaways
|
TkA | integermeasure |
Times he took the puck away. NHL.com TkA starts in 2005 |
missed_shots
|
Miss | integermeasure |
Shots that missed the net. Miss starts in 2005 |
attempts_blocked
|
Blkd | integermeasure |
His own attempts that an opponent blocked. His own attempts that were blocked Blkd starts in 2005 |
attempts
|
Att | integermeasure |
Every shot attempt: on goal, missed or blocked. Every attempt: on goal, missed or blocked Att starts in 2005 |
hits_per_60
|
Hits/60 | numbermeasure |
Hits per sixty minutes. Hits/60 starts in 2005 |
blocks_per_60
|
BkS/60 | numbermeasure |
Blocked shots per sixty minutes. BkS/60 starts in 2005 |
giveaways_per_60
lower is better
|
GvA/60 | numbermeasure |
Giveaways per sixty minutes. GvA/60 starts in 2005 |
takeaways_per_60
|
TkA/60 | numbermeasure |
Takeaways per sixty minutes. TkA/60 starts in 2005 |
faceoffs
|
FO | integermeasure |
Faceoffs taken. NHL.com FO starts in 1997 |
fo_wins
|
FOW | integermeasure |
Faceoffs won. NHL.com FOW starts in 1997 |
fo_losses
lower is better
|
FOL | integermeasure |
Faceoffs lost. NHL.com FOL starts in 1997 |
fo_pct
|
FO% | numbermeasure |
Faceoffs won as a share of faceoffs taken. NHL.com FO% starts in 1997 |
oz_faceoffs
|
OZ FO | integermeasure |
Faceoffs taken in the offensive zone. OZ FO starts in 1997 |
oz_fo_wins
|
OZ FOW | integermeasure |
Offensive-zone faceoffs won. OZ FOW starts in 1997 |
dz_faceoffs
|
DZ FO | integermeasure |
Faceoffs taken in the defensive zone. DZ FO starts in 1997 |
dz_fo_wins
|
DZ FOW | integermeasure |
Defensive-zone faceoffs won. DZ FOW starts in 1997 |
nz_faceoffs
|
NZ FO | integermeasure |
Faceoffs taken at centre or the neutral-zone dots. NZ FO starts in 1997 |
nz_fo_wins
|
NZ FOW | integermeasure |
Neutral-zone faceoffs won. NZ FOW starts in 1997 |
penalties
lower is better
|
Pen | integermeasure |
Penalties taken. |
minors
lower is better
|
Min | integermeasure |
Minor penalties. |
majors
lower is better
|
Maj | integermeasure |
Major penalties. |
misconducts
lower is better
|
Misc | integermeasure |
Misconducts. |
game_misconducts
lower is better
|
GM | integermeasure |
Game misconducts. |
match_penalties
lower is better
|
Match | integermeasure |
Match penalties. |
penalties_drawn
|
Drawn | integermeasure |
Penalties drawn on opponents. Drawn starts in 2005 |
net_penalties
lower is better
|
Net Pen | integermeasure |
Penalties taken less penalties drawn. Taken less drawn Net Pen starts in 2005 |
pen_taken_per_60
lower is better
|
Pen/60 | numbermeasure |
Penalties taken per sixty minutes. Pen/60 starts in 2005 |
pen_drawn_per_60
|
Drawn/60 | numbermeasure |
Penalties drawn per sixty minutes. Drawn/60 starts in 2005 |
goals_wrist
|
G Wrist | integermeasure |
Goals on wrist shots. G Wrist starts in 2009 |
goals_snap
|
G Snap | integermeasure |
Goals on snap shots. G Snap starts in 2009 |
goals_slap
|
G Slap | integermeasure |
Goals on slap shots. G Slap starts in 2009 |
goals_backhand
|
G Back | integermeasure |
Goals on backhands. G Back starts in 2009 |
goals_tip
|
G Tip | integermeasure |
Goals on tip-ins. G Tip starts in 2009 |
goals_deflected
|
G Defl | integermeasure |
Goals on deflections. G Defl starts in 2009 |
goals_wrap
|
G Wrap | integermeasure |
Goals on wrap-arounds. G Wrap starts in 2009 |
shots_wrist
|
S Wrist | integermeasure |
Wrist shots on goal. S Wrist starts in 2009 |
shots_snap
|
S Snap | integermeasure |
Snap shots on goal. S Snap starts in 2009 |
shots_slap
|
S Slap | integermeasure |
Slap shots on goal. S Slap starts in 2009 |
shots_backhand
|
S Back | integermeasure |
Backhands on goal. S Back starts in 2009 |
shots_tip
|
S Tip | integermeasure |
Tip-ins on goal. S Tip starts in 2009 |
shots_deflected
|
S Defl | integermeasure |
Deflections on goal. S Defl starts in 2009 |
shots_wrap
|
S Wrap | integermeasure |
Wrap-arounds on goal. S Wrap starts in 2009 |
pp_assists
|
PPA | integermeasure |
Assists on the power play. |
pp_shots
|
PP SOG | integermeasure |
Shots on goal on the power play. |
pp_goals_per_60
|
PPG/60 | numbermeasure |
Power-play goals per sixty minutes of power-play ice time. PPG/60 starts in 1997 |
pp_points_per_60
|
PPP/60 | numbermeasure |
Power-play points per sixty minutes of power-play ice time. PPP/60 starts in 1997 |
pp_toi_share
|
PP TOI% | numbermeasure |
Share of his club's power-play time he was on the ice for. Share of his club's power-play time he was on the ice for PP TOI% starts in 1997 |
sh_assists
|
SHA | integermeasure |
Assists while short-handed. |
sh_shots
|
SH SOG | integermeasure |
Shots on goal while short-handed. |
sh_points_per_60
|
SHP/60 | numbermeasure |
Short-handed points per sixty minutes killing penalties. SHP/60 starts in 1997 |
sh_toi_share
|
SH TOI% | numbermeasure |
Share of his club's penalty-kill time he was on the ice for. Share of his club's penalty-kill time he was on the ice for SH TOI% starts in 1997 |
ev_gf
|
EV GF | integermeasure |
Even-strength goals his club scored while he was on the ice. Even-strength goals for while he was on the ice |
ev_ga
lower is better
|
EV GA | integermeasure |
Even-strength goals his club allowed while he was on the ice. |
ev_gd
|
EV GD | integermeasure |
Even-strength goals for less against while he was on the ice. |
ev_gf_pct
|
EV GF% | numbermeasure |
Share of on-ice even-strength goals that were his club's. |
cf
|
CF | integermeasure |
Shot attempts for while on the ice — Corsi for, which the league calls SAT. NHL.com Shot attempts for while he was on the ice (Corsi) CF starts in 2009 |
ca
lower is better
|
CA | integermeasure |
Shot attempts against while on the ice. NHL.com CA starts in 2009 |
cf_pct
|
CF% | numbermeasure |
Attempts for as a share of attempts for and against while on the ice. NHL.com Share of on-ice shot attempts that were his club's CF% starts in 2009 |
cf_rel
|
CF% rel | numbermeasure |
CF% while on the ice less CF% while off it, in points. CF% on the ice less CF% off it, in points CF% rel starts in 2009 |
ff
|
FF | integermeasure |
Unblocked attempts for while on the ice — Fenwick for, which the league calls USAT. NHL.com Unblocked attempts for (Fenwick) FF starts in 2009 |
fa
lower is better
|
FA | integermeasure |
Unblocked attempts against while on the ice. NHL.com FA starts in 2009 |
ff_pct
|
FF% | numbermeasure |
Unblocked attempts for as a share of those for and against. NHL.com FF% starts in 2009 |
ff_rel
|
FF% rel | numbermeasure |
FF% while on the ice less FF% while off it, in points. FF% rel starts in 2009 |
cf_pct_close
|
CF% close | numbermeasure |
CF% with the score within a goal. CF% with the score within a goal CF% close starts in 2009 |
cf_pct_tied
|
CF% tied | numbermeasure |
CF% with the score level. CF% tied starts in 2009 |
cf_pct_ahead
|
CF% ahead | numbermeasure |
CF% while leading. CF% ahead starts in 2009 |
cf_pct_behind
|
CF% behind | numbermeasure |
CF% while trailing. CF% behind starts in 2009 |
icf_per_60
|
iCF/60 | numbermeasure |
His own shot attempts per sixty minutes. His own attempts per 60 iCF/60 starts in 2009 |
ishots_per_60
|
iSOG/60 | numbermeasure |
His own shots on goal per sixty minutes. iSOG/60 starts in 2009 |
oish_pct
|
oiSH% | numbermeasure |
His club's shooting percentage while he was on the ice. His club's shooting percentage while he was on the ice oiSH% starts in 2009 |
gf_pct
|
GF% | numbermeasure |
Share of on-ice goals that were his club's. Share of on-ice goals that were his club's GF% starts in 2009 |
oz_start_pct
|
OZS% | numbermeasure |
Share of his shifts that began with an offensive-zone faceoff. Share of his shifts that started in the offensive zone OZS% starts in 2009 |
dz_start_pct
|
DZS% | numbermeasure |
Share of his shifts that began with a defensive-zone faceoff. DZS% starts in 2009 |
nz_start_pct
|
NZS% | numbermeasure |
Share of his shifts that began at a neutral-zone faceoff. NZS% starts in 2009 |
sh_pct_5v5
|
S% 5v5 | numbermeasure |
His own shooting percentage at five on five. S% 5v5 starts in 2009 |
sv_pct_5v5
|
oiSV% 5v5 | numbermeasure |
His goalies' save percentage while he was on the ice at five on five. His goalies' save percentage while he was on the ice at 5v5 oiSV% 5v5 starts in 2009 |
pdo_5v5
|
PDO | numbermeasure |
On-ice shooting plus save percentage at five on five. 100 is average, and it regresses. On-ice shooting plus save percentage at 5v5 — 100 is average, and it regresses PDO starts in 2009 |
goals_5v5
|
G 5v5 | integermeasure |
Goals at five on five. G 5v5 starts in 2009 |
assists_5v5
|
A 5v5 | integermeasure |
Assists at five on five. A 5v5 starts in 2009 |
points_5v5
|
P 5v5 | integermeasure |
Points at five on five. P 5v5 starts in 2009 |
a1_5v5
|
A1 5v5 | integermeasure |
First assists at five on five. A1 5v5 starts in 2009 |
toi_per_game_5v5
|
5v5/GP | numbermeasure |
Minutes per game at five on five. 5v5/GP starts in 2009 |
goals_per_60_5v5
|
G/60 5v5 | numbermeasure |
Goals per sixty minutes at five on five. G/60 5v5 starts in 2009 |
points_per_60_5v5
|
P/60 5v5 | numbermeasure |
Points per sixty minutes at five on five. P/60 5v5 starts in 2009 |
a1_per_60_5v5
|
A1/60 5v5 | numbermeasure |
First assists per sixty minutes at five on five. A1/60 5v5 starts in 2009 |
cf_rel_5v5
|
CF% rel 5v5 | numbermeasure |
CF% relative at five on five. CF% rel 5v5 starts in 2009 |
so_shots
|
SO Att | integermeasure |
Shootout attempts. SO Att starts in 2005 |
so_goals
|
SO G | integermeasure |
Shootout goals. SO G starts in 2005 |
so_gdg
|
SO GDG | integermeasure |
Shootout goals that decided the game. Shootout goals that decided the game SO GDG starts in 2005 |
so_pct
|
SO% | numbermeasure |
Shootout goals as a share of attempts. SO% starts in 2005 |
ps_attempts
|
PS Att | integermeasure |
Penalty shots taken. |
ps_goals
|
PS G | integermeasure |
Penalty shots scored. |
rank
computed
lower is better
|
# | integermeasure |
Where the row placed in this result under your |
pctile
computed
|
%ile | integermeasure |
Where the row sits among the rows this query returned, 0 to 100 — a different population from |
goals_per_game G/GPbuilt from sum(goals) sum(games)
Goals per game played.
from nhl.skaters select player, goals_per_game group by player order by goals_per_game desc limit 10
shots_per_game SOG/GPbuilt from sum(shots) sum(games)
Shots on goal per game played.
from nhl.skaters select player, shots_per_game group by player order by shots_per_game desc limit 10
fromThe one table a query reads
from nhl.skaters select player, team, position, games, goals, assists, points, toi_per_game order by points desc limit 100
selectThe columns the answer carries
from nhl.skaters select player, team, position, games, goals, assists, points, toi_per_game order by points desc limit 100
asRenames a column's heading and nothing else
from nhl.skaters select player, team, games as GP order by games desc limit 10
letA value written once and referred to as $name
let year = 2026 from nhl.skaters where season = $year select player, team, position order by games desc limit 10
limitHow many rows come back
from nhl.skaters select player, team, position, games, goals, assists, points, toi_per_game order by points desc limit 100
order byWhich end of the answer comes first
from nhl.skaters select player, team, position, games order by games desc limit 10
#A comment, to the end of the line
# Skater seasons — One row per skater per season since 1917-18 — scoring, time on ice, possession, faceoffs, penalties and shot types, from the league's sixteen reports. from nhl.skaters select player, team, position, games, goals, assists, points, toi_per_game order by points desc limit 100
whereChooses the rows the question is about
from nhl.skaters where season = 2026 select player, games order by games desc limit 10
andContinues whichever filter clause came last
from nhl.skaters where season = 2026 and games > 0 select player, games order by games desc limit 10
havingFilters the groups a fold made
from nhl.skaters select player, sum(games) group by player having sum(games) > 0 order by sum(games) desc limit 10
keepwhere, moved one layer out — after the ranking
from nhl.skaters where season = 2026 select player, games, games_percentile keep games_percentile >= 90 order by games_percentile desc limit 10
highlightPoints at rows instead of choosing them
from nhl.skaters select player, season, games highlight season = 2026 order by games desc limit 10
ofA threshold that is another row rather than a number
from nhl.skaters where games >= max(games) of position C select player, games order by games desc limit 10
group byFolds the rows sharing these keys into one
from nhl.skaters select player, count(*), sum(games) group by player order by sum(games) desc limit 10
thenFolds the answer a second time
from nhl.skaters select player, team, count(*) group by player, team having count(*) > 10 then select player, count(*) as Teams group by player order by count(*) desc limit 10
pivot byReads the answer as a matrix
from nhl.skaters select player, team, sum(games) group by player, team pivot by team limit 25
first / lastOnly part of each career, before anything else runs
from nhl.skaters first 3 seasons select player, sum(games) group by player order by sum(games) desc limit 10
sum(…)Adds a stat up across the rows in each group
from nhl.skaters select player, sum(games) group by player order by sum(games) desc limit 10
avg(…)The mean of a stat, with rates rebuilt rather than averaged
from nhl.skaters select player, avg(games) group by player order by avg(games) desc limit 10
min(…)The smallest value in each group
from nhl.skaters select player, min(games) group by player order by min(games) desc limit 10
max(…)The largest value in each group
from nhl.skaters select player, max(games) group by player order by max(games) desc limit 10
count(…)How many rows a group swallowed
from nhl.skaters select player, count(games) group by player order by count(games) desc limit 10
distinct(…)How many different values a group holds
from nhl.skaters select player, distinct(team) group by player order by distinct(team) desc limit 10
only(…)The one value in the group, and an error if there are two
from nhl.skaters where season = 2026 select player, only(team) group by player order by only(team) desc limit 10
latest(…)The newest row's value, rather than a number
from nhl.skaters select player, latest(player) group by player order by count(*) desc limit 10
top(…)The value on the group's biggest row
from nhl.skaters select player, top(player) group by player order by count(*) desc limit 10
mean(…)The plain arithmetic mean, whatever the column says about itself
from nhl.skaters select player, mean(games) group by player order by mean(games) desc limit 10
median(…)The middle value in the group — half above it, half below
from nhl.skaters select player, median(games) group by player order by median(games) desc limit 10
mode(…)The commonest value in the group
from nhl.skaters select player, mode(player) group by player order by count(*) desc limit 10
<stat>_percentileWhere a row sits in its population, 0-100
from nhl.skaters where season = 2026 select player, games, games_percentile order by games_percentile desc limit 10
percentile(…)Where a folded group ranks among the other groups
from nhl.skaters select player, sum(games), percentile(sum(games)) group by player order by sum(games) desc limit 10
standing(…)The same window, read as a place — 1 being best
from nhl.skaters where season = 2026 select player, games, standing(games) order by games desc limit 10
composite(…)One 0-100 score standing for several stats at once
from nhl.skaters where season = 2026 select player, clubs, age, composite(clubs, age) order by composite(clubs, age) desc limit 10
ratio(…)One column divided by another
from nhl.skaters select player, count(*), ratio(sum(games), count(*)) group by player order by ratio(sum(games), count(*)) desc limit 10
calc(…)Arithmetic over any columns the table can build
from nhl.skaters where season = 2026 select player, clubs, age, calc(standing(clubs) - standing(age)) order by calc(standing(clubs) - standing(age)) desc limit 10
format(…)Prints a column's values as words, changing nothing else
from nhl.skaters select player, games, format(games, > 0 -> "on the board", <= 0 -> "nothing yet") order by games desc limit 10
pairDraws two columns of the answer in one
from nhl.skaters where season = 2026 select player, games, games_percentile pair games with games_percentile order by games desc limit 10
hintShows a sentence on a heading when the pointer rests on it
from nhl.skaters where season = 2026 select player, clubs, age, games, composite(clubs, age, games) as Score hint composite(clubs, age, games) as "#Clubs + Age + GP" order by composite(clubs, age, games) desc limit 10
year(…) — this table has no date column to read a period offquarter(…) — this table has no date column to read a period offmonth(…) — this table has no date column to read a period offweek(…) — this table has no date column to read a period offas_of(…) — this table has no time axis to accumulate alongnhl.skater_games Skater gamesOne row per skater per game since 1917-18 — the box score, with time on ice, hits, blocks and faceoffs where the league counted them.
from nhl.skater_games select game_date, player, team, opponent, goals, assists, points, shots, toi order by points desc limit 200
player-game)nhl_skater_games NHL, nhlscrapergame_date player team opponent goals assists points shots toipoints descseasonseasons game_dates gamesgame_datepointswhere season_type = POST for the playoffs.| Name | Bound to |
|---|---|
league |
always nhl |
team |
the team column |
player |
the player column |
position |
the position column |
season |
the season column |
| Name | Heading | Type | What it is |
|---|---|---|---|
season
completes season
|
Season | seasondimension |
The season, by the year it started — 2024 is 2024-25. |
season_type
completes season_type
|
Type | stringdimension |
REG for the regular season, POST for the playoffs. REG or POST |
game_date
|
Date | datedimension |
The date the game was played. |
player
completes player
|
Player | stringdimension |
The player, by the name the league's registry lists him under. |
team
completes team
|
Team | stringdimension |
The club, by the code it wore that season. The code the club wore that season — Arizona's 2023 season is under ARI |
franchise
completes franchise
|
Franchise | stringdimension |
The club's franchise, by the code it wears today — the thread through relocations. The franchise's current code — every Coyotes and Mammoth season is under UTA |
opponent
completes team
|
Opp | stringdimension |
The other club. |
home
|
H/A | booleandimension |
Whether this club was at home. |
position
completes position
|
Pos | stringdimension |
C, L, R or D for a skater; G for a goalie. NHL.com C, L, R, D or G |
goals
|
G | integermeasure |
Goals scored. NHL.com |
assists
|
A | integermeasure |
Assists. NHL.com |
points
|
P | integermeasure |
Goals plus assists for a player; standings points for a club. NHL.com |
plus_minus
|
+/- | integermeasure |
Even-strength and short-handed goals for while on the ice, less those against. NHL.com |
pim
lower is better
|
PIM | integermeasure |
Penalty minutes. NHL.com |
shots
|
SOG | integermeasure |
Shots on goal. NHL.com |
shooting_pct
|
S% | numbermeasure |
Goals as a share of shots on goal. NHL.com |
ev_goals
|
EVG | integermeasure |
Goals at even strength. NHL.com |
ev_points
|
EVP | integermeasure |
Points at even strength. NHL.com |
pp_goals
|
PPG | integermeasure |
Goals on the power play. NHL.com |
pp_points
|
PPP | integermeasure |
Points on the power play. NHL.com |
sh_goals
|
SHG | integermeasure |
Goals while short-handed. NHL.com |
sh_points
|
SHP | integermeasure |
Points while short-handed. NHL.com |
ot_goals
|
OTG | integermeasure |
Goals in overtime. NHL.com |
gwg
|
GWG | integermeasure |
Game-winning goals — the goal that put his club one past the loser's total. NHL.com |
first_goals
|
1stG | integermeasure |
Goals that opened the scoring. 1stG starts in 2005 |
en_goals
|
ENG | integermeasure |
Goals into an empty net. ENG starts in 2005 |
en_points
|
ENP | integermeasure |
Points on empty-net goals. ENP starts in 2005 |
toi
|
TOI | numbermeasure |
Minutes on ice. NHL.com Minutes on ice TOI starts in 1997 |
ev_toi
|
EV TOI | numbermeasure |
Minutes at even strength. EV TOI starts in 1997 |
pp_toi
|
PP TOI | numbermeasure |
Minutes on the power play. PP TOI starts in 1997 |
sh_toi
|
SH TOI | numbermeasure |
Minutes killing penalties. SH TOI starts in 1997 |
ot_toi
|
OT TOI | numbermeasure |
Minutes in overtime. OT TOI starts in 1997 |
shifts
|
Shifts | integermeasure |
Shifts taken. Shifts starts in 1997 |
toi_per_shift
|
Sec/Shift | numbermeasure |
Seconds per shift. Seconds per shift Sec/Shift starts in 1997 |
hits
|
Hits | integermeasure |
Hits delivered. NHL.com Hits starts in 2005 |
blocks
|
BkS | integermeasure |
Shots blocked. NHL.com BkS starts in 2005 |
giveaways
lower is better
|
GvA | integermeasure |
Times he gave the puck away. NHL.com GvA starts in 2005 |
takeaways
|
TkA | integermeasure |
Times he took the puck away. NHL.com TkA starts in 2005 |
missed_shots
|
Miss | integermeasure |
Shots that missed the net. Miss starts in 2005 |
attempts_blocked
|
Blkd | integermeasure |
His own attempts that an opponent blocked. His own attempts that were blocked Blkd starts in 2005 |
attempts
|
Att | integermeasure |
Every shot attempt: on goal, missed or blocked. Every attempt: on goal, missed or blocked Att starts in 2005 |
faceoffs
|
FO | integermeasure |
Faceoffs taken. NHL.com FO starts in 1997 |
fo_wins
|
FOW | integermeasure |
Faceoffs won. NHL.com FOW starts in 1997 |
fo_losses
lower is better
|
FOL | integermeasure |
Faceoffs lost. NHL.com FOL starts in 1997 |
fo_pct
|
FO% | numbermeasure |
Faceoffs won as a share of faceoffs taken. NHL.com FO% starts in 1997 |
oz_faceoffs
|
OZ FO | integermeasure |
Faceoffs taken in the offensive zone. OZ FO starts in 1997 |
oz_fo_wins
|
OZ FOW | integermeasure |
Offensive-zone faceoffs won. OZ FOW starts in 1997 |
dz_faceoffs
|
DZ FO | integermeasure |
Faceoffs taken in the defensive zone. DZ FO starts in 1997 |
dz_fo_wins
|
DZ FOW | integermeasure |
Defensive-zone faceoffs won. DZ FOW starts in 1997 |
nz_faceoffs
|
NZ FO | integermeasure |
Faceoffs taken at centre or the neutral-zone dots. NZ FO starts in 1997 |
nz_fo_wins
|
NZ FOW | integermeasure |
Neutral-zone faceoffs won. NZ FOW starts in 1997 |
rank
computed
lower is better
|
# | integermeasure |
Where the row placed in this result under your |
pctile
computed
|
%ile | integermeasure |
Where the row sits among the rows this query returned, 0 to 100 — a different population from |
fromThe one table a query reads
from nhl.skater_games select game_date, player, team, opponent, goals, assists, points, shots, toi order by points desc limit 200
selectThe columns the answer carries
from nhl.skater_games select game_date, player, team, opponent, goals, assists, points, shots, toi order by points desc limit 200
asRenames a column's heading and nothing else
from nhl.skater_games select game_date, player, goals as G order by goals desc limit 10
letA value written once and referred to as $name
let year = 2026 from nhl.skater_games where season = $year select game_date, player, team order by goals desc limit 10
limitHow many rows come back
from nhl.skater_games select game_date, player, team, opponent, goals, assists, points, shots, toi order by points desc limit 200
order byWhich end of the answer comes first
from nhl.skater_games select game_date, player, team, goals order by goals desc limit 10
#A comment, to the end of the line
# Skater games — One row per skater per game since 1917-18 — the box score, with time on ice, hits, blocks and faceoffs where the league counted them. from nhl.skater_games select game_date, player, team, opponent, goals, assists, points, shots, toi order by points desc limit 200
whereChooses the rows the question is about
from nhl.skater_games where season = 2026 select player, goals order by goals desc limit 10
andContinues whichever filter clause came last
from nhl.skater_games where season = 2026 and goals > 0 select player, goals order by goals desc limit 10
havingFilters the groups a fold made
from nhl.skater_games select player, sum(goals) group by player having sum(goals) > 0 order by sum(goals) desc limit 10
keepwhere, moved one layer out — after the ranking
from nhl.skater_games where season = 2026 select player, goals, goals_percentile keep goals_percentile >= 90 order by goals_percentile desc limit 10
highlightPoints at rows instead of choosing them
from nhl.skater_games select player, season, goals highlight season = 2026 order by goals desc limit 10
ofA threshold that is another row rather than a number
from nhl.skater_games where goals >= max(goals) of position C select player, goals order by goals desc limit 10
group byFolds the rows sharing these keys into one
from nhl.skater_games select player, count(*), sum(goals) group by player order by sum(goals) desc limit 10
thenFolds the answer a second time
from nhl.skater_games select player, team, count(*) group by player, team having count(*) > 10 then select player, count(*) as Teams group by player order by count(*) desc limit 10
pivot byReads the answer as a matrix
from nhl.skater_games select player, team, sum(goals) group by player, team pivot by team limit 25
first / lastOnly part of each career, before anything else runs
from nhl.skater_games first 3 seasons select player, sum(goals) group by player order by sum(goals) desc limit 10
sum(…)Adds a stat up across the rows in each group
from nhl.skater_games select player, sum(goals) group by player order by sum(goals) desc limit 10
avg(…)The mean of a stat, with rates rebuilt rather than averaged
from nhl.skater_games select player, avg(goals) group by player order by avg(goals) desc limit 10
min(…)The smallest value in each group
from nhl.skater_games select player, min(goals) group by player order by min(goals) desc limit 10
max(…)The largest value in each group
from nhl.skater_games select player, max(goals) group by player order by max(goals) desc limit 10
count(…)How many rows a group swallowed
from nhl.skater_games select player, count(goals) group by player order by count(goals) desc limit 10
distinct(…)How many different values a group holds
from nhl.skater_games select player, distinct(game_date) group by player order by distinct(game_date) desc limit 10
only(…)The one value in the group, and an error if there are two
from nhl.skater_games where season = 2026 select player, only(game_date) group by player order by only(game_date) desc limit 10
latest(…)The newest row's value, rather than a number
from nhl.skater_games select player, latest(player) group by player order by count(*) desc limit 10
top(…)The value on the group's biggest row
from nhl.skater_games select player, top(player) group by player order by count(*) desc limit 10
mean(…)The plain arithmetic mean, whatever the column says about itself
from nhl.skater_games select player, mean(goals) group by player order by mean(goals) desc limit 10
median(…)The middle value in the group — half above it, half below
from nhl.skater_games select player, median(goals) group by player order by median(goals) desc limit 10
mode(…)The commonest value in the group
from nhl.skater_games select player, mode(player) group by player order by count(*) desc limit 10
year(…)Reads a date as the year it falls in
from nhl.skater_games select player, year(game_date), sum(goals) group by player, year(game_date) order by year(game_date) asc limit 20
quarter(…)Reads a date as the quarter it falls in
from nhl.skater_games select player, quarter(game_date), sum(goals) group by player, quarter(game_date) order by quarter(game_date) asc limit 20
month(…)Reads a date as the month it falls in
from nhl.skater_games select player, month(game_date), sum(goals) group by player, month(game_date) order by month(game_date) asc limit 20
week(…)Reads a date as the week it falls in
from nhl.skater_games select player, week(game_date), sum(goals) group by player, week(game_date) order by week(game_date) asc limit 20
as_of(…)The stat as it stood, season to date
from nhl.skater_games where season = 2026 select player, month(game_date), as_of(goals) group by player, month(game_date) order by month(game_date) asc limit 25
<stat>_percentileWhere a row sits in its population, 0-100
from nhl.skater_games where season = 2026 select player, goals, goals_percentile order by goals_percentile desc limit 10
percentile(…)Where a folded group ranks among the other groups
from nhl.skater_games select player, sum(goals), percentile(sum(goals)) group by player order by sum(goals) desc limit 10
standing(…)The same window, read as a place — 1 being best
from nhl.skater_games where season = 2026 select player, goals, standing(goals) order by goals desc limit 10
composite(…)One 0-100 score standing for several stats at once
from nhl.skater_games where season = 2026 select player, goals, assists, composite(goals, assists) order by composite(goals, assists) desc limit 10
ratio(…)One column divided by another
from nhl.skater_games select player, count(*), ratio(sum(goals), count(*)) group by player order by ratio(sum(goals), count(*)) desc limit 10
calc(…)Arithmetic over any columns the table can build
from nhl.skater_games where season = 2026 select player, goals, assists, calc(standing(goals) - standing(assists)) order by calc(standing(goals) - standing(assists)) desc limit 10
format(…)Prints a column's values as words, changing nothing else
from nhl.skater_games select player, goals, format(goals, > 0 -> "on the board", <= 0 -> "nothing yet") order by goals desc limit 10
pairDraws two columns of the answer in one
from nhl.skater_games where season = 2026 select player, goals, goals_percentile pair goals with goals_percentile order by goals desc limit 10
hintShows a sentence on a heading when the pointer rests on it
from nhl.skater_games where season = 2026 select player, goals, assists, points, composite(goals, assists, points) as Score hint composite(goals, assists, points) as "G + A + P" order by composite(goals, assists, points) desc limit 10
nhl.goalies Goalie seasonsOne row per goalie per season since 1917-18 — the record, saves by strength, quality starts, rest and shootouts.
from nhl.goalies select player, team, games, wins, losses, ot_losses, gaa, sv_pct, shutouts order by wins desc limit 100
player-season)nhl_goalie_seasons NHL, nhlscraperplayer team games wins losses ot_losses gaa sv_pct shutoutswins descseasonseasonswinswhere season_type = POST for the playoffs.team — teams lists them; nhl.goalie_games has the split itself.| Name | Bound to |
|---|---|
league |
always nhl |
team |
the team column |
player |
the player column |
position |
Every row here is a goalie |
season |
the season column |
| Name | Heading | Type | What it is |
|---|---|---|---|
season
completes season
|
Season | seasondimension |
The season, by the year it started — 2024 is 2024-25. |
season_type
completes season_type
|
Type | stringdimension |
REG for the regular season, POST for the playoffs. REG or POST |
player
completes player
|
Player | stringdimension |
The player, by the name the league's registry lists him under. |
team
completes team
|
Team | stringdimension |
The club, by the code it wore that season. The code the club wore that season — Arizona's 2023 season is under ARI |
franchise
completes franchise
|
Franchise | stringdimension |
The club's franchise, by the code it wears today — the thread through relocations. The franchise's current code — every Coyotes and Mammoth season is under UTA |
teams
|
Clubs | stringdimension |
Every club he played for that season, in order, when there was more than one. Every club he played for that season, in order |
clubs
|
#Clubs | integermeasure |
How many clubs he played for that season. |
catches
|
Catches | stringdimension |
Which hand he catches with — L or R. |
age
|
Age | integermeasure |
His age on February 1st of the season. Age on February 1st of the season |
nationality
completes nationality
|
Nat | stringdimension |
His nationality, as a three-letter country code. Three-letter country code |
games
|
GP | integermeasure |
Games played. NHL.com |
starts
|
GS | integermeasure |
Games he started in net. NHL.com |
wins
|
W | integermeasure |
Wins. NHL.com |
losses
lower is better
|
L | integermeasure |
Losses in regulation. NHL.com |
ot_losses
lower is better
|
OTL | integermeasure |
Losses in overtime or a shootout, worth a point since 1999-00. NHL.com |
ties
|
T | integermeasure |
Ties, which existed until 2004-05. NHL.com |
shutouts
|
SO | integermeasure |
Games with no goals allowed. NHL.com |
gaa
lower is better
|
GAA | numbermeasure |
Goals allowed per sixty minutes. NHL.com |
shots_against
|
SA | integermeasure |
Shots on goal faced. NHL.com |
saves
|
SV | integermeasure |
Saves. NHL.com |
goals_against
lower is better
|
GA | integermeasure |
Goals allowed. NHL.com |
sv_pct
|
SV% | numbermeasure |
Saves as a share of shots faced. NHL.com |
toi
|
TOI | numbermeasure |
Minutes on ice. NHL.com Minutes played |
ev_shots_against
|
EV SA | integermeasure |
Shots faced at even strength. EV SA starts in 1997 |
ev_saves
|
EV SV | integermeasure |
Saves at even strength. EV SV starts in 1997 |
ev_goals_against
lower is better
|
EV GA | integermeasure |
Goals allowed at even strength. EV GA starts in 1997 |
ev_sv_pct
|
EV SV% | numbermeasure |
Save percentage at even strength. EV SV% starts in 1997 |
pp_shots_against
|
PP SA | integermeasure |
Shots faced while his club was short-handed. PP SA starts in 1997 |
pp_saves
|
PP SV | integermeasure |
Saves while his club was short-handed. PP SV starts in 1997 |
pp_goals_against
lower is better
|
PP GA | integermeasure |
Goals allowed while his club was short-handed. PP GA starts in 1997 |
pp_sv_pct
|
PP SV% | numbermeasure |
Save percentage while his club was short-handed. PP SV% starts in 1997 |
sh_shots_against
|
SH SA | integermeasure |
Shots faced while his club was on the power play. SH SA starts in 1997 |
sh_saves
|
SH SV | integermeasure |
Saves while his club was on the power play. SH SV starts in 1997 |
sh_goals_against
lower is better
|
SH GA | integermeasure |
Goals allowed while his club was on the power play. SH GA starts in 1997 |
sh_sv_pct
|
SH SV% | numbermeasure |
Save percentage while his club was on the power play. SH SV% starts in 1997 |
goals
|
G | integermeasure |
Goals he scored himself. |
assists
|
A | integermeasure |
Assists. NHL.com |
points
|
P | integermeasure |
Goals plus assists he recorded himself. |
pim
lower is better
|
PIM | integermeasure |
Penalty minutes. NHL.com |
quality_starts
|
QS | integermeasure |
Starts with a save percentage at or above the league average, or at least .885 with two or fewer goals allowed. QS starts in 1997 |
qs_pct
|
QS% | numbermeasure |
Quality starts as a share of starts. QS% starts in 1997 |
complete_games
|
CG | integermeasure |
Starts he finished. CG starts in 1997 |
goals_for
|
GF | integermeasure |
Goals his club scored while he was in net. Goals his club scored while he was in net GF starts in 1997 |
gfa
|
GFA | numbermeasure |
Goals his club scored per sixty minutes while he was in net. GFA starts in 1997 |
sa_per_60
|
SA/60 | numbermeasure |
Shots faced per sixty minutes. SA/60 starts in 1997 |
relief_appearances
|
Rel | integermeasure |
Games he came into in relief. |
relief_sv_pct
|
Rel SV% | numbermeasure |
Save percentage in relief. |
starter_sv_pct
|
Start SV% | numbermeasure |
Save percentage in games he started. |
gp_rest_0
|
GP 0d | integermeasure |
Games on no days' rest — the second night of a back-to-back. Games on no days' rest — the second of a back-to-back |
gp_rest_1
|
GP 1d | integermeasure |
Games on one day's rest. |
gp_rest_2
|
GP 2d | integermeasure |
Games on two days' rest. |
gp_rest_3
|
GP 3d | integermeasure |
Games on three days' rest. |
gp_rest_4
|
GP 4d+ | integermeasure |
Games on four or more days' rest. |
sv_pct_rest_0
|
SV% 0d | numbermeasure |
Save percentage on no days' rest. |
sv_pct_rest_1
|
SV% 1d | numbermeasure |
Save percentage on one day's rest. |
sv_pct_rest_2
|
SV% 2d | numbermeasure |
Save percentage on two days' rest. |
sv_pct_rest_3
|
SV% 3d | numbermeasure |
Save percentage on three days' rest. |
sv_pct_rest_4
|
SV% 4d+ | numbermeasure |
Save percentage on four or more days' rest. |
so_shots_against
|
SO SA | integermeasure |
Shootout attempts faced. SO SA starts in 2005 |
so_saves
|
SO SV | integermeasure |
Shootout attempts stopped. SO SV starts in 2005 |
so_goals_against
lower is better
|
SO GA | integermeasure |
Shootout goals allowed. SO GA starts in 2005 |
so_sv_pct
|
SO SV% | numbermeasure |
Shootout attempts stopped as a share of those faced. SO SV% starts in 2005 |
so_wins
|
SO W | integermeasure |
Wins decided in a shootout. NHL.com SO W starts in 2005 |
so_losses
lower is better
|
SO L | integermeasure |
Losses decided in a shootout. NHL.com SO L starts in 2005 |
ps_against
|
PS Ag | integermeasure |
Penalty shots faced. |
ps_saves
|
PS SV | integermeasure |
Penalty shots stopped. |
rank
computed
lower is better
|
# | integermeasure |
Where the row placed in this result under your |
pctile
computed
|
%ile | integermeasure |
Where the row sits among the rows this query returned, 0 to 100 — a different population from |
win_pct W%built from sum(wins) sum(games)
Wins over games played.
from nhl.goalies select player, win_pct group by player order by win_pct desc limit 10
starts_per_game GS%built from sum(starts) sum(games)
Starts as a share of appearances.
Share of his appearances that were starts
from nhl.goalies select player, starts_per_game group by player order by starts_per_game desc limit 10
fromThe one table a query reads
from nhl.goalies select player, team, games, wins, losses, ot_losses, gaa, sv_pct, shutouts order by wins desc limit 100
selectThe columns the answer carries
from nhl.goalies select player, team, games, wins, losses, ot_losses, gaa, sv_pct, shutouts order by wins desc limit 100
asRenames a column's heading and nothing else
from nhl.goalies select player, team, games as GP order by games desc limit 10
letA value written once and referred to as $name
let year = 2026 from nhl.goalies where season = $year select player, team, games order by games desc limit 10
limitHow many rows come back
from nhl.goalies select player, team, games, wins, losses, ot_losses, gaa, sv_pct, shutouts order by wins desc limit 100
order byWhich end of the answer comes first
from nhl.goalies select player, team, games order by games desc limit 10
#A comment, to the end of the line
# Goalie seasons — One row per goalie per season since 1917-18 — the record, saves by strength, quality starts, rest and shootouts. from nhl.goalies select player, team, games, wins, losses, ot_losses, gaa, sv_pct, shutouts order by wins desc limit 100
whereChooses the rows the question is about
from nhl.goalies where season = 2026 select player, games order by games desc limit 10
andContinues whichever filter clause came last
from nhl.goalies where season = 2026 and games > 0 select player, games order by games desc limit 10
havingFilters the groups a fold made
from nhl.goalies select player, sum(games) group by player having sum(games) > 0 order by sum(games) desc limit 10
keepwhere, moved one layer out — after the ranking
from nhl.goalies where season = 2026 select player, games, games_percentile keep games_percentile >= 90 order by games_percentile desc limit 10
highlightPoints at rows instead of choosing them
from nhl.goalies select player, season, games highlight season = 2026 order by games desc limit 10
ofA threshold that is another row rather than a number
from nhl.goalies where games >= max(games) of season 2026 select player, games order by games desc limit 10
group byFolds the rows sharing these keys into one
from nhl.goalies select player, count(*), sum(games) group by player order by sum(games) desc limit 10
thenFolds the answer a second time
from nhl.goalies select player, team, count(*) group by player, team having count(*) > 10 then select player, count(*) as Teams group by player order by count(*) desc limit 10
pivot byReads the answer as a matrix
from nhl.goalies select player, team, sum(games) group by player, team pivot by team limit 25
first / lastOnly part of each career, before anything else runs
from nhl.goalies first 3 seasons select player, sum(games) group by player order by sum(games) desc limit 10
sum(…)Adds a stat up across the rows in each group
from nhl.goalies select player, sum(games) group by player order by sum(games) desc limit 10
avg(…)The mean of a stat, with rates rebuilt rather than averaged
from nhl.goalies select player, avg(games) group by player order by avg(games) desc limit 10
min(…)The smallest value in each group
from nhl.goalies select player, min(games) group by player order by min(games) desc limit 10
max(…)The largest value in each group
from nhl.goalies select player, max(games) group by player order by max(games) desc limit 10
count(…)How many rows a group swallowed
from nhl.goalies select player, count(games) group by player order by count(games) desc limit 10
distinct(…)How many different values a group holds
from nhl.goalies select player, distinct(team) group by player order by distinct(team) desc limit 10
only(…)The one value in the group, and an error if there are two
from nhl.goalies where season = 2026 select player, only(team) group by player order by only(team) desc limit 10
latest(…)The newest row's value, rather than a number
from nhl.goalies select player, latest(player) group by player order by count(*) desc limit 10
top(…)The value on the group's biggest row
from nhl.goalies select player, top(player) group by player order by count(*) desc limit 10
mean(…)The plain arithmetic mean, whatever the column says about itself
from nhl.goalies select player, mean(games) group by player order by mean(games) desc limit 10
median(…)The middle value in the group — half above it, half below
from nhl.goalies select player, median(games) group by player order by median(games) desc limit 10
mode(…)The commonest value in the group
from nhl.goalies select player, mode(player) group by player order by count(*) desc limit 10
<stat>_percentileWhere a row sits in its population, 0-100
from nhl.goalies where season = 2026 select player, games, games_percentile order by games_percentile desc limit 10
percentile(…)Where a folded group ranks among the other groups
from nhl.goalies select player, sum(games), percentile(sum(games)) group by player order by sum(games) desc limit 10
standing(…)The same window, read as a place — 1 being best
from nhl.goalies where season = 2026 select player, games, standing(games) order by games desc limit 10
composite(…)One 0-100 score standing for several stats at once
from nhl.goalies where season = 2026 select player, clubs, age, composite(clubs, age) order by composite(clubs, age) desc limit 10
ratio(…)One column divided by another
from nhl.goalies select player, count(*), ratio(sum(games), count(*)) group by player order by ratio(sum(games), count(*)) desc limit 10
calc(…)Arithmetic over any columns the table can build
from nhl.goalies where season = 2026 select player, clubs, age, calc(standing(clubs) - standing(age)) order by calc(standing(clubs) - standing(age)) desc limit 10
format(…)Prints a column's values as words, changing nothing else
from nhl.goalies select player, games, format(games, > 0 -> "on the board", <= 0 -> "nothing yet") order by games desc limit 10
pairDraws two columns of the answer in one
from nhl.goalies where season = 2026 select player, games, games_percentile pair games with games_percentile order by games desc limit 10
hintShows a sentence on a heading when the pointer rests on it
from nhl.goalies where season = 2026 select player, clubs, age, games, composite(clubs, age, games) as Score hint composite(clubs, age, games) as "#Clubs + Age + GP" order by composite(clubs, age, games) desc limit 10
year(…) — this table has no date column to read a period offquarter(…) — this table has no date column to read a period offmonth(…) — this table has no date column to read a period offweek(…) — this table has no date column to read a period offas_of(…) — this table has no time axis to accumulate alongnhl.goalie_games Goalie gamesOne row per goalie per game since 1917-18 — the decision, the saves, and from 1997-98 the strength splits and whether it was a quality start.
from nhl.goalie_games select game_date, player, team, opponent, won, shots_against, saves, goals_against, sv_pct order by saves desc limit 200
player-game)nhl_goalie_games NHL, nhlscrapergame_date player team opponent won shots_against saves goals_against sv_pctsaves descseasonseasons game_dates gamesgame_datesaveswhere season_type = POST for the playoffs.| Name | Bound to |
|---|---|
league |
always nhl |
team |
the team column |
player |
the player column |
position |
Every row here is a goalie |
season |
the season column |
| Name | Heading | Type | What it is |
|---|---|---|---|
season
completes season
|
Season | seasondimension |
The season, by the year it started — 2024 is 2024-25. |
season_type
completes season_type
|
Type | stringdimension |
REG for the regular season, POST for the playoffs. REG or POST |
game_date
|
Date | datedimension |
The date the game was played. |
player
completes player
|
Player | stringdimension |
The player, by the name the league's registry lists him under. |
team
completes team
|
Team | stringdimension |
The club, by the code it wore that season. The code the club wore that season — Arizona's 2023 season is under ARI |
franchise
completes franchise
|
Franchise | stringdimension |
The club's franchise, by the code it wears today — the thread through relocations. The franchise's current code — every Coyotes and Mammoth season is under UTA |
opponent
completes team
|
Opp | stringdimension |
The other club. |
home
|
H/A | booleandimension |
Whether this club was at home. |
started
|
GS | booleandimension |
Whether he started. |
won
|
W | booleandimension |
Whether the club, or the goalie, won. |
lost
|
L | booleandimension |
Whether the club, or the goalie, lost in regulation. |
ot_loss
|
OTL | booleandimension |
Whether the club, or the goalie, lost in overtime or a shootout. |
shutout
|
SO | booleandimension |
Whether he allowed no goals. |
quality_start
|
QS | booleandimension |
A start with a save percentage at or above the league average, or at least .885 with two or fewer goals allowed. QS starts in 1997 |
shots_against
|
SA | integermeasure |
Shots on goal faced. NHL.com |
saves
|
SV | integermeasure |
Saves. NHL.com |
goals_against
lower is better
|
GA | integermeasure |
Goals allowed. NHL.com |
sv_pct
|
SV% | numbermeasure |
Saves as a share of shots faced. NHL.com |
toi
|
TOI | numbermeasure |
Minutes on ice. NHL.com Minutes played |
ev_shots_against
|
EV SA | integermeasure |
Shots faced at even strength. EV SA starts in 1997 |
ev_saves
|
EV SV | integermeasure |
Saves at even strength. EV SV starts in 1997 |
ev_goals_against
lower is better
|
EV GA | integermeasure |
Goals allowed at even strength. EV GA starts in 1997 |
ev_sv_pct
|
EV SV% | numbermeasure |
Save percentage at even strength. EV SV% starts in 1997 |
pp_shots_against
|
PP SA | integermeasure |
Shots faced while his club was short-handed. PP SA starts in 1997 |
pp_saves
|
PP SV | integermeasure |
Saves while his club was short-handed. PP SV starts in 1997 |
pp_goals_against
lower is better
|
PP GA | integermeasure |
Goals allowed while his club was short-handed. PP GA starts in 1997 |
pp_sv_pct
|
PP SV% | numbermeasure |
Save percentage while his club was short-handed. PP SV% starts in 1997 |
sh_shots_against
|
SH SA | integermeasure |
Shots faced while his club was on the power play. SH SA starts in 1997 |
sh_saves
|
SH SV | integermeasure |
Saves while his club was on the power play. SH SV starts in 1997 |
sh_goals_against
lower is better
|
SH GA | integermeasure |
Goals allowed while his club was on the power play. SH GA starts in 1997 |
sh_sv_pct
|
SH SV% | numbermeasure |
Save percentage while his club was on the power play. SH SV% starts in 1997 |
goals
|
G | integermeasure |
Goals he scored himself. |
assists
|
A | integermeasure |
Assists. NHL.com |
points
|
P | integermeasure |
Goals plus assists he recorded himself. |
pim
lower is better
|
PIM | integermeasure |
Penalty minutes. NHL.com |
goals_for
|
GF | integermeasure |
Goals his club scored while he was in net. GF starts in 1997 |
rank
computed
lower is better
|
# | integermeasure |
Where the row placed in this result under your |
pctile
computed
|
%ile | integermeasure |
Where the row sits among the rows this query returned, 0 to 100 — a different population from |
fromThe one table a query reads
from nhl.goalie_games select game_date, player, team, opponent, won, shots_against, saves, goals_against, sv_pct order by saves desc limit 200
selectThe columns the answer carries
from nhl.goalie_games select game_date, player, team, opponent, won, shots_against, saves, goals_against, sv_pct order by saves desc limit 200
asRenames a column's heading and nothing else
from nhl.goalie_games select game_date, player, shots_against as SA order by shots_against desc limit 10
letA value written once and referred to as $name
let year = 2026 from nhl.goalie_games where season = $year select game_date, player, team order by shots_against desc limit 10
limitHow many rows come back
from nhl.goalie_games select game_date, player, team, opponent, won, shots_against, saves, goals_against, sv_pct order by saves desc limit 200
order byWhich end of the answer comes first
from nhl.goalie_games select game_date, player, team, shots_against order by shots_against desc limit 10
#A comment, to the end of the line
# Goalie games — One row per goalie per game since 1917-18 — the decision, the saves, and from 1997-98 the strength splits and whether it was a quality start. from nhl.goalie_games select game_date, player, team, opponent, won, shots_against, saves, goals_against, sv_pct order by saves desc limit 200
whereChooses the rows the question is about
from nhl.goalie_games where season = 2026 select player, shots_against order by shots_against desc limit 10
andContinues whichever filter clause came last
from nhl.goalie_games where season = 2026 and shots_against > 0 select player, shots_against order by shots_against desc limit 10
havingFilters the groups a fold made
from nhl.goalie_games select player, sum(shots_against) group by player having sum(shots_against) > 0 order by sum(shots_against) desc limit 10
keepwhere, moved one layer out — after the ranking
from nhl.goalie_games where season = 2026 select player, shots_against, shots_against_percentile keep shots_against_percentile >= 90 order by shots_against_percentile desc limit 10
highlightPoints at rows instead of choosing them
from nhl.goalie_games select player, season, shots_against highlight season = 2026 order by shots_against desc limit 10
ofA threshold that is another row rather than a number
from nhl.goalie_games where shots_against >= max(shots_against) of season 2026 select player, shots_against order by shots_against desc limit 10
group byFolds the rows sharing these keys into one
from nhl.goalie_games select player, count(*), sum(shots_against) group by player order by sum(shots_against) desc limit 10
thenFolds the answer a second time
from nhl.goalie_games select player, team, count(*) group by player, team having count(*) > 10 then select player, count(*) as Teams group by player order by count(*) desc limit 10
pivot byReads the answer as a matrix
from nhl.goalie_games select player, team, sum(shots_against) group by player, team pivot by team limit 25
first / lastOnly part of each career, before anything else runs
from nhl.goalie_games first 3 seasons select player, sum(shots_against) group by player order by sum(shots_against) desc limit 10
sum(…)Adds a stat up across the rows in each group
from nhl.goalie_games select player, sum(shots_against) group by player order by sum(shots_against) desc limit 10
avg(…)The mean of a stat, with rates rebuilt rather than averaged
from nhl.goalie_games select player, avg(shots_against) group by player order by avg(shots_against) desc limit 10
min(…)The smallest value in each group
from nhl.goalie_games select player, min(shots_against) group by player order by min(shots_against) desc limit 10
max(…)The largest value in each group
from nhl.goalie_games select player, max(shots_against) group by player order by max(shots_against) desc limit 10
count(…)How many rows a group swallowed
from nhl.goalie_games select player, count(shots_against) group by player order by count(shots_against) desc limit 10
distinct(…)How many different values a group holds
from nhl.goalie_games select player, distinct(game_date) group by player order by distinct(game_date) desc limit 10
only(…)The one value in the group, and an error if there are two
from nhl.goalie_games where season = 2026 select player, only(game_date) group by player order by only(game_date) desc limit 10
latest(…)The newest row's value, rather than a number
from nhl.goalie_games select player, latest(player) group by player order by count(*) desc limit 10
top(…)The value on the group's biggest row
from nhl.goalie_games select player, top(player) group by player order by count(*) desc limit 10
mean(…)The plain arithmetic mean, whatever the column says about itself
from nhl.goalie_games select player, mean(shots_against) group by player order by mean(shots_against) desc limit 10
median(…)The middle value in the group — half above it, half below
from nhl.goalie_games select player, median(shots_against) group by player order by median(shots_against) desc limit 10
mode(…)The commonest value in the group
from nhl.goalie_games select player, mode(player) group by player order by count(*) desc limit 10
year(…)Reads a date as the year it falls in
from nhl.goalie_games select player, year(game_date), sum(shots_against) group by player, year(game_date) order by year(game_date) asc limit 20
quarter(…)Reads a date as the quarter it falls in
from nhl.goalie_games select player, quarter(game_date), sum(shots_against) group by player, quarter(game_date) order by quarter(game_date) asc limit 20
month(…)Reads a date as the month it falls in
from nhl.goalie_games select player, month(game_date), sum(shots_against) group by player, month(game_date) order by month(game_date) asc limit 20
week(…)Reads a date as the week it falls in
from nhl.goalie_games select player, week(game_date), sum(shots_against) group by player, week(game_date) order by week(game_date) asc limit 20
as_of(…)The stat as it stood, season to date
from nhl.goalie_games where season = 2026 select player, month(game_date), as_of(shots_against) group by player, month(game_date) order by month(game_date) asc limit 25
<stat>_percentileWhere a row sits in its population, 0-100
from nhl.goalie_games where season = 2026 select player, shots_against, shots_against_percentile order by shots_against_percentile desc limit 10
percentile(…)Where a folded group ranks among the other groups
from nhl.goalie_games select player, sum(shots_against), percentile(sum(shots_against)) group by player order by sum(shots_against) desc limit 10
standing(…)The same window, read as a place — 1 being best
from nhl.goalie_games where season = 2026 select player, shots_against, standing(shots_against) order by shots_against desc limit 10
composite(…)One 0-100 score standing for several stats at once
from nhl.goalie_games where season = 2026 select player, shots_against, saves, composite(shots_against, saves) order by composite(shots_against, saves) desc limit 10
ratio(…)One column divided by another
from nhl.goalie_games select player, count(*), ratio(sum(shots_against), count(*)) group by player order by ratio(sum(shots_against), count(*)) desc limit 10
calc(…)Arithmetic over any columns the table can build
from nhl.goalie_games where season = 2026 select player, shots_against, saves, calc(standing(shots_against) - standing(saves)) order by calc(standing(shots_against) - standing(saves)) desc limit 10
format(…)Prints a column's values as words, changing nothing else
from nhl.goalie_games select player, shots_against, format(shots_against, > 0 -> "on the board", <= 0 -> "nothing yet") order by shots_against desc limit 10
pairDraws two columns of the answer in one
from nhl.goalie_games where season = 2026 select player, shots_against, shots_against_percentile pair shots_against with shots_against_percentile order by shots_against desc limit 10
hintShows a sentence on a heading when the pointer rests on it
from nhl.goalie_games where season = 2026 select player, shots_against, saves, goals_against, composite(shots_against, saves, goals_against) as Score hint composite(shots_against, saves, goals_against) as "SA + SV + GA" order by composite(shots_against, saves, goals_against) desc limit 10
nhl.teams Club seasonsOne row per club per season since 1917-18 — the standings line, special teams, possession, every situational split, and where the playoffs ended.
from nhl.teams select team, season, games, wins, losses, ot_losses, points, goal_diff, playoff_result order by points desc limit 100
team-season)nhl_team_seasons NHL, nhlscraperteam season games wins losses ot_losses points goal_diff playoff_resultpoints descseasonseasonspointswhere season_type = POST for the playoffs.playoff_result is the same on both rows so the finish can be read from either.| Name | Bound to |
|---|---|
league |
always nhl |
team |
the team column |
player |
A club season has no player — query nhl.skaters or nhl.goalies |
position |
A club season has no position |
season |
the season column |
| Name | Heading | Type | What it is |
|---|---|---|---|
season
completes season
|
Season | seasondimension |
The season, by the year it started — 2024 is 2024-25. |
season_type
completes season_type
|
Type | stringdimension |
REG for the regular season, POST for the playoffs. REG or POST |
team
completes team
|
Team | stringdimension |
The club, by the code it wore that season. The code the club wore that season — Arizona's 2023 season is under ARI |
franchise
completes franchise
|
Franchise | stringdimension |
The club's franchise, by the code it wears today — the thread through relocations. The franchise's current code — every Coyotes and Mammoth season is under UTA |
team_name
|
Club | stringdimension |
The club's full name. |
conference
completes conference
|
Conf | stringdimension |
The conference the club played in. |
division
completes division
|
Div | stringdimension |
The division the club played in. |
league_rank
lower is better
|
Lg# | integermeasure |
Where the club finished in the overall standings. Finish in the overall standings |
conference_rank
lower is better
|
Conf# | integermeasure |
Where the club finished in its conference. |
division_rank
lower is better
|
Div# | integermeasure |
Where the club finished in its division. |
playoff_result
completes playoff_result
|
Playoffs | stringdimension |
How the club's season ended: missed, the round it lost in, or Won Stanley Cup. missed, Lost 1st Round … Won Stanley Cup — the same on the REG and POST rows |
playoff_round
|
Rd | integermeasure |
The playoff round the club reached, 1 to 4; null if it missed. The round the club reached, 1 to 4; null when it missed |
games
|
GP | integermeasure |
Games played. NHL.com |
wins
|
W | integermeasure |
Wins. NHL.com |
losses
lower is better
|
L | integermeasure |
Losses in regulation. NHL.com |
ot_losses
lower is better
|
OTL | integermeasure |
Losses in overtime or a shootout, worth a point since 1999-00. NHL.com |
ties
|
T | integermeasure |
Ties, which existed until 2004-05. NHL.com |
points
|
Pts | integermeasure |
Standings points. |
point_pct
|
P% | numbermeasure |
Standings points as a share of the points available. NHL.com |
row
|
ROW | integermeasure |
Regulation and overtime wins — the standings' first tiebreaker. NHL.com Regulation and overtime wins — the first tiebreaker |
rw
|
RW | integermeasure |
Wins in regulation. NHL.com |
so_wins
|
SOW | integermeasure |
Wins decided in a shootout. |
goals_for
|
GF | integermeasure |
Goals the club scored. |
goals_against
lower is better
|
GA | integermeasure |
Goals allowed. NHL.com |
goal_diff
|
Diff | integermeasure |
Goals for less goals against. |
shots_for
|
SF | integermeasure |
Shots on goal taken. |
shots_against
lower is better
|
SA | integermeasure |
Shots on goal faced. NHL.com |
pp_pct
|
PP% | numbermeasure |
Power-play goals as a share of power-play opportunities. NHL.com |
pk_pct
|
PK% | numbermeasure |
Penalties killed as a share of times short-handed. NHL.com |
pp_opportunities
|
PPO | integermeasure |
Power plays. NHL.com |
pp_goals_for
|
PPG | integermeasure |
Goals scored on the power play. NHL.com |
times_shorthanded
|
TSH | integermeasure |
Times the club was short-handed. NHL.com |
pp_goals_against
lower is better
|
PPGA | integermeasure |
Goals allowed while his club was short-handed. |
sh_goals_for
|
SHG | integermeasure |
Goals scored while short-handed. |
sh_goals_against
lower is better
|
SHGA | integermeasure |
Goals allowed while his club was on the power play. |
faceoffs
|
FO | integermeasure |
Faceoffs taken. NHL.com FO starts in 1997 |
fo_wins
|
FOW | integermeasure |
Faceoffs won. NHL.com FOW starts in 1997 |
fo_losses
lower is better
|
FOL | integermeasure |
Faceoffs lost. NHL.com FOL starts in 1997 |
fo_pct
|
FO% | numbermeasure |
Faceoffs won as a share of faceoffs taken. NHL.com FO% starts in 1997 |
hits
|
Hits | integermeasure |
Hits delivered. NHL.com Hits starts in 2005 |
blocks
|
BkS | integermeasure |
Shots blocked. NHL.com BkS starts in 2005 |
giveaways
lower is better
|
GvA | integermeasure |
Times he gave the puck away. NHL.com GvA starts in 2005 |
takeaways
|
TkA | integermeasure |
Times he took the puck away. NHL.com TkA starts in 2005 |
missed_shots
|
Miss | integermeasure |
Shots that missed the net. Miss starts in 2005 |
attempts
|
CF | integermeasure |
Shot attempts the club took. Every attempt the club took: on goal, missed or blocked CF starts in 2005 |
attempts_blocked
|
Blkd | integermeasure |
His own attempts that an opponent blocked. Blkd starts in 2005 |
en_goals
|
ENG | integermeasure |
Goals into an empty net. ENG starts in 2005 |
penalties
lower is better
|
Pen | integermeasure |
Penalties taken. |
minors
lower is better
|
Min | integermeasure |
Minor penalties. |
majors
lower is better
|
Maj | integermeasure |
Major penalties. |
misconducts
lower is better
|
Misc | integermeasure |
Misconducts. |
bench_minors
lower is better
|
Bench | integermeasure |
Bench minors — too many men, and the like. |
pim
lower is better
|
PIM | integermeasure |
Penalty minutes. NHL.com |
penalties_drawn
|
Drawn | integermeasure |
Penalties drawn on opponents. Drawn starts in 2005 |
net_penalties
lower is better
|
Net Pen | integermeasure |
Penalties taken less penalties drawn. Net Pen starts in 2005 |
gf_per_game
|
GF/GP | numbermeasure |
Goals scored per game. |
ga_per_game
lower is better
|
GA/GP | numbermeasure |
Goals allowed per game. |
sf_per_game
|
SF/GP | numbermeasure |
Shots on goal per game. |
sa_per_game
lower is better
|
SA/GP | numbermeasure |
Shots against per game. |
sv_pct
|
SV% | numbermeasure |
Saves as a share of shots faced. NHL.com |
shutouts
|
SO | integermeasure |
Games with no goals allowed. NHL.com |
pp_net_pct
|
PP net% | numbermeasure |
Power-play percentage with short-handed goals allowed subtracted from the goals. Power-play percentage with short-handed goals against subtracted |
pk_net_pct
|
PK net% | numbermeasure |
Penalty-kill percentage with short-handed goals scored added to the kills. |
pp_toi_per_game
|
PP TOI/GP | numbermeasure |
Power-play minutes per game. PP TOI/GP starts in 1997 |
pk_toi_per_game
|
PK TOI/GP | numbermeasure |
Penalty-kill minutes per game. PK TOI/GP starts in 1997 |
cf
|
CF | integermeasure |
Shot attempts the club took — SAT for. CF starts in 2009 |
ca
lower is better
|
CA | integermeasure |
Shot attempts the club faced. CA starts in 2009 |
cf_pct
|
CF% | numbermeasure |
The club's attempts as a share of attempts for and against. CF% starts in 2009 |
cf_pct_close
|
CF% close | numbermeasure |
CF% with the score within a goal. CF% close starts in 2009 |
cf_pct_tied
|
CF% tied | numbermeasure |
CF% with the score level. CF% tied starts in 2009 |
ff
|
FF | integermeasure |
Unblocked attempts the club took. FF starts in 2009 |
fa
lower is better
|
FA | integermeasure |
Unblocked attempts the club faced. FA starts in 2009 |
ff_pct
|
FF% | numbermeasure |
The club's unblocked attempts as a share of those for and against. FF% starts in 2009 |
sh_pct_5v5
|
S% 5v5 | numbermeasure |
The club's shooting percentage at five on five. S% 5v5 starts in 2009 |
sv_pct_5v5
|
SV% 5v5 | numbermeasure |
The club's save percentage at five on five. SV% 5v5 starts in 2009 |
pdo_5v5
|
PDO | numbermeasure |
The club's shooting plus save percentage at five on five. 100 is average. Shooting plus save percentage at 5v5 — 100 is average PDO starts in 2009 |
oz_start_pct
|
OZS% | numbermeasure |
Share of the club's five-on-five shifts that began in the offensive zone. OZS% starts in 2009 |
gf_pct
|
GF% | numbermeasure |
The club's goals as a share of goals for and against. GF% starts in 2009 |
gf_5v5
|
GF 5v5 | integermeasure |
Goals scored at five on five. GF 5v5 starts in 2009 |
ga_5v5
lower is better
|
GA 5v5 | integermeasure |
Goals allowed at five on five. GA 5v5 starts in 2009 |
gf_5v4
|
GF 5v4 | integermeasure |
Goals scored at five on four. GF 5v4 starts in 2009 |
ga_4v5
lower is better
|
GA 4v5 | integermeasure |
Goals allowed at four on five. GA 4v5 starts in 2009 |
gf_4v5
|
GF 4v5 | integermeasure |
Goals scored at four on five — short-handed. GF 4v5 starts in 2009 |
gf_3v3
|
GF 3v3 | integermeasure |
Goals scored at three on three — overtime. GF 3v3 starts in 2009 |
ga_3v3
lower is better
|
GA 3v3 | integermeasure |
Goals allowed at three on three. GA 3v3 starts in 2009 |
gf_en
|
GF EN | integermeasure |
Goals scored into an empty net. Goals into an empty net GF EN starts in 2009 |
ga_en
lower is better
|
GA EN | integermeasure |
Goals allowed with the goalie pulled. Goals allowed with the goalie pulled GA EN starts in 2009 |
gf_extra_attacker
|
GF 6v5 | integermeasure |
Goals scored with the goalie pulled for an extra attacker. GF 6v5 starts in 2009 |
gf_p1
|
GF P1 | integermeasure |
Goals scored in the first period. |
ga_p1
lower is better
|
GA P1 | integermeasure |
Goals allowed in the first period. |
gf_p2
|
GF P2 | integermeasure |
Goals scored in the second period. |
ga_p2
lower is better
|
GA P2 | integermeasure |
Goals allowed in the second period. |
gf_p3
|
GF P3 | integermeasure |
Goals scored in the third period. |
ga_p3
lower is better
|
GA P3 | integermeasure |
Goals allowed in the third period. |
gf_ot
|
GF OT | integermeasure |
Goals scored in overtime. |
ga_ot
lower is better
|
GA OT | integermeasure |
Goals allowed in overtime. |
wins_leading_p1
|
W lead P1 | integermeasure |
Wins when leading after the first period. Wins when leading after the first period |
losses_leading_p1
lower is better
|
L lead P1 | integermeasure |
Losses when leading after the first period. |
wins_trailing_p1
|
W trail P1 | integermeasure |
Wins when trailing after the first period. |
wins_leading_p2
|
W lead P2 | integermeasure |
Wins when leading after two periods. |
losses_leading_p2
lower is better
|
L lead P2 | integermeasure |
Losses when leading after two periods. |
wins_trailing_p2
|
W trail P2 | integermeasure |
Wins when trailing after two periods. |
win_pct_leading_p2
|
W% lead P2 | numbermeasure |
Win percentage when leading after two periods. |
win_pct_trailing_p2
|
W% trail P2 | numbermeasure |
Win percentage when trailing after two periods. |
wins_scoring_first
|
W 1st | integermeasure |
Wins when scoring first. |
losses_scoring_first
lower is better
|
L 1st | integermeasure |
Losses when scoring first. |
wins_trailing_first
|
W trail 1st | integermeasure |
Wins when the other club scored first. |
win_pct_scoring_first
|
W% 1st | numbermeasure |
Win percentage when scoring first. |
win_pct_trailing_first
|
W% trail 1st | numbermeasure |
Win percentage when the other club scored first. |
wins_outshooting
|
W outshoot | integermeasure |
Wins when outshooting the opponent. W outshoot starts in 1959 |
wins_outshot
|
W outshot | integermeasure |
Wins when outshot. W outshot starts in 1959 |
losses_outshooting
lower is better
|
L outshoot | integermeasure |
Losses when outshooting the opponent. L outshoot starts in 1959 |
one_goal_wins
|
1G W | integermeasure |
Wins by one goal. |
one_goal_losses
lower is better
|
1G L | integermeasure |
Losses by one goal. |
one_goal_ot_losses
lower is better
|
1G OTL | integermeasure |
Overtime and shootout losses — which are one-goal games by definition. |
one_goal_win_pct
|
1G W% | numbermeasure |
Win percentage in one-goal games. |
two_goal_wins
|
2G W | integermeasure |
Wins by two goals. |
three_goal_wins
|
3G+ W | integermeasure |
Wins by three or more. |
three_goal_losses
lower is better
|
3G+ L | integermeasure |
Losses by three or more. |
goals_wrist
|
G Wrist | integermeasure |
Goals on wrist shots. G Wrist starts in 2009 |
goals_snap
|
G Snap | integermeasure |
Goals on snap shots. G Snap starts in 2009 |
goals_slap
|
G Slap | integermeasure |
Goals on slap shots. G Slap starts in 2009 |
goals_backhand
|
G Back | integermeasure |
Goals on backhands. G Back starts in 2009 |
goals_tip
|
G Tip | integermeasure |
Goals on tip-ins. G Tip starts in 2009 |
goals_deflected
|
G Defl | integermeasure |
Goals on deflections. G Defl starts in 2009 |
shooting_pct
|
S% | numbermeasure |
The club's goals as a share of its shots on goal. S% starts in 2009 |
so_games
|
SO GP | integermeasure |
Games that went to a shootout. SO GP starts in 2005 |
so_losses
lower is better
|
SO L | integermeasure |
Losses decided in a shootout. NHL.com SO L starts in 2005 |
so_shooting_pct
|
SO S% | numbermeasure |
Shootout goals as a share of attempts. SO S% starts in 2005 |
so_sv_pct
|
SO SV% | numbermeasure |
Shootout attempts stopped as a share of those faced. SO SV% starts in 2005 |
goals_5v4
|
PPG 5v4 | integermeasure |
Power-play goals at five on four. PPG 5v4 starts in 2009 |
opportunities_5v4
|
PPO 5v4 | integermeasure |
Power plays at five on four. PPO 5v4 starts in 2009 |
pp_pct_5v4
|
PP% 5v4 | numbermeasure |
Power-play percentage at five on four. PP% 5v4 starts in 2009 |
pp_toi_5v4
|
PP TOI 5v4 | numbermeasure |
Minutes on the power play at five on four. PP TOI 5v4 starts in 2009 |
goals_5v3
|
PPG 5v3 | integermeasure |
Power-play goals at five on three. PPG 5v3 starts in 2009 |
opportunities_5v3
|
PPO 5v3 | integermeasure |
Power plays at five on three. PPO 5v3 starts in 2009 |
pp_pct_5v3
|
PP% 5v3 | numbermeasure |
Power-play percentage at five on three. PP% 5v3 starts in 2009 |
times_shorthanded_4v5
|
TSH 4v5 | integermeasure |
Times short-handed at four on five. TSH 4v5 starts in 2009 |
pk_pct_4v5
|
PK% 4v5 | numbermeasure |
Penalty-kill percentage at four on five. PK% 4v5 starts in 2009 |
pk_toi_4v5
|
PK TOI 4v5 | numbermeasure |
Minutes killing penalties at four on five. PK TOI 4v5 starts in 2009 |
pk_pct_3v5
|
PK% 3v5 | numbermeasure |
Penalty-kill percentage at three on five. PK% 3v5 starts in 2009 |
rank
computed
lower is better
|
# | integermeasure |
Where the row placed in this result under your |
pctile
computed
|
%ile | integermeasure |
Where the row sits among the rows this query returned, 0 to 100 — a different population from |
win_pct W%built from sum(wins) sum(games)
Wins over games played.
from nhl.teams select team, win_pct group by team order by win_pct desc limit 10
points_per_game Pts/GPbuilt from sum(points) sum(games)
Standings points per game played.
from nhl.teams select team, points_per_game group by team order by points_per_game desc limit 10
fromThe one table a query reads
from nhl.teams select team, season, games, wins, losses, ot_losses, points, goal_diff, playoff_result order by points desc limit 100
selectThe columns the answer carries
from nhl.teams select team, season, games, wins, losses, ot_losses, points, goal_diff, playoff_result order by points desc limit 100
asRenames a column's heading and nothing else
from nhl.teams select team, season, games as GP order by games desc limit 10
letA value written once and referred to as $name
let year = 2026 from nhl.teams where season = $year select team, season, games order by games desc limit 10
limitHow many rows come back
from nhl.teams select team, season, games, wins, losses, ot_losses, points, goal_diff, playoff_result order by points desc limit 100
order byWhich end of the answer comes first
from nhl.teams select team, season, games order by games desc limit 10
#A comment, to the end of the line
# Club seasons — One row per club per season since 1917-18 — the standings line, special teams, possession, every situational split, and where the playoffs ended. from nhl.teams select team, season, games, wins, losses, ot_losses, points, goal_diff, playoff_result order by points desc limit 100
whereChooses the rows the question is about
from nhl.teams where season = 2026 select team, games order by games desc limit 10
andContinues whichever filter clause came last
from nhl.teams where season = 2026 and games > 0 select team, games order by games desc limit 10
havingFilters the groups a fold made
from nhl.teams select team, sum(games) group by team having sum(games) > 0 order by sum(games) desc limit 10
keepwhere, moved one layer out — after the ranking
from nhl.teams where season = 2026 select team, games, games_percentile keep games_percentile >= 90 order by games_percentile desc limit 10
highlightPoints at rows instead of choosing them
from nhl.teams select team, season, games highlight season = 2026 order by games desc limit 10
ofA threshold that is another row rather than a number
from nhl.teams where games >= max(games) of season 2026 select team, games order by games desc limit 10
group byFolds the rows sharing these keys into one
from nhl.teams select team, count(*), sum(games) group by team order by sum(games) desc limit 10
thenFolds the answer a second time
from nhl.teams select team, season, count(*) group by team, season having count(*) > 10 then select team, count(*) as Seasons group by team order by count(*) desc limit 10
pivot byReads the answer as a matrix
from nhl.teams select team, season, sum(games) group by team, season pivot by season limit 25
first / lastOnly part of each career, before anything else runs
from nhl.teams first 3 seasons select team, sum(games) group by team order by sum(games) desc limit 10
sum(…)Adds a stat up across the rows in each group
from nhl.teams select team, sum(games) group by team order by sum(games) desc limit 10
avg(…)The mean of a stat, with rates rebuilt rather than averaged
from nhl.teams select team, avg(games) group by team order by avg(games) desc limit 10
min(…)The smallest value in each group
from nhl.teams select team, min(games) group by team order by min(games) desc limit 10
max(…)The largest value in each group
from nhl.teams select team, max(games) group by team order by max(games) desc limit 10
count(…)How many rows a group swallowed
from nhl.teams select team, count(games) group by team order by count(games) desc limit 10
distinct(…)How many different values a group holds
from nhl.teams select team, distinct(season) group by team order by distinct(season) desc limit 10
only(…)The one value in the group, and an error if there are two
from nhl.teams where season = 2026 select team, only(season) group by team order by only(season) desc limit 10
latest(…)The newest row's value, rather than a number
from nhl.teams select team, latest(team) group by team order by count(*) desc limit 10
top(…)The value on the group's biggest row
from nhl.teams select team, top(team) group by team order by count(*) desc limit 10
mean(…)The plain arithmetic mean, whatever the column says about itself
from nhl.teams select team, mean(games) group by team order by mean(games) desc limit 10
median(…)The middle value in the group — half above it, half below
from nhl.teams select team, median(games) group by team order by median(games) desc limit 10
mode(…)The commonest value in the group
from nhl.teams select team, mode(team) group by team order by count(*) desc limit 10
<stat>_percentileWhere a row sits in its population, 0-100
from nhl.teams where season = 2026 select team, games, games_percentile order by games_percentile desc limit 10
percentile(…)Where a folded group ranks among the other groups
from nhl.teams select team, sum(games), percentile(sum(games)) group by team order by sum(games) desc limit 10
standing(…)The same window, read as a place — 1 being best
from nhl.teams where season = 2026 select team, games, standing(games) order by games desc limit 10
composite(…)One 0-100 score standing for several stats at once
from nhl.teams where season = 2026 select team, league_rank, conference_rank, composite(league_rank, conference_rank) order by composite(league_rank, conference_rank) desc limit 10
ratio(…)One column divided by another
from nhl.teams select team, count(*), ratio(sum(games), count(*)) group by team order by ratio(sum(games), count(*)) desc limit 10
calc(…)Arithmetic over any columns the table can build
from nhl.teams where season = 2026 select team, league_rank, conference_rank, calc(standing(league_rank) - standing(conference_rank)) order by calc(standing(league_rank) - standing(conference_rank)) desc limit 10
format(…)Prints a column's values as words, changing nothing else
from nhl.teams select team, games, format(games, > 0 -> "on the board", <= 0 -> "nothing yet") order by games desc limit 10
pairDraws two columns of the answer in one
from nhl.teams where season = 2026 select team, games, games_percentile pair games with games_percentile order by games desc limit 10
hintShows a sentence on a heading when the pointer rests on it
from nhl.teams where season = 2026 select team, league_rank, conference_rank, division_rank, composite(league_rank, conference_rank, division_rank) as Score hint composite(league_rank, conference_rank, division_rank) as "Lg# + Conf# + Div#" order by composite(league_rank, conference_rank, division_rank) desc limit 10
year(…) — this table has no date column to read a period offquarter(…) — this table has no date column to read a period offmonth(…) — this table has no date column to read a period offweek(…) — this table has no date column to read a period offas_of(…) — this table has no time axis to accumulate alongnhl.team_games Club gamesOne row per club per game since 1917-18 — the result, special teams, faceoffs and penalties; hits and shot attempts from 2005-06.
from nhl.team_games select game_date, team, opponent, home, goals_for, goals_against, won, shots_for, shots_against order by game_date desc limit 200
team-game)nhl_team_games NHL, nhlscrapergame_date team opponent home goals_for goals_against won shots_for shots_againstgame_date descseasonseasons game_dates gamesgame_dategoals_forwhere season_type = POST for the playoffs.goals_against and shots_against are the only columns about the other side.won, lost and ot_loss are the club's decision; a shootout loss is an ot_loss.| Name | Bound to |
|---|---|
league |
always nhl |
team |
the team column |
player |
A club row has no player — query nhl.skater_games |
position |
A club row has no position |
season |
the season column |
| Name | Heading | Type | What it is |
|---|---|---|---|
season
completes season
|
Season | seasondimension |
The season, by the year it started — 2024 is 2024-25. |
season_type
completes season_type
|
Type | stringdimension |
REG for the regular season, POST for the playoffs. REG or POST |
game_date
|
Date | datedimension |
The date the game was played. |
team
completes team
|
Team | stringdimension |
The club, by the code it wore that season. The code the club wore that season — Arizona's 2023 season is under ARI |
franchise
completes franchise
|
Franchise | stringdimension |
The club's franchise, by the code it wears today — the thread through relocations. The franchise's current code — every Coyotes and Mammoth season is under UTA |
opponent
completes team
|
Opp | stringdimension |
The other club. |
home
|
H/A | booleandimension |
Whether this club was at home. |
won
|
W | booleandimension |
Whether the club, or the goalie, won. |
lost
|
L | booleandimension |
Whether the club, or the goalie, lost in regulation. |
ot_loss
|
OTL | booleandimension |
Whether the club, or the goalie, lost in overtime or a shootout. |
tied
|
T | booleandimension |
Whether the game ended level, which could happen until 2004-05. |
won_in_regulation
|
RW | booleandimension |
Whether the win came in regulation. |
won_in_shootout
|
SOW | booleandimension |
Whether the win came in a shootout. |
points
|
Pts | integermeasure |
Standings points the club took from the game — two for a win, one for an overtime or shootout loss. |
goals_for
|
GF | integermeasure |
Goals the club scored. |
goals_against
lower is better
|
GA | integermeasure |
Goals allowed. NHL.com |
goal_diff
|
Diff | integermeasure |
Goals for less goals against. |
shots_for
|
SF | integermeasure |
Shots on goal taken. |
shots_against
lower is better
|
SA | integermeasure |
Shots on goal faced. NHL.com |
pp_pct
|
PP% | numbermeasure |
Power-play goals as a share of power-play opportunities. NHL.com |
pk_pct
|
PK% | numbermeasure |
Penalties killed as a share of times short-handed. NHL.com |
pp_opportunities
|
PPO | integermeasure |
Power plays. NHL.com |
pp_goals_for
|
PPG | integermeasure |
Goals scored on the power play. NHL.com |
times_shorthanded
|
TSH | integermeasure |
Times the club was short-handed. NHL.com |
pp_goals_against
lower is better
|
PPGA | integermeasure |
Goals allowed while his club was short-handed. |
sh_goals_for
|
SHG | integermeasure |
Goals scored while short-handed. |
sh_goals_against
lower is better
|
SHGA | integermeasure |
Goals allowed while his club was on the power play. |
faceoffs
|
FO | integermeasure |
Faceoffs taken. NHL.com FO starts in 1997 |
fo_wins
|
FOW | integermeasure |
Faceoffs won. NHL.com FOW starts in 1997 |
fo_losses
lower is better
|
FOL | integermeasure |
Faceoffs lost. NHL.com FOL starts in 1997 |
fo_pct
|
FO% | numbermeasure |
Faceoffs won as a share of faceoffs taken. NHL.com FO% starts in 1997 |
hits
|
Hits | integermeasure |
Hits delivered. NHL.com Hits starts in 2005 |
blocks
|
BkS | integermeasure |
Shots blocked. NHL.com BkS starts in 2005 |
giveaways
lower is better
|
GvA | integermeasure |
Times he gave the puck away. NHL.com GvA starts in 2005 |
takeaways
|
TkA | integermeasure |
Times he took the puck away. NHL.com TkA starts in 2005 |
missed_shots
|
Miss | integermeasure |
Shots that missed the net. Miss starts in 2005 |
attempts
|
CF | integermeasure |
Shot attempts the club took. Every attempt the club took: on goal, missed or blocked CF starts in 2005 |
attempts_blocked
|
Blkd | integermeasure |
His own attempts that an opponent blocked. Blkd starts in 2005 |
en_goals
|
ENG | integermeasure |
Goals into an empty net. ENG starts in 2005 |
penalties
lower is better
|
Pen | integermeasure |
Penalties taken. |
minors
lower is better
|
Min | integermeasure |
Minor penalties. |
majors
lower is better
|
Maj | integermeasure |
Major penalties. |
misconducts
lower is better
|
Misc | integermeasure |
Misconducts. |
bench_minors
lower is better
|
Bench | integermeasure |
Bench minors — too many men, and the like. |
pim
lower is better
|
PIM | integermeasure |
Penalty minutes. NHL.com |
penalties_drawn
|
Drawn | integermeasure |
Penalties drawn on opponents. Drawn starts in 2005 |
net_penalties
lower is better
|
Net Pen | integermeasure |
Penalties taken less penalties drawn. Net Pen starts in 2005 |
cf_pct
|
CF% | numbermeasure |
The club's share of the game's shot attempts. Share of the game's shot attempts that were the club's CF% starts in 2005 |
pp_toi
|
PP TOI | numbermeasure |
Minutes on the power play. PP TOI starts in 1997 |
pk_toi
|
PK TOI | numbermeasure |
Minutes spent killing penalties. PK TOI starts in 1997 |
toi_5v5
|
5v5 TOI | numbermeasure |
Minutes at five on five. 5v5 TOI starts in 2005 |
rank
computed
lower is better
|
# | integermeasure |
Where the row placed in this result under your |
pctile
computed
|
%ile | integermeasure |
Where the row sits among the rows this query returned, 0 to 100 — a different population from |
fromThe one table a query reads
from nhl.team_games select game_date, team, opponent, home, goals_for, goals_against, won, shots_for, shots_against order by game_date desc limit 200
selectThe columns the answer carries
from nhl.team_games select game_date, team, opponent, home, goals_for, goals_against, won, shots_for, shots_against order by game_date desc limit 200
asRenames a column's heading and nothing else
from nhl.team_games select game_date, team, goals_for as GF order by goals_for desc limit 10
letA value written once and referred to as $name
let year = 2026 from nhl.team_games where season = $year select game_date, team, opponent order by goals_for desc limit 10
limitHow many rows come back
from nhl.team_games select game_date, team, opponent, home, goals_for, goals_against, won, shots_for, shots_against order by game_date desc limit 200
order byWhich end of the answer comes first
from nhl.team_games select game_date, team, opponent, goals_for order by goals_for desc limit 10
#A comment, to the end of the line
# Club games — One row per club per game since 1917-18 — the result, special teams, faceoffs and penalties; hits and shot attempts from 2005-06. from nhl.team_games select game_date, team, opponent, home, goals_for, goals_against, won, shots_for, shots_against order by game_date desc limit 200
whereChooses the rows the question is about
from nhl.team_games where season = 2026 select team, goals_for order by goals_for desc limit 10
andContinues whichever filter clause came last
from nhl.team_games where season = 2026 and goals_for > 0 select team, goals_for order by goals_for desc limit 10
havingFilters the groups a fold made
from nhl.team_games select team, sum(goals_for) group by team having sum(goals_for) > 0 order by sum(goals_for) desc limit 10
keepwhere, moved one layer out — after the ranking
from nhl.team_games where season = 2026 select team, goals_for, goals_for_percentile keep goals_for_percentile >= 90 order by goals_for_percentile desc limit 10
highlightPoints at rows instead of choosing them
from nhl.team_games select team, season, goals_for highlight season = 2026 order by goals_for desc limit 10
ofA threshold that is another row rather than a number
from nhl.team_games where goals_for >= max(goals_for) of season 2026 select team, goals_for order by goals_for desc limit 10
group byFolds the rows sharing these keys into one
from nhl.team_games select team, count(*), sum(goals_for) group by team order by sum(goals_for) desc limit 10
thenFolds the answer a second time
from nhl.team_games select team, opponent, count(*) group by team, opponent having count(*) > 10 then select team, count(*) as Opps group by team order by count(*) desc limit 10
pivot byReads the answer as a matrix
from nhl.team_games select team, opponent, sum(goals_for) group by team, opponent pivot by opponent limit 25
first / lastOnly part of each career, before anything else runs
from nhl.team_games first 3 seasons select team, sum(goals_for) group by team order by sum(goals_for) desc limit 10
sum(…)Adds a stat up across the rows in each group
from nhl.team_games select team, sum(goals_for) group by team order by sum(goals_for) desc limit 10
avg(…)The mean of a stat, with rates rebuilt rather than averaged
from nhl.team_games select team, avg(goals_for) group by team order by avg(goals_for) desc limit 10
min(…)The smallest value in each group
from nhl.team_games select team, min(goals_for) group by team order by min(goals_for) desc limit 10
max(…)The largest value in each group
from nhl.team_games select team, max(goals_for) group by team order by max(goals_for) desc limit 10
count(…)How many rows a group swallowed
from nhl.team_games select team, count(goals_for) group by team order by count(goals_for) desc limit 10
distinct(…)How many different values a group holds
from nhl.team_games select team, distinct(game_date) group by team order by distinct(game_date) desc limit 10
only(…)The one value in the group, and an error if there are two
from nhl.team_games where season = 2026 select team, only(game_date) group by team order by only(game_date) desc limit 10
latest(…)The newest row's value, rather than a number
from nhl.team_games select team, latest(team) group by team order by count(*) desc limit 10
top(…)The value on the group's biggest row
from nhl.team_games select team, top(team) group by team order by count(*) desc limit 10
mean(…)The plain arithmetic mean, whatever the column says about itself
from nhl.team_games select team, mean(goals_for) group by team order by mean(goals_for) desc limit 10
median(…)The middle value in the group — half above it, half below
from nhl.team_games select team, median(goals_for) group by team order by median(goals_for) desc limit 10
mode(…)The commonest value in the group
from nhl.team_games select team, mode(team) group by team order by count(*) desc limit 10
year(…)Reads a date as the year it falls in
from nhl.team_games select team, year(game_date), sum(goals_for) group by team, year(game_date) order by year(game_date) asc limit 20
quarter(…)Reads a date as the quarter it falls in
from nhl.team_games select team, quarter(game_date), sum(goals_for) group by team, quarter(game_date) order by quarter(game_date) asc limit 20
month(…)Reads a date as the month it falls in
from nhl.team_games select team, month(game_date), sum(goals_for) group by team, month(game_date) order by month(game_date) asc limit 20
week(…)Reads a date as the week it falls in
from nhl.team_games select team, week(game_date), sum(goals_for) group by team, week(game_date) order by week(game_date) asc limit 20
as_of(…)The stat as it stood, season to date
from nhl.team_games where season = 2026 select team, month(game_date), as_of(goals_for) group by team, month(game_date) order by month(game_date) asc limit 25
<stat>_percentileWhere a row sits in its population, 0-100
from nhl.team_games where season = 2026 select team, goals_for, goals_for_percentile order by goals_for_percentile desc limit 10
percentile(…)Where a folded group ranks among the other groups
from nhl.team_games select team, sum(goals_for), percentile(sum(goals_for)) group by team order by sum(goals_for) desc limit 10
standing(…)The same window, read as a place — 1 being best
from nhl.team_games where season = 2026 select team, goals_for, standing(goals_for) order by goals_for desc limit 10
composite(…)One 0-100 score standing for several stats at once
from nhl.team_games where season = 2026 select team, points, goals_for, composite(points, goals_for) order by composite(points, goals_for) desc limit 10
ratio(…)One column divided by another
from nhl.team_games select team, count(*), ratio(sum(goals_for), count(*)) group by team order by ratio(sum(goals_for), count(*)) desc limit 10
calc(…)Arithmetic over any columns the table can build
from nhl.team_games where season = 2026 select team, points, goals_for, calc(standing(points) - standing(goals_for)) order by calc(standing(points) - standing(goals_for)) desc limit 10
format(…)Prints a column's values as words, changing nothing else
from nhl.team_games select team, goals_for, format(goals_for, > 0 -> "on the board", <= 0 -> "nothing yet") order by goals_for desc limit 10
pairDraws two columns of the answer in one
from nhl.team_games where season = 2026 select team, goals_for, goals_for_percentile pair goals_for with goals_for_percentile order by goals_for desc limit 10
hintShows a sentence on a heading when the pointer rests on it
from nhl.team_games where season = 2026 select team, points, goals_for, goals_against, composite(points, goals_for, goals_against) as Score hint composite(points, goals_for, goals_against) as "Pts + GF + GA" order by composite(points, goals_for, goals_against) desc limit 10
nhl.standings StandingsThe table as it stood on a date: every season's last day since 1917-18, and every night of the live season.
from nhl.standings select date, team, games, wins, losses, ot_losses, points, goal_diff, league_rank order by points desc limit 100
team-date)nhl_standings NHL, nhlscraperdate team games wins losses ot_losses points goal_diff league_rankpoints descseasonseasons datesdatepointswhere final = false or a date for a night mid-season.| Name | Bound to |
|---|---|
league |
always nhl |
team |
the team column |
player |
The standings have no player |
position |
The standings have no position |
season |
the season column |
| Name | Heading | Type | What it is |
|---|---|---|---|
season
completes season
|
Season | seasondimension |
The season, by the year it started — 2024 is 2024-25. |
date
|
Date | datedimension |
The date the standings were taken. |
final
|
Final | booleandimension |
Whether this is the season's final table, taken on the last day of the regular season. True on the season's last regular-season day |
team
completes team
|
Team | stringdimension |
The club, by the code it wore that season. The code the club wore that season — Arizona's 2023 season is under ARI |
franchise
completes franchise
|
Franchise | stringdimension |
The club's franchise, by the code it wears today — the thread through relocations. The franchise's current code — every Coyotes and Mammoth season is under UTA |
team_name
|
Club | stringdimension |
The club's full name. |
conference
completes conference
|
Conf | stringdimension |
The conference the club played in. |
division
completes division
|
Div | stringdimension |
The division the club played in. |
games
|
GP | integermeasure |
Games played. NHL.com |
wins
|
W | integermeasure |
Wins. NHL.com |
losses
lower is better
|
L | integermeasure |
Losses in regulation. NHL.com |
ot_losses
lower is better
|
OTL | integermeasure |
Losses in overtime or a shootout, worth a point since 1999-00. NHL.com |
ties
|
T | integermeasure |
Ties, which existed until 2004-05. NHL.com |
points
|
Pts | integermeasure |
Standings points. |
point_pct
|
P% | numbermeasure |
Standings points as a share of the points available. NHL.com |
rw
|
RW | integermeasure |
Wins in regulation. NHL.com |
row
|
ROW | integermeasure |
Regulation and overtime wins — the standings' first tiebreaker. NHL.com |
goals_for
|
GF | integermeasure |
Goals his club scored while he was in net. |
goals_against
lower is better
|
GA | integermeasure |
Goals allowed. NHL.com |
goal_diff
|
Diff | integermeasure |
Goals for less goals against. |
home_wins
|
HW | integermeasure |
Wins at home. |
home_losses
lower is better
|
HL | integermeasure |
Losses at home. |
home_ot_losses
lower is better
|
HOTL | integermeasure |
Overtime and shootout losses at home. |
road_wins
|
RdW | integermeasure |
Wins on the road. |
road_losses
lower is better
|
RdL | integermeasure |
Losses on the road. |
road_ot_losses
lower is better
|
RdOTL | integermeasure |
Overtime and shootout losses on the road. |
l10_wins
|
L10 W | integermeasure |
Wins in the last ten games. |
l10_losses
lower is better
|
L10 L | integermeasure |
Losses in the last ten games. |
l10_points
|
L10 Pts | integermeasure |
Points from the last ten games. |
streak
|
Streak | stringdimension |
The club's current run — W3, L2, OT1. |
league_rank
lower is better
|
Lg# | integermeasure |
Where the club finished in the overall standings. |
conference_rank
lower is better
|
Conf# | integermeasure |
Where the club finished in its conference. |
division_rank
lower is better
|
Div# | integermeasure |
Where the club finished in its division. |
wildcard_rank
lower is better
|
WC# | integermeasure |
Where the club sat in the wild-card race on that date. |
clinch
|
Clinch | stringdimension |
The league's clinch letter: x playoffs, y division, z conference, p Presidents' Trophy, e eliminated. x playoffs, y division, z conference, p Presidents' Trophy, e eliminated |
rank
computed
lower is better
|
# | integermeasure |
Where the row placed in this result under your |
pctile
computed
|
%ile | integermeasure |
Where the row sits among the rows this query returned, 0 to 100 — a different population from |
fromThe one table a query reads
from nhl.standings select date, team, games, wins, losses, ot_losses, points, goal_diff, league_rank order by points desc limit 100
selectThe columns the answer carries
from nhl.standings select date, team, games, wins, losses, ot_losses, points, goal_diff, league_rank order by points desc limit 100
asRenames a column's heading and nothing else
from nhl.standings select date, team, games as GP order by games desc limit 10
letA value written once and referred to as $name
let year = 2026 from nhl.standings where season = $year select date, team, games order by games desc limit 10
limitHow many rows come back
from nhl.standings select date, team, games, wins, losses, ot_losses, points, goal_diff, league_rank order by points desc limit 100
order byWhich end of the answer comes first
from nhl.standings select date, team, games order by games desc limit 10
#A comment, to the end of the line
# Standings — The table as it stood on a date: every season's last day since 1917-18, and every night of the live season. from nhl.standings select date, team, games, wins, losses, ot_losses, points, goal_diff, league_rank order by points desc limit 100
whereChooses the rows the question is about
from nhl.standings where season = 2026 select team, games order by games desc limit 10
andContinues whichever filter clause came last
from nhl.standings where season = 2026 and games > 0 select team, games order by games desc limit 10
havingFilters the groups a fold made
from nhl.standings select team, sum(games) group by team having sum(games) > 0 order by sum(games) desc limit 10
keepwhere, moved one layer out — after the ranking
from nhl.standings where season = 2026 select team, games, games_percentile keep games_percentile >= 90 order by games_percentile desc limit 10
highlightPoints at rows instead of choosing them
from nhl.standings select team, season, games highlight season = 2026 order by games desc limit 10
ofA threshold that is another row rather than a number
from nhl.standings where games >= max(games) of season 2026 select team, games order by games desc limit 10
group byFolds the rows sharing these keys into one
from nhl.standings select team, count(*), sum(games) group by team order by sum(games) desc limit 10
thenFolds the answer a second time
from nhl.standings select team, season, count(*) group by team, season having count(*) > 10 then select team, count(*) as Seasons group by team order by count(*) desc limit 10
pivot byReads the answer as a matrix
from nhl.standings select team, season, sum(games) group by team, season pivot by season limit 25
first / lastOnly part of each career, before anything else runs
from nhl.standings first 3 seasons select team, sum(games) group by team order by sum(games) desc limit 10
sum(…)Adds a stat up across the rows in each group
from nhl.standings select team, sum(games) group by team order by sum(games) desc limit 10
avg(…)The mean of a stat, with rates rebuilt rather than averaged
from nhl.standings select team, avg(games) group by team order by avg(games) desc limit 10
min(…)The smallest value in each group
from nhl.standings select team, min(games) group by team order by min(games) desc limit 10
max(…)The largest value in each group
from nhl.standings select team, max(games) group by team order by max(games) desc limit 10
count(…)How many rows a group swallowed
from nhl.standings select team, count(games) group by team order by count(games) desc limit 10
distinct(…)How many different values a group holds
from nhl.standings select team, distinct(date) group by team order by distinct(date) desc limit 10
only(…)The one value in the group, and an error if there are two
from nhl.standings where season = 2026 select team, only(date) group by team order by only(date) desc limit 10
latest(…)The newest row's value, rather than a number
from nhl.standings select team, latest(team) group by team order by count(*) desc limit 10
top(…)The value on the group's biggest row
from nhl.standings select team, top(team) group by team order by count(*) desc limit 10
mean(…)The plain arithmetic mean, whatever the column says about itself
from nhl.standings select team, mean(games) group by team order by mean(games) desc limit 10
median(…)The middle value in the group — half above it, half below
from nhl.standings select team, median(games) group by team order by median(games) desc limit 10
mode(…)The commonest value in the group
from nhl.standings select team, mode(team) group by team order by count(*) desc limit 10
year(…)Reads a date as the year it falls in
from nhl.standings select team, year(date), sum(games) group by team, year(date) order by year(date) asc limit 20
quarter(…)Reads a date as the quarter it falls in
from nhl.standings select team, quarter(date), sum(games) group by team, quarter(date) order by quarter(date) asc limit 20
month(…)Reads a date as the month it falls in
from nhl.standings select team, month(date), sum(games) group by team, month(date) order by month(date) asc limit 20
week(…)Reads a date as the week it falls in
from nhl.standings select team, week(date), sum(games) group by team, week(date) order by week(date) asc limit 20
as_of(…)The stat as it stood, season to date
from nhl.standings where season = 2026 select team, month(date), as_of(games) group by team, month(date) order by month(date) asc limit 25
<stat>_percentileWhere a row sits in its population, 0-100
from nhl.standings where season = 2026 select team, games, games_percentile order by games_percentile desc limit 10
percentile(…)Where a folded group ranks among the other groups
from nhl.standings select team, sum(games), percentile(sum(games)) group by team order by sum(games) desc limit 10
standing(…)The same window, read as a place — 1 being best
from nhl.standings where season = 2026 select team, games, standing(games) order by games desc limit 10
composite(…)One 0-100 score standing for several stats at once
from nhl.standings where season = 2026 select team, games, wins, composite(games, wins) order by composite(games, wins) desc limit 10
ratio(…)One column divided by another
from nhl.standings select team, count(*), ratio(sum(games), count(*)) group by team order by ratio(sum(games), count(*)) desc limit 10
calc(…)Arithmetic over any columns the table can build
from nhl.standings where season = 2026 select team, games, wins, calc(standing(games) - standing(wins)) order by calc(standing(games) - standing(wins)) desc limit 10
format(…)Prints a column's values as words, changing nothing else
from nhl.standings select team, games, format(games, > 0 -> "on the board", <= 0 -> "nothing yet") order by games desc limit 10
pairDraws two columns of the answer in one
from nhl.standings where season = 2026 select team, games, games_percentile pair games with games_percentile order by games desc limit 10
hintShows a sentence on a heading when the pointer rests on it
from nhl.standings where season = 2026 select team, games, wins, losses, composite(games, wins, losses) as Score hint composite(games, wins, losses) as "GP + W + L" order by composite(games, wins, losses) desc limit 10
nhl.plays PlaysEvery event since 2010-11 — shots with location, type and expected goals, hits, faceoffs and penalties, with the strength and the skaters on the ice.
from nhl.plays select game_date, team, period, period_seconds, event_type, strength, shooter, shot_type, distance, xg order by xg desc limit 200
team-play)nhl_plays NHL, nhlscrapergame_date team period period_seconds event_type strength shooter shot_type distance xgxg descseasonseasons game_dates shooter_ids goalie_ids playsgame_datexgwhere season_type = POST for the playoffs.xg and goals_over_xg sum; a club's season xG is sum(xg) with where attempt = true.team, and the same moment is 4v5 for opponent.| Name | Bound to |
|---|---|
league |
always nhl |
team |
the team column |
player |
A play has several players — filter shooter, scorer or goalie, or query nhl.skater_games |
position |
A play carries no position — query nhl.skater_games |
season |
the season column |
strengththis sport only |
the strength column |
event_typethis sport only |
the event_type column |
shot_typethis sport only |
the shot_type column |
| Name | Heading | Type | What it is |
|---|---|---|---|
season
completes season
|
Season | seasondimension |
The season, by the year it started — 2024 is 2024-25. |
season_type
completes season_type
|
Type | stringdimension |
REG for the regular season, POST for the playoffs. REG or POST |
game_date
|
Date | datedimension |
The date the game was played. |
team
completes team
|
Team | stringdimension |
The club, by the code it wore that season. The code the club wore that season — Arizona's 2023 season is under ARI |
opponent
completes team
|
Opp | stringdimension |
The other club. |
home_team
completes team
|
Home | stringdimension |
The club at home. |
away_team
completes team
|
Away | stringdimension |
The visiting club. |
is_home
|
H/A | booleandimension |
Whether the event's club was the home side. |
event_type
completes event_type
|
Event | stringdimension |
What happened: a shot on goal, a missed or blocked shot, a goal, a hit, a faceoff, a giveaway, a takeaway or a penalty. shot-on-goal, missed-shot, blocked-shot, goal, hit, faceoff, giveaway, takeaway, penalty |
strength
completes strength
|
Str | stringdimension |
Skaters for against skaters against, from the event's club's side — 5v5, 5v4, 4v5. Skaters for against skaters against, from the event's club's side — 5v5, 5v4, 4v5, 3v3 … |
strength_state
completes strength_state
|
State | stringdimension |
Even strength, power play or penalty kill, from the event's club's side. even-strength, power-play or penalty-kill, from the event's club's side |
period
|
Per | integermeasure |
The period, with overtime as 4 and a shootout as 5. |
period_type
|
PT | stringdimension |
REG, OT or SO. REG, OT or SO |
period_seconds
|
Sec | integermeasure |
Seconds elapsed in the period when it happened. Seconds elapsed in the period |
game_seconds
|
GSec | integermeasure |
Seconds elapsed in the game when it happened. |
zone
|
Zone | stringdimension |
The zone it happened in, from the event's club's side: O, N or D. O, N or D, from the event's club's side |
shot_type
completes shot_type
|
Shot | stringdimension |
How the puck was shot: wrist, snap, slap, backhand, tip-in, deflected, wrap-around and the rarer ones. wrist, snap, slap, backhand, tip-in, deflected, wrap-around, poke, bat, between-legs, cradle |
shooter
completes player
|
Shooter | stringdimension |
Who shot, on a shot or a goal. |
scorer
completes player
|
Scorer | stringdimension |
Who scored, on a goal. |
assist1
completes player
|
A1 | stringdimension |
The first assist. |
assist2
completes player
|
A2 | stringdimension |
The second assist. |
goalie
completes player
|
Goalie | stringdimension |
The goalie in net for the other club. |
player
completes player
|
Player | stringdimension |
The player on a faceoff, hit, giveaway, takeaway or penalty — the shooter and scorer have columns of their own. The player on a faceoff, hit, giveaway, takeaway or penalty |
shooter_id
|
Shooter ID | integerdimension |
The league's id for the shooter. The league's id for the shooter — stable where a name is not |
goalie_id
|
Goalie ID | integerdimension |
The league's id for the goalie. |
penalty_type
completes penalty_type
|
Penalty | stringdimension |
The infraction, on a penalty. |
penalty_minutes
|
PIM | integermeasure |
The penalty's length in minutes. |
reason
|
Reason | stringdimension |
Why a shot missed, a stoppage was called or a penalty given, as the feed says it. Why a shot missed, a stoppage was called or a penalty given |
x
|
X | integermeasure |
Feet from centre ice along the rink, as recorded — positive toward one end. Feet from centre ice along the length of the rink, as recorded |
y
|
Y | integermeasure |
Feet from centre ice across the rink, as recorded. |
x_norm
|
X± | numbermeasure |
X with every attempt flipped to attack the same net, so a shot from the point is always the same number. X with every attempt flipped to attack the same net |
y_norm
|
Y± | numbermeasure |
Y flipped with X. |
distance
|
Dist | numbermeasure |
Feet from the middle of the goal line. Feet from the net |
angle
|
Angle | numbermeasure |
Degrees off the line straight out from the net. Degrees off the centre line |
rush
|
Rush | booleandimension |
A shot within four seconds of an event in the neutral or defensive zone. A shot within four seconds of a neutral- or defensive-zone event |
rebound
|
Reb | booleandimension |
A shot within three seconds of another attempt. A shot within three seconds of another |
created_rebound
|
Reb+ | booleandimension |
An attempt that another attempt followed within three seconds. |
xg
|
xG | numbermeasure |
Expected goals: nhlscraper's model of how often this attempt becomes a goal, from where it was taken, how, and at what strength. It sums. Expected goals on this attempt — sums, so a season of xG is |
attempt
|
Att | booleandimension |
Whether the row is a shot attempt of any kind. A shot attempt of any kind |
unblocked
|
Unblk | booleandimension |
Whether the row is an attempt that was not blocked. |
shot
|
SOG | booleandimension |
Whether the row is a shot on goal — a save or a goal. On goal — a save or a goal |
goal
|
Goal | booleandimension |
Whether the row is a goal. |
goal_rate
|
G% | numbermeasure |
Goals as a share of rows — filter to attempts first. Share of rows that were goals — filter to attempts first |
shot_rate
|
SOG% | numbermeasure |
Shots on goal as a share of rows. Share of rows that reached the net |
goals_over_xg
|
G-xG | numbermeasure |
Goals less expected goals on the attempt; summed, it is finishing above or below the model. Goals less expected goals on the attempt — sums to finishing above the model |
home_goals
|
HG | integermeasure |
The home club's goals after this event. The score after this event |
away_goals
|
AG | integermeasure |
The visiting club's goals after this event. |
goal_diff
|
Diff | integermeasure |
The event's club's lead after this event. The event's club's lead after this event |
shots_for
|
SF | integermeasure |
The event's club's shots on goal so far. The event's club's shots on goal so far |
shots_against
|
SA | integermeasure |
The other club's shots on goal so far. |
cf
|
CF | integermeasure |
The event's club's shot attempts so far. Attempts so far, for the event's club |
ca
|
CA | integermeasure |
The other club's shot attempts so far. |
ff
|
FF | integermeasure |
The event's club's unblocked attempts so far. |
fa
|
FA | integermeasure |
The other club's unblocked attempts so far. |
skaters_for
|
SkF | integermeasure |
Skaters the event's club had on the ice. |
skaters_against
|
SkA | integermeasure |
Skaters the other club had on the ice. |
empty_net_for
|
EN For | booleandimension |
Whether the event's club had its goalie pulled. The event's club had its goalie pulled |
empty_net_against
|
EN Ag | booleandimension |
Whether the other club's net was empty. The other net was empty |
rank
computed
lower is better
|
# | integermeasure |
Where the row placed in this result under your |
pctile
computed
|
%ile | integermeasure |
Where the row sits among the rows this query returned, 0 to 100 — a different population from |
fromThe one table a query reads
from nhl.plays select game_date, team, period, period_seconds, event_type, strength, shooter, shot_type, distance, xg order by xg desc limit 200
selectThe columns the answer carries
from nhl.plays select game_date, team, period, period_seconds, event_type, strength, shooter, shot_type, distance, xg order by xg desc limit 200
asRenames a column's heading and nothing else
from nhl.plays select game_date, team, period as Per order by period desc limit 10
letA value written once and referred to as $name
let year = 2026 from nhl.plays where season = $year select game_date, team, period order by period desc limit 10
limitHow many rows come back
from nhl.plays select game_date, team, period, period_seconds, event_type, strength, shooter, shot_type, distance, xg order by xg desc limit 200
order byWhich end of the answer comes first
from nhl.plays select game_date, team, period order by period desc limit 10
#A comment, to the end of the line
# Plays — Every event since 2010-11 — shots with location, type and expected goals, hits, faceoffs and penalties, with the strength and the skaters on the ice. from nhl.plays select game_date, team, period, period_seconds, event_type, strength, shooter, shot_type, distance, xg order by xg desc limit 200
whereChooses the rows the question is about
from nhl.plays where season = 2026 select team, period order by period desc limit 10
andContinues whichever filter clause came last
from nhl.plays where season = 2026 and period > 0 select team, period order by period desc limit 10
havingFilters the groups a fold made
from nhl.plays select team, sum(period) group by team having sum(period) > 0 order by sum(period) desc limit 10
keepwhere, moved one layer out — after the ranking
from nhl.plays where season = 2026 select team, period, period_percentile keep period_percentile >= 90 order by period_percentile desc limit 10
highlightPoints at rows instead of choosing them
from nhl.plays select team, season, period highlight season = 2026 order by period desc limit 10
ofA threshold that is another row rather than a number
from nhl.plays where period >= max(period) of season 2026 select team, period order by period desc limit 10
group byFolds the rows sharing these keys into one
from nhl.plays select team, count(*), sum(period) group by team order by sum(period) desc limit 10
thenFolds the answer a second time
from nhl.plays select team, event_type, count(*) group by team, event_type having count(*) > 10 then select team, count(*) as Events group by team order by count(*) desc limit 10
pivot byReads the answer as a matrix
from nhl.plays select team, event_type, sum(period) group by team, event_type pivot by event_type limit 25
first / lastOnly part of each career, before anything else runs
from nhl.plays first 3 seasons select team, sum(period) group by team order by sum(period) desc limit 10
sum(…)Adds a stat up across the rows in each group
from nhl.plays select team, sum(period) group by team order by sum(period) desc limit 10
avg(…)The mean of a stat, with rates rebuilt rather than averaged
from nhl.plays select team, avg(period) group by team order by avg(period) desc limit 10
min(…)The smallest value in each group
from nhl.plays select team, min(period) group by team order by min(period) desc limit 10
max(…)The largest value in each group
from nhl.plays select team, max(period) group by team order by max(period) desc limit 10
count(…)How many rows a group swallowed
from nhl.plays select team, count(period) group by team order by count(period) desc limit 10
distinct(…)How many different values a group holds
from nhl.plays select team, distinct(game_date) group by team order by distinct(game_date) desc limit 10
only(…)The one value in the group, and an error if there are two
from nhl.plays where season = 2026 select team, only(game_date) group by team order by only(game_date) desc limit 10
latest(…)The newest row's value, rather than a number
from nhl.plays select team, latest(team) group by team order by count(*) desc limit 10
top(…)The value on the group's biggest row
from nhl.plays select team, top(team) group by team order by count(*) desc limit 10
mean(…)The plain arithmetic mean, whatever the column says about itself
from nhl.plays select team, mean(period) group by team order by mean(period) desc limit 10
median(…)The middle value in the group — half above it, half below
from nhl.plays select team, median(period) group by team order by median(period) desc limit 10
mode(…)The commonest value in the group
from nhl.plays select team, mode(team) group by team order by count(*) desc limit 10
year(…)Reads a date as the year it falls in
from nhl.plays select team, year(game_date), sum(period) group by team, year(game_date) order by year(game_date) asc limit 20
quarter(…)Reads a date as the quarter it falls in
from nhl.plays select team, quarter(game_date), sum(period) group by team, quarter(game_date) order by quarter(game_date) asc limit 20
month(…)Reads a date as the month it falls in
from nhl.plays select team, month(game_date), sum(period) group by team, month(game_date) order by month(game_date) asc limit 20
week(…)Reads a date as the week it falls in
from nhl.plays select team, week(game_date), sum(period) group by team, week(game_date) order by week(game_date) asc limit 20
as_of(…)The stat as it stood, season to date
from nhl.plays where season = 2026 select team, month(game_date), as_of(period) group by team, month(game_date) order by month(game_date) asc limit 25
<stat>_percentileWhere a row sits in its population, 0-100
from nhl.plays where season = 2026 select team, period, period_percentile order by period_percentile desc limit 10
percentile(…)Where a folded group ranks among the other groups
from nhl.plays select team, sum(period), percentile(sum(period)) group by team order by sum(period) desc limit 10
standing(…)The same window, read as a place — 1 being best
from nhl.plays where season = 2026 select team, period, standing(period) order by period desc limit 10
composite(…)One 0-100 score standing for several stats at once
from nhl.plays where season = 2026 select team, period, period_seconds, composite(period, period_seconds) order by composite(period, period_seconds) desc limit 10
ratio(…)One column divided by another
from nhl.plays select team, count(*), ratio(sum(period), count(*)) group by team order by ratio(sum(period), count(*)) desc limit 10
calc(…)Arithmetic over any columns the table can build
from nhl.plays where season = 2026 select team, period, period_seconds, calc(standing(period) - standing(period_seconds)) order by calc(standing(period) - standing(period_seconds)) desc limit 10
format(…)Prints a column's values as words, changing nothing else
from nhl.plays select team, period, format(period, > 0 -> "on the board", <= 0 -> "nothing yet") order by period desc limit 10
pairDraws two columns of the answer in one
from nhl.plays where season = 2026 select team, period, period_percentile pair period with period_percentile order by period desc limit 10
hintShows a sentence on a heading when the pointer rests on it
from nhl.plays where season = 2026 select team, period, period_seconds, game_seconds, composite(period, period_seconds, game_seconds) as Score hint composite(period, period_seconds, game_seconds) as "Per + Sec + GSec" order by composite(period, period_seconds, game_seconds) desc limit 10
nhl.shifts ShiftsEvery shift since 2010-11: the player, the period, and the seconds it started and ended.
from nhl.shifts select game_date, player, team, period, shift_number, start_time, end_time, duration order by duration desc limit 200
player-shift)nhl_shifts NHL, nhlscrapergame_date player team period shift_number start_time end_time durationduration descseasonseasons game_dates shiftsgame_datedurationwhere season_type = POST for the playoffs.sum(duration) / 60 over a game is his time on ice, and count(*) his shifts.| Name | Bound to |
|---|---|
league |
always nhl |
team |
the team column |
player |
the player column |
position |
the position column |
season |
the season column |
| Name | Heading | Type | What it is |
|---|---|---|---|
season
completes season
|
Season | seasondimension |
The season, by the year it started — 2024 is 2024-25. |
season_type
completes season_type
|
Type | stringdimension |
REG for the regular season, POST for the playoffs. REG or POST |
game_date
|
Date | datedimension |
The date the game was played. |
player
completes player
|
Player | stringdimension |
The player, by the name the league's registry lists him under. |
team
completes team
|
Team | stringdimension |
The club, by the code it wore that season. The code the club wore that season — Arizona's 2023 season is under ARI |
position
completes position
|
Pos | stringdimension |
C, L, R or D for a skater; G for a goalie. NHL.com C, L, R, D or G |
period
|
Per | integermeasure |
The period, with overtime as 4 and a shootout as 5. |
shift_number
|
# | integermeasure |
Which of his shifts in the game this was. |
start_time
|
Start | stringdimension |
The clock when the shift began, as mm:ss of the period. |
end_time
|
End | stringdimension |
The clock when the shift ended. |
start_seconds
|
Start s | integermeasure |
Seconds into the period the shift began. Seconds into the period the shift began |
end_seconds
|
End s | integermeasure |
Seconds into the period the shift ended. |
start_game_seconds
|
Start gs | integermeasure |
Seconds into the game the shift began. |
duration
|
Dur | integermeasure |
Seconds on the ice. Seconds on the ice |
rank
computed
lower is better
|
# | integermeasure |
Where the row placed in this result under your |
pctile
computed
|
%ile | integermeasure |
Where the row sits among the rows this query returned, 0 to 100 — a different population from |
fromThe one table a query reads
from nhl.shifts select game_date, player, team, period, shift_number, start_time, end_time, duration order by duration desc limit 200
selectThe columns the answer carries
from nhl.shifts select game_date, player, team, period, shift_number, start_time, end_time, duration order by duration desc limit 200
asRenames a column's heading and nothing else
from nhl.shifts select game_date, player, period as Per order by period desc limit 10
letA value written once and referred to as $name
let year = 2026 from nhl.shifts where season = $year select game_date, player, team order by period desc limit 10
limitHow many rows come back
from nhl.shifts select game_date, player, team, period, shift_number, start_time, end_time, duration order by duration desc limit 200
order byWhich end of the answer comes first
from nhl.shifts select game_date, player, team, period order by period desc limit 10
#A comment, to the end of the line
# Shifts — Every shift since 2010-11: the player, the period, and the seconds it started and ended. from nhl.shifts select game_date, player, team, period, shift_number, start_time, end_time, duration order by duration desc limit 200
whereChooses the rows the question is about
from nhl.shifts where season = 2026 select player, period order by period desc limit 10
andContinues whichever filter clause came last
from nhl.shifts where season = 2026 and period > 0 select player, period order by period desc limit 10
havingFilters the groups a fold made
from nhl.shifts select player, sum(period) group by player having sum(period) > 0 order by sum(period) desc limit 10
keepwhere, moved one layer out — after the ranking
from nhl.shifts where season = 2026 select player, period, period_percentile keep period_percentile >= 90 order by period_percentile desc limit 10
highlightPoints at rows instead of choosing them
from nhl.shifts select player, season, period highlight season = 2026 order by period desc limit 10
ofA threshold that is another row rather than a number
from nhl.shifts where period >= max(period) of position C select player, period order by period desc limit 10
group byFolds the rows sharing these keys into one
from nhl.shifts select player, count(*), sum(period) group by player order by sum(period) desc limit 10
thenFolds the answer a second time
from nhl.shifts select player, team, count(*) group by player, team having count(*) > 10 then select player, count(*) as Teams group by player order by count(*) desc limit 10
pivot byReads the answer as a matrix
from nhl.shifts select player, team, sum(period) group by player, team pivot by team limit 25
first / lastOnly part of each career, before anything else runs
from nhl.shifts first 3 seasons select player, sum(period) group by player order by sum(period) desc limit 10
sum(…)Adds a stat up across the rows in each group
from nhl.shifts select player, sum(period) group by player order by sum(period) desc limit 10
avg(…)The mean of a stat, with rates rebuilt rather than averaged
from nhl.shifts select player, avg(period) group by player order by avg(period) desc limit 10
min(…)The smallest value in each group
from nhl.shifts select player, min(period) group by player order by min(period) desc limit 10
max(…)The largest value in each group
from nhl.shifts select player, max(period) group by player order by max(period) desc limit 10
count(…)How many rows a group swallowed
from nhl.shifts select player, count(period) group by player order by count(period) desc limit 10
distinct(…)How many different values a group holds
from nhl.shifts select player, distinct(game_date) group by player order by distinct(game_date) desc limit 10
only(…)The one value in the group, and an error if there are two
from nhl.shifts where season = 2026 select player, only(game_date) group by player order by only(game_date) desc limit 10
latest(…)The newest row's value, rather than a number
from nhl.shifts select player, latest(player) group by player order by count(*) desc limit 10
top(…)The value on the group's biggest row
from nhl.shifts select player, top(player) group by player order by count(*) desc limit 10
mean(…)The plain arithmetic mean, whatever the column says about itself
from nhl.shifts select player, mean(period) group by player order by mean(period) desc limit 10
median(…)The middle value in the group — half above it, half below
from nhl.shifts select player, median(period) group by player order by median(period) desc limit 10
mode(…)The commonest value in the group
from nhl.shifts select player, mode(player) group by player order by count(*) desc limit 10
year(…)Reads a date as the year it falls in
from nhl.shifts select player, year(game_date), sum(period) group by player, year(game_date) order by year(game_date) asc limit 20
quarter(…)Reads a date as the quarter it falls in
from nhl.shifts select player, quarter(game_date), sum(period) group by player, quarter(game_date) order by quarter(game_date) asc limit 20
month(…)Reads a date as the month it falls in
from nhl.shifts select player, month(game_date), sum(period) group by player, month(game_date) order by month(game_date) asc limit 20
week(…)Reads a date as the week it falls in
from nhl.shifts select player, week(game_date), sum(period) group by player, week(game_date) order by week(game_date) asc limit 20
as_of(…)The stat as it stood, season to date
from nhl.shifts where season = 2026 select player, month(game_date), as_of(period) group by player, month(game_date) order by month(game_date) asc limit 25
<stat>_percentileWhere a row sits in its population, 0-100
from nhl.shifts where season = 2026 select player, period, period_percentile order by period_percentile desc limit 10
percentile(…)Where a folded group ranks among the other groups
from nhl.shifts select player, sum(period), percentile(sum(period)) group by player order by sum(period) desc limit 10
standing(…)The same window, read as a place — 1 being best
from nhl.shifts where season = 2026 select player, period, standing(period) order by period desc limit 10
composite(…)One 0-100 score standing for several stats at once
from nhl.shifts where season = 2026 select player, period, shift_number, composite(period, shift_number) order by composite(period, shift_number) desc limit 10
ratio(…)One column divided by another
from nhl.shifts select player, count(*), ratio(sum(period), count(*)) group by player order by ratio(sum(period), count(*)) desc limit 10
calc(…)Arithmetic over any columns the table can build
from nhl.shifts where season = 2026 select player, period, shift_number, calc(standing(period) - standing(shift_number)) order by calc(standing(period) - standing(shift_number)) desc limit 10
format(…)Prints a column's values as words, changing nothing else
from nhl.shifts select player, period, format(period, > 0 -> "on the board", <= 0 -> "nothing yet") order by period desc limit 10
pairDraws two columns of the answer in one
from nhl.shifts where season = 2026 select player, period, period_percentile pair period with period_percentile order by period desc limit 10
hintShows a sentence on a heading when the pointer rests on it
from nhl.shifts where season = 2026 select player, period, shift_number, start_seconds, composite(period, shift_number, start_seconds) as Score hint composite(period, shift_number, start_seconds) as "Per + # + Start s" order by composite(period, shift_number, start_seconds) desc limit 10
nhl.draft Draft picksEvery draft pick since 1963: the year, round and slot, who took him and where he came from.
from nhl.draft select draft_year, round, overall, player, position, team, amateur_club, amateur_league order by overall asc limit 250
player-pick)nhl_draft_picks NHL, nhlscraperdraft_year round overall player position team amateur_club amateur_leagueoverall ascdraft_yeardraft_years picksdraft_yearplayer id is one whose player never appeared in the league's registry; his name is still on the row.| Name | Bound to |
|---|---|
league |
always nhl |
team |
the team column |
player |
the player column |
position |
the position column |
season |
the draft_year column |
| Name | Heading | Type | What it is |
|---|---|---|---|
draft_year
completes draft_year
|
Year | integerdimension |
The year of the draft. |
round
lower is better
|
Rd | integermeasure |
The round he was taken in. |
pick
lower is better
|
Pick | integermeasure |
His slot within the round. |
overall
lower is better
|
Ovr | integermeasure |
His overall pick number. |
player
completes player
|
Player | stringdimension |
The player, by the name the league's registry lists him under. |
position
completes position
|
Pos | stringdimension |
C, L, R or D for a skater; G for a goalie. NHL.com C, L, R, D or G |
shoots
|
Shoots | stringdimension |
Which way he shoots — L or R. |
team
completes team
|
Team | stringdimension |
The club that drafted him. The code the club wore that season — Arizona's 2023 season is under ARI |
franchise
completes franchise
|
Franchise | stringdimension |
The club's franchise, by the code it wears today — the thread through relocations. The franchise's current code — every Coyotes and Mammoth season is under UTA |
amateur_club
|
From | stringdimension |
The club he was drafted from. |
amateur_league
completes amateur_league
|
League | stringdimension |
The league he was drafted from. |
country
completes nationality
|
Ctry | stringdimension |
The country he was drafted from, as a code. |
birth_place
|
Born | stringdimension |
Where he was born. |
age
|
Age | integermeasure |
His age on draft day. Age on draft day |
height
|
Ht | integermeasure |
Height in inches at the draft. Inches |
weight
|
Wt | integermeasure |
Weight in pounds at the draft. |
nhl_games_experience
|
NHL yrs | integermeasure |
Seasons of NHL experience the registry credits him with. Seasons of NHL experience the registry credits him with |
hall_of_fame
|
HOF | booleandimension |
Whether he is in the Hockey Hall of Fame. |
rank
computed
lower is better
|
# | integermeasure |
Where the row placed in this result under your |
pctile
computed
|
%ile | integermeasure |
Where the row sits among the rows this query returned, 0 to 100 — a different population from |
fromThe one table a query reads
from nhl.draft select draft_year, round, overall, player, position, team, amateur_club, amateur_league order by overall asc limit 250
selectThe columns the answer carries
from nhl.draft select draft_year, round, overall, player, position, team, amateur_club, amateur_league order by overall asc limit 250
asRenames a column's heading and nothing else
from nhl.draft select draft_year, round, round as Rd order by round asc limit 10
letA value written once and referred to as $name
let year = 2026 from nhl.draft where draft_year = $year select draft_year, round, overall order by round asc limit 10
limitHow many rows come back
from nhl.draft select draft_year, round, overall, player, position, team, amateur_club, amateur_league order by overall asc limit 250
order byWhich end of the answer comes first
from nhl.draft select draft_year, round, overall order by round asc limit 10
#A comment, to the end of the line
# Draft picks — Every draft pick since 1963: the year, round and slot, who took him and where he came from. from nhl.draft select draft_year, round, overall, player, position, team, amateur_club, amateur_league order by overall asc limit 250
whereChooses the rows the question is about
from nhl.draft where draft_year = 1 select player, round order by round asc limit 10
andContinues whichever filter clause came last
from nhl.draft where draft_year = 1 and round > 0 select player, round order by round asc limit 10
havingFilters the groups a fold made
from nhl.draft select player, sum(round) group by player having sum(round) > 0 order by sum(round) desc limit 10
keepwhere, moved one layer out — after the ranking
from nhl.draft where draft_year = 1 select player, round, round_percentile keep round_percentile >= 90 order by round_percentile desc limit 10
highlightPoints at rows instead of choosing them
from nhl.draft select player, draft_year, round highlight draft_year = 1 order by round asc limit 10
ofA threshold that is another row rather than a number
from nhl.draft where round >= max(round) of position C select player, round order by round asc limit 10
group byFolds the rows sharing these keys into one
from nhl.draft select player, count(*), sum(round) group by player order by sum(round) desc limit 10
thenFolds the answer a second time
from nhl.draft select player, position, count(*) group by player, position having count(*) > 10 then select player, count(*) as Poss group by player order by count(*) desc limit 10
pivot byReads the answer as a matrix
from nhl.draft select player, position, sum(round) group by player, position pivot by position limit 25
first / lastOnly part of each career, before anything else runs
from nhl.draft first 3 draft_years select player, sum(round) group by player order by sum(round) desc limit 10
sum(…)Adds a stat up across the rows in each group
from nhl.draft select player, sum(round) group by player order by sum(round) desc limit 10
avg(…)The mean of a stat, with rates rebuilt rather than averaged
from nhl.draft select player, avg(round) group by player order by avg(round) desc limit 10
min(…)The smallest value in each group
from nhl.draft select player, min(round) group by player order by min(round) desc limit 10
max(…)The largest value in each group
from nhl.draft select player, max(round) group by player order by max(round) desc limit 10
count(…)How many rows a group swallowed
from nhl.draft select player, count(round) group by player order by count(round) desc limit 10
distinct(…)How many different values a group holds
from nhl.draft select player, distinct(draft_year) group by player order by distinct(draft_year) desc limit 10
only(…)The one value in the group, and an error if there are two
from nhl.draft where draft_year = 1 select player, only(draft_year) group by player order by only(draft_year) desc limit 10
latest(…)The newest row's value, rather than a number
from nhl.draft select player, latest(player) group by player order by count(*) desc limit 10
mean(…)The plain arithmetic mean, whatever the column says about itself
from nhl.draft select player, mean(round) group by player order by mean(round) desc limit 10
median(…)The middle value in the group — half above it, half below
from nhl.draft select player, median(round) group by player order by median(round) desc limit 10
mode(…)The commonest value in the group
from nhl.draft select player, mode(player) group by player order by count(*) desc limit 10
<stat>_percentileWhere a row sits in its population, 0-100
from nhl.draft where draft_year = 1 select player, round, round_percentile order by round_percentile desc limit 10
percentile(…)Where a folded group ranks among the other groups
from nhl.draft select player, sum(round), percentile(sum(round)) group by player order by sum(round) desc limit 10
standing(…)The same window, read as a place — 1 being best
from nhl.draft where draft_year = 1 select player, round, standing(round) order by round asc limit 10
composite(…)One 0-100 score standing for several stats at once
from nhl.draft where draft_year = 1 select player, round, pick, composite(round, pick) order by composite(round, pick) desc limit 10
ratio(…)One column divided by another
from nhl.draft select player, count(*), ratio(sum(round), count(*)) group by player order by ratio(sum(round), count(*)) desc limit 10
calc(…)Arithmetic over any columns the table can build
from nhl.draft where draft_year = 1 select player, round, pick, calc(standing(round) - standing(pick)) order by calc(standing(round) - standing(pick)) desc limit 10
format(…)Prints a column's values as words, changing nothing else
from nhl.draft select player, round, format(round, > 0 -> "on the board", <= 0 -> "nothing yet") order by round asc limit 10
pairDraws two columns of the answer in one
from nhl.draft where draft_year = 1 select player, round, round_percentile pair round with round_percentile order by round asc limit 10
hintShows a sentence on a heading when the pointer rests on it
from nhl.draft where draft_year = 1 select player, round, pick, overall, composite(round, pick, overall) as Score hint composite(round, pick, overall) as "Rd + Pick + Ovr" order by composite(round, pick, overall) desc limit 10
top(…) — this table does not say which of its rows is the biggest, so there is no top one to pickyear(…) — this table has no date column to read a period offquarter(…) — this table has no date column to read a period offmonth(…) — this table has no date column to read a period offweek(…) — this table has no date column to read a period offas_of(…) — this table has no time axis to accumulate alongnhl.awards AwardsEvery trophy winner, runner-up and finalist since 1917-18, with the vote where there was one.
from nhl.awards select season, trophy, status, player, team, votes order by season desc limit 200
player-season)nhl_awards NHL, nhlscraperseason trophy status player team votesseason descseasonseasonswhere status = FINALIST or RUNNER_UP for the rest of the ballot.team and no player.where status = WINNER is the list of winners.| Name | Bound to |
|---|---|
league |
always nhl |
team |
the team column |
player |
the player column |
position |
the position column |
season |
the season column |
| Name | Heading | Type | What it is |
|---|---|---|---|
season
completes season
|
Season | seasondimension |
The season, by the year it started — 2024 is 2024-25. |
trophy
completes trophy
|
Trophy | stringdimension |
The trophy. |
awarded_for
|
For | stringdimension |
What the trophy is for, in the league's words. |
status
completes award_status
|
Status | stringdimension |
WINNER, RUNNER_UP or FINALIST. WINNER, RUNNER_UP or FINALIST |
player
completes player
|
Player | stringdimension |
The player, by the name the league's registry lists him under. |
position
completes position
|
Pos | stringdimension |
C, L, R or D for a skater; G for a goalie. NHL.com C, L, R, D or G |
team
completes team
|
Team | stringdimension |
The club — his that season, or the club the trophy went to. The code the club wore that season — Arizona's 2023 season is under ARI |
franchise
completes franchise
|
Franchise | stringdimension |
The club's franchise, by the code it wears today — the thread through relocations. The franchise's current code — every Coyotes and Mammoth season is under UTA |
value
|
Value | integermeasure |
The figure the award was for, where it is a counting trophy — goals for the Rocket, points for the Art Ross. The figure the award was for, where it is a counting trophy — goals for the Rocket, points for the Art Ross |
votes
|
Votes | integermeasure |
Voting points received, where the award is voted. |
rookie
|
Rookie | booleandimension |
Whether he was a rookie that season. |
rank
computed
lower is better
|
# | integermeasure |
Where the row placed in this result under your |
pctile
computed
|
%ile | integermeasure |
Where the row sits among the rows this query returned, 0 to 100 — a different population from |
fromThe one table a query reads
from nhl.awards select season, trophy, status, player, team, votes order by season desc limit 200
selectThe columns the answer carries
from nhl.awards select season, trophy, status, player, team, votes order by season desc limit 200
asRenames a column's heading and nothing else
from nhl.awards select season, trophy, votes as Votes order by votes desc limit 10
letA value written once and referred to as $name
let year = 2026 from nhl.awards where season = $year select season, trophy, status order by votes desc limit 10
limitHow many rows come back
from nhl.awards select season, trophy, status, player, team, votes order by season desc limit 200
order byWhich end of the answer comes first
from nhl.awards select season, trophy, status, votes order by votes desc limit 10
#A comment, to the end of the line
# Awards — Every trophy winner, runner-up and finalist since 1917-18, with the vote where there was one. from nhl.awards select season, trophy, status, player, team, votes order by season desc limit 200
whereChooses the rows the question is about
from nhl.awards where season = 2026 select player, votes order by votes desc limit 10
andContinues whichever filter clause came last
from nhl.awards where season = 2026 and votes > 0 select player, votes order by votes desc limit 10
havingFilters the groups a fold made
from nhl.awards select player, sum(votes) group by player having sum(votes) > 0 order by sum(votes) desc limit 10
keepwhere, moved one layer out — after the ranking
from nhl.awards where season = 2026 select player, votes, votes_percentile keep votes_percentile >= 90 order by votes_percentile desc limit 10
highlightPoints at rows instead of choosing them
from nhl.awards select player, season, votes highlight season = 2026 order by votes desc limit 10
ofA threshold that is another row rather than a number
from nhl.awards where votes >= max(votes) of position C select player, votes order by votes desc limit 10
group byFolds the rows sharing these keys into one
from nhl.awards select player, count(*), sum(votes) group by player order by sum(votes) desc limit 10
thenFolds the answer a second time
from nhl.awards select player, season, count(*) group by player, season having count(*) > 10 then select player, count(*) as Seasons group by player order by count(*) desc limit 10
pivot byReads the answer as a matrix
from nhl.awards select player, season, sum(votes) group by player, season pivot by season limit 25
first / lastOnly part of each career, before anything else runs
from nhl.awards first 3 seasons select player, sum(votes) group by player order by sum(votes) desc limit 10
sum(…)Adds a stat up across the rows in each group
from nhl.awards select player, sum(votes) group by player order by sum(votes) desc limit 10
avg(…)The mean of a stat, with rates rebuilt rather than averaged
from nhl.awards select player, avg(votes) group by player order by avg(votes) desc limit 10
min(…)The smallest value in each group
from nhl.awards select player, min(votes) group by player order by min(votes) desc limit 10
max(…)The largest value in each group
from nhl.awards select player, max(votes) group by player order by max(votes) desc limit 10
count(…)How many rows a group swallowed
from nhl.awards select player, count(votes) group by player order by count(votes) desc limit 10
distinct(…)How many different values a group holds
from nhl.awards select player, distinct(season) group by player order by distinct(season) desc limit 10
only(…)The one value in the group, and an error if there are two
from nhl.awards where season = 2026 select player, only(season) group by player order by only(season) desc limit 10
latest(…)The newest row's value, rather than a number
from nhl.awards select player, latest(trophy) group by player order by count(*) desc limit 10
mean(…)The plain arithmetic mean, whatever the column says about itself
from nhl.awards select player, mean(votes) group by player order by mean(votes) desc limit 10
median(…)The middle value in the group — half above it, half below
from nhl.awards select player, median(votes) group by player order by median(votes) desc limit 10
mode(…)The commonest value in the group
from nhl.awards select player, mode(trophy) group by player order by count(*) desc limit 10
<stat>_percentileWhere a row sits in its population, 0-100
from nhl.awards where season = 2026 select player, votes, votes_percentile order by votes_percentile desc limit 10
percentile(…)Where a folded group ranks among the other groups
from nhl.awards select player, sum(votes), percentile(sum(votes)) group by player order by sum(votes) desc limit 10
standing(…)The same window, read as a place — 1 being best
from nhl.awards where season = 2026 select player, votes, standing(votes) order by votes desc limit 10
composite(…)One 0-100 score standing for several stats at once
from nhl.awards where season = 2026 select player, value, votes, composite(value, votes) order by composite(value, votes) desc limit 10
ratio(…)One column divided by another
from nhl.awards select player, count(*), ratio(sum(votes), count(*)) group by player order by ratio(sum(votes), count(*)) desc limit 10
calc(…)Arithmetic over any columns the table can build
from nhl.awards where season = 2026 select player, value, votes, calc(standing(value) - standing(votes)) order by calc(standing(value) - standing(votes)) desc limit 10
format(…)Prints a column's values as words, changing nothing else
from nhl.awards select player, votes, format(votes, > 0 -> "on the board", <= 0 -> "nothing yet") order by votes desc limit 10
pairDraws two columns of the answer in one
from nhl.awards where season = 2026 select player, votes, votes_percentile pair votes with votes_percentile order by votes desc limit 10
hintShows a sentence on a heading when the pointer rests on it
from nhl.awards where season = 2026 select player, value, votes, composite(value, votes) as Score hint composite(value, votes) as "Value + Votes" order by composite(value, votes) desc limit 10
top(…) — this table does not say which of its rows is the biggest, so there is no top one to pickyear(…) — this table has no date column to read a period offquarter(…) — this table has no date column to read a period offmonth(…) — this table has no date column to read a period offweek(…) — this table has no date column to read a period offas_of(…) — this table has no time axis to accumulate alongnhl.contracts ContractsPlayer contracts: term, average annual value and total, as nhlscraper packages them.
from nhl.contracts select player, position, team, start_season, end_season, term, aav, value order by aav desc limit 100
player-contract)nhl_contracts nhlscraperplayer position team start_season end_season term aav valueaav descstart_seasonstart_seasons end_seasons contractsstart_seasonaavstart_season is the season binding, so where season = 2024 finds deals that began that year, not every deal in force.| Name | Bound to |
|---|---|
league |
always nhl |
team |
the team column |
player |
the player column |
position |
the position column |
season |
the start_season column |
| Name | Heading | Type | What it is |
|---|---|---|---|
start_season
completes season
|
From | seasondimension |
The first season the deal covers. The first season the deal covers |
end_season
completes season
|
To | seasondimension |
The last season the deal covers. The last season the deal covers |
player
completes player
|
Player | stringdimension |
The player, by the name the league's registry lists him under. |
position
completes position
|
Pos | stringdimension |
C, L, R or D for a skater; G for a goalie. NHL.com C, L, R, D or G |
team
completes team
|
Team | stringdimension |
The club he signed with. The code the club wore that season — Arizona's 2023 season is under ARI |
franchise
completes franchise
|
Franchise | stringdimension |
The club's franchise, by the code it wears today — the thread through relocations. The franchise's current code — every Coyotes and Mammoth season is under UTA |
age_at_signing
|
Age | integermeasure |
His age when he signed. |
term
|
Yrs | integermeasure |
Years on the deal. |
aav
|
AAV | integermeasure |
Average annual value, in dollars. Average annual value, in dollars |
value
|
Total | integermeasure |
Total value of the deal, in dollars. Total value of the deal, in dollars |
bonus
|
Bonus | integermeasure |
Signing bonus, in dollars. Signing bonus, in dollars |
rank
computed
lower is better
|
# | integermeasure |
Where the row placed in this result under your |
pctile
computed
|
%ile | integermeasure |
Where the row sits among the rows this query returned, 0 to 100 — a different population from |
fromThe one table a query reads
from nhl.contracts select player, position, team, start_season, end_season, term, aav, value order by aav desc limit 100
selectThe columns the answer carries
from nhl.contracts select player, position, team, start_season, end_season, term, aav, value order by aav desc limit 100
asRenames a column's heading and nothing else
from nhl.contracts select player, position, term as Yrs order by term desc limit 10
letA value written once and referred to as $name
let year = 2026 from nhl.contracts where start_season = $year select player, position, team order by term desc limit 10
limitHow many rows come back
from nhl.contracts select player, position, team, start_season, end_season, term, aav, value order by aav desc limit 100
order byWhich end of the answer comes first
from nhl.contracts select player, position, team, term order by term desc limit 10
#A comment, to the end of the line
# Contracts — Player contracts: term, average annual value and total, as nhlscraper packages them. from nhl.contracts select player, position, team, start_season, end_season, term, aav, value order by aav desc limit 100
whereChooses the rows the question is about
from nhl.contracts where start_season = 2026 select player, term order by term desc limit 10
andContinues whichever filter clause came last
from nhl.contracts where start_season = 2026 and term > 0 select player, term order by term desc limit 10
havingFilters the groups a fold made
from nhl.contracts select player, sum(term) group by player having sum(term) > 0 order by sum(term) desc limit 10
keepwhere, moved one layer out — after the ranking
from nhl.contracts where start_season = 2026 select player, term, term_percentile keep term_percentile >= 90 order by term_percentile desc limit 10
highlightPoints at rows instead of choosing them
from nhl.contracts select player, start_season, term highlight start_season = 2026 order by term desc limit 10
ofA threshold that is another row rather than a number
from nhl.contracts where term >= max(term) of position C select player, term order by term desc limit 10
group byFolds the rows sharing these keys into one
from nhl.contracts select player, count(*), sum(term) group by player order by sum(term) desc limit 10
thenFolds the answer a second time
from nhl.contracts select player, start_season, count(*) group by player, start_season having count(*) > 10 then select player, count(*) as Froms group by player order by count(*) desc limit 10
pivot byReads the answer as a matrix
from nhl.contracts select player, start_season, sum(term) group by player, start_season pivot by start_season limit 25
first / lastOnly part of each career, before anything else runs
from nhl.contracts first 3 start_seasons select player, sum(term) group by player order by sum(term) desc limit 10
sum(…)Adds a stat up across the rows in each group
from nhl.contracts select player, sum(term) group by player order by sum(term) desc limit 10
avg(…)The mean of a stat, with rates rebuilt rather than averaged
from nhl.contracts select player, avg(term) group by player order by avg(term) desc limit 10
min(…)The smallest value in each group
from nhl.contracts select player, min(term) group by player order by min(term) desc limit 10
max(…)The largest value in each group
from nhl.contracts select player, max(term) group by player order by max(term) desc limit 10
count(…)How many rows a group swallowed
from nhl.contracts select player, count(term) group by player order by count(term) desc limit 10
distinct(…)How many different values a group holds
from nhl.contracts select player, distinct(start_season) group by player order by distinct(start_season) desc limit 10
only(…)The one value in the group, and an error if there are two
from nhl.contracts where start_season = 2026 select player, only(start_season) group by player order by only(start_season) desc limit 10
latest(…)The newest row's value, rather than a number
from nhl.contracts select player, latest(player) group by player order by count(*) desc limit 10
top(…)The value on the group's biggest row
from nhl.contracts select player, top(player) group by player order by count(*) desc limit 10
mean(…)The plain arithmetic mean, whatever the column says about itself
from nhl.contracts select player, mean(term) group by player order by mean(term) desc limit 10
median(…)The middle value in the group — half above it, half below
from nhl.contracts select player, median(term) group by player order by median(term) desc limit 10
mode(…)The commonest value in the group
from nhl.contracts select player, mode(player) group by player order by count(*) desc limit 10
<stat>_percentileWhere a row sits in its population, 0-100
from nhl.contracts where start_season = 2026 select player, term, term_percentile order by term_percentile desc limit 10
percentile(…)Where a folded group ranks among the other groups
from nhl.contracts select player, sum(term), percentile(sum(term)) group by player order by sum(term) desc limit 10
standing(…)The same window, read as a place — 1 being best
from nhl.contracts where start_season = 2026 select player, term, standing(term) order by term desc limit 10
composite(…)One 0-100 score standing for several stats at once
from nhl.contracts where start_season = 2026 select player, age_at_signing, term, composite(age_at_signing, term) order by composite(age_at_signing, term) desc limit 10
ratio(…)One column divided by another
from nhl.contracts select player, count(*), ratio(sum(term), count(*)) group by player order by ratio(sum(term), count(*)) desc limit 10
calc(…)Arithmetic over any columns the table can build
from nhl.contracts where start_season = 2026 select player, age_at_signing, term, calc(standing(age_at_signing) - standing(term)) order by calc(standing(age_at_signing) - standing(term)) desc limit 10
format(…)Prints a column's values as words, changing nothing else
from nhl.contracts select player, term, format(term, > 0 -> "on the board", <= 0 -> "nothing yet") order by term desc limit 10
pairDraws two columns of the answer in one
from nhl.contracts where start_season = 2026 select player, term, term_percentile pair term with term_percentile order by term desc limit 10
hintShows a sentence on a heading when the pointer rests on it
from nhl.contracts where start_season = 2026 select player, age_at_signing, term, aav, composite(age_at_signing, term, aav) as Score hint composite(age_at_signing, term, aav) as "Age + Yrs + AAV" order by composite(age_at_signing, term, aav) desc limit 10
year(…) — this table has no date column to read a period offquarter(…) — this table has no date column to read a period offmonth(…) — this table has no date column to read a period offweek(…) — this table has no date column to read a period offas_of(…) — this table has no time axis to accumulate along