id
stringlengths
16
19
request
stringlengths
21
206
program
stringlengths
6
211
input_text
stringlengths
40
477
expected_output
stringlengths
2
276
validation_input
stringlengths
39
469
validation_output
stringlengths
0
298
family
stringclasses
39 values
difficulty
int64
1
3
split
stringclasses
1 value
source
stringclasses
3 values
license
stringclasses
1 value
paraphrase_of
stringlengths
16
16
⌀
paraphrase_model
stringclasses
1 value
awkweave-0003440-p1
Display only the first three records.
NR <= 3
farah 58 amber jules 47 juniper bruno 111 harbor jules 27 amber alice 4 harbor jules 33 indigo lina 76 cobalt
farah 58 amber jules 47 juniper bruno 111 harbor
hana 90 ember eli 37 juniper kim 3 ember dina 28 ember alice 9 grove eli 112 grove jules 60 amber ivan 118 amber kim 82 grove jules 12 fable
hana 90 ember eli 37 juniper kim 3 ember
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003440
qwen/qwen3.7-plus
awkweave-0003441
Skip the first line and print every remaining line unchanged.
NR > 1
hana 76 birch kim 115 cobalt kim 79 grove bruno 93 cobalt bruno 88 amber bruno 117 juniper farah 107 fable
kim 115 cobalt kim 79 grove bruno 93 cobalt bruno 88 amber bruno 117 juniper farah 107 fable
farah 22 juniper chen 77 indigo farah 101 birch chen 27 fable farah 117 fable eli 26 ember chen 35 birch bruno 96 cobalt
chen 77 indigo farah 101 birch chen 27 fable farah 117 fable eli 26 ember chen 35 birch bruno 96 cobalt
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003441-p1
Omit the first line and print all subsequent lines without modification.
NR > 1
hana 76 birch kim 115 cobalt kim 79 grove bruno 93 cobalt bruno 88 amber bruno 117 juniper farah 107 fable
kim 115 cobalt kim 79 grove bruno 93 cobalt bruno 88 amber bruno 117 juniper farah 107 fable
farah 22 juniper chen 77 indigo farah 101 birch chen 27 fable farah 117 fable eli 26 ember chen 35 birch bruno 96 cobalt
chen 77 indigo farah 101 birch chen 27 fable farah 117 fable eli 26 ember chen 35 birch bruno 96 cobalt
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003441
qwen/qwen3.7-plus
awkweave-0003442
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
chen ready 12 ivan paused 101 dina pending 46 farah failed 88 gus paused 22 eli ready 10 chen active 78
1
dina active 61 bruno closed 74 lina ready 30 jules failed 91 hana pending 31 chen failed 105 gus ready 102 lina closed 89 bruno ready 63
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003442-p1
Count the number of records with 'pending' in the second column; output 0 if none exist.
$2 == "pending"{n++}END{print n+0}
chen ready 12 ivan paused 101 dina pending 46 farah failed 88 gus paused 22 eli ready 10 chen active 78
1
dina active 61 bruno closed 74 lina ready 30 jules failed 91 hana pending 31 chen failed 105 gus ready 102 lina closed 89 bruno ready 63
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003442
qwen/qwen3.7-plus
awkweave-0003443
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
15 harbor hana 29 fable alice 11 birch chen 21 harbor ivan 10 birch chen 1 harbor lina 30 amber jules 21 amber dina 15 cobalt alice
153
10 grove eli 17 amber chen 13 juniper lina 21 juniper bruno 26 cobalt farah 21 fable bruno 7 ember farah 1 harbor bruno
116
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003443-p1
Compute and display the sum of integer values in the first column.
{s+=$1}END{print s+0}
15 harbor hana 29 fable alice 11 birch chen 21 harbor ivan 10 birch chen 1 harbor lina 30 amber jules 21 amber dina 15 cobalt alice
153
10 grove eli 17 amber chen 13 juniper lina 21 juniper bruno 26 cobalt farah 21 fable bruno 7 ember farah 1 harbor bruno
116
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003443
qwen/qwen3.7-plus
awkweave-0003444
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
6 farah indigo 1 ivan juniper 4 dina ember 1 lina ember 1 lina fable 14 hana ember
4.50
23 jules amber 11 eli delta 14 jules indigo 2 gus birch 30 lina indigo 28 jules ember 7 gus ember 9 eli delta
15.50
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003444-p1
Calculate the average of the first column and print it rounded to two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
6 farah indigo 1 ivan juniper 4 dina ember 1 lina ember 1 lina fable 14 hana ember
4.50
23 jules amber 11 eli delta 14 jules indigo 2 gus birch 30 lina indigo 28 jules ember 7 gus ember 9 eli delta
15.50
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003444
qwen/qwen3.7-plus
awkweave-0003445
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
alice amber 18 dina cobalt 30 eli juniper 20 gus amber 13 gus indigo 28 jules grove 3 dina birch 12 eli cobalt 23 ivan delta 10
3
gus cobalt 21 farah juniper 29 eli ember 15 eli amber 14 jules juniper 29 bruno delta 14
14
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003445-p1
Identify and print the minimum numeric value found in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
alice amber 18 dina cobalt 30 eli juniper 20 gus amber 13 gus indigo 28 jules grove 3 dina birch 12 eli cobalt 23 ivan delta 10
3
gus cobalt 21 farah juniper 29 eli ember 15 eli amber 14 jules juniper 29 bruno delta 14
14
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003445
qwen/qwen3.7-plus
awkweave-0003446
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
23 amber ivan 21 indigo farah 22 harbor farah 6 birch alice 17 cobalt alice 17 amber lina 8 grove bruno 29 ember hana 24 cobalt ivan 15 harbor bruno
29
8 birch gus 18 harbor dina 28 indigo dina 19 cobalt farah 21 juniper ivan 20 cobalt chen
28
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003446-p1
Identify and print the maximum numeric value found in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
23 amber ivan 21 indigo farah 22 harbor farah 6 birch alice 17 cobalt alice 17 amber lina 8 grove bruno 29 ember hana 24 cobalt ivan 15 harbor bruno
29
8 birch gus 18 harbor dina 28 indigo dina 19 cobalt farah 21 juniper ivan 20 cobalt chen
28
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003446
qwen/qwen3.7-plus
awkweave-0003447
Count all input records and print the total.
END{print NR}
hana 26 hana 43 jules 81 hana 59 jules 11 alice 59 hana 59
7
farah 50 jules 80 gus 14 alice 80 hana 85 dina 42 dina 46
7
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003447-p1
Count the total number of input records and print the result.
END{print NR}
hana 26 hana 43 jules 81 hana 59 jules 11 alice 59 hana 59
7
farah 50 jules 80 gus 14 alice 80 hana 85 dina 42 dina 46
7
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003447
qwen/qwen3.7-plus
awkweave-0003448
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
farah juniper 87 farah cobalt 68 bruno delta 6 bruno birch 37 alice indigo 22 chen indigo 53 ivan ember 7 ivan ember 7
farah juniper 87 farah cobalt 68 bruno delta 6 bruno birch 37 alice indigo 22 chen indigo 53 ivan ember 7
kim delta 115 farah fable 27 hana juniper 60 alice ember 77 alice ember 77 kim cobalt 113 dina harbor 58
kim delta 115 farah fable 27 hana juniper 60 alice ember 77 kim cobalt 113 dina harbor 58
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003448-p1
Eliminate duplicate lines by keeping only the first instance of each, maintaining the original sequence.
!seen[$0]++
farah juniper 87 farah cobalt 68 bruno delta 6 bruno birch 37 alice indigo 22 chen indigo 53 ivan ember 7 ivan ember 7
farah juniper 87 farah cobalt 68 bruno delta 6 bruno birch 37 alice indigo 22 chen indigo 53 ivan ember 7
kim delta 115 farah fable 27 hana juniper 60 alice ember 77 alice ember 77 kim cobalt 113 dina harbor 58
kim delta 115 farah fable 27 hana juniper 60 alice ember 77 kim cobalt 113 dina harbor 58
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003448
qwen/qwen3.7-plus
awkweave-0003449
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
dina cobalt 8 lina birch 69 chen birch 73 eli ember 84 hana juniper 51 farah indigo 120 alice delta 3 dina fable 24 chen birch 3
dina cobalt 8 lina birch 69 eli ember 84 hana juniper 51 farah indigo 120 alice delta 3 dina fable 24
gus amber 118 chen cobalt 3 jules indigo 33 gus delta 28 dina harbor 18 kim fable 77 chen juniper 117 bruno indigo 112 gus amber 94 chen delta 70
gus amber 118 chen cobalt 3 jules indigo 33 gus delta 28 dina harbor 18 kim fable 77 chen juniper 117
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003449-p1
Retain solely the initial line for every unique value found in the second column, ensuring input order is preserved.
!seen[$2]++
dina cobalt 8 lina birch 69 chen birch 73 eli ember 84 hana juniper 51 farah indigo 120 alice delta 3 dina fable 24 chen birch 3
dina cobalt 8 lina birch 69 eli ember 84 hana juniper 51 farah indigo 120 alice delta 3 dina fable 24
gus amber 118 chen cobalt 3 jules indigo 33 gus delta 28 dina harbor 18 kim fable 77 chen juniper 117 bruno indigo 112 gus amber 94 chen delta 70
gus amber 118 chen cobalt 3 jules indigo 33 gus delta 28 dina harbor 18 kim fable 77 chen juniper 117
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003449
qwen/qwen3.7-plus
awkweave-0003450
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
gus 27 ember kim 1 juniper gus 29 ember alice 12 juniper eli 6 indigo hana 11 grove alice 3 ember lina 27 fable
gus 27 kim 28 gus 57 alice 69 eli 75 hana 86 alice 89 lina 116
bruno 8 delta farah 7 indigo farah 20 cobalt dina 24 delta farah 16 juniper eli 4 cobalt ivan 28 juniper eli 7 cobalt alice 6 grove alice 15 indigo
bruno 8 farah 15 farah 35 dina 59 farah 75 eli 79 ivan 107 eli 114 alice 120 alice 135
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003450-p1
Output the first column alongside the cumulative total of the second column for each record, using a space as the delimiter.
{s+=$2;print $1,s}
gus 27 ember kim 1 juniper gus 29 ember alice 12 juniper eli 6 indigo hana 11 grove alice 3 ember lina 27 fable
gus 27 kim 28 gus 57 alice 69 eli 75 hana 86 alice 89 lina 116
bruno 8 delta farah 7 indigo farah 20 cobalt dina 24 delta farah 16 juniper eli 4 cobalt ivan 28 juniper eli 7 cobalt alice 6 grove alice 15 indigo
bruno 8 farah 15 farah 35 dina 59 farah 75 eli 79 ivan 107 eli 114 alice 120 alice 135
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003450
qwen/qwen3.7-plus
awkweave-0003451
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
chen 26 25 ember kim 14 2 juniper lina 7 1 grove gus 26 4 ember lina 20 18 amber kim 8 2 harbor gus 20 14 juniper chen 5 22 delta ivan 2 29 birch
chen 51 kim 16 lina 8 gus 30 lina 38 kim 10 gus 34 chen 27 ivan 31
dina 9 12 grove ivan 13 27 grove hana 10 8 birch eli 29 28 juniper chen 11 19 fable dina 25 2 fable
dina 21 ivan 40 hana 18 eli 57 chen 30 dina 27
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003451-p1
For each row, display the first field followed by the combined sum of the second and third fields.
{print $1,$2+$3}
chen 26 25 ember kim 14 2 juniper lina 7 1 grove gus 26 4 ember lina 20 18 amber kim 8 2 harbor gus 20 14 juniper chen 5 22 delta ivan 2 29 birch
chen 51 kim 16 lina 8 gus 30 lina 38 kim 10 gus 34 chen 27 ivan 31
dina 9 12 grove ivan 13 27 grove hana 10 8 birch eli 29 28 juniper chen 11 19 fable dina 25 2 fable
dina 21 ivan 40 hana 18 eli 57 chen 30 dina 27
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003451
qwen/qwen3.7-plus
awkweave-0003452
Print column 1 and pass when column 2 is at least 22; otherwise print fail.
{print $1,($2>=22?"pass":"fail")}
farah 30 alice 13 dina 12 farah 24 eli 9 farah 6
farah pass alice fail dina fail farah pass eli fail farah fail
farah 26 lina 16 farah 22 chen 27 ivan 10 lina 27 jules 3
farah pass lina fail farah pass chen pass ivan fail lina pass jules fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003452-p1
Output the first column and print 'pass' if the second column is 22 or greater; otherwise, print 'fail'.
{print $1,($2>=22?"pass":"fail")}
farah 30 alice 13 dina 12 farah 24 eli 9 farah 6
farah pass alice fail dina fail farah pass eli fail farah fail
farah 26 lina 16 farah 22 chen 27 ivan 10 lina 27 jules 3
farah pass lina fail farah pass chen pass ivan fail lina pass jules fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003452
qwen/qwen3.7-plus
awkweave-0003453
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
dina cobalt 4 bruno cobalt 93 gus birch 88 hana birch 81 hana fable 71 ivan indigo 89 kim amber 31 farah ember 21
DINA BRUNO GUS HANA HANA IVAN KIM FARAH
jules indigo 89 jules amber 82 ivan ember 99 alice delta 34 chen ember 83 farah juniper 61 kim delta 52 hana indigo 105 eli amber 45
JULES JULES IVAN ALICE CHEN FARAH KIM HANA ELI
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003453-p1
Transform the first column to uppercase letters and output only this modified column.
{print toupper($1)}
dina cobalt 4 bruno cobalt 93 gus birch 88 hana birch 81 hana fable 71 ivan indigo 89 kim amber 31 farah ember 21
DINA BRUNO GUS HANA HANA IVAN KIM FARAH
jules indigo 89 jules amber 82 ivan ember 99 alice delta 34 chen ember 83 farah juniper 61 kim delta 52 hana indigo 105 eli amber 45
JULES JULES IVAN ALICE CHEN FARAH KIM HANA ELI
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003453
qwen/qwen3.7-plus
awkweave-0003454
From column 1, print 3 characters starting at character 2.
{print substr($1,2,3)}
delta 117 birch 42 amber 36 harbor 6 fable 31 harbor 88 grove 83 ember 33 delta 61
elt irc mbe arb abl arb rov mbe elt
amber 14 indigo 70 ember 111 indigo 11 cobalt 28 amber 60 amber 66 delta 101 birch 18 amber 62
mbe ndi mbe ndi oba mbe mbe elt irc mbe
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003454-p1
Extract and print a substring of 3 characters from the first column, beginning at the second character position.
{print substr($1,2,3)}
delta 117 birch 42 amber 36 harbor 6 fable 31 harbor 88 grove 83 ember 33 delta 61
elt irc mbe arb abl arb rov mbe elt
amber 14 indigo 70 ember 111 indigo 11 cobalt 28 amber 60 amber 66 delta 101 birch 18 amber 62
mbe ndi mbe ndi oba mbe mbe elt irc mbe
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003454
qwen/qwen3.7-plus
awkweave-0003455
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
grove_indigo 16 indigo_indigo 104 ember_fable 83 grove_fable 27 fable_cobalt 52 indigo_ember 80 cobalt_indigo 55 cobalt_harbor 36
grove indigo indigo indigo ember fable grove fable fable cobalt indigo ember cobalt indigo cobalt harbor
harbor_fable 96 cobalt_delta 55 birch_harbor 82 indigo_cobalt 76 harbor_harbor 82 indigo_juniper 118 juniper_indigo 40 cobalt_birch 48 indigo_ember 57
harbor fable cobalt delta birch harbor indigo cobalt harbor harbor indigo juniper juniper indigo cobalt birch indigo ember
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003455-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
grove_indigo 16 indigo_indigo 104 ember_fable 83 grove_fable 27 fable_cobalt 52 indigo_ember 80 cobalt_indigo 55 cobalt_harbor 36
grove indigo indigo indigo ember fable grove fable fable cobalt indigo ember cobalt indigo cobalt harbor
harbor_fable 96 cobalt_delta 55 birch_harbor 82 indigo_cobalt 76 harbor_harbor 82 indigo_juniper 118 juniper_indigo 40 cobalt_birch 48 indigo_ember 57
harbor fable cobalt delta birch harbor indigo cobalt harbor harbor indigo juniper juniper indigo cobalt birch indigo ember
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003455
qwen/qwen3.7-plus
awkweave-0003456
Reverse the order of fields on every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
ivan amber 77 pending alice ember 119 ready farah indigo 100 failed farah delta 83 paused lina indigo 112 active chen indigo 77 failed
pending 77 amber ivan ready 119 ember alice failed 100 indigo farah paused 83 delta farah active 112 indigo lina failed 77 indigo chen
kim fable 93 paused kim juniper 22 closed farah ember 54 paused chen juniper 8 ready jules ember 1 closed gus cobalt 69 ready hana amber 33 active
paused 93 fable kim closed 22 juniper kim paused 54 ember farah ready 8 juniper chen closed 1 ember jules ready 69 cobalt gus active 33 amber hana
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003456-p1
Invert the sequence of fields for every line and print all fields in their new order.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
ivan amber 77 pending alice ember 119 ready farah indigo 100 failed farah delta 83 paused lina indigo 112 active chen indigo 77 failed
pending 77 amber ivan ready 119 ember alice failed 100 indigo farah paused 83 delta farah active 112 indigo lina failed 77 indigo chen
kim fable 93 paused kim juniper 22 closed farah ember 54 paused chen juniper 8 ready jules ember 1 closed gus cobalt 69 ready hana amber 33 active
paused 93 fable kim closed 22 juniper kim paused 54 ember farah ready 8 juniper chen closed 1 ember jules ready 69 cobalt gus active 33 amber hana
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003456
qwen/qwen3.7-plus
awkweave-0003457
Print the number of whitespace-separated fields on each line.
{print NF}
gus indigo 27 closed lina amber 50 failed bruno cobalt 95 pending dina grove 109 failed hana birch 60 closed jules cobalt 41 closed eli birch 49 active alice birch 116 failed chen amber 36 active
4 4 4 4 4 4 4 4 4
dina amber 73 failed ivan delta 0 closed kim cobalt 64 pending chen fable 92 paused hana ember 92 failed farah juniper 13 ready gus delta 11 active
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003457-p1
Display the count of whitespace-delimited fields present on each line.
{print NF}
gus indigo 27 closed lina amber 50 failed bruno cobalt 95 pending dina grove 109 failed hana birch 60 closed jules cobalt 41 closed eli birch 49 active alice birch 116 failed chen amber 36 active
4 4 4 4 4 4 4 4 4
dina amber 73 failed ivan delta 0 closed kim cobalt 64 pending chen fable 92 paused hana ember 92 failed farah juniper 13 ready gus delta 11 active
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003457
qwen/qwen3.7-plus
awkweave-0003458
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
eli delta 83 ivan alpha 107 bruno delta 96 alice beta 90 farah beta 52 eli gamma 56 ivan beta 39 chen alpha 7 hana gamma 29 farah alpha 100
delta 2 alpha 3 beta 3 gamma 2
ivan beta 26 farah delta 59 gus alpha 98 bruno alpha 91 eli alpha 37 hana gamma 112 jules beta 18
beta 2 delta 1 alpha 3 gamma 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003458-p1
Tally the number of records for each unique value in the second column, printing each value and its corresponding count in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
eli delta 83 ivan alpha 107 bruno delta 96 alice beta 90 farah beta 52 eli gamma 56 ivan beta 39 chen alpha 7 hana gamma 29 farah alpha 100
delta 2 alpha 3 beta 3 gamma 2
ivan beta 26 farah delta 59 gus alpha 98 bruno alpha 91 eli alpha 37 hana gamma 112 jules beta 18
beta 2 delta 1 alpha 3 gamma 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003458
qwen/qwen3.7-plus
awkweave-0003459
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
hana alpha 6 alice gamma 17 chen delta 11 lina delta 1 kim delta 30 gus gamma 26 bruno alpha 30 jules gamma 2
alpha 36 gamma 45 delta 42
kim gamma 19 farah gamma 13 hana delta 14 eli delta 21 eli gamma 18 ivan delta 20 lina alpha 24
gamma 50 delta 55 alpha 24
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003459-p1
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
hana alpha 6 alice gamma 17 chen delta 11 lina delta 1 kim delta 30 gus gamma 26 bruno alpha 30 jules gamma 2
alpha 36 gamma 45 delta 42
kim gamma 19 farah gamma 13 hana delta 14 eli delta 21 eli gamma 18 ivan delta 20 lina alpha 24
gamma 50 delta 55 alpha 24
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0003459
qwen/qwen3.7-plus
awkweave-0003460
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
alpha indigo 61 alpha birch 85 beta harbor 6 gamma amber 105 delta delta 72 delta amber 3 alpha fable 66 beta cobalt 9 gamma fable 29 delta fable 69
alpha 3 beta 2 gamma 2 delta 3
gamma indigo 99 gamma grove 52 beta birch 37 delta indigo 38 delta grove 86 gamma indigo 28 alpha ember 24 alpha indigo 69 alpha cobalt 80 gamma juniper 106
gamma 4 delta 2 alpha 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003460-p1
List each unique value from the first column alongside its frequency, ordered by when the value first appears.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
alpha indigo 61 alpha birch 85 beta harbor 6 gamma amber 105 delta delta 72 delta amber 3 alpha fable 66 beta cobalt 9 gamma fable 29 delta fable 69
alpha 3 beta 2 gamma 2 delta 3
gamma indigo 99 gamma grove 52 beta birch 37 delta indigo 38 delta grove 86 gamma indigo 28 alpha ember 24 alpha indigo 69 alpha cobalt 80 gamma juniper 106
gamma 4 delta 2 alpha 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003460
qwen/qwen3.7-plus
awkweave-0003461
The first row is a header. Print the score column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
region record_id score note r001 hana 8 failed r002 lina 4 failed r003 eli 15 closed r004 eli 16 ready r005 eli 20 paused r006 lina 28 active r007 lina 27 active
8 4 15 16 20 28 27
region record_id score note r001 lina 16 pending r002 hana 8 failed r003 chen 17 pending r004 hana 5 ready r005 jules 10 failed r006 ivan 1 closed
16 8 17 5 10 1
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003461-p1
Skip the header row and output the values found in the score column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
region record_id score note r001 hana 8 failed r002 lina 4 failed r003 eli 15 closed r004 eli 16 ready r005 eli 20 paused r006 lina 28 active r007 lina 27 active
8 4 15 16 20 28 27
region record_id score note r001 lina 16 pending r002 hana 8 failed r003 chen 17 pending r004 hana 5 ready r005 jules 10 failed r006 ivan 1 closed
16 8 17 5 10 1
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003461
qwen/qwen3.7-plus
awkweave-0003462
The first row is a header. Print display_name for data rows whose score is greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 chen 28 ready r002 jules 2 pending r003 kim 21 paused r004 hana 14 ready r005 eli 22 active r006 kim 24 ready r007 hana 30 failed r008 ivan 20 failed r009 bruno 21 paused
chen kim eli kim hana ivan bruno
record_id display_name score state r001 jules 5 active r002 kim 15 active r003 lina 22 failed r004 bruno 7 pending r005 eli 20 ready r006 ivan 29 closed
lina eli ivan
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003462-p1
Ignoring the header, display the display_name field for any row where the score is strictly greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 chen 28 ready r002 jules 2 pending r003 kim 21 paused r004 hana 14 ready r005 eli 22 active r006 kim 24 ready r007 hana 30 failed r008 ivan 20 failed r009 bruno 21 paused
chen kim eli kim hana ivan bruno
record_id display_name score state r001 jules 5 active r002 kim 15 active r003 lina 22 failed r004 bruno 7 pending r005 eli 20 ready r006 ivan 29 closed
lina eli ivan
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003462
qwen/qwen3.7-plus
awkweave-0003463
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
jules 27 ready chen 10 paused ivan 27 paused gus 13 active bruno 17 active dina 16 pending
jules chen ivan gus bruno dina
dina 3 pending kim 15 failed kim 4 failed lina 27 pending lina 30 pending kim 14 pending gus 18 ready
dina kim kim lina lina kim gus
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003463-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
jules 27 ready chen 10 paused ivan 27 paused gus 13 active bruno 17 active dina 16 pending
jules chen ivan gus bruno dina
dina 3 pending kim 15 failed kim 4 failed lina 27 pending lina 30 pending kim 14 pending gus 18 ready
dina kim kim lina lina kim gus
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0003463
qwen/qwen3.7-plus
awkweave-0003464
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 10.
BEGIN{FS=OFS=","}$2>10{print $1}
gus,17,pending hana,13,closed gus,21,active chen,7,closed farah,27,ready alice,2,ready hana,22,ready lina,22,ready
gus hana gus farah hana lina
dina,24,closed alice,15,closed bruno,14,pending farah,19,ready bruno,8,ready dina,2,ready alice,1,closed gus,16,ready dina,16,closed
dina alice bruno farah gus dina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003464-p1
For this unquoted CSV data, output the first column only if the second column's value is greater than 10.
BEGIN{FS=OFS=","}$2>10{print $1}
gus,17,pending hana,13,closed gus,21,active chen,7,closed farah,27,ready alice,2,ready hana,22,ready lina,22,ready
gus hana gus farah hana lina
dina,24,closed alice,15,closed bruno,14,pending farah,19,ready bruno,8,ready dina,2,ready alice,1,closed gus,16,ready dina,16,closed
dina alice bruno farah gus dina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003464
qwen/qwen3.7-plus
awkweave-0003465
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
farah grove 18 ivan fable 30 chen indigo 46 chen amber 79 hana amber 74 bruno juniper 48 farah fable 28 dina juniper 6 ivan amber 41
farah grove 18 ivan fable 30 chen indigo 46 chen amber 79 hana amber 74 bruno juniper 48 farah fable 28 dina juniper 6 ivan amber 41
lina grove 36 chen amber 109 lina ember 29 ivan ember 87 kim amber 13 eli cobalt 103 bruno amber 108 hana birch 28 chen harbor 3 bruno indigo 91
lina grove 36 chen amber 109 lina ember 29 ivan ember 87 kim amber 13 eli cobalt 103 bruno amber 108 hana birch 28 chen harbor 3 bruno indigo 91
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003465-p1
Remove leading and trailing whitespace from each line, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
farah grove 18 ivan fable 30 chen indigo 46 chen amber 79 hana amber 74 bruno juniper 48 farah fable 28 dina juniper 6 ivan amber 41
farah grove 18 ivan fable 30 chen indigo 46 chen amber 79 hana amber 74 bruno juniper 48 farah fable 28 dina juniper 6 ivan amber 41
lina grove 36 chen amber 109 lina ember 29 ivan ember 87 kim amber 13 eli cobalt 103 bruno amber 108 hana birch 28 chen harbor 3 bruno indigo 91
lina grove 36 chen amber 109 lina ember 29 ivan ember 87 kim amber 13 eli cobalt 103 bruno amber 108 hana birch 28 chen harbor 3 bruno indigo 91
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003465
qwen/qwen3.7-plus
awkweave-0003466
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
chen fable 62 failed bruno ember 15 pending alice amber 59 closed alice juniper 40 paused kim harbor 93 paused chen delta 77 pending bruno birch 91 failed farah indigo 57 active chen indigo 21 pending
alice juniper 40 paused
dina delta 99 failed lina indigo 9 ready gus grove 25 pending eli indigo 33 closed ivan indigo 40 pending eli grove 78 active lina cobalt 41 closed kim juniper 52 paused
ivan indigo 40 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003466-p1
Identify and output the longest line in the input; if multiple lines share the maximum length, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
chen fable 62 failed bruno ember 15 pending alice amber 59 closed alice juniper 40 paused kim harbor 93 paused chen delta 77 pending bruno birch 91 failed farah indigo 57 active chen indigo 21 pending
alice juniper 40 paused
dina delta 99 failed lina indigo 9 ready gus grove 25 pending eli indigo 33 closed ivan indigo 40 pending eli grove 78 active lina cobalt 41 closed kim juniper 52 paused
ivan indigo 40 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003466
qwen/qwen3.7-plus
awkweave-0003467
Print every 4th line starting at line 4 (then line 8, and so on).
NR%4==0
alice 28 kim 46 ivan 70 hana 15 gus 84 farah 6 kim 30 bruno 73 alice 25
hana 15 bruno 73
chen 74 jules 16 kim 10 hana 17 hana 84 bruno 78 hana 93 bruno 57
hana 17 bruno 57
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003467-p1
Output every fourth line of the input, beginning with line 4 (i.e., lines 4, 8, 12, etc.).
NR%4==0
alice 28 kim 46 ivan 70 hana 15 gus 84 farah 6 kim 30 bruno 73 alice 25
hana 15 bruno 73
chen 74 jules 16 kim 10 hana 17 hana 84 bruno 78 hana 93 bruno 57
hana 17 bruno 57
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003467
qwen/qwen3.7-plus
awkweave-0003468
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta amber 17 gamma fable 116 alpha delta 83 gamma harbor 19 alpha juniper 39 beta delta 96 delta birch 77
4
delta ember 115 beta ember 23 delta birch 57 gamma birch 20 delta grove 68 beta harbor 99 alpha amber 23
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003468-p1
Calculate the number of unique entries in the first column and print only that total count.
{if(!seen[$1]++)n++}END{print n+0}
beta amber 17 gamma fable 116 alpha delta 83 gamma harbor 19 alpha juniper 39 beta delta 96 delta birch 77
4
delta ember 115 beta ember 23 delta birch 57 gamma birch 20 delta grove 68 beta harbor 99 alpha amber 23
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003468
qwen/qwen3.7-plus
awkweave-0003469
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
bruno 23 0 chen 20 23 hana 18 10 dina 24 4 gus 10 10 bruno 5 26 chen 3 8 alice 9 13 alice 4 15 chen 1 5
chen 0.87 hana 1.80 dina 6.00 gus 1.00 bruno 0.19 chen 0.38 alice 0.69 alice 0.27 chen 0.20
jules 9 0 bruno 16 3 hana 17 27 lina 8 30 hana 21 14 hana 5 3 alice 18 6 hana 6 7 gus 19 2 eli 24 6
bruno 5.33 hana 0.63 lina 0.27 hana 1.50 hana 1.67 alice 3.00 hana 0.86 gus 9.50 eli 4.00
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003469-p1
For each row where the third column is not zero, print the first column and the result of dividing the second column by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
bruno 23 0 chen 20 23 hana 18 10 dina 24 4 gus 10 10 bruno 5 26 chen 3 8 alice 9 13 alice 4 15 chen 1 5
chen 0.87 hana 1.80 dina 6.00 gus 1.00 bruno 0.19 chen 0.38 alice 0.69 alice 0.27 chen 0.20
jules 9 0 bruno 16 3 hana 17 27 lina 8 30 hana 21 14 hana 5 3 alice 18 6 hana 6 7 gus 19 2 eli 24 6
bruno 5.33 hana 0.63 lina 0.27 hana 1.50 hana 1.67 alice 3.00 hana 0.86 gus 9.50 eli 4.00
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003469
qwen/qwen3.7-plus
awkweave-0003470
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
kim cobalt 8 ivan fable 29 dina juniper 3 jules ember 25 lina fable 27 farah harbor 26 gus indigo 23 hana fable 25 eli harbor 12
ivan fable 29 lina fable 27 farah harbor 26
chen ember 24 farah fable 10 dina indigo 25 ivan cobalt 4 dina delta 24 kim fable 14 alice birch 22 kim cobalt 11
dina indigo 25 chen ember 24 dina delta 24
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003470-p1
Select the top three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
kim cobalt 8 ivan fable 29 dina juniper 3 jules ember 25 lina fable 27 farah harbor 26 gus indigo 23 hana fable 25 eli harbor 12
ivan fable 29 lina fable 27 farah harbor 26
chen ember 24 farah fable 10 dina indigo 25 ivan cobalt 4 dina delta 24 kim fable 14 alice birch 22 kim cobalt 11
dina indigo 25 chen ember 24 dina delta 24
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003470
qwen/qwen3.7-plus
awkweave-0003471
For each line, output fields 5 and 1, in that order.
{print $5, $1}
grove 12 pending 115 81 indigo 55 closed 110 117 delta 115 paused 62 82 indigo 4 active 65 40 cobalt 71 failed 106 16 grove 112 failed 25 114 juniper 76 ready 90 100 harbor 104 failed 117 73 cobalt 109 pending 68 57
81 grove 117 indigo 82 delta 40 indigo 16 cobalt 114 grove 100 juniper 73 harbor 57 cobalt
grove 68 active 56 0 harbor 110 active 6 74 birch 70 active 15 93 amber 50 closed 109 87 delta 41 failed 97 83 fable 78 active 47 62
0 grove 74 harbor 93 birch 87 amber 83 delta 62 fable
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003471-p1
For every line, print the fifth field followed by the first field.
{print $5, $1}
grove 12 pending 115 81 indigo 55 closed 110 117 delta 115 paused 62 82 indigo 4 active 65 40 cobalt 71 failed 106 16 grove 112 failed 25 114 juniper 76 ready 90 100 harbor 104 failed 117 73 cobalt 109 pending 68 57
81 grove 117 indigo 82 delta 40 indigo 16 cobalt 114 grove 100 juniper 73 harbor 57 cobalt
grove 68 active 56 0 harbor 110 active 6 74 birch 70 active 15 93 amber 50 closed 109 87 delta 41 failed 97 83 fable 78 active 47 62
0 grove 74 harbor 93 birch 87 amber 83 delta 62 fable
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003471
qwen/qwen3.7-plus
awkweave-0003472
Print the last field of every input line.
{print $NF}
eli 77 30 alice alice birch alice kim 90 72 ivan kim fable dina eli 19 53 hana eli juniper bruno gus 55 41 dina alice indigo chen eli 13 117 hana gus ember chen ivan 21 68 kim eli birch eli jules 60 87 lina ivan fable jules kim 87 85 ivan alice indigo lina chen 53 54 hana ivan grove eli
alice dina bruno chen chen eli jules lina eli
ivan 95 98 lina lina indigo eli alice 50 97 bruno bruno harbor lina hana 50 1 ivan chen delta eli hana 1 102 gus jules fable dina lina 69 76 eli ivan indigo alice gus 120 44 kim bruno juniper eli kim 105 97 chen ivan cobalt alice
eli lina eli dina alice eli alice
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003472-p1
Output the final field from each input line.
{print $NF}
eli 77 30 alice alice birch alice kim 90 72 ivan kim fable dina eli 19 53 hana eli juniper bruno gus 55 41 dina alice indigo chen eli 13 117 hana gus ember chen ivan 21 68 kim eli birch eli jules 60 87 lina ivan fable jules kim 87 85 ivan alice indigo lina chen 53 54 hana ivan grove eli
alice dina bruno chen chen eli jules lina eli
ivan 95 98 lina lina indigo eli alice 50 97 bruno bruno harbor lina hana 50 1 ivan chen delta eli hana 1 102 gus jules fable dina lina 69 76 eli ivan indigo alice gus 120 44 kim bruno juniper eli kim 105 97 chen ivan cobalt alice
eli lina eli dina alice eli alice
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003472
qwen/qwen3.7-plus
awkweave-0003473
Print the complete records where column 2 is less than 24.
$2 < 24
juniper 14 cobalt active active cobalt 117 delta ready ready amber 63 harbor pending paused birch 106 cobalt closed pending ember 23 cobalt ready ready delta 31 grove failed ready indigo 45 grove pending closed
juniper 14 cobalt active active ember 23 cobalt ready ready
harbor 30 birch ready failed cobalt 81 amber ready active indigo 70 birch closed failed indigo 113 harbor paused ready birch 106 juniper failed pending indigo 99 amber failed failed cobalt 41 indigo pending ready birch 116 harbor closed closed amber 58 juniper pending pending
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003473-p1
Display full records where the second column is less than 24.
$2 < 24
juniper 14 cobalt active active cobalt 117 delta ready ready amber 63 harbor pending paused birch 106 cobalt closed pending ember 23 cobalt ready ready delta 31 grove failed ready indigo 45 grove pending closed
juniper 14 cobalt active active ember 23 cobalt ready ready
harbor 30 birch ready failed cobalt 81 amber ready active indigo 70 birch closed failed indigo 113 harbor paused ready birch 106 juniper failed pending indigo 99 amber failed failed cobalt 41 indigo pending ready birch 116 harbor closed closed amber 58 juniper pending pending
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003473
qwen/qwen3.7-plus
awkweave-0003474
Show whole lines whose 2nd field is between 11 and 29, inclusive.
$2 >= 11 && $2 <= 29
alice 11 cobalt indigo alice 22 amber birch lina 13 harbor ember chen 7 cobalt indigo dina 17 juniper juniper farah 20 birch delta chen 3 juniper amber alice 17 juniper indigo gus 20 harbor indigo
alice 11 cobalt indigo alice 22 amber birch lina 13 harbor ember dina 17 juniper juniper farah 20 birch delta alice 17 juniper indigo gus 20 harbor indigo
kim 21 amber ember bruno 24 birch birch kim 21 cobalt grove farah 2 delta juniper kim 10 fable juniper chen 9 indigo ember jules 24 delta cobalt farah 12 cobalt ember
kim 21 amber ember bruno 24 birch birch kim 21 cobalt grove jules 24 delta cobalt farah 12 cobalt ember
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003474-p1
Show entire lines where the second field falls within the inclusive range of 11 to 29.
$2 >= 11 && $2 <= 29
alice 11 cobalt indigo alice 22 amber birch lina 13 harbor ember chen 7 cobalt indigo dina 17 juniper juniper farah 20 birch delta chen 3 juniper amber alice 17 juniper indigo gus 20 harbor indigo
alice 11 cobalt indigo alice 22 amber birch lina 13 harbor ember dina 17 juniper juniper farah 20 birch delta alice 17 juniper indigo gus 20 harbor indigo
kim 21 amber ember bruno 24 birch birch kim 21 cobalt grove farah 2 delta juniper kim 10 fable juniper chen 9 indigo ember jules 24 delta cobalt farah 12 cobalt ember
kim 21 amber ember bruno 24 birch birch kim 21 cobalt grove jules 24 delta cobalt farah 12 cobalt ember
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003474
qwen/qwen3.7-plus
awkweave-0003475
Print column 3 only for rows where column 2 is exactly failed.
$2 == "failed"{print $3}
71 active lina ember 109 paused chen amber 33 paused alice birch 26 ready alice harbor 86 failed alice birch 66 closed jules cobalt
alice
111 active eli harbor 87 paused eli grove 61 ready alice delta 39 closed jules fable 13 failed kim fable 11 closed farah harbor 116 failed kim birch 54 failed eli harbor 70 pending kim indigo
kim kim eli
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003475-p1
Output only the third column for rows where the second column is exactly 'failed'.
$2 == "failed"{print $3}
71 active lina ember 109 paused chen amber 33 paused alice birch 26 ready alice harbor 86 failed alice birch 66 closed jules cobalt
alice
111 active eli harbor 87 paused eli grove 61 ready alice delta 39 closed jules fable 13 failed kim fable 11 closed farah harbor 116 failed kim birch 54 failed eli harbor 70 pending kim indigo
kim kim eli
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003475
qwen/qwen3.7-plus
awkweave-0003476
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
ERROR ember 59 DEBUG grove 90 DEBUG indigo 43 WARN delta 54 DEBUG ember 86 WARN amber 37 WARN birch 49 ERROR ember 110 ERROR juniper 8 WARN indigo 47
ERROR ember 59 ERROR ember 110 ERROR juniper 8
INFO ember 25 ERROR birch 63 INFO juniper 45 DEBUG cobalt 43 ERROR grove 47 DEBUG fable 56 WARN harbor 37 DEBUG ember 11 DEBUG juniper 7
ERROR birch 63 ERROR grove 47
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003476-p1
Print all fields from lines where the first field starts with 'ERROR'.
$1 ~ /^ERROR/
ERROR ember 59 DEBUG grove 90 DEBUG indigo 43 WARN delta 54 DEBUG ember 86 WARN amber 37 WARN birch 49 ERROR ember 110 ERROR juniper 8 WARN indigo 47
ERROR ember 59 ERROR ember 110 ERROR juniper 8
INFO ember 25 ERROR birch 63 INFO juniper 45 DEBUG cobalt 43 ERROR grove 47 DEBUG fable 56 WARN harbor 37 DEBUG ember 11 DEBUG juniper 7
ERROR birch 63 ERROR grove 47
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003476
qwen/qwen3.7-plus
awkweave-0003477
Print every line except those containing the exact text birch.
$0 !~ /birch/
birch 71 closed indigo 62 paused amber 87 pending indigo 76 failed birch 36 active fable 7 paused birch 999 active
indigo 62 paused amber 87 pending indigo 76 failed fable 7 paused
cobalt 50 active cobalt 56 active delta 84 active grove 86 closed harbor 67 ready delta 85 ready birch 999 active
cobalt 50 active cobalt 56 active delta 84 active grove 86 closed harbor 67 ready delta 85 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003477-p1
Print every line that does not contain the exact string 'birch'.
$0 !~ /birch/
birch 71 closed indigo 62 paused amber 87 pending indigo 76 failed birch 36 active fable 7 paused birch 999 active
indigo 62 paused amber 87 pending indigo 76 failed fable 7 paused
cobalt 50 active cobalt 56 active delta 84 active grove 86 closed harbor 67 ready delta 85 ready birch 999 active
cobalt 50 active cobalt 56 active delta 84 active grove 86 closed harbor 67 ready delta 85 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003477
qwen/qwen3.7-plus
awkweave-0003478
Print lines 3 through 6, including both endpoints.
NR >= 3 && NR <= 6
ivan amber 120 alice indigo 21 bruno grove 69 gus delta 36 lina amber 52 ivan ember 119 bruno birch 97 dina ember 104 lina amber 92 hana ember 116
bruno grove 69 gus delta 36 lina amber 52 ivan ember 119
eli indigo 3 gus cobalt 83 kim juniper 95 dina birch 33 hana fable 71 kim indigo 58 bruno indigo 20 dina harbor 11 ivan grove 62
kim juniper 95 dina birch 33 hana fable 71 kim indigo 58
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003478-p1
Output lines 3 through 6, inclusive.
NR >= 3 && NR <= 6
ivan amber 120 alice indigo 21 bruno grove 69 gus delta 36 lina amber 52 ivan ember 119 bruno birch 97 dina ember 104 lina amber 92 hana ember 116
bruno grove 69 gus delta 36 lina amber 52 ivan ember 119
eli indigo 3 gus cobalt 83 kim juniper 95 dina birch 33 hana fable 71 kim indigo 58 bruno indigo 20 dina harbor 11 ivan grove 62
kim juniper 95 dina birch 33 hana fable 71 kim indigo 58
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003478
qwen/qwen3.7-plus
awkweave-0003479
Output only the first 2 records.
NR <= 2
lina 69 ember gus 84 harbor jules 6 cobalt alice 103 juniper eli 28 cobalt chen 28 fable alice 85 grove farah 31 ember
lina 69 ember gus 84 harbor
dina 79 harbor hana 66 birch alice 88 amber lina 10 delta bruno 82 harbor lina 120 indigo
dina 79 harbor hana 66 birch
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003479-p1
Display only the first 2 records.
NR <= 2
lina 69 ember gus 84 harbor jules 6 cobalt alice 103 juniper eli 28 cobalt chen 28 fable alice 85 grove farah 31 ember
lina 69 ember gus 84 harbor
dina 79 harbor hana 66 birch alice 88 amber lina 10 delta bruno 82 harbor lina 120 indigo
dina 79 harbor hana 66 birch
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003479
qwen/qwen3.7-plus
awkweave-0003480
Skip the first line and print every remaining line unchanged.
NR > 1
lina 34 grove bruno 0 juniper farah 10 harbor dina 90 harbor chen 84 ember jules 11 ember gus 44 cobalt farah 77 indigo jules 99 cobalt eli 25 grove
bruno 0 juniper farah 10 harbor dina 90 harbor chen 84 ember jules 11 ember gus 44 cobalt farah 77 indigo jules 99 cobalt eli 25 grove
chen 118 ember hana 32 indigo farah 20 amber gus 64 juniper chen 78 harbor jules 93 amber jules 22 fable ivan 65 birch chen 46 juniper dina 113 harbor
hana 32 indigo farah 20 amber gus 64 juniper chen 78 harbor jules 93 amber jules 22 fable ivan 65 birch chen 46 juniper dina 113 harbor
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003480-p1
Ignore the first line and print all subsequent lines as they are.
NR > 1
lina 34 grove bruno 0 juniper farah 10 harbor dina 90 harbor chen 84 ember jules 11 ember gus 44 cobalt farah 77 indigo jules 99 cobalt eli 25 grove
bruno 0 juniper farah 10 harbor dina 90 harbor chen 84 ember jules 11 ember gus 44 cobalt farah 77 indigo jules 99 cobalt eli 25 grove
chen 118 ember hana 32 indigo farah 20 amber gus 64 juniper chen 78 harbor jules 93 amber jules 22 fable ivan 65 birch chen 46 juniper dina 113 harbor
hana 32 indigo farah 20 amber gus 64 juniper chen 78 harbor jules 93 amber jules 22 fable ivan 65 birch chen 46 juniper dina 113 harbor
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003480
qwen/qwen3.7-plus
awkweave-0003481
Count how many records have paused in column 2. Print 0 if there are none.
$2 == "paused"{n++}END{print n+0}
farah pending 77 dina active 47 kim closed 105 kim active 97 dina closed 25 farah pending 81 farah pending 18 lina active 102 eli paused 100
1
farah ready 28 bruno paused 20 eli closed 83 dina pending 39 eli paused 78 lina failed 67 lina ready 110 gus paused 33 lina pending 27
3
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003481-p1
Count the number of records with 'paused' in the second column; output 0 if none exist.
$2 == "paused"{n++}END{print n+0}
farah pending 77 dina active 47 kim closed 105 kim active 97 dina closed 25 farah pending 81 farah pending 18 lina active 102 eli paused 100
1
farah ready 28 bruno paused 20 eli closed 83 dina pending 39 eli paused 78 lina failed 67 lina ready 110 gus paused 33 lina pending 27
3
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003481
qwen/qwen3.7-plus
awkweave-0003482
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
hana 7 ember ivan 9 amber kim 13 indigo bruno 27 harbor kim 25 delta dina 15 juniper alice 21 ember chen 18 juniper
135
kim 27 cobalt chen 22 amber alice 25 harbor dina 27 ember alice 12 indigo eli 5 indigo
118
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003482-p1
Compute and display the sum of integer values in the second column.
{s+=$2}END{print s+0}
hana 7 ember ivan 9 amber kim 13 indigo bruno 27 harbor kim 25 delta dina 15 juniper alice 21 ember chen 18 juniper
135
kim 27 cobalt chen 22 amber alice 25 harbor dina 27 ember alice 12 indigo eli 5 indigo
118
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003482
qwen/qwen3.7-plus
awkweave-0003483
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
7 birch bruno 16 birch jules 6 juniper eli 15 birch lina 27 indigo jules 30 delta eli
16.83
16 harbor ivan 14 harbor farah 19 ember chen 19 juniper gus 22 cobalt farah 15 delta gus
17.50
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003483-p1
Print the average of the first column, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
7 birch bruno 16 birch jules 6 juniper eli 15 birch lina 27 indigo jules 30 delta eli
16.83
16 harbor ivan 14 harbor farah 19 ember chen 19 juniper gus 22 cobalt farah 15 delta gus
17.50
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003483
qwen/qwen3.7-plus
awkweave-0003484
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
5 alice ember 27 gus ember 5 hana birch 21 kim grove 19 ivan fable 16 dina indigo 15 kim cobalt 17 ivan harbor 3 dina birch 3 chen fable
3
15 kim juniper 27 chen juniper 28 eli ember 19 alice grove 15 farah grove 19 farah cobalt 19 jules birch 30 hana grove 12 jules birch
12
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003484-p1
Output the minimum number found in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
5 alice ember 27 gus ember 5 hana birch 21 kim grove 19 ivan fable 16 dina indigo 15 kim cobalt 17 ivan harbor 3 dina birch 3 chen fable
3
15 kim juniper 27 chen juniper 28 eli ember 19 alice grove 15 farah grove 19 farah cobalt 19 jules birch 30 hana grove 12 jules birch
12
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003484
qwen/qwen3.7-plus
awkweave-0003485
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
ivan fable 27 eli amber 27 ivan amber 26 chen indigo 5 jules juniper 5 dina harbor 10 bruno cobalt 20 gus delta 25 hana birch 6 alice grove 9
27
eli grove 5 bruno cobalt 24 farah cobalt 27 kim birch 8 gus cobalt 3 eli juniper 2 hana indigo 16 eli grove 29 alice grove 17
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003485-p1
Identify and display the maximum numeric value located in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
ivan fable 27 eli amber 27 ivan amber 26 chen indigo 5 jules juniper 5 dina harbor 10 bruno cobalt 20 gus delta 25 hana birch 6 alice grove 9
27
eli grove 5 bruno cobalt 24 farah cobalt 27 kim birch 8 gus cobalt 3 eli juniper 2 hana indigo 16 eli grove 29 alice grove 17
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003485
qwen/qwen3.7-plus
awkweave-0003486
Count all input records and print the total.
END{print NR}
eli 81 jules 50 lina 60 kim 60 bruno 12 eli 115 farah 110 alice 54 bruno 61
9
lina 119 lina 42 jules 51 dina 8 chen 72 gus 113 ivan 28 hana 120
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003486-p1
Calculate the total number of input records and print the count.
END{print NR}
eli 81 jules 50 lina 60 kim 60 bruno 12 eli 115 farah 110 alice 54 bruno 61
9
lina 119 lina 42 jules 51 dina 8 chen 72 gus 113 ivan 28 hana 120
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003486
qwen/qwen3.7-plus
awkweave-0003487
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
chen amber 59 chen amber 59 jules ember 50 bruno ember 65 eli amber 26 farah cobalt 91 chen amber 111
chen amber 59 jules ember 50 bruno ember 65 eli amber 26 farah cobalt 91 chen amber 111
kim cobalt 118 bruno delta 37 jules fable 18 kim cobalt 118 chen grove 111 alice juniper 12 ivan fable 38 dina cobalt 115 eli birch 32 kim grove 13
kim cobalt 118 bruno delta 37 jules fable 18 chen grove 111 alice juniper 12 ivan fable 38 dina cobalt 115 eli birch 32 kim grove 13
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003487-p1
Eliminate exact duplicate lines while maintaining the original order and keeping the first instance.
!seen[$0]++
chen amber 59 chen amber 59 jules ember 50 bruno ember 65 eli amber 26 farah cobalt 91 chen amber 111
chen amber 59 jules ember 50 bruno ember 65 eli amber 26 farah cobalt 91 chen amber 111
kim cobalt 118 bruno delta 37 jules fable 18 kim cobalt 118 chen grove 111 alice juniper 12 ivan fable 38 dina cobalt 115 eli birch 32 kim grove 13
kim cobalt 118 bruno delta 37 jules fable 18 chen grove 111 alice juniper 12 ivan fable 38 dina cobalt 115 eli birch 32 kim grove 13
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003487
qwen/qwen3.7-plus
awkweave-0003488
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
jules ember 30 eli amber 102 ivan amber 14 alice amber 26 gus grove 30 farah delta 4
jules ember 30 eli amber 102 ivan amber 14 alice amber 26 farah delta 4
chen indigo 83 eli indigo 64 dina juniper 84 dina indigo 88 ivan delta 46 dina cobalt 106 hana amber 71 bruno amber 72 hana delta 94 eli delta 102
chen indigo 83 eli indigo 64 dina juniper 84 dina indigo 88 ivan delta 46 dina cobalt 106 hana amber 71 bruno amber 72 hana delta 94 eli delta 102
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003488-p1
Retain only the first occurrence for each unique value in column 3, preserving the initial input sequence.
!seen[$3]++
jules ember 30 eli amber 102 ivan amber 14 alice amber 26 gus grove 30 farah delta 4
jules ember 30 eli amber 102 ivan amber 14 alice amber 26 farah delta 4
chen indigo 83 eli indigo 64 dina juniper 84 dina indigo 88 ivan delta 46 dina cobalt 106 hana amber 71 bruno amber 72 hana delta 94 eli delta 102
chen indigo 83 eli indigo 64 dina juniper 84 dina indigo 88 ivan delta 46 dina cobalt 106 hana amber 71 bruno amber 72 hana delta 94 eli delta 102
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003488
qwen/qwen3.7-plus
awkweave-0003489
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
jules 7 fable hana 1 ember eli 21 amber jules 22 fable farah 12 birch eli 19 amber
jules 7 hana 8 eli 29 jules 51 farah 63 eli 82
ivan 5 delta chen 27 harbor eli 24 birch gus 23 harbor kim 25 indigo farah 27 delta chen 30 amber hana 22 amber ivan 30 birch
ivan 5 chen 32 eli 56 gus 79 kim 104 farah 131 chen 161 hana 183 ivan 213
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0003489-p1
For every record, output column 1 alongside the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
jules 7 fable hana 1 ember eli 21 amber jules 22 fable farah 12 birch eli 19 amber
jules 7 hana 8 eli 29 jules 51 farah 63 eli 82
ivan 5 delta chen 27 harbor eli 24 birch gus 23 harbor kim 25 indigo farah 27 delta chen 30 amber hana 22 amber ivan 30 birch
ivan 5 chen 32 eli 56 gus 79 kim 104 farah 131 chen 161 hana 183 ivan 213
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0003489
qwen/qwen3.7-plus
awkweave-0003500
The first row is a header. Print the note column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
region note state record_id r001 farah 27 ready r002 chen 20 paused r003 gus 9 closed r004 farah 1 failed r005 lina 9 pending r006 bruno 13 pending r007 gus 13 pending r008 gus 2 pending r009 ivan 18 closed
farah chen gus farah lina bruno gus gus ivan
region note state record_id r001 farah 2 closed r002 alice 5 pending r003 hana 3 closed r004 kim 3 paused r005 kim 28 active r006 dina 15 closed r007 bruno 30 paused r008 kim 30 ready
farah alice hana kim kim dina bruno kim
header_projection
2
train
original-grammar
CC-BY-4.0
null
null