Dataset Viewer
Auto-converted to Parquet Duplicate
abstract
bool
2 classes
canary_id
stringlengths
12
12
difficulty
int64
1
5
domain
stringclasses
13 values
expected_output
listlengths
1
1
frozen_in
stringclasses
1 value
grammar_covered
bool
2 classes
id
stringlengths
6
6
input
unknown
jq_version
stringclasses
1 value
license
stringclasses
1 value
novel_fields
listlengths
0
11
order_insensitive
bool
2 classes
provenance
stringclasses
1 value
reference_program
stringlengths
3
148
request
stringlengths
18
226
source
stringclasses
1 value
tags
listlengths
1
4
tier
int64
1
5
acceptable_outputs
listlengths
2
2
⌀
false
70ff066b07cd
1
gaming
[ "unaffiliated" ]
1.0.0
true
v1-001
{ "gamertag": "TurretTess", "kd_ratio": 1.1, "matches_won": 44 }
1.7.1
CC-BY-4.0
[ "gamertag", "matches_won", "kd_ratio", "clan_motto" ]
false
hand
.clan_motto // "unaffiliated"
what's TurretTess's clan motto? if the record doesn't have one, just fall back to 'unaffiliated'
original
[ "alternative", "default" ]
1
null
false
efbe2d0625b2
3
transit
[ [ "Inner", "Orbital", "Outer" ] ]
1.0.0
true
v1-002
[ { "garage": "Elmbridge", "route_no": "7", "zone_band": "Inner" }, { "garage": "Foxhall", "route_no": "12X", "zone_band": "Outer" }, { "garage": "Foxhall", "route_no": "22", "zone_band": "Inner" }, { "garage": "Kestrel Park", "route_no": "45", "zone_band": ...
1.7.1
CC-BY-4.0
[ "route_no", "zone_band", "garage" ]
true
hand
[.[].zone_band] | unique
Which zone bands do these routes serve? List each band once.
original
[ "pluck", "unique" ]
3
null
false
827eb9c294cc
1
gaming
[ "IronMantis" ]
1.0.0
true
v1-003
{ "favorite_map": "Rustbelt Canal", "roster_size": 5, "squad_captain": { "gamertag": "IronMantis", "kd_ratio": 3.02 } }
1.7.1
CC-BY-4.0
[ "squad_captain", "gamertag", "kd_ratio", "roster_size", "favorite_map" ]
false
hand
.squad_captain.gamertag
who's captaining this squad? I just need the captain's gamertag, nothing else
original
[ "field_access", "nested_access" ]
1
null
false
ea6590574b0f
2
weather
[ 24 ]
1.0.0
true
v1-004
{ "borough": "Harkness", "dewpoint": 7.4, "gust_kmh": 88, "uv_index": 5 }
1.7.1
CC-BY-4.0
[ "borough", "gust_kmh", "dewpoint", "uv_index" ]
false
hand
.gust_kmh / 3.6 | floor
the gust speed in whole metres per second: divide gust_kmh by 3.6 and round down
original
[ "arith", "floor" ]
2
null
false
7385921b34d8
4
weather
[ "Wed" ]
1.0.0
true
v1-005
[ { "day_label": "Mon", "dewpoint_c": 9, "gust_kmh": 72, "precip_mm": 0 }, { "day_label": "Tue", "dewpoint_c": 12, "gust_kmh": 48, "precip_mm": 11 }, { "day_label": "Wed", "dewpoint_c": 13, "gust_kmh": 63, "precip_mm": 2 }, { "day_label": "Thu", "dew...
1.7.1
CC-BY-4.0
[ "day_label", "precip_mm", "gust_kmh", "dewpoint_c" ]
false
hand
[.[] | select(.precip_mm > 0)] | max_by(.gust_kmh) | .day_label
among the days with any rain at all, which one has the strongest gust forecast? just the day label
original
[ "filter", "max_by", "pluck" ]
4
null
false
06ab25c04a28
4
music
[ [ "Copper Veins by Vela Marsh [128 bpm]", "Salt Orbit by The Umber Set [94 bpm]", "Glass Harbor by Vela Marsh [112 bpm]" ] ]
1.0.0
true
v1-006
[ { "artist": "Vela Marsh", "beats_min": 128, "playbacks": 2041500, "tune": "Copper Veins" }, { "artist": "The Umber Set", "beats_min": 94, "playbacks": 887200, "tune": "Salt Orbit" }, { "artist": "Vela Marsh", "beats_min": 112, "playbacks": 1530044, "tune": "Gl...
1.7.1
CC-BY-4.0
[ "tune", "artist", "beats_min", "playbacks" ]
false
hand
map("\(.tune) by \(.artist) [\(.beats_min) bpm]")
label each song like "Copper Veins by Vela Marsh [128 bpm]"
original
[ "interpolation", "format" ]
4
null
false
46178f903124
2
sports
[ [ 8, 5, 3, 1 ] ]
1.0.0
true
v1-007
[ { "clean_sheets": 4, "red_cards": 5, "squad_name": "Bramble FC" }, { "clean_sheets": 9, "red_cards": 1, "squad_name": "Ironvale Rovers" }, { "clean_sheets": 2, "red_cards": 8, "squad_name": "Saltmarsh United" }, { "clean_sheets": 6, "red_cards": 3, "squad_...
1.7.1
CC-BY-4.0
[ "squad_name", "red_cards", "clean_sheets" ]
false
hand
map(.red_cards) | sort | reverse
can you sort the red card counts from highest to lowest? just the raw numbers, don't need the squad names.
original
[ "pluck", "sort", "reverse" ]
2
null
false
da8d6f2a17e7
3
gradebook
[ [ { "form_group": "Birch", "pupils": 2 }, { "form_group": "Cedar", "pupils": 1 }, { "form_group": "Maple", "pupils": 3 } ] ]
1.0.0
true
v1-008
[ { "form_group": "Maple", "gpa": 3.1, "pupil": "Aoife Byrne" }, { "form_group": "Birch", "gpa": 3.7, "pupil": "Jonas Weber" }, { "form_group": "Maple", "gpa": 2.4, "pupil": "Priya Nair" }, { "form_group": "Cedar", "gpa": 3.9, "pupil": "Marco Espinoza" }, ...
1.7.1
CC-BY-4.0
[ "pupil", "form_group", "gpa" ]
true
hand
group_by(.form_group) | map({form_group: .[0].form_group, pupils: length})
How many pupils are in each form group? One record per form group with the form_group and a pupils field holding the count.
original
[ "group_by", "count" ]
3
null
true
a415d39add47
2
abstract
[ [ 14, 27 ] ]
1.0.0
true
v1-009
[ { "n": "u", "t": 1, "x": 14 }, { "n": "w", "t": 0, "x": 3 }, { "n": "u", "t": 1, "x": 27 }, { "n": "g", "t": 0, "x": 9 } ]
1.7.1
CC-BY-4.0
[ "x", "n", "t" ]
false
hand
map(select(.n == "u") | .x)
just the x values from the records where n equals "u"
original
[ "filter", "pluck" ]
2
null
false
480e83ec0272
2
recipes
[ [ { "dietary": "vegan", "dish": "Charred Leek Galette", "prep_min": 35 }, { "dietary": "vegan", "dish": "Miso Eggplant Bowl", "prep_min": 25 } ] ]
1.0.0
true
v1-010
[ { "dietary": "vegan", "dish": "Charred Leek Galette", "prep_min": 35 }, { "dietary": "pescatarian", "dish": "Smoked Trout Rillettes", "prep_min": 20 }, { "dietary": "vegan", "dish": "Miso Eggplant Bowl", "prep_min": 25 }, { "dietary": "omnivore", "dish": "Duck...
1.7.1
CC-BY-4.0
[ "dish", "dietary", "prep_min" ]
true
hand
map(select(.dietary == "vegan"))
keep only the vegan recipes
original
[ "filter", "compare" ]
2
null
false
8ae5ab71624b
2
lab
[ [ 0.5, 0.75, 0 ] ]
1.0.0
true
v1-011
[ { "incubated_hrs": 18, "ph_reading": 6.5, "specimen": "SPX-204" }, { "incubated_hrs": 24, "ph_reading": 7.75, "specimen": "SPX-211" }, { "incubated_hrs": 12, "ph_reading": 7, "specimen": "SPX-218" } ]
1.7.1
CC-BY-4.0
[ "specimen", "ph_reading", "incubated_hrs" ]
false
hand
map(.ph_reading - 7 | fabs)
how far is each ph reading from a neutral 7, as a positive distance? just the numbers, in order
original
[ "map", "arith", "fabs" ]
2
null
false
716abfaee9eb
5
recipes
[ [ { "dish": "Barley Stew", "oven_c": 0, "prep_min": 40, "slow_cooker": true }, { "dish": "Seared Endive", "oven_c": 210, "prep_min": 12, "slow_cooker": false }, { "dish": "Lamb Neck Braise", "oven_c": 150, "prep_min": 50, "s...
1.0.0
false
v1-012
[ { "dish": "Barley Stew", "oven_c": 0, "prep_min": 20, "slow_cooker": true }, { "dish": "Seared Endive", "oven_c": 210, "prep_min": 12, "slow_cooker": false }, { "dish": "Lamb Neck Braise", "oven_c": 150, "prep_min": 25, "slow_cooker": true } ]
1.7.1
CC-BY-4.0
[ "dish", "prep_min", "slow_cooker", "oven_c" ]
false
hand
map(if .slow_cooker then .prep_min *= 2 else . end)
double the prep_min of every recipe marked slow_cooker, leave the others exactly as they are, and return the full records
original
[ "if_else", "update" ]
5
null
false
f57e588523f4
1
realestate
[ { "asking_k_eur": 655, "bedrooms": 4, "mls_code": "MLS-88437" } ]
1.0.0
true
v1-013
[ { "asking_k_eur": 412, "bedrooms": 2, "mls_code": "MLS-88121" }, { "asking_k_eur": 655, "bedrooms": 4, "mls_code": "MLS-88437" }, { "asking_k_eur": 298, "bedrooms": 1, "mls_code": "MLS-88502" } ]
1.7.1
CC-BY-4.0
[ "mls_code", "asking_k_eur", "bedrooms" ]
false
hand
.[1]
what's the full entry for the second listing?
original
[ "index", "array" ]
1
null
false
374870085a62
5
lab
[ 100 ]
1.0.0
false
v1-014
[ { "fold_factor": 10, "reagent_lot": "RL_884", "step_no": 1 }, { "fold_factor": 4, "reagent_lot": "RL_902", "step_no": 2 }, { "fold_factor": 2.5, "reagent_lot": "RL_311", "step_no": 3 } ]
1.7.1
CC-BY-4.0
[ "step_no", "fold_factor", "reagent_lot" ]
false
hand
reduce .[] as $s (1; . * $s.fold_factor)
if each fold factor here is applied one after another, what overall dilution factor do you end up with?
original
[ "reduce", "product" ]
5
null
false
ec75a8610728
1
weather
[ "boolean" ]
1.0.0
true
v1-015
{ "aurora_alert": false, "dewpoint_c": -3.5, "snowline_m": 2450 }
1.7.1
CC-BY-4.0
[ "dewpoint_c", "aurora_alert", "snowline_m" ]
false
hand
.aurora_alert | type
what JSON type is the aurora alert flag?
original
[ "type", "field_access" ]
1
null
false
82f079532a7a
3
music
[ [ { "format": "cassette", "pressed": 120 }, { "format": "vinyl_lp", "pressed": 300 }, { "format": "picture_disc", "pressed": 75 } ] ]
1.0.0
true
v1-016
{ "press_site": "GZC4", "pressing_run": { "cassette": 120, "picture_disc": 75, "vinyl_lp": 300 }, "shift_lead": "Marek" }
1.7.1
CC-BY-4.0
[ "press_site", "pressing_run", "cassette", "vinyl_lp", "picture_disc", "shift_lead" ]
true
hand
.pressing_run | to_entries | map({format: .key, pressed: .value})
inside pressing_run each physical format is paired with how many copies got pressed — can you unroll that into a list of objects, each carrying a format field and a pressed field?
original
[ "to_entries", "project" ]
3
null
false
0707b5c57df3
2
transit
[ [ "RV-207", "RV-118" ] ]
1.0.0
true
v1-017
{ "bus_fleet": [ { "bus_no": "RV-207", "decommission_year": 2028, "mileage_km": 412000 }, { "bus_no": "RV-311", "decommission_year": 2030, "mileage_km": 388500 }, { "bus_no": "RV-118", "decommission_year": 2027, "mileage_km": 455750 }, ...
1.7.1
CC-BY-4.0
[ "garage", "bus_fleet", "bus_no", "mileage_km", "decommission_year", "superintendent" ]
false
hand
.bus_fleet | map(select(.mileage_km > 400000) | .bus_no)
from the bus_fleet list, give just the bus numbers of buses with mileage_km over 400000
original
[ "filter", "pluck", "nested" ]
2
null
false
a63cda1483df
1
sports
[ [ "2-1", "1-1", "3-0" ] ]
1.0.0
true
v1-018
{ "fixture_no": 9, "halftime_scores": [ "1-0", "0-0", "2-1", "1-1", "3-0" ], "referee": "L. Duarte" }
1.7.1
CC-BY-4.0
[ "fixture_no", "halftime_scores", "referee" ]
false
hand
.halftime_scores[-3:]
last three halftime scorelines
original
[ "slice", "negative_index" ]
1
null
false
c3285bd283b1
5
library
[ { "QK-201": "Mosses of the High Fells", "QK-207": "Ferns Underfoot", "TR-114": "Wet Plate Portraits" } ]
1.0.0
false
v1-019
[ { "book_name": "Mosses of the High Fells", "catalog_code": "QK-201", "writer_surname": "Brandt" }, { "book_name": "Ferns Underfoot", "catalog_code": "QK-207", "writer_surname": "Ilves" }, { "book_name": "Wet Plate Portraits", "catalog_code": "TR-114", "writer_surname": "O...
1.7.1
CC-BY-4.0
[ "catalog_code", "book_name", "writer_surname" ]
false
hand
reduce .[] as $b ({}; .[$b.catalog_code] = $b.book_name)
can you build one lookup object that maps each catalog code straight to its book name?
original
[ "reduce", "object_build" ]
5
null
false
2fb88eefebce
5
gradebook
[ 971 ]
1.0.0
false
v1-020
[ { "course_title": "Organic Chemistry", "credit_hours": 4, "exam_pct": 82, "lecturer": "Dr. Whitcombe" }, { "course_title": "Medieval History", "credit_hours": 3, "exam_pct": 91, "lecturer": "Prof. Salgado" }, { "course_title": "Linear Algebra", "credit_hours": 5, ...
1.7.1
CC-BY-4.0
[ "course_title", "exam_pct", "credit_hours", "lecturer" ]
false
hand
reduce .[] as $c (0; . + ($c.exam_pct * $c.credit_hours))
could you work out the weighted exam total for this transcript — multiply each course's exam percent by its credit hours, then add all of that up into one number?
original
[ "reduce", "arith", "sum" ]
5
null
false
a76f5e8bb82c
5
recipes
[ { "Bitter Greens Pie": 389, "Miso Glazed Leeks": 310, "Pilaf of Spelt": 455 } ]
1.0.0
false
v1-021
[ { "cuisine": "izakaya", "diners": 2, "dish": "Miso Glazed Leeks", "kcal": 310 }, { "cuisine": "anatolian", "diners": 4, "dish": "Pilaf of Spelt", "kcal": 455 }, { "cuisine": "ligurian", "diners": 6, "dish": "Bitter Greens Pie", "kcal": 389 } ]
1.7.1
CC-BY-4.0
[ "dish", "kcal", "cuisine", "diners" ]
false
hand
reduce .[] as $r ({}; .[$r.dish] = $r.kcal)
return one object mapping each dish to its kcal
original
[ "reduce", "object_build" ]
5
null
false
3f854e035ead
5
civic
[ 192500 ]
1.0.0
false
v1-022
{ "bureau": "parks_and_greenways", "fiscal_tag": "FY27_cycle", "outlays": { "capital_arm": { "bandstand_rebuild": 97500, "fountain_lines": 26400 }, "grants_arm": { "pollinator_meadow": 8100 }, "upkeep_arm": { "mower_fleet": 18500, "trail_regrade": 42000 } } ...
1.7.1
CC-BY-4.0
[ "fiscal_tag", "bureau", "outlays", "upkeep_arm", "mower_fleet", "trail_regrade", "capital_arm", "bandstand_rebuild", "fountain_lines", "grants_arm", "pollinator_meadow" ]
false
hand
[.. | numbers] | add
what do all the dollar figures anywhere in this outlay sheet add up to?
original
[ "recursive_descent", "sum" ]
5
null
false
3865cb02485d
3
gradebook
[ [ 8, 9, 7, 6, 7, 9, 9, 10 ] ]
1.0.0
true
v1-023
[ { "homeroom": "3B", "pupil": "Anika", "quiz_marks": [ 8, 9, 7 ] }, { "homeroom": "4A", "pupil": "Tomasz", "quiz_marks": [ 6, 7 ] }, { "homeroom": "4A", "pupil": "Keiko", "quiz_marks": [ 9, 9, 10 ] } ]
1.7.1
CC-BY-4.0
[ "pupil", "quiz_marks", "homeroom" ]
true
hand
map(.quiz_marks) | flatten
every quiz mark in one flat list
original
[ "map", "flatten" ]
3
null
false
1a6104f8de5f
5
sports
[ { "Corsairs": 3, "Harriers": 2, "Wanderers": -3 } ]
1.0.0
false
v1-024
[ { "club_name": "Harriers", "goals_against": 1, "goals_for": 3, "kickoff": "2026-03-07" }, { "club_name": "Wanderers", "goals_against": 2, "goals_for": 0, "kickoff": "2026-03-07" }, { "club_name": "Harriers", "goals_against": 1, "goals_for": 1, "kickoff": "2026...
1.7.1
CC-BY-4.0
[ "club_name", "goals_for", "goals_against", "kickoff" ]
false
hand
reduce .[] as $m ({}; .[$m.club_name] += ($m.goals_for - $m.goals_against))
can you boil these match lines down to a single object where each club name is the key and its overall goal difference is the value, summed across all its rows here?
original
[ "reduce", "arith", "object_construction" ]
5
null
false
77cacec48338
5
recipes
[ [ { "dish": "Smoked Celeriac", "kcal_n": 420 }, { "dish": "Rye Porridge", "kcal_n": 0 }, { "dish": "Plum Clafoutis", "kcal_n": 515 } ] ]
1.0.0
false
v1-025
[ { "dish": "Smoked Celeriac", "kcal_text": "420", "pantry_only": true }, { "dish": "Rye Porridge", "kcal_text": "n/a", "pantry_only": false }, { "dish": "Plum Clafoutis", "kcal_text": "515", "pantry_only": false } ]
1.7.1
CC-BY-4.0
[ "dish", "kcal_text", "pantry_only" ]
false
hand
map({dish, kcal_n: (try (.kcal_text | tonumber) catch 0)})
for each recipe emit an object with dish and kcal_n, where kcal_n is kcal_text converted to a number, or 0 if it cannot be converted
original
[ "try_catch", "tonumber", "map" ]
5
null
false
68db5ea18e46
2
clinical
[ 1625 ]
1.0.0
true
v1-026
[ { "dosage_mg": 500, "medication": "amoxicillin", "ward_name": "maternity" }, { "dosage_mg": 400, "medication": "ibuprofen", "ward_name": "oncology" }, { "dosage_mg": 250, "medication": "amoxicillin", "ward_name": "cardiology" }, { "dosage_mg": 875, "medication...
1.7.1
CC-BY-4.0
[ "medication", "dosage_mg", "ward_name" ]
false
hand
[.[] | select(.medication == "amoxicillin") | .dosage_mg] | add
the combined dosage_mg across all amoxicillin prescriptions, as one number
original
[ "filter", "pluck", "add" ]
2
null
false
99c2ac740e8a
3
clinical
[ "Tomas Keller" ]
1.0.0
true
v1-027
[ { "bp_diastolic": 82, "bp_systolic": 128, "patient": "Iris Delgado", "ward_name": "Cardiology" }, { "bp_diastolic": 95, "bp_systolic": 161, "patient": "Tomas Keller", "ward_name": "Cardiology" }, { "bp_diastolic": 74, "bp_systolic": 117, "patient": "Ana Sousa", ...
1.7.1
CC-BY-4.0
[ "patient", "bp_systolic", "bp_diastolic", "ward_name" ]
false
hand
max_by(.bp_systolic) | .patient
Which patient has the highest systolic blood pressure? Just give the name.
original
[ "max_by", "pluck" ]
3
null
false
4efe36eb7816
2
weather
[ [ { "cloud_pct": 100, "forecast_day": "Fri", "snowfall_cm": 12 }, { "cloud_pct": 75, "forecast_day": "Sun", "snowfall_cm": 7.2 }, { "cloud_pct": 90, "forecast_day": "Thu", "snowfall_cm": 4.5 }, { "cloud_pct": 40, "forecast...
1.0.0
true
v1-028
[ { "cloud_pct": 90, "forecast_day": "Thu", "snowfall_cm": 4.5 }, { "cloud_pct": 100, "forecast_day": "Fri", "snowfall_cm": 12 }, { "cloud_pct": 40, "forecast_day": "Sat", "snowfall_cm": 0.5 }, { "cloud_pct": 75, "forecast_day": "Sun", "snowfall_cm": 7.2 }...
1.7.1
CC-BY-4.0
[ "forecast_day", "snowfall_cm", "cloud_pct" ]
false
hand
sort_by(.snowfall_cm) | reverse
sort the forecast by snowfall, heaviest first
original
[ "sort", "reverse" ]
2
null
false
762605565cb7
3
gaming
[ true ]
1.0.0
true
v1-029
[ { "gamertag": "Nyxfall", "kd_ratio": 1.9, "squadron": "Vipers" }, { "gamertag": "QuillDart", "kd_ratio": 3.4, "squadron": "Nightjars" }, { "gamertag": "EmberSix", "kd_ratio": 0.8, "squadron": "Vipers" }, { "gamertag": "Mossworm", "kd_ratio": 2.2, "squadron...
1.7.1
CC-BY-4.0
[ "gamertag", "kd_ratio", "squadron" ]
false
hand
any(.[]; .kd_ratio > 3.0)
true or false: does any player have a kd_ratio above 3.0
original
[ "any", "predicate" ]
3
null
false
70ac42118009
3
transit
[ "12X" ]
1.0.0
true
v1-030
[ { "interval_min": 12, "ridership": 6100, "route_no": "7" }, { "interval_min": 8, "ridership": 4200, "route_no": "12X" }, { "interval_min": 20, "ridership": 2800, "route_no": "31A" }, { "interval_min": 15, "ridership": 3900, "route_no": "22" } ]
1.7.1
CC-BY-4.0
[ "route_no", "interval_min", "ridership" ]
false
hand
min_by(.interval_min) | .route_no
Which route has the shortest interval between buses? Just the route number.
original
[ "min_by", "pluck" ]
3
null
false
523a73e3a7fd
3
sports
[ 4 ]
1.0.0
true
v1-031
[ { "fixture_id": "F-1121", "goalscorers": [ "K. Mensah", "R. Duarte" ], "stadium": "Ashgrove Park" }, { "fixture_id": "F-1122", "goalscorers": [ "T. Bianchi", "K. Mensah", "J. Farrell" ], "stadium": "Millpond Arena" }, { "fixture_id": "F-1124"...
1.7.1
CC-BY-4.0
[ "fixture_id", "goalscorers", "stadium" ]
false
hand
map(.goalscorers) | flatten | unique | length
How many different players have gotten on the scoresheet across these fixtures?
original
[ "flatten", "unique", "count" ]
3
null
false
91bfe02b58f6
4
clinical
[ [ "J45", "E11", "I10", "K21" ] ]
1.0.0
true
v1-032
[ { "admitted": true, "diagnosis_code": "ICD-J45", "patient_full": "Nora Whitfield", "pulse_bpm": 88 }, { "admitted": false, "diagnosis_code": "ICD-E11", "patient_full": "Desmond Okafor", "pulse_bpm": 72 }, { "admitted": true, "diagnosis_code": "ICD-I10", "patient_f...
1.7.1
CC-BY-4.0
[ "patient_full", "diagnosis_code", "admitted", "pulse_bpm" ]
false
hand
map(.diagnosis_code | ltrimstr("ICD-"))
list each patient's diagnosis_code with the leading 'ICD-' stripped off, in the order given
original
[ "ltrimstr", "pluck" ]
4
null
false
d6725e2e02e2
2
music
[ [ "Glass Meridian", "Copper Sky", "Static Bloom" ] ]
1.0.0
true
v1-033
[ { "album_side": "A", "beats_per_min": 128, "on_vinyl": true, "track_title": "Glass Meridian" }, { "album_side": "A", "beats_per_min": 84, "on_vinyl": true, "track_title": "Low Tide Waltz" }, { "album_side": "B", "beats_per_min": 140, "on_vinyl": false, "track_...
1.7.1
CC-BY-4.0
[ "track_title", "beats_per_min", "album_side", "on_vinyl" ]
true
hand
map(select(.beats_per_min > 120) | .track_title)
titles of tracks above 120 beats per minute
original
[ "filter", "pluck" ]
2
null
false
b30afa68fb72
5
lab
[ 6.4 ]
1.0.0
false
v1-034
{ "assay_grid": { "bay_one": { "flasks": [ { "flask_no": "F-11", "ph_value": 6.2 } ] }, "bay_two": { "flasks": [ { "flask_no": "F-21", "ph_value": 7.9 }, { "flask_no": "F-22", "ph_value": ...
1.7.1
CC-BY-4.0
[ "probe_route", "assay_grid", "bay_one", "bay_two", "flasks", "flask_no", "ph_value", "ran_by" ]
false
hand
.probe_route as $r | .assay_grid | getpath($r)
the probe route spells out where to look inside the assay grid, so what value is stored at that exact spot?
original
[ "getpath", "variable" ]
5
null
false
71ec0eacb14b
3
civic
[ [ 72.4, 66.1 ] ]
1.0.0
true
v1-035
[ 61.2, 72.4, 58.9, 66.1, 49.8 ]
1.7.1
CC-BY-4.0
[]
false
hand
sort | reverse | .[0:2]
top two turnout figures, highest first
original
[ "sort", "reverse", "slice" ]
3
null
false
f5fb32245dc5
3
recipes
[ [ "lamb_tagine", "porchetta", "duck_confit" ] ]
1.0.0
true
v1-036
{ "card_season": "midsummer", "prep_minutes_by_dish": { "chilled_soba": 15, "duck_confit": 75, "halloumi_wrap": 12, "lamb_tagine": 45, "porchetta": 90 } }
1.7.1
CC-BY-4.0
[ "card_season", "prep_minutes_by_dish", "lamb_tagine", "chilled_soba", "porchetta", "halloumi_wrap", "duck_confit" ]
true
hand
.prep_minutes_by_dish | to_entries | map(select(.value > 30) | .key)
prep_minutes_by_dish pairs every dish with its prep time in minutes — can you fish out just the names of the dishes that need more than 30 minutes and give them to me as a plain list?
original
[ "to_entries", "filter", "pluck" ]
3
null
false
d7004a75cb95
2
lab
[ [ "SPX-322", "SPX-341" ] ]
1.0.0
true
v1-037
[ { "buffer_kind": "citrate_mix", "centrifuge_rpm": 3200, "specimen": "SPX-310" }, { "buffer_kind": "phosphate_mix", "centrifuge_rpm": 2800, "specimen": "SPX-322" }, { "buffer_kind": "citrate_mix", "centrifuge_rpm": 3200, "specimen": "SPX-333" }, { "buffer_kind": "t...
1.7.1
CC-BY-4.0
[ "specimen", "buffer_kind", "centrifuge_rpm" ]
true
hand
map(select(.buffer_kind != "citrate_mix") | .specimen)
which specimens were not prepared with the citrate buffer? just the specimen codes
original
[ "filter", "pluck" ]
2
null
false
e144aeee85da
3
gaming
[ [ { "roster": [ "NovaStrix", "QuillFang" ], "warzone": "Emberfall" }, { "roster": [ "HexDrifter", "SableWisp" ], "warzone": "Tidecrest" } ] ]
1.0.0
true
v1-038
[ { "gamertag": "NovaStrix", "kd_ratio": 2.1, "warzone": "Emberfall" }, { "gamertag": "HexDrifter", "kd_ratio": 1.4, "warzone": "Tidecrest" }, { "gamertag": "QuillFang", "kd_ratio": 0.9, "warzone": "Emberfall" }, { "gamertag": "SableWisp", "kd_ratio": 1.8, "...
1.7.1
CC-BY-4.0
[ "gamertag", "warzone", "kd_ratio" ]
true
hand
group_by(.warzone) | map({warzone: .[0].warzone, roster: map(.gamertag)})
gamertag roster per warzone; emit warzone and roster
original
[ "group_by", "pluck", "object_construct" ]
3
null
false
297e786fb387
5
library
[ [ "novella_class", "doorstopper_class", "standard_class" ] ]
1.0.0
false
v1-039
[ { "book_name": "Sonnets for a Lighthouse", "folio_span": 88, "print_year": 1954 }, { "book_name": "Harbor Ledgers", "folio_span": 540, "print_year": 1902 }, { "book_name": "Ferns Underfoot", "folio_span": 310, "print_year": 1976 } ]
1.7.1
CC-BY-4.0
[ "book_name", "folio_span", "print_year" ]
false
hand
map(if .folio_span < 150 then "novella_class" elif .folio_span < 500 then "standard_class" else "doorstopper_class" end)
going through the volumes in order, which size class does each fall into: novella_class under 150 folios, standard_class under 500, doorstopper_class otherwise? just the class words.
original
[ "if_elif", "classify" ]
5
null
false
fac7cccfd65d
3
civic
[ [ { "acreage": 0.9, "easement_ft": 15, "parcel_no": "PR-3356", "zoning_class": "C1" }, { "acreage": 1.4, "easement_ft": 0, "parcel_no": "PR-1187", "zoning_class": "C1" }, { "acreage": 0.25, "easement_ft": 8, "parcel_no": "PR-9020"...
1.0.0
true
v1-040
[ { "acreage": 0.6000000000000001, "easement_ft": 12, "parcel_no": "PR-4402", "zoning_class": "R2" }, { "acreage": 1.4, "easement_ft": 0, "parcel_no": "PR-1187", "zoning_class": "C1" }, { "acreage": 0.25, "easement_ft": 8, "parcel_no": "PR-9020", "zoning_class":...
1.7.1
CC-BY-4.0
[ "parcel_no", "zoning_class", "acreage", "easement_ft" ]
false
hand
sort_by(.zoning_class, .acreage)
sort parcels by zoning class then acreage
original
[ "sort_by" ]
3
null
false
99133a740af0
3
civic
[ { "ballots_cast": 2764, "disputed": true, "precinct": "P-11" } ]
1.0.0
true
v1-041
[ { "ballots_cast": 1892, "disputed": false, "precinct": "P-04" }, { "ballots_cast": 2764, "disputed": true, "precinct": "P-11" }, { "ballots_cast": 941, "disputed": false, "precinct": "P-13" } ]
1.7.1
CC-BY-4.0
[ "precinct", "ballots_cast", "disputed" ]
false
hand
max_by(.ballots_cast)
the precinct record with the most ballots cast
original
[ "max_by" ]
3
null
false
93410abf3e15
1
gradebook
[ [ { "exam_pct": 88, "pupil": "Lena Petrov", "tutor_group": "9F" }, { "exam_pct": 79, "pupil": "Milo Trent", "tutor_group": "10B" }, { "exam_pct": 71, "pupil": "Theo Marsh", "tutor_group": "10B" } ] ]
1.0.0
true
v1-042
[ { "exam_pct": 93, "pupil": "Sana Qureshi", "tutor_group": "11A" }, { "exam_pct": 88, "pupil": "Lena Petrov", "tutor_group": "9F" }, { "exam_pct": 79, "pupil": "Milo Trent", "tutor_group": "10B" }, { "exam_pct": 71, "pupil": "Theo Marsh", "tutor_group": "10...
1.7.1
CC-BY-4.0
[ "pupil", "exam_pct", "tutor_group" ]
false
hand
.[1:4]
the 2nd through 4th rows of the honor roll
original
[ "slice" ]
1
null
false
c8db007ab7cb
2
recipes
[ [ 250, 120, 45, 18 ] ]
1.0.0
true
v1-043
[ 500, 240, 90, 36 ]
1.7.1
CC-BY-4.0
[]
false
hand
map(. / 2)
halve every gram measurement in this list
original
[ "map", "arith" ]
2
null
false
15c7606b1ee0
1
music
[ 150 ]
1.0.0
true
v1-044
[ 92, 138, 121, 104, 150, 87 ]
1.7.1
CC-BY-4.0
[]
false
hand
max
highest bpm in this list
original
[ "max", "number" ]
1
null
false
8cd716be3a16
2
music
[ 697 ]
1.0.0
true
v1-045
[ { "album_side": "A", "beats_min": 118, "runtime_sec": 214, "songwriter": "R. Calloway" }, { "album_side": "B", "beats_min": 92, "runtime_sec": 187, "songwriter": "J. Petrova" }, { "album_side": "A", "beats_min": 140, "runtime_sec": 305, "songwriter": "R. Callo...
1.7.1
CC-BY-4.0
[ "songwriter", "album_side", "runtime_sec", "beats_min" ]
false
hand
map(select(.album_side == "A") | .runtime_sec) | add
add up the runtime_sec of every song on album side A
original
[ "filter", "sum" ]
2
null
false
97a7475d443d
2
weather
[ 3.1 ]
1.0.0
true
v1-046
{ "anchored": true, "buoy_ref": "MB-07", "hourly_obs": [ { "gust_kmh": 22, "visibility_km": 9.4 }, { "gust_kmh": 47, "visibility_km": 3.1 }, { "gust_kmh": 18, "visibility_km": 12.8 }, { "gust_kmh": 31, "visibility_km": 5.6 } ] }
1.7.1
CC-BY-4.0
[ "buoy_ref", "anchored", "hourly_obs", "visibility_km", "gust_kmh" ]
false
hand
[.hourly_obs[].visibility_km] | min
the lowest visibility_km among the buoy's hourly observations
original
[ "pluck", "min" ]
2
null
false
b8eaa039cd89
4
transit
[ "K3" ]
1.0.0
true
v1-047
[ { "interval_min": 12, "on_time_pct": 95, "route_no": "42A", "terminus": "Millbrook Junction" }, { "interval_min": 8, "on_time_pct": 87.5, "route_no": "17", "terminus": "Cedar Quay" }, { "interval_min": 10, "on_time_pct": 92.1, "route_no": "K3", "terminus": "Fe...
1.7.1
CC-BY-4.0
[ "route_no", "interval_min", "on_time_pct", "terminus" ]
false
hand
map(select(.interval_min <= 10)) | max_by(.on_time_pct) | .route_no
among routes with interval_min of 10 or less, return the route_no of the one with the highest on_time_pct
original
[ "filter", "max_by", "pluck" ]
4
null
false
1c46cc9034ce
4
realestate
[ [ { "eur_per_sqm": 3284, "parcel_ref": "PRC-01144" }, { "eur_per_sqm": 4000, "parcel_ref": "PRC-00821" }, { "eur_per_sqm": 5000, "parcel_ref": "PRC-00307" } ] ]
1.0.0
true
v1-048
[ { "area_sqm": 103, "asking_eur": 412000, "energy_band": "C1", "parcel_ref": "PRC-00821" }, { "area_sqm": 88, "asking_eur": 289000, "energy_band": "B2", "parcel_ref": "PRC-01144" }, { "area_sqm": 131, "asking_eur": 655000, "energy_band": "A3", "parcel_ref": "PR...
1.7.1
CC-BY-4.0
[ "parcel_ref", "asking_eur", "area_sqm", "energy_band" ]
false
hand
map({parcel_ref, eur_per_sqm: (.asking_eur / .area_sqm | round)}) | sort_by(.eur_per_sqm)
what is each parcel's price per square metre rounded to the nearest euro, cheapest per metre first? give parcel_ref and eur_per_sqm
original
[ "construct", "arith", "sort" ]
4
null
false
b5112c2b389b
2
clinical
[ [ { "diagnosis_code": "C50", "patient": "V. Lindqvist", "stay_nights": 11, "ward_name": "oncology" }, { "diagnosis_code": "I21", "patient": "P. Guerrero", "stay_nights": 6, "ward_name": "cardiology" }, { "diagnosis_code": "O80", "patien...
1.0.0
true
v1-049
[ { "diagnosis_code": "O80", "patient": "E. Mbeki", "stay_nights": 3, "ward_name": "maternity" }, { "diagnosis_code": "C50", "patient": "V. Lindqvist", "stay_nights": 11, "ward_name": "oncology" }, { "diagnosis_code": "I21", "patient": "P. Guerrero", "stay_nights": ...
1.7.1
CC-BY-4.0
[ "patient", "stay_nights", "ward_name", "diagnosis_code" ]
false
hand
sort_by(.stay_nights) | reverse
return the full patient records ordered from most stay_nights to fewest
original
[ "sort", "reverse" ]
2
null
false
3c21b78bc030
3
gradebook
[ 3 ]
1.0.0
true
v1-050
[ { "elective": "Ceramics", "gpa": 3.1, "pupil": "Aoife Byrne" }, { "elective": "Robotics", "gpa": 3.7, "pupil": "Jonas Weber" }, { "elective": "Ceramics", "gpa": 2.4, "pupil": "Priya Nair" }, { "elective": "Journalism", "gpa": 3.3, "pupil": "Tam Nguyen" }...
1.7.1
CC-BY-4.0
[ "pupil", "elective", "gpa" ]
false
hand
[.[].elective] | unique | length
How many different electives are the pupils enrolled in?
original
[ "pluck", "unique", "count" ]
3
null
false
43bc64740212
4
realestate
[ [ "MX-9358 pays 655", "MX-7741 pays 410" ] ]
1.0.0
true
v1-051
[ { "hoa_monthly": 410, "mls_no": "MX-7741", "year_built": 1998 }, { "hoa_monthly": 95, "mls_no": "MX-2103", "year_built": 2011 }, { "hoa_monthly": 655, "mls_no": "MX-9358", "year_built": 1976 }, { "hoa_monthly": 230, "mls_no": "MX-4410", "year_built": 2020 ...
1.7.1
CC-BY-4.0
[ "mls_no", "hoa_monthly", "year_built" ]
false
hand
sort_by(.hoa_monthly) | reverse | .[0:2] | map(.mls_no + " pays " + (.hoa_monthly | tostring))
two highest hoa listings as "<mls number> pays <amount>", highest first
original
[ "sort", "slice", "tostring", "concat" ]
4
null
false
2858be03660b
5
clinical
[ [ 120, 200, 350, 410 ] ]
1.0.0
false
v1-052
[ { "hour_mark": "06:00", "infusion_ml": 120, "nurse_initials": "KM" }, { "hour_mark": "07:00", "infusion_ml": 80, "nurse_initials": "KM" }, { "hour_mark": "08:00", "infusion_ml": 150, "nurse_initials": "DV" }, { "hour_mark": "09:00", "infusion_ml": 60, "nur...
1.7.1
CC-BY-4.0
[ "hour_mark", "infusion_ml", "nurse_initials" ]
false
hand
[foreach .[] as $e (0; . + $e.infusion_ml)]
chart the fluid intake as it builds — after each hourly entry, in order, what's the running total of infusion_ml? give me just the list of running totals.
original
[ "foreach", "running_total" ]
5
null
false
ebbc446003e2
3
gradebook
[ { "Birch": 87, "Cedar": 80, "Maple": 74 } ]
1.0.0
true
v1-053
{ "grades_by_group": { "Birch": [ 90, 84 ], "Cedar": [ 77, 69, 94 ], "Maple": [ 72, 88, 62 ] }, "term_label": "Spring 2026" }
1.7.1
CC-BY-4.0
[ "term_label", "grades_by_group" ]
false
hand
.grades_by_group | map_values(add / length)
What is the average grade for each form group? Keep the group-to-grades object shape, with each list of grades replaced by its average.
original
[ "map_values", "avg" ]
3
null
false
332a8951735a
1
recipes
[ "array" ]
1.0.0
true
v1-054
{ "dietary": [ "vegan", "gluten_free" ], "dish_moniker": "Green Chile Pozole", "prep_min": 50 }
1.7.1
CC-BY-4.0
[ "dish_moniker", "dietary", "prep_min" ]
false
hand
.dietary | type
what JSON type is the dietary field?
original
[ "type", "field_access" ]
1
null
false
c027323a0293
3
recipes
[ [ "porchetta", "paella_mixta", "lamb_tagine", "chilled_soba", "halloumi_wrap" ] ]
1.0.0
true
v1-055
[ { "cuisine": "valencian", "dish": "paella_mixta", "prep_min": 40, "servings": 8 }, { "cuisine": "japanese", "dish": "chilled_soba", "prep_min": 15, "servings": 2 }, { "cuisine": "umbrian", "dish": "porchetta", "prep_min": 60, "servings": 10 }, { "cuisi...
1.7.1
CC-BY-4.0
[ "dish", "servings", "cuisine", "prep_min" ]
false
hand
sort_by(-.servings) | map(.dish)
line the dishes up from the biggest batch to the smallest going by servings, and just give me the dish names in that order please
original
[ "sort_by", "pluck" ]
3
null
false
a33518cb7200
4
weather
[ [ "ESE", "NNW", "SSE", "WSW" ] ]
1.0.0
true
v1-056
{ "obs_site": "Tarn Hollow", "sampled_on": "2026-07-08", "wind_dirs": [ "ese", "nnw", "sse", "wsw" ] }
1.7.1
CC-BY-4.0
[ "wind_dirs", "obs_site", "sampled_on" ]
false
hand
.wind_dirs | map(ascii_upcase)
wind directions in caps
original
[ "ascii_upcase" ]
4
null
false
57971dc3d7e8
1
library
[ "B4" ]
1.0.0
true
v1-057
{ "call_no": "813.54 MOR", "checked_out": false, "edition": 3, "shelf": "B4" }
1.7.1
CC-BY-4.0
[ "call_no", "shelf", "checked_out", "edition" ]
false
hand
.shelf
hey, quick favor — which shelf is this book sitting on? just give me the shelf code
original
[ "field_access", "object" ]
1
null
false
0d5705a54548
4
gaming
[ [ { "gamertag": "NeoFalcon", "matches_won": 11, "ping_ms": 24 }, { "gamertag": "NeoDrifter", "matches_won": 6, "ping_ms": 58 } ] ]
1.0.0
true
v1-058
[ { "gamertag": "NeoFalcon", "matches_won": 11, "ping_ms": 24 }, { "gamertag": "IronGull", "matches_won": 19, "ping_ms": 31 }, { "gamertag": "NeoDrifter", "matches_won": 6, "ping_ms": 58 }, { "gamertag": "Saltlick", "matches_won": 27, "ping_ms": 42 } ]
1.7.1
CC-BY-4.0
[ "gamertag", "matches_won", "ping_ms" ]
true
hand
map(select(.gamertag | startswith("Neo")))
can you fish out the full player records for anyone whose gamertag starts with 'Neo'?
original
[ "startswith", "filter" ]
4
null
false
72f38ffb0d37
4
recipes
[ "borlotti beans, smoked paprika, fennel bulb, breadcrumbs" ]
1.0.0
true
v1-059
{ "dish_label": "smoky bean cassoulet", "ingredients": [ "borlotti beans", "smoked paprika", "fennel bulb", "breadcrumbs" ], "oven_c": 160, "prep_min": 25 }
1.7.1
CC-BY-4.0
[ "dish_label", "ingredients", "oven_c", "prep_min" ]
false
hand
.ingredients | join(", ")
can I have the ingredient list as one comma-separated line?
original
[ "join", "pluck" ]
4
[ [ "borlotti beans, smoked paprika, fennel bulb, breadcrumbs" ], [ "borlotti beans,smoked paprika,fennel bulb,breadcrumbs" ] ]
false
4c3de148bbe7
5
gaming
[ { "duos": [ { "gamertag": "MossyBlade", "ping_ms": 19 }, { "gamertag": "TundraFox_9", "ping_ms": 24 } ], "patch_at": [ "duos", 1, "ping_ms" ], "patch_note_tag": "midseason_retune", "swap_in": 24 } ]
1.0.0
false
v1-060
{ "duos": [ { "gamertag": "MossyBlade", "ping_ms": 19 }, { "gamertag": "TundraFox_9", "ping_ms": 88 } ], "patch_at": [ "duos", 1, "ping_ms" ], "patch_note_tag": "midseason_retune", "swap_in": 24 }
1.7.1
CC-BY-4.0
[ "patch_at", "swap_in", "patch_note_tag", "duos", "gamertag", "ping_ms" ]
false
hand
setpath(.patch_at; .swap_in)
what does this whole object look like once the value at the spot named by patch_at is overwritten with the swap_in value?
original
[ "setpath", "update" ]
5
null
false
ac6a4cb41643
4
music
[ 3 ]
1.0.0
true
v1-061
[ { "album_side": "A", "artist": "Vela Marsh", "runtime_sec": 227, "tune": "Copper Veins" }, { "album_side": "B", "artist": "The Umber Set", "runtime_sec": 245, "tune": "Salt Orbit" }, { "album_side": "B", "artist": "Vela Marsh", "runtime_sec": 301, "tune": "Fen...
1.7.1
CC-BY-4.0
[ "tune", "artist", "runtime_sec", "album_side" ]
false
hand
[.[] | select(.runtime_sec > 240) | .artist] | unique | length
count distinct artists with a song over 240 seconds
original
[ "filter", "unique", "count" ]
4
null
false
7f673650345c
2
music
[ 816 ]
1.0.0
true
v1-062
[ { "album_side": "A", "runtime_sec": 201, "track_title": "Ferrous" }, { "album_side": "A", "runtime_sec": 174, "track_title": "Umber" }, { "album_side": "B", "runtime_sec": 243, "track_title": "Cobalt Rain" }, { "album_side": "B", "runtime_sec": 198, "track...
1.7.1
CC-BY-4.0
[ "track_title", "runtime_sec", "album_side" ]
false
hand
map(.runtime_sec) | add
total runtime in seconds across the EP
original
[ "pluck", "sum" ]
2
null
false
8efbc5ce204f
2
gradebook
[ 3 ]
1.0.0
true
v1-063
[ { "absences": 7, "classroom": "6A", "pupil": "Hana Suzuki" }, { "absences": 2, "classroom": "6B", "pupil": "Pedro Vidal" }, { "absences": 9, "classroom": "6A", "pupil": "Greta Nilsson" }, { "absences": 4, "classroom": "6C", "pupil": "Yusuf Demir" }, { ...
1.7.1
CC-BY-4.0
[ "pupil", "absences", "classroom" ]
false
hand
[.[] | select(.absences > 5)] | length
how many pupils have more than 5 absences? return the count as a number
original
[ "filter", "count" ]
2
null
false
d2def8133ed2
3
realestate
[ [ "LR2214", "LR2257", "LR2230" ] ]
1.0.0
true
v1-064
[ { "area_sqm": 74, "bedrooms": 2, "hoa_monthly": 310, "listing_ref": "LR2201" }, { "area_sqm": 61, "bedrooms": 1, "hoa_monthly": 95, "listing_ref": "LR2214" }, { "area_sqm": 118, "bedrooms": 3, "hoa_monthly": 540, "listing_ref": "LR2189" }, { "area_sqm"...
1.7.1
CC-BY-4.0
[ "listing_ref", "hoa_monthly", "area_sqm", "bedrooms" ]
false
hand
sort_by(.hoa_monthly) | .[0:3] | map(.listing_ref)
I'm hunting for cheap fees — can you pull the three listings with the lowest hoa_monthly, cheapest one first, and give me just their listing_ref codes in that order?
original
[ "sort_by", "slice", "pluck" ]
3
null
false
13f2ea9f1055
5
sports
[ [ [ "club_name" ], [ "tallies", "goals_for" ], [ "tallies", "goals_against" ], [ "bookings", "red_cards" ], [ "bookings", "yellow_cards" ], [ "gaffer" ] ] ]
1.0.0
false
v1-065
{ "bookings": { "red_cards": 2, "yellow_cards": 37 }, "club_name": "Harriers", "gaffer": "Renata Squires", "tallies": { "goals_against": 22, "goals_for": 41 } }
1.7.1
CC-BY-4.0
[ "club_name", "tallies", "goals_for", "goals_against", "bookings", "red_cards", "yellow_cards", "gaffer" ]
true
hand
[paths(scalars)]
this club sheet is nested a couple of levels deep — can you give me the key-path to every bottom-level value, as a list where each path is itself an array of keys?
original
[ "paths", "scalars" ]
5
null
false
6a74af50feab
3
clinical
[ "Oncology" ]
1.0.0
true
v1-066
{ "beds_taken": { "Cardiology": 6, "Maternity": 4, "Neurology": 3, "Oncology": 9 }, "census_date": "2026-07-09", "clinic_site": "Hillcrest" }
1.7.1
CC-BY-4.0
[ "census_date", "clinic_site", "beds_taken" ]
false
hand
.beds_taken | to_entries | max_by(.value) | .key
Which ward has the most beds taken?
original
[ "to_entries", "max_by", "pluck" ]
3
null
false
554643907105
3
recipes
[ { "dairy_free": 1, "gluten_free": 3, "vegan": 2 } ]
1.0.0
true
v1-067
{ "by_dietary": { "dairy_free": [ "porchetta" ], "gluten_free": [ "paella mixta", "mole negro", "tlayuda" ], "vegan": [ "smoky lentil stew", "charred leek tart" ] }, "chef_initials": "RQ", "menu_week": 28 }
1.7.1
CC-BY-4.0
[ "menu_week", "chef_initials", "by_dietary", "vegan", "gluten_free", "dairy_free" ]
false
hand
.by_dietary | map_values(length)
under by_dietary each dietary tag holds a list of dish names — can you hand me back just the by_dietary object with every list swapped for a simple count of how many dishes each tag has?
original
[ "map_values", "count" ]
3
null
false
59294ac43b2b
1
transit
[ "N5" ]
1.0.0
true
v1-068
[ { "route_no": "41B", "terminus": "Quayside Wharf", "wheelchair_ok": true }, { "route_no": "22", "terminus": "Milldam Bridge", "wheelchair_ok": true }, { "route_no": "7X", "terminus": "Ferncliff Loop", "wheelchair_ok": false }, { "route_no": "N5", "terminus": "...
1.7.1
CC-BY-4.0
[ "route_no", "terminus", "wheelchair_ok" ]
false
hand
.[-1].route_no
route number on the final entry
original
[ "negative_index", "field_access" ]
1
null
false
fe13a52137d0
5
lab
[ "near_neutral" ]
1.0.0
false
v1-069
[ { "flask_no": "F-31", "incubated_hrs": 12, "ph_value": 6.9 }, { "flask_no": "F-32", "incubated_hrs": 12, "ph_value": 7.2 }, { "flask_no": "F-33", "incubated_hrs": 18, "ph_value": 6.9 } ]
1.7.1
CC-BY-4.0
[ "flask_no", "ph_value", "incubated_hrs" ]
false
hand
(map(.ph_value) | add / length) as $m | if $m < 6.5 then "acid_side" elif $m > 7.5 then "alkali_side" else "near_neutral" end
based on the average ph across these flasks, is the batch acid_side (average below 6.5), alkali_side (average above 7.5), or near_neutral?
original
[ "if_elif", "avg" ]
5
null
false
a2d2bc115701
2
sports
[ [ 2, 3, 4, 1 ] ]
1.0.0
true
v1-070
[ { "fixture_no": 301, "halftime_margin": 2, "kickoff": "13:00" }, { "fixture_no": 302, "halftime_margin": -3, "kickoff": "15:30" }, { "fixture_no": 303, "halftime_margin": 4, "kickoff": "18:00" }, { "fixture_no": 304, "halftime_margin": -1, "kickoff": "20:1...
1.7.1
CC-BY-4.0
[ "fixture_no", "halftime_margin", "kickoff" ]
false
hand
map(.halftime_margin | fabs)
the halftime margins below are positive when the home side led and negative when they trailed — can you give me just the size of each margin, ignoring the sign, in fixture order?
original
[ "map", "fabs" ]
2
null
false
f0e965bc790a
3
clinical
[ [ "Maternity", "Oncology" ] ]
1.0.0
true
v1-071
[ { "admitted": "2026-07-01", "patient": "Lena Ortiz", "ward_name": "Maternity" }, { "admitted": "2026-06-28", "patient": "Femi Adeyemi", "ward_name": "Oncology" }, { "admitted": "2026-07-03", "patient": "Rosa Lindqvist", "ward_name": "Maternity" }, { "admitted": "2...
1.7.1
CC-BY-4.0
[ "patient", "ward_name", "admitted" ]
true
hand
group_by(.ward_name) | map(select(length > 2) | .[0].ward_name)
Which wards have more than two admissions on this list? Just the ward names.
original
[ "group_by", "filter", "pluck" ]
3
null
false
78113804b2ff
3
lab
[ { "buffered_lysis": 5.9, "colorimetric": 6.8, "titration_arc": 7.6 } ]
1.0.0
true
v1-072
[ { "assay": "buffered_lysis", "dilution": 0.1, "ph_reading": 6.4, "specimen": "KX-114" }, { "assay": "colorimetric", "dilution": 0.01, "ph_reading": 7.2, "specimen": "KX-118" }, { "assay": "buffered_lysis", "dilution": 0.1, "ph_reading": 5.9, "specimen": "KX-12...
1.7.1
CC-BY-4.0
[ "specimen", "assay", "ph_reading", "dilution" ]
false
hand
group_by(.assay) | map({key: .[0].assay, value: (map(.ph_reading) | min)}) | from_entries
return an object mapping each assay to the lowest ph_reading recorded for it
original
[ "group_by", "min", "from_entries" ]
3
null
false
1dc651c034cf
3
clinical
[ [ { "mean_dosage_mg": 500, "medication": "Amoxicillin" }, { "mean_dosage_mg": 15, "medication": "Lisinopril" } ] ]
1.0.0
true
v1-073
[ { "dosage_mg": 500, "medication": "Amoxicillin", "patient": "Iris Delgado", "ward_name": "Oncology" }, { "dosage_mg": 250, "medication": "Amoxicillin", "patient": "Tomas Keller", "ward_name": "Renal" }, { "dosage_mg": 750, "medication": "Amoxicillin", "patient": "...
1.7.1
CC-BY-4.0
[ "patient", "medication", "dosage_mg", "ward_name" ]
true
hand
group_by(.medication) | map({medication: .[0].medication, mean_dosage_mg: (map(.dosage_mg) | add / length)})
What is the mean dosage in mg for each medication? Give one record per medication with the medication and its mean_dosage_mg.
original
[ "group_by", "avg" ]
3
null
false
7b7be6eee492
3
gaming
[ [ "QuillDart", "EmberSix", "Nyxfall", "Vantablade" ] ]
1.0.0
true
v1-074
[ { "gamertag": "Vantablade", "matches_won": 19, "respawns": 204 }, { "gamertag": "Nyxfall", "matches_won": 31, "respawns": 118 }, { "gamertag": "EmberSix", "matches_won": 31, "respawns": 167 }, { "gamertag": "QuillDart", "matches_won": 45, "respawns": 89 ...
1.7.1
CC-BY-4.0
[ "gamertag", "matches_won", "respawns" ]
false
hand
sort_by(-.matches_won, .gamertag) | map(.gamertag)
sort the players by matches_won descending, breaking ties by gamertag alphabetically, and give just the gamertags
original
[ "sort_by", "pluck" ]
3
null
false
fba7301dd989
1
gradebook
[ [ "coursework_pct", "midterm_pct", "participation_pct" ] ]
1.0.0
true
v1-075
{ "absences": 2, "grading": { "coursework_pct": 74, "midterm_pct": 81, "participation_pct": 90 }, "pupil": "Sana Qureshi", "tutor_group": "11A" }
1.7.1
CC-BY-4.0
[ "pupil", "grading", "midterm_pct", "coursework_pct", "participation_pct", "tutor_group", "absences" ]
true
hand
.grading | keys
names of the grading components
original
[ "keys" ]
1
null
false
069bdb5fbc09
2
music
[ [ "Coda Coda", "Vesper Line", "Pale Circuit", "Overture in Rust" ] ]
1.0.0
true
v1-076
[ { "beats_per_min": 70, "track_title": "Overture in Rust" }, { "beats_per_min": 122, "track_title": "Pale Circuit" }, { "beats_per_min": 98, "track_title": "Vesper Line" }, { "beats_per_min": 80, "track_title": "Coda Coda" } ]
1.7.1
CC-BY-4.0
[ "track_title", "beats_per_min" ]
false
hand
map(.track_title) | reverse
track titles in reverse tracklist order
original
[ "pluck", "reverse" ]
2
null
false
6264f336690f
3
transit
[ [ { "garage": "Elmbridge", "ridership": 8900 }, { "garage": "Foxhall", "ridership": 8100 }, { "garage": "Kestrel Park", "ridership": 5150 } ] ]
1.0.0
true
v1-077
[ { "garage": "Foxhall", "on_time_pct": 91, "ridership": 4200, "route_no": "12X" }, { "garage": "Elmbridge", "on_time_pct": 86, "ridership": 6100, "route_no": "7" }, { "garage": "Foxhall", "on_time_pct": 94, "ridership": 3900, "route_no": "22" }, { "gara...
1.7.1
CC-BY-4.0
[ "route_no", "garage", "ridership", "on_time_pct" ]
true
hand
group_by(.garage) | map({garage: .[0].garage, ridership: (map(.ridership) | add)})
What is the combined ridership for each garage? One record per garage with the garage and its ridership.
original
[ "group_by", "sum" ]
3
null
false
a757cb85b4a3
4
lab
[ [ "BX-0198", "BX-0417", "BX-0522", "BX-0611" ] ]
1.0.0
true
v1-078
{ "assay_runs": [ { "dilution": 5, "ph_reading": 6.8, "specimen": "BX-0417" }, { "dilution": 10, "ph_reading": 7.4, "specimen": "BX-0522" }, { "dilution": 2, "ph_reading": 5.9, "specimen": "BX-0198" }, { "dilution": 20, "ph_...
1.7.1
CC-BY-4.0
[ "bench_no", "technician", "assay_runs", "specimen", "ph_reading", "dilution" ]
false
hand
.assay_runs | sort_by(.ph_reading) | map(.specimen)
inside the assay_runs list, could you sort the runs by ph reading from most acidic (lowest) on up, and hand me just the specimen codes in that order?
original
[ "index", "sort", "pluck" ]
4
null
false
6ded1c94c937
4
clinical
[ [ "Callum Doyle", "Marek Sowa", "Nora Whitfield" ] ]
1.0.0
true
v1-079
[ { "admitted": true, "care_unit": "recovery", "patient_full": "Nora Whitfield", "pulse_bpm": 95 }, { "admitted": false, "care_unit": "cardiology", "patient_full": "Desmond Okafor", "pulse_bpm": 88 }, { "admitted": true, "care_unit": "maternity", "patient_full": "Pr...
1.7.1
CC-BY-4.0
[ "patient_full", "pulse_bpm", "care_unit", "admitted" ]
false
hand
sort_by(-.pulse_bpm) | .[0:3] | map(.patient_full)
the names of the three patients with the highest pulse_bpm, highest first
original
[ "sort", "slice", "pluck" ]
4
null
false
e0270273b02d
2
civic
[ [ "Hillcrest 4", "Fernway 7" ] ]
1.0.0
true
v1-080
[ { "ballots_cast": 1892, "precinct": "Hillcrest 4", "turnout_pct": 63.4 }, { "ballots_cast": 1204, "precinct": "Millbrook 2", "turnout_pct": 48.9 }, { "ballots_cast": 2310, "precinct": "Fernway 7", "turnout_pct": 71.2 }, { "ballots_cast": 1677, "precinct": "Old...
1.7.1
CC-BY-4.0
[ "precinct", "turnout_pct", "ballots_cast" ]
true
hand
map(select(.turnout_pct > 60) | .precinct)
which precincts had turnout above 60 percent? just the precinct names
original
[ "filter", "pluck" ]
2
null
false
958d15dcaa01
5
sports
[ { "prize_pool": 50000, "semifinal_one": { "aggregate": "2 TO 1", "top_seed": "HARRIERS", "underdog": "CORSAIRS" }, "semifinal_two": { "aggregate": "3 TO 3", "top_seed": "WANDERERS", "underdog": "MARINERS" }, "tourney": "HARBOUR CUP", "venue_town": "POR...
1.0.0
false
v1-081
{ "prize_pool": 50000, "semifinal_one": { "aggregate": "2 to 1", "top_seed": "Harriers", "underdog": "Corsairs" }, "semifinal_two": { "aggregate": "3 to 3", "top_seed": "Wanderers", "underdog": "Mariners" }, "tourney": "Harbour Cup", "venue_town": "Port Ellery" }
1.7.1
CC-BY-4.0
[ "tourney", "semifinal_one", "semifinal_two", "top_seed", "underdog", "aggregate", "venue_town", "prize_pool" ]
false
hand
walk(if type == "string" then ascii_upcase else . end)
can you shout-case this whole nested bracket for the big screen — every string value anywhere goes fully uppercase, while the field names and numbers stay exactly as they are?
original
[ "walk", "string_case" ]
5
null
false
3d8cbf893a52
3
recipes
[ [ "cinnamon", "clove", "cumin", "ginger_ground", "sichuan_peppercorn", "turmeric" ] ]
1.0.0
true
v1-082
[ { "dish": "mole_negro", "prep_min": 90, "spices": [ "cumin", "clove", "cinnamon" ] }, { "dish": "lamb_tagine", "prep_min": 45, "spices": [ "cinnamon", "turmeric", "ginger_ground" ] }, { "dish": "dan_dan_noodles", "prep_min": 30, ...
1.7.1
CC-BY-4.0
[ "dish", "spices", "prep_min" ]
false
hand
map(.spices) | flatten | unique
could you gather up every spice across all these recipes into one combined list, drop the duplicates, and give it to me alphabetized?
original
[ "flatten", "unique" ]
3
null
false
f2b2dfdc6563
4
civic
[ "045-411-033" ]
1.0.0
true
v1-083
[ { "appraisal": 412000, "parcel_no": "042-117-008", "permits_issued": 2, "zoning": "mixed-use" }, { "appraisal": 688000, "parcel_no": "043-002-114", "permits_issued": 5, "zoning": "mixed-use" }, { "appraisal": 132000, "parcel_no": "044-210-077", "permits_issued": 0...
1.7.1
CC-BY-4.0
[ "parcel_no", "zoning", "appraisal", "permits_issued" ]
false
hand
map(select(.zoning == "mixed-use")) | min_by(.appraisal) | .parcel_no
among just the parcels zoned 'mixed-use', which one carries the lowest appraisal? I only want its parcel number
original
[ "filter", "min", "pluck" ]
4
null
false
de0e8a1e5331
3
gaming
[ [ { "fireteam": "Duskwatch", "won_total": 45 }, { "fireteam": "Ironveil", "won_total": 74 } ] ]
1.0.0
true
v1-084
[ { "fireteam": "Ironveil", "gamertag": "NovaStrix", "matches_won": 41, "ping_ms": 23 }, { "fireteam": "Duskwatch", "gamertag": "HexDrifter", "matches_won": 28, "ping_ms": 51 }, { "fireteam": "Ironveil", "gamertag": "QuillFang", "matches_won": 33, "ping_ms": 19 ...
1.7.1
CC-BY-4.0
[ "gamertag", "fireteam", "matches_won", "ping_ms" ]
true
hand
group_by(.fireteam) | map({fireteam: .[0].fireteam, won_total: (map(.matches_won) | add)})
total matches won per fireteam; emit fireteam and won_total
original
[ "group_by", "sum" ]
3
null
false
dc5bdd38ecc2
3
transit
[ false ]
1.0.0
true
v1-085
[ { "garage": "Foxhall", "on_time_pct": 91, "route_no": "12X" }, { "garage": "Elmbridge", "on_time_pct": 86, "route_no": "7" }, { "garage": "Foxhall", "on_time_pct": 94, "route_no": "22" }, { "garage": "Elmbridge", "on_time_pct": 79, "route_no": "31A" }, ...
1.7.1
CC-BY-4.0
[ "route_no", "on_time_pct", "garage" ]
false
hand
all(.on_time_pct >= 85)
Did every route manage an on-time percentage of at least 85?
original
[ "all", "predicate" ]
3
null
false
d90db9db1639
3
civic
[ { "noise_curfew": 3, "short_lets": 2, "sign_setback": 1 } ]
1.0.0
true
v1-086
{ "clerk_initials": "DT", "fiscal_yr": 2026, "hearings_by_bylaw": { "noise_curfew": [ "2026-01-12", "2026-02-03", "2026-04-19" ], "short_lets": [ "2026-01-28", "2026-05-15" ], "sign_setback": [ "2026-03-07" ] } }
1.7.1
CC-BY-4.0
[ "hearings_by_bylaw", "noise_curfew", "sign_setback", "short_lets", "fiscal_yr", "clerk_initials" ]
false
hand
.hearings_by_bylaw | map_values(length)
turn hearings_by_bylaw into an object mapping each bylaw to how many hearing dates it lists
original
[ "map_values", "count" ]
3
null
false
ef3095a5c5e8
2
realestate
[ [ "bungalow", "cottage", "terrace" ] ]
1.0.0
true
v1-087
[ { "asking": 512000, "dwelling": "terrace", "parcel_ref": "VN-3321" }, { "asking": 334000, "dwelling": "bungalow", "parcel_ref": "VN-1054" }, { "asking": 489000, "dwelling": "terrace", "parcel_ref": "VN-7789" }, { "asking": 295000, "dwelling": "cottage", "p...
1.7.1
CC-BY-4.0
[ "parcel_ref", "dwelling", "asking" ]
true
hand
[.[].dwelling] | unique
the distinct dwelling types on the market
original
[ "pluck", "unique" ]
2
null
false
cfb1f879f495
5
lab
[ [ 6.2, 7.1, 7.1, 7.6 ] ]
1.0.0
false
v1-088
[ { "assay_kind": "buffer_check", "flask_no": "F-41", "ph_value": 6.2 }, { "assay_kind": "buffer_check", "flask_no": "F-42", "ph_value": 7.1 }, { "assay_kind": "titration_run", "flask_no": "F-43", "ph_value": 6.8 }, { "assay_kind": "buffer_check", "flask_no": "F...
1.7.1
CC-BY-4.0
[ "flask_no", "ph_value", "assay_kind" ]
false
hand
[foreach .[].ph_value as $v (0; if $v > . then $v else . end)]
walking through the flasks in listed order, what was the highest ph seen so far at each step?
original
[ "foreach", "running_max" ]
5
null
false
f32b743913d3
1
transit
[ 11 ]
1.0.0
true
v1-089
{ "garage": "Weirfield", "powered_axles": 3, "route_no": "CROSSTOWN-9" }
1.7.1
CC-BY-4.0
[ "route_no", "garage", "powered_axles" ]
false
hand
.route_no | length
character count of the route number
original
[ "length" ]
1
null
false
e75b99bce5e7
1
music
[ [ "Copper Veins", "Night Ferry" ] ]
1.0.0
true
v1-090
{ "album_moniker": "Harbor Lights", "engineer_credit": "M. Okafor", "side_a_songs": [ "Copper Veins", "Night Ferry", "Salt Orchard", "Glass Harbor" ] }
1.7.1
CC-BY-4.0
[ "album_moniker", "side_a_songs", "engineer_credit" ]
false
hand
.side_a_songs[0:2]
what are the first two songs on side A?
original
[ "slice", "field_access" ]
1
null
false
b2f11bed967e
3
civic
[ { "harborview": 1904, "millrace": 2776, "oakflat": 953 } ]
1.0.0
true
v1-091
{ "canvass_done": false, "precinct_tallies": { "harborview": 1892, "millrace": 2764, "oakflat": 941 } }
1.7.1
CC-BY-4.0
[ "precinct_tallies", "canvass_done", "harborview", "millrace", "oakflat" ]
false
hand
.precinct_tallies | with_entries(.value += 12)
precinct_tallies with 12 provisional ballots added to each
original
[ "with_entries", "arith" ]
3
null
false
f16aed49b3ca
3
weather
[ [ 0, 3, 6, 9, 12, 15, 18, 21 ] ]
1.0.0
true
v1-092
{ "bulletin_id": "FXUS63", "first_hour": 0, "issuing_office": "KWNS", "last_hour": 24, "step_h": 3 }
1.7.1
CC-BY-4.0
[ "first_hour", "last_hour", "step_h", "bulletin_id", "issuing_office" ]
false
hand
[range(.first_hour; .last_hour; .step_h)]
using first_hour, last_hour and step_h from this bulletin, can you generate the list of forecast hour marks — start at first_hour, step by step_h, and stop before you hit last_hour?
original
[ "range" ]
3
null
false
8f6976f775a7
5
music
[ [ 340, 1210, 1210, 1475 ] ]
1.0.0
false
v1-093
[ { "hall": "Pelican Rooms", "tour_stop": "Leith", "turnout": 340 }, { "hall": "Corn Exchange", "tour_stop": "Hexham", "turnout": 1210 }, { "hall": "Velvet Union", "tour_stop": "Deptford", "turnout": 890 }, { "hall": "Old Granary", "tour_stop": "Frome", "tur...
1.7.1
CC-BY-4.0
[ "hall", "turnout", "tour_stop" ]
false
hand
[foreach .[] as $g (0; [., $g.turnout] | max)]
after each gig, report the largest turnout seen so far, one number per gig in order
original
[ "foreach", "running_max" ]
5
null
false
0a39a9d57983
5
transit
[ 9980 ]
1.0.0
false
v1-094
[ { "garage": "Milldale", "headway_min": 12, "ridership": 4230, "route_no": "N12" }, { "garage": "Ashcombe", "headway_min": 20, "ridership": 1875, "route_no": "E3" }, { "garage": "Milldale", "headway_min": 8, "ridership": 3610, "route_no": "N7" }, { "gar...
1.7.1
CC-BY-4.0
[ "route_no", "ridership", "garage", "headway_min" ]
false
hand
reduce (.[] | select(.garage == "Milldale")) as $r (0; . + $r.ridership)
right, add up the total ridership across every route that runs out of the Milldale garage — routes from other garages don't count. one number.
original
[ "reduce", "filter", "sum" ]
5
null
false
f81a2c3adc7b
4
clinical
[ [ "Priya Raman", "Nora Whitfield", "Ines Aldana" ] ]
1.0.0
true
v1-095
[ { "bp_systolic": 141, "care_unit": "recovery", "patient_full": "Nora Whitfield", "pulse_bpm": 88 }, { "bp_systolic": 156, "care_unit": "cardiology", "patient_full": "Desmond Okafor", "pulse_bpm": 72 }, { "bp_systolic": 152, "care_unit": "recovery", "patient_full":...
1.7.1
CC-BY-4.0
[ "patient_full", "care_unit", "bp_systolic", "pulse_bpm" ]
false
hand
map(select(.care_unit == "recovery")) | sort_by(-.bp_systolic) | map(.patient_full)
among patients in the recovery care_unit, order them by bp_systolic from highest to lowest and return just their names
original
[ "filter", "sort", "pluck" ]
4
null
false
f0b61f64ca8a
1
recipes
[ 95 ]
1.0.0
true
v1-096
{ "dish_moniker": "Smoked Paprika Cassoulet", "oven_c": 160, "timings": { "prep_min": 30, "simmer_min": 95 } }
1.7.1
CC-BY-4.0
[ "dish_moniker", "timings", "prep_min", "simmer_min", "oven_c" ]
false
hand
.timings.simmer_min
how many minutes does the simmer take?
original
[ "field_access", "nested" ]
1
null
false
900c3472bedb
3
clinical
[ { "cardiology": 200, "maternity": 500, "recovery": 300 } ]
1.0.0
true
v1-097
[ { "care_unit": "recovery", "dosage_mg": 200, "medication": "amoxicillin", "patient_full": "Nora Whitfield" }, { "care_unit": "cardiology", "dosage_mg": 100, "medication": "atorvastatin", "patient_full": "Desmond Okafor" }, { "care_unit": "recovery", "dosage_mg": 400, ...
1.7.1
CC-BY-4.0
[ "care_unit", "dosage_mg", "medication", "patient_full" ]
false
hand
group_by(.care_unit) | map({key: .[0].care_unit, value: (map(.dosage_mg) | add / length)}) | from_entries
return an object mapping each care_unit to its average dosage_mg
original
[ "group_by", "avg", "object" ]
3
null
false
6d3baad4d70c
4
gradebook
[ "MAPLE-2B, BIRCH-1A, CEDAR-3C, ALDER-4D" ]
1.0.0
true
v1-098
[ { "classroom": "maple-2b", "pupil": "Saoirse Byrne", "tardies": 1 }, { "classroom": "birch-1a", "pupil": "Kenji Morita", "tardies": 0 }, { "classroom": "cedar-3c", "pupil": "Amara Diallo", "tardies": 4 }, { "classroom": "alder-4d", "pupil": "Luka Petrov", ...
1.7.1
CC-BY-4.0
[ "classroom", "pupil", "tardies" ]
false
hand
map(.classroom | ascii_upcase) | join(", ")
combine the classroom codes, uppercased, into a single string separated by ', '
original
[ "ascii_upcase", "join" ]
4
null
false
002ac17d0a1d
4
realestate
[ [ { "on_market": 3, "suburb": "Fernhollow" }, { "on_market": 1, "suburb": "Lakemount" }, { "on_market": 1, "suburb": "Wattle Rise" } ] ]
1.0.0
true
v1-099
[ { "mls_no": "MX-7741", "suburb": "Fernhollow", "tenure": "freehold" }, { "mls_no": "MX-2103", "suburb": "Fernhollow", "tenure": "leasehold" }, { "mls_no": "MX-9358", "suburb": "Lakemount", "tenure": "freehold" }, { "mls_no": "MX-4410", "suburb": "Wattle Rise",...
1.7.1
CC-BY-4.0
[ "mls_no", "suburb", "tenure" ]
true
hand
group_by(.suburb) | map({suburb: .[0].suburb, on_market: length})
listing count per suburb (suburb, on_market)
original
[ "group_by", "count" ]
4
null
false
3b9ee85e3a86
3
sports
[ [ { "best_haul": 3, "squad_name": "Ironhoof" }, { "best_haul": 4, "squad_name": "Thundercaps" } ] ]
1.0.0
true
v1-100
[ { "goals_for": 3, "matchday": 1, "squad_name": "Ironhoof" }, { "goals_for": 1, "matchday": 1, "squad_name": "Thundercaps" }, { "goals_for": 0, "matchday": 2, "squad_name": "Ironhoof" }, { "goals_for": 4, "matchday": 2, "squad_name": "Thundercaps" }, { ...
1.7.1
CC-BY-4.0
[ "squad_name", "goals_for", "matchday" ]
true
hand
group_by(.squad_name) | map({squad_name: .[0].squad_name, best_haul: (map(.goals_for) | max)})
best goals_for haul per squad as {squad_name, best_haul}
original
[ "group_by", "max" ]
3
null
End of preview. Expand in Data Studio

nl2jq-bench

Part of the nl2jq project — all artifacts · code + CLI · live demo · dataset

An execution-scored, frozen benchmark for natural-language → jq program generation. Each item is a realistic request over a small JSON input with a verified reference program; models are scored on whether their program's output matches the reference output under jq 1.7.1 — not on string similarity.

Files

file what
nl2jq-bench-1.0.0.jsonl the benchmark: 400 frozen items (v1.0.0)
FREEZE.txt the freeze record — content sha256 (the benchmark's identity), tier histogram, jq binary hash
harness.py standalone scorer (Python 3.10+, any jq binary; pin jq 1.7.1 to reproduce)
devset-v0.jsonl the RETIRED 100-item development split — see "History" below; not a benchmark

Cite scores as nl2jq-bench@1.0.0 together with the sha256 in FREEZE.txt. Any change to the items is a new version with a new hash; v1.0.0 never changes.

Design

400 items, five tiers (each item carries tier = difficulty 1–5):

tier n content
T1 Elementary 60 single op: path/index/slice/length/keys/has/type///
T2 Core 100 select/map, comparisons, arithmetic, unique/sort/min/max/add, contains
T3 Aggregation & reshape 100 group_by/sort_by/*_by, to_entries family, map_values, flatten, any/all, object construction
T4 Strings, formats & composition 80 split/join/test/capture/sub/gsub, casts, interpolation, @csv/@tsv/@json/@base64, 3+-stage pipelines
T5 Generalization 60 reduce, foreach, walk/.., paths/getpath, try/catch, if/then/elif, object-merge add, computed-key group_by, INDEX

Anti-contamination, by construction (relative to the nl2jq training set):

  • Field-name disjointness: 0% overlap. Every input field name was checked against the full training vocabulary (687 names incl. constructible compounds) with a near-miss bar (no shared ≥4-char prefixes, no small-edit variants, no common abbreviations) and an enum-value gate (no training enum value appears as an input value or program literal). The gate ships in the project repo (bench/validate_novelty.py) and rebuilds the forbidden vocabulary from the generator source at check time.
  • T5 is beyond-grammar. The 60 T5 items use only constructs the training-data grammar provably never emits (verified by an emission audit + a source gate, bench/audit_coverage.py). Report the T5-only score separately — it is the generalization headline; a model cannot have seen these operation shapes in nl2jq.
  • Novel domains. 12 domains disjoint from the training set's (clinical, gradebook, transit, sports, music, weather, real-estate, recipes, library, gaming, lab, civic), plus ≤2% abstract single-letter-key items (tagged abstract: true).
  • Sealed canary. A 100-item sealed set was frozen alongside v1.0.0 (sha256 in FREEZE.txt, never published). It exists to detect future train-on-test: a large public−sealed gap for a model is a contamination signal. Every item also carries a unique canary_id for corpus grepping.

Review process. Every item was execution-verified under a pinned jq 1.7.1 binary (expected outputs are pinned from execution, never typed), then adversarially reviewed for ambiguity: where a different but defensible program produces a different output, the request was disambiguated or the alternative's executed output added to acceptable_outputs. 11% of items were revised in this pass.

Item format

{
  "id": "v1-042", "tier": 3, "difficulty": 3, "domain": "transit",
  "request": "total ridership per garage",
  "input": [ {"route_no": "41B", "garage": "Elmside", "ridership": 10432}, ... ],
  "reference_program": "group_by(.garage) | map({garage: .[0].garage, ridership: (map(.ridership) | add)})",
  "expected_output": [ ... ],
  "order_insensitive": false, "abstract": false,
  "novel_fields": ["route_no", "garage", "ridership"],
  "grammar_covered": true, "provenance": "hand", "source": "original",
  "jq_version": "1.7.1", "frozen_in": "1.0.0", "canary_id": "…", "license": "CC-BY-4.0"
}

Some items carry acceptable_outputs (a list of equally-correct output streams).

Scoring

A prediction is correct if its jq output equals an acceptable output under these normalizations (see harness.py):

  • array/stream equivalence — map(.x) and .[].x score the same;
  • array-order-insensitivity for items flagged order_insensitive;
  • float tolerance for numeric outputs.

harness.py is standalone — it needs only Python 3.10+ and a jq binary (uses $JQ_BIN, else jq on PATH; pin jq 1.7.1 to reproduce published numbers exactly):

from harness import score_program
score_program('map(.route_no)', item)   # -> {"valid": True, "correct": ...}

One-shot discipline: this benchmark is meant to be evaluated once per model release. Do not select checkpoints, tune prompts, or iterate data against it — that is what devset-v0.jsonl is for.

External submissions

Results for models not trained by the maintainer are welcome on the ledger. The protocol:

  1. Open a discussion on this repo attaching your predictions as JSONL — one line per item, {"id": ..., "program": ...}, covering all 400 ids — the exact predictions from your single evaluation run (don't generate a fresh set for submission). Include the model name and revision (HF commit hash), the exact prompt template, the decode settings (including the jq version if your system executes jq at inference time — use 1.7.1 there too), and a one-shot attestation (single generation run; no prompt tuning, checkpoint selection, or retries against the frozen set; no benchmark items or paraphrases of them in the prompt).
  2. Scoring is done by the maintainer by re-executing the submitted predictions under the pinned jq 1.7.1 binary with harness.py, driven by the project repo's bench/eval_frozen.py --backend preds — run that yourself first if you want to check your file. The re-scored numbers are what enter RESULTS.md, even if they differ from what the submitter's environment produced.
  3. What "verified" means here. The score of an external row is verified — computed by the maintainer under pinned conditions from the submitted predictions. The run conditions (model provenance, one-shot compliance) cannot be externally verified and remain attested by the submitter; the ledger records them as attested.
  4. Canary check. For publicly released models, the maintainer may additionally run the sealed canary set locally as a routine contamination check. Only aggregate numbers are ever reported; sealed items are never shared.

One ledger row per system version (a new row requires a new model revision or a materially different inference configuration, each with its own attestation); the ledger is append-only and superseded rows stay.

Results (v1.0.0)

The complete run-by-run record lives in this repo's RESULTS.md (append-only; one row per official run). Summary as of 2026-07-11 — rows marked (superseded) are earlier fine-tunes kept for the record; the shipped models are the bold rows:

system pass@1 valid@1 T1 T2 T3 T4 T5-gen
40m v5, from scratch (superseded) 0.00 0.48 0.00 0.00 0.00 0.00 0.00
nl2jq-40m (v7 weights) 0.04 0.56 0.08 0.08 0.02 0.01 0.02
nl2jq-40m + input-grounded decoding 0.09 0.76 0.17 0.14 0.08 0.01 0.05
Qwen3-0.6B base, zero-shot 0.01 0.06 0.02 0.00 0.00 0.00 0.02
0.6B v5 LoRA (superseded) 0.24 0.67 0.45 0.38 0.21 0.12 0.02
nl2jq-qwen3-0.6b (v6 weights) 0.40 0.73 0.65 0.52 0.36 0.28 0.20
nl2jq-qwen3.5-2b (v7 LoRA) 0.46 0.75 0.67 0.61 0.47 0.33 0.13
nl2jq-qwen3.5-2b + exec-rerank k=4 (CLI config) 0.48 0.82 0.75 0.61 0.47 0.35 0.18
Claude Opus 4.8 (zero-shot) 0.96 0.98 1.00 0.96 0.96 0.96 0.90

For contrast, on the retired in-distribution dev split the earlier models scored 0.55 / 0.81 / 0.75 pass@1. The differences are the measured generalization gap, and quantifying it honestly is the point of this benchmark. Three regimes emerge:

  • From scratch at 37M: in-distribution skill barely transfers (dev 0.55 → frozen 0.00–0.09 across three data generations). Syntax survives the distribution shift; field binding and composition do not.
  • Pretrained bases + task LoRA: fine-tuning does all the work (base 0.01 → 0.40 at 0.6B; 0.48 at 2B in the CLI configuration) — strong on elementary tasks over never-seen fields, progressively weaker on multi-stage composition and the T5 constructs.
  • Frontier zero-shot climbs from 0.75 to 0.96: a share of its dev-split misses were ambiguity artifacts that this benchmark's adversarial review eliminated (disambiguated requests, executed acceptable_outputs).

History: devset-v0

The original 100-item set (shipped here as devset-v0.jsonl) was used during development for checkpoint selection and grammar iteration, and its field names overlap the training vocabulary (~65%) — a post-hoc audit found 95/100 of its items structurally reproducible by the training-data generator. It is retired as a benchmark and kept only for reproducibility of the development history. Do not report devset numbers as held-out results.

Provenance

All items are original, authored for this benchmark (no scraped content, no Stack Overflow), execution-verified under jq 1.7.1. Reference programs and inputs are CC BY 4.0.

Code: github.com/gauthierpiarrette/nl2jq. Companion training set: gauthierpiarrette/nl2jq. Models: nl2jq-40m, nl2jq-qwen3-0.6b, nl2jq-qwen3.5-2b.

Downloads last month
47

Collection including gauthierpiarrette/nl2jq-bench