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-0015380-p1
Identify and display the maximum number found in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
alice 2 harbor gus 21 amber eli 29 fable dina 18 amber bruno 5 harbor dina 30 amber
30
chen 28 fable eli 24 birch ivan 5 delta alice 10 cobalt gus 22 delta dina 29 birch farah 26 grove jules 8 amber ivan 19 harbor farah 9 harbor
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015380
qwen/qwen3.7-plus
awkweave-0015381
Count all input records and print the total.
END{print NR}
bruno 96 farah 4 hana 98 jules 83 lina 20 eli 90 gus 80
7
jules 86 chen 100 gus 83 kim 73 lina 102 eli 83
6
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015381-p1
Calculate the total number of input lines and print the count.
END{print NR}
bruno 96 farah 4 hana 98 jules 83 lina 20 eli 90 gus 80
7
jules 86 chen 100 gus 83 kim 73 lina 102 eli 83
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015381
qwen/qwen3.7-plus
awkweave-0015382
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
gus juniper 77 chen ember 75 gus ember 15 eli juniper 7 bruno indigo 70 gus grove 24 gus ember 15 chen delta 106
gus juniper 77 chen ember 75 gus ember 15 eli juniper 7 bruno indigo 70 gus grove 24 chen delta 106
eli grove 41 dina indigo 1 eli fable 39 gus delta 34 eli amber 45 dina juniper 86 eli grove 41 alice fable 53
eli grove 41 dina indigo 1 eli fable 39 gus delta 34 eli amber 45 dina juniper 86 alice fable 53
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015382-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
gus juniper 77 chen ember 75 gus ember 15 eli juniper 7 bruno indigo 70 gus grove 24 gus ember 15 chen delta 106
gus juniper 77 chen ember 75 gus ember 15 eli juniper 7 bruno indigo 70 gus grove 24 chen delta 106
eli grove 41 dina indigo 1 eli fable 39 gus delta 34 eli amber 45 dina juniper 86 eli grove 41 alice fable 53
eli grove 41 dina indigo 1 eli fable 39 gus delta 34 eli amber 45 dina juniper 86 alice fable 53
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015382
qwen/qwen3.7-plus
awkweave-0015383
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
bruno fable 28 kim indigo 42 alice grove 53 hana amber 109 eli cobalt 26 ivan fable 70 gus ember 23 hana indigo 104
bruno fable 28 kim indigo 42 alice grove 53 hana amber 109 eli cobalt 26 ivan fable 70 gus ember 23
ivan indigo 100 bruno grove 36 chen harbor 98 jules birch 114 dina cobalt 63 jules ember 10
ivan indigo 100 bruno grove 36 chen harbor 98 jules birch 114 dina cobalt 63
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015383-p1
Retain only the initial line for every unique value in column 1, keeping the original order.
!seen[$1]++
bruno fable 28 kim indigo 42 alice grove 53 hana amber 109 eli cobalt 26 ivan fable 70 gus ember 23 hana indigo 104
bruno fable 28 kim indigo 42 alice grove 53 hana amber 109 eli cobalt 26 ivan fable 70 gus ember 23
ivan indigo 100 bruno grove 36 chen harbor 98 jules birch 114 dina cobalt 63 jules ember 10
ivan indigo 100 bruno grove 36 chen harbor 98 jules birch 114 dina cobalt 63
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015383
qwen/qwen3.7-plus
awkweave-0015384
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
chen 5 juniper eli 15 cobalt alice 9 grove alice 5 indigo eli 20 fable gus 25 amber
chen 5 eli 20 alice 29 alice 34 eli 54 gus 79
ivan 23 juniper dina 15 amber ivan 1 birch ivan 8 fable gus 3 indigo lina 10 harbor ivan 19 birch hana 5 ember bruno 7 fable eli 2 cobalt
ivan 23 dina 38 ivan 39 ivan 47 gus 50 lina 60 ivan 79 hana 84 bruno 91 eli 93
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015384-p1
For each entry, output column 1 and the cumulative total of column 2, separated by a space.
{s+=$2;print $1,s}
chen 5 juniper eli 15 cobalt alice 9 grove alice 5 indigo eli 20 fable gus 25 amber
chen 5 eli 20 alice 29 alice 34 eli 54 gus 79
ivan 23 juniper dina 15 amber ivan 1 birch ivan 8 fable gus 3 indigo lina 10 harbor ivan 19 birch hana 5 ember bruno 7 fable eli 2 cobalt
ivan 23 dina 38 ivan 39 ivan 47 gus 50 lina 60 ivan 79 hana 84 bruno 91 eli 93
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015384
qwen/qwen3.7-plus
awkweave-0015385
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 3 30 fable farah 3 27 amber chen 22 22 delta jules 11 5 ember alice 6 27 harbor farah 28 21 harbor
bruno 33 farah 30 chen 44 jules 16 alice 33 farah 49
lina 19 2 harbor farah 15 18 ember chen 3 30 fable gus 21 13 indigo chen 7 30 juniper bruno 9 30 grove hana 9 15 birch kim 25 26 amber dina 2 9 indigo chen 16 22 harbor
lina 21 farah 33 chen 33 gus 34 chen 37 bruno 39 hana 24 kim 51 dina 11 chen 38
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015385-p1
For each row, output field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 3 30 fable farah 3 27 amber chen 22 22 delta jules 11 5 ember alice 6 27 harbor farah 28 21 harbor
bruno 33 farah 30 chen 44 jules 16 alice 33 farah 49
lina 19 2 harbor farah 15 18 ember chen 3 30 fable gus 21 13 indigo chen 7 30 juniper bruno 9 30 grove hana 9 15 birch kim 25 26 amber dina 2 9 indigo chen 16 22 harbor
lina 21 farah 33 chen 33 gus 34 chen 37 bruno 39 hana 24 kim 51 dina 11 chen 38
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015385
qwen/qwen3.7-plus
awkweave-0015386
Print column 1 and pass when column 2 is at least 21; otherwise print fail.
{print $1,($2>=21?"pass":"fail")}
gus 21 kim 25 kim 9 lina 8 hana 19 gus 20 eli 25
gus pass kim pass kim fail lina fail hana fail gus fail eli pass
lina 17 jules 29 gus 2 hana 12 eli 4 lina 20 dina 8 farah 30 alice 21 lina 12
lina fail jules pass gus fail hana fail eli fail lina fail dina fail farah pass alice pass lina fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015386-p1
Output column 1 along with 'pass' if column 2 is 21 or greater, otherwise output 'fail'.
{print $1,($2>=21?"pass":"fail")}
gus 21 kim 25 kim 9 lina 8 hana 19 gus 20 eli 25
gus pass kim pass kim fail lina fail hana fail gus fail eli pass
lina 17 jules 29 gus 2 hana 12 eli 4 lina 20 dina 8 farah 30 alice 21 lina 12
lina fail jules pass gus fail hana fail eli fail lina fail dina fail farah pass alice pass lina fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015386
qwen/qwen3.7-plus
awkweave-0015387
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
eli indigo 82 lina juniper 51 farah cobalt 71 gus amber 119 alice ember 49 chen amber 116
ELI LINA FARAH GUS ALICE CHEN
chen juniper 28 chen harbor 33 eli fable 65 bruno cobalt 94 bruno indigo 92 bruno cobalt 91 hana ember 15 lina cobalt 25 bruno cobalt 25 ivan delta 46
CHEN CHEN ELI BRUNO BRUNO BRUNO HANA LINA BRUNO IVAN
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015387-p1
Transform column 1 to uppercase and print only that column.
{print toupper($1)}
eli indigo 82 lina juniper 51 farah cobalt 71 gus amber 119 alice ember 49 chen amber 116
ELI LINA FARAH GUS ALICE CHEN
chen juniper 28 chen harbor 33 eli fable 65 bruno cobalt 94 bruno indigo 92 bruno cobalt 91 hana ember 15 lina cobalt 25 bruno cobalt 25 ivan delta 46
CHEN CHEN ELI BRUNO BRUNO BRUNO HANA LINA BRUNO IVAN
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015387
qwen/qwen3.7-plus
awkweave-0015388
From column 1, print 3 characters starting at character 3.
{print substr($1,3,3)}
birch 3 birch 64 amber 67 delta 60 delta 75 birch 66
rch rch ber lta lta rch
birch 87 cobalt 33 amber 56 juniper 91 birch 19 delta 112 juniper 53 cobalt 30 juniper 75
rch bal ber nip rch lta nip bal nip
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015388-p1
Extract and print a substring of length 3 from column 1, starting at the third character.
{print substr($1,3,3)}
birch 3 birch 64 amber 67 delta 60 delta 75 birch 66
rch rch ber lta lta rch
birch 87 cobalt 33 amber 56 juniper 91 birch 19 delta 112 juniper 53 cobalt 30 juniper 75
rch bal ber nip rch lta nip bal nip
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015388
qwen/qwen3.7-plus
awkweave-0015389
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
fable_juniper 110 juniper_amber 77 amber_harbor 111 amber_birch 36 birch_juniper 40 amber_birch 46 fable_grove 86 fable_harbor 81 delta_indigo 75 amber_birch 120
fable juniper juniper amber amber harbor amber birch birch juniper amber birch fable grove fable harbor delta indigo amber birch
juniper_delta 103 amber_juniper 41 delta_delta 74 harbor_fable 38 ember_fable 57 birch_birch 56 indigo_delta 53 harbor_delta 50 ember_harbor 65 juniper_cobalt 85
juniper delta amber juniper delta delta harbor fable ember fable birch birch indigo delta harbor delta ember harbor juniper cobalt
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015389-p1
Substitute all underscores in column 1 with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
fable_juniper 110 juniper_amber 77 amber_harbor 111 amber_birch 36 birch_juniper 40 amber_birch 46 fable_grove 86 fable_harbor 81 delta_indigo 75 amber_birch 120
fable juniper juniper amber amber harbor amber birch birch juniper amber birch fable grove fable harbor delta indigo amber birch
juniper_delta 103 amber_juniper 41 delta_delta 74 harbor_fable 38 ember_fable 57 birch_birch 56 indigo_delta 53 harbor_delta 50 ember_harbor 65 juniper_cobalt 85
juniper delta amber juniper delta delta harbor fable ember fable birch birch indigo delta harbor delta ember harbor juniper cobalt
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015389
qwen/qwen3.7-plus
awkweave-0015400
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
alice indigo 48 ready eli harbor 89 ready gus grove 116 active farah fable 90 failed hana grove 65 ready kim indigo 19 paused ivan fable 59 paused gus delta 48 paused
alice indigo 48 ready
bruno harbor 118 pending jules amber 47 ready hana cobalt 118 active dina cobalt 64 closed jules birch 3 closed alice indigo 14 active kim juniper 50 pending chen grove 44 pending kim ember 40 pending
bruno harbor 118 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015400-p1
Identify and output the longest line from the input, selecting the first one encountered if there is a tie in length.
{if(length($0)>length(best))best=$0}END{print best}
alice indigo 48 ready eli harbor 89 ready gus grove 116 active farah fable 90 failed hana grove 65 ready kim indigo 19 paused ivan fable 59 paused gus delta 48 paused
alice indigo 48 ready
bruno harbor 118 pending jules amber 47 ready hana cobalt 118 active dina cobalt 64 closed jules birch 3 closed alice indigo 14 active kim juniper 50 pending chen grove 44 pending kim ember 40 pending
bruno harbor 118 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015400
qwen/qwen3.7-plus
awkweave-0015401
Print every 3rd line starting at line 3 (then line 6, and so on).
NR%3==0
eli 59 kim 101 dina 10 gus 32 eli 71 kim 107 alice 30 jules 23 gus 27
dina 10 kim 107 gus 27
chen 88 bruno 114 gus 34 ivan 44 lina 44 jules 55 lina 56 bruno 50 bruno 38
gus 34 jules 55 bruno 38
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015401-p1
Output every third line of the input, beginning with line 3 (i.e., lines 3, 6, 9, etc.).
NR%3==0
eli 59 kim 101 dina 10 gus 32 eli 71 kim 107 alice 30 jules 23 gus 27
dina 10 kim 107 gus 27
chen 88 bruno 114 gus 34 ivan 44 lina 44 jules 55 lina 56 bruno 50 bruno 38
gus 34 jules 55 bruno 38
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015401
qwen/qwen3.7-plus
awkweave-0015402
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta grove 114 gamma ember 115 alpha harbor 75 gamma birch 85 delta cobalt 2 beta indigo 36
6
beta grove 59 delta cobalt 52 gamma delta 49 alpha grove 60 gamma fable 82 gamma birch 43 beta amber 24 alpha indigo 62 alpha delta 110 beta amber 30
7
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015402-p1
Calculate the number of unique values found in the second column and display only that total count.
{if(!seen[$2]++)n++}END{print n+0}
beta grove 114 gamma ember 115 alpha harbor 75 gamma birch 85 delta cobalt 2 beta indigo 36
6
beta grove 59 delta cobalt 52 gamma delta 49 alpha grove 60 gamma fable 82 gamma birch 43 beta amber 24 alpha indigo 62 alpha delta 110 beta amber 30
7
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015402
qwen/qwen3.7-plus
awkweave-0015403
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}
lina 11 0 dina 10 11 dina 29 20 farah 3 28 bruno 1 4 alice 11 16 chen 29 14 chen 9 5 eli 10 12 chen 30 6
dina 0.91 dina 1.45 farah 0.11 bruno 0.25 alice 0.69 chen 2.07 chen 1.80 eli 0.83 chen 5.00
bruno 10 0 hana 14 26 farah 19 7 eli 27 27 bruno 2 25 jules 5 21 dina 3 1 jules 18 18 hana 15 18
hana 0.54 farah 2.71 eli 1.00 bruno 0.08 jules 0.24 dina 3.00 jules 1.00 hana 0.83
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015403-p1
For each row where the third column is not 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}
lina 11 0 dina 10 11 dina 29 20 farah 3 28 bruno 1 4 alice 11 16 chen 29 14 chen 9 5 eli 10 12 chen 30 6
dina 0.91 dina 1.45 farah 0.11 bruno 0.25 alice 0.69 chen 2.07 chen 1.80 eli 0.83 chen 5.00
bruno 10 0 hana 14 26 farah 19 7 eli 27 27 bruno 2 25 jules 5 21 dina 3 1 jules 18 18 hana 15 18
hana 0.54 farah 2.71 eli 1.00 bruno 0.08 jules 0.24 dina 3.00 jules 1.00 hana 0.83
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015403
qwen/qwen3.7-plus
awkweave-0015404
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 birch 8 hana delta 6 alice harbor 28 eli indigo 28 eli fable 4 farah birch 1 bruno juniper 9 kim grove 20 gus indigo 24 jules fable 15
alice harbor 28 eli indigo 28 gus indigo 24
farah ember 29 eli cobalt 6 jules ember 19 kim fable 4 alice delta 2 dina cobalt 1 gus juniper 17 gus harbor 2 bruno fable 24
farah ember 29 bruno fable 24 jules ember 19
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015404-p1
Display the full records corresponding to the top three 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]}
jules birch 8 hana delta 6 alice harbor 28 eli indigo 28 eli fable 4 farah birch 1 bruno juniper 9 kim grove 20 gus indigo 24 jules fable 15
alice harbor 28 eli indigo 28 gus indigo 24
farah ember 29 eli cobalt 6 jules ember 19 kim fable 4 alice delta 2 dina cobalt 1 gus juniper 17 gus harbor 2 bruno fable 24
farah ember 29 bruno fable 24 jules ember 19
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015404
qwen/qwen3.7-plus
awkweave-0015405
Print column 4 followed by column 1 for every record.
{print $4, $1}
117 farah failed gus kim 55 alice ready hana farah 30 jules ready lina bruno 29 eli closed lina alice 93 ivan ready hana farah 45 alice closed gus dina 42 kim failed kim ivan 74 chen ready alice ivan 26 farah pending farah gus 28 dina ready jules bruno
gus 117 hana 55 lina 30 lina 29 hana 93 gus 45 kim 42 alice 74 farah 26 jules 28
3 gus pending dina gus 5 farah pending chen kim 98 lina paused kim chen 24 bruno ready chen kim 76 eli paused ivan gus 115 dina paused dina farah 52 ivan ready chen farah 113 lina paused ivan dina 50 eli ready gus alice
dina 3 chen 5 kim 98 chen 24 ivan 76 dina 115 chen 52 ivan 113 gus 50
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015405-p1
Output the fourth column followed by the first column for every record in the input.
{print $4, $1}
117 farah failed gus kim 55 alice ready hana farah 30 jules ready lina bruno 29 eli closed lina alice 93 ivan ready hana farah 45 alice closed gus dina 42 kim failed kim ivan 74 chen ready alice ivan 26 farah pending farah gus 28 dina ready jules bruno
gus 117 hana 55 lina 30 lina 29 hana 93 gus 45 kim 42 alice 74 farah 26 jules 28
3 gus pending dina gus 5 farah pending chen kim 98 lina paused kim chen 24 bruno ready chen kim 76 eli paused ivan gus 115 dina paused dina farah 52 ivan ready chen farah 113 lina paused ivan dina 50 eli ready gus alice
dina 3 chen 5 kim 98 chen 24 ivan 76 dina 115 chen 52 ivan 113 gus 50
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015405
qwen/qwen3.7-plus
awkweave-0015406
Print the last field of every input line.
{print $NF}
102 hana 55 grove gus amber grove 69 lina 74 birch ivan fable juniper 85 hana 68 ember jules cobalt birch 109 kim 88 ember ivan birch grove 65 eli 7 ember jules ember fable 87 bruno 16 delta chen juniper indigo 84 lina 49 fable lina harbor harbor 66 alice 94 grove bruno fable fable 82 alice 46 grove alice amber harbor ...
grove juniper birch grove fable indigo harbor fable harbor indigo
16 chen 77 fable gus ember cobalt 101 alice 109 delta chen fable amber 37 alice 59 birch lina birch harbor 20 farah 120 cobalt hana birch ember 12 alice 59 indigo alice amber ember 105 eli 50 amber farah fable delta 11 ivan 0 indigo hana ember grove
cobalt amber harbor ember ember delta grove
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015406-p1
Print the final field from each line of the input.
{print $NF}
102 hana 55 grove gus amber grove 69 lina 74 birch ivan fable juniper 85 hana 68 ember jules cobalt birch 109 kim 88 ember ivan birch grove 65 eli 7 ember jules ember fable 87 bruno 16 delta chen juniper indigo 84 lina 49 fable lina harbor harbor 66 alice 94 grove bruno fable fable 82 alice 46 grove alice amber harbor ...
grove juniper birch grove fable indigo harbor fable harbor indigo
16 chen 77 fable gus ember cobalt 101 alice 109 delta chen fable amber 37 alice 59 birch lina birch harbor 20 farah 120 cobalt hana birch ember 12 alice 59 indigo alice amber ember 105 eli 50 amber farah fable delta 11 ivan 0 indigo hana ember grove
cobalt amber harbor ember ember delta grove
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015406
qwen/qwen3.7-plus
awkweave-0015407
Print the complete records where column 1 is at least 42.
$1 >= 42
10 active chen paused ready 103 pending hana paused active 39 failed ivan active closed 64 closed hana ready pending 113 failed gus closed failed 112 paused kim ready paused 74 ready chen paused closed 90 closed bruno active closed 35 ready bruno paused pending 27 failed bruno active pending
103 pending hana paused active 64 closed hana ready pending 113 failed gus closed failed 112 paused kim ready paused 74 ready chen paused closed 90 closed bruno active closed
39 pending hana closed paused 105 ready eli ready failed 39 active jules failed pending 96 ready dina paused active 57 closed farah closed pending 79 pending dina closed active 60 ready hana active ready 31 paused chen closed pending 11 active alice closed active 64 active alice active paused
105 ready eli ready failed 96 ready dina paused active 57 closed farah closed pending 79 pending dina closed active 60 ready hana active ready 64 active alice active paused
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015407-p1
Output the entire records for which the value in the first column is greater than or equal to 42.
$1 >= 42
10 active chen paused ready 103 pending hana paused active 39 failed ivan active closed 64 closed hana ready pending 113 failed gus closed failed 112 paused kim ready paused 74 ready chen paused closed 90 closed bruno active closed 35 ready bruno paused pending 27 failed bruno active pending
103 pending hana paused active 64 closed hana ready pending 113 failed gus closed failed 112 paused kim ready paused 74 ready chen paused closed 90 closed bruno active closed
39 pending hana closed paused 105 ready eli ready failed 39 active jules failed pending 96 ready dina paused active 57 closed farah closed pending 79 pending dina closed active 60 ready hana active ready 31 paused chen closed pending 11 active alice closed active 64 active alice active paused
105 ready eli ready failed 96 ready dina paused active 57 closed farah closed pending 79 pending dina closed active 60 ready hana active ready 64 active alice active paused
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015407
qwen/qwen3.7-plus
awkweave-0015408
Show whole lines whose 1st field is between 9 and 26, inclusive.
$1 >= 9 && $1 <= 26
25 lina chen hana 2 farah eli dina 30 hana lina farah 13 dina eli lina 21 farah farah gus 10 alice alice jules 23 hana kim eli 3 kim gus bruno 2 jules farah dina 8 bruno eli farah
25 lina chen hana 13 dina eli lina 21 farah farah gus 10 alice alice jules 23 hana kim eli
25 alice dina lina 23 alice hana eli 30 lina bruno farah 7 gus chen ivan 22 bruno kim kim 15 jules bruno ivan
25 alice dina lina 23 alice hana eli 22 bruno kim kim 15 jules bruno ivan
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015408-p1
Display complete lines where the first field falls within the inclusive range of 9 to 26.
$1 >= 9 && $1 <= 26
25 lina chen hana 2 farah eli dina 30 hana lina farah 13 dina eli lina 21 farah farah gus 10 alice alice jules 23 hana kim eli 3 kim gus bruno 2 jules farah dina 8 bruno eli farah
25 lina chen hana 13 dina eli lina 21 farah farah gus 10 alice alice jules 23 hana kim eli
25 alice dina lina 23 alice hana eli 30 lina bruno farah 7 gus chen ivan 22 bruno kim kim 15 jules bruno ivan
25 alice dina lina 23 alice hana eli 22 bruno kim kim 15 jules bruno ivan
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015408
qwen/qwen3.7-plus
awkweave-0015409
Print column 2 only for rows where column 3 is exactly active.
$3 == "active"{print $2}
105 lina closed delta 53 bruno pending birch 64 bruno active amber 93 bruno paused juniper 8 alice failed amber 18 jules ready fable 94 hana closed birch 4 gus active indigo 50 dina closed birch
bruno gus
80 eli ready harbor 12 kim failed grove 69 gus failed delta 71 gus closed juniper 59 ivan closed birch 13 bruno active juniper 85 dina failed delta 100 lina pending birch 31 jules closed birch
bruno
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015409-p1
Output only the second column for rows where the third column contains exactly the text 'active'.
$3 == "active"{print $2}
105 lina closed delta 53 bruno pending birch 64 bruno active amber 93 bruno paused juniper 8 alice failed amber 18 jules ready fable 94 hana closed birch 4 gus active indigo 50 dina closed birch
bruno gus
80 eli ready harbor 12 kim failed grove 69 gus failed delta 71 gus closed juniper 59 ivan closed birch 13 bruno active juniper 85 dina failed delta 100 lina pending birch 31 jules closed birch
bruno
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015409
qwen/qwen3.7-plus
awkweave-0015410
Print all fields from lines where field 1 begins with INFO.
$1 ~ /^INFO/
WARN 96 amber DEBUG 45 fable ERROR 37 grove INFO 112 harbor DEBUG 69 fable INFO 82 juniper
INFO 112 harbor INFO 82 juniper
WARN 35 fable INFO 80 birch INFO 58 fable WARN 102 fable WARN 72 harbor INFO 31 birch INFO 90 indigo INFO 76 indigo
INFO 80 birch INFO 58 fable INFO 31 birch INFO 90 indigo INFO 76 indigo
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015410-p1
Print all fields from any line where the first field starts with the string 'INFO'.
$1 ~ /^INFO/
WARN 96 amber DEBUG 45 fable ERROR 37 grove INFO 112 harbor DEBUG 69 fable INFO 82 juniper
INFO 112 harbor INFO 82 juniper
WARN 35 fable INFO 80 birch INFO 58 fable WARN 102 fable WARN 72 harbor INFO 31 birch INFO 90 indigo INFO 76 indigo
INFO 80 birch INFO 58 fable INFO 31 birch INFO 90 indigo INFO 76 indigo
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015410
qwen/qwen3.7-plus
awkweave-0015411
Print every line except those containing the exact text cobalt.
$0 !~ /cobalt/
indigo 64 failed indigo 56 ready fable 103 closed grove 117 closed fable 62 ready harbor 108 active ember 111 active cobalt 999 active
indigo 64 failed indigo 56 ready fable 103 closed grove 117 closed fable 62 ready harbor 108 active ember 111 active
harbor 9 ready fable 61 ready ember 116 ready amber 3 pending juniper 7 ready harbor 96 pending birch 120 failed birch 53 ready harbor 14 closed ember 43 failed cobalt 999 active
harbor 9 ready fable 61 ready ember 116 ready amber 3 pending juniper 7 ready harbor 96 pending birch 120 failed birch 53 ready harbor 14 closed ember 43 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015411-p1
Output every line from the input except those that contain the exact string 'cobalt'.
$0 !~ /cobalt/
indigo 64 failed indigo 56 ready fable 103 closed grove 117 closed fable 62 ready harbor 108 active ember 111 active cobalt 999 active
indigo 64 failed indigo 56 ready fable 103 closed grove 117 closed fable 62 ready harbor 108 active ember 111 active
harbor 9 ready fable 61 ready ember 116 ready amber 3 pending juniper 7 ready harbor 96 pending birch 120 failed birch 53 ready harbor 14 closed ember 43 failed cobalt 999 active
harbor 9 ready fable 61 ready ember 116 ready amber 3 pending juniper 7 ready harbor 96 pending birch 120 failed birch 53 ready harbor 14 closed ember 43 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015411
qwen/qwen3.7-plus
awkweave-0015412
Print lines 4 through 6, including both endpoints.
NR >= 4 && NR <= 6
bruno ember 82 alice indigo 112 eli harbor 100 hana ember 17 alice delta 90 bruno indigo 72 alice amber 59 alice fable 6 eli harbor 67 bruno fable 80
hana ember 17 alice delta 90 bruno indigo 72
farah harbor 86 lina delta 61 jules juniper 46 chen delta 67 gus cobalt 10 gus grove 19 kim birch 37
chen delta 67 gus cobalt 10 gus grove 19
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015412-p1
Display lines 4 to 6, inclusive.
NR >= 4 && NR <= 6
bruno ember 82 alice indigo 112 eli harbor 100 hana ember 17 alice delta 90 bruno indigo 72 alice amber 59 alice fable 6 eli harbor 67 bruno fable 80
hana ember 17 alice delta 90 bruno indigo 72
farah harbor 86 lina delta 61 jules juniper 46 chen delta 67 gus cobalt 10 gus grove 19 kim birch 37
chen delta 67 gus cobalt 10 gus grove 19
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015412
qwen/qwen3.7-plus
awkweave-0015413
Output only the first 2 records.
NR <= 2
alice 101 fable farah 112 harbor lina 98 fable lina 38 grove gus 111 juniper lina 98 amber ivan 47 birch
alice 101 fable farah 112 harbor
alice 59 birch ivan 98 amber kim 6 delta alice 32 delta ivan 98 amber lina 116 harbor alice 55 birch alice 50 birch farah 57 ember ivan 15 amber
alice 59 birch ivan 98 amber
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015413-p1
Output just the initial 2 records.
NR <= 2
alice 101 fable farah 112 harbor lina 98 fable lina 38 grove gus 111 juniper lina 98 amber ivan 47 birch
alice 101 fable farah 112 harbor
alice 59 birch ivan 98 amber kim 6 delta alice 32 delta ivan 98 amber lina 116 harbor alice 55 birch alice 50 birch farah 57 ember ivan 15 amber
alice 59 birch ivan 98 amber
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015413
qwen/qwen3.7-plus
awkweave-0015414
Skip the first line and print every remaining line unchanged.
NR > 1
hana 113 delta eli 53 delta hana 46 fable hana 116 delta jules 17 harbor hana 78 indigo
eli 53 delta hana 46 fable hana 116 delta jules 17 harbor hana 78 indigo
kim 89 indigo kim 115 grove chen 99 cobalt dina 11 fable ivan 22 delta eli 11 juniper farah 98 grove
kim 115 grove chen 99 cobalt dina 11 fable ivan 22 delta eli 11 juniper farah 98 grove
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015414-p1
Omit the first line and output all subsequent lines as they are.
NR > 1
hana 113 delta eli 53 delta hana 46 fable hana 116 delta jules 17 harbor hana 78 indigo
eli 53 delta hana 46 fable hana 116 delta jules 17 harbor hana 78 indigo
kim 89 indigo kim 115 grove chen 99 cobalt dina 11 fable ivan 22 delta eli 11 juniper farah 98 grove
kim 115 grove chen 99 cobalt dina 11 fable ivan 22 delta eli 11 juniper farah 98 grove
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015414
qwen/qwen3.7-plus
awkweave-0015415
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
kim active 72 hana ready 31 jules paused 105 bruno paused 59 jules pending 93 farah active 29
0
alice active 63 kim closed 48 dina paused 25 dina failed 52 bruno closed 69 kim paused 91 gus pending 78 farah failed 5
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015415-p1
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
kim active 72 hana ready 31 jules paused 105 bruno paused 59 jules pending 93 farah active 29
0
alice active 63 kim closed 48 dina paused 25 dina failed 52 bruno closed 69 kim paused 91 gus pending 78 farah failed 5
2
count_matches
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0015415
qwen/qwen3.7-plus
awkweave-0015416
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
grove 2 alice harbor 23 lina cobalt 4 eli ember 6 lina harbor 11 chen ember 4 ivan
50
ember 27 bruno ember 25 dina juniper 2 gus grove 28 ivan grove 16 hana juniper 16 kim harbor 18 dina
132
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015416-p1
Compute and display the total sum of integer values in column 2.
{s+=$2}END{print s+0}
grove 2 alice harbor 23 lina cobalt 4 eli ember 6 lina harbor 11 chen ember 4 ivan
50
ember 27 bruno ember 25 dina juniper 2 gus grove 28 ivan grove 16 hana juniper 16 kim harbor 18 dina
132
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015416
qwen/qwen3.7-plus
awkweave-0015417
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
bruno birch 14 gus grove 10 lina grove 8 kim ember 3 gus grove 25 jules delta 1 chen ember 15 ivan birch 1 gus juniper 14 ivan cobalt 17
10.80
lina juniper 23 chen delta 12 ivan ember 28 jules ember 24 eli birch 21 kim amber 3 alice juniper 22 dina ember 29
20.25
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015417-p1
Print the average of column 3, formatted to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
bruno birch 14 gus grove 10 lina grove 8 kim ember 3 gus grove 25 jules delta 1 chen ember 15 ivan birch 1 gus juniper 14 ivan cobalt 17
10.80
lina juniper 23 chen delta 12 ivan ember 28 jules ember 24 eli birch 21 kim amber 3 alice juniper 22 dina ember 29
20.25
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015417
qwen/qwen3.7-plus
awkweave-0015418
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
bruno 30 delta lina 21 delta chen 6 harbor farah 25 delta kim 28 fable lina 17 indigo eli 19 cobalt farah 29 delta jules 27 birch
6
hana 20 fable alice 28 amber eli 8 birch bruno 4 birch dina 7 ember lina 7 delta hana 11 cobalt chen 13 amber bruno 29 cobalt
4
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015418-p1
Identify and output the minimum numeric value found in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
bruno 30 delta lina 21 delta chen 6 harbor farah 25 delta kim 28 fable lina 17 indigo eli 19 cobalt farah 29 delta jules 27 birch
6
hana 20 fable alice 28 amber eli 8 birch bruno 4 birch dina 7 ember lina 7 delta hana 11 cobalt chen 13 amber bruno 29 cobalt
4
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015418
qwen/qwen3.7-plus
awkweave-0015419
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
gus cobalt 27 bruno harbor 24 lina cobalt 28 lina harbor 28 ivan delta 9 gus cobalt 13 kim fable 20 hana harbor 9 alice grove 18
28
gus indigo 6 eli juniper 21 gus delta 3 jules harbor 11 farah indigo 4 hana cobalt 8
21
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015419-p1
Identify and output the maximum numeric value found in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
gus cobalt 27 bruno harbor 24 lina cobalt 28 lina harbor 28 ivan delta 9 gus cobalt 13 kim fable 20 hana harbor 9 alice grove 18
28
gus indigo 6 eli juniper 21 gus delta 3 jules harbor 11 farah indigo 4 hana cobalt 8
21
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015419
qwen/qwen3.7-plus
awkweave-0015420
Count all input records and print the total.
END{print NR}
lina 51 dina 67 bruno 13 gus 14 ivan 38 farah 113 jules 84 kim 39 eli 41 lina 37
10
jules 99 gus 63 chen 100 kim 6 hana 50 chen 92 farah 66
7
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015420-p1
Count the total number of input records and print the result.
END{print NR}
lina 51 dina 67 bruno 13 gus 14 ivan 38 farah 113 jules 84 kim 39 eli 41 lina 37
10
jules 99 gus 63 chen 100 kim 6 hana 50 chen 92 farah 66
7
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015420
qwen/qwen3.7-plus
awkweave-0015421
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
bruno birch 50 eli fable 106 gus cobalt 88 alice indigo 80 eli fable 106 bruno harbor 54 dina birch 117
bruno birch 50 eli fable 106 gus cobalt 88 alice indigo 80 bruno harbor 54 dina birch 117
lina fable 38 alice grove 100 ivan grove 36 alice harbor 42 lina delta 91 lina delta 91 farah ember 84 bruno amber 42 farah ember 8 hana birch 86 bruno indigo 105
lina fable 38 alice grove 100 ivan grove 36 alice harbor 42 lina delta 91 farah ember 84 bruno amber 42 farah ember 8 hana birch 86 bruno indigo 105
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015421-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
bruno birch 50 eli fable 106 gus cobalt 88 alice indigo 80 eli fable 106 bruno harbor 54 dina birch 117
bruno birch 50 eli fable 106 gus cobalt 88 alice indigo 80 bruno harbor 54 dina birch 117
lina fable 38 alice grove 100 ivan grove 36 alice harbor 42 lina delta 91 lina delta 91 farah ember 84 bruno amber 42 farah ember 8 hana birch 86 bruno indigo 105
lina fable 38 alice grove 100 ivan grove 36 alice harbor 42 lina delta 91 farah ember 84 bruno amber 42 farah ember 8 hana birch 86 bruno indigo 105
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015421
qwen/qwen3.7-plus
awkweave-0015422
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
bruno delta 64 farah fable 25 kim amber 80 dina delta 24 alice amber 60 alice delta 39
bruno delta 64 farah fable 25 kim amber 80
bruno delta 113 dina indigo 17 alice fable 11 eli harbor 34 ivan indigo 44 gus indigo 60 alice juniper 75 ivan juniper 12 chen grove 88 farah ember 24
bruno delta 113 dina indigo 17 alice fable 11 eli harbor 34 alice juniper 75 chen grove 88 farah ember 24
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015422-p1
Retain only the first occurrence for each unique value in column 2, preserving the input order.
!seen[$2]++
bruno delta 64 farah fable 25 kim amber 80 dina delta 24 alice amber 60 alice delta 39
bruno delta 64 farah fable 25 kim amber 80
bruno delta 113 dina indigo 17 alice fable 11 eli harbor 34 ivan indigo 44 gus indigo 60 alice juniper 75 ivan juniper 12 chen grove 88 farah ember 24
bruno delta 113 dina indigo 17 alice fable 11 eli harbor 34 alice juniper 75 chen grove 88 farah ember 24
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015422
qwen/qwen3.7-plus
awkweave-0015423
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 5 ember bruno 13 ember dina 27 grove lina 1 fable bruno 22 grove farah 20 juniper alice 22 birch ivan 25 grove
ivan 5 bruno 18 dina 45 lina 46 bruno 68 farah 88 alice 110 ivan 135
bruno 9 indigo bruno 22 birch lina 18 ember alice 29 birch alice 16 grove dina 22 grove ivan 20 indigo
bruno 9 bruno 31 lina 49 alice 78 alice 94 dina 116 ivan 136
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015423-p1
For every record, output column 1 followed by the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 5 ember bruno 13 ember dina 27 grove lina 1 fable bruno 22 grove farah 20 juniper alice 22 birch ivan 25 grove
ivan 5 bruno 18 dina 45 lina 46 bruno 68 farah 88 alice 110 ivan 135
bruno 9 indigo bruno 22 birch lina 18 ember alice 29 birch alice 16 grove dina 22 grove ivan 20 indigo
bruno 9 bruno 31 lina 49 alice 78 alice 94 dina 116 ivan 136
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015423
qwen/qwen3.7-plus
awkweave-0015424
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
chen 27 7 harbor alice 7 2 birch alice 14 1 delta gus 24 19 indigo lina 14 11 harbor alice 25 11 grove
chen 34 alice 9 alice 15 gus 43 lina 25 alice 36
ivan 24 28 delta gus 2 9 fable gus 30 6 birch farah 11 19 ember eli 21 16 grove bruno 27 3 birch hana 24 5 delta hana 17 28 delta
ivan 52 gus 11 gus 36 farah 30 eli 37 bruno 30 hana 29 hana 45
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015424-p1
Output the first field and the total of the second and third fields for each line.
{print $1,$2+$3}
chen 27 7 harbor alice 7 2 birch alice 14 1 delta gus 24 19 indigo lina 14 11 harbor alice 25 11 grove
chen 34 alice 9 alice 15 gus 43 lina 25 alice 36
ivan 24 28 delta gus 2 9 fable gus 30 6 birch farah 11 19 ember eli 21 16 grove bruno 27 3 birch hana 24 5 delta hana 17 28 delta
ivan 52 gus 11 gus 36 farah 30 eli 37 bruno 30 hana 29 hana 45
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015424
qwen/qwen3.7-plus
awkweave-0015425
Print column 1 and pass when column 2 is at least 27; otherwise print fail.
{print $1,($2>=27?"pass":"fail")}
gus 12 bruno 6 jules 4 lina 1 dina 7 hana 20 chen 12
gus fail bruno fail jules fail lina fail dina fail hana fail chen fail
eli 12 ivan 1 bruno 28 ivan 27 dina 14 lina 16
eli fail ivan fail bruno pass ivan pass dina fail lina fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015425-p1
Display the first column; if the second column is 27 or higher, output 'pass', otherwise output 'fail'.
{print $1,($2>=27?"pass":"fail")}
gus 12 bruno 6 jules 4 lina 1 dina 7 hana 20 chen 12
gus fail bruno fail jules fail lina fail dina fail hana fail chen fail
eli 12 ivan 1 bruno 28 ivan 27 dina 14 lina 16
eli fail ivan fail bruno pass ivan pass dina fail lina fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015425
qwen/qwen3.7-plus
awkweave-0015426
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
jules cobalt 16 bruno grove 56 eli cobalt 71 farah cobalt 66 dina harbor 39 dina birch 40 kim juniper 117 lina grove 29 gus ember 66
JULES BRUNO ELI FARAH DINA DINA KIM LINA GUS
ivan amber 103 jules grove 120 chen juniper 53 kim amber 81 alice fable 66 eli amber 26 dina ember 91 hana juniper 30 chen fable 106 alice grove 111
IVAN JULES CHEN KIM ALICE ELI DINA HANA CHEN ALICE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015426-p1
Transform the first column to uppercase and output only that modified column.
{print toupper($1)}
jules cobalt 16 bruno grove 56 eli cobalt 71 farah cobalt 66 dina harbor 39 dina birch 40 kim juniper 117 lina grove 29 gus ember 66
JULES BRUNO ELI FARAH DINA DINA KIM LINA GUS
ivan amber 103 jules grove 120 chen juniper 53 kim amber 81 alice fable 66 eli amber 26 dina ember 91 hana juniper 30 chen fable 106 alice grove 111
IVAN JULES CHEN KIM ALICE ELI DINA HANA CHEN ALICE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015426
qwen/qwen3.7-plus
awkweave-0015427
From column 1, print 4 characters starting at character 1.
{print substr($1,1,4)}
delta 102 fable 84 amber 36 juniper 1 fable 18 indigo 91 amber 46 indigo 90 ember 98
delt fabl ambe juni fabl indi ambe indi embe
indigo 28 birch 38 delta 75 amber 4 amber 82 juniper 35 amber 30 delta 21
indi birc delt ambe ambe juni ambe delt
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015427-p1
Extract and print the first 4 characters from the first column.
{print substr($1,1,4)}
delta 102 fable 84 amber 36 juniper 1 fable 18 indigo 91 amber 46 indigo 90 ember 98
delt fabl ambe juni fabl indi ambe indi embe
indigo 28 birch 38 delta 75 amber 4 amber 82 juniper 35 amber 30 delta 21
indi birc delt ambe ambe juni ambe delt
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015427
qwen/qwen3.7-plus
awkweave-0015428
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
ember_birch 30 delta_indigo 112 grove_juniper 24 harbor_amber 117 juniper_delta 105 harbor_delta 79 indigo_amber 116 harbor_cobalt 9 ember_ember 90
ember birch delta indigo grove juniper harbor amber juniper delta harbor delta indigo amber harbor cobalt ember ember
indigo_cobalt 42 indigo_grove 7 grove_amber 33 cobalt_indigo 65 indigo_delta 97 harbor_ember 99
indigo cobalt indigo grove grove amber cobalt indigo indigo delta harbor ember
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015428-p1
Substitute all underscores in the first column with spaces and display the result.
{gsub(/_/," ",$1);print $1}
ember_birch 30 delta_indigo 112 grove_juniper 24 harbor_amber 117 juniper_delta 105 harbor_delta 79 indigo_amber 116 harbor_cobalt 9 ember_ember 90
ember birch delta indigo grove juniper harbor amber juniper delta harbor delta indigo amber harbor cobalt ember ember
indigo_cobalt 42 indigo_grove 7 grove_amber 33 cobalt_indigo 65 indigo_delta 97 harbor_ember 99
indigo cobalt indigo grove grove amber cobalt indigo indigo delta harbor ember
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015428
qwen/qwen3.7-plus
awkweave-0015429
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 birch 118 closed bruno cobalt 86 paused chen indigo 114 ready dina birch 88 failed kim grove 24 failed alice delta 24 active ivan harbor 49 failed lina grove 40 pending chen delta 14 paused
closed 118 birch hana paused 86 cobalt bruno ready 114 indigo chen failed 88 birch dina failed 24 grove kim active 24 delta alice failed 49 harbor ivan pending 40 grove lina paused 14 delta chen
hana fable 50 paused gus amber 81 closed dina birch 50 closed alice fable 87 ready hana fable 98 active eli indigo 92 closed chen indigo 23 active
paused 50 fable hana closed 81 amber gus closed 50 birch dina ready 87 fable alice active 98 fable hana closed 92 indigo eli active 23 indigo chen
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015429-p1
Reverse the sequence of fields on each line and output all of them.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
hana birch 118 closed bruno cobalt 86 paused chen indigo 114 ready dina birch 88 failed kim grove 24 failed alice delta 24 active ivan harbor 49 failed lina grove 40 pending chen delta 14 paused
closed 118 birch hana paused 86 cobalt bruno ready 114 indigo chen failed 88 birch dina failed 24 grove kim active 24 delta alice failed 49 harbor ivan pending 40 grove lina paused 14 delta chen
hana fable 50 paused gus amber 81 closed dina birch 50 closed alice fable 87 ready hana fable 98 active eli indigo 92 closed chen indigo 23 active
paused 50 fable hana closed 81 amber gus closed 50 birch dina ready 87 fable alice active 98 fable hana closed 92 indigo eli active 23 indigo chen
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015429
qwen/qwen3.7-plus
awkweave-0015430
Print the number of whitespace-separated fields on each line.
{print NF}
alice grove 118 paused bruno birch 67 failed kim indigo 105 ready ivan delta 89 paused hana ember 102 closed farah cobalt 11 active ivan amber 66 ready lina juniper 3 pending chen delta 55 active bruno birch 7 active
4 4 4 4 4 4 4 4 4 4
ivan amber 2 paused chen grove 116 pending gus fable 41 pending eli harbor 100 closed dina fable 90 failed hana grove 29 ready hana cobalt 117 ready gus harbor 34 pending
4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015430-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
alice grove 118 paused bruno birch 67 failed kim indigo 105 ready ivan delta 89 paused hana ember 102 closed farah cobalt 11 active ivan amber 66 ready lina juniper 3 pending chen delta 55 active bruno birch 7 active
4 4 4 4 4 4 4 4 4 4
ivan amber 2 paused chen grove 116 pending gus fable 41 pending eli harbor 100 closed dina fable 90 failed hana grove 29 ready hana cobalt 117 ready gus harbor 34 pending
4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015430
qwen/qwen3.7-plus
awkweave-0015431
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
jules delta 20 alice gamma 8 kim delta 62 farah alpha 73 dina gamma 33 dina alpha 59 hana alpha 92 dina alpha 78
delta 2 gamma 2 alpha 4
farah delta 2 hana alpha 90 jules gamma 99 alice alpha 1 jules alpha 37 farah beta 54 dina beta 104 farah gamma 80
delta 1 alpha 3 gamma 2 beta 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015431-p1
Tally the occurrences of each value in the second column and print 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]]}
jules delta 20 alice gamma 8 kim delta 62 farah alpha 73 dina gamma 33 dina alpha 59 hana alpha 92 dina alpha 78
delta 2 gamma 2 alpha 4
farah delta 2 hana alpha 90 jules gamma 99 alice alpha 1 jules alpha 37 farah beta 54 dina beta 104 farah gamma 80
delta 1 alpha 3 gamma 2 beta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015431
qwen/qwen3.7-plus
awkweave-0015432
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 11 alice alpha 21 bruno beta 9 ivan gamma 11 jules delta 18 bruno beta 24 kim alpha 29 chen delta 25 alice gamma 19 bruno beta 11
beta 55 alpha 50 gamma 30 delta 43
jules gamma 20 chen gamma 30 hana gamma 9 ivan gamma 18 dina gamma 11 kim alpha 9
gamma 88 alpha 9
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015432-p1
Calculate the sum of the third column for each group defined 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]]}
eli beta 11 alice alpha 21 bruno beta 9 ivan gamma 11 jules delta 18 bruno beta 24 kim alpha 29 chen delta 25 alice gamma 19 bruno beta 11
beta 55 alpha 50 gamma 30 delta 43
jules gamma 20 chen gamma 30 hana gamma 9 ivan gamma 18 dina gamma 11 kim alpha 9
gamma 88 alpha 9
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015432
qwen/qwen3.7-plus
awkweave-0015433
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 cobalt 9 beta grove 34 delta amber 49 delta harbor 54 beta harbor 79 gamma amber 59
beta 2 delta 2
beta delta 71 alpha amber 92 alpha indigo 1 alpha cobalt 55 beta ember 85 beta harbor 94 delta grove 21 delta fable 69 delta birch 114
beta 3 alpha 3 delta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015433-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]]}
alpha cobalt 9 beta grove 34 delta amber 49 delta harbor 54 beta harbor 79 gamma amber 59
beta 2 delta 2
beta delta 71 alpha amber 92 alpha indigo 1 alpha cobalt 55 beta ember 85 beta harbor 94 delta grove 21 delta fable 69 delta birch 114
beta 3 alpha 3 delta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015433
qwen/qwen3.7-plus
awkweave-0015434
The first row is a header. Print the record_id column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
state note score record_id r001 jules 5 closed r002 bruno 29 ready r003 chen 5 closed r004 gus 4 active r005 gus 18 ready r006 lina 18 active r007 chen 9 paused r008 eli 13 ready r009 gus 6 paused
closed ready closed active ready active paused ready paused
state note score record_id r001 kim 19 paused r002 chen 22 failed r003 farah 21 closed r004 lina 29 active r005 hana 16 active r006 bruno 4 pending r007 bruno 25 closed r008 jules 11 active r009 kim 8 paused
paused failed closed active active pending closed active paused
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015434-p1
Treating the first row as a header, output the record_id column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
state note score record_id r001 jules 5 closed r002 bruno 29 ready r003 chen 5 closed r004 gus 4 active r005 gus 18 ready r006 lina 18 active r007 chen 9 paused r008 eli 13 ready r009 gus 6 paused
closed ready closed active ready active paused ready paused
state note score record_id r001 kim 19 paused r002 chen 22 failed r003 farah 21 closed r004 lina 29 active r005 hana 16 active r006 bruno 4 pending r007 bruno 25 closed r008 jules 11 active r009 kim 8 paused
paused failed closed active active pending closed active paused
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015434
qwen/qwen3.7-plus
awkweave-0015435
The first row is a header. Print display_name for data rows whose score is greater than 15.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>15{print $h["display_name"]}
record_id display_name score state r001 lina 25 pending r002 eli 17 paused r003 bruno 12 active r004 ivan 21 pending r005 eli 16 paused r006 dina 18 active r007 jules 22 failed r008 bruno 12 closed
lina eli ivan eli dina jules
record_id display_name score state r001 chen 30 active r002 gus 4 pending r003 alice 22 pending r004 lina 15 closed r005 eli 11 failed r006 bruno 7 closed r007 eli 2 paused
chen alice
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015435-p1
With the first row as a header, print the display_name for data rows where the score exceeds 15.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>15{print $h["display_name"]}
record_id display_name score state r001 lina 25 pending r002 eli 17 paused r003 bruno 12 active r004 ivan 21 pending r005 eli 16 paused r006 dina 18 active r007 jules 22 failed r008 bruno 12 closed
lina eli ivan eli dina jules
record_id display_name score state r001 chen 30 active r002 gus 4 pending r003 alice 22 pending r004 lina 15 closed r005 eli 11 failed r006 bruno 7 closed r007 eli 2 paused
chen alice
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015435
qwen/qwen3.7-plus
awkweave-0015436
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
chen 27 ready alice 9 failed ivan 22 failed lina 6 ready lina 2 ready farah 30 pending farah 18 ready kim 14 failed
ready failed failed ready ready pending ready failed
lina 11 pending dina 11 closed jules 2 pending ivan 3 active jules 8 ready bruno 23 pending lina 29 closed ivan 27 active jules 22 ready
pending closed pending active ready pending closed active ready
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015436-p1
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
chen 27 ready alice 9 failed ivan 22 failed lina 6 ready lina 2 ready farah 30 pending farah 18 ready kim 14 failed
ready failed failed ready ready pending ready failed
lina 11 pending dina 11 closed jules 2 pending ivan 3 active jules 8 ready bruno 23 pending lina 29 closed ivan 27 active jules 22 ready
pending closed pending active ready pending closed active ready
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0015436
qwen/qwen3.7-plus
awkweave-0015437
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 14.
BEGIN{FS=OFS=","}$2>14{print $1}
hana,15,failed ivan,19,paused eli,11,ready dina,15,ready lina,2,active alice,7,ready
hana ivan dina
dina,23,paused bruno,13,closed bruno,16,closed dina,11,pending kim,4,ready jules,14,active farah,3,ready dina,19,closed bruno,17,closed farah,2,active
dina bruno dina bruno
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015437-p1
Output the first field of comma-separated records where the second field is greater than 14.
BEGIN{FS=OFS=","}$2>14{print $1}
hana,15,failed ivan,19,paused eli,11,ready dina,15,ready lina,2,active alice,7,ready
hana ivan dina
dina,23,paused bruno,13,closed bruno,16,closed dina,11,pending kim,4,ready jules,14,active farah,3,ready dina,19,closed bruno,17,closed farah,2,active
dina bruno dina bruno
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015437
qwen/qwen3.7-plus
awkweave-0015438
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina birch 1 bruno grove 83 lina harbor 80 kim indigo 106 farah indigo 43 bruno grove 0 chen amber 30
lina birch 1 bruno grove 83 lina harbor 80 kim indigo 106 farah indigo 43 bruno grove 0 chen amber 30
gus amber 104 hana fable 83 eli amber 38 ivan indigo 1 alice juniper 110 farah cobalt 25 lina grove 94 lina fable 37 ivan indigo 36 eli indigo 118
gus amber 104 hana fable 83 eli amber 38 ivan indigo 1 alice juniper 110 farah cobalt 25 lina grove 94 lina fable 37 ivan indigo 36 eli indigo 118
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015438-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
lina birch 1 bruno grove 83 lina harbor 80 kim indigo 106 farah indigo 43 bruno grove 0 chen amber 30
lina birch 1 bruno grove 83 lina harbor 80 kim indigo 106 farah indigo 43 bruno grove 0 chen amber 30
gus amber 104 hana fable 83 eli amber 38 ivan indigo 1 alice juniper 110 farah cobalt 25 lina grove 94 lina fable 37 ivan indigo 36 eli indigo 118
gus amber 104 hana fable 83 eli amber 38 ivan indigo 1 alice juniper 110 farah cobalt 25 lina grove 94 lina fable 37 ivan indigo 36 eli indigo 118
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015438
qwen/qwen3.7-plus
awkweave-0015439
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
dina ember 71 active eli delta 47 active eli amber 4 ready lina ember 67 closed jules ember 71 failed alice harbor 51 ready
jules ember 71 failed
dina amber 64 ready dina harbor 96 pending farah ember 33 active alice cobalt 36 closed lina juniper 112 closed chen fable 3 paused kim harbor 39 active hana cobalt 73 active
lina juniper 112 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015439-p1
Identify and print the longest line from the input, selecting the first one encountered in case of a tie.
{if(length($0)>length(best))best=$0}END{print best}
dina ember 71 active eli delta 47 active eli amber 4 ready lina ember 67 closed jules ember 71 failed alice harbor 51 ready
jules ember 71 failed
dina amber 64 ready dina harbor 96 pending farah ember 33 active alice cobalt 36 closed lina juniper 112 closed chen fable 3 paused kim harbor 39 active hana cobalt 73 active
lina juniper 112 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015439
qwen/qwen3.7-plus
awkweave-0015440
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
hana 36 gus 63 chen 48 lina 16 dina 109 lina 79
gus 63 dina 109
gus 16 ivan 90 chen 16 hana 115 alice 86 chen 8
ivan 90 alice 86
every_nth
1
train
original-grammar
CC-BY-4.0
null
null