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-0017050-p1
Print lines 2 to 3, inclusive of both ends.
NR >= 2 && NR <= 3
alice delta 86 kim grove 5 farah delta 105 gus grove 102 hana harbor 56 chen fable 31
kim grove 5 farah delta 105
gus delta 46 gus cobalt 53 chen amber 41 eli indigo 54 farah delta 42 eli birch 67 lina cobalt 10
gus cobalt 53 chen amber 41
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017050
qwen/qwen3.7-plus
awkweave-0017051
Output only the first 3 records.
NR <= 3
alice 96 fable eli 26 delta ivan 10 juniper hana 20 birch bruno 102 indigo hana 57 delta eli 68 ember dina 17 ember
alice 96 fable eli 26 delta ivan 10 juniper
gus 37 harbor hana 70 indigo eli 77 grove ivan 63 cobalt dina 77 indigo bruno 66 grove alice 118 birch eli 30 harbor
gus 37 harbor hana 70 indigo eli 77 grove
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017051-p1
Show only the first 3 records.
NR <= 3
alice 96 fable eli 26 delta ivan 10 juniper hana 20 birch bruno 102 indigo hana 57 delta eli 68 ember dina 17 ember
alice 96 fable eli 26 delta ivan 10 juniper
gus 37 harbor hana 70 indigo eli 77 grove ivan 63 cobalt dina 77 indigo bruno 66 grove alice 118 birch eli 30 harbor
gus 37 harbor hana 70 indigo eli 77 grove
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017051
qwen/qwen3.7-plus
awkweave-0017052
Skip the first line and print every remaining line unchanged.
NR > 1
bruno 73 cobalt farah 37 cobalt chen 51 amber gus 65 harbor eli 67 delta farah 71 grove eli 56 ember alice 41 birch alice 83 fable jules 73 fable
farah 37 cobalt chen 51 amber gus 65 harbor eli 67 delta farah 71 grove eli 56 ember alice 41 birch alice 83 fable jules 73 fable
farah 82 ember ivan 6 birch dina 10 juniper bruno 32 fable alice 53 ember lina 60 fable chen 98 fable bruno 0 cobalt ivan 51 indigo
ivan 6 birch dina 10 juniper bruno 32 fable alice 53 ember lina 60 fable chen 98 fable bruno 0 cobalt ivan 51 indigo
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017052-p1
Omit the first line and output all subsequent lines as they are.
NR > 1
bruno 73 cobalt farah 37 cobalt chen 51 amber gus 65 harbor eli 67 delta farah 71 grove eli 56 ember alice 41 birch alice 83 fable jules 73 fable
farah 37 cobalt chen 51 amber gus 65 harbor eli 67 delta farah 71 grove eli 56 ember alice 41 birch alice 83 fable jules 73 fable
farah 82 ember ivan 6 birch dina 10 juniper bruno 32 fable alice 53 ember lina 60 fable chen 98 fable bruno 0 cobalt ivan 51 indigo
ivan 6 birch dina 10 juniper bruno 32 fable alice 53 ember lina 60 fable chen 98 fable bruno 0 cobalt ivan 51 indigo
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017052
qwen/qwen3.7-plus
awkweave-0017053
Count how many records have ready in column 2. Print 0 if there are none.
$2 == "ready"{n++}END{print n+0}
kim paused 59 eli failed 56 dina closed 76 hana closed 25 kim active 85 chen closed 100 dina ready 116
1
jules active 70 kim closed 48 bruno ready 107 bruno closed 99 hana failed 24 eli paused 111
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017053-p1
Count records with ready in the second column; output 0 if none exist.
$2 == "ready"{n++}END{print n+0}
kim paused 59 eli failed 56 dina closed 76 hana closed 25 kim active 85 chen closed 100 dina ready 116
1
jules active 70 kim closed 48 bruno ready 107 bruno closed 99 hana failed 24 eli paused 111
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017053
qwen/qwen3.7-plus
awkweave-0017054
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
7 grove chen 3 juniper ivan 13 indigo dina 30 delta ivan 18 grove kim 14 grove chen 20 harbor hana 14 fable eli 12 ember bruno
131
23 fable chen 2 amber jules 19 fable jules 6 amber jules 15 fable dina 12 delta chen 2 delta chen 21 delta farah
100
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017054-p1
Compute and display the sum of integer values in the first column.
{s+=$1}END{print s+0}
7 grove chen 3 juniper ivan 13 indigo dina 30 delta ivan 18 grove kim 14 grove chen 20 harbor hana 14 fable eli 12 ember bruno
131
23 fable chen 2 amber jules 19 fable jules 6 amber jules 15 fable dina 12 delta chen 2 delta chen 21 delta farah
100
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017054
qwen/qwen3.7-plus
awkweave-0017055
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
fable 9 chen ember 12 dina delta 20 ivan birch 29 dina delta 30 dina harbor 5 kim delta 21 hana ember 29 bruno juniper 22 jules juniper 29 ivan
20.60
fable 20 farah indigo 16 chen harbor 30 gus ember 2 ivan harbor 13 eli indigo 26 eli ember 15 chen amber 11 bruno harbor 14 eli
16.33
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017055-p1
Print the average of the second column, rounded to two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
fable 9 chen ember 12 dina delta 20 ivan birch 29 dina delta 30 dina harbor 5 kim delta 21 hana ember 29 bruno juniper 22 jules juniper 29 ivan
20.60
fable 20 farah indigo 16 chen harbor 30 gus ember 2 ivan harbor 13 eli indigo 26 eli ember 15 chen amber 11 bruno harbor 14 eli
16.33
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017055
qwen/qwen3.7-plus
awkweave-0017056
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
2 alice fable 23 farah indigo 18 alice cobalt 20 jules juniper 3 gus amber 27 alice juniper 7 ivan cobalt 5 eli cobalt
2
1 hana delta 30 chen ember 3 chen amber 6 ivan ember 15 farah juniper 30 lina harbor 16 bruno grove 29 jules juniper 29 ivan cobalt
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017056-p1
Identify and output the minimum numeric value in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
2 alice fable 23 farah indigo 18 alice cobalt 20 jules juniper 3 gus amber 27 alice juniper 7 ivan cobalt 5 eli cobalt
2
1 hana delta 30 chen ember 3 chen amber 6 ivan ember 15 farah juniper 30 lina harbor 16 bruno grove 29 jules juniper 29 ivan cobalt
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017056
qwen/qwen3.7-plus
awkweave-0017057
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
kim 30 birch ivan 1 delta gus 29 grove eli 25 harbor gus 23 birch eli 26 ember alice 29 fable dina 25 fable
30
chen 24 delta kim 29 delta lina 16 birch eli 24 harbor chen 26 indigo hana 15 cobalt chen 27 ember dina 28 indigo bruno 18 grove
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017057-p1
Identify and output the maximum numeric value in the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
kim 30 birch ivan 1 delta gus 29 grove eli 25 harbor gus 23 birch eli 26 ember alice 29 fable dina 25 fable
30
chen 24 delta kim 29 delta lina 16 birch eli 24 harbor chen 26 indigo hana 15 cobalt chen 27 ember dina 28 indigo bruno 18 grove
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017057
qwen/qwen3.7-plus
awkweave-0017058
Count all input records and print the total.
END{print NR}
kim 114 kim 37 kim 17 gus 95 kim 78 dina 44 dina 13 eli 58
8
alice 112 alice 11 kim 92 dina 88 hana 52 gus 113 chen 106 dina 113 hana 99
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017058-p1
Count the total number of input records and print the result.
END{print NR}
kim 114 kim 37 kim 17 gus 95 kim 78 dina 44 dina 13 eli 58
8
alice 112 alice 11 kim 92 dina 88 hana 52 gus 113 chen 106 dina 113 hana 99
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017058
qwen/qwen3.7-plus
awkweave-0017059
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
kim delta 83 jules harbor 36 dina harbor 12 kim juniper 81 ivan amber 25 kim delta 83 eli ember 59 lina harbor 3
kim delta 83 jules harbor 36 dina harbor 12 kim juniper 81 ivan amber 25 eli ember 59 lina harbor 3
ivan fable 73 chen amber 1 ivan ember 33 dina indigo 82 jules cobalt 101 eli delta 1 chen fable 73 chen amber 1
ivan fable 73 chen amber 1 ivan ember 33 dina indigo 82 jules cobalt 101 eli delta 1 chen fable 73
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017059-p1
Eliminate exact duplicate lines while keeping the first occurrence and maintaining original order.
!seen[$0]++
kim delta 83 jules harbor 36 dina harbor 12 kim juniper 81 ivan amber 25 kim delta 83 eli ember 59 lina harbor 3
kim delta 83 jules harbor 36 dina harbor 12 kim juniper 81 ivan amber 25 eli ember 59 lina harbor 3
ivan fable 73 chen amber 1 ivan ember 33 dina indigo 82 jules cobalt 101 eli delta 1 chen fable 73 chen amber 1
ivan fable 73 chen amber 1 ivan ember 33 dina indigo 82 jules cobalt 101 eli delta 1 chen fable 73
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017059
qwen/qwen3.7-plus
awkweave-0017060
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
gus grove 33 dina amber 25 alice cobalt 14 lina harbor 80 ivan grove 88 ivan birch 30
gus grove 33 dina amber 25 alice cobalt 14 lina harbor 80 ivan grove 88
hana birch 60 alice harbor 73 jules ember 62 alice harbor 54 lina birch 21 eli harbor 61 hana amber 29 farah indigo 103 ivan delta 106
hana birch 60 alice harbor 73 jules ember 62 lina birch 21 eli harbor 61 farah indigo 103 ivan delta 106
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017060-p1
Retain only the initial occurrence of each unique value in column 1, maintaining the original input sequence.
!seen[$1]++
gus grove 33 dina amber 25 alice cobalt 14 lina harbor 80 ivan grove 88 ivan birch 30
gus grove 33 dina amber 25 alice cobalt 14 lina harbor 80 ivan grove 88
hana birch 60 alice harbor 73 jules ember 62 alice harbor 54 lina birch 21 eli harbor 61 hana amber 29 farah indigo 103 ivan delta 106
hana birch 60 alice harbor 73 jules ember 62 lina birch 21 eli harbor 61 farah indigo 103 ivan delta 106
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017060
qwen/qwen3.7-plus
awkweave-0017061
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
eli 22 juniper alice 28 birch dina 22 delta eli 7 birch dina 26 juniper dina 29 birch bruno 25 grove ivan 10 indigo
eli 22 alice 50 dina 72 eli 79 dina 105 dina 134 bruno 159 ivan 169
chen 3 amber farah 11 cobalt ivan 24 fable hana 17 cobalt gus 9 cobalt kim 24 cobalt kim 15 harbor ivan 14 harbor
chen 3 farah 14 ivan 38 hana 55 gus 64 kim 88 kim 103 ivan 117
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017061-p1
Output column 1 alongside the cumulative total of column 2 for every record, using a space as the delimiter.
{s+=$2;print $1,s}
eli 22 juniper alice 28 birch dina 22 delta eli 7 birch dina 26 juniper dina 29 birch bruno 25 grove ivan 10 indigo
eli 22 alice 50 dina 72 eli 79 dina 105 dina 134 bruno 159 ivan 169
chen 3 amber farah 11 cobalt ivan 24 fable hana 17 cobalt gus 9 cobalt kim 24 cobalt kim 15 harbor ivan 14 harbor
chen 3 farah 14 ivan 38 hana 55 gus 64 kim 88 kim 103 ivan 117
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017061
qwen/qwen3.7-plus
awkweave-0017062
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
hana 21 25 cobalt dina 1 12 fable alice 23 2 ember gus 6 28 delta alice 29 22 amber jules 9 12 delta kim 24 4 fable lina 18 8 cobalt
hana 46 dina 13 alice 25 gus 34 alice 51 jules 21 kim 28 lina 26
bruno 5 5 harbor ivan 30 18 juniper lina 3 29 delta farah 8 5 cobalt farah 18 27 birch dina 26 14 delta
bruno 10 ivan 48 lina 32 farah 13 farah 45 dina 40
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017062-p1
For each row, display field 1 followed by the combined total of fields 2 and 3.
{print $1,$2+$3}
hana 21 25 cobalt dina 1 12 fable alice 23 2 ember gus 6 28 delta alice 29 22 amber jules 9 12 delta kim 24 4 fable lina 18 8 cobalt
hana 46 dina 13 alice 25 gus 34 alice 51 jules 21 kim 28 lina 26
bruno 5 5 harbor ivan 30 18 juniper lina 3 29 delta farah 8 5 cobalt farah 18 27 birch dina 26 14 delta
bruno 10 ivan 48 lina 32 farah 13 farah 45 dina 40
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017062
qwen/qwen3.7-plus
awkweave-0017063
Print column 1 and pass when column 2 is at least 22; otherwise print fail.
{print $1,($2>=22?"pass":"fail")}
kim 24 farah 26 jules 8 bruno 23 bruno 8 chen 23
kim pass farah pass jules fail bruno pass bruno fail chen pass
gus 27 jules 20 ivan 1 kim 16 bruno 2 eli 6
gus pass jules fail ivan fail kim fail bruno fail eli fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017063-p1
Output column 1 and label it 'pass' if column 2 is greater than or equal to 22; otherwise, label it 'fail'.
{print $1,($2>=22?"pass":"fail")}
kim 24 farah 26 jules 8 bruno 23 bruno 8 chen 23
kim pass farah pass jules fail bruno pass bruno fail chen pass
gus 27 jules 20 ivan 1 kim 16 bruno 2 eli 6
gus pass jules fail ivan fail kim fail bruno fail eli fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017063
qwen/qwen3.7-plus
awkweave-0017064
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
eli cobalt 49 eli juniper 2 bruno fable 24 kim amber 32 eli delta 84 jules harbor 28 bruno birch 66
ELI ELI BRUNO KIM ELI JULES BRUNO
dina amber 21 alice delta 24 gus birch 31 chen grove 5 chen grove 38 hana birch 17 ivan cobalt 23 farah indigo 104 lina indigo 54
DINA ALICE GUS CHEN CHEN HANA IVAN FARAH LINA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017064-p1
Transform column 1 to uppercase letters and output only this modified column.
{print toupper($1)}
eli cobalt 49 eli juniper 2 bruno fable 24 kim amber 32 eli delta 84 jules harbor 28 bruno birch 66
ELI ELI BRUNO KIM ELI JULES BRUNO
dina amber 21 alice delta 24 gus birch 31 chen grove 5 chen grove 38 hana birch 17 ivan cobalt 23 farah indigo 104 lina indigo 54
DINA ALICE GUS CHEN CHEN HANA IVAN FARAH LINA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017064
qwen/qwen3.7-plus
awkweave-0017065
From column 1, print 3 characters starting at character 2.
{print substr($1,2,3)}
grove 48 cobalt 116 birch 7 juniper 31 fable 4 delta 11 indigo 55 fable 64 grove 47 delta 61
rov oba irc uni abl elt ndi abl rov elt
juniper 21 juniper 107 cobalt 64 ember 7 harbor 85 fable 114 birch 58
uni uni oba mbe arb abl irc
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017065-p1
Extract and print a substring of length 3 from column 1, beginning at the second character.
{print substr($1,2,3)}
grove 48 cobalt 116 birch 7 juniper 31 fable 4 delta 11 indigo 55 fable 64 grove 47 delta 61
rov oba irc uni abl elt ndi abl rov elt
juniper 21 juniper 107 cobalt 64 ember 7 harbor 85 fable 114 birch 58
uni uni oba mbe arb abl irc
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017065
qwen/qwen3.7-plus
awkweave-0017066
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
indigo_amber 5 birch_ember 28 ember_fable 116 delta_cobalt 95 birch_juniper 81 fable_ember 72
indigo amber birch ember ember fable delta cobalt birch juniper fable ember
harbor_harbor 42 harbor_cobalt 81 delta_indigo 32 cobalt_birch 37 indigo_birch 20 grove_cobalt 69 grove_amber 84 harbor_amber 112 ember_grove 111 harbor_juniper 112
harbor harbor harbor cobalt delta indigo cobalt birch indigo birch grove cobalt grove amber harbor amber ember grove harbor juniper
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017066-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
indigo_amber 5 birch_ember 28 ember_fable 116 delta_cobalt 95 birch_juniper 81 fable_ember 72
indigo amber birch ember ember fable delta cobalt birch juniper fable ember
harbor_harbor 42 harbor_cobalt 81 delta_indigo 32 cobalt_birch 37 indigo_birch 20 grove_cobalt 69 grove_amber 84 harbor_amber 112 ember_grove 111 harbor_juniper 112
harbor harbor harbor cobalt delta indigo cobalt birch indigo birch grove cobalt grove amber harbor amber ember grove harbor juniper
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017066
qwen/qwen3.7-plus
awkweave-0017067
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)}
gus indigo 9 active lina indigo 9 ready farah cobalt 7 ready kim amber 113 pending farah juniper 111 active gus birch 55 closed
active 9 indigo gus ready 9 indigo lina ready 7 cobalt farah pending 113 amber kim active 111 juniper farah closed 55 birch gus
gus indigo 41 closed ivan indigo 13 pending kim juniper 96 ready lina harbor 84 pending hana juniper 7 pending bruno cobalt 65 paused dina indigo 96 pending eli ember 52 failed chen cobalt 75 closed
closed 41 indigo gus pending 13 indigo ivan ready 96 juniper kim pending 84 harbor lina pending 7 juniper hana paused 65 cobalt bruno pending 96 indigo dina failed 52 ember eli closed 75 cobalt chen
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017067-p1
Reverse the sequence of all fields on each line and print the result.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
gus indigo 9 active lina indigo 9 ready farah cobalt 7 ready kim amber 113 pending farah juniper 111 active gus birch 55 closed
active 9 indigo gus ready 9 indigo lina ready 7 cobalt farah pending 113 amber kim active 111 juniper farah closed 55 birch gus
gus indigo 41 closed ivan indigo 13 pending kim juniper 96 ready lina harbor 84 pending hana juniper 7 pending bruno cobalt 65 paused dina indigo 96 pending eli ember 52 failed chen cobalt 75 closed
closed 41 indigo gus pending 13 indigo ivan ready 96 juniper kim pending 84 harbor lina pending 7 juniper hana paused 65 cobalt bruno pending 96 indigo dina failed 52 ember eli closed 75 cobalt chen
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017067
qwen/qwen3.7-plus
awkweave-0017068
Print the number of whitespace-separated fields on each line.
{print NF}
lina indigo 89 failed jules delta 39 ready lina birch 49 pending lina harbor 14 pending kim juniper 51 paused dina delta 81 pending lina indigo 29 ready kim delta 19 paused kim fable 90 ready
4 4 4 4 4 4 4 4 4
alice juniper 43 paused chen harbor 31 closed kim harbor 13 failed kim delta 47 paused alice ember 65 active bruno cobalt 13 failed ivan fable 92 closed farah amber 94 active hana harbor 33 failed
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017068-p1
Output the count of whitespace-delimited fields present on each line.
{print NF}
lina indigo 89 failed jules delta 39 ready lina birch 49 pending lina harbor 14 pending kim juniper 51 paused dina delta 81 pending lina indigo 29 ready kim delta 19 paused kim fable 90 ready
4 4 4 4 4 4 4 4 4
alice juniper 43 paused chen harbor 31 closed kim harbor 13 failed kim delta 47 paused alice ember 65 active bruno cobalt 13 failed ivan fable 92 closed farah amber 94 active hana harbor 33 failed
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017068
qwen/qwen3.7-plus
awkweave-0017069
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]]}
gus delta 118 kim gamma 20 bruno delta 51 farah gamma 14 farah alpha 56 hana beta 73
delta 2 gamma 2 alpha 1 beta 1
lina delta 89 kim delta 53 eli alpha 82 farah gamma 25 hana alpha 4 gus delta 26 chen delta 6 ivan beta 29
delta 4 alpha 2 gamma 1 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017069-p1
Tally the number of records for each distinct value in column 2, listing each value and 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]]}
gus delta 118 kim gamma 20 bruno delta 51 farah gamma 14 farah alpha 56 hana beta 73
delta 2 gamma 2 alpha 1 beta 1
lina delta 89 kim delta 53 eli alpha 82 farah gamma 25 hana alpha 4 gus delta 26 chen delta 6 ivan beta 29
delta 4 alpha 2 gamma 1 beta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017069
qwen/qwen3.7-plus
awkweave-0017070
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]]}
eli beta 14 chen gamma 12 farah alpha 6 chen gamma 12 bruno delta 6 jules delta 12 chen gamma 14 kim gamma 25 dina delta 22 alice beta 11
beta 25 gamma 63 alpha 6 delta 40
lina delta 19 gus beta 7 bruno beta 29 lina delta 15 hana alpha 29 ivan delta 12 farah alpha 27 chen beta 14 dina alpha 4 kim alpha 6
delta 46 beta 50 alpha 66
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017070-p1
Calculate the sum of column 3 for each group defined by column 2, presenting the results in the order of the groups' 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]]}
eli beta 14 chen gamma 12 farah alpha 6 chen gamma 12 bruno delta 6 jules delta 12 chen gamma 14 kim gamma 25 dina delta 22 alice beta 11
beta 25 gamma 63 alpha 6 delta 40
lina delta 19 gus beta 7 bruno beta 29 lina delta 15 hana alpha 29 ivan delta 12 farah alpha 27 chen beta 14 dina alpha 4 kim alpha 6
delta 46 beta 50 alpha 66
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017070
qwen/qwen3.7-plus
awkweave-0017071
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 fable 68 beta fable 50 delta fable 80 beta harbor 36 beta ember 35 beta fable 17
beta 4
gamma birch 29 alpha ember 59 gamma cobalt 84 delta cobalt 12 beta grove 5 delta amber 99 alpha birch 45
gamma 2 alpha 2 delta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017071-p1
List each duplicate value from column 1 along with its frequency, ordered by when the value first appeared.
{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 fable 68 beta fable 50 delta fable 80 beta harbor 36 beta ember 35 beta fable 17
beta 4
gamma birch 29 alpha ember 59 gamma cobalt 84 delta cobalt 12 beta grove 5 delta amber 99 alpha birch 45
gamma 2 alpha 2 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017071
qwen/qwen3.7-plus
awkweave-0017072
The first row is a header. Print the display_name column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
region record_id state display_name r001 kim 30 paused r002 eli 18 pending r003 bruno 24 closed r004 eli 13 paused r005 chen 3 failed r006 lina 16 ready r007 farah 20 active
paused pending closed paused failed ready active
region record_id state display_name r001 chen 26 pending r002 hana 2 pending r003 hana 22 failed r004 gus 5 ready r005 eli 14 pending r006 jules 25 ready r007 jules 11 pending r008 lina 29 ready r009 eli 22 pending
pending pending failed ready pending ready pending ready pending
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017072-p1
Skip the header row and output the display_name column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
region record_id state display_name r001 kim 30 paused r002 eli 18 pending r003 bruno 24 closed r004 eli 13 paused r005 chen 3 failed r006 lina 16 ready r007 farah 20 active
paused pending closed paused failed ready active
region record_id state display_name r001 chen 26 pending r002 hana 2 pending r003 hana 22 failed r004 gus 5 ready r005 eli 14 pending r006 jules 25 ready r007 jules 11 pending r008 lina 29 ready r009 eli 22 pending
pending pending failed ready pending ready pending ready pending
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017072
qwen/qwen3.7-plus
awkweave-0017073
The first row is a header. Print display_name for data rows whose score is greater than 18.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]}
record_id display_name score state r001 hana 20 ready r002 ivan 1 failed r003 kim 11 paused r004 lina 22 pending r005 kim 15 ready r006 kim 20 pending
hana lina kim
record_id display_name score state r001 eli 17 failed r002 kim 10 paused r003 chen 13 active r004 bruno 26 ready r005 farah 4 closed r006 bruno 15 closed r007 bruno 15 ready r008 eli 12 failed r009 kim 28 closed
bruno kim
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017073-p1
Ignore the header, then print the display_name for rows where the score exceeds 18.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]}
record_id display_name score state r001 hana 20 ready r002 ivan 1 failed r003 kim 11 paused r004 lina 22 pending r005 kim 15 ready r006 kim 20 pending
hana lina kim
record_id display_name score state r001 eli 17 failed r002 kim 10 paused r003 chen 13 active r004 bruno 26 ready r005 farah 4 closed r006 bruno 15 closed r007 bruno 15 ready r008 eli 12 failed r009 kim 28 closed
bruno kim
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017073
qwen/qwen3.7-plus
awkweave-0017074
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
farah 22 closed ivan 16 paused dina 26 active gus 8 ready farah 5 ready farah 22 paused farah 7 failed ivan 30 closed bruno 8 ready dina 25 pending
farah ivan dina gus farah farah farah ivan bruno dina
lina 9 paused ivan 22 ready eli 25 paused eli 2 pending gus 10 closed dina 25 failed farah 28 ready ivan 20 ready alice 28 closed
lina ivan eli eli gus dina farah ivan alice
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017074-p1
Given tab-separated input, extract and print the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
farah 22 closed ivan 16 paused dina 26 active gus 8 ready farah 5 ready farah 22 paused farah 7 failed ivan 30 closed bruno 8 ready dina 25 pending
farah ivan dina gus farah farah farah ivan bruno dina
lina 9 paused ivan 22 ready eli 25 paused eli 2 pending gus 10 closed dina 25 failed farah 28 ready ivan 20 ready alice 28 closed
lina ivan eli eli gus dina farah ivan alice
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017074
qwen/qwen3.7-plus
awkweave-0017075
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 13.
BEGIN{FS=OFS=","}$2>13{print $1}
gus,17,active kim,19,pending farah,18,closed jules,4,paused chen,2,failed bruno,15,ready gus,21,paused gus,15,pending eli,11,paused
gus kim farah bruno gus gus
jules,1,active jules,26,paused kim,6,active gus,28,failed farah,26,ready bruno,17,failed chen,17,paused ivan,16,paused kim,2,active
jules gus farah bruno chen ivan
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017075-p1
For simple comma-separated data without quoted commas, print the first column if the second column is greater than 13.
BEGIN{FS=OFS=","}$2>13{print $1}
gus,17,active kim,19,pending farah,18,closed jules,4,paused chen,2,failed bruno,15,ready gus,21,paused gus,15,pending eli,11,paused
gus kim farah bruno gus gus
jules,1,active jules,26,paused kim,6,active gus,28,failed farah,26,ready bruno,17,failed chen,17,paused ivan,16,paused kim,2,active
jules gus farah bruno chen ivan
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017075
qwen/qwen3.7-plus
awkweave-0017076
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
alice delta 39 alice birch 103 lina harbor 113 bruno grove 82 gus birch 11 dina cobalt 114 bruno ember 36
alice delta 39 alice birch 103 lina harbor 113 bruno grove 82 gus birch 11 dina cobalt 114 bruno ember 36
eli indigo 68 alice fable 58 alice harbor 62 ivan cobalt 66 gus ember 25 jules harbor 1 ivan indigo 25 gus birch 71 kim fable 48
eli indigo 68 alice fable 58 alice harbor 62 ivan cobalt 66 gus ember 25 jules harbor 1 ivan indigo 25 gus birch 71 kim fable 48
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017076-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
alice delta 39 alice birch 103 lina harbor 113 bruno grove 82 gus birch 11 dina cobalt 114 bruno ember 36
alice delta 39 alice birch 103 lina harbor 113 bruno grove 82 gus birch 11 dina cobalt 114 bruno ember 36
eli indigo 68 alice fable 58 alice harbor 62 ivan cobalt 66 gus ember 25 jules harbor 1 ivan indigo 25 gus birch 71 kim fable 48
eli indigo 68 alice fable 58 alice harbor 62 ivan cobalt 66 gus ember 25 jules harbor 1 ivan indigo 25 gus birch 71 kim fable 48
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017076
qwen/qwen3.7-plus
awkweave-0017077
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
bruno ember 107 paused ivan delta 35 pending bruno grove 60 failed hana cobalt 119 active gus amber 28 failed bruno birch 105 ready kim indigo 57 failed hana cobalt 108 ready lina cobalt 82 active eli ember 25 closed
bruno ember 107 paused
chen birch 57 ready farah delta 109 ready alice indigo 36 ready chen birch 90 ready farah fable 94 failed bruno indigo 77 active dina indigo 56 active
bruno indigo 77 active
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017077-p1
Identify and print the longest line from the input; in case of a tie, select the first occurrence.
{if(length($0)>length(best))best=$0}END{print best}
bruno ember 107 paused ivan delta 35 pending bruno grove 60 failed hana cobalt 119 active gus amber 28 failed bruno birch 105 ready kim indigo 57 failed hana cobalt 108 ready lina cobalt 82 active eli ember 25 closed
bruno ember 107 paused
chen birch 57 ready farah delta 109 ready alice indigo 36 ready chen birch 90 ready farah fable 94 failed bruno indigo 77 active dina indigo 56 active
bruno indigo 77 active
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017077
qwen/qwen3.7-plus
awkweave-0017078
Print every 3rd line starting at line 1 (then line 4, and so on).
NR%3==1
chen 27 chen 92 alice 103 jules 79 gus 69 alice 104 gus 33
chen 27 jules 79 gus 33
alice 44 farah 78 chen 75 gus 7 dina 75 ivan 48 gus 1
alice 44 gus 7 gus 1
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017078-p1
Output every third line beginning with the first line (i.e., lines 1, 4, 7, etc.).
NR%3==1
chen 27 chen 92 alice 103 jules 79 gus 69 alice 104 gus 33
chen 27 jules 79 gus 33
alice 44 farah 78 chen 75 gus 7 dina 75 ivan 48 gus 1
alice 44 gus 7 gus 1
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017078
qwen/qwen3.7-plus
awkweave-0017079
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta delta 55 delta indigo 48 gamma grove 107 beta cobalt 31 gamma juniper 90 delta cobalt 104 beta harbor 30
6
gamma delta 77 beta amber 60 delta harbor 95 delta grove 69 gamma cobalt 51 delta juniper 80 alpha harbor 50 alpha harbor 60
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017079-p1
Calculate the number of unique values in the second column and print only that total count.
{if(!seen[$2]++)n++}END{print n+0}
beta delta 55 delta indigo 48 gamma grove 107 beta cobalt 31 gamma juniper 90 delta cobalt 104 beta harbor 30
6
gamma delta 77 beta amber 60 delta harbor 95 delta grove 69 gamma cobalt 51 delta juniper 80 alpha harbor 50 alpha harbor 60
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017079
qwen/qwen3.7-plus
awkweave-0017080
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}
ivan 13 0 kim 19 24 chen 14 8 alice 5 17 gus 7 30 ivan 18 25 lina 17 20 chen 3 17 gus 16 20 chen 30 12
kim 0.79 chen 1.75 alice 0.29 gus 0.23 ivan 0.72 lina 0.85 chen 0.18 gus 0.80 chen 2.50
bruno 13 0 chen 10 20 hana 28 20 hana 21 25 hana 23 22 farah 3 8 lina 10 22 alice 5 4 gus 15 7
chen 0.50 hana 1.40 hana 0.84 hana 1.05 farah 0.38 lina 0.45 alice 1.25 gus 2.14
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017080-p1
For each row, output the first column and the result of dividing the second column by the third (formatted to two decimal places), skipping any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 13 0 kim 19 24 chen 14 8 alice 5 17 gus 7 30 ivan 18 25 lina 17 20 chen 3 17 gus 16 20 chen 30 12
kim 0.79 chen 1.75 alice 0.29 gus 0.23 ivan 0.72 lina 0.85 chen 0.18 gus 0.80 chen 2.50
bruno 13 0 chen 10 20 hana 28 20 hana 21 25 hana 23 22 farah 3 8 lina 10 22 alice 5 4 gus 15 7
chen 0.50 hana 1.40 hana 0.84 hana 1.05 farah 0.38 lina 0.45 alice 1.25 gus 2.14
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017080
qwen/qwen3.7-plus
awkweave-0017081
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]}
jules juniper 1 farah harbor 18 bruno birch 3 ivan birch 9 farah grove 7 kim birch 30 gus juniper 3
kim birch 30 farah harbor 18 ivan birch 9
jules harbor 7 dina fable 28 gus harbor 15 gus indigo 6 ivan fable 8 eli indigo 19 ivan birch 17
dina fable 28 eli indigo 19 ivan birch 17
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017081-p1
Select the top three records with the highest numeric values in column 3, sorted in descending order, while maintaining 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]}
jules juniper 1 farah harbor 18 bruno birch 3 ivan birch 9 farah grove 7 kim birch 30 gus juniper 3
kim birch 30 farah harbor 18 ivan birch 9
jules harbor 7 dina fable 28 gus harbor 15 gus indigo 6 ivan fable 8 eli indigo 19 ivan birch 17
dina fable 28 eli indigo 19 ivan birch 17
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017081
qwen/qwen3.7-plus
awkweave-0017082
For each line, output fields 2 and 1, in that order.
{print $2, $1}
1 ready birch cobalt ivan 34 pending cobalt delta jules 27 ready juniper ember jules 64 ready birch indigo kim 38 paused delta grove ivan 97 active birch amber dina 21 ready amber juniper gus 20 closed birch indigo ivan
ready 1 pending 34 ready 27 ready 64 paused 38 active 97 ready 21 closed 20
105 ready birch juniper dina 47 ready juniper delta kim 51 failed indigo cobalt gus 10 pending cobalt ember ivan 57 active cobalt amber gus 42 active indigo grove kim 42 closed harbor indigo dina 108 paused amber indigo gus 39 failed juniper juniper gus 72 paused juniper indigo eli
ready 105 ready 47 failed 51 pending 10 active 57 active 42 closed 42 paused 108 failed 39 paused 72
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017082-p1
For every line, print the second field followed by the first field.
{print $2, $1}
1 ready birch cobalt ivan 34 pending cobalt delta jules 27 ready juniper ember jules 64 ready birch indigo kim 38 paused delta grove ivan 97 active birch amber dina 21 ready amber juniper gus 20 closed birch indigo ivan
ready 1 pending 34 ready 27 ready 64 paused 38 active 97 ready 21 closed 20
105 ready birch juniper dina 47 ready juniper delta kim 51 failed indigo cobalt gus 10 pending cobalt ember ivan 57 active cobalt amber gus 42 active indigo grove kim 42 closed harbor indigo dina 108 paused amber indigo gus 39 failed juniper juniper gus 72 paused juniper indigo eli
ready 105 ready 47 failed 51 pending 10 active 57 active 42 closed 42 paused 108 failed 39 paused 72
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017082
qwen/qwen3.7-plus
awkweave-0017083
Print the last field of every input line.
{print $NF}
paused juniper ready paused fable paused paused delta active closed juniper failed failed juniper failed failed grove ready active juniper pending paused birch failed
ready paused active failed failed ready pending failed
paused birch pending pending fable closed paused grove ready paused harbor pending active fable failed pending harbor closed
pending closed ready pending failed closed
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017083-p1
Extract and print the final field from each input line.
{print $NF}
paused juniper ready paused fable paused paused delta active closed juniper failed failed juniper failed failed grove ready active juniper pending paused birch failed
ready paused active failed failed ready pending failed
paused birch pending pending fable closed paused grove ready paused harbor pending active fable failed pending harbor closed
pending closed ready pending failed closed
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017083
qwen/qwen3.7-plus
awkweave-0017084
Print the complete records where column 3 is at most 75.
$3 <= 75
harbor amber 65 gus amber delta 2 hana harbor ember 96 eli birch fable 120 chen juniper indigo 4 alice indigo amber 82 eli indigo amber 98 bruno
harbor amber 65 gus amber delta 2 hana juniper indigo 4 alice
amber cobalt 18 ivan fable fable 24 jules juniper ember 67 gus birch harbor 13 ivan birch ember 4 jules juniper amber 14 bruno juniper indigo 76 ivan harbor grove 38 bruno cobalt cobalt 87 kim
amber cobalt 18 ivan fable fable 24 jules juniper ember 67 gus birch harbor 13 ivan birch ember 4 jules juniper amber 14 bruno harbor grove 38 bruno
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017084-p1
Output full records where the value in column 3 is less than or equal to 75.
$3 <= 75
harbor amber 65 gus amber delta 2 hana harbor ember 96 eli birch fable 120 chen juniper indigo 4 alice indigo amber 82 eli indigo amber 98 bruno
harbor amber 65 gus amber delta 2 hana juniper indigo 4 alice
amber cobalt 18 ivan fable fable 24 jules juniper ember 67 gus birch harbor 13 ivan birch ember 4 jules juniper amber 14 bruno juniper indigo 76 ivan harbor grove 38 bruno cobalt cobalt 87 kim
amber cobalt 18 ivan fable fable 24 jules juniper ember 67 gus birch harbor 13 ivan birch ember 4 jules juniper amber 14 bruno harbor grove 38 bruno
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017084
qwen/qwen3.7-plus
awkweave-0017085
Show whole lines whose 3rd field is between 9 and 29, inclusive.
$3 >= 9 && $3 <= 29
cobalt fable 6 pending juniper birch 20 ready juniper ember 5 failed grove indigo 20 failed grove birch 14 pending amber ember 16 closed ember cobalt 29 failed indigo cobalt 15 failed delta delta 10 pending indigo grove 13 active
juniper birch 20 ready grove indigo 20 failed grove birch 14 pending amber ember 16 closed ember cobalt 29 failed indigo cobalt 15 failed delta delta 10 pending indigo grove 13 active
indigo amber 13 closed juniper birch 9 closed juniper delta 20 pending ember indigo 8 pending indigo grove 8 pending ember delta 21 closed
indigo amber 13 closed juniper birch 9 closed juniper delta 20 pending ember delta 21 closed
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017085-p1
Display entire lines where the third field falls within the inclusive range of 9 to 29.
$3 >= 9 && $3 <= 29
cobalt fable 6 pending juniper birch 20 ready juniper ember 5 failed grove indigo 20 failed grove birch 14 pending amber ember 16 closed ember cobalt 29 failed indigo cobalt 15 failed delta delta 10 pending indigo grove 13 active
juniper birch 20 ready grove indigo 20 failed grove birch 14 pending amber ember 16 closed ember cobalt 29 failed indigo cobalt 15 failed delta delta 10 pending indigo grove 13 active
indigo amber 13 closed juniper birch 9 closed juniper delta 20 pending ember indigo 8 pending indigo grove 8 pending ember delta 21 closed
indigo amber 13 closed juniper birch 9 closed juniper delta 20 pending ember delta 21 closed
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017085
qwen/qwen3.7-plus
awkweave-0017086
Print column 2 only for rows where column 1 is exactly active.
$1 == "active"{print $2}
paused ivan 66 delta ready alice 83 juniper active hana 100 birch failed bruno 100 cobalt failed kim 52 juniper active jules 115 grove pending jules 58 cobalt failed kim 25 ember closed eli 58 cobalt ready chen 36 grove
hana jules
ready jules 9 indigo failed hana 117 delta active gus 29 juniper ready gus 67 harbor closed dina 61 fable paused bruno 17 amber paused chen 94 cobalt failed lina 55 grove paused farah 82 indigo paused alice 87 grove
gus
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017086-p1
Output only the second column for rows where the first column is exactly active.
$1 == "active"{print $2}
paused ivan 66 delta ready alice 83 juniper active hana 100 birch failed bruno 100 cobalt failed kim 52 juniper active jules 115 grove pending jules 58 cobalt failed kim 25 ember closed eli 58 cobalt ready chen 36 grove
hana jules
ready jules 9 indigo failed hana 117 delta active gus 29 juniper ready gus 67 harbor closed dina 61 fable paused bruno 17 amber paused chen 94 cobalt failed lina 55 grove paused farah 82 indigo paused alice 87 grove
gus
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017086
qwen/qwen3.7-plus
awkweave-0017087
Print all fields from lines where field 3 begins with ERROR.
$3 ~ /^ERROR/
117 cobalt DEBUG 12 amber WARN 93 cobalt DEBUG 53 harbor WARN 56 amber DEBUG 62 cobalt ERROR 30 birch ERROR 23 fable DEBUG 22 fable ERROR
62 cobalt ERROR 30 birch ERROR 22 fable ERROR
59 birch DEBUG 4 birch WARN 53 cobalt INFO 114 harbor WARN 38 indigo ERROR 59 delta ERROR 8 birch WARN 71 birch WARN 62 delta DEBUG 112 fable DEBUG
38 indigo ERROR 59 delta ERROR
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017087-p1
Print all fields from lines where the third field starts with ERROR.
$3 ~ /^ERROR/
117 cobalt DEBUG 12 amber WARN 93 cobalt DEBUG 53 harbor WARN 56 amber DEBUG 62 cobalt ERROR 30 birch ERROR 23 fable DEBUG 22 fable ERROR
62 cobalt ERROR 30 birch ERROR 22 fable ERROR
59 birch DEBUG 4 birch WARN 53 cobalt INFO 114 harbor WARN 38 indigo ERROR 59 delta ERROR 8 birch WARN 71 birch WARN 62 delta DEBUG 112 fable DEBUG
38 indigo ERROR 59 delta ERROR
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017087
qwen/qwen3.7-plus
awkweave-0017088
Print every line except those containing the exact text delta.
$0 !~ /delta/
birch 118 active indigo 60 paused grove 101 closed juniper 87 ready delta 67 ready amber 57 closed birch 92 ready grove 56 paused grove 57 active delta 999 active
birch 118 active indigo 60 paused grove 101 closed juniper 87 ready amber 57 closed birch 92 ready grove 56 paused grove 57 active
fable 10 closed ember 34 paused amber 76 pending juniper 10 active ember 106 failed delta 112 active cobalt 77 active delta 999 active
fable 10 closed ember 34 paused amber 76 pending juniper 10 active ember 106 failed cobalt 77 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017088-p1
Output every line that does not contain the exact string delta.
$0 !~ /delta/
birch 118 active indigo 60 paused grove 101 closed juniper 87 ready delta 67 ready amber 57 closed birch 92 ready grove 56 paused grove 57 active delta 999 active
birch 118 active indigo 60 paused grove 101 closed juniper 87 ready amber 57 closed birch 92 ready grove 56 paused grove 57 active
fable 10 closed ember 34 paused amber 76 pending juniper 10 active ember 106 failed delta 112 active cobalt 77 active delta 999 active
fable 10 closed ember 34 paused amber 76 pending juniper 10 active ember 106 failed cobalt 77 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017088
qwen/qwen3.7-plus
awkweave-0017089
Print lines 4 through 6, including both endpoints.
NR >= 4 && NR <= 6
kim indigo 36 hana delta 7 eli amber 66 lina juniper 0 kim harbor 38 gus amber 34 gus ember 84 chen amber 27 kim amber 95
lina juniper 0 kim harbor 38 gus amber 34
dina birch 38 jules indigo 74 alice cobalt 30 kim fable 13 hana amber 16 lina cobalt 39 dina delta 17 farah amber 48 alice indigo 104
kim fable 13 hana amber 16 lina cobalt 39
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017089-p1
Print lines 4 through 6, inclusive of both endpoints.
NR >= 4 && NR <= 6
kim indigo 36 hana delta 7 eli amber 66 lina juniper 0 kim harbor 38 gus amber 34 gus ember 84 chen amber 27 kim amber 95
lina juniper 0 kim harbor 38 gus amber 34
dina birch 38 jules indigo 74 alice cobalt 30 kim fable 13 hana amber 16 lina cobalt 39 dina delta 17 farah amber 48 alice indigo 104
kim fable 13 hana amber 16 lina cobalt 39
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017089
qwen/qwen3.7-plus
awkweave-0017100
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
alice 23 birch chen 21 amber jules 28 ember farah 6 juniper lina 27 fable gus 20 amber farah 12 juniper
alice 23 chen 44 jules 72 farah 78 lina 105 gus 125 farah 137
lina 26 cobalt dina 18 fable hana 30 ember jules 27 grove dina 11 amber dina 22 juniper bruno 27 juniper bruno 19 indigo alice 10 harbor jules 26 cobalt
lina 26 dina 44 hana 74 jules 101 dina 112 dina 134 bruno 161 bruno 180 alice 190 jules 216
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017100-p1
For each record, output column 1 and the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
alice 23 birch chen 21 amber jules 28 ember farah 6 juniper lina 27 fable gus 20 amber farah 12 juniper
alice 23 chen 44 jules 72 farah 78 lina 105 gus 125 farah 137
lina 26 cobalt dina 18 fable hana 30 ember jules 27 grove dina 11 amber dina 22 juniper bruno 27 juniper bruno 19 indigo alice 10 harbor jules 26 cobalt
lina 26 dina 44 hana 74 jules 101 dina 112 dina 134 bruno 161 bruno 180 alice 190 jules 216
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017100
qwen/qwen3.7-plus
awkweave-0017101
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
gus 9 29 indigo bruno 14 9 grove ivan 17 13 ember bruno 7 15 harbor chen 25 14 indigo eli 8 4 juniper
gus 38 bruno 23 ivan 30 bruno 22 chen 39 eli 12
bruno 24 25 juniper ivan 7 11 delta bruno 30 21 indigo jules 19 9 cobalt hana 18 4 fable chen 3 29 amber
bruno 49 ivan 18 bruno 51 jules 28 hana 22 chen 32
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017101-p1
For every row, output field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
gus 9 29 indigo bruno 14 9 grove ivan 17 13 ember bruno 7 15 harbor chen 25 14 indigo eli 8 4 juniper
gus 38 bruno 23 ivan 30 bruno 22 chen 39 eli 12
bruno 24 25 juniper ivan 7 11 delta bruno 30 21 indigo jules 19 9 cobalt hana 18 4 fable chen 3 29 amber
bruno 49 ivan 18 bruno 51 jules 28 hana 22 chen 32
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017101
qwen/qwen3.7-plus
awkweave-0017102
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
chen 4 ivan 17 kim 30 jules 7 farah 2 kim 12
chen fail ivan fail kim pass jules fail farah fail kim fail
bruno 2 jules 23 bruno 7 ivan 1 lina 25 hana 16
bruno fail jules fail bruno fail ivan fail lina pass hana fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017102-p1
Output column 1 and pass if column 2 is greater than or equal to 25; otherwise, output fail.
{print $1,($2>=25?"pass":"fail")}
chen 4 ivan 17 kim 30 jules 7 farah 2 kim 12
chen fail ivan fail kim pass jules fail farah fail kim fail
bruno 2 jules 23 bruno 7 ivan 1 lina 25 hana 16
bruno fail jules fail bruno fail ivan fail lina pass hana fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017102
qwen/qwen3.7-plus
awkweave-0017103
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
lina amber 80 eli grove 23 jules harbor 76 chen harbor 114 kim fable 52 gus delta 5
LINA ELI JULES CHEN KIM GUS
bruno birch 84 chen indigo 36 dina fable 16 hana amber 99 chen birch 44 eli indigo 11
BRUNO CHEN DINA HANA CHEN ELI
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017103-p1
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
lina amber 80 eli grove 23 jules harbor 76 chen harbor 114 kim fable 52 gus delta 5
LINA ELI JULES CHEN KIM GUS
bruno birch 84 chen indigo 36 dina fable 16 hana amber 99 chen birch 44 eli indigo 11
BRUNO CHEN DINA HANA CHEN ELI
uppercase
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0017103
qwen/qwen3.7-plus
awkweave-0017104
From column 1, print 2 characters starting at character 1.
{print substr($1,1,2)}
grove 17 fable 63 juniper 61 delta 54 delta 93 amber 28 cobalt 108 juniper 65 amber 64
gr fa ju de de am co ju am
birch 12 cobalt 7 birch 98 indigo 112 delta 96 delta 61
bi co bi in de de
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017104-p1
From column 1, extract and print 2 characters starting at position 1.
{print substr($1,1,2)}
grove 17 fable 63 juniper 61 delta 54 delta 93 amber 28 cobalt 108 juniper 65 amber 64
gr fa ju de de am co ju am
birch 12 cobalt 7 birch 98 indigo 112 delta 96 delta 61
bi co bi in de de
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017104
qwen/qwen3.7-plus
awkweave-0017105
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
fable_grove 108 amber_birch 20 indigo_ember 73 birch_harbor 48 birch_delta 0 juniper_indigo 6 grove_amber 41
fable grove amber birch indigo ember birch harbor birch delta juniper indigo grove amber
ember_birch 59 amber_delta 84 amber_amber 53 harbor_harbor 54 fable_juniper 7 grove_grove 101 delta_amber 52 fable_ember 114 harbor_grove 3
ember birch amber delta amber amber harbor harbor fable juniper grove grove delta amber fable ember harbor grove
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017105-p1
Replace all underscores in column 1 with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
fable_grove 108 amber_birch 20 indigo_ember 73 birch_harbor 48 birch_delta 0 juniper_indigo 6 grove_amber 41
fable grove amber birch indigo ember birch harbor birch delta juniper indigo grove amber
ember_birch 59 amber_delta 84 amber_amber 53 harbor_harbor 54 fable_juniper 7 grove_grove 101 delta_amber 52 fable_ember 114 harbor_grove 3
ember birch amber delta amber amber harbor harbor fable juniper grove grove delta amber fable ember harbor grove
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017105
qwen/qwen3.7-plus
awkweave-0017106
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 harbor 9 paused dina juniper 75 closed gus harbor 27 failed eli grove 28 active kim ember 106 pending chen delta 10 ready alice delta 46 active
paused 9 harbor hana closed 75 juniper dina failed 27 harbor gus active 28 grove eli pending 106 ember kim ready 10 delta chen active 46 delta alice
gus fable 104 active chen indigo 99 pending jules cobalt 29 paused hana cobalt 72 ready hana ember 22 failed kim amber 62 active
active 104 fable gus pending 99 indigo chen paused 29 cobalt jules ready 72 cobalt hana failed 22 ember hana active 62 amber kim
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017106-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 harbor 9 paused dina juniper 75 closed gus harbor 27 failed eli grove 28 active kim ember 106 pending chen delta 10 ready alice delta 46 active
paused 9 harbor hana closed 75 juniper dina failed 27 harbor gus active 28 grove eli pending 106 ember kim ready 10 delta chen active 46 delta alice
gus fable 104 active chen indigo 99 pending jules cobalt 29 paused hana cobalt 72 ready hana ember 22 failed kim amber 62 active
active 104 fable gus pending 99 indigo chen paused 29 cobalt jules ready 72 cobalt hana failed 22 ember hana active 62 amber kim
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017106
qwen/qwen3.7-plus
awkweave-0017107
Print the number of whitespace-separated fields on each line.
{print NF}
kim juniper 85 ready jules indigo 36 pending jules indigo 88 pending bruno indigo 0 failed ivan fable 4 closed dina harbor 79 active lina amber 69 closed
4 4 4 4 4 4 4
kim amber 0 closed jules fable 80 active lina amber 27 failed kim cobalt 19 failed jules amber 55 paused gus harbor 61 ready
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017107-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
kim juniper 85 ready jules indigo 36 pending jules indigo 88 pending bruno indigo 0 failed ivan fable 4 closed dina harbor 79 active lina amber 69 closed
4 4 4 4 4 4 4
kim amber 0 closed jules fable 80 active lina amber 27 failed kim cobalt 19 failed jules amber 55 paused gus harbor 61 ready
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017107
qwen/qwen3.7-plus
awkweave-0017108
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]]}
chen alpha 120 bruno beta 13 gus delta 10 jules delta 73 alice alpha 112 chen gamma 119
alpha 2 beta 1 delta 2 gamma 1
gus gamma 64 hana alpha 33 alice beta 0 jules beta 76 alice gamma 23 kim alpha 103 gus gamma 66 chen alpha 30 kim delta 73 eli gamma 64
gamma 4 alpha 3 beta 2 delta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017108-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]]}
chen alpha 120 bruno beta 13 gus delta 10 jules delta 73 alice alpha 112 chen gamma 119
alpha 2 beta 1 delta 2 gamma 1
gus gamma 64 hana alpha 33 alice beta 0 jules beta 76 alice gamma 23 kim alpha 103 gus gamma 66 chen alpha 30 kim delta 73 eli gamma 64
gamma 4 alpha 3 beta 2 delta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017108
qwen/qwen3.7-plus
awkweave-0017109
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]]}
gus gamma 6 bruno gamma 28 chen gamma 7 gus gamma 16 ivan gamma 2 dina alpha 19 chen beta 3 jules beta 14 dina gamma 14 eli alpha 12
gamma 73 alpha 31 beta 17
eli alpha 18 lina beta 29 gus gamma 18 farah gamma 30 jules beta 14 kim alpha 23 lina gamma 19 farah gamma 21
alpha 41 beta 43 gamma 88
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017109-p1
Calculate the sum of column 3 grouped by column 2 categories, displaying the results 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]]}
gus gamma 6 bruno gamma 28 chen gamma 7 gus gamma 16 ivan gamma 2 dina alpha 19 chen beta 3 jules beta 14 dina gamma 14 eli alpha 12
gamma 73 alpha 31 beta 17
eli alpha 18 lina beta 29 gus gamma 18 farah gamma 30 jules beta 14 kim alpha 23 lina gamma 19 farah gamma 21
alpha 41 beta 43 gamma 88
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017109
qwen/qwen3.7-plus
awkweave-0017110
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 grove 111 delta fable 18 beta grove 110 gamma grove 76 delta amber 42 delta ember 59 gamma indigo 24 beta cobalt 63
delta 4 beta 2 gamma 2
beta delta 80 gamma juniper 66 delta fable 104 delta delta 109 beta harbor 49 delta delta 107 gamma amber 100
beta 2 gamma 2 delta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null