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-0037331-p1
Output just the initial 4 records.
NR <= 4
kim 109 delta alice 60 ember dina 72 ember alice 27 ember lina 105 ember farah 51 harbor
kim 109 delta alice 60 ember dina 72 ember alice 27 ember
kim 68 indigo jules 42 juniper bruno 77 ember hana 76 juniper ivan 120 grove jules 117 delta alice 80 birch lina 50 amber
kim 68 indigo jules 42 juniper bruno 77 ember hana 76 juniper
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037331
qwen/qwen3.7-plus
awkweave-0037332
Skip the first line and print every remaining line unchanged.
NR > 1
bruno 110 delta dina 7 grove hana 4 grove chen 34 fable alice 89 grove dina 29 cobalt alice 110 ember bruno 46 grove
dina 7 grove hana 4 grove chen 34 fable alice 89 grove dina 29 cobalt alice 110 ember bruno 46 grove
dina 40 harbor jules 3 harbor gus 63 indigo alice 42 amber bruno 57 indigo alice 99 delta alice 12 amber
jules 3 harbor gus 63 indigo alice 42 amber bruno 57 indigo alice 99 delta alice 12 amber
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037332-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
bruno 110 delta dina 7 grove hana 4 grove chen 34 fable alice 89 grove dina 29 cobalt alice 110 ember bruno 46 grove
dina 7 grove hana 4 grove chen 34 fable alice 89 grove dina 29 cobalt alice 110 ember bruno 46 grove
dina 40 harbor jules 3 harbor gus 63 indigo alice 42 amber bruno 57 indigo alice 99 delta alice 12 amber
jules 3 harbor gus 63 indigo alice 42 amber bruno 57 indigo alice 99 delta alice 12 amber
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037332
qwen/qwen3.7-plus
awkweave-0037333
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
kim paused 43 farah closed 65 eli paused 9 alice ready 20 ivan active 16 farah pending 110 ivan paused 80 jules paused 64 lina ready 112
1
ivan ready 120 lina paused 26 alice paused 95 dina active 11 dina failed 65 eli pending 115 lina active 91 chen pending 97 dina active 23
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037333-p1
Count records where column 2 is 'closed'; output 0 if the count is zero.
$2 == "closed"{n++}END{print n+0}
kim paused 43 farah closed 65 eli paused 9 alice ready 20 ivan active 16 farah pending 110 ivan paused 80 jules paused 64 lina ready 112
1
ivan ready 120 lina paused 26 alice paused 95 dina active 11 dina failed 65 eli pending 115 lina active 91 chen pending 97 dina active 23
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037333
qwen/qwen3.7-plus
awkweave-0037334
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
9 jules ember 12 gus delta 26 farah harbor 1 farah amber 19 farah grove 25 chen indigo 11 jules ember 15 gus amber 11 hana harbor
129
20 kim grove 27 chen amber 1 ivan amber 15 bruno harbor 27 jules grove 26 hana ember 29 eli amber 29 lina juniper 7 chen delta
181
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037334-p1
Compute and display the total sum of integer values in column 1.
{s+=$1}END{print s+0}
9 jules ember 12 gus delta 26 farah harbor 1 farah amber 19 farah grove 25 chen indigo 11 jules ember 15 gus amber 11 hana harbor
129
20 kim grove 27 chen amber 1 ivan amber 15 bruno harbor 27 jules grove 26 hana ember 29 eli amber 29 lina juniper 7 chen delta
181
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037334
qwen/qwen3.7-plus
awkweave-0037335
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
20 lina grove 9 gus fable 7 chen amber 23 eli indigo 17 ivan cobalt 28 dina amber
17.33
16 kim amber 6 farah ember 7 lina juniper 30 kim amber 23 alice indigo 12 eli amber 21 lina grove 25 farah harbor
17.50
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037335-p1
Print the average of column 1, rounded to two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
20 lina grove 9 gus fable 7 chen amber 23 eli indigo 17 ivan cobalt 28 dina amber
17.33
16 kim amber 6 farah ember 7 lina juniper 30 kim amber 23 alice indigo 12 eli amber 21 lina grove 25 farah harbor
17.50
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037335
qwen/qwen3.7-plus
awkweave-0037336
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
amber 23 farah indigo 8 bruno amber 14 bruno ember 27 gus amber 25 dina amber 17 lina harbor 12 farah grove 13 lina
8
indigo 21 jules indigo 30 gus grove 12 farah amber 10 dina grove 13 kim ember 5 dina cobalt 30 jules indigo 25 gus
5
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037336-p1
Identify and output the minimum numeric value found in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
amber 23 farah indigo 8 bruno amber 14 bruno ember 27 gus amber 25 dina amber 17 lina harbor 12 farah grove 13 lina
8
indigo 21 jules indigo 30 gus grove 12 farah amber 10 dina grove 13 kim ember 5 dina cobalt 30 jules indigo 25 gus
5
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037336
qwen/qwen3.7-plus
awkweave-0037337
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
chen grove 11 kim grove 13 eli ember 2 dina delta 18 alice cobalt 25 eli amber 15
25
hana cobalt 28 eli indigo 20 jules harbor 29 bruno ember 13 chen fable 12 hana juniper 13 hana amber 10 lina delta 11
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037337-p1
Identify and output the maximum numeric value found in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
chen grove 11 kim grove 13 eli ember 2 dina delta 18 alice cobalt 25 eli amber 15
25
hana cobalt 28 eli indigo 20 jules harbor 29 bruno ember 13 chen fable 12 hana juniper 13 hana amber 10 lina delta 11
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037337
qwen/qwen3.7-plus
awkweave-0037338
Count all input records and print the total.
END{print NR}
hana 73 farah 62 dina 47 eli 5 lina 62 farah 14 jules 13
7
farah 112 chen 40 hana 117 alice 55 hana 29 hana 12 ivan 110 ivan 113 farah 109 lina 26
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037338-p1
Count the total number of input records and print the result.
END{print NR}
hana 73 farah 62 dina 47 eli 5 lina 62 farah 14 jules 13
7
farah 112 chen 40 hana 117 alice 55 hana 29 hana 12 ivan 110 ivan 113 farah 109 lina 26
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037338
qwen/qwen3.7-plus
awkweave-0037339
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
gus grove 34 ivan grove 94 jules birch 16 kim ember 5 ivan grove 94 dina harbor 4 ivan delta 113 dina delta 78 gus harbor 20 ivan delta 13 hana harbor 19
gus grove 34 ivan grove 94 jules birch 16 kim ember 5 dina harbor 4 ivan delta 113 dina delta 78 gus harbor 20 ivan delta 13 hana harbor 19
jules birch 3 ivan delta 109 jules birch 3 farah indigo 111 dina birch 17 jules harbor 100 farah birch 56 chen birch 120
jules birch 3 ivan delta 109 farah indigo 111 dina birch 17 jules harbor 100 farah birch 56 chen birch 120
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037339-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining original order.
!seen[$0]++
gus grove 34 ivan grove 94 jules birch 16 kim ember 5 ivan grove 94 dina harbor 4 ivan delta 113 dina delta 78 gus harbor 20 ivan delta 13 hana harbor 19
gus grove 34 ivan grove 94 jules birch 16 kim ember 5 dina harbor 4 ivan delta 113 dina delta 78 gus harbor 20 ivan delta 13 hana harbor 19
jules birch 3 ivan delta 109 jules birch 3 farah indigo 111 dina birch 17 jules harbor 100 farah birch 56 chen birch 120
jules birch 3 ivan delta 109 farah indigo 111 dina birch 17 jules harbor 100 farah birch 56 chen birch 120
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037339
qwen/qwen3.7-plus
awkweave-0037340
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
kim harbor 112 dina grove 37 jules amber 119 hana delta 5 ivan juniper 105 chen delta 86 gus juniper 54 eli indigo 93 gus juniper 11
kim harbor 112 dina grove 37 jules amber 119 hana delta 5 ivan juniper 105 chen delta 86 gus juniper 54 eli indigo 93
hana juniper 46 hana indigo 29 dina indigo 75 bruno harbor 90 hana cobalt 39 lina delta 72 bruno indigo 89 bruno ember 74 chen grove 113
hana juniper 46 dina indigo 75 bruno harbor 90 lina delta 72 chen grove 113
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037340-p1
Retain only the first occurrence for each unique value in column 1, preserving input order.
!seen[$1]++
kim harbor 112 dina grove 37 jules amber 119 hana delta 5 ivan juniper 105 chen delta 86 gus juniper 54 eli indigo 93 gus juniper 11
kim harbor 112 dina grove 37 jules amber 119 hana delta 5 ivan juniper 105 chen delta 86 gus juniper 54 eli indigo 93
hana juniper 46 hana indigo 29 dina indigo 75 bruno harbor 90 hana cobalt 39 lina delta 72 bruno indigo 89 bruno ember 74 chen grove 113
hana juniper 46 dina indigo 75 bruno harbor 90 lina delta 72 chen grove 113
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037340
qwen/qwen3.7-plus
awkweave-0037341
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
alice 6 harbor ivan 20 indigo lina 18 harbor lina 20 cobalt chen 20 fable kim 17 ember chen 6 harbor farah 13 fable kim 1 grove kim 7 cobalt
alice 6 ivan 26 lina 44 lina 64 chen 84 kim 101 chen 107 farah 120 kim 121 kim 128
bruno 16 birch ivan 15 grove hana 5 grove gus 27 fable alice 12 grove dina 1 fable hana 18 ember
bruno 16 ivan 31 hana 36 gus 63 alice 75 dina 76 hana 94
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037341-p1
For every record, output column 1 followed by the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
alice 6 harbor ivan 20 indigo lina 18 harbor lina 20 cobalt chen 20 fable kim 17 ember chen 6 harbor farah 13 fable kim 1 grove kim 7 cobalt
alice 6 ivan 26 lina 44 lina 64 chen 84 kim 101 chen 107 farah 120 kim 121 kim 128
bruno 16 birch ivan 15 grove hana 5 grove gus 27 fable alice 12 grove dina 1 fable hana 18 ember
bruno 16 ivan 31 hana 36 gus 63 alice 75 dina 76 hana 94
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037341
qwen/qwen3.7-plus
awkweave-0037342
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 17 17 amber dina 2 19 grove jules 19 11 juniper farah 4 1 harbor farah 4 23 indigo dina 8 24 delta kim 30 22 amber eli 12 23 grove kim 10 20 harbor
bruno 34 dina 21 jules 30 farah 5 farah 27 dina 32 kim 52 eli 35 kim 30
alice 9 22 grove hana 19 7 ember dina 12 9 fable jules 12 17 indigo alice 20 18 juniper jules 13 18 ember chen 9 3 delta jules 9 21 birch alice 26 21 grove kim 19 10 amber
alice 31 hana 26 dina 21 jules 29 alice 38 jules 31 chen 12 jules 30 alice 47 kim 29
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037342-p1
For each line, output the first field followed by the total of the second and third fields.
{print $1,$2+$3}
bruno 17 17 amber dina 2 19 grove jules 19 11 juniper farah 4 1 harbor farah 4 23 indigo dina 8 24 delta kim 30 22 amber eli 12 23 grove kim 10 20 harbor
bruno 34 dina 21 jules 30 farah 5 farah 27 dina 32 kim 52 eli 35 kim 30
alice 9 22 grove hana 19 7 ember dina 12 9 fable jules 12 17 indigo alice 20 18 juniper jules 13 18 ember chen 9 3 delta jules 9 21 birch alice 26 21 grove kim 19 10 amber
alice 31 hana 26 dina 21 jules 29 alice 38 jules 31 chen 12 jules 30 alice 47 kim 29
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037342
qwen/qwen3.7-plus
awkweave-0037343
Print column 1 and pass when column 2 is at least 24; otherwise print fail.
{print $1,($2>=24?"pass":"fail")}
kim 6 gus 21 gus 2 ivan 5 dina 9 bruno 19 farah 4 dina 7 eli 15 jules 5
kim fail gus fail gus fail ivan fail dina fail bruno fail farah fail dina fail eli fail jules fail
jules 17 kim 25 kim 22 gus 7 farah 8 chen 9 chen 28 hana 18
jules fail kim pass kim fail gus fail farah fail chen fail chen pass hana fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037343-p1
Output the first column; if the second column is 24 or higher, print pass, otherwise print fail.
{print $1,($2>=24?"pass":"fail")}
kim 6 gus 21 gus 2 ivan 5 dina 9 bruno 19 farah 4 dina 7 eli 15 jules 5
kim fail gus fail gus fail ivan fail dina fail bruno fail farah fail dina fail eli fail jules fail
jules 17 kim 25 kim 22 gus 7 farah 8 chen 9 chen 28 hana 18
jules fail kim pass kim fail gus fail farah fail chen fail chen pass hana fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037343
qwen/qwen3.7-plus
awkweave-0037344
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
alice cobalt 48 dina fable 60 lina harbor 50 dina amber 33 farah juniper 93 eli delta 39 eli ember 79 lina amber 111 dina indigo 120 bruno indigo 33
ALICE DINA LINA DINA FARAH ELI ELI LINA DINA BRUNO
hana ember 94 alice amber 42 bruno cobalt 0 kim fable 30 hana harbor 47 lina fable 22 kim juniper 80 gus ember 47 alice birch 50
HANA ALICE BRUNO KIM HANA LINA KIM GUS ALICE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037344-p1
Transform the first column to uppercase and display only that column.
{print toupper($1)}
alice cobalt 48 dina fable 60 lina harbor 50 dina amber 33 farah juniper 93 eli delta 39 eli ember 79 lina amber 111 dina indigo 120 bruno indigo 33
ALICE DINA LINA DINA FARAH ELI ELI LINA DINA BRUNO
hana ember 94 alice amber 42 bruno cobalt 0 kim fable 30 hana harbor 47 lina fable 22 kim juniper 80 gus ember 47 alice birch 50
HANA ALICE BRUNO KIM HANA LINA KIM GUS ALICE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037344
qwen/qwen3.7-plus
awkweave-0037345
From column 1, print 4 characters starting at character 3.
{print substr($1,3,4)}
harbor 67 ember 107 indigo 60 grove 69 harbor 103 birch 44 cobalt 73 cobalt 58 birch 86 birch 96
rbor ber digo ove rbor rch balt balt rch rch
fable 112 juniper 58 fable 4 birch 36 harbor 101 harbor 89 fable 27
ble nipe ble rch rbor rbor ble
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037345-p1
Extract and print a 4-character substring from the first column, starting at the third character.
{print substr($1,3,4)}
harbor 67 ember 107 indigo 60 grove 69 harbor 103 birch 44 cobalt 73 cobalt 58 birch 86 birch 96
rbor ber digo ove rbor rch balt balt rch rch
fable 112 juniper 58 fable 4 birch 36 harbor 101 harbor 89 fable 27
ble nipe ble rch rbor rbor ble
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037345
qwen/qwen3.7-plus
awkweave-0037346
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
grove_juniper 85 birch_fable 17 grove_birch 34 fable_harbor 106 indigo_ember 54 indigo_delta 96 grove_fable 11 cobalt_juniper 109 juniper_birch 117 fable_fable 40
grove juniper birch fable grove birch fable harbor indigo ember indigo delta grove fable cobalt juniper juniper birch fable fable
juniper_cobalt 69 ember_fable 48 cobalt_indigo 62 cobalt_birch 62 harbor_grove 106 amber_amber 90 ember_ember 77 cobalt_ember 39
juniper cobalt ember fable cobalt indigo cobalt birch harbor grove amber amber ember ember cobalt ember
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037346-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
grove_juniper 85 birch_fable 17 grove_birch 34 fable_harbor 106 indigo_ember 54 indigo_delta 96 grove_fable 11 cobalt_juniper 109 juniper_birch 117 fable_fable 40
grove juniper birch fable grove birch fable harbor indigo ember indigo delta grove fable cobalt juniper juniper birch fable fable
juniper_cobalt 69 ember_fable 48 cobalt_indigo 62 cobalt_birch 62 harbor_grove 106 amber_amber 90 ember_ember 77 cobalt_ember 39
juniper cobalt ember fable cobalt indigo cobalt birch harbor grove amber amber ember ember cobalt ember
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037346
qwen/qwen3.7-plus
awkweave-0037347
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)}
alice harbor 32 paused kim ember 37 closed lina indigo 58 paused gus delta 45 pending eli delta 48 paused gus delta 50 paused hana juniper 69 ready eli birch 85 paused
paused 32 harbor alice closed 37 ember kim paused 58 indigo lina pending 45 delta gus paused 48 delta eli paused 50 delta gus ready 69 juniper hana paused 85 birch eli
chen amber 69 closed alice birch 51 pending eli ember 49 paused bruno indigo 105 ready gus amber 94 failed lina delta 41 closed alice harbor 20 pending lina ember 91 closed
closed 69 amber chen pending 51 birch alice paused 49 ember eli ready 105 indigo bruno failed 94 amber gus closed 41 delta lina pending 20 harbor alice closed 91 ember lina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037347-p1
Reverse the sequence of fields for every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
alice harbor 32 paused kim ember 37 closed lina indigo 58 paused gus delta 45 pending eli delta 48 paused gus delta 50 paused hana juniper 69 ready eli birch 85 paused
paused 32 harbor alice closed 37 ember kim paused 58 indigo lina pending 45 delta gus paused 48 delta eli paused 50 delta gus ready 69 juniper hana paused 85 birch eli
chen amber 69 closed alice birch 51 pending eli ember 49 paused bruno indigo 105 ready gus amber 94 failed lina delta 41 closed alice harbor 20 pending lina ember 91 closed
closed 69 amber chen pending 51 birch alice paused 49 ember eli ready 105 indigo bruno failed 94 amber gus closed 41 delta lina pending 20 harbor alice closed 91 ember lina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037347
qwen/qwen3.7-plus
awkweave-0037348
Print the number of whitespace-separated fields on each line.
{print NF}
gus cobalt 5 closed alice delta 6 closed gus juniper 94 ready gus cobalt 28 failed farah harbor 92 active jules amber 52 closed bruno ember 32 failed alice harbor 40 failed jules fable 79 active kim delta 5 active
4 4 4 4 4 4 4 4 4 4
ivan juniper 13 active farah fable 53 paused lina juniper 118 paused kim grove 71 pending alice delta 114 ready ivan ember 72 closed farah delta 19 failed bruno cobalt 102 paused dina indigo 103 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037348-p1
Output the count of whitespace-delimited fields for each line.
{print NF}
gus cobalt 5 closed alice delta 6 closed gus juniper 94 ready gus cobalt 28 failed farah harbor 92 active jules amber 52 closed bruno ember 32 failed alice harbor 40 failed jules fable 79 active kim delta 5 active
4 4 4 4 4 4 4 4 4 4
ivan juniper 13 active farah fable 53 paused lina juniper 118 paused kim grove 71 pending alice delta 114 ready ivan ember 72 closed farah delta 19 failed bruno cobalt 102 paused dina indigo 103 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037348
qwen/qwen3.7-plus
awkweave-0037349
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
eli gamma 4 eli gamma 59 farah gamma 96 gus delta 113 farah gamma 51 ivan beta 53 eli delta 115 chen alpha 111 gus gamma 18 jules gamma 69
gamma 6 delta 2 beta 1 alpha 1
ivan delta 28 bruno gamma 97 kim delta 34 dina delta 37 lina beta 49 ivan alpha 79 alice delta 106 chen gamma 59
delta 4 gamma 2 beta 1 alpha 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037349-p1
Tally the number of records for each unique value in the second column. Output each value alongside its count, maintaining the order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
eli gamma 4 eli gamma 59 farah gamma 96 gus delta 113 farah gamma 51 ivan beta 53 eli delta 115 chen alpha 111 gus gamma 18 jules gamma 69
gamma 6 delta 2 beta 1 alpha 1
ivan delta 28 bruno gamma 97 kim delta 34 dina delta 37 lina beta 49 ivan alpha 79 alice delta 106 chen gamma 59
delta 4 gamma 2 beta 1 alpha 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037349
qwen/qwen3.7-plus
awkweave-0037350
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 delta 14 gus delta 14 hana delta 19 ivan alpha 27 jules gamma 4 dina beta 30 gus beta 19
delta 47 alpha 27 gamma 4 beta 49
jules gamma 22 dina gamma 26 gus gamma 1 hana gamma 12 farah beta 21 chen alpha 20 alice delta 26 eli gamma 26
gamma 87 beta 21 alpha 20 delta 26
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037350-p1
Calculate the sum of the third column grouped by the second column, printing the results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
bruno delta 14 gus delta 14 hana delta 19 ivan alpha 27 jules gamma 4 dina beta 30 gus beta 19
delta 47 alpha 27 gamma 4 beta 49
jules gamma 22 dina gamma 26 gus gamma 1 hana gamma 12 farah beta 21 chen alpha 20 alice delta 26 eli gamma 26
gamma 87 beta 21 alpha 20 delta 26
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037350
qwen/qwen3.7-plus
awkweave-0037351
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]]}
beta indigo 6 gamma grove 102 delta grove 45 gamma indigo 81 gamma fable 25 alpha amber 4 alpha harbor 90 gamma harbor 108 gamma delta 48
gamma 5 alpha 2
alpha fable 2 alpha juniper 65 beta amber 5 beta indigo 9 gamma juniper 85 alpha ember 77 beta ember 94 alpha grove 98
alpha 4 beta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037351-p1
List each duplicate value from the first column along with its frequency, ordered 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]]}
beta indigo 6 gamma grove 102 delta grove 45 gamma indigo 81 gamma fable 25 alpha amber 4 alpha harbor 90 gamma harbor 108 gamma delta 48
gamma 5 alpha 2
alpha fable 2 alpha juniper 65 beta amber 5 beta indigo 9 gamma juniper 85 alpha ember 77 beta ember 94 alpha grove 98
alpha 4 beta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037351
qwen/qwen3.7-plus
awkweave-0037352
The first row is a header. Print the state column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
record_id region state note r001 jules 9 closed r002 kim 6 closed r003 gus 14 pending r004 chen 11 paused r005 lina 2 pending r006 chen 6 active
9 6 14 11 2 6
record_id region state note r001 kim 2 ready r002 chen 29 pending r003 hana 7 pending r004 dina 17 pending r005 dina 2 active r006 kim 19 paused r007 lina 3 paused r008 jules 28 closed
2 29 7 17 2 19 3 28
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037352-p1
Skip the header row and print the state column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
record_id region state note r001 jules 9 closed r002 kim 6 closed r003 gus 14 pending r004 chen 11 paused r005 lina 2 pending r006 chen 6 active
9 6 14 11 2 6
record_id region state note r001 kim 2 ready r002 chen 29 pending r003 hana 7 pending r004 dina 17 pending r005 dina 2 active r006 kim 19 paused r007 lina 3 paused r008 jules 28 closed
2 29 7 17 2 19 3 28
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037352
qwen/qwen3.7-plus
awkweave-0037353
The first row is a header. Print display_name for data rows whose score is greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 eli 11 ready r002 farah 16 closed r003 ivan 1 pending r004 kim 19 closed r005 eli 29 active r006 alice 10 failed
kim eli
record_id display_name score state r001 chen 9 ready r002 chen 5 failed r003 lina 16 ready r004 kim 21 closed r005 lina 29 ready r006 gus 6 pending r007 ivan 15 ready r008 lina 13 closed r009 lina 19 paused r010 alice 23 pending
kim lina lina alice
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037353-p1
Ignoring the header row, print the display_name for data rows where the score exceeds 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 eli 11 ready r002 farah 16 closed r003 ivan 1 pending r004 kim 19 closed r005 eli 29 active r006 alice 10 failed
kim eli
record_id display_name score state r001 chen 9 ready r002 chen 5 failed r003 lina 16 ready r004 kim 21 closed r005 lina 29 ready r006 gus 6 pending r007 ivan 15 ready r008 lina 13 closed r009 lina 19 paused r010 alice 23 pending
kim lina lina alice
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037353
qwen/qwen3.7-plus
awkweave-0037354
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
eli 8 failed alice 17 closed alice 4 paused lina 17 ready chen 23 pending jules 18 failed chen 22 paused dina 11 paused hana 21 active eli 16 pending
8 17 4 17 23 18 22 11 21 16
bruno 25 failed eli 11 pending bruno 20 closed gus 22 ready alice 8 active hana 4 failed kim 13 failed dina 14 failed dina 6 pending
25 11 20 22 8 4 13 14 6
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037354-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
eli 8 failed alice 17 closed alice 4 paused lina 17 ready chen 23 pending jules 18 failed chen 22 paused dina 11 paused hana 21 active eli 16 pending
8 17 4 17 23 18 22 11 21 16
bruno 25 failed eli 11 pending bruno 20 closed gus 22 ready alice 8 active hana 4 failed kim 13 failed dina 14 failed dina 6 pending
25 11 20 22 8 4 13 14 6
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0037354
qwen/qwen3.7-plus
awkweave-0037355
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 15.
BEGIN{FS=OFS=","}$2>15{print $1}
alice,7,pending bruno,12,paused jules,21,failed kim,18,active jules,9,active hana,12,ready
jules kim
jules,18,paused gus,10,closed gus,13,active hana,2,active farah,16,closed chen,15,active
jules farah
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037355-p1
Output the first field of comma-separated rows where the second field is greater than 15, assuming no quoted commas.
BEGIN{FS=OFS=","}$2>15{print $1}
alice,7,pending bruno,12,paused jules,21,failed kim,18,active jules,9,active hana,12,ready
jules kim
jules,18,paused gus,10,closed gus,13,active hana,2,active farah,16,closed chen,15,active
jules farah
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037355
qwen/qwen3.7-plus
awkweave-0037356
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
eli delta 71 chen delta 45 chen ember 18 chen indigo 119 jules delta 36 lina amber 92 ivan grove 0
eli delta 71 chen delta 45 chen ember 18 chen indigo 119 jules delta 36 lina amber 92 ivan grove 0
alice ember 56 dina juniper 52 jules cobalt 100 lina fable 95 eli amber 115 kim grove 42 farah grove 12 dina fable 34 dina ember 40 farah ember 18
alice ember 56 dina juniper 52 jules cobalt 100 lina fable 95 eli amber 115 kim grove 42 farah grove 12 dina fable 34 dina ember 40 farah ember 18
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037356-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
eli delta 71 chen delta 45 chen ember 18 chen indigo 119 jules delta 36 lina amber 92 ivan grove 0
eli delta 71 chen delta 45 chen ember 18 chen indigo 119 jules delta 36 lina amber 92 ivan grove 0
alice ember 56 dina juniper 52 jules cobalt 100 lina fable 95 eli amber 115 kim grove 42 farah grove 12 dina fable 34 dina ember 40 farah ember 18
alice ember 56 dina juniper 52 jules cobalt 100 lina fable 95 eli amber 115 kim grove 42 farah grove 12 dina fable 34 dina ember 40 farah ember 18
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037356
qwen/qwen3.7-plus
awkweave-0037357
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
kim indigo 58 pending hana ember 83 paused eli grove 111 pending farah delta 16 paused hana indigo 26 pending hana amber 79 paused chen grove 41 ready farah cobalt 58 failed
hana indigo 26 pending
hana delta 77 closed gus amber 53 active bruno fable 109 paused gus delta 32 paused jules ember 47 failed lina cobalt 58 paused ivan indigo 76 paused jules amber 36 closed gus ember 111 paused
bruno fable 109 paused
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037357-p1
Identify and output the longest line from the input; in case of a tie in length, select the first occurrence.
{if(length($0)>length(best))best=$0}END{print best}
kim indigo 58 pending hana ember 83 paused eli grove 111 pending farah delta 16 paused hana indigo 26 pending hana amber 79 paused chen grove 41 ready farah cobalt 58 failed
hana indigo 26 pending
hana delta 77 closed gus amber 53 active bruno fable 109 paused gus delta 32 paused jules ember 47 failed lina cobalt 58 paused ivan indigo 76 paused jules amber 36 closed gus ember 111 paused
bruno fable 109 paused
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037357
qwen/qwen3.7-plus
awkweave-0037358
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
bruno 63 lina 102 eli 32 jules 105 hana 81 chen 110 gus 118 dina 55 dina 87 lina 115
lina 102 jules 105 chen 110 dina 55 lina 115
alice 70 farah 120 eli 102 bruno 57 alice 18 jules 101 hana 87 jules 83 lina 115 ivan 3
farah 120 bruno 57 jules 101 jules 83 ivan 3
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037358-p1
Print every even-numbered line, starting with line 2 (i.e., lines 2, 4, 6, ...).
NR%2==0
bruno 63 lina 102 eli 32 jules 105 hana 81 chen 110 gus 118 dina 55 dina 87 lina 115
lina 102 jules 105 chen 110 dina 55 lina 115
alice 70 farah 120 eli 102 bruno 57 alice 18 jules 101 hana 87 jules 83 lina 115 ivan 3
farah 120 bruno 57 jules 101 jules 83 ivan 3
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037358
qwen/qwen3.7-plus
awkweave-0037359
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
delta ember 10 gamma cobalt 84 beta delta 84 delta harbor 24 gamma cobalt 120 gamma birch 114 gamma cobalt 69 alpha harbor 45
5
delta juniper 60 alpha fable 103 delta amber 115 beta ember 114 beta harbor 20 gamma birch 76 alpha indigo 93 alpha cobalt 50 alpha cobalt 18 alpha birch 9
8
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037359-p1
Calculate and output only the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
delta ember 10 gamma cobalt 84 beta delta 84 delta harbor 24 gamma cobalt 120 gamma birch 114 gamma cobalt 69 alpha harbor 45
5
delta juniper 60 alpha fable 103 delta amber 115 beta ember 114 beta harbor 20 gamma birch 76 alpha indigo 93 alpha cobalt 50 alpha cobalt 18 alpha birch 9
8
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037359
qwen/qwen3.7-plus
awkweave-0037360
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}
eli 26 0 lina 14 2 jules 10 15 alice 8 24 farah 1 6 jules 11 19 ivan 17 22 alice 19 28 dina 11 28 lina 26 30
lina 7.00 jules 0.67 alice 0.33 farah 0.17 jules 0.58 ivan 0.77 alice 0.68 dina 0.39 lina 0.87
hana 1 0 hana 3 15 eli 25 10 jules 10 13 alice 17 29 dina 13 16
hana 0.20 eli 2.50 jules 0.77 alice 0.59 dina 0.81
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037360-p1
For each row where the third column is non-zero, output the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
eli 26 0 lina 14 2 jules 10 15 alice 8 24 farah 1 6 jules 11 19 ivan 17 22 alice 19 28 dina 11 28 lina 26 30
lina 7.00 jules 0.67 alice 0.33 farah 0.17 jules 0.58 ivan 0.77 alice 0.68 dina 0.39 lina 0.87
hana 1 0 hana 3 15 eli 25 10 jules 10 13 alice 17 29 dina 13 16
hana 0.20 eli 2.50 jules 0.77 alice 0.59 dina 0.81
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037360
qwen/qwen3.7-plus
awkweave-0037361
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]}
eli juniper 15 lina indigo 13 bruno delta 20 farah harbor 7 lina amber 13 lina indigo 5 alice juniper 16
bruno delta 20 alice juniper 16 eli juniper 15
hana juniper 23 eli ember 6 lina birch 9 farah harbor 24 hana indigo 6 dina fable 28 alice ember 3 bruno cobalt 20 jules indigo 23 chen delta 21
dina fable 28 farah harbor 24 hana juniper 23
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037361-p1
Output the top three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
eli juniper 15 lina indigo 13 bruno delta 20 farah harbor 7 lina amber 13 lina indigo 5 alice juniper 16
bruno delta 20 alice juniper 16 eli juniper 15
hana juniper 23 eli ember 6 lina birch 9 farah harbor 24 hana indigo 6 dina fable 28 alice ember 3 bruno cobalt 20 jules indigo 23 chen delta 21
dina fable 28 farah harbor 24 hana juniper 23
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037361
qwen/qwen3.7-plus
awkweave-0037362
Select the 6th and 4th fields in that order.
{print $6, $4}
114 failed fable ivan 59 eli 106 pending indigo jules 115 eli 79 paused birch gus 98 kim 56 closed indigo ivan 103 lina 60 paused amber farah 71 dina 78 paused cobalt hana 18 eli 21 active ember kim 30 eli
eli ivan eli jules kim gus lina ivan dina farah eli hana eli kim
84 failed birch eli 2 farah 106 paused harbor farah 38 gus 3 active harbor gus 107 hana 28 closed harbor chen 93 dina 8 pending juniper lina 98 bruno 79 pending ember kim 110 kim 31 active ember hana 59 lina 118 pending amber ivan 53 farah 13 active delta kim 81 ivan 83 ready birch hana 10 bruno
farah eli gus farah hana gus dina chen bruno lina kim kim lina hana farah ivan ivan kim bruno hana
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037362-p1
Extract and print the 6th field followed by the 4th field for each record.
{print $6, $4}
114 failed fable ivan 59 eli 106 pending indigo jules 115 eli 79 paused birch gus 98 kim 56 closed indigo ivan 103 lina 60 paused amber farah 71 dina 78 paused cobalt hana 18 eli 21 active ember kim 30 eli
eli ivan eli jules kim gus lina ivan dina farah eli hana eli kim
84 failed birch eli 2 farah 106 paused harbor farah 38 gus 3 active harbor gus 107 hana 28 closed harbor chen 93 dina 8 pending juniper lina 98 bruno 79 pending ember kim 110 kim 31 active ember hana 59 lina 118 pending amber ivan 53 farah 13 active delta kim 81 ivan 83 ready birch hana 10 bruno
farah eli gus farah hana gus dina chen bruno lina kim kim lina hana farah ivan ivan kim bruno hana
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037362
qwen/qwen3.7-plus
awkweave-0037363
Print the last field of every input line.
{print $NF}
kim chen alice ivan dina gus jules hana dina lina lina alice hana eli dina hana dina jules lina alice hana ivan chen hana lina lina chen lina gus gus
alice gus dina alice dina jules hana hana chen gus
lina bruno bruno dina dina gus kim dina chen kim kim eli ivan jules jules ivan dina hana
bruno gus chen eli jules hana
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037363-p1
Display the final field of every line in the input.
{print $NF}
kim chen alice ivan dina gus jules hana dina lina lina alice hana eli dina hana dina jules lina alice hana ivan chen hana lina lina chen lina gus gus
alice gus dina alice dina jules hana hana chen gus
lina bruno bruno dina dina gus kim dina chen kim kim eli ivan jules jules ivan dina hana
bruno gus chen eli jules hana
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037363
qwen/qwen3.7-plus
awkweave-0037364
Print the complete records where column 1 is at least 49.
$1 >= 49
32 cobalt fable 73 cobalt juniper 117 amber fable 29 cobalt harbor 14 cobalt birch 57 delta fable
73 cobalt juniper 117 amber fable 57 delta fable
45 grove amber 33 amber grove 2 amber ember 108 harbor cobalt 72 grove birch 18 juniper indigo 40 delta delta 30 birch grove 60 ember juniper 87 indigo grove
108 harbor cobalt 72 grove birch 60 ember juniper 87 indigo grove
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037364-p1
Output full records where the value in the first column is 49 or higher.
$1 >= 49
32 cobalt fable 73 cobalt juniper 117 amber fable 29 cobalt harbor 14 cobalt birch 57 delta fable
73 cobalt juniper 117 amber fable 57 delta fable
45 grove amber 33 amber grove 2 amber ember 108 harbor cobalt 72 grove birch 18 juniper indigo 40 delta delta 30 birch grove 60 ember juniper 87 indigo grove
108 harbor cobalt 72 grove birch 60 ember juniper 87 indigo grove
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037364
qwen/qwen3.7-plus
awkweave-0037365
Show whole lines whose 3rd field is between 10 and 25, inclusive.
$3 >= 10 && $3 <= 25
ready failed 18 closed closed active 4 failed failed closed 18 failed paused active 21 ready closed closed 2 paused pending closed 27 closed pending pending 18 failed pending paused 7 active paused active 6 pending active active 3 paused
ready failed 18 closed failed closed 18 failed paused active 21 ready pending pending 18 failed
failed pending 14 active closed closed 4 active active ready 6 active ready paused 17 pending paused paused 26 pending ready failed 1 failed pending pending 14 failed pending pending 14 pending active failed 6 failed failed paused 18 paused
failed pending 14 active ready paused 17 pending pending pending 14 failed pending pending 14 pending failed paused 18 paused
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037365-p1
Print entire lines where the third field falls within the inclusive range of 10 to 25.
$3 >= 10 && $3 <= 25
ready failed 18 closed closed active 4 failed failed closed 18 failed paused active 21 ready closed closed 2 paused pending closed 27 closed pending pending 18 failed pending paused 7 active paused active 6 pending active active 3 paused
ready failed 18 closed failed closed 18 failed paused active 21 ready pending pending 18 failed
failed pending 14 active closed closed 4 active active ready 6 active ready paused 17 pending paused paused 26 pending ready failed 1 failed pending pending 14 failed pending pending 14 pending active failed 6 failed failed paused 18 paused
failed pending 14 active ready paused 17 pending pending pending 14 failed pending pending 14 pending failed paused 18 paused
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037365
qwen/qwen3.7-plus
awkweave-0037366
Print column 1 only for rows where column 3 is exactly ready.
$3 == "ready"{print $1}
alice 109 active ember ivan 15 paused cobalt farah 0 pending fable ivan 101 pending cobalt jules 31 pending cobalt bruno 28 ready amber eli 13 closed delta alice 49 active fable bruno 33 active indigo
bruno
ivan 99 failed amber ivan 20 active birch gus 81 pending birch gus 111 active birch eli 104 closed birch jules 83 closed ember dina 42 pending fable farah 65 pending birch eli 115 paused fable
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037366-p1
Output only the first column for rows where the third column matches 'ready' exactly.
$3 == "ready"{print $1}
alice 109 active ember ivan 15 paused cobalt farah 0 pending fable ivan 101 pending cobalt jules 31 pending cobalt bruno 28 ready amber eli 13 closed delta alice 49 active fable bruno 33 active indigo
bruno
ivan 99 failed amber ivan 20 active birch gus 81 pending birch gus 111 active birch eli 104 closed birch jules 83 closed ember dina 42 pending fable farah 65 pending birch eli 115 paused fable
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037366
qwen/qwen3.7-plus
awkweave-0037367
Print all fields from lines where field 2 begins with WARN.
$2 ~ /^WARN/
harbor WARN 50 birch WARN 98 cobalt ERROR 80 fable ERROR 54 juniper ERROR 89 delta ERROR 26 fable ERROR 105 juniper ERROR 36 juniper DEBUG 8 ember DEBUG 117
harbor WARN 50 birch WARN 98
cobalt INFO 84 delta DEBUG 17 grove DEBUG 21 juniper DEBUG 12 fable WARN 98 ember ERROR 92
fable WARN 98
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037367-p1
Display all fields from lines where the second field starts with 'WARN'.
$2 ~ /^WARN/
harbor WARN 50 birch WARN 98 cobalt ERROR 80 fable ERROR 54 juniper ERROR 89 delta ERROR 26 fable ERROR 105 juniper ERROR 36 juniper DEBUG 8 ember DEBUG 117
harbor WARN 50 birch WARN 98
cobalt INFO 84 delta DEBUG 17 grove DEBUG 21 juniper DEBUG 12 fable WARN 98 ember ERROR 92
fable WARN 98
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037367
qwen/qwen3.7-plus
awkweave-0037368
Print every line except those containing the exact text amber.
$0 !~ /amber/
harbor 37 paused cobalt 71 closed fable 34 ready indigo 44 paused amber 5 pending amber 12 active amber 999 active
harbor 37 paused cobalt 71 closed fable 34 ready indigo 44 paused
grove 63 pending cobalt 105 pending grove 33 ready fable 119 failed delta 61 ready cobalt 108 paused amber 17 closed juniper 49 ready indigo 17 closed amber 999 active
grove 63 pending cobalt 105 pending grove 33 ready fable 119 failed delta 61 ready cobalt 108 paused juniper 49 ready indigo 17 closed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037368-p1
Print every line that does not contain the exact string 'amber'.
$0 !~ /amber/
harbor 37 paused cobalt 71 closed fable 34 ready indigo 44 paused amber 5 pending amber 12 active amber 999 active
harbor 37 paused cobalt 71 closed fable 34 ready indigo 44 paused
grove 63 pending cobalt 105 pending grove 33 ready fable 119 failed delta 61 ready cobalt 108 paused amber 17 closed juniper 49 ready indigo 17 closed amber 999 active
grove 63 pending cobalt 105 pending grove 33 ready fable 119 failed delta 61 ready cobalt 108 paused juniper 49 ready indigo 17 closed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037368
qwen/qwen3.7-plus
awkweave-0037369
Print lines 2 through 5, including both endpoints.
NR >= 2 && NR <= 5
ivan indigo 97 eli indigo 73 ivan harbor 74 dina birch 61 chen delta 50 farah amber 31 gus ember 10 ivan birch 42 lina amber 73
eli indigo 73 ivan harbor 74 dina birch 61 chen delta 50
chen delta 49 alice amber 8 alice indigo 82 gus delta 76 hana ember 113 chen grove 68 hana indigo 77 gus grove 101
alice amber 8 alice indigo 82 gus delta 76 hana ember 113
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037369-p1
Output lines 2 to 5, inclusive of both endpoints.
NR >= 2 && NR <= 5
ivan indigo 97 eli indigo 73 ivan harbor 74 dina birch 61 chen delta 50 farah amber 31 gus ember 10 ivan birch 42 lina amber 73
eli indigo 73 ivan harbor 74 dina birch 61 chen delta 50
chen delta 49 alice amber 8 alice indigo 82 gus delta 76 hana ember 113 chen grove 68 hana indigo 77 gus grove 101
alice amber 8 alice indigo 82 gus delta 76 hana ember 113
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037369
qwen/qwen3.7-plus
awkweave-0037370
Output only the first 4 records.
NR <= 4
bruno 7 indigo eli 102 birch kim 118 birch lina 8 birch dina 17 harbor bruno 72 cobalt ivan 91 delta
bruno 7 indigo eli 102 birch kim 118 birch lina 8 birch
jules 96 juniper eli 102 indigo ivan 91 amber jules 62 fable lina 23 grove lina 98 delta chen 89 harbor hana 67 fable alice 57 amber
jules 96 juniper eli 102 indigo ivan 91 amber jules 62 fable
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037370-p1
Display only the first 4 records.
NR <= 4
bruno 7 indigo eli 102 birch kim 118 birch lina 8 birch dina 17 harbor bruno 72 cobalt ivan 91 delta
bruno 7 indigo eli 102 birch kim 118 birch lina 8 birch
jules 96 juniper eli 102 indigo ivan 91 amber jules 62 fable lina 23 grove lina 98 delta chen 89 harbor hana 67 fable alice 57 amber
jules 96 juniper eli 102 indigo ivan 91 amber jules 62 fable
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037370
qwen/qwen3.7-plus
awkweave-0037371
Skip the first line and print every remaining line unchanged.
NR > 1
eli 87 harbor jules 74 ember gus 116 cobalt dina 8 grove bruno 48 grove jules 46 harbor
jules 74 ember gus 116 cobalt dina 8 grove bruno 48 grove jules 46 harbor
ivan 119 grove farah 84 ember bruno 118 cobalt dina 19 amber farah 87 ember ivan 15 grove hana 8 harbor chen 85 birch kim 55 juniper jules 118 fable
farah 84 ember bruno 118 cobalt dina 19 amber farah 87 ember ivan 15 grove hana 8 harbor chen 85 birch kim 55 juniper jules 118 fable
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037371-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
eli 87 harbor jules 74 ember gus 116 cobalt dina 8 grove bruno 48 grove jules 46 harbor
jules 74 ember gus 116 cobalt dina 8 grove bruno 48 grove jules 46 harbor
ivan 119 grove farah 84 ember bruno 118 cobalt dina 19 amber farah 87 ember ivan 15 grove hana 8 harbor chen 85 birch kim 55 juniper jules 118 fable
farah 84 ember bruno 118 cobalt dina 19 amber farah 87 ember ivan 15 grove hana 8 harbor chen 85 birch kim 55 juniper jules 118 fable
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037371
qwen/qwen3.7-plus
awkweave-0037372
Count how many records have ready in column 2. Print 0 if there are none.
$2 == "ready"{n++}END{print n+0}
kim ready 112 bruno paused 45 gus active 119 bruno closed 45 gus ready 72 lina ready 24 dina active 35 gus pending 43 eli ready 61
4
dina ready 114 gus ready 23 kim paused 15 jules failed 59 ivan pending 50 chen active 55 dina failed 37 ivan paused 65 chen active 6
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037372-p1
Count the number of records with 'ready' in the second column; output 0 if none exist.
$2 == "ready"{n++}END{print n+0}
kim ready 112 bruno paused 45 gus active 119 bruno closed 45 gus ready 72 lina ready 24 dina active 35 gus pending 43 eli ready 61
4
dina ready 114 gus ready 23 kim paused 15 jules failed 59 ivan pending 50 chen active 55 dina failed 37 ivan paused 65 chen active 6
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037372
qwen/qwen3.7-plus
awkweave-0037373
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
20 cobalt gus 3 cobalt ivan 16 harbor alice 14 harbor hana 18 cobalt gus 19 fable jules 15 fable ivan 29 fable gus 22 harbor dina
156
30 delta gus 8 fable bruno 6 ember dina 9 indigo lina 18 cobalt eli 13 harbor dina
84
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037373-p1
Compute and display the sum of integer values in the first column.
{s+=$1}END{print s+0}
20 cobalt gus 3 cobalt ivan 16 harbor alice 14 harbor hana 18 cobalt gus 19 fable jules 15 fable ivan 29 fable gus 22 harbor dina
156
30 delta gus 8 fable bruno 6 ember dina 9 indigo lina 18 cobalt eli 13 harbor dina
84
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037373
qwen/qwen3.7-plus
awkweave-0037374
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
birch gus 28 amber farah 19 ember jules 26 juniper farah 27 cobalt chen 14 birch chen 10 indigo farah 16 ember bruno 23 indigo hana 9 indigo alice 4
17.60
delta alice 3 juniper jules 22 ember jules 17 indigo alice 26 harbor hana 9 cobalt jules 8 harbor bruno 16 fable ivan 19 cobalt jules 15 ember lina 13
14.80
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037374-p1
Calculate the average of the third column and round the result to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
birch gus 28 amber farah 19 ember jules 26 juniper farah 27 cobalt chen 14 birch chen 10 indigo farah 16 ember bruno 23 indigo hana 9 indigo alice 4
17.60
delta alice 3 juniper jules 22 ember jules 17 indigo alice 26 harbor hana 9 cobalt jules 8 harbor bruno 16 fable ivan 19 cobalt jules 15 ember lina 13
14.80
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037374
qwen/qwen3.7-plus
awkweave-0037375
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
21 harbor farah 12 ember kim 28 amber dina 18 cobalt farah 20 birch lina 22 grove jules 10 indigo bruno 19 indigo farah 8 indigo alice
8
18 grove farah 4 birch farah 27 ember eli 9 amber ivan 30 amber gus 6 birch hana 25 grove ivan 23 birch ivan
4
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037375-p1
Identify and print the minimum numeric value found in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
21 harbor farah 12 ember kim 28 amber dina 18 cobalt farah 20 birch lina 22 grove jules 10 indigo bruno 19 indigo farah 8 indigo alice
8
18 grove farah 4 birch farah 27 ember eli 9 amber ivan 30 amber gus 6 birch hana 25 grove ivan 23 birch ivan
4
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037375
qwen/qwen3.7-plus
awkweave-0037376
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
lina grove 28 chen cobalt 11 jules grove 22 chen ember 29 gus juniper 1 chen cobalt 2 gus grove 16 chen cobalt 17 hana harbor 30
30
alice grove 23 bruno fable 6 lina juniper 4 lina harbor 18 dina amber 28 farah juniper 25 bruno ember 23
28
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037376-p1
Identify and print the maximum numeric value found in the third column.
NR==1||$3>extreme{extreme=$3}END{print extreme}
lina grove 28 chen cobalt 11 jules grove 22 chen ember 29 gus juniper 1 chen cobalt 2 gus grove 16 chen cobalt 17 hana harbor 30
30
alice grove 23 bruno fable 6 lina juniper 4 lina harbor 18 dina amber 28 farah juniper 25 bruno ember 23
28
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037376
qwen/qwen3.7-plus
awkweave-0037377
Count all input records and print the total.
END{print NR}
ivan 44 kim 96 ivan 2 chen 55 hana 78 farah 11 bruno 87 farah 37 hana 11 kim 54
10
kim 120 lina 63 chen 85 eli 68 alice 80 farah 36 ivan 27 hana 5
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037377-p1
Count the total number of input records and print the result.
END{print NR}
ivan 44 kim 96 ivan 2 chen 55 hana 78 farah 11 bruno 87 farah 37 hana 11 kim 54
10
kim 120 lina 63 chen 85 eli 68 alice 80 farah 36 ivan 27 hana 5
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037377
qwen/qwen3.7-plus
awkweave-0037378
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
ivan ember 12 jules indigo 80 eli amber 70 ivan ember 12 farah birch 90 lina grove 104 eli fable 85 bruno grove 76
ivan ember 12 jules indigo 80 eli amber 70 farah birch 90 lina grove 104 eli fable 85 bruno grove 76
gus indigo 82 chen cobalt 67 dina fable 9 gus cobalt 50 hana birch 31 hana cobalt 113 dina fable 9
gus indigo 82 chen cobalt 67 dina fable 9 gus cobalt 50 hana birch 31 hana cobalt 113
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037378-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
ivan ember 12 jules indigo 80 eli amber 70 ivan ember 12 farah birch 90 lina grove 104 eli fable 85 bruno grove 76
ivan ember 12 jules indigo 80 eli amber 70 farah birch 90 lina grove 104 eli fable 85 bruno grove 76
gus indigo 82 chen cobalt 67 dina fable 9 gus cobalt 50 hana birch 31 hana cobalt 113 dina fable 9
gus indigo 82 chen cobalt 67 dina fable 9 gus cobalt 50 hana birch 31 hana cobalt 113
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037378
qwen/qwen3.7-plus
awkweave-0037379
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
ivan grove 29 hana cobalt 45 ivan delta 101 eli cobalt 118 alice grove 96 alice cobalt 108 dina fable 89 jules juniper 5 farah amber 71
ivan grove 29 hana cobalt 45 ivan delta 101 eli cobalt 118 alice grove 96 alice cobalt 108 dina fable 89 jules juniper 5 farah amber 71
gus delta 117 ivan grove 37 hana fable 75 bruno delta 108 kim juniper 47 ivan grove 60 lina juniper 28 alice cobalt 11 eli harbor 68
gus delta 117 ivan grove 37 hana fable 75 bruno delta 108 kim juniper 47 ivan grove 60 lina juniper 28 alice cobalt 11 eli harbor 68
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037379-p1
Retain only the initial line for every unique value found in the third column, preserving the input order.
!seen[$3]++
ivan grove 29 hana cobalt 45 ivan delta 101 eli cobalt 118 alice grove 96 alice cobalt 108 dina fable 89 jules juniper 5 farah amber 71
ivan grove 29 hana cobalt 45 ivan delta 101 eli cobalt 118 alice grove 96 alice cobalt 108 dina fable 89 jules juniper 5 farah amber 71
gus delta 117 ivan grove 37 hana fable 75 bruno delta 108 kim juniper 47 ivan grove 60 lina juniper 28 alice cobalt 11 eli harbor 68
gus delta 117 ivan grove 37 hana fable 75 bruno delta 108 kim juniper 47 ivan grove 60 lina juniper 28 alice cobalt 11 eli harbor 68
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037379
qwen/qwen3.7-plus
awkweave-0037380
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
bruno 18 birch kim 14 delta dina 2 birch farah 25 harbor ivan 16 cobalt lina 10 harbor dina 27 juniper dina 21 indigo bruno 4 birch
bruno 18 kim 32 dina 34 farah 59 ivan 75 lina 85 dina 112 dina 133 bruno 137
farah 14 juniper bruno 25 amber hana 1 harbor ivan 25 grove bruno 12 birch hana 10 indigo dina 21 delta hana 10 cobalt gus 1 juniper kim 14 harbor
farah 14 bruno 39 hana 40 ivan 65 bruno 77 hana 87 dina 108 hana 118 gus 119 kim 133
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037380-p1
Output the first column alongside the cumulative total of the second column for each record, separated by a space.
{s+=$2;print $1,s}
bruno 18 birch kim 14 delta dina 2 birch farah 25 harbor ivan 16 cobalt lina 10 harbor dina 27 juniper dina 21 indigo bruno 4 birch
bruno 18 kim 32 dina 34 farah 59 ivan 75 lina 85 dina 112 dina 133 bruno 137
farah 14 juniper bruno 25 amber hana 1 harbor ivan 25 grove bruno 12 birch hana 10 indigo dina 21 delta hana 10 cobalt gus 1 juniper kim 14 harbor
farah 14 bruno 39 hana 40 ivan 65 bruno 77 hana 87 dina 108 hana 118 gus 119 kim 133
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037380
qwen/qwen3.7-plus
awkweave-0037381
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 24 26 grove dina 11 2 harbor ivan 23 9 cobalt lina 8 6 amber gus 20 5 grove ivan 2 9 amber farah 12 14 ember lina 20 11 juniper kim 21 3 grove chen 22 14 amber
bruno 50 dina 13 ivan 32 lina 14 gus 25 ivan 11 farah 26 lina 31 kim 24 chen 36
gus 18 16 amber eli 28 28 harbor kim 29 21 cobalt hana 30 27 cobalt bruno 11 5 delta alice 1 30 juniper lina 26 12 cobalt
gus 34 eli 56 kim 50 hana 57 bruno 16 alice 31 lina 38
computed_field
1
train
original-grammar
CC-BY-4.0
null
null