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-0004220-p1
Output only the first 4 records.
NR <= 4
alice 33 juniper lina 21 ember chen 97 amber chen 16 fable gus 118 ember alice 62 fable farah 101 ember alice 54 grove
alice 33 juniper lina 21 ember chen 97 amber chen 16 fable
chen 77 grove eli 103 indigo chen 94 juniper gus 28 cobalt dina 85 grove bruno 120 grove dina 8 juniper
chen 77 grove eli 103 indigo chen 94 juniper gus 28 cobalt
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0004220
qwen/qwen3.7-plus
awkweave-0004221
Skip the first line and print every remaining line unchanged.
NR > 1
alice 39 cobalt chen 64 juniper dina 114 indigo jules 77 indigo lina 120 amber bruno 84 delta ivan 112 fable
chen 64 juniper dina 114 indigo jules 77 indigo lina 120 amber bruno 84 delta ivan 112 fable
dina 56 indigo kim 102 delta hana 86 ember gus 74 harbor lina 65 fable kim 109 ember eli 96 juniper eli 96 harbor lina 105 cobalt dina 39 juniper
kim 102 delta hana 86 ember gus 74 harbor lina 65 fable kim 109 ember eli 96 juniper eli 96 harbor lina 105 cobalt dina 39 juniper
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004221-p1
Skip the first line and print all subsequent lines as they are.
NR > 1
alice 39 cobalt chen 64 juniper dina 114 indigo jules 77 indigo lina 120 amber bruno 84 delta ivan 112 fable
chen 64 juniper dina 114 indigo jules 77 indigo lina 120 amber bruno 84 delta ivan 112 fable
dina 56 indigo kim 102 delta hana 86 ember gus 74 harbor lina 65 fable kim 109 ember eli 96 juniper eli 96 harbor lina 105 cobalt dina 39 juniper
kim 102 delta hana 86 ember gus 74 harbor lina 65 fable kim 109 ember eli 96 juniper eli 96 harbor lina 105 cobalt dina 39 juniper
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004221
qwen/qwen3.7-plus
awkweave-0004222
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
kim paused 94 bruno paused 87 eli active 49 ivan closed 37 bruno pending 115 eli active 40
1
ivan active 120 ivan active 76 dina closed 35 alice closed 71 hana active 27 ivan ready 99 ivan pending 3 gus active 96
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004222-p1
Count the number of records with closed in the second column; output 0 if none exist.
$2 == "closed"{n++}END{print n+0}
kim paused 94 bruno paused 87 eli active 49 ivan closed 37 bruno pending 115 eli active 40
1
ivan active 120 ivan active 76 dina closed 35 alice closed 71 hana active 27 ivan ready 99 ivan pending 3 gus active 96
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004222
qwen/qwen3.7-plus
awkweave-0004223
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
24 hana harbor 28 jules grove 18 farah cobalt 27 farah birch 28 alice ember 17 eli fable
142
19 farah cobalt 9 eli amber 10 lina harbor 8 lina cobalt 26 dina grove 19 kim delta 5 gus amber 2 ivan ember 13 farah ember 19 hana indigo
130
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004223-p1
Compute and print the sum of integer values in the first column.
{s+=$1}END{print s+0}
24 hana harbor 28 jules grove 18 farah cobalt 27 farah birch 28 alice ember 17 eli fable
142
19 farah cobalt 9 eli amber 10 lina harbor 8 lina cobalt 26 dina grove 19 kim delta 5 gus amber 2 ivan ember 13 farah ember 19 hana indigo
130
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004223
qwen/qwen3.7-plus
awkweave-0004224
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
eli juniper 17 alice grove 23 bruno amber 9 kim harbor 19 lina harbor 4 farah birch 27 dina amber 1 jules fable 12 chen delta 26 eli ember 23
16.10
bruno birch 1 jules delta 14 kim indigo 29 farah indigo 5 hana fable 15 kim delta 28 hana indigo 22
16.29
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004224-p1
Output the average of the values in the third column, formatted to two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
eli juniper 17 alice grove 23 bruno amber 9 kim harbor 19 lina harbor 4 farah birch 27 dina amber 1 jules fable 12 chen delta 26 eli ember 23
16.10
bruno birch 1 jules delta 14 kim indigo 29 farah indigo 5 hana fable 15 kim delta 28 hana indigo 22
16.29
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004224
qwen/qwen3.7-plus
awkweave-0004225
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
19 delta farah 1 juniper chen 14 harbor eli 2 indigo eli 20 amber chen 19 ember eli 8 harbor lina 11 amber lina 1 birch alice
1
24 juniper farah 17 ember hana 29 cobalt lina 11 ember ivan 26 indigo dina 2 harbor farah 12 indigo ivan
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004225-p1
Identify and display the minimum number found in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
19 delta farah 1 juniper chen 14 harbor eli 2 indigo eli 20 amber chen 19 ember eli 8 harbor lina 11 amber lina 1 birch alice
1
24 juniper farah 17 ember hana 29 cobalt lina 11 ember ivan 26 indigo dina 2 harbor farah 12 indigo ivan
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004225
qwen/qwen3.7-plus
awkweave-0004226
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
chen 13 indigo eli 13 indigo lina 2 harbor ivan 23 amber bruno 26 grove dina 4 delta alice 23 birch farah 3 ember eli 22 delta
26
ivan 15 cobalt bruno 30 fable kim 28 grove hana 3 juniper dina 25 harbor hana 1 juniper
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004226-p1
Identify and display the maximum number found in the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
chen 13 indigo eli 13 indigo lina 2 harbor ivan 23 amber bruno 26 grove dina 4 delta alice 23 birch farah 3 ember eli 22 delta
26
ivan 15 cobalt bruno 30 fable kim 28 grove hana 3 juniper dina 25 harbor hana 1 juniper
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004226
qwen/qwen3.7-plus
awkweave-0004227
Count all input records and print the total.
END{print NR}
dina 104 farah 84 bruno 87 gus 40 ivan 20 lina 43 gus 99 bruno 91 farah 23
9
alice 25 gus 81 gus 119 ivan 51 kim 69 hana 56 ivan 113 eli 118 chen 47
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004227-p1
Calculate and output the total number of input records.
END{print NR}
dina 104 farah 84 bruno 87 gus 40 ivan 20 lina 43 gus 99 bruno 91 farah 23
9
alice 25 gus 81 gus 119 ivan 51 kim 69 hana 56 ivan 113 eli 118 chen 47
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004227
qwen/qwen3.7-plus
awkweave-0004228
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
eli ember 2 eli juniper 114 eli cobalt 66 jules grove 116 ivan cobalt 115 ivan cobalt 115 gus indigo 79 alice cobalt 65 dina ember 55 lina cobalt 67
eli ember 2 eli juniper 114 eli cobalt 66 jules grove 116 ivan cobalt 115 gus indigo 79 alice cobalt 65 dina ember 55 lina cobalt 67
hana amber 89 gus cobalt 119 chen harbor 20 ivan grove 101 ivan grove 101 ivan indigo 45 kim harbor 73 chen delta 58 gus ember 30
hana amber 89 gus cobalt 119 chen harbor 20 ivan grove 101 ivan indigo 45 kim harbor 73 chen delta 58 gus ember 30
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004228-p1
Eliminate duplicate lines while maintaining the original sequence and keeping the first instance of each.
!seen[$0]++
eli ember 2 eli juniper 114 eli cobalt 66 jules grove 116 ivan cobalt 115 ivan cobalt 115 gus indigo 79 alice cobalt 65 dina ember 55 lina cobalt 67
eli ember 2 eli juniper 114 eli cobalt 66 jules grove 116 ivan cobalt 115 gus indigo 79 alice cobalt 65 dina ember 55 lina cobalt 67
hana amber 89 gus cobalt 119 chen harbor 20 ivan grove 101 ivan grove 101 ivan indigo 45 kim harbor 73 chen delta 58 gus ember 30
hana amber 89 gus cobalt 119 chen harbor 20 ivan grove 101 ivan indigo 45 kim harbor 73 chen delta 58 gus ember 30
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004228
qwen/qwen3.7-plus
awkweave-0004229
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
farah birch 72 bruno amber 120 hana juniper 25 dina ember 65 hana cobalt 68 jules juniper 106 gus amber 68 gus fable 65 ivan delta 46 farah delta 82
farah birch 72 bruno amber 120 hana juniper 25 dina ember 65 hana cobalt 68 gus fable 65 ivan delta 46
hana juniper 82 chen birch 38 kim fable 15 jules ember 44 eli fable 71 alice indigo 24 lina ember 52
hana juniper 82 chen birch 38 kim fable 15 jules ember 44 alice indigo 24
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004229-p1
Retain only the initial line for every unique value in the second column, keeping the original order.
!seen[$2]++
farah birch 72 bruno amber 120 hana juniper 25 dina ember 65 hana cobalt 68 jules juniper 106 gus amber 68 gus fable 65 ivan delta 46 farah delta 82
farah birch 72 bruno amber 120 hana juniper 25 dina ember 65 hana cobalt 68 gus fable 65 ivan delta 46
hana juniper 82 chen birch 38 kim fable 15 jules ember 44 eli fable 71 alice indigo 24 lina ember 52
hana juniper 82 chen birch 38 kim fable 15 jules ember 44 alice indigo 24
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004229
qwen/qwen3.7-plus
awkweave-0004230
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
bruno 2 birch lina 23 delta chen 11 cobalt kim 27 juniper chen 22 juniper farah 9 indigo bruno 22 birch eli 2 amber kim 1 amber
bruno 2 lina 25 chen 36 kim 63 chen 85 farah 94 bruno 116 eli 118 kim 119
alice 1 birch bruno 8 fable chen 26 indigo jules 15 fable ivan 16 harbor alice 15 amber bruno 15 juniper gus 11 amber
alice 1 bruno 9 chen 35 jules 50 ivan 66 alice 81 bruno 96 gus 107
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004230-p1
For each entry, output the first column and the cumulative total of the second column, separated by a space.
{s+=$2;print $1,s}
bruno 2 birch lina 23 delta chen 11 cobalt kim 27 juniper chen 22 juniper farah 9 indigo bruno 22 birch eli 2 amber kim 1 amber
bruno 2 lina 25 chen 36 kim 63 chen 85 farah 94 bruno 116 eli 118 kim 119
alice 1 birch bruno 8 fable chen 26 indigo jules 15 fable ivan 16 harbor alice 15 amber bruno 15 juniper gus 11 amber
alice 1 bruno 9 chen 35 jules 50 ivan 66 alice 81 bruno 96 gus 107
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004230
qwen/qwen3.7-plus
awkweave-0004231
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
hana 26 23 cobalt chen 15 26 ember alice 4 15 grove farah 30 1 birch hana 6 16 ember jules 28 4 delta
hana 49 chen 41 alice 19 farah 31 hana 22 jules 32
eli 2 4 amber alice 10 4 delta dina 5 4 fable jules 16 16 indigo farah 27 9 birch bruno 15 4 harbor gus 7 6 harbor gus 2 27 harbor dina 11 26 amber jules 24 30 indigo
eli 6 alice 14 dina 9 jules 32 farah 36 bruno 19 gus 13 gus 29 dina 37 jules 54
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004231-p1
For each row, output the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
hana 26 23 cobalt chen 15 26 ember alice 4 15 grove farah 30 1 birch hana 6 16 ember jules 28 4 delta
hana 49 chen 41 alice 19 farah 31 hana 22 jules 32
eli 2 4 amber alice 10 4 delta dina 5 4 fable jules 16 16 indigo farah 27 9 birch bruno 15 4 harbor gus 7 6 harbor gus 2 27 harbor dina 11 26 amber jules 24 30 indigo
eli 6 alice 14 dina 9 jules 32 farah 36 bruno 19 gus 13 gus 29 dina 37 jules 54
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004231
qwen/qwen3.7-plus
awkweave-0004232
Print column 1 and pass when column 2 is at least 24; otherwise print fail.
{print $1,($2>=24?"pass":"fail")}
alice 1 ivan 14 gus 5 hana 27 gus 15 eli 10 alice 26
alice fail ivan fail gus fail hana pass gus fail eli fail alice pass
dina 20 hana 21 bruno 8 bruno 21 ivan 28 bruno 25 bruno 20
dina fail hana fail bruno fail bruno fail ivan pass bruno pass bruno fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004232-p1
Output the first column along with 'pass' if the second column is 24 or greater, otherwise output 'fail'.
{print $1,($2>=24?"pass":"fail")}
alice 1 ivan 14 gus 5 hana 27 gus 15 eli 10 alice 26
alice fail ivan fail gus fail hana pass gus fail eli fail alice pass
dina 20 hana 21 bruno 8 bruno 21 ivan 28 bruno 25 bruno 20
dina fail hana fail bruno fail bruno fail ivan pass bruno pass bruno fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004232
qwen/qwen3.7-plus
awkweave-0004233
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
lina indigo 119 lina cobalt 25 dina birch 93 lina birch 5 chen indigo 100 lina harbor 44 alice cobalt 25 eli juniper 34 bruno amber 82
LINA LINA DINA LINA CHEN LINA ALICE ELI BRUNO
kim juniper 8 ivan juniper 17 eli fable 88 gus delta 59 bruno fable 96 hana fable 82 gus delta 22 lina delta 31 hana ember 4 ivan juniper 59
KIM IVAN ELI GUS BRUNO HANA GUS LINA HANA IVAN
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004233-p1
Transform the first column to uppercase and output only that column.
{print toupper($1)}
lina indigo 119 lina cobalt 25 dina birch 93 lina birch 5 chen indigo 100 lina harbor 44 alice cobalt 25 eli juniper 34 bruno amber 82
LINA LINA DINA LINA CHEN LINA ALICE ELI BRUNO
kim juniper 8 ivan juniper 17 eli fable 88 gus delta 59 bruno fable 96 hana fable 82 gus delta 22 lina delta 31 hana ember 4 ivan juniper 59
KIM IVAN ELI GUS BRUNO HANA GUS LINA HANA IVAN
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004233
qwen/qwen3.7-plus
awkweave-0004234
From column 1, print 4 characters starting at character 1.
{print substr($1,1,4)}
grove 27 ember 20 cobalt 110 indigo 63 juniper 9 cobalt 32 indigo 113 grove 114
grov embe coba indi juni coba indi grov
harbor 75 birch 59 harbor 0 amber 104 harbor 40 juniper 18 delta 84
harb birc harb ambe harb juni delt
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004234-p1
Extract and print the first 4 characters from the first column.
{print substr($1,1,4)}
grove 27 ember 20 cobalt 110 indigo 63 juniper 9 cobalt 32 indigo 113 grove 114
grov embe coba indi juni coba indi grov
harbor 75 birch 59 harbor 0 amber 104 harbor 40 juniper 18 delta 84
harb birc harb ambe harb juni delt
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004234
qwen/qwen3.7-plus
awkweave-0004235
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
birch_birch 16 cobalt_amber 73 juniper_birch 40 cobalt_cobalt 93 amber_grove 63 indigo_harbor 97 harbor_grove 30 grove_grove 93 birch_grove 12
birch birch cobalt amber juniper birch cobalt cobalt amber grove indigo harbor harbor grove grove grove birch grove
ember_juniper 25 amber_amber 33 delta_birch 53 cobalt_delta 114 amber_ember 120 birch_fable 9
ember juniper amber amber delta birch cobalt delta amber ember birch fable
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004235-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
birch_birch 16 cobalt_amber 73 juniper_birch 40 cobalt_cobalt 93 amber_grove 63 indigo_harbor 97 harbor_grove 30 grove_grove 93 birch_grove 12
birch birch cobalt amber juniper birch cobalt cobalt amber grove indigo harbor harbor grove grove grove birch grove
ember_juniper 25 amber_amber 33 delta_birch 53 cobalt_delta 114 amber_ember 120 birch_fable 9
ember juniper amber amber delta birch cobalt delta amber ember birch fable
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004235
qwen/qwen3.7-plus
awkweave-0004236
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)}
hana cobalt 20 paused bruno juniper 9 paused bruno indigo 26 pending dina grove 2 active chen cobalt 65 closed alice birch 40 ready alice delta 25 active eli indigo 73 ready eli indigo 7 active dina grove 105 paused
paused 20 cobalt hana paused 9 juniper bruno pending 26 indigo bruno active 2 grove dina closed 65 cobalt chen ready 40 birch alice active 25 delta alice ready 73 indigo eli active 7 indigo eli paused 105 grove dina
kim fable 109 active farah fable 54 closed ivan amber 82 closed gus juniper 45 closed gus juniper 40 active gus harbor 89 paused lina grove 93 failed kim cobalt 25 active chen amber 48 paused kim juniper 111 paused
active 109 fable kim closed 54 fable farah closed 82 amber ivan closed 45 juniper gus active 40 juniper gus paused 89 harbor gus failed 93 grove lina active 25 cobalt kim paused 48 amber chen paused 111 juniper kim
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004236-p1
Reverse the field order on each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
hana cobalt 20 paused bruno juniper 9 paused bruno indigo 26 pending dina grove 2 active chen cobalt 65 closed alice birch 40 ready alice delta 25 active eli indigo 73 ready eli indigo 7 active dina grove 105 paused
paused 20 cobalt hana paused 9 juniper bruno pending 26 indigo bruno active 2 grove dina closed 65 cobalt chen ready 40 birch alice active 25 delta alice ready 73 indigo eli active 7 indigo eli paused 105 grove dina
kim fable 109 active farah fable 54 closed ivan amber 82 closed gus juniper 45 closed gus juniper 40 active gus harbor 89 paused lina grove 93 failed kim cobalt 25 active chen amber 48 paused kim juniper 111 paused
active 109 fable kim closed 54 fable farah closed 82 amber ivan closed 45 juniper gus active 40 juniper gus paused 89 harbor gus failed 93 grove lina active 25 cobalt kim paused 48 amber chen paused 111 juniper kim
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004236
qwen/qwen3.7-plus
awkweave-0004237
Print the number of whitespace-separated fields on each line.
{print NF}
kim grove 78 failed bruno delta 74 active kim juniper 114 failed dina harbor 61 closed jules grove 31 pending ivan grove 27 closed hana juniper 24 failed gus grove 51 ready hana delta 41 active
4 4 4 4 4 4 4 4 4
chen cobalt 37 pending dina grove 11 pending gus harbor 63 paused bruno fable 27 closed dina fable 48 active ivan delta 67 closed hana amber 93 pending ivan juniper 19 failed chen fable 11 ready
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004237-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
kim grove 78 failed bruno delta 74 active kim juniper 114 failed dina harbor 61 closed jules grove 31 pending ivan grove 27 closed hana juniper 24 failed gus grove 51 ready hana delta 41 active
4 4 4 4 4 4 4 4 4
chen cobalt 37 pending dina grove 11 pending gus harbor 63 paused bruno fable 27 closed dina fable 48 active ivan delta 67 closed hana amber 93 pending ivan juniper 19 failed chen fable 11 ready
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004237
qwen/qwen3.7-plus
awkweave-0004238
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]]}
jules delta 36 lina delta 49 dina delta 90 kim alpha 75 bruno beta 25 farah alpha 9
delta 3 alpha 2 beta 1
bruno delta 77 lina beta 0 jules alpha 18 eli gamma 61 lina alpha 110 farah gamma 114 bruno gamma 82 eli beta 19 jules alpha 18 alice delta 47
delta 2 beta 2 alpha 3 gamma 3
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004238-p1
Tally records by the value in column 2, then print each value alongside its 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]]}
jules delta 36 lina delta 49 dina delta 90 kim alpha 75 bruno beta 25 farah alpha 9
delta 3 alpha 2 beta 1
bruno delta 77 lina beta 0 jules alpha 18 eli gamma 61 lina alpha 110 farah gamma 114 bruno gamma 82 eli beta 19 jules alpha 18 alice delta 47
delta 2 beta 2 alpha 3 gamma 3
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004238
qwen/qwen3.7-plus
awkweave-0004239
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]]}
bruno beta 13 bruno delta 26 jules delta 10 ivan alpha 21 alice alpha 26 dina alpha 1 kim delta 1 hana beta 8 hana alpha 14 dina delta 24
beta 21 delta 61 alpha 62
kim beta 13 dina gamma 26 farah delta 3 hana alpha 24 lina beta 29 eli beta 2 farah alpha 23
beta 44 gamma 26 delta 3 alpha 47
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004239-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]]}
bruno beta 13 bruno delta 26 jules delta 10 ivan alpha 21 alice alpha 26 dina alpha 1 kim delta 1 hana beta 8 hana alpha 14 dina delta 24
beta 21 delta 61 alpha 62
kim beta 13 dina gamma 26 farah delta 3 hana alpha 24 lina beta 29 eli beta 2 farah alpha 23
beta 44 gamma 26 delta 3 alpha 47
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0004239
qwen/qwen3.7-plus
awkweave-0004240
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]]}
delta harbor 41 gamma cobalt 58 delta cobalt 95 gamma delta 95 delta delta 83 alpha birch 59 gamma grove 69 gamma cobalt 43 gamma harbor 14
delta 3 gamma 5
delta harbor 81 alpha amber 19 alpha indigo 104 gamma fable 92 gamma birch 66 alpha delta 51 delta indigo 81 gamma birch 34 gamma juniper 30 beta birch 38
delta 2 alpha 3 gamma 4
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004240-p1
List each duplicate value from column 1 with its frequency, sorted by first appearance.
{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]]}
delta harbor 41 gamma cobalt 58 delta cobalt 95 gamma delta 95 delta delta 83 alpha birch 59 gamma grove 69 gamma cobalt 43 gamma harbor 14
delta 3 gamma 5
delta harbor 81 alpha amber 19 alpha indigo 104 gamma fable 92 gamma birch 66 alpha delta 51 delta indigo 81 gamma birch 34 gamma juniper 30 beta birch 38
delta 2 alpha 3 gamma 4
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004240
qwen/qwen3.7-plus
awkweave-0004241
The first row is a header. Print the region column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
record_id score note region r001 bruno 16 active r002 eli 4 pending r003 eli 2 paused r004 lina 17 failed r005 hana 21 active r006 farah 15 active r007 eli 2 active r008 lina 9 pending r009 gus 9 failed
active pending paused failed active active active pending failed
record_id score note region r001 bruno 29 closed r002 ivan 28 closed r003 alice 16 closed r004 farah 17 ready r005 chen 6 failed r006 jules 21 pending r007 dina 25 active r008 eli 26 paused
closed closed closed ready failed pending active paused
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004241-p1
Treating the first row as a header, output the region column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
record_id score note region r001 bruno 16 active r002 eli 4 pending r003 eli 2 paused r004 lina 17 failed r005 hana 21 active r006 farah 15 active r007 eli 2 active r008 lina 9 pending r009 gus 9 failed
active pending paused failed active active active pending failed
record_id score note region r001 bruno 29 closed r002 ivan 28 closed r003 alice 16 closed r004 farah 17 ready r005 chen 6 failed r006 jules 21 pending r007 dina 25 active r008 eli 26 paused
closed closed closed ready failed pending active paused
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004241
qwen/qwen3.7-plus
awkweave-0004242
The first row is a header. Print display_name for data rows whose score is greater than 8.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>8{print $h["display_name"]}
record_id display_name score state r001 dina 12 pending r002 jules 12 active r003 farah 9 paused r004 kim 15 pending r005 dina 14 paused r006 lina 14 closed r007 hana 10 pending r008 farah 11 ready r009 alice 12 closed r010 chen 11 ready
dina jules farah kim dina lina hana farah alice chen
record_id display_name score state r001 kim 7 paused r002 lina 17 active r003 dina 14 pending r004 kim 25 ready r005 kim 8 failed r006 lina 17 active r007 dina 9 ready
lina dina kim lina dina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004242-p1
With the first row as a header, print the display_name for data rows where the score is greater than 8.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>8{print $h["display_name"]}
record_id display_name score state r001 dina 12 pending r002 jules 12 active r003 farah 9 paused r004 kim 15 pending r005 dina 14 paused r006 lina 14 closed r007 hana 10 pending r008 farah 11 ready r009 alice 12 closed r010 chen 11 ready
dina jules farah kim dina lina hana farah alice chen
record_id display_name score state r001 kim 7 paused r002 lina 17 active r003 dina 14 pending r004 kim 25 ready r005 kim 8 failed r006 lina 17 active r007 dina 9 ready
lina dina kim lina dina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004242
qwen/qwen3.7-plus
awkweave-0004243
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
ivan 19 active chen 27 pending farah 5 paused hana 25 active farah 9 closed gus 26 ready alice 5 ready chen 14 active lina 25 active chen 19 pending
active pending paused active closed ready ready active active pending
kim 26 failed farah 27 paused farah 3 failed gus 27 closed eli 30 active eli 3 active jules 24 paused kim 4 active dina 5 pending
failed paused failed closed active active paused active pending
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004243-p1
Given tab-separated input, output the third column from every record.
BEGIN{FS=OFS="\t"}{print $3}
ivan 19 active chen 27 pending farah 5 paused hana 25 active farah 9 closed gus 26 ready alice 5 ready chen 14 active lina 25 active chen 19 pending
active pending paused active closed ready ready active active pending
kim 26 failed farah 27 paused farah 3 failed gus 27 closed eli 30 active eli 3 active jules 24 paused kim 4 active dina 5 pending
failed paused failed closed active active paused active pending
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004243
qwen/qwen3.7-plus
awkweave-0004244
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 17.
BEGIN{FS=OFS=","}$2>17{print $1}
jules,14,paused hana,16,failed gus,18,closed farah,25,paused kim,7,failed gus,22,failed jules,14,paused ivan,3,closed jules,9,active
gus farah gus
kim,13,closed eli,26,pending alice,9,active eli,29,ready eli,6,active ivan,28,ready bruno,24,failed
eli eli ivan bruno
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004244-p1
For simple comma-separated data without quoted commas, print the first column if the second column is greater than 17.
BEGIN{FS=OFS=","}$2>17{print $1}
jules,14,paused hana,16,failed gus,18,closed farah,25,paused kim,7,failed gus,22,failed jules,14,paused ivan,3,closed jules,9,active
gus farah gus
kim,13,closed eli,26,pending alice,9,active eli,29,ready eli,6,active ivan,28,ready bruno,24,failed
eli eli ivan bruno
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004244
qwen/qwen3.7-plus
awkweave-0004245
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
dina harbor 93 eli indigo 70 ivan juniper 119 farah grove 26 jules indigo 100 chen ember 87 alice fable 66 alice ember 107 gus amber 67
dina harbor 93 eli indigo 70 ivan juniper 119 farah grove 26 jules indigo 100 chen ember 87 alice fable 66 alice ember 107 gus amber 67
eli grove 7 eli ember 38 jules birch 67 eli ember 7 farah amber 10 eli cobalt 64 jules delta 84
eli grove 7 eli ember 38 jules birch 67 eli ember 7 farah amber 10 eli cobalt 64 jules delta 84
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004245-p1
Remove leading and trailing whitespace and reduce internal whitespace sequences to single spaces.
{$1=$1;print}
dina harbor 93 eli indigo 70 ivan juniper 119 farah grove 26 jules indigo 100 chen ember 87 alice fable 66 alice ember 107 gus amber 67
dina harbor 93 eli indigo 70 ivan juniper 119 farah grove 26 jules indigo 100 chen ember 87 alice fable 66 alice ember 107 gus amber 67
eli grove 7 eli ember 38 jules birch 67 eli ember 7 farah amber 10 eli cobalt 64 jules delta 84
eli grove 7 eli ember 38 jules birch 67 eli ember 7 farah amber 10 eli cobalt 64 jules delta 84
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004245
qwen/qwen3.7-plus
awkweave-0004246
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
jules ember 49 pending lina ember 19 failed farah delta 118 pending gus delta 0 pending gus ember 40 closed kim fable 36 closed ivan harbor 78 failed
farah delta 118 pending
lina grove 21 pending gus amber 26 pending farah juniper 30 ready eli ember 47 failed hana fable 52 pending farah amber 79 closed jules ember 34 failed dina cobalt 94 closed ivan delta 71 closed
farah juniper 30 ready
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004246-p1
Identify and print the longest input line, retaining the earliest one in case of a tie.
{if(length($0)>length(best))best=$0}END{print best}
jules ember 49 pending lina ember 19 failed farah delta 118 pending gus delta 0 pending gus ember 40 closed kim fable 36 closed ivan harbor 78 failed
farah delta 118 pending
lina grove 21 pending gus amber 26 pending farah juniper 30 ready eli ember 47 failed hana fable 52 pending farah amber 79 closed jules ember 34 failed dina cobalt 94 closed ivan delta 71 closed
farah juniper 30 ready
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004246
qwen/qwen3.7-plus
awkweave-0004247
Print every 3rd line starting at line 3 (then line 6, and so on).
NR%3==0
jules 113 gus 41 lina 86 chen 111 jules 36 lina 107
lina 86 lina 107
dina 36 lina 104 jules 19 gus 74 eli 19 gus 90 hana 105 chen 11 farah 37 lina 61
jules 19 gus 90 farah 37
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004247-p1
Print every third line, beginning with line 3 (i.e., lines 3, 6, etc.).
NR%3==0
jules 113 gus 41 lina 86 chen 111 jules 36 lina 107
lina 86 lina 107
dina 36 lina 104 jules 19 gus 74 eli 19 gus 90 hana 105 chen 11 farah 37 lina 61
jules 19 gus 90 farah 37
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004247
qwen/qwen3.7-plus
awkweave-0004248
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
gamma cobalt 60 alpha fable 99 beta indigo 18 gamma juniper 5 delta ember 58 delta amber 29 beta fable 39 beta amber 15 beta indigo 103 gamma amber 9
6
gamma ember 67 alpha amber 36 alpha birch 111 beta birch 35 beta ember 119 alpha amber 79
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004248-p1
Output the number of unique entries found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
gamma cobalt 60 alpha fable 99 beta indigo 18 gamma juniper 5 delta ember 58 delta amber 29 beta fable 39 beta amber 15 beta indigo 103 gamma amber 9
6
gamma ember 67 alpha amber 36 alpha birch 111 beta birch 35 beta ember 119 alpha amber 79
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004248
qwen/qwen3.7-plus
awkweave-0004249
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}
farah 13 0 farah 28 30 dina 17 9 bruno 6 20 kim 11 29 gus 29 14
farah 0.93 dina 1.89 bruno 0.30 kim 0.38 gus 2.07
jules 5 0 bruno 23 16 hana 11 29 alice 6 2 chen 30 23 bruno 6 23 jules 29 22
bruno 1.44 hana 0.38 alice 3.00 chen 1.30 bruno 0.26 jules 1.32
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004249-p1
For every row where the third column is not zero, display the first and second columns, with the second column divided by the third and formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
farah 13 0 farah 28 30 dina 17 9 bruno 6 20 kim 11 29 gus 29 14
farah 0.93 dina 1.89 bruno 0.30 kim 0.38 gus 2.07
jules 5 0 bruno 23 16 hana 11 29 alice 6 2 chen 30 23 bruno 6 23 jules 29 22
bruno 1.44 hana 0.38 alice 3.00 chen 1.30 bruno 0.26 jules 1.32
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004249
qwen/qwen3.7-plus
awkweave-0004250
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]}
farah ember 17 bruno amber 30 eli delta 21 chen delta 25 dina delta 1 jules ember 14
bruno amber 30 chen delta 25 eli delta 21
hana ember 1 farah juniper 21 bruno harbor 5 hana amber 26 kim birch 9 chen cobalt 11 gus cobalt 17 kim harbor 5 alice fable 7 kim amber 18
hana amber 26 farah juniper 21 kim amber 18
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004250-p1
Display the three records with the largest 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]}
farah ember 17 bruno amber 30 eli delta 21 chen delta 25 dina delta 1 jules ember 14
bruno amber 30 chen delta 25 eli delta 21
hana ember 1 farah juniper 21 bruno harbor 5 hana amber 26 kim birch 9 chen cobalt 11 gus cobalt 17 kim harbor 5 alice fable 7 kim amber 18
hana amber 26 farah juniper 21 kim amber 18
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004250
qwen/qwen3.7-plus
awkweave-0004251
Select the 3rd and 2nd fields in that order.
{print $3, $2}
66 102 birch hana 72 58 0 indigo jules 21 95 15 fable gus 24 62 84 cobalt dina 19 7 93 cobalt hana 95 45 117 cobalt chen 20
birch 102 indigo 0 fable 15 cobalt 84 cobalt 93 cobalt 117
95 65 delta jules 109 13 69 indigo alice 111 4 37 juniper gus 56 111 33 harbor alice 12 113 80 fable alice 93 16 25 harbor chen 23 5 120 delta alice 1 88 115 delta kim 12 117 0 harbor bruno 32
delta 65 indigo 69 juniper 37 harbor 33 fable 80 harbor 25 delta 120 delta 115 harbor 0
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004251-p1
Extract and print the third field followed by the second field.
{print $3, $2}
66 102 birch hana 72 58 0 indigo jules 21 95 15 fable gus 24 62 84 cobalt dina 19 7 93 cobalt hana 95 45 117 cobalt chen 20
birch 102 indigo 0 fable 15 cobalt 84 cobalt 93 cobalt 117
95 65 delta jules 109 13 69 indigo alice 111 4 37 juniper gus 56 111 33 harbor alice 12 113 80 fable alice 93 16 25 harbor chen 23 5 120 delta alice 1 88 115 delta kim 12 117 0 harbor bruno 32
delta 65 indigo 69 juniper 37 harbor 33 fable 80 harbor 25 delta 120 delta 115 harbor 0
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004251
qwen/qwen3.7-plus
awkweave-0004252
Print the last field of every input line.
{print $NF}
ember juniper kim kim bruno kim grove indigo ember hana farah chen dina grove cobalt juniper gus chen eli gus ember fable grove jules chen farah hana delta harbor juniper ivan alice bruno hana harbor birch delta farah ivan alice dina delta
grove grove ember delta harbor delta
fable juniper lina lina eli bruno harbor juniper harbor gus ivan gus jules fable ember indigo jules lina alice dina fable grove fable farah chen hana kim delta cobalt harbor farah ivan chen kim indigo fable ember alice farah ivan farah ember grove amber kim eli eli alice indigo
harbor fable fable delta indigo ember indigo
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004252-p1
Output the final field from each line of input.
{print $NF}
ember juniper kim kim bruno kim grove indigo ember hana farah chen dina grove cobalt juniper gus chen eli gus ember fable grove jules chen farah hana delta harbor juniper ivan alice bruno hana harbor birch delta farah ivan alice dina delta
grove grove ember delta harbor delta
fable juniper lina lina eli bruno harbor juniper harbor gus ivan gus jules fable ember indigo jules lina alice dina fable grove fable farah chen hana kim delta cobalt harbor farah ivan chen kim indigo fable ember alice farah ivan farah ember grove amber kim eli eli alice indigo
harbor fable fable delta indigo ember indigo
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004252
qwen/qwen3.7-plus
awkweave-0004253
Print the complete records where column 1 is at most 36.
$1 <= 36
87 paused farah delta 104 closed kim birch 24 pending farah grove 57 active eli fable 22 closed hana fable 102 failed lina juniper 66 active farah indigo 108 paused hana delta
24 pending farah grove 22 closed hana fable
88 closed eli amber 20 active farah birch 107 failed lina cobalt 55 failed jules birch 116 pending alice fable 20 closed lina juniper 30 ready bruno cobalt 74 paused jules harbor 7 pending dina fable 7 pending farah indigo
20 active farah birch 20 closed lina juniper 30 ready bruno cobalt 7 pending dina fable 7 pending farah indigo
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004253-p1
Print full records where the value in the first column is less than or equal to 36.
$1 <= 36
87 paused farah delta 104 closed kim birch 24 pending farah grove 57 active eli fable 22 closed hana fable 102 failed lina juniper 66 active farah indigo 108 paused hana delta
24 pending farah grove 22 closed hana fable
88 closed eli amber 20 active farah birch 107 failed lina cobalt 55 failed jules birch 116 pending alice fable 20 closed lina juniper 30 ready bruno cobalt 74 paused jules harbor 7 pending dina fable 7 pending farah indigo
20 active farah birch 20 closed lina juniper 30 ready bruno cobalt 7 pending dina fable 7 pending farah indigo
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004253
qwen/qwen3.7-plus
awkweave-0004254
Show whole lines whose 2nd field is between 8 and 29, inclusive.
$2 >= 8 && $2 <= 29
cobalt 13 ember dina amber 10 cobalt chen grove 13 cobalt chen amber 9 fable ivan cobalt 6 harbor jules indigo 25 fable lina harbor 23 amber chen
cobalt 13 ember dina amber 10 cobalt chen grove 13 cobalt chen amber 9 fable ivan indigo 25 fable lina harbor 23 amber chen
ember 27 harbor dina cobalt 21 harbor jules delta 7 indigo bruno cobalt 9 grove bruno fable 4 fable eli birch 15 ember bruno delta 9 ember alice birch 17 cobalt kim fable 3 indigo lina
ember 27 harbor dina cobalt 21 harbor jules cobalt 9 grove bruno birch 15 ember bruno delta 9 ember alice birch 17 cobalt kim
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004254-p1
Display entire lines where the second field falls within the inclusive range of 8 to 29.
$2 >= 8 && $2 <= 29
cobalt 13 ember dina amber 10 cobalt chen grove 13 cobalt chen amber 9 fable ivan cobalt 6 harbor jules indigo 25 fable lina harbor 23 amber chen
cobalt 13 ember dina amber 10 cobalt chen grove 13 cobalt chen amber 9 fable ivan indigo 25 fable lina harbor 23 amber chen
ember 27 harbor dina cobalt 21 harbor jules delta 7 indigo bruno cobalt 9 grove bruno fable 4 fable eli birch 15 ember bruno delta 9 ember alice birch 17 cobalt kim fable 3 indigo lina
ember 27 harbor dina cobalt 21 harbor jules cobalt 9 grove bruno birch 15 ember bruno delta 9 ember alice birch 17 cobalt kim
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004254
qwen/qwen3.7-plus
awkweave-0004255
Print column 2 only for rows where column 4 is exactly active.
$4 == "active"{print $2}
indigo gus 15 ready cobalt lina 0 active indigo alice 77 paused cobalt jules 109 pending fable kim 118 closed amber kim 5 closed
lina
delta kim 10 active juniper alice 87 closed fable gus 69 failed indigo alice 92 active amber ivan 62 pending delta kim 28 closed birch lina 27 closed indigo gus 77 closed juniper chen 56 closed fable jules 117 closed
kim alice
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004255-p1
Output only the second column for rows where the fourth column matches the string 'active' exactly.
$4 == "active"{print $2}
indigo gus 15 ready cobalt lina 0 active indigo alice 77 paused cobalt jules 109 pending fable kim 118 closed amber kim 5 closed
lina
delta kim 10 active juniper alice 87 closed fable gus 69 failed indigo alice 92 active amber ivan 62 pending delta kim 28 closed birch lina 27 closed indigo gus 77 closed juniper chen 56 closed fable jules 117 closed
kim alice
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004255
qwen/qwen3.7-plus
awkweave-0004256
Print all fields from lines where field 2 begins with WARN.
$2 ~ /^WARN/
ember ERROR 25 amber ERROR 32 indigo WARN 42 fable INFO 116 birch ERROR 26 harbor INFO 35 grove DEBUG 36 grove INFO 69 cobalt DEBUG 85 ember DEBUG 55
indigo WARN 42
grove ERROR 50 cobalt INFO 45 grove WARN 104 juniper ERROR 52 cobalt DEBUG 55 amber WARN 48 ember INFO 92 ember INFO 120 fable INFO 12
grove WARN 104 amber WARN 48
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004256-p1
Print all fields from lines where the second field starts with the prefix 'WARN'.
$2 ~ /^WARN/
ember ERROR 25 amber ERROR 32 indigo WARN 42 fable INFO 116 birch ERROR 26 harbor INFO 35 grove DEBUG 36 grove INFO 69 cobalt DEBUG 85 ember DEBUG 55
indigo WARN 42
grove ERROR 50 cobalt INFO 45 grove WARN 104 juniper ERROR 52 cobalt DEBUG 55 amber WARN 48 ember INFO 92 ember INFO 120 fable INFO 12
grove WARN 104 amber WARN 48
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004256
qwen/qwen3.7-plus
awkweave-0004257
Print every line except those containing the exact text harbor.
$0 !~ /harbor/
birch 12 pending harbor 94 pending delta 57 failed birch 15 failed amber 33 active indigo 9 pending birch 29 ready harbor 46 closed amber 26 paused grove 92 pending harbor 999 active
birch 12 pending delta 57 failed birch 15 failed amber 33 active indigo 9 pending birch 29 ready amber 26 paused grove 92 pending
juniper 115 active fable 89 active birch 65 pending ember 84 active grove 120 active harbor 3 pending amber 117 active fable 23 paused grove 59 failed ember 68 ready harbor 999 active
juniper 115 active fable 89 active birch 65 pending ember 84 active grove 120 active amber 117 active fable 23 paused grove 59 failed ember 68 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004257-p1
Output every line that does not contain the exact string 'harbor'.
$0 !~ /harbor/
birch 12 pending harbor 94 pending delta 57 failed birch 15 failed amber 33 active indigo 9 pending birch 29 ready harbor 46 closed amber 26 paused grove 92 pending harbor 999 active
birch 12 pending delta 57 failed birch 15 failed amber 33 active indigo 9 pending birch 29 ready amber 26 paused grove 92 pending
juniper 115 active fable 89 active birch 65 pending ember 84 active grove 120 active harbor 3 pending amber 117 active fable 23 paused grove 59 failed ember 68 ready harbor 999 active
juniper 115 active fable 89 active birch 65 pending ember 84 active grove 120 active amber 117 active fable 23 paused grove 59 failed ember 68 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004257
qwen/qwen3.7-plus
awkweave-0004258
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
gus harbor 65 eli amber 108 eli amber 54 hana indigo 16 bruno fable 71 alice birch 90 eli amber 14 eli grove 93
hana indigo 16 bruno fable 71 alice birch 90 eli amber 14
chen ember 11 eli harbor 22 dina fable 46 alice indigo 6 jules amber 79 gus juniper 20 chen fable 33 farah amber 104
alice indigo 6 jules amber 79 gus juniper 20 chen fable 33
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004258-p1
Print lines 4 through 7, inclusive of both endpoints.
NR >= 4 && NR <= 7
gus harbor 65 eli amber 108 eli amber 54 hana indigo 16 bruno fable 71 alice birch 90 eli amber 14 eli grove 93
hana indigo 16 bruno fable 71 alice birch 90 eli amber 14
chen ember 11 eli harbor 22 dina fable 46 alice indigo 6 jules amber 79 gus juniper 20 chen fable 33 farah amber 104
alice indigo 6 jules amber 79 gus juniper 20 chen fable 33
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004258
qwen/qwen3.7-plus
awkweave-0004259
Output only the first 5 records.
NR <= 5
alice 38 grove kim 120 indigo alice 16 cobalt jules 49 ember alice 14 juniper bruno 108 cobalt bruno 109 ember
alice 38 grove kim 120 indigo alice 16 cobalt jules 49 ember alice 14 juniper
gus 94 grove farah 60 juniper hana 102 fable ivan 52 grove eli 16 ember dina 101 ember bruno 19 ember
gus 94 grove farah 60 juniper hana 102 fable ivan 52 grove eli 16 ember
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004259-p1
Display only the first 5 records.
NR <= 5
alice 38 grove kim 120 indigo alice 16 cobalt jules 49 ember alice 14 juniper bruno 108 cobalt bruno 109 ember
alice 38 grove kim 120 indigo alice 16 cobalt jules 49 ember alice 14 juniper
gus 94 grove farah 60 juniper hana 102 fable ivan 52 grove eli 16 ember dina 101 ember bruno 19 ember
gus 94 grove farah 60 juniper hana 102 fable ivan 52 grove eli 16 ember
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004259
qwen/qwen3.7-plus
awkweave-0004260
Skip the first line and print every remaining line unchanged.
NR > 1
ivan 71 juniper eli 20 ember ivan 39 amber hana 18 harbor jules 120 juniper alice 98 delta bruno 12 cobalt hana 40 indigo
eli 20 ember ivan 39 amber hana 18 harbor jules 120 juniper alice 98 delta bruno 12 cobalt hana 40 indigo
lina 84 grove alice 20 juniper hana 9 cobalt hana 37 amber alice 38 fable chen 54 indigo alice 56 indigo kim 49 amber kim 115 harbor
alice 20 juniper hana 9 cobalt hana 37 amber alice 38 fable chen 54 indigo alice 56 indigo kim 49 amber kim 115 harbor
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004260-p1
Omit the initial line and output all subsequent lines exactly as they appear.
NR > 1
ivan 71 juniper eli 20 ember ivan 39 amber hana 18 harbor jules 120 juniper alice 98 delta bruno 12 cobalt hana 40 indigo
eli 20 ember ivan 39 amber hana 18 harbor jules 120 juniper alice 98 delta bruno 12 cobalt hana 40 indigo
lina 84 grove alice 20 juniper hana 9 cobalt hana 37 amber alice 38 fable chen 54 indigo alice 56 indigo kim 49 amber kim 115 harbor
alice 20 juniper hana 9 cobalt hana 37 amber alice 38 fable chen 54 indigo alice 56 indigo kim 49 amber kim 115 harbor
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004260
qwen/qwen3.7-plus
awkweave-0004261
Count how many records have ready in column 2. Print 0 if there are none.
$2 == "ready"{n++}END{print n+0}
ivan failed 89 hana closed 82 farah paused 37 bruno closed 27 chen paused 24 ivan closed 9 hana closed 55 hana paused 36
0
chen pending 63 chen closed 82 dina active 24 farah ready 97 farah paused 101 chen closed 42 kim active 10 dina closed 87 gus active 94
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004261-p1
Determine the number of entries where the second column contains 'ready', outputting 0 if no matches are found.
$2 == "ready"{n++}END{print n+0}
ivan failed 89 hana closed 82 farah paused 37 bruno closed 27 chen paused 24 ivan closed 9 hana closed 55 hana paused 36
0
chen pending 63 chen closed 82 dina active 24 farah ready 97 farah paused 101 chen closed 42 kim active 10 dina closed 87 gus active 94
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004261
qwen/qwen3.7-plus
awkweave-0004262
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
indigo 19 hana ember 10 hana harbor 13 ivan cobalt 5 gus grove 13 chen fable 3 ivan amber 3 eli grove 30 jules
96
amber 26 bruno fable 2 jules grove 30 farah cobalt 3 ivan amber 13 chen indigo 22 kim indigo 3 hana fable 13 dina ember 21 chen
133
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004262-p1
Compute and display the total sum of integer values found in the second column.
{s+=$2}END{print s+0}
indigo 19 hana ember 10 hana harbor 13 ivan cobalt 5 gus grove 13 chen fable 3 ivan amber 3 eli grove 30 jules
96
amber 26 bruno fable 2 jules grove 30 farah cobalt 3 ivan amber 13 chen indigo 22 kim indigo 3 hana fable 13 dina ember 21 chen
133
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004262
qwen/qwen3.7-plus
awkweave-0004263
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
12 grove chen 3 birch lina 14 juniper dina 24 fable kim 3 indigo hana 24 ember eli 20 birch gus 7 ember dina
13.38
7 ember farah 16 indigo gus 6 grove gus 8 amber kim 14 indigo ivan 23 amber alice 18 indigo chen 27 juniper gus 9 ember alice 6 birch dina
13.40
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004263-p1
Output the average of the values in the first column, formatted to precisely two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
12 grove chen 3 birch lina 14 juniper dina 24 fable kim 3 indigo hana 24 ember eli 20 birch gus 7 ember dina
13.38
7 ember farah 16 indigo gus 6 grove gus 8 amber kim 14 indigo ivan 23 amber alice 18 indigo chen 27 juniper gus 9 ember alice 6 birch dina
13.40
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004263
qwen/qwen3.7-plus
awkweave-0004264
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
bruno fable 13 jules grove 18 ivan amber 27 chen cobalt 17 chen grove 23 eli cobalt 11 gus fable 24 lina birch 8 ivan grove 2 kim indigo 29
2
bruno birch 16 hana amber 15 farah delta 20 kim fable 30 chen fable 24 lina harbor 4
4
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004264-p1
Identify and display the minimum numerical value present in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
bruno fable 13 jules grove 18 ivan amber 27 chen cobalt 17 chen grove 23 eli cobalt 11 gus fable 24 lina birch 8 ivan grove 2 kim indigo 29
2
bruno birch 16 hana amber 15 farah delta 20 kim fable 30 chen fable 24 lina harbor 4
4
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004264
qwen/qwen3.7-plus
awkweave-0004265
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
21 cobalt hana 12 fable eli 4 juniper gus 16 delta eli 30 ember kim 2 indigo chen 17 grove gus 16 juniper alice
30
17 birch gus 22 delta chen 30 ember farah 25 harbor farah 28 ember kim 7 grove alice 28 indigo jules 21 amber hana 14 cobalt gus
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004265-p1
Identify and display the maximum numerical value present in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
21 cobalt hana 12 fable eli 4 juniper gus 16 delta eli 30 ember kim 2 indigo chen 17 grove gus 16 juniper alice
30
17 birch gus 22 delta chen 30 ember farah 25 harbor farah 28 ember kim 7 grove alice 28 indigo jules 21 amber hana 14 cobalt gus
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004265
qwen/qwen3.7-plus
awkweave-0004266
Count all input records and print the total.
END{print NR}
eli 36 hana 14 lina 23 lina 28 lina 114 alice 4 gus 55 jules 88
8
lina 111 jules 103 hana 70 farah 106 eli 90 hana 105 eli 118 bruno 24 dina 41 lina 100
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004266-p1
Count the total number of input records and print the result.
END{print NR}
eli 36 hana 14 lina 23 lina 28 lina 114 alice 4 gus 55 jules 88
8
lina 111 jules 103 hana 70 farah 106 eli 90 hana 105 eli 118 bruno 24 dina 41 lina 100
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004266
qwen/qwen3.7-plus
awkweave-0004267
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
gus grove 53 jules fable 96 chen grove 31 chen indigo 56 hana ember 115 alice delta 91 chen grove 31 gus birch 100 chen birch 18 jules birch 25 lina amber 54
gus grove 53 jules fable 96 chen grove 31 chen indigo 56 hana ember 115 alice delta 91 gus birch 100 chen birch 18 jules birch 25 lina amber 54
hana grove 25 lina ember 42 eli harbor 10 kim harbor 81 hana harbor 23 chen grove 78 bruno ember 115 gus indigo 120 gus indigo 120 lina delta 95 jules grove 7
hana grove 25 lina ember 42 eli harbor 10 kim harbor 81 hana harbor 23 chen grove 78 bruno ember 115 gus indigo 120 lina delta 95 jules grove 7
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004267-p1
Eliminate exact duplicate lines while maintaining the original sequence and keeping the first instance of each.
!seen[$0]++
gus grove 53 jules fable 96 chen grove 31 chen indigo 56 hana ember 115 alice delta 91 chen grove 31 gus birch 100 chen birch 18 jules birch 25 lina amber 54
gus grove 53 jules fable 96 chen grove 31 chen indigo 56 hana ember 115 alice delta 91 gus birch 100 chen birch 18 jules birch 25 lina amber 54
hana grove 25 lina ember 42 eli harbor 10 kim harbor 81 hana harbor 23 chen grove 78 bruno ember 115 gus indigo 120 gus indigo 120 lina delta 95 jules grove 7
hana grove 25 lina ember 42 eli harbor 10 kim harbor 81 hana harbor 23 chen grove 78 bruno ember 115 gus indigo 120 lina delta 95 jules grove 7
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004267
qwen/qwen3.7-plus
awkweave-0004268
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
kim cobalt 88 kim ember 92 hana juniper 17 alice indigo 5 chen cobalt 96 farah juniper 42 dina grove 5
kim cobalt 88 kim ember 92 hana juniper 17 alice indigo 5 chen cobalt 96 farah juniper 42
farah birch 5 lina birch 3 kim grove 42 eli cobalt 42 ivan fable 53 chen delta 112 ivan cobalt 9 ivan juniper 25 farah harbor 54 alice ember 76
farah birch 5 lina birch 3 kim grove 42 ivan fable 53 chen delta 112 ivan cobalt 9 ivan juniper 25 farah harbor 54 alice ember 76
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004268-p1
Retain only the first occurrence for every unique value in the third column, preserving the original input order.
!seen[$3]++
kim cobalt 88 kim ember 92 hana juniper 17 alice indigo 5 chen cobalt 96 farah juniper 42 dina grove 5
kim cobalt 88 kim ember 92 hana juniper 17 alice indigo 5 chen cobalt 96 farah juniper 42
farah birch 5 lina birch 3 kim grove 42 eli cobalt 42 ivan fable 53 chen delta 112 ivan cobalt 9 ivan juniper 25 farah harbor 54 alice ember 76
farah birch 5 lina birch 3 kim grove 42 ivan fable 53 chen delta 112 ivan cobalt 9 ivan juniper 25 farah harbor 54 alice ember 76
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004268
qwen/qwen3.7-plus
awkweave-0004269
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
dina 7 cobalt lina 17 delta alice 2 harbor jules 16 grove bruno 11 ember gus 29 indigo hana 5 harbor
dina 7 lina 24 alice 26 jules 42 bruno 53 gus 82 hana 87
jules 14 harbor alice 26 ember eli 8 grove eli 16 amber eli 13 birch jules 17 juniper lina 29 ember kim 20 juniper jules 27 indigo
jules 14 alice 40 eli 48 eli 64 eli 77 jules 94 lina 123 kim 143 jules 170
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004269-p1
For each entry, output the first column alongside the cumulative sum of the second column, separated by a space.
{s+=$2;print $1,s}
dina 7 cobalt lina 17 delta alice 2 harbor jules 16 grove bruno 11 ember gus 29 indigo hana 5 harbor
dina 7 lina 24 alice 26 jules 42 bruno 53 gus 82 hana 87
jules 14 harbor alice 26 ember eli 8 grove eli 16 amber eli 13 birch jules 17 juniper lina 29 ember kim 20 juniper jules 27 indigo
jules 14 alice 40 eli 48 eli 64 eli 77 jules 94 lina 123 kim 143 jules 170
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004269
qwen/qwen3.7-plus
awkweave-0004270
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
eli 11 12 cobalt kim 3 10 delta ivan 18 13 indigo dina 2 13 amber hana 1 16 ember dina 21 16 harbor gus 3 6 amber dina 28 23 amber dina 6 17 birch hana 29 20 amber
eli 23 kim 13 ivan 31 dina 15 hana 17 dina 37 gus 9 dina 51 dina 23 hana 49
kim 4 22 birch lina 17 27 ember eli 16 18 amber eli 13 26 ember kim 21 25 ember bruno 26 1 juniper dina 13 27 harbor
kim 26 lina 44 eli 34 eli 39 kim 46 bruno 27 dina 40
computed_field
1
train
original-grammar
CC-BY-4.0
null
null