The one table a query reads
from mlb.command_pitches
select game_date, player, pitch_type, target_x, target_z, plate_x, plate_z, miss
order by game_date desc
limit 500
The columns the answer carries
from mlb.command_pitches
select game_date, player, pitch_type, target_x, target_z, plate_x, plate_z, miss
order by game_date desc
limit 500
Renames a column's heading and nothing else
from mlb.command_pitches
select game_date, player, miss as Miss
order by miss asc
limit 10
A value written once and referred to as $name
let year = 2026
from mlb.command_pitches
where season = $year
select game_date, player, pitch_type
order by miss asc
limit 10
How many rows come back
from mlb.command_pitches
select game_date, player, pitch_type, target_x, target_z, plate_x, plate_z, miss
order by game_date desc
limit 500
Which end of the answer comes first
from mlb.command_pitches
select game_date, player, pitch_type, miss
order by miss asc
limit 10
A comment, to the end of the line
# Command pitches — One row per scored pitch: where it was aimed, where it crossed, and how far apart those were.
from mlb.command_pitches
select game_date, player, pitch_type, target_x, target_z, plate_x, plate_z, miss
order by game_date desc
limit 500
Chooses the rows the question is about
from mlb.command_pitches
where season = 2026
select player, miss
order by miss asc
limit 10
Continues whichever filter clause came last
from mlb.command_pitches
where season = 2026 and miss > 0
select player, miss
order by miss asc
limit 10
Filters the groups a fold made
from mlb.command_pitches
select player, sum(miss)
group by player
having sum(miss) > 0
order by sum(miss) desc
limit 10
where, moved one layer out — after the ranking
from mlb.command_pitches
where season = 2026
select player, miss, miss_percentile
keep miss_percentile >= 90
order by miss_percentile desc
limit 10
Points at rows instead of choosing them
from mlb.command_pitches
select player, season, miss
highlight season = 2026
order by miss asc
limit 10
A threshold that is another row rather than a number
from mlb.command_pitches
where miss >= max(miss) of season 2026
select player, miss
order by miss asc
limit 10
Folds the rows sharing these keys into one
from mlb.command_pitches
select player, count(*), sum(miss)
group by player
order by sum(miss) desc
limit 10
Folds the answer a second time
from mlb.command_pitches
select player, pitch_type, count(*)
group by player, pitch_type
having count(*) > 10
then
select player, count(*) as Pitchs
group by player
order by count(*) desc
limit 10
Reads the answer as a matrix
from mlb.command_pitches
select player, pitch_type, sum(miss)
group by player, pitch_type
pivot by pitch_type
limit 25
Only part of each career, before anything else runs
from mlb.command_pitches
first 3 game_dates
select player, sum(miss)
group by player
order by sum(miss) desc
limit 10
Adds a stat up across the rows in each group
from mlb.command_pitches
select player, sum(miss)
group by player
order by sum(miss) desc
limit 10
The mean of a stat, with rates rebuilt rather than averaged
from mlb.command_pitches
select player, avg(miss)
group by player
order by avg(miss) desc
limit 10
The smallest value in each group
from mlb.command_pitches
select player, min(miss)
group by player
order by min(miss) desc
limit 10
The largest value in each group
from mlb.command_pitches
select player, max(miss)
group by player
order by max(miss) desc
limit 10
How many rows a group swallowed
from mlb.command_pitches
select player, count(miss)
group by player
order by count(miss) desc
limit 10
How many different values a group holds
from mlb.command_pitches
select player, distinct(game_date)
group by player
order by distinct(game_date) desc
limit 10
The one value in the group, and an error if there are two
from mlb.command_pitches
where season = 2026
select player, only(game_date)
group by player
order by only(game_date) desc
limit 10
The newest row's value, rather than a number
from mlb.command_pitches
select player, latest(player)
group by player
order by count(*) desc
limit 10
The plain arithmetic mean, whatever the column says about itself
from mlb.command_pitches
select player, mean(miss)
group by player
order by mean(miss) desc
limit 10
The middle value in the group — half above it, half below
from mlb.command_pitches
select player, median(miss)
group by player
order by median(miss) desc
limit 10
The commonest value in the group
from mlb.command_pitches
select player, mode(player)
group by player
order by count(*) desc
limit 10
Reads a date as the year it falls in
from mlb.command_pitches
select player, year(game_date), sum(miss)
group by player, year(game_date)
order by year(game_date) asc
limit 20
Reads a date as the quarter it falls in
from mlb.command_pitches
select player, quarter(game_date), sum(miss)
group by player, quarter(game_date)
order by quarter(game_date) asc
limit 20
Reads a date as the month it falls in
from mlb.command_pitches
select player, month(game_date), sum(miss)
group by player, month(game_date)
order by month(game_date) asc
limit 20
Reads a date as the week it falls in
from mlb.command_pitches
select player, week(game_date), sum(miss)
group by player, week(game_date)
order by week(game_date) asc
limit 20
The stat as it stood, season to date
from mlb.command_pitches
where season = 2026
select player, month(game_date), as_of(miss)
group by player, month(game_date)
order by month(game_date) asc
limit 25
Where a row sits in its population, 0-100
from mlb.command_pitches
where season = 2026
select player, miss, miss_percentile
order by miss_percentile desc
limit 10
Where a folded group ranks among the other groups
from mlb.command_pitches
select player, sum(miss), percentile(sum(miss))
group by player
order by sum(miss) desc
limit 10
The same window, read as a place — 1 being best
from mlb.command_pitches
where season = 2026
select player, miss, standing(miss)
order by miss asc
limit 10
One 0-100 score standing for several stats at once
from mlb.command_pitches
where season = 2026
select player, miss, glove_miss, composite(miss, glove_miss)
order by composite(miss, glove_miss) desc
limit 10
One column divided by another
from mlb.command_pitches
select player, count(*), ratio(sum(miss), count(*))
group by player
order by ratio(sum(miss), count(*)) desc
limit 10
Arithmetic over any columns the table can build
from mlb.command_pitches
where season = 2026
select player, miss, glove_miss, calc(standing(miss) - standing(glove_miss))
order by calc(standing(miss) - standing(glove_miss)) desc
limit 10
Prints a column's values as words, changing nothing else
from mlb.command_pitches
select player, miss, format(miss, > 0 -> "on the board", <= 0 -> "nothing yet")
order by miss asc
limit 10
Draws two columns of the answer in one
from mlb.command_pitches
where season = 2026
select player, miss, miss_percentile
pair miss with miss_percentile
order by miss asc
limit 10
Shows a sentence on a heading when the pointer rests on it
from mlb.command_pitches
where season = 2026
select player, miss, glove_miss, target_x, composite(miss, glove_miss, target_x) as Score
hint composite(miss, glove_miss, target_x) as "Miss + Glove miss + Target x"
order by composite(miss, glove_miss, target_x) desc
limit 10