Dataset Viewer
Auto-converted to Parquet Duplicate
request
string
context
string
context_mode
string
program
string
expected_output
list
text
string
tier
int64
tags
list
domain
string
family
string
input_doc
unknown
split
string
count the repositories
{"open_issues": "number ex:392", "language": "string ex:\"C++\"", "rank": "number ex:78906", "max_weight": "number ex:251.41", "amount": "number ex:2835.42", "title": "string ex:\"onyx delta alpha\"", "repos": [{"stars": "number ex:93546", "avg_cost": "number ex:53.75", "salary": "number ex:174.68", "amount": "number e...
shape
.repos | length
[ 7 ]
<|request|> count the repositories <|input|> {"open_issues": "number ex:392", "language": "string ex:\"C++\"", "rank": "number ex:78906", "max_weight": "number ex:251.41", "amount": "number ex:2835.42", "title": "string ex:\"onyx delta alpha\"", "repos": [{"stars": "number ex:93546", "avg_cost": "number ex:53.75", "sal...
1
[ "count" ]
repos
5446b922ee19c009
{ "open_issues": 392, "language": "C++", "rank": 78906, "max_weight": 251.41, "amount": 2835.42, "title": "onyx delta alpha", "repos": [ { "stars": 93546, "avg_cost": 53.75, "salary": 174.68, "amount": 64.5, "roles": [ "guest" ], "title": "raven quartz...
train
every value multiplied by 3
{"retries": 29, "cache_size": 141, "volume": 72, "font_size": 54, "width": 189, "timeout": 144}
raw
map_values(. * 3)
[ { "retries": 87, "cache_size": 423, "volume": 216, "font_size": 162, "width": 567, "timeout": 432 } ]
<|request|> every value multiplied by 3 <|input|> {"retries": 29, "cache_size": 141, "volume": 72, "font_size": 54, "width": 189, "timeout": 144} <|program|> map_values(. * 3)<|end|>
3
[ "object", "map_values" ]
settings_num
c55276c3114f6c96
{ "retries": 29, "cache_size": 141, "volume": 72, "font_size": 54, "width": 189, "timeout": 144 }
train
the slice from index 1 to 2
[14, 16, 16, 8]
raw
.[1:2]
[ [ 16 ] ]
<|request|> the slice from index 1 to 2 <|input|> [14, 16, 16, 8] <|program|> .[1:2]<|end|>
2
[ "slice" ]
primitive
b9f61d458012e2ba
[ 14, 16, 16, 8 ]
train
the third largest spend value
[{"account": {"iban": "string ex:\"falcon-370\"", "owner": "string ex:\"Wei Kaur\""}, "currency": "string ex:\"JPY\"", "alias": "string ex:\"granite-536\"", "enabled": "bool", "region": "string ex:\"us-west\"", "deposit": "number ex:1136.87", "min_streak": "number ex:708", "spend": "number ex:19.58", "description": "st...
shape
[.[].spend] | sort | reverse | .[2]
[ 19.58 ]
<|request|> the third largest spend value <|input|> [{"account": {"iban": "string ex:\"falcon-370\"", "owner": "string ex:\"Wei Kaur\""}, "currency": "string ex:\"JPY\"", "alias": "string ex:\"granite-536\"", "enabled": "bool", "region": "string ex:\"us-west\"", "deposit": "number ex:1136.87", "min_streak": "number ex:...
3
[ "sort", "index" ]
finance
57c22a65ddb91fa4
[ { "account": { "iban": "falcon-370", "owner": "Wei Kaur" }, "currency": "JPY", "alias": "granite-536", "enabled": false, "region": "us-west", "deposit": 1136.87, "min_streak": 708, "spend": 19.58, "description": "indigo lumen jasper ember raven" }, { "acco...
train
combined retries
[{"cache_hit": "bool", "started_at": "string ex:\"2024-03-02\"", "price": "number ex:7.89", "team": "string ex:\"north\"", "retries": "number ex:2358", "scores": ["number ex:85", "\u00d75"]}, "\u00d77"]
shape
[.[] | .retries] | add
[ 20123 ]
<|request|> combined retries <|input|> [{"cache_hit": "bool", "started_at": "string ex:\"2024-03-02\"", "price": "number ex:7.89", "team": "string ex:\"north\"", "retries": "number ex:2358", "scores": ["number ex:85", "\u00d75"]}, "\u00d77"] <|program|> [.[] | .retries] | add<|end|>
2
[ "sum" ]
ci
8baa7e0b1e41020d
[ { "cache_hit": true, "started_at": "2024-03-02", "price": 7.89, "team": "north", "retries": 2358, "scores": [ 85, 23, 34, 90, 32 ] }, { "cache_hit": true, "started_at": "2025-06-07", "price": 36.33, "team": "blue", "retries": 3805, ...
train
what is dark mode set to
{"wifi": false, "sound": true, "notifications": true, "auto_update": true, "dark_mode": true, "compact_view": false}
raw
.dark_mode
[ true ]
<|request|> what is dark mode set to <|input|> {"wifi": false, "sound": true, "notifications": true, "auto_update": true, "dark_mode": true, "compact_view": false} <|program|> .dark_mode<|end|>
3
[ "path" ]
flags_bool
919e955865b56295
{ "wifi": false, "sound": true, "notifications": true, "auto_update": true, "dark_mode": true, "compact_view": false }
train
combined max duration
[{"id": "number ex:70416", "role": "string ex:\"admin\"", "name": "string ex:\"Carmen Okafor\"", "unit_rate": "number ex:567.47", "max_duration": "number ex:17", "website": "string ex:\"https://horizon.dev.io\"", "summary": "string ex:\"indigo jasper meadow qua\\u2026\""}, "\u00d73"]
shape
[.[] | .max_duration] | add
[ 115 ]
<|request|> combined max duration <|input|> [{"id": "number ex:70416", "role": "string ex:\"admin\"", "name": "string ex:\"Carmen Okafor\"", "unit_rate": "number ex:567.47", "max_duration": "number ex:17", "website": "string ex:\"https://horizon.dev.io\"", "summary": "string ex:\"indigo jasper meadow qua\\u2026\""}, "\...
2
[ "sum" ]
users
6d48900495ecc289
[ { "id": 70416, "role": "admin", "name": "Carmen Okafor", "unit_rate": 567.47, "max_duration": 17, "website": "https://horizon.dev.io", "summary": "indigo jasper meadow quartz ember" }, { "id": 62441, "role": "editor", "name": "Diego Larsson", "unit_rate": 362.98, ...
train
the list reversed
["v3.9.0", "v6.9", "v4.5", "v7.10.4", "v7.11", "v9.12", "v11.11"]
raw
reverse
[ [ "v11.11", "v9.12", "v7.11", "v7.10.4", "v4.5", "v6.9", "v3.9.0" ] ]
<|request|> the list reversed <|input|> ["v3.9.0", "v6.9", "v4.5", "v7.10.4", "v7.11", "v9.12", "v11.11"] <|program|> reverse<|end|>
2
[ "reverse" ]
primitive
d87660cf0cadc2b0
[ "v3.9.0", "v6.9", "v4.5", "v7.10.4", "v7.11", "v9.12", "v11.11" ]
train
shortest to longest
["Bob Petrov", "Omar Okafor", "Farid Silva"]
raw
sort_by(length)
[ [ "Bob Petrov", "Omar Okafor", "Farid Silva" ] ]
<|request|> shortest to longest <|input|> ["Bob Petrov", "Omar Okafor", "Farid Silva"] <|program|> sort_by(length)<|end|>
2
[ "sort", "string" ]
primitive
2b48b59496902639
[ "Bob Petrov", "Omar Okafor", "Farid Silva" ]
train
the minimum and maximum as {min, max}
[57, 37, 53, 11]
raw
{min: min, max: max}
[ { "min": 11, "max": 57 } ]
<|request|> the minimum and maximum as {min, max} <|input|> [57, 37, 53, 11] <|program|> {min: min, max: max}<|end|>
2
[ "object", "min", "max" ]
primitive
b9f61d458012e2ba
[ 57, 37, 53, 11 ]
train
just the flag values
{"sync": "bool", "spellcheck": "bool", "compact_view": "bool", "location": "bool", "dark_mode": "bool", "bluetooth": "bool"}
shape
[.[]]
[ [ true, true, false, true, false, true ] ]
<|request|> just the flag values <|input|> {"sync": "bool", "spellcheck": "bool", "compact_view": "bool", "location": "bool", "dark_mode": "bool", "bluetooth": "bool"} <|program|> [.[]]<|end|>
3
[ "values", "object" ]
flags_bool
5918362c6c1e357f
{ "sync": true, "spellcheck": true, "compact_view": false, "location": true, "dark_mode": false, "bluetooth": true }
train
how many words each vendor has
[{"duration_sec": "number ex:6510", "endpoint": "string ex:\"https://falcon.dev.io\"", "vendor": "string ex:\"Zoe Martin\"", "premium": "bool", "max_weight": "number ex:3739.88"}, "\u00d78"]
shape
map(.vendor | split(" ") | length)
[ [ 2, 2, 2, 2, 2, 2, 2, 2 ] ]
<|request|> how many words each vendor has <|input|> [{"duration_sec": "number ex:6510", "endpoint": "string ex:\"https://falcon.dev.io\"", "vendor": "string ex:\"Zoe Martin\"", "premium": "bool", "max_weight": "number ex:3739.88"}, "\u00d78"] <|program|> map(.vendor | split(" ") | length)<|end|>
3
[ "string", "split", "count" ]
ci
5bafad548d8eb364
[ { "duration_sec": 6510, "endpoint": "https://falcon.dev.io", "vendor": "Zoe Martin", "premium": false, "max_weight": 3739.88 }, { "duration_sec": 2310, "endpoint": "https://harbor.example.com", "vendor": "Iris Martin", "premium": true, "max_weight": 2947.75 }, { "...
train
compute gross humidity + seats per reading
[{"battery": 34, "gross_humidity": 11.89, "seats": 7, "age": 1312, "end_date": "2024-02-13", "fee": 209.29}, {"battery": 7, "gross_humidity": 57.46, "seats": 7, "age": 2975, "end_date": "2025-07-23", "fee": 3269.41}, {"battery": 85, "gross_humidity": 46.06, "seats": 2, "age": 4545, "end_date": "2025-08-12", "fee": 2485...
raw
map(.gross_humidity + .seats)
[ [ 18.89, 64.46, 48.06, 41.62, 55.13, 23.48 ] ]
<|request|> compute gross humidity + seats per reading <|input|> [{"battery": 34, "gross_humidity": 11.89, "seats": 7, "age": 1312, "end_date": "2024-02-13", "fee": 209.29}, {"battery": 7, "gross_humidity": 57.46, "seats": 7, "age": 2975, "end_date": "2025-07-23", "fee": 3269.41}, {"battery": 85, "gross_humidity": 46.0...
1
[ "arith" ]
iot
ed0160b2c6dd02aa
[ { "battery": 34, "gross_humidity": 11.89, "seats": 7, "age": 1312, "end_date": "2024-02-13", "fee": 209.29 }, { "battery": 7, "gross_humidity": 57.46, "seats": 7, "age": 2975, "end_date": "2025-07-23", "fee": 3269.41 }, { "battery": 85, "gross_humidity...
train
the mean setting value
{"max_connections": "number ex:49", "quality": "number ex:43", "brightness": "number ex:62", "timeout": "number ex:155"}
shape
[.[]] | add / length
[ 77.25 ]
<|request|> the mean setting value <|input|> {"max_connections": "number ex:49", "quality": "number ex:43", "brightness": "number ex:62", "timeout": "number ex:155"} <|program|> [.[]] | add / length<|end|>
3
[ "avg", "object" ]
settings_num
6afb83d3c1330d54
{ "max_connections": 49, "quality": 43, "brightness": 62, "timeout": 155 }
train
pull out max weight
{"open_issues": 237, "archived": true, "language": "TypeScript", "rate": 179.8, "max_weight": 25.85, "level": "notice", "position": 1877, "peak_seats": 56, "commit": "bad5d4efb663", "items": [{"sku": "A308-ALPHA", "qty": 7}, {"sku": "F584-QUARTZ", "qty": 4}], "description": "horizon raven alpha kelp jasper", "repos": [...
raw
.max_weight
[ 25.85 ]
<|request|> pull out max weight <|input|> {"open_issues": 237, "archived": true, "language": "TypeScript", "rate": 179.8, "max_weight": 25.85, "level": "notice", "position": 1877, "peak_seats": 56, "commit": "bad5d4efb663", "items": [{"sku": "A308-ALPHA", "qty": 7}, {"sku": "F584-QUARTZ", "qty": 4}], "description": "ho...
1
[ "path" ]
repos
78c6de547d29f6d5
{ "open_issues": 237, "archived": true, "language": "TypeScript", "rate": 179.8, "max_weight": 25.85, "level": "notice", "position": 1877, "peak_seats": 56, "commit": "bad5d4efb663", "items": [ { "sku": "A308-ALPHA", "qty": 7 }, { "sku": "F584-QUARTZ", "qty": 4 ...
train
just the values
{"owner": "string ex:\"indigo-320\"", "homepage": "string ex:\"https://pixel.dev.io\"", "pushed_at": "string ex:\"2024-05-17\"", "language": "string ex:\"TypeScript\"", "avg_deposit": "number ex:728.57", "total_views": "number ex:1352", "tags": ["string ex:\"urgent\"", "\u00d71"]}
shape
[.[]]
[ [ "indigo-320", "https://pixel.dev.io", "2024-05-17", "TypeScript", 728.57, 1352, [ "urgent" ] ] ]
<|request|> just the values <|input|> {"owner": "string ex:\"indigo-320\"", "homepage": "string ex:\"https://pixel.dev.io\"", "pushed_at": "string ex:\"2024-05-17\"", "language": "string ex:\"TypeScript\"", "avg_deposit": "number ex:728.57", "total_views": "number ex:1352", "tags": ["string ex:\"urgent\"", "\u00d71"]} ...
2
[ "values", "object" ]
repos
4ed853a5881189e2
{ "owner": "indigo-320", "homepage": "https://pixel.dev.io", "pushed_at": "2024-05-17", "language": "TypeScript", "avg_deposit": 728.57, "total_views": 1352, "tags": [ "urgent" ] }
train
what fields are in this object
{"firmware": "nickel-862", "recorded_at": "2023-03-11", "sensor_id": "crimson-3", "duration": 89, "avg_longitude": 62.64, "avg_stock": 20, "monthly_seats": 1221, "priority": "high", "title": "indigo ember jasper"}
raw
keys
[ [ "avg_longitude", "avg_stock", "duration", "firmware", "monthly_seats", "priority", "recorded_at", "sensor_id", "title" ] ]
<|request|> what fields are in this object <|input|> {"firmware": "nickel-862", "recorded_at": "2023-03-11", "sensor_id": "crimson-3", "duration": 89, "avg_longitude": 62.64, "avg_stock": 20, "monthly_seats": 1221, "priority": "high", "title": "indigo ember jasper"} <|program|> keys<|end|>
1
[ "keys" ]
iot
0f16abd8610829f2
{ "firmware": "nickel-862", "recorded_at": "2023-03-11", "sensor_id": "crimson-3", "duration": 89, "avg_longitude": 62.64, "avg_stock": 20, "monthly_seats": 1221, "priority": "high", "title": "indigo ember jasper" }
train
the 2 cheapest users by count, charge only
[{"last_login": "2023-03-14", "email": "alice.okafor@corp.io", "nickname": "ember harbor topaz", "charge": 75.95, "daily_stock": 1856, "count": 20, "distance": 14, "min_votes": 12}, {"email": "vera.tanaka@mail.dev", "nickname": "topaz ember", "charge": 74.0, "daily_stock": 1927, "count": 53, "distance": 10, "min_votes"...
raw
sort_by(.count) | .[0:2] | map(.charge)
[ [ 75.95, 74 ] ]
<|request|> the 2 cheapest users by count, charge only <|input|> [{"last_login": "2023-03-14", "email": "alice.okafor@corp.io", "nickname": "ember harbor topaz", "charge": 75.95, "daily_stock": 1856, "count": 20, "distance": 14, "min_votes": 12}, {"email": "vera.tanaka@mail.dev", "nickname": "topaz ember", "charge": 74...
3
[ "sort", "slice", "pluck" ]
users
413b94167cfaf66d
[ { "last_login": "2023-03-14", "email": "alice.okafor@corp.io", "nickname": "ember harbor topaz", "charge": 75.95, "daily_stock": 1856, "count": 20, "distance": 14, "min_votes": 12 }, { "email": "vera.tanaka@mail.dev", "nickname": "topaz ember", "charge": 74, "dail...
train
sorted in descending order
[158.55, 388.07, 79.35, 478.89, 52.52, 392.42]
raw
sort | reverse
[ [ 478.89, 392.42, 388.07, 158.55, 79.35, 52.52 ] ]
<|request|> sorted in descending order <|input|> [158.55, 388.07, 79.35, 478.89, 52.52, 392.42] <|program|> sort | reverse<|end|>
2
[ "sort", "reverse" ]
primitive
d36303a8340f4b6d
[ 158.55, 388.07, 79.35, 478.89, 52.52, 392.42 ]
train
deduplicate them
["223", "511", "872"]
raw
unique
[ [ "223", "511", "872" ] ]
<|request|> deduplicate them <|input|> ["223", "511", "872"] <|program|> unique<|end|>
2
[ "unique" ]
primitive
b625f56b1a21202b
[ "223", "511", "872" ]
train
build an object from these key/value pairs
[{"key": "onyx lumen", "value": 170}, {"key": "harbor topaz", "value": 63}, {"key": "raven pixel delta", "value": 46}, {"key": "indigo", "value": 182}]
raw
from_entries
[ { "onyx lumen": 170, "harbor topaz": 63, "raven pixel delta": 46, "indigo": 182 } ]
<|request|> build an object from these key/value pairs <|input|> [{"key": "onyx lumen", "value": 170}, {"key": "harbor topaz", "value": 63}, {"key": "raven pixel delta", "value": 46}, {"key": "indigo", "value": 182}] <|program|> from_entries<|end|>
3
[ "from_entries" ]
primitive
4864ad1f051394a1
[ { "key": "onyx lumen", "value": 170 }, { "key": "harbor topaz", "value": 63 }, { "key": "raven pixel delta", "value": 46 }, { "key": "indigo", "value": 182 } ]
train
add a high flag (true when distance exceeds 46) to each reading, keep sensor id
[{"sensor_id": "nickel-702", "temperature": 8.64, "online": false, "comments": 3790, "category": "entertainment", "longitude": 417.81, "distance": 32, "items": [{"sku": "C170-MEADOW", "qty": 1}, {"sku": "C165-INDIGO", "qty": 1}, {"sku": "C811-EMBER", "qty": 4}]}, {"sensor_id": "falcon-558", "temperature": 32.42, "onlin...
raw
map({sensor_id, high: (.distance > 46)})
[ [ { "sensor_id": "nickel-702", "high": false }, { "sensor_id": "falcon-558", "high": true }, { "sensor_id": "raven-611", "high": true }, { "sensor_id": "quartz-426", "high": false }, { "sensor_id": "crimson-895", "high":...
<|request|> add a high flag (true when distance exceeds 46) to each reading, keep sensor id <|input|> [{"sensor_id": "nickel-702", "temperature": 8.64, "online": false, "comments": 3790, "category": "entertainment", "longitude": 417.81, "distance": 32, "items": [{"sku": "C170-MEADOW", "qty": 1}, {"sku": "C165-INDIGO", ...
3
[ "reshape", "boolean" ]
iot
fe35d6772baee393
[ { "sensor_id": "nickel-702", "temperature": 8.64, "online": false, "comments": 3790, "category": "entertainment", "longitude": 417.81, "distance": 32, "items": [ { "sku": "C170-MEADOW", "qty": 1 }, { "sku": "C165-INDIGO", "qty": 1 ...
train
multiply every value by 10
{"threshold": "number ex:156", "width": "number ex:4", "retries": "number ex:146"}
shape
map_values(. * 10)
[ { "threshold": 1560, "width": 40, "retries": 1460 } ]
<|request|> multiply every value by 10 <|input|> {"threshold": "number ex:156", "width": "number ex:4", "retries": "number ex:146"} <|program|> map_values(. * 10)<|end|>
3
[ "object", "map_values" ]
settings_num
33d9e63cec6085e1
{ "threshold": 156, "width": 4, "retries": 146 }
train
parse each as a number and total them
["900", "822", "504", "910", "54", "50"]
raw
map(tonumber) | add
[ 3240 ]
<|request|> parse each as a number and total them <|input|> ["900", "822", "504", "910", "54", "50"] <|program|> map(tonumber) | add<|end|>
3
[ "tonumber", "sum" ]
primitive
b625f56b1a21202b
[ "900", "822", "504", "910", "54", "50" ]
train
the count of repositories per email
[{"open_issues": "number ex:467", "stars": "number ex:620", "priority": "number ex:4104", "email": "string ex:\"carmen.rossi@mail.dev\"", "product_id": "string ex:\"meadow-384\"", "department": "string ex:\"finance\""}, "\u00d77"]
shape
group_by(.email) | map({email: .[0].email, count: length})
[ [ { "email": "alice.dubois@mail.dev", "count": 1 }, { "email": "carmen.rossi@mail.dev", "count": 1 }, { "email": "jonas.petrov@corp.io", "count": 1 }, { "email": "priya.chen@mail.dev", "count": 1 }, { "email": "priya.tanaka@co...
<|request|> the count of repositories per email <|input|> [{"open_issues": "number ex:467", "stars": "number ex:620", "priority": "number ex:4104", "email": "string ex:\"carmen.rossi@mail.dev\"", "product_id": "string ex:\"meadow-384\"", "department": "string ex:\"finance\""}, "\u00d77"] <|program|> group_by(.email) | ...
3
[ "group_by", "count" ]
repos
9da100817fb4051f
[ { "open_issues": 467, "stars": 620, "priority": 4104, "email": "carmen.rossi@mail.dev", "product_id": "meadow-384", "department": "finance" }, { "open_issues": 787, "stars": 193514, "priority": 2479, "email": "priya.tanaka@corp.io", "product_id": "ember-202", "dep...
train
keep only final tax and humidity in every transaction
[{"account": {"iban": "string ex:\"nickel-199\"", "owner": "string ex:\"Carmen Novak\""}, "category": "string ex:\"rent\"", "amount": "number ex:19203.44", "featured": "bool", "manager": "string ex:\"Alice Petrov\"", "final_tax": "number ex:172.56", "humidity": "number ex:2289.78", "team": "string ex:\"green\"", "prior...
shape
map({final_tax, humidity})
[ [ { "final_tax": 172.56, "humidity": 2289.78 }, { "final_tax": 798.65, "humidity": 4820 }, { "final_tax": 166.57, "humidity": 4862.94 }, { "final_tax": 771.17, "humidity": 4252.3 }, { "final_tax": 527.02, "humidity": 368...
<|request|> keep only final tax and humidity in every transaction <|input|> [{"account": {"iban": "string ex:\"nickel-199\"", "owner": "string ex:\"Carmen Novak\""}, "category": "string ex:\"rent\"", "amount": "number ex:19203.44", "featured": "bool", "manager": "string ex:\"Alice Petrov\"", "final_tax": "number ex:172...
2
[ "reshape" ]
finance
0feee4627c0e9f62
[ { "account": { "iban": "nickel-199", "owner": "Carmen Novak" }, "category": "rent", "amount": 19203.44, "featured": true, "manager": "Alice Petrov", "final_tax": 172.56, "humidity": 2289.78, "team": "green", "priority": "urgent", "labels": [ "enhancement...
train
each spend rounded up
{"total": 699.47, "status": "pending", "priority": "high", "email": "jonas.okafor@corp.io", "temperature": 15.78, "humidity": 45.03, "streak": 90, "roles": ["guest", "guest", "owner"], "description": "indigo harbor lumen slate", "transactions": [{"txn_id": "628acaf37767", "note": "kelp quartz", "pending": false, "curre...
raw
.transactions | map(.spend | ceil)
[ [ 91, 50, 30, 26, 7 ] ]
<|request|> each spend rounded up <|input|> {"total": 699.47, "status": "pending", "priority": "high", "email": "jonas.okafor@corp.io", "temperature": 15.78, "humidity": 45.03, "streak": 90, "roles": ["guest", "guest", "owner"], "description": "indigo harbor lumen slate", "transactions": [{"txn_id": "628acaf37767", "no...
2
[ "number" ]
commerce
e29952f9e7b57499
{ "total": 699.47, "status": "pending", "priority": "high", "email": "jonas.okafor@corp.io", "temperature": 15.78, "humidity": 45.03, "streak": 90, "roles": [ "guest", "guest", "owner" ], "description": "indigo harbor lumen slate", "transactions": [ { "txn_id": "628acaf37767"...
train
add up each number squared
[89, 3191, 3633, 664, 217]
raw
map(. * .) | add
[ 23877076 ]
<|request|> add up each number squared <|input|> [89, 3191, 3633, 664, 217] <|program|> map(. * .) | add<|end|>
2
[ "arith", "sum" ]
primitive
b9f61d458012e2ba
[ 89, 3191, 3633, 664, 217 ]
train
convert each string to a number
["538", "358", "218", "578", "337"]
raw
map(tonumber)
[ [ 538, 358, 218, 578, 337 ] ]
<|request|> convert each string to a number <|input|> ["538", "358", "218", "578", "337"] <|program|> map(tonumber)<|end|>
3
[ "tonumber" ]
primitive
b625f56b1a21202b
[ "538", "358", "218", "578", "337" ]
train
the last order
{"tests_passed": "number ex:3318", "spend": "number ex:54.58", "peak_age": "number ex:19", "plan": "string ex:\"business\"", "labels": ["string ex:\"bug\"", "\u00d73"], "title": "string ex:\"jasper nickel crimson\"", "orders": [{"status": "string ex:\"paid\"", "customer": {"name": "string ex:\"Alice Okafor\"", "email":...
shape
.orders | .[-1]
[ { "status": "refunded", "customer": { "name": "Vera Silva", "email": "alice.tanaka@corp.io" }, "premium": true, "unit_rate": 73.72, "latitude": 55.37, "fee": 2187.14 } ]
<|request|> the last order <|input|> {"tests_passed": "number ex:3318", "spend": "number ex:54.58", "peak_age": "number ex:19", "plan": "string ex:\"business\"", "labels": ["string ex:\"bug\"", "\u00d73"], "title": "string ex:\"jasper nickel crimson\"", "orders": [{"status": "string ex:\"paid\"", "customer": {"name": "...
1
[ "index" ]
ci
afabaed0cf02d0a1
{ "tests_passed": 3318, "spend": 54.58, "peak_age": 19, "plan": "business", "labels": [ "bug", "wontfix", "blocked" ], "title": "jasper nickel crimson", "orders": [ { "status": "paid", "customer": { "name": "Alice Okafor", "email": "diego.meyer@corp.io" ...
train
the frequency of each tag over the transactions
[{"pending": "bool", "account": {"iban": "string ex:\"delta-745\"", "owner": "string ex:\"Farid Garcia\""}, "net_amount": "number ex:99.39", "longitude": "number ex:28.87", "humidity": "number ex:65.58", "monthly_quantity": "number ex:22", "tags": ["string ex:\"backorder\"", "\u00d73"]}, "\u00d75"]
shape
[.[].tags[]] | group_by(.) | map({tag: .[0], n: length})
[ [ { "tag": "backorder", "n": 2 }, { "tag": "clearance", "n": 1 }, { "tag": "featured", "n": 1 }, { "tag": "fragile", "n": 2 }, { "tag": "fresh", "n": 1 }, { "tag": "new", "n": 3 }, { "ta...
<|request|> the frequency of each tag over the transactions <|input|> [{"pending": "bool", "account": {"iban": "string ex:\"delta-745\"", "owner": "string ex:\"Farid Garcia\""}, "net_amount": "number ex:99.39", "longitude": "number ex:28.87", "humidity": "number ex:65.58", "monthly_quantity": "number ex:22", "tags": ["...
4
[ "array", "group_by", "count" ]
finance
f9dfe8d54a9b0773
[ { "pending": true, "account": { "iban": "delta-745", "owner": "Farid Garcia" }, "net_amount": 99.39, "longitude": 28.87, "humidity": 65.58, "monthly_quantity": 22, "tags": [ "backorder", "priority", "fresh" ] }, { "pending": true, "accoun...
train
the lengths
["ember topaz", "crimson indigo", "falcon raven quartz", "falcon meadow granite"]
raw
map(length)
[ [ 11, 14, 19, 21 ] ]
<|request|> the lengths <|input|> ["ember topaz", "crimson indigo", "falcon raven quartz", "falcon meadow granite"] <|program|> map(length)<|end|>
2
[ "string" ]
primitive
3179f07cd8d9cc68
[ "ember topaz", "crimson indigo", "falcon raven quartz", "falcon meadow granite" ]
train
flatten everything
[[1308, 2916, 323], [2695, 4771, 2422], [3064, 1817]]
raw
flatten
[ [ 1308, 2916, 323, 2695, 4771, 2422, 3064, 1817 ] ]
<|request|> flatten everything <|input|> [[1308, 2916, 323], [2695, 4771, 2422], [3064, 1817]] <|program|> flatten<|end|>
2
[ "flatten" ]
primitive
6a134ef4ede9e5f9
[ [ 1308, 2916, 323 ], [ 2695, 4771, 2422 ], [ 3064, 1817 ] ]
train
what fields does a user have
[{"active": true, "result": "success", "final_amount": 754.06, "monthly_size": 19, "daily_duration": 51355}, {"active": false, "result": "running", "final_amount": 306.48, "monthly_size": 14, "daily_duration": 29212}, {"active": true, "result": "skipped", "final_amount": 626.34, "monthly_size": 6, "daily_duration": 133...
raw
.[0] | keys
[ [ "active", "daily_duration", "final_amount", "monthly_size", "result" ] ]
<|request|> what fields does a user have <|input|> [{"active": true, "result": "success", "final_amount": 754.06, "monthly_size": 19, "daily_duration": 51355}, {"active": false, "result": "running", "final_amount": 306.48, "monthly_size": 14, "daily_duration": 29212}, {"active": true, "result": "skipped", "final_amount...
1
[ "keys" ]
users
3831172f9a5fc098
[ { "active": true, "result": "success", "final_amount": 754.06, "monthly_size": 19, "daily_duration": 51355 }, { "active": false, "result": "running", "final_amount": 306.48, "monthly_size": 14, "daily_duration": 29212 }, { "active": true, "result": "skipped", ...
train
sum them as numbers
["885", "195", "710", "513", "381", "489"]
raw
map(tonumber) | add
[ 3173 ]
<|request|> sum them as numbers <|input|> ["885", "195", "710", "513", "381", "489"] <|program|> map(tonumber) | add<|end|>
3
[ "tonumber", "sum" ]
primitive
b625f56b1a21202b
[ "885", "195", "710", "513", "381", "489" ]
train
the key with the highest value
{"brightness": "number ex:200", "volume": "number ex:184", "font_size": "number ex:192", "workers": "number ex:87", "max_connections": "number ex:133"}
shape
to_entries | max_by(.value) | .key
[ "brightness" ]
<|request|> the key with the highest value <|input|> {"brightness": "number ex:200", "volume": "number ex:184", "font_size": "number ex:192", "workers": "number ex:87", "max_connections": "number ex:133"} <|program|> to_entries | max_by(.value) | .key<|end|>
3
[ "entries", "max" ]
settings_num
3554e32b63b9985b
{ "brightness": 200, "volume": 184, "font_size": 192, "workers": 87, "max_connections": 133 }
train
the 2 highest-temperature orders
[{"total": 352.35, "created_at": "2026-09-22", "unit_weight": 4800.33, "notify_email": "diego.meyer@mail.dev", "temperature": 879.12, "latitude": 91.88, "stock": 19, "tags": ["urgent", "clearance"]}, {"total": 391.55, "created_at": "2023-03-24", "unit_weight": 2019.35, "notify_email": "alice.okafor@corp.io", "temperatu...
raw
sort_by(-.temperature) | .[0:2]
[ [ { "total": 391.55, "created_at": "2023-03-24", "unit_weight": 2019.35, "notify_email": "alice.okafor@corp.io", "temperature": 4809.82, "latitude": 46.97, "stock": 6, "tags": [ "gift", "fragile" ] }, { "total": 375.79, "c...
<|request|> the 2 highest-temperature orders <|input|> [{"total": 352.35, "created_at": "2026-09-22", "unit_weight": 4800.33, "notify_email": "diego.meyer@mail.dev", "temperature": 879.12, "latitude": 91.88, "stock": 19, "tags": ["urgent", "clearance"]}, {"total": 391.55, "created_at": "2023-03-24", "unit_weight": 2019...
3
[ "sort", "slice" ]
commerce
d8c408a9264b1810
[ { "total": 352.35, "created_at": "2026-09-22", "unit_weight": 4800.33, "notify_email": "diego.meyer@mail.dev", "temperature": 879.12, "latitude": 91.88, "stock": 19, "tags": [ "urgent", "clearance" ] }, { "total": 391.55, "created_at": "2023-03-24", "u...
train
each avg budget rounded down
[{"pushed_at": "2026-02-06", "list_subtotal": 186.35, "avg_budget": 70.06, "status": "refunded", "size": 2455, "labels": ["wontfix", "bug", "bug"], "description": "topaz onyx raven falcon indigo slate"}, {"pushed_at": "2026-07-26", "homepage": "https://alpha.example.com", "list_subtotal": 513.46, "avg_budget": 36.25, "...
raw
map(.avg_budget | floor)
[ [ 70, 36, 7, 43, 51, 74, 90, 54 ] ]
<|request|> each avg budget rounded down <|input|> [{"pushed_at": "2026-02-06", "list_subtotal": 186.35, "avg_budget": 70.06, "status": "refunded", "size": 2455, "labels": ["wontfix", "bug", "bug"], "description": "topaz onyx raven falcon indigo slate"}, {"pushed_at": "2026-07-26", "homepage": "https://alpha.example.co...
2
[ "number" ]
repos
572300e45a2c2f7e
[ { "pushed_at": "2026-02-06", "list_subtotal": 186.35, "avg_budget": 70.06, "status": "refunded", "size": 2455, "labels": [ "wontfix", "bug", "bug" ], "description": "topaz onyx raven falcon indigo slate" }, { "pushed_at": "2026-07-26", "homepage": "https...
train
multiply every value by 10
{"volume": 75, "cache_size": 163, "height": 21, "workers": 20}
raw
map_values(. * 10)
[ { "volume": 750, "cache_size": 1630, "height": 210, "workers": 200 } ]
<|request|> multiply every value by 10 <|input|> {"volume": 75, "cache_size": 163, "height": 21, "workers": 20} <|program|> map_values(. * 10)<|end|>
3
[ "object", "map_values" ]
settings_num
d2e4ecc73afed4e7
{ "volume": 75, "cache_size": 163, "height": 21, "workers": 20 }
train
the name of the biggest setting
{"cache_size": "number ex:84", "timeout": "number ex:48", "retries": "number ex:14"}
shape
to_entries | max_by(.value) | .key
[ "cache_size" ]
<|request|> the name of the biggest setting <|input|> {"cache_size": "number ex:84", "timeout": "number ex:48", "retries": "number ex:14"} <|program|> to_entries | max_by(.value) | .key<|end|>
3
[ "entries", "max" ]
settings_num
7ea9df88379a2bf1
{ "cache_size": 84, "timeout": 48, "retries": 14 }
train
what is the owner
{"pushed_at": "2026-09-19", "owner": "pixel-738", "views": 120699, "plan": "free", "result": "skipped", "tags": ["sale", "featured", "backorder"]}
raw
.owner
[ "pixel-738" ]
<|request|> what is the owner <|input|> {"pushed_at": "2026-09-19", "owner": "pixel-738", "views": 120699, "plan": "free", "result": "skipped", "tags": ["sale", "featured", "backorder"]} <|program|> .owner<|end|>
1
[ "path" ]
repos
62d5762ab578e6aa
{ "pushed_at": "2026-09-19", "owner": "pixel-738", "views": 120699, "plan": "free", "result": "skipped", "tags": [ "sale", "featured", "backorder" ] }
train
a JSON array of result for builds where build id is above 54278
[{"build_id": 12198, "result": "cancelled", "role": "editor", "commit": "a4ede7eeb126", "email": "yuki.larsson@corp.io", "paid": true, "list_weight": 92.2}, {"build_id": 54278, "result": "success", "role": "developer", "commit": "0160d28ec651", "email": "tara.chen@example.com", "paid": false, "list_weight": 44.95}, {"b...
raw
[.[] | select(.build_id > 54278) | .result]
[ [ "cancelled" ] ]
<|request|> a JSON array of result for builds where build id is above 54278 <|input|> [{"build_id": 12198, "result": "cancelled", "role": "editor", "commit": "a4ede7eeb126", "email": "yuki.larsson@corp.io", "paid": true, "list_weight": 92.2}, {"build_id": 54278, "result": "success", "role": "developer", "commit": "0160...
2
[ "filter", "pluck" ]
ci
505b23c723460b67
[ { "build_id": 12198, "result": "cancelled", "role": "editor", "commit": "a4ede7eeb126", "email": "yuki.larsson@corp.io", "paid": true, "list_weight": 92.2 }, { "build_id": 54278, "result": "success", "role": "developer", "commit": "0160d28ec651", "email": "tara.ch...
train
the words
"ember crimson harbor delta"
raw
split(" ")
[ [ "ember", "crimson", "harbor", "delta" ] ]
<|request|> the words <|input|> "ember crimson harbor delta" <|program|> split(" ")<|end|>
2
[ "string", "split" ]
primitive
7bb668f8b1335f2f
"ember crimson harbor delta"
train
builds that are shipped is enabled or online is disabled
[{"tests_passed": "number ex:2698", "pinned": "bool", "team": "string ex:\"north\"", "online": "bool", "shipped": "bool", "final_longitude": "number ex:5.22"}, "\u00d76"]
shape
map(select((.shipped) or (.online | not)))
[ [ { "tests_passed": 2698, "pinned": true, "team": "north", "online": true, "shipped": true, "final_longitude": 5.22 }, { "tests_passed": 4900, "pinned": false, "team": "north", "online": false, "shipped": false, "final_longitude": 9...
<|request|> builds that are shipped is enabled or online is disabled <|input|> [{"tests_passed": "number ex:2698", "pinned": "bool", "team": "string ex:\"north\"", "online": "bool", "shipped": "bool", "final_longitude": "number ex:5.22"}, "\u00d76"] <|program|> map(select((.shipped) or (.online | not)))<|end|>
3
[ "filter", "boolean" ]
ci
9e5df74308628861
[ { "tests_passed": 2698, "pinned": true, "team": "north", "online": true, "shipped": true, "final_longitude": 5.22 }, { "tests_passed": 4900, "pinned": false, "team": "north", "online": false, "shipped": false, "final_longitude": 95.95 }, { "tests_passed": ...
train
in lowercase
"slate topaz horizon harbor jasper crimson"
raw
ascii_downcase
[ "slate topaz horizon harbor jasper crimson" ]
<|request|> in lowercase <|input|> "slate topaz horizon harbor jasper crimson" <|program|> ascii_downcase<|end|>
2
[ "string" ]
primitive
7bb668f8b1335f2f
"slate topaz horizon harbor jasper crimson"
train
upper-case every string
["lumen", "granite delta", "lumen", "nickel topaz"]
raw
map(ascii_upcase)
[ [ "LUMEN", "GRANITE DELTA", "LUMEN", "NICKEL TOPAZ" ] ]
<|request|> upper-case every string <|input|> ["lumen", "granite delta", "lumen", "nickel topaz"] <|program|> map(ascii_upcase)<|end|>
2
[ "string" ]
primitive
3179f07cd8d9cc68
[ "lumen", "granite delta", "lumen", "nickel topaz" ]
train
the largest value in the object
{"threshold": 147, "volume": 88, "page_size": 93}
raw
[.[]] | max
[ 147 ]
<|request|> the largest value in the object <|input|> {"threshold": 147, "volume": 88, "page_size": 93} <|program|> [.[]] | max<|end|>
3
[ "max", "object" ]
settings_num
f853d54e4b47a119
{ "threshold": 147, "volume": 88, "page_size": 93 }
train
the last reading
[{"online": "bool", "battery": "number ex:21", "currency": "string ex:\"CAD\"", "status": "string ex:\"on_hold\"", "featured": "bool", "contact_email": "string ex:\"umar.chen@mail.dev\"", "active": "bool", "labels": ["string ex:\"feature\"", "\u00d73"]}, "\u00d78"]
shape
.[-1]
[ { "online": false, "battery": 61, "currency": "CHF", "status": "cancelled", "featured": false, "contact_email": "alice.dubois@corp.io", "active": false, "labels": [ "duplicate" ] } ]
<|request|> the last reading <|input|> [{"online": "bool", "battery": "number ex:21", "currency": "string ex:\"CAD\"", "status": "string ex:\"on_hold\"", "featured": "bool", "contact_email": "string ex:\"umar.chen@mail.dev\"", "active": "bool", "labels": ["string ex:\"feature\"", "\u00d73"]}, "\u00d78"] <|program|> .[-...
1
[ "index" ]
iot
45a5c428612e7e8e
[ { "online": false, "battery": 21, "currency": "CAD", "status": "on_hold", "featured": false, "contact_email": "umar.chen@mail.dev", "active": false, "labels": [ "feature", "regression", "duplicate" ] }, { "online": false, "battery": 44, "currency...
train
compute min weight + age per reading
[{"humidity": 1.72, "age": 2279, "rate": 54.35, "gift": true, "min_weight": 24.25}, {"humidity": 91.02, "age": 3628, "rate": 85.69, "gift": true, "min_weight": 22.11}, {"humidity": 23.22, "firmware": "falcon-963", "age": 3680, "rate": 55.41, "gift": true, "min_weight": 84.84}, {"humidity": 29.7, "age": 4414, "rate": 36...
raw
map(.min_weight + .age)
[ [ 2303.25, 3650.11, 3764.84, 4510.76, 4455.7, 3392.48, 3222.5, 2314.71 ] ]
<|request|> compute min weight + age per reading <|input|> [{"humidity": 1.72, "age": 2279, "rate": 54.35, "gift": true, "min_weight": 24.25}, {"humidity": 91.02, "age": 3628, "rate": 85.69, "gift": true, "min_weight": 22.11}, {"humidity": 23.22, "firmware": "falcon-963", "age": 3680, "rate": 55.41, "gift": true, "min_...
1
[ "arith" ]
iot
8dd6ea79f0dcfb98
[ { "humidity": 1.72, "age": 2279, "rate": 54.35, "gift": true, "min_weight": 24.25 }, { "humidity": 91.02, "age": 3628, "rate": 85.69, "gift": true, "min_weight": 22.11 }, { "humidity": 23.22, "firmware": "falcon-963", "age": 3680, "rate": 55.41, "g...
train
double every value in the object
{"max_connections": "number ex:158", "retries": "number ex:45", "port": "number ex:35", "threshold": "number ex:184", "font_size": "number ex:95", "quality": "number ex:6"}
shape
map_values(. * 2)
[ { "max_connections": 316, "retries": 90, "port": 70, "threshold": 368, "font_size": 190, "quality": 12 } ]
<|request|> double every value in the object <|input|> {"max_connections": "number ex:158", "retries": "number ex:45", "port": "number ex:35", "threshold": "number ex:184", "font_size": "number ex:95", "quality": "number ex:6"} <|program|> map_values(. * 2)<|end|>
3
[ "object", "map_values" ]
settings_num
22ff0554b1a9f724
{ "max_connections": 158, "retries": 45, "port": 35, "threshold": 184, "font_size": 95, "quality": 6 }
train
add up each number squared
[17, 20, 4]
raw
map(. * .) | add
[ 705 ]
<|request|> add up each number squared <|input|> [17, 20, 4] <|program|> map(. * .) | add<|end|>
2
[ "arith", "sum" ]
primitive
b9f61d458012e2ba
[ 17, 20, 4 ]
train
the homepages as a tab separated line
[{"stars": "number ex:187707", "score": "number ex:70", "subscribed": "bool", "price": "number ex:711.11", "homepage": "string ex:\"https://delta.dev.io\"", "alias": "string ex:\"delta-486\"", "completed": "bool", "scores": ["number ex:50", "\u00d72"]}, "\u00d76"]
shape
[.[].homepage] | @tsv
[ "https://delta.dev.io\thttps://indigo.example.com\thttps://pixel.svc.local\thttps://delta.example.com\thttps://lumen.example.com\thttps://jasper.dev.io" ]
<|request|> the homepages as a tab separated line <|input|> [{"stars": "number ex:187707", "score": "number ex:70", "subscribed": "bool", "price": "number ex:711.11", "homepage": "string ex:\"https://delta.dev.io\"", "alias": "string ex:\"delta-486\"", "completed": "bool", "scores": ["number ex:50", "\u00d72"]}, "\u00d...
3
[ "format" ]
repos
16db031d22466b46
[ { "stars": 187707, "score": 70, "subscribed": false, "price": 711.11, "homepage": "https://delta.dev.io", "alias": "delta-486", "completed": false, "scores": [ 50, 4 ] }, { "stars": 117545, "score": 93, "subscribed": false, "price": 95.75, "hom...
train
each flag as a key and value
{"spellcheck": "bool", "compact_view": "bool", "analytics": "bool", "wifi": "bool"}
shape
to_entries
[ [ { "key": "spellcheck", "value": false }, { "key": "compact_view", "value": false }, { "key": "analytics", "value": true }, { "key": "wifi", "value": true } ] ]
<|request|> each flag as a key and value <|input|> {"spellcheck": "bool", "compact_view": "bool", "analytics": "bool", "wifi": "bool"} <|program|> to_entries<|end|>
3
[ "entries", "object" ]
flags_bool
29ea02db4fb13ad9
{ "spellcheck": false, "compact_view": false, "analytics": true, "wifi": true }
train
a JSON array of region for log entries where tax >= 60.25
[{"service": "string ex:\"api\"", "retries": "number ex:4", "shipped": "bool", "final_fare": "number ex:4981.14", "region": "string ex:\"us-west\"", "reviewer": "string ex:\"Bob Diallo\"", "tax": "number ex:50.61", "budget": "number ex:319.18"}, "\u00d75"]
shape
[.[] | select(.tax >= 60.25) | .region]
[ [ "ap-south", "ap-south", "sa-east" ] ]
<|request|> a JSON array of region for log entries where tax >= 60.25 <|input|> [{"service": "string ex:\"api\"", "retries": "number ex:4", "shipped": "bool", "final_fare": "number ex:4981.14", "region": "string ex:\"us-west\"", "reviewer": "string ex:\"Bob Diallo\"", "tax": "number ex:50.61", "budget": "number ex:319....
2
[ "filter", "pluck" ]
logs
1dfeef0092a70a0b
[ { "service": "api", "retries": 4, "shipped": true, "final_fare": 4981.14, "region": "us-west", "reviewer": "Bob Diallo", "tax": 50.61, "budget": 319.18 }, { "service": "worker", "retries": 0, "shipped": true, "final_fare": 426.28, "region": "ap-south", "re...
train
in lowercase
"/alpha/quartz/delta"
raw
ascii_downcase
[ "/alpha/quartz/delta" ]
<|request|> in lowercase <|input|> "/alpha/quartz/delta" <|program|> ascii_downcase<|end|>
2
[ "string" ]
primitive
a3b8bd47cfccd869
"/alpha/quartz/delta"
train
number of log entries grouped by message
[{"message": "slate meadow onyx", "subscribed": true, "creator": "Sven Okafor", "views": 1197, "position": 2378, "items": [{"sku": "F127-DELTA", "qty": 4}, {"sku": "G278-QUARTZ", "qty": 5}, {"sku": "D683-INDIGO", "qty": 5}, {"sku": "G594-JASPER", "qty": 6}]}, {"message": "nickel slate", "subscribed": true, "creator": "...
raw
group_by(.message) | map({message: .[0].message, count: length})
[ [ { "message": "falcon onyx nickel", "count": 1 }, { "message": "granite", "count": 1 }, { "message": "indigo nickel", "count": 1 }, { "message": "kelp lumen", "count": 1 }, { "message": "nickel slate", "count": 1 },...
<|request|> number of log entries grouped by message <|input|> [{"message": "slate meadow onyx", "subscribed": true, "creator": "Sven Okafor", "views": 1197, "position": 2378, "items": [{"sku": "F127-DELTA", "qty": 4}, {"sku": "G278-QUARTZ", "qty": 5}, {"sku": "D683-INDIGO", "qty": 5}, {"sku": "G594-JASPER", "qty": 6}]...
3
[ "group_by", "count" ]
logs
c42a3b0046a25faf
[ { "message": "slate meadow onyx", "subscribed": true, "creator": "Sven Okafor", "views": 1197, "position": 2378, "items": [ { "sku": "F127-DELTA", "qty": 4 }, { "sku": "G278-QUARTZ", "qty": 5 }, { "sku": "D683-INDIGO", ...
train
readings in order of peak size
[{"humidity": 64.03, "firmware": "lumen-266", "online": true, "enabled": false, "gift": true, "peak_size": 14, "shipped": true}, {"humidity": 22.11, "firmware": "kelp-611", "online": true, "enabled": true, "gift": true, "peak_size": 2, "shipped": false}, {"humidity": 83.07, "firmware": "granite-920", "online": true, "e...
raw
sort_by(.peak_size)
[ [ { "humidity": 22.11, "firmware": "kelp-611", "online": true, "enabled": true, "gift": true, "peak_size": 2, "shipped": false }, { "humidity": 19.58, "firmware": "ember-607", "online": false, "enabled": false, "gift": false, ...
<|request|> readings in order of peak size <|input|> [{"humidity": 64.03, "firmware": "lumen-266", "online": true, "enabled": false, "gift": true, "peak_size": 14, "shipped": true}, {"humidity": 22.11, "firmware": "kelp-611", "online": true, "enabled": true, "gift": true, "peak_size": 2, "shipped": false}, {"humidity":...
2
[ "sort" ]
iot
7a4676ec51676201
[ { "humidity": 64.03, "firmware": "lumen-266", "online": true, "enabled": false, "gift": true, "peak_size": 14, "shipped": true }, { "humidity": 22.11, "firmware": "kelp-611", "online": true, "enabled": true, "gift": true, "peak_size": 2, "shipped": false ...
train
list each setting as a key and value
{"limit": 143, "threshold": 192, "height": 60, "quality": 52, "volume": 39, "margin": 188}
raw
to_entries
[ [ { "key": "limit", "value": 143 }, { "key": "threshold", "value": 192 }, { "key": "height", "value": 60 }, { "key": "quality", "value": 52 }, { "key": "volume", "value": 39 }, { "key": "margin", "val...
<|request|> list each setting as a key and value <|input|> {"limit": 143, "threshold": 192, "height": 60, "quality": 52, "volume": 39, "margin": 188} <|program|> to_entries<|end|>
3
[ "entries", "object" ]
settings_num
c7368ce165a8134d
{ "limit": 143, "threshold": 192, "height": 60, "quality": 52, "volume": 39, "margin": 188 }
train
which settings are disabled
{"sound": true, "location": false, "spellcheck": false, "autosave": false}
raw
to_entries | map(select(.value | not) | .key)
[ [ "location", "spellcheck", "autosave" ] ]
<|request|> which settings are disabled <|input|> {"sound": true, "location": false, "spellcheck": false, "autosave": false} <|program|> to_entries | map(select(.value | not) | .key)<|end|>
3
[ "entries", "filter" ]
flags_bool
4ac568efa5891eaa
{ "sound": true, "location": false, "spellcheck": false, "autosave": false }
train
count of keys in the object
{"note": "granite", "currency": "INR", "gross_latitude": 865.83, "team": "south", "unit_humidity": 2955.86, "website": "https://onyx.example.com", "priority": "high"}
raw
length
[ 7 ]
<|request|> count of keys in the object <|input|> {"note": "granite", "currency": "INR", "gross_latitude": 865.83, "team": "south", "unit_humidity": 2955.86, "website": "https://onyx.example.com", "priority": "high"} <|program|> length<|end|>
1
[ "length", "object" ]
finance
45c07f662f936ab2
{ "note": "granite", "currency": "INR", "gross_latitude": 865.83, "team": "south", "unit_humidity": 2955.86, "website": "https://onyx.example.com", "priority": "high" }
train
format each transaction as txn id: fee
[{"txn_id": "string ex:\"2a662b4a3fb5\"", "note": "string ex:\"topaz pixel raven\"", "fee": "number ex:1.06", "max_tax": "number ex:230.22", "weekly_count": "number ex:5", "region": "string ex:\"us-east\"", "items": [{"sku": "string ex:\"A190-TOPAZ\"", "qty": "number ex:1"}, "\u00d74"]}, "\u00d78"]
shape
map("\(.txn_id): \(.fee)")
[ [ "2a662b4a3fb5: 1.06", "981ffa43244d: 12.19", "d5c7c791eead: 30.23", "657315666df0: 41.11", "dc89ceddfbcf: 36.93", "efc4a8661b88: 29.25", "765cfa5aa91f: 20.73", "e89bff7bd9fe: 41.95" ] ]
<|request|> format each transaction as txn id: fee <|input|> [{"txn_id": "string ex:\"2a662b4a3fb5\"", "note": "string ex:\"topaz pixel raven\"", "fee": "number ex:1.06", "max_tax": "number ex:230.22", "weekly_count": "number ex:5", "region": "string ex:\"us-east\"", "items": [{"sku": "string ex:\"A190-TOPAZ\"", "qty":...
4
[ "string", "interp" ]
finance
580acf8c47c8d97d
[ { "txn_id": "2a662b4a3fb5", "note": "topaz pixel raven", "fee": 1.06, "max_tax": 230.22, "weekly_count": 5, "region": "us-east", "items": [ { "sku": "A190-TOPAZ", "qty": 1 }, { "sku": "C871-JASPER", "qty": 1 }, { "sku"...
train
every priority, swapping spaces with underscores
[{"stars": "number ex:87243", "open_issues": "number ex:667", "archived": "bool", "capacity": "number ex:11", "flagged": "bool", "attempts": "number ex:71", "priority": "string ex:\"medium\"", "tags": ["string ex:\"fresh\"", "\u00d73"]}, "\u00d78"]
shape
map(.priority | gsub(" "; "_"))
[ [ "medium", "high", "trivial", "trivial", "urgent", "medium", "urgent", "low" ] ]
<|request|> every priority, swapping spaces with underscores <|input|> [{"stars": "number ex:87243", "open_issues": "number ex:667", "archived": "bool", "capacity": "number ex:11", "flagged": "bool", "attempts": "number ex:71", "priority": "string ex:\"medium\"", "tags": ["string ex:\"fresh\"", "\u00d73"]}, "\u00d78"] ...
3
[ "string", "gsub" ]
repos
ea63119dd989d35e
[ { "stars": 87243, "open_issues": 667, "archived": false, "capacity": 11, "flagged": true, "attempts": 71, "priority": "medium", "tags": [ "fresh", "priority", "priority" ] }, { "stars": 81134, "open_issues": 132, "archived": true, "capacity":...
train
what fields are in this object
{"timestamp": "2023-08-20", "retries": 1, "duration_ms": 18795, "age": 250, "temperature": 45.48, "starred": false, "department": "ops", "paid": true, "items": [{"sku": "B210-ALPHA", "qty": 2}, {"sku": "E552-HORIZON", "qty": 3}, {"sku": "B152-KELP", "qty": 1}, {"sku": "C971-ONYX", "qty": 9}]}
raw
keys
[ [ "age", "department", "duration_ms", "items", "paid", "retries", "starred", "temperature", "timestamp" ] ]
<|request|> what fields are in this object <|input|> {"timestamp": "2023-08-20", "retries": 1, "duration_ms": 18795, "age": 250, "temperature": 45.48, "starred": false, "department": "ops", "paid": true, "items": [{"sku": "B210-ALPHA", "qty": 2}, {"sku": "E552-HORIZON", "qty": 3}, {"sku": "B152-KELP", "qty": 1}, {"sku"...
1
[ "keys" ]
logs
e6b0351b33b9180d
{ "timestamp": "2023-08-20", "retries": 1, "duration_ms": 18795, "age": 250, "temperature": 45.48, "starred": false, "department": "ops", "paid": true, "items": [ { "sku": "B210-ALPHA", "qty": 2 }, { "sku": "E552-HORIZON", "qty": 3 }, { "sku": "B152-KE...
train
reverse every string
["/raven/nickel/onyx/alpha", "/alpha/slate/horizon/harbor", "/alpha/harbor/falcon/kelp", "/onyx/granite"]
raw
map(explode | reverse | implode)
[ [ "ahpla/xyno/lekcin/nevar/", "robrah/noziroh/etals/ahpla/", "plek/noclaf/robrah/ahpla/", "etinarg/xyno/" ] ]
<|request|> reverse every string <|input|> ["/raven/nickel/onyx/alpha", "/alpha/slate/horizon/harbor", "/alpha/harbor/falcon/kelp", "/onyx/granite"] <|program|> map(explode | reverse | implode)<|end|>
2
[ "string" ]
primitive
c2ff73e612613073
[ "/raven/nickel/onyx/alpha", "/alpha/slate/horizon/harbor", "/alpha/harbor/falcon/kelp", "/onyx/granite" ]
train
list the top-level keys
{"host": "string ex:\"https://onyx.svc.local\"", "message": "string ex:\"slate\"", "level": "string ex:\"warn\"", "subtotal": "number ex:795.82", "budget": "number ex:54.3", "replies": "number ex:1819", "fee": "number ex:99.39", "followers": "number ex:45", "tags": ["string ex:\"sale\"", "\u00d71"]}
shape
keys
[ [ "budget", "fee", "followers", "host", "level", "message", "replies", "subtotal", "tags" ] ]
<|request|> list the top-level keys <|input|> {"host": "string ex:\"https://onyx.svc.local\"", "message": "string ex:\"slate\"", "level": "string ex:\"warn\"", "subtotal": "number ex:795.82", "budget": "number ex:54.3", "replies": "number ex:1819", "fee": "number ex:99.39", "followers": "number ex:45", "tags": ["string...
1
[ "keys" ]
logs
9b820dedce511acd
{ "host": "https://onyx.svc.local", "message": "slate", "level": "warn", "subtotal": 795.82, "budget": 54.3, "replies": 1819, "fee": 99.39, "followers": 45, "tags": [ "sale" ] }
train
the keys whose value is false
{"sync": false, "autosave": true, "bluetooth": false, "telemetry": true, "beta": false}
raw
to_entries | map(select(.value | not) | .key)
[ [ "sync", "bluetooth", "beta" ] ]
<|request|> the keys whose value is false <|input|> {"sync": false, "autosave": true, "bluetooth": false, "telemetry": true, "beta": false} <|program|> to_entries | map(select(.value | not) | .key)<|end|>
3
[ "entries", "filter" ]
flags_bool
2adc677a26cc85d0
{ "sync": false, "autosave": true, "bluetooth": false, "telemetry": true, "beta": false }
train
the values that end with .csv
["delta.csv", "ember.csv", "delta.md"]
raw
map(select(endswith(".csv")))
[ [ "delta.csv", "ember.csv" ] ]
<|request|> the values that end with .csv <|input|> ["delta.csv", "ember.csv", "delta.md"] <|program|> map(select(endswith(".csv")))<|end|>
2
[ "filter", "string" ]
primitive
7b969f1ab407d665
[ "delta.csv", "ember.csv", "delta.md" ]
train
which log entry has the lowest avg cost
[{"trace_id": "string ex:\"110438b7dc5e\"", "message": "string ex:\"crimson\"", "duration_ms": "number ex:19803", "fare": "number ex:652.12", "avg_cost": "number ex:581.62", "shipped": "bool", "region": "string ex:\"us-east\"", "summary": "string ex:\"crimson delta horizon fa\\u2026\"", "items": [{"sku": "string ex:\"D...
shape
min_by(.avg_cost)
[ { "trace_id": "07bc0d554247", "message": "crimson indigo granite", "duration_ms": 23693, "fare": 782.16, "avg_cost": 72.57, "shipped": false, "region": "eu-central", "summary": "indigo raven horizon", "items": [ { "sku": "F288-KELP", "qty": 5 }, ...
<|request|> which log entry has the lowest avg cost <|input|> [{"trace_id": "string ex:\"110438b7dc5e\"", "message": "string ex:\"crimson\"", "duration_ms": "number ex:19803", "fare": "number ex:652.12", "avg_cost": "number ex:581.62", "shipped": "bool", "region": "string ex:\"us-east\"", "summary": "string ex:\"crimso...
2
[ "min_by" ]
logs
88cc88d239971c50
[ { "trace_id": "110438b7dc5e", "message": "crimson", "duration_ms": 19803, "fare": 652.12, "avg_cost": 581.62, "shipped": false, "region": "us-east", "summary": "crimson delta horizon falcon onyx", "items": [ { "sku": "D935-INDIGO", "qty": 8 }, { ...
train
count of readings where list latitude >= 2567.38
[{"sensor_id": "horizon-429", "result": "flaky", "salary": 5.15, "weekly_shares": 86, "list_latitude": 2567.38, "max_attempts": 2, "revenue": 68.46}, {"sensor_id": "kelp-483", "result": "skipped", "salary": 68.76, "weekly_shares": 23, "list_latitude": 2883.77, "max_attempts": 16, "revenue": 54.6}, {"sensor_id": "falcon...
raw
[.[] | select(.list_latitude >= 2567.38)] | length
[ 2 ]
<|request|> count of readings where list latitude >= 2567.38 <|input|> [{"sensor_id": "horizon-429", "result": "flaky", "salary": 5.15, "weekly_shares": 86, "list_latitude": 2567.38, "max_attempts": 2, "revenue": 68.46}, {"sensor_id": "kelp-483", "result": "skipped", "salary": 68.76, "weekly_shares": 23, "list_latitude...
1
[ "count", "filter" ]
iot
96e2a2efd23a4afe
[ { "sensor_id": "horizon-429", "result": "flaky", "salary": 5.15, "weekly_shares": 86, "list_latitude": 2567.38, "max_attempts": 2, "revenue": 68.46 }, { "sensor_id": "kelp-483", "result": "skipped", "salary": 68.76, "weekly_shares": 23, "list_latitude": 2883.77, ...
train
the compact view flag
{"dark_mode": "bool", "auto_update": "bool", "sync": "bool", "location": "bool", "compact_view": "bool", "notifications": "bool"}
shape
.compact_view
[ true ]
<|request|> the compact view flag <|input|> {"dark_mode": "bool", "auto_update": "bool", "sync": "bool", "location": "bool", "compact_view": "bool", "notifications": "bool"} <|program|> .compact_view<|end|>
3
[ "path" ]
flags_bool
085f6ad2f3f4b4c9
{ "dark_mode": true, "auto_update": false, "sync": true, "location": false, "compact_view": true, "notifications": true }
train
what fields are in this object
{"pending": "bool", "premium": "bool", "longitude": "number ex:37.64", "min_budget": "number ex:181.39", "roles": ["string ex:\"viewer\"", "\u00d72"]}
shape
keys
[ [ "longitude", "min_budget", "pending", "premium", "roles" ] ]
<|request|> what fields are in this object <|input|> {"pending": "bool", "premium": "bool", "longitude": "number ex:37.64", "min_budget": "number ex:181.39", "roles": ["string ex:\"viewer\"", "\u00d72"]} <|program|> keys<|end|>
1
[ "keys" ]
finance
4a89dc4d1b32e50e
{ "pending": false, "premium": true, "longitude": 37.64, "min_budget": 181.39, "roles": [ "viewer", "billing" ] }
train
get id for every user where status equal to shipped
{"archived": "bool", "homepage": "string ex:\"https://nickel.svc.local\"", "name": "string ex:\"indigo-109\"", "battery": "number ex:5", "final_weight": "number ex:99.16", "min_level": "number ex:20", "members": [{"id": "number ex:7633", "nickname": "string ex:\"horizon alpha\"", "avg_fee": "number ex:3163.61", "public...
shape
.members | map(select(.status == "shipped")) | map(.id)
[ [ 7633 ] ]
<|request|> get id for every user where status equal to shipped <|input|> {"archived": "bool", "homepage": "string ex:\"https://nickel.svc.local\"", "name": "string ex:\"indigo-109\"", "battery": "number ex:5", "final_weight": "number ex:99.16", "min_level": "number ex:20", "members": [{"id": "number ex:7633", "nicknam...
1
[ "filter", "pluck" ]
repos
f1dbf44704be4eaa
{ "archived": true, "homepage": "https://nickel.svc.local", "name": "indigo-109", "battery": 5, "final_weight": 99.16, "min_level": 20, "members": [ { "id": 7633, "nickname": "horizon alpha", "avg_fee": 3163.61, "public": true, "priority": 6, "urgent": false, ...
train
flatten them all
[[56, 66, 81], [57, 33], [6, 91, 10, 73], [69, 8, 64, 16], [30, 67, 39, 22]]
raw
flatten
[ [ 56, 66, 81, 57, 33, 6, 91, 10, 73, 69, 8, 64, 16, 30, 67, 39, 22 ] ]
<|request|> flatten them all <|input|> [[56, 66, 81], [57, 33], [6, 91, 10, 73], [69, 8, 64, 16], [30, 67, 39, 22]] <|program|> flatten<|end|>
2
[ "flatten" ]
primitive
6a134ef4ede9e5f9
[ [ 56, 66, 81 ], [ 57, 33 ], [ 6, 91, 10, 73 ], [ 69, 8, 64, 16 ], [ 30, 67, 39, 22 ] ]
train
transactions with avg deposit from 43.23 to 74.77 inclusive
{"language": "string ex:\"Go\"", "category": "string ex:\"education\"", "capacity": "number ex:45", "subtotal": "number ex:30.81", "weight": "number ex:339.12", "unit_budget": "number ex:18.83", "list_weight": "number ex:83.35", "transactions": [{"date": "string ex:\"2026-10-09\"", "score": "number ex:142496", "min_rep...
shape
.transactions | map(select(.avg_deposit >= 43.23 and .avg_deposit <= 74.77))
[ [ { "date": "2026-10-09", "score": 142496, "min_replies": 54, "commit": "18d9b7ced1f7", "featured": true, "priority": 23466, "avg_deposit": 43.23, "scores": [ 31, 79, 95, 18 ] }, { "date": "2025-11-05", "sc...
<|request|> transactions with avg deposit from 43.23 to 74.77 inclusive <|input|> {"language": "string ex:\"Go\"", "category": "string ex:\"education\"", "capacity": "number ex:45", "subtotal": "number ex:30.81", "weight": "number ex:339.12", "unit_budget": "number ex:18.83", "list_weight": "number ex:83.35", "transact...
3
[ "filter" ]
repos
c5a9c24d4e99e6c3
{ "language": "Go", "category": "education", "capacity": 45, "subtotal": 30.81, "weight": 339.12, "unit_budget": 18.83, "list_weight": 83.35, "transactions": [ { "date": "2026-10-09", "score": 142496, "min_replies": 54, "commit": "18d9b7ced1f7", "featured": true, ...
train
total unit temperature across orders
[{"coupon": "meadow-566", "discount": 32.02, "starred": false, "team": "blue", "plan": "enterprise", "unit_temperature": 89.33, "website": "https://alpha.example.com", "currency": "GBP", "title": "onyx granite horizon harbor"}, {"coupon": "harbor-51", "discount": 28.72, "starred": true, "team": "south", "plan": "team",...
raw
[.[] | .unit_temperature] | add
[ 397.05 ]
<|request|> total unit temperature across orders <|input|> [{"coupon": "meadow-566", "discount": 32.02, "starred": false, "team": "blue", "plan": "enterprise", "unit_temperature": 89.33, "website": "https://alpha.example.com", "currency": "GBP", "title": "onyx granite horizon harbor"}, {"coupon": "harbor-51", "discount...
2
[ "sum" ]
commerce
49661a795b0d92c0
[ { "coupon": "meadow-566", "discount": 32.02, "starred": false, "team": "blue", "plan": "enterprise", "unit_temperature": 89.33, "website": "https://alpha.example.com", "currency": "GBP", "title": "onyx granite horizon harbor" }, { "coupon": "harbor-51", "discount": 28...
train
the batterys of the 3 transactions with the lowest avg fee
[{"category": "string ex:\"utilities\"", "account": {"iban": "string ex:\"delta-857\"", "owner": "string ex:\"Liam Chen\""}, "pending": "bool", "battery": "number ex:2505", "fare": "number ex:33.48", "avg_fee": "number ex:26.62"}, "\u00d76"]
shape
sort_by(.avg_fee) | .[0:3] | map(.battery)
[ [ 3853, 2505, 736 ] ]
<|request|> the batterys of the 3 transactions with the lowest avg fee <|input|> [{"category": "string ex:\"utilities\"", "account": {"iban": "string ex:\"delta-857\"", "owner": "string ex:\"Liam Chen\""}, "pending": "bool", "battery": "number ex:2505", "fare": "number ex:33.48", "avg_fee": "number ex:26.62"}, "\u00d76...
3
[ "sort", "slice", "pluck" ]
finance
b76fdc83c1505a6c
[ { "category": "utilities", "account": { "iban": "delta-857", "owner": "Liam Chen" }, "pending": true, "battery": 2505, "fare": 33.48, "avg_fee": 26.62 }, { "category": "utilities", "account": { "iban": "harbor-114", "owner": "Tara Okafor" }, "p...
train
min and max tax
[{"account": {"iban": "string ex:\"horizon-199\"", "owner": "string ex:\"Rosa Dubois\""}, "fee": "number ex:16.27", "tax": "number ex:510.11", "manager": "string ex:\"Yuki Silva\"", "total": "number ex:22.86", "peak_latency": "number ex:15", "final_budget": "number ex:185.73"}, "\u00d77"]
shape
{min: (map(.tax) | min), max: (map(.tax) | max)}
[ { "min": 255.14, "max": 832.03 } ]
<|request|> min and max tax <|input|> [{"account": {"iban": "string ex:\"horizon-199\"", "owner": "string ex:\"Rosa Dubois\""}, "fee": "number ex:16.27", "tax": "number ex:510.11", "manager": "string ex:\"Yuki Silva\"", "total": "number ex:22.86", "peak_latency": "number ex:15", "final_budget": "number ex:185.73"}, "\u...
3
[ "object", "min", "max" ]
finance
3d01643b39d7bc94
[ { "account": { "iban": "horizon-199", "owner": "Rosa Dubois" }, "fee": 16.27, "tax": 510.11, "manager": "Yuki Silva", "total": 22.86, "peak_latency": 15, "final_budget": 185.73 }, { "account": { "iban": "crimson-788", "owner": "Diego Martin" }, ...
train
the average of the values in the object
{"brightness": 143, "page_size": 63, "height": 21}
raw
[.[]] | add / length
[ 75.6666666667 ]
<|request|> the average of the values in the object <|input|> {"brightness": 143, "page_size": 63, "height": 21} <|program|> [.[]] | add / length<|end|>
3
[ "avg", "object" ]
settings_num
df59d736caf62ddf
{ "brightness": 143, "page_size": 63, "height": 21 }
train
what percentage of orders are status is refunded
[{"gift": "bool", "discount": "number ex:29.44", "status": "string ex:\"refunded\"", "retries": "number ex:18", "completed": "bool", "region": "string ex:\"Berlin\"", "role": "string ex:\"viewer\"", "department": "string ex:\"eng\"", "website": "string ex:\"https://delta.svc.local\"", "description": "string ex:\"delta ...
shape
(map(select(.status == "refunded")) | length) * 100 / length
[ 37.5 ]
<|request|> what percentage of orders are status is refunded <|input|> [{"gift": "bool", "discount": "number ex:29.44", "status": "string ex:\"refunded\"", "retries": "number ex:18", "completed": "bool", "region": "string ex:\"Berlin\"", "role": "string ex:\"viewer\"", "department": "string ex:\"eng\"", "website": "str...
4
[ "count", "arith" ]
commerce
8624999b75a95e6a
[ { "gift": false, "discount": 29.44, "status": "refunded", "retries": 18, "completed": false, "region": "Berlin", "role": "viewer", "department": "eng", "website": "https://delta.svc.local", "description": "delta onyx falcon topaz" }, { "gift": false, "discount": 1...
train
the object as key/value pairs
{"result": "failure", "tests_failed": 197, "tests_passed": 738, "uuid": "cc952b5026dd", "location": "Lyon", "notify_email": "zoe.moreau@mail.dev", "current_battery": 2664, "subscribed": false}
raw
to_entries
[ [ { "key": "result", "value": "failure" }, { "key": "tests_failed", "value": 197 }, { "key": "tests_passed", "value": 738 }, { "key": "uuid", "value": "cc952b5026dd" }, { "key": "location", "value": "Lyon" }, { ...
<|request|> the object as key/value pairs <|input|> {"result": "failure", "tests_failed": 197, "tests_passed": 738, "uuid": "cc952b5026dd", "location": "Lyon", "notify_email": "zoe.moreau@mail.dev", "current_battery": 2664, "subscribed": false} <|program|> to_entries<|end|>
2
[ "entries", "object" ]
ci
c3daaa14540bfcbf
{ "result": "failure", "tests_failed": 197, "tests_passed": 738, "uuid": "cc952b5026dd", "location": "Lyon", "notify_email": "zoe.moreau@mail.dev", "current_battery": 2664, "subscribed": false }
train
min and max in one object
[20, 16, 8, 20, 2]
raw
{min: min, max: max}
[ { "min": 2, "max": 20 } ]
<|request|> min and max in one object <|input|> [20, 16, 8, 20, 2] <|program|> {min: min, max: max}<|end|>
2
[ "object", "min", "max" ]
primitive
b9f61d458012e2ba
[ 20, 16, 8, 20, 2 ]
train
number of repositories where retries 3844
[{"archived": true, "retries": 3984, "peak_votes": 145572, "final_balance": 77.75, "description": "topaz nickel falcon lumen slate quartz"}, {"archived": true, "retries": 3365, "peak_votes": 118887, "final_balance": 81.55, "description": "delta slate crimson indigo harbor"}, {"archived": true, "retries": 3651, "peak_vo...
raw
map(select(.retries == 3844)) | length
[ 1 ]
<|request|> number of repositories where retries 3844 <|input|> [{"archived": true, "retries": 3984, "peak_votes": 145572, "final_balance": 77.75, "description": "topaz nickel falcon lumen slate quartz"}, {"archived": true, "retries": 3365, "peak_votes": 118887, "final_balance": 81.55, "description": "delta slate crims...
1
[ "count", "filter" ]
repos
ba11f707117a2115
[ { "archived": true, "retries": 3984, "peak_votes": 145572, "final_balance": 77.75, "description": "topaz nickel falcon lumen slate quartz" }, { "archived": true, "retries": 3365, "peak_votes": 118887, "final_balance": 81.55, "description": "delta slate crimson indigo harb...
train
the key of the pair with the highest value
[{"key": "horizon", "value": 61}, {"key": "lumen crimson", "value": 113}, {"key": "topaz", "value": 61}, {"key": "delta", "value": 45}, {"key": "onyx crimson jasper", "value": 2}]
raw
max_by(.value) | .key
[ "lumen crimson" ]
<|request|> the key of the pair with the highest value <|input|> [{"key": "horizon", "value": 61}, {"key": "lumen crimson", "value": 113}, {"key": "topaz", "value": 61}, {"key": "delta", "value": 45}, {"key": "onyx crimson jasper", "value": 2}] <|program|> max_by(.value) | .key<|end|>
3
[ "max", "pluck" ]
primitive
4864ad1f051394a1
[ { "key": "horizon", "value": 61 }, { "key": "lumen crimson", "value": 113 }, { "key": "topaz", "value": 61 }, { "key": "delta", "value": 45 }, { "key": "onyx crimson jasper", "value": 2 } ]
train
the mean setting value
{"workers": "number ex:20", "retries": "number ex:183", "timeout": "number ex:87"}
shape
[.[]] | add / length
[ 96.6666666667 ]
<|request|> the mean setting value <|input|> {"workers": "number ex:20", "retries": "number ex:183", "timeout": "number ex:87"} <|program|> [.[]] | add / length<|end|>
3
[ "avg", "object" ]
settings_num
322f8930c2272559
{ "workers": 20, "retries": 183, "timeout": 87 }
train
flatten them all
[[4564, 4882], [1463, 1168], [43, 3366, 3295], [4697, 3778]]
raw
flatten
[ [ 4564, 4882, 1463, 1168, 43, 3366, 3295, 4697, 3778 ] ]
<|request|> flatten them all <|input|> [[4564, 4882], [1463, 1168], [43, 3366, 3295], [4697, 3778]] <|program|> flatten<|end|>
2
[ "flatten" ]
primitive
6a134ef4ede9e5f9
[ [ 4564, 4882 ], [ 1463, 1168 ], [ 43, 3366, 3295 ], [ 4697, 3778 ] ]
train
the character count
"/raven/meadow/falcon"
raw
length
[ 20 ]
<|request|> the character count <|input|> "/raven/meadow/falcon" <|program|> length<|end|>
2
[ "string" ]
primitive
a3b8bd47cfccd869
"/raven/meadow/falcon"
train
decrease every build's tests failed by 5
[{"tests_failed": "number ex:75", "peak_followers": "number ex:2278", "size": "number ex:14", "amount": "number ex:642.37", "followers": "number ex:194", "votes": "number ex:26", "priority": "string ex:\"urgent\""}, "\u00d77"]
shape
map(.tests_failed -= 5)
[ [ { "tests_failed": 70, "peak_followers": 2278, "size": 14, "amount": 642.37, "followers": 194, "votes": 26, "priority": "urgent" }, { "tests_failed": 20, "peak_followers": 1583, "size": 33, "amount": 839.15, "followers": 949, ...
<|request|> decrease every build's tests failed by 5 <|input|> [{"tests_failed": "number ex:75", "peak_followers": "number ex:2278", "size": "number ex:14", "amount": "number ex:642.37", "followers": "number ex:194", "votes": "number ex:26", "priority": "string ex:\"urgent\""}, "\u00d77"] <|program|> map(.tests_failed ...
3
[ "update" ]
ci
ba056084505b7ebd
[ { "tests_failed": 75, "peak_followers": 2278, "size": 14, "amount": 642.37, "followers": 194, "votes": 26, "priority": "urgent" }, { "tests_failed": 25, "peak_followers": 1583, "size": 33, "amount": 839.15, "followers": 949, "votes": 31, "priority": "high"...
train
the object's values as a list
{"location": {"room": "string ex:\"falcon kelp ember\"", "floor": "number ex:30"}, "latitude": "number ex:4036.09", "comment": "string ex:\"horizon topaz raven lume\\u2026\"", "subject": "string ex:\"crimson\"", "weekly_streak": "number ex:2471", "tags": ["string ex:\"fresh\"", "\u00d73"], "description": "string ex:\"d...
shape
[.[]]
[ [ { "room": "falcon kelp ember", "floor": 30 }, 4036.09, "horizon topaz raven lumen onyx alpha", "crimson", 2471, [ "fresh", "fragile", "new" ], "delta lumen quartz kelp" ] ]
<|request|> the object's values as a list <|input|> {"location": {"room": "string ex:\"falcon kelp ember\"", "floor": "number ex:30"}, "latitude": "number ex:4036.09", "comment": "string ex:\"horizon topaz raven lume\\u2026\"", "subject": "string ex:\"crimson\"", "weekly_streak": "number ex:2471", "tags": ["string ex:\...
2
[ "values", "object" ]
iot
00759c47eb080ccf
{ "location": { "room": "falcon kelp ember", "floor": 30 }, "latitude": 4036.09, "comment": "horizon topaz raven lumen onyx alpha", "subject": "crimson", "weekly_streak": 2471, "tags": [ "fresh", "fragile", "new" ], "description": "delta lumen quartz kelp" }
train
get the shares of every build
[{"tests_failed": "number ex:58", "commit": "string ex:\"9273097c5779\"", "temperature": "number ex:894.47", "retries": "number ex:3990", "shares": "number ex:37", "min_replies": "number ex:14", "scores": ["number ex:33", "\u00d72"], "description": "string ex:\"alpha horizon raven jasp\\u2026\""}, "\u00d76"]
shape
[.[] | .shares]
[ [ 37, 5, 74, 75, 65, 44 ] ]
<|request|> get the shares of every build <|input|> [{"tests_failed": "number ex:58", "commit": "string ex:\"9273097c5779\"", "temperature": "number ex:894.47", "retries": "number ex:3990", "shares": "number ex:37", "min_replies": "number ex:14", "scores": ["number ex:33", "\u00d72"], "description": "string ex:\"alpha ...
1
[ "pluck" ]
ci
4d3fb315075d26e9
[ { "tests_failed": 58, "commit": "9273097c5779", "temperature": 894.47, "retries": 3990, "shares": 37, "min_replies": 14, "scores": [ 33, 84 ], "description": "alpha horizon raven jasper indigo nickel" }, { "tests_failed": 176, "commit": "f1a247fb961f", ...
train
which user has the lowest fee
[{"last_login": "string ex:\"2025-12-05\"", "name": "string ex:\"Tara Tanaka\"", "fee": "number ex:1788.98", "archived": "bool", "max_rate": "number ex:2779.71", "verified": "bool", "retries": "number ex:4", "scores": ["number ex:80", "\u00d72"], "description": "string ex:\"granite harbor kelp\""}, "\u00d78"]
shape
min_by(.fee)
[ { "last_login": "2024-09-06", "name": "Alice Okafor", "fee": 190.19, "archived": false, "max_rate": 1089.73, "verified": true, "retries": 17, "scores": [ 53, 9 ], "description": "jasper topaz onyx indigo pixel" } ]
<|request|> which user has the lowest fee <|input|> [{"last_login": "string ex:\"2025-12-05\"", "name": "string ex:\"Tara Tanaka\"", "fee": "number ex:1788.98", "archived": "bool", "max_rate": "number ex:2779.71", "verified": "bool", "retries": "number ex:4", "scores": ["number ex:80", "\u00d72"], "description": "strin...
2
[ "min_by" ]
users
fd5495b44bfe7812
[ { "last_login": "2025-12-05", "name": "Tara Tanaka", "fee": 1788.98, "archived": false, "max_rate": 2779.71, "verified": false, "retries": 4, "scores": [ 80, 10 ], "description": "granite harbor kelp" }, { "last_login": "2024-09-06", "name": "Alice Oka...
train
the largest value in the object
{"page_size": "number ex:170", "max_connections": "number ex:70", "port": "number ex:6", "width": "number ex:49", "retries": "number ex:172"}
shape
[.[]] | max
[ 172 ]
<|request|> the largest value in the object <|input|> {"page_size": "number ex:170", "max_connections": "number ex:70", "port": "number ex:6", "width": "number ex:49", "retries": "number ex:172"} <|program|> [.[]] | max<|end|>
3
[ "max", "object" ]
settings_num
f3ef2d17673c4fb2
{ "page_size": 170, "max_connections": 70, "port": 6, "width": 49, "retries": 172 }
train
each reading without online
[{"firmware": "ember-340", "battery": 99, "online": true, "timestamp": "2026-11-17", "currency": "EUR", "latitude": 740.13}, {"firmware": "delta-96", "battery": 25, "online": false, "timestamp": "2024-01-26", "currency": "USD", "latitude": 607.17}, {"battery": 50, "online": false, "timestamp": "2025-12-08", "currency":...
raw
map(del(.online))
[ [ { "firmware": "ember-340", "battery": 99, "timestamp": "2026-11-17", "currency": "EUR", "latitude": 740.13 }, { "firmware": "delta-96", "battery": 25, "timestamp": "2024-01-26", "currency": "USD", "latitude": 607.17 }, { "batter...
<|request|> each reading without online <|input|> [{"firmware": "ember-340", "battery": 99, "online": true, "timestamp": "2026-11-17", "currency": "EUR", "latitude": 740.13}, {"firmware": "delta-96", "battery": 25, "online": false, "timestamp": "2024-01-26", "currency": "USD", "latitude": 607.17}, {"battery": 50, "onli...
2
[ "del", "reshape" ]
iot
d1ea1e969cb41742
[ { "firmware": "ember-340", "battery": 99, "online": true, "timestamp": "2026-11-17", "currency": "EUR", "latitude": 740.13 }, { "firmware": "delta-96", "battery": 25, "online": false, "timestamp": "2024-01-26", "currency": "USD", "latitude": 607.17 }, { "b...
train
the keys whose value is false
{"telemetry": false, "sync": true, "analytics": false, "auto_update": false, "bluetooth": true}
raw
to_entries | map(select(.value | not) | .key)
[ [ "telemetry", "analytics", "auto_update" ] ]
<|request|> the keys whose value is false <|input|> {"telemetry": false, "sync": true, "analytics": false, "auto_update": false, "bluetooth": true} <|program|> to_entries | map(select(.value | not) | .key)<|end|>
3
[ "entries", "filter" ]
flags_bool
84f0dd094ec3a754
{ "telemetry": false, "sync": true, "analytics": false, "auto_update": false, "bluetooth": true }
train
just the values
{"brightness": 177, "margin": 124, "quality": 129, "height": 193, "cache_size": 116}
raw
[.[]]
[ [ 177, 124, 129, 193, 116 ] ]
<|request|> just the values <|input|> {"brightness": 177, "margin": 124, "quality": 129, "height": 193, "cache_size": 116} <|program|> [.[]]<|end|>
3
[ "values", "object" ]
settings_num
f807b759ef21539c
{ "brightness": 177, "margin": 124, "quality": 129, "height": 193, "cache_size": 116 }
train
mean gross deposit across builds
{"name": "string ex:\"delta-182\"", "urgent": "bool", "replies": "number ex:1261", "sku": "string ex:\"onyx-720\"", "role": "string ex:\"viewer\"", "start_date": "string ex:\"2025-08-24\"", "latitude": "number ex:37.76", "builds": [{"commit": "string ex:\"db0d1a230888\"", "branch": "string ex:\"jasper-118\"", "gross_de...
shape
.builds | map(.gross_deposit) | add / length
[ 42.5266666667 ]
<|request|> mean gross deposit across builds <|input|> {"name": "string ex:\"delta-182\"", "urgent": "bool", "replies": "number ex:1261", "sku": "string ex:\"onyx-720\"", "role": "string ex:\"viewer\"", "start_date": "string ex:\"2025-08-24\"", "latitude": "number ex:37.76", "builds": [{"commit": "string ex:\"db0d1a230...
2
[ "arith", "avg" ]
repos
6719789300f0fbfb
{ "name": "delta-182", "urgent": true, "replies": 1261, "sku": "onyx-720", "role": "viewer", "start_date": "2025-08-24", "latitude": 37.76, "builds": [ { "commit": "db0d1a230888", "branch": "jasper-118", "gross_deposit": 79, "replies": 1767, "list_profit": 51.59, ...
train
filter to readings where daily votes <= 135432
[{"temperature": "number ex:-19.8", "published_at": "string ex:\"2024-02-28\"", "revenue": "number ex:646.21", "daily_votes": "number ex:186529", "labels": ["string ex:\"blocked\"", "\u00d72"]}, "\u00d76"]
shape
map(select(.daily_votes <= 135432))
[ [ { "temperature": 39.28, "published_at": "2023-05-21", "revenue": 296.76, "daily_votes": 12719, "labels": [ "blocked", "enhancement", "enhancement" ] }, { "temperature": -4.39, "published_at": "2026-08-08", "revenue": 450.47,...
<|request|> filter to readings where daily votes <= 135432 <|input|> [{"temperature": "number ex:-19.8", "published_at": "string ex:\"2024-02-28\"", "revenue": "number ex:646.21", "daily_votes": "number ex:186529", "labels": ["string ex:\"blocked\"", "\u00d72"]}, "\u00d76"] <|program|> map(select(.daily_votes <= 135432...
1
[ "filter" ]
iot
04d6c661028f67df
[ { "temperature": -19.8, "published_at": "2024-02-28", "revenue": 646.21, "daily_votes": 186529, "labels": [ "blocked", "regression" ] }, { "temperature": 39.28, "published_at": "2023-05-21", "revenue": 296.76, "daily_votes": 12719, "labels": [ "block...
train
split it on slashes
"/jasper/quartz/onyx"
raw
split("/")
[ [ "", "jasper", "quartz", "onyx" ] ]
<|request|> split it on slashes <|input|> "/jasper/quartz/onyx" <|program|> split("/")<|end|>
2
[ "string", "split" ]
primitive
a3b8bd47cfccd869
"/jasper/quartz/onyx"
train
show all field names
{"active": "bool", "last_login": "string ex:\"2023-05-04\"", "nickname": "string ex:\"topaz horizon\"", "status": "string ex:\"refunded\"", "profit": "number ex:2999.05", "archived": "bool", "total_rank": "number ex:14", "min_position": "number ex:4", "builds": [{"duration_sec": "number ex:2767", "total_deposit": "numb...
shape
keys
[ [ "active", "archived", "builds", "last_login", "min_position", "nickname", "profit", "status", "total_rank" ] ]
<|request|> show all field names <|input|> {"active": "bool", "last_login": "string ex:\"2023-05-04\"", "nickname": "string ex:\"topaz horizon\"", "status": "string ex:\"refunded\"", "profit": "number ex:2999.05", "archived": "bool", "total_rank": "number ex:14", "min_position": "number ex:4", "builds": [{"duration_sec...
1
[ "keys" ]
users
92981da46b4eb797
{ "active": false, "last_login": "2023-05-04", "nickname": "topaz horizon", "status": "refunded", "profit": 2999.05, "archived": true, "total_rank": 14, "min_position": 4, "builds": [ { "duration_sec": 2767, "total_deposit": 3693.56, "department": "marketing", "priority": "...
train
repositories with owner is quartz-611
{"humidity": "number ex:12.92", "gift": "bool", "category": "string ex:\"rent\"", "points": "number ex:4115", "shares": "number ex:16", "level": "string ex:\"trace\"", "seats": "number ex:60", "roles": ["string ex:\"editor\"", "\u00d71"], "description": "string ex:\"falcon crimson meadow qu\\u2026\"", "repos": [{"forks...
shape
.repos | map(select(.owner == "quartz-611"))
[ [ { "forks": 26918, "name": "horizon-566", "owner": "quartz-611", "unit_latitude": 50.13, "retries": 184583, "charge": 798.23, "price": 99.34, "score": 188462, "tags": [ "fragile", "new" ] } ] ]
<|request|> repositories with owner is quartz-611 <|input|> {"humidity": "number ex:12.92", "gift": "bool", "category": "string ex:\"rent\"", "points": "number ex:4115", "shares": "number ex:16", "level": "string ex:\"trace\"", "seats": "number ex:60", "roles": ["string ex:\"editor\"", "\u00d71"], "description": "strin...
1
[ "filter" ]
iot
98e0dac910a39a93
{ "humidity": 12.92, "gift": false, "category": "rent", "points": 4115, "shares": 16, "level": "trace", "seats": 60, "roles": [ "editor" ], "description": "falcon crimson meadow quartz", "repos": [ { "forks": 26918, "name": "horizon-566", "owner": "quartz-611", "uni...
train
the features that are turned on
{"autosave": true, "dark_mode": true, "auto_update": true}
raw
to_entries | map(select(.value) | .key)
[ [ "autosave", "dark_mode", "auto_update" ] ]
<|request|> the features that are turned on <|input|> {"autosave": true, "dark_mode": true, "auto_update": true} <|program|> to_entries | map(select(.value) | .key)<|end|>
3
[ "entries", "filter" ]
flags_bool
94380590429b04f9
{ "autosave": true, "dark_mode": true, "auto_update": true }
train
End of preview. Expand in Data Studio

nl2jq

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

A fully synthetic, execution-verified dataset for translating natural language into jq programs. The first public dataset for this task.

Each row

{
  "request": "total spend per customer, paid orders only",
  "context": "[{\"id\": 1, \"customer\": {\"name\": \"Alice\"}, ...}]",
  "context_mode": "raw",
  "program": "map(select(.status==\"paid\")) | group_by(.customer.name) | ...",
  "expected_output": [[{"customer": "Alice", "total": 62}]],
  "input_doc": {"...": "the JSON the program was verified against"},
  "tags": ["filter", "group_by", "sum"],
  "tier": 2,
  "domain": "commerce",
  "split": "train"
}
  • context is what a model should condition on: either a raw prefix of the JSON (context_mode: raw) or a compact shape sketch for large inputs (shape).
  • program is guaranteed to run under jq 1.7.1 and produce expected_output on input_doc.

Construction

Schema → documents → type-directed jq program → execute → filter degenerate/erroring programs → behavioral dedup → natural-language description (templates + paraphrases). Validation holds out entire schema families and program templates, so models are tested on compositional generalization rather than memorization. Full method in the project spec; generation code in the project repo.

Statistics

Train rows 1,905,710
Validation rows 75,981
Schema families ~1.27M distinct; 63,105 held out for validation, 0 train/val overlap
Field vocabulary 500+ field names incl. compound names (unit_price, daily_stock) so models must copy field names from the input rather than memorize a fixed set
Top-level shapes arrays of records, single objects, homogeneous number/bool objects, scalar/string/nested arrays, key-value pairs
Context mode ~60% raw prefix / ~40% shape sketch on train, ~50/50 on val (raw is forced for primitive shapes)
Verification 100% executed under jq 1.7.1; degenerate/erroring/constant-output programs dropped

Every program is behaviorally deduplicated (programs with identical outputs across the sampled documents are collapsed), and validation holds out entire schema families, so a model cannot score on val by memorizing a family seen in train.

Versions & lineage (which data trained which model)

This published snapshot is the v5 generation (seed 4000). The shipped models were trained on later generations, reproducible from the project repo's pipeline code — they are not subsets of this snapshot:

generation seed field-name recipe trained models (shipped weights)
v5 (this snapshot) 4000 fixed 687-name vocabulary superseded v5 fine-tunes only
v6 6000 per-example-unique names (curated components) nl2jq-qwen3-0.6b
v7 7000 unique names from 34.8k real-text subword components nl2jq-40m, nl2jq-qwen3.5-2b

Reproduction: python -m pipeline.build_parallel --n 2000000 --seed <seed> with the repo at the released commit. Fine-tune subsets (150k rows) are deterministic — an evenly-spaced sample over the generated train split (train/finetune_qwen.py --limit 150000). One caveat for byte-exact v7 regeneration: pipeline/wordpool_v7.json was profanity-filtered after the v7 models were trained (documented in the file itself); new corpora should use the filtered pool.

Verifying a row yourself

jq -c '<program>' <<< '<input_doc>'   # equals expected_output

License

CC BY 4.0. Contains no scraped or copyrighted content — schemas, values, and programs are all generated. Field-name vocabularies are drawn from public API shapes (structure only).

Code: github.com/gauthierpiarrette/nl2jq

Downloads last month
26

Models trained or fine-tuned on gauthierpiarrette/nl2jq

Collection including gauthierpiarrette/nl2jq