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-0012110-p1
Output the first column; append 'pass' if the second column is 24 or greater, otherwise append 'fail'.
{print $1,($2>=24?"pass":"fail")}
ivan 16 dina 25 dina 11 hana 30 chen 17 gus 26 gus 8 jules 25 dina 11 alice 14
ivan fail dina pass dina fail hana pass chen fail gus pass gus fail jules pass dina fail alice fail
lina 22 ivan 1 eli 1 ivan 27 hana 6 lina 9 gus 1 farah 19 hana 18 alice 1
lina fail ivan fail eli fail ivan pass hana fail lina fail gus fail farah fail hana fail alice fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012110
qwen/qwen3.7-plus
awkweave-0012111
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
alice cobalt 8 hana birch 77 dina birch 101 eli cobalt 74 kim grove 21 dina delta 91 alice harbor 96 jules ember 105 eli delta 80 ivan delta 13
ALICE HANA DINA ELI KIM DINA ALICE JULES ELI IVAN
farah grove 110 kim harbor 98 dina ember 32 lina grove 104 ivan grove 35 dina birch 1 gus juniper 97 bruno indigo 65 farah fable 40
FARAH KIM DINA LINA IVAN DINA GUS BRUNO FARAH
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012111-p1
Transform the first column to uppercase letters and output only this modified column.
{print toupper($1)}
alice cobalt 8 hana birch 77 dina birch 101 eli cobalt 74 kim grove 21 dina delta 91 alice harbor 96 jules ember 105 eli delta 80 ivan delta 13
ALICE HANA DINA ELI KIM DINA ALICE JULES ELI IVAN
farah grove 110 kim harbor 98 dina ember 32 lina grove 104 ivan grove 35 dina birch 1 gus juniper 97 bruno indigo 65 farah fable 40
FARAH KIM DINA LINA IVAN DINA GUS BRUNO FARAH
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012111
qwen/qwen3.7-plus
awkweave-0012112
From column 1, print 2 characters starting at character 3.
{print substr($1,3,2)}
indigo 39 indigo 109 amber 44 fable 118 amber 7 grove 59 harbor 34 indigo 21
di di be bl be ov rb di
fable 54 ember 28 indigo 25 cobalt 55 ember 120 cobalt 60 grove 73 juniper 65 indigo 9 fable 88
bl be di ba be ba ov ni di bl
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012112-p1
Extract and print a substring of length 2 from the first column, beginning at the third character.
{print substr($1,3,2)}
indigo 39 indigo 109 amber 44 fable 118 amber 7 grove 59 harbor 34 indigo 21
di di be bl be ov rb di
fable 54 ember 28 indigo 25 cobalt 55 ember 120 cobalt 60 grove 73 juniper 65 indigo 9 fable 88
bl be di ba be ba ov ni di bl
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012112
qwen/qwen3.7-plus
awkweave-0012113
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
fable_delta 0 fable_ember 34 harbor_amber 84 fable_cobalt 16 amber_fable 99 delta_indigo 66 cobalt_delta 92
fable delta fable ember harbor amber fable cobalt amber fable delta indigo cobalt delta
juniper_amber 24 cobalt_indigo 73 birch_amber 45 birch_harbor 89 harbor_grove 104 ember_delta 43
juniper amber cobalt indigo birch amber birch harbor harbor grove ember delta
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012113-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
fable_delta 0 fable_ember 34 harbor_amber 84 fable_cobalt 16 amber_fable 99 delta_indigo 66 cobalt_delta 92
fable delta fable ember harbor amber fable cobalt amber fable delta indigo cobalt delta
juniper_amber 24 cobalt_indigo 73 birch_amber 45 birch_harbor 89 harbor_grove 104 ember_delta 43
juniper amber cobalt indigo birch amber birch harbor harbor grove ember delta
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012113
qwen/qwen3.7-plus
awkweave-0012114
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)}
bruno harbor 82 failed dina cobalt 104 active lina birch 0 paused dina juniper 85 paused dina juniper 9 closed gus harbor 34 paused dina indigo 98 failed bruno cobalt 114 ready
failed 82 harbor bruno active 104 cobalt dina paused 0 birch lina paused 85 juniper dina closed 9 juniper dina paused 34 harbor gus failed 98 indigo dina ready 114 cobalt bruno
bruno indigo 93 closed kim cobalt 105 paused jules grove 88 pending dina birch 17 closed gus indigo 73 active gus amber 33 ready alice grove 23 failed farah grove 101 paused kim cobalt 8 closed ivan indigo 65 pending
closed 93 indigo bruno paused 105 cobalt kim pending 88 grove jules closed 17 birch dina active 73 indigo gus ready 33 amber gus failed 23 grove alice paused 101 grove farah closed 8 cobalt kim pending 65 indigo ivan
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012114-p1
Invert the sequence of fields for every line and print all fields in the new order.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
bruno harbor 82 failed dina cobalt 104 active lina birch 0 paused dina juniper 85 paused dina juniper 9 closed gus harbor 34 paused dina indigo 98 failed bruno cobalt 114 ready
failed 82 harbor bruno active 104 cobalt dina paused 0 birch lina paused 85 juniper dina closed 9 juniper dina paused 34 harbor gus failed 98 indigo dina ready 114 cobalt bruno
bruno indigo 93 closed kim cobalt 105 paused jules grove 88 pending dina birch 17 closed gus indigo 73 active gus amber 33 ready alice grove 23 failed farah grove 101 paused kim cobalt 8 closed ivan indigo 65 pending
closed 93 indigo bruno paused 105 cobalt kim pending 88 grove jules closed 17 birch dina active 73 indigo gus ready 33 amber gus failed 23 grove alice paused 101 grove farah closed 8 cobalt kim pending 65 indigo ivan
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012114
qwen/qwen3.7-plus
awkweave-0012115
Print the number of whitespace-separated fields on each line.
{print NF}
gus amber 54 paused alice delta 62 pending dina birch 48 pending hana fable 39 active hana delta 111 ready eli amber 67 failed eli delta 50 failed kim delta 37 pending eli grove 57 paused hana amber 25 failed
4 4 4 4 4 4 4 4 4 4
dina indigo 16 paused lina cobalt 87 pending dina delta 6 failed hana amber 71 pending lina birch 3 active eli ember 42 closed kim juniper 50 pending lina amber 85 failed eli birch 8 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012115-p1
Display the count of whitespace-delimited fields present on each line.
{print NF}
gus amber 54 paused alice delta 62 pending dina birch 48 pending hana fable 39 active hana delta 111 ready eli amber 67 failed eli delta 50 failed kim delta 37 pending eli grove 57 paused hana amber 25 failed
4 4 4 4 4 4 4 4 4 4
dina indigo 16 paused lina cobalt 87 pending dina delta 6 failed hana amber 71 pending lina birch 3 active eli ember 42 closed kim juniper 50 pending lina amber 85 failed eli birch 8 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012115
qwen/qwen3.7-plus
awkweave-0012116
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]]}
kim alpha 68 eli gamma 92 gus beta 6 jules delta 74 bruno gamma 4 hana alpha 102 eli alpha 21 eli beta 1 bruno delta 95
alpha 3 gamma 2 beta 2 delta 2
gus alpha 84 farah gamma 18 ivan alpha 12 farah beta 26 chen delta 111 ivan beta 33
alpha 2 gamma 1 beta 2 delta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012116-p1
Tally the number of records for each unique value in the second column, printing the value and its count in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
kim alpha 68 eli gamma 92 gus beta 6 jules delta 74 bruno gamma 4 hana alpha 102 eli alpha 21 eli beta 1 bruno delta 95
alpha 3 gamma 2 beta 2 delta 2
gus alpha 84 farah gamma 18 ivan alpha 12 farah beta 26 chen delta 111 ivan beta 33
alpha 2 gamma 1 beta 2 delta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012116
qwen/qwen3.7-plus
awkweave-0012117
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]]}
kim alpha 1 eli delta 28 farah gamma 17 alice beta 26 eli delta 2 bruno delta 19 dina gamma 11 kim alpha 5 dina alpha 2 lina beta 5
alpha 8 delta 49 gamma 28 beta 31
ivan alpha 2 hana beta 27 eli gamma 6 kim beta 1 jules gamma 2 kim beta 6
alpha 2 beta 34 gamma 8
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012117-p1
Calculate the sum of the third column for each group defined by the second column, outputting the results in the order of the groups' first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
kim alpha 1 eli delta 28 farah gamma 17 alice beta 26 eli delta 2 bruno delta 19 dina gamma 11 kim alpha 5 dina alpha 2 lina beta 5
alpha 8 delta 49 gamma 28 beta 31
ivan alpha 2 hana beta 27 eli gamma 6 kim beta 1 jules gamma 2 kim beta 6
alpha 2 beta 34 gamma 8
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012117
qwen/qwen3.7-plus
awkweave-0012118
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
delta fable 119 delta grove 69 gamma harbor 116 beta cobalt 37 beta grove 118 delta juniper 81 delta juniper 39 delta cobalt 38 alpha ember 80 delta delta 107
delta 6 beta 2
gamma cobalt 80 gamma delta 66 alpha amber 62 beta grove 106 gamma amber 81 beta cobalt 111 beta ember 110 beta fable 34
gamma 3 beta 4
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012118-p1
List each unique value from the first column alongside its frequency count, maintaining the order in which they first appear.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
delta fable 119 delta grove 69 gamma harbor 116 beta cobalt 37 beta grove 118 delta juniper 81 delta juniper 39 delta cobalt 38 alpha ember 80 delta delta 107
delta 6 beta 2
gamma cobalt 80 gamma delta 66 alpha amber 62 beta grove 106 gamma amber 81 beta cobalt 111 beta ember 110 beta fable 34
gamma 3 beta 4
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012118
qwen/qwen3.7-plus
awkweave-0012119
The first row is a header. Print the note column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
record_id score note region r001 kim 23 paused r002 chen 11 paused r003 ivan 30 active r004 dina 9 paused r005 jules 26 failed r006 bruno 27 ready r007 hana 16 active r008 dina 9 ready r009 lina 29 closed
23 11 30 9 26 27 16 9 29
record_id score note region r001 farah 22 closed r002 bruno 7 closed r003 jules 3 pending r004 alice 2 pending r005 ivan 12 ready r006 eli 7 pending r007 bruno 28 ready r008 kim 23 failed
22 7 3 2 12 7 28 23
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012119-p1
Skip the header row and output the contents of the note column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
record_id score note region r001 kim 23 paused r002 chen 11 paused r003 ivan 30 active r004 dina 9 paused r005 jules 26 failed r006 bruno 27 ready r007 hana 16 active r008 dina 9 ready r009 lina 29 closed
23 11 30 9 26 27 16 9 29
record_id score note region r001 farah 22 closed r002 bruno 7 closed r003 jules 3 pending r004 alice 2 pending r005 ivan 12 ready r006 eli 7 pending r007 bruno 28 ready r008 kim 23 failed
22 7 3 2 12 7 28 23
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012119
qwen/qwen3.7-plus
awkweave-0012120
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 alice 15 closed r002 chen 19 paused r003 hana 2 pending r004 kim 15 ready r005 jules 19 pending r006 farah 24 pending r007 chen 3 closed r008 lina 29 pending
chen jules farah lina
record_id display_name score state r001 lina 1 paused r002 ivan 30 closed r003 alice 17 closed r004 ivan 5 pending r005 alice 16 failed r006 kim 27 pending r007 ivan 3 active r008 farah 13 closed r009 lina 1 active r010 ivan 25 failed
ivan alice kim ivan
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012120-p1
Ignoring the header row, output the display_name field for any data row where the score is strictly greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 alice 15 closed r002 chen 19 paused r003 hana 2 pending r004 kim 15 ready r005 jules 19 pending r006 farah 24 pending r007 chen 3 closed r008 lina 29 pending
chen jules farah lina
record_id display_name score state r001 lina 1 paused r002 ivan 30 closed r003 alice 17 closed r004 ivan 5 pending r005 alice 16 failed r006 kim 27 pending r007 ivan 3 active r008 farah 13 closed r009 lina 1 active r010 ivan 25 failed
ivan alice kim ivan
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012120
qwen/qwen3.7-plus
awkweave-0012121
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
farah 29 failed alice 3 closed kim 20 pending alice 16 ready hana 20 active hana 26 active lina 2 failed
farah alice kim alice hana hana lina
kim 7 active eli 29 closed chen 3 pending dina 17 ready lina 4 paused kim 3 failed gus 13 pending
kim eli chen dina lina kim gus
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012121-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
farah 29 failed alice 3 closed kim 20 pending alice 16 ready hana 20 active hana 26 active lina 2 failed
farah alice kim alice hana hana lina
kim 7 active eli 29 closed chen 3 pending dina 17 ready lina 4 paused kim 3 failed gus 13 pending
kim eli chen dina lina kim gus
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0012121
qwen/qwen3.7-plus
awkweave-0012122
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 17.
BEGIN{FS=OFS=","}$2>17{print $1}
chen,7,failed bruno,6,paused gus,4,paused lina,25,ready alice,13,pending farah,30,pending hana,3,failed ivan,23,closed
lina farah ivan
lina,7,paused chen,19,active dina,11,closed alice,8,active bruno,25,failed dina,6,failed hana,12,failed dina,2,ready dina,3,active eli,3,closed
chen bruno
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012122-p1
For simple CSV input without quoted commas, print the first column only if the second column's value is greater than 17.
BEGIN{FS=OFS=","}$2>17{print $1}
chen,7,failed bruno,6,paused gus,4,paused lina,25,ready alice,13,pending farah,30,pending hana,3,failed ivan,23,closed
lina farah ivan
lina,7,paused chen,19,active dina,11,closed alice,8,active bruno,25,failed dina,6,failed hana,12,failed dina,2,ready dina,3,active eli,3,closed
chen bruno
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012122
qwen/qwen3.7-plus
awkweave-0012123
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
chen harbor 40 chen ember 109 hana juniper 8 jules birch 91 farah cobalt 110 gus grove 106
chen harbor 40 chen ember 109 hana juniper 8 jules birch 91 farah cobalt 110 gus grove 106
ivan grove 53 ivan ember 58 eli ember 71 eli indigo 64 kim ember 45 hana indigo 60 farah ember 98 dina delta 17 hana indigo 26 kim harbor 107
ivan grove 53 ivan ember 58 eli ember 71 eli indigo 64 kim ember 45 hana indigo 60 farah ember 98 dina delta 17 hana indigo 26 kim harbor 107
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012123-p1
Remove leading and trailing whitespace from the text, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
chen harbor 40 chen ember 109 hana juniper 8 jules birch 91 farah cobalt 110 gus grove 106
chen harbor 40 chen ember 109 hana juniper 8 jules birch 91 farah cobalt 110 gus grove 106
ivan grove 53 ivan ember 58 eli ember 71 eli indigo 64 kim ember 45 hana indigo 60 farah ember 98 dina delta 17 hana indigo 26 kim harbor 107
ivan grove 53 ivan ember 58 eli ember 71 eli indigo 64 kim ember 45 hana indigo 60 farah ember 98 dina delta 17 hana indigo 26 kim harbor 107
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012123
qwen/qwen3.7-plus
awkweave-0012124
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
jules juniper 119 paused ivan fable 6 pending hana fable 103 failed farah grove 52 pending hana harbor 67 paused hana delta 68 pending jules ember 32 pending chen juniper 81 pending kim cobalt 92 active gus amber 116 active
jules juniper 119 paused
ivan indigo 47 closed chen ember 85 failed lina grove 32 paused dina grove 110 paused eli harbor 115 active bruno delta 31 failed eli indigo 11 closed
ivan indigo 47 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012124-p1
Identify and output the longest line from the input; if multiple lines share the maximum length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
jules juniper 119 paused ivan fable 6 pending hana fable 103 failed farah grove 52 pending hana harbor 67 paused hana delta 68 pending jules ember 32 pending chen juniper 81 pending kim cobalt 92 active gus amber 116 active
jules juniper 119 paused
ivan indigo 47 closed chen ember 85 failed lina grove 32 paused dina grove 110 paused eli harbor 115 active bruno delta 31 failed eli indigo 11 closed
ivan indigo 47 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012124
qwen/qwen3.7-plus
awkweave-0012125
Print every 4th line starting at line 4 (then line 8, and so on).
NR%4==0
bruno 104 eli 94 dina 18 eli 74 eli 56 eli 3 gus 51 hana 23
eli 74 hana 23
farah 78 bruno 4 eli 36 hana 40 chen 32 kim 105 eli 1
hana 40
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012125-p1
Output every fourth line of the input, beginning with line 4 (i.e., lines 4, 8, 12, etc.).
NR%4==0
bruno 104 eli 94 dina 18 eli 74 eli 56 eli 3 gus 51 hana 23
eli 74 hana 23
farah 78 bruno 4 eli 36 hana 40 chen 32 kim 105 eli 1
hana 40
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012125
qwen/qwen3.7-plus
awkweave-0012126
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
delta ember 28 gamma grove 117 beta ember 37 gamma delta 49 beta delta 17 beta delta 76 delta fable 52
4
beta cobalt 56 gamma delta 4 beta fable 41 alpha harbor 35 gamma harbor 114 delta grove 118 gamma fable 78 gamma amber 120
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012126-p1
Calculate the number of unique values present in the second column and print only that total count.
{if(!seen[$2]++)n++}END{print n+0}
delta ember 28 gamma grove 117 beta ember 37 gamma delta 49 beta delta 17 beta delta 76 delta fable 52
4
beta cobalt 56 gamma delta 4 beta fable 41 alpha harbor 35 gamma harbor 114 delta grove 118 gamma fable 78 gamma amber 120
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012126
qwen/qwen3.7-plus
awkweave-0012127
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 1 0 eli 1 10 eli 6 27 chen 22 26 gus 22 25 chen 6 19 eli 28 23 chen 28 23 dina 14 2 lina 19 30
eli 0.10 eli 0.22 chen 0.85 gus 0.88 chen 0.32 eli 1.22 chen 1.22 dina 7.00 lina 0.63
bruno 24 0 bruno 9 20 hana 1 26 dina 6 7 jules 28 11 chen 8 12 farah 19 23 gus 14 17
bruno 0.45 hana 0.04 dina 0.86 jules 2.55 chen 0.67 farah 0.83 gus 0.82
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012127-p1
For each row where the third column is non-zero, print 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 1 0 eli 1 10 eli 6 27 chen 22 26 gus 22 25 chen 6 19 eli 28 23 chen 28 23 dina 14 2 lina 19 30
eli 0.10 eli 0.22 chen 0.85 gus 0.88 chen 0.32 eli 1.22 chen 1.22 dina 7.00 lina 0.63
bruno 24 0 bruno 9 20 hana 1 26 dina 6 7 jules 28 11 chen 8 12 farah 19 23 gus 14 17
bruno 0.45 hana 0.04 dina 0.86 jules 2.55 chen 0.67 farah 0.83 gus 0.82
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012127
qwen/qwen3.7-plus
awkweave-0012128
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
farah birch 10 eli harbor 11 gus ember 14 bruno harbor 2 lina birch 14 kim fable 4 bruno indigo 13 jules ember 27
jules ember 27 gus ember 14 lina birch 14
chen ember 3 kim cobalt 13 ivan delta 15 farah cobalt 6 ivan indigo 22 bruno indigo 17
ivan indigo 22 bruno indigo 17 ivan delta 15
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012128-p1
Output the 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]}
farah birch 10 eli harbor 11 gus ember 14 bruno harbor 2 lina birch 14 kim fable 4 bruno indigo 13 jules ember 27
jules ember 27 gus ember 14 lina birch 14
chen ember 3 kim cobalt 13 ivan delta 15 farah cobalt 6 ivan indigo 22 bruno indigo 17
ivan indigo 22 bruno indigo 17 ivan delta 15
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012128
qwen/qwen3.7-plus
awkweave-0012129
Print column 6 followed by column 1 for every record.
{print $6, $1}
closed 82 grove birch eli dina paused 94 grove delta gus chen closed 10 birch harbor hana chen paused 19 birch harbor gus jules failed 96 ember birch kim jules closed 28 delta ember jules alice ready 97 amber juniper hana dina
dina closed chen paused chen closed jules paused jules failed alice closed dina ready
pending 112 delta fable dina lina paused 27 delta cobalt kim lina pending 94 birch ember kim dina paused 75 delta grove lina bruno closed 88 cobalt juniper lina hana closed 39 grove amber alice farah ready 58 harbor juniper farah chen pending 45 cobalt juniper jules lina paused 86 indigo delta lina alice
lina pending lina paused dina pending bruno paused hana closed farah closed chen ready lina pending alice paused
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012129-p1
For every record, print the sixth column followed by the first column.
{print $6, $1}
closed 82 grove birch eli dina paused 94 grove delta gus chen closed 10 birch harbor hana chen paused 19 birch harbor gus jules failed 96 ember birch kim jules closed 28 delta ember jules alice ready 97 amber juniper hana dina
dina closed chen paused chen closed jules paused jules failed alice closed dina ready
pending 112 delta fable dina lina paused 27 delta cobalt kim lina pending 94 birch ember kim dina paused 75 delta grove lina bruno closed 88 cobalt juniper lina hana closed 39 grove amber alice farah ready 58 harbor juniper farah chen pending 45 cobalt juniper jules lina paused 86 indigo delta lina alice
lina pending lina paused dina pending bruno paused hana closed farah closed chen ready lina pending alice paused
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012129
qwen/qwen3.7-plus
awkweave-0012130
Print the last field of every input line.
{print $NF}
70 hana delta ready 47 dina delta closed 109 gus cobalt active 63 lina juniper pending 85 farah grove pending 43 lina indigo paused 105 lina birch paused 62 lina grove active
ready closed active pending pending paused paused active
90 gus cobalt ready 87 dina harbor active 74 bruno grove closed 114 jules delta closed 106 eli harbor pending 48 farah fable failed
ready active closed closed pending failed
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012130-p1
Output the final field from each line of input.
{print $NF}
70 hana delta ready 47 dina delta closed 109 gus cobalt active 63 lina juniper pending 85 farah grove pending 43 lina indigo paused 105 lina birch paused 62 lina grove active
ready closed active pending pending paused paused active
90 gus cobalt ready 87 dina harbor active 74 bruno grove closed 114 jules delta closed 106 eli harbor pending 48 farah fable failed
ready active closed closed pending failed
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012130
qwen/qwen3.7-plus
awkweave-0012131
Print the complete records where column 1 is less than 44.
$1 < 44
66 bruno active paused ember 76 hana ready ready juniper 20 chen ready active cobalt 85 gus pending paused amber 10 gus ready closed juniper 82 chen pending pending grove 51 jules active failed fable 51 eli closed pending harbor
20 chen ready active cobalt 10 gus ready closed juniper
3 alice ready paused indigo 8 bruno paused failed birch 27 alice ready active cobalt 23 eli paused ready harbor 99 ivan pending ready ember 58 farah failed closed amber 119 kim active paused cobalt 98 chen pending active birch 26 farah active failed grove
3 alice ready paused indigo 8 bruno paused failed birch 27 alice ready active cobalt 23 eli paused ready harbor 26 farah active failed grove
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012131-p1
Display full records where the value in the first column is strictly less than 44.
$1 < 44
66 bruno active paused ember 76 hana ready ready juniper 20 chen ready active cobalt 85 gus pending paused amber 10 gus ready closed juniper 82 chen pending pending grove 51 jules active failed fable 51 eli closed pending harbor
20 chen ready active cobalt 10 gus ready closed juniper
3 alice ready paused indigo 8 bruno paused failed birch 27 alice ready active cobalt 23 eli paused ready harbor 99 ivan pending ready ember 58 farah failed closed amber 119 kim active paused cobalt 98 chen pending active birch 26 farah active failed grove
3 alice ready paused indigo 8 bruno paused failed birch 27 alice ready active cobalt 23 eli paused ready harbor 26 farah active failed grove
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012131
qwen/qwen3.7-plus
awkweave-0012132
Show whole lines whose 1st field is between 5 and 28, inclusive.
$1 >= 5 && $1 <= 28
21 failed juniper ready 12 pending grove pending 30 paused cobalt pending 9 failed indigo pending 4 paused ember ready 25 failed birch active 22 pending indigo ready 5 pending fable active 20 pending delta pending
21 failed juniper ready 12 pending grove pending 9 failed indigo pending 25 failed birch active 22 pending indigo ready 5 pending fable active 20 pending delta pending
6 failed juniper paused 14 paused ember paused 12 paused grove ready 8 closed juniper paused 13 active juniper active 1 pending delta paused 30 failed amber failed 12 pending amber ready 24 ready juniper active
6 failed juniper paused 14 paused ember paused 12 paused grove ready 8 closed juniper paused 13 active juniper active 12 pending amber ready 24 ready juniper active
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012132-p1
Show entire lines where the first field falls within the range 5 to 28, inclusive.
$1 >= 5 && $1 <= 28
21 failed juniper ready 12 pending grove pending 30 paused cobalt pending 9 failed indigo pending 4 paused ember ready 25 failed birch active 22 pending indigo ready 5 pending fable active 20 pending delta pending
21 failed juniper ready 12 pending grove pending 9 failed indigo pending 25 failed birch active 22 pending indigo ready 5 pending fable active 20 pending delta pending
6 failed juniper paused 14 paused ember paused 12 paused grove ready 8 closed juniper paused 13 active juniper active 1 pending delta paused 30 failed amber failed 12 pending amber ready 24 ready juniper active
6 failed juniper paused 14 paused ember paused 12 paused grove ready 8 closed juniper paused 13 active juniper active 12 pending amber ready 24 ready juniper active
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012132
qwen/qwen3.7-plus
awkweave-0012133
Print column 1 only for rows where column 3 is exactly failed.
$3 == "failed"{print $1}
lina 117 active harbor eli 87 failed birch chen 107 failed ember dina 27 pending harbor hana 55 paused juniper chen 5 active fable
eli chen
ivan 83 failed cobalt chen 47 pending cobalt alice 24 active cobalt bruno 54 closed birch kim 112 ready cobalt ivan 12 ready amber lina 20 active fable
ivan
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012133-p1
Extract and print only the first column for rows where the third column equals failed.
$3 == "failed"{print $1}
lina 117 active harbor eli 87 failed birch chen 107 failed ember dina 27 pending harbor hana 55 paused juniper chen 5 active fable
eli chen
ivan 83 failed cobalt chen 47 pending cobalt alice 24 active cobalt bruno 54 closed birch kim 112 ready cobalt ivan 12 ready amber lina 20 active fable
ivan
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012133
qwen/qwen3.7-plus
awkweave-0012134
Print all fields from lines where field 2 begins with INFO.
$2 ~ /^INFO/
harbor INFO 10 birch DEBUG 96 ember ERROR 80 amber DEBUG 24 ember INFO 90 juniper WARN 82
harbor INFO 10 ember INFO 90
delta INFO 87 fable ERROR 47 juniper ERROR 23 birch WARN 84 cobalt INFO 77 fable WARN 82
delta INFO 87 cobalt INFO 77
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012134-p1
Print all fields from lines where the second field starts with INFO.
$2 ~ /^INFO/
harbor INFO 10 birch DEBUG 96 ember ERROR 80 amber DEBUG 24 ember INFO 90 juniper WARN 82
harbor INFO 10 ember INFO 90
delta INFO 87 fable ERROR 47 juniper ERROR 23 birch WARN 84 cobalt INFO 77 fable WARN 82
delta INFO 87 cobalt INFO 77
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012134
qwen/qwen3.7-plus
awkweave-0012135
Print every line except those containing the exact text harbor.
$0 !~ /harbor/
juniper 47 paused ember 102 paused grove 59 paused grove 17 active fable 40 active indigo 71 paused ember 105 ready amber 84 closed birch 85 ready harbor 999 active
juniper 47 paused ember 102 paused grove 59 paused grove 17 active fable 40 active indigo 71 paused ember 105 ready amber 84 closed birch 85 ready
harbor 53 closed ember 51 pending delta 34 active fable 63 active fable 91 pending fable 62 failed harbor 999 active
ember 51 pending delta 34 active fable 63 active fable 91 pending fable 62 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012135-p1
Output every line that does not contain the exact string harbor.
$0 !~ /harbor/
juniper 47 paused ember 102 paused grove 59 paused grove 17 active fable 40 active indigo 71 paused ember 105 ready amber 84 closed birch 85 ready harbor 999 active
juniper 47 paused ember 102 paused grove 59 paused grove 17 active fable 40 active indigo 71 paused ember 105 ready amber 84 closed birch 85 ready
harbor 53 closed ember 51 pending delta 34 active fable 63 active fable 91 pending fable 62 failed harbor 999 active
ember 51 pending delta 34 active fable 63 active fable 91 pending fable 62 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012135
qwen/qwen3.7-plus
awkweave-0012136
Print lines 3 through 4, including both endpoints.
NR >= 3 && NR <= 4
ivan ember 25 gus cobalt 36 lina grove 47 hana indigo 35 gus indigo 113 farah amber 43 bruno juniper 92
lina grove 47 hana indigo 35
chen fable 108 alice delta 9 bruno cobalt 100 jules harbor 52 chen harbor 68 bruno harbor 44
bruno cobalt 100 jules harbor 52
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012136-p1
Print lines 3 to 4, inclusive of both endpoints.
NR >= 3 && NR <= 4
ivan ember 25 gus cobalt 36 lina grove 47 hana indigo 35 gus indigo 113 farah amber 43 bruno juniper 92
lina grove 47 hana indigo 35
chen fable 108 alice delta 9 bruno cobalt 100 jules harbor 52 chen harbor 68 bruno harbor 44
bruno cobalt 100 jules harbor 52
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012136
qwen/qwen3.7-plus
awkweave-0012137
Output only the first 2 records.
NR <= 2
kim 93 grove farah 24 birch hana 21 ember jules 37 harbor chen 48 fable farah 14 fable eli 9 ember bruno 64 indigo eli 114 indigo hana 92 harbor
kim 93 grove farah 24 birch
chen 87 amber kim 78 cobalt ivan 50 fable farah 108 delta kim 53 amber ivan 50 delta kim 22 juniper
chen 87 amber kim 78 cobalt
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012137-p1
Output only the first 2 records.
NR <= 2
kim 93 grove farah 24 birch hana 21 ember jules 37 harbor chen 48 fable farah 14 fable eli 9 ember bruno 64 indigo eli 114 indigo hana 92 harbor
kim 93 grove farah 24 birch
chen 87 amber kim 78 cobalt ivan 50 fable farah 108 delta kim 53 amber ivan 50 delta kim 22 juniper
chen 87 amber kim 78 cobalt
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0012137
qwen/qwen3.7-plus
awkweave-0012138
Skip the first line and print every remaining line unchanged.
NR > 1
hana 118 indigo eli 68 delta bruno 3 indigo eli 115 grove kim 94 delta kim 15 indigo ivan 108 grove kim 106 cobalt lina 60 cobalt dina 84 fable
eli 68 delta bruno 3 indigo eli 115 grove kim 94 delta kim 15 indigo ivan 108 grove kim 106 cobalt lina 60 cobalt dina 84 fable
eli 7 fable kim 69 cobalt bruno 80 amber kim 14 juniper farah 7 ember chen 115 delta kim 2 fable
kim 69 cobalt bruno 80 amber kim 14 juniper farah 7 ember chen 115 delta kim 2 fable
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012138-p1
Omit the first line and print all subsequent lines exactly as they appear.
NR > 1
hana 118 indigo eli 68 delta bruno 3 indigo eli 115 grove kim 94 delta kim 15 indigo ivan 108 grove kim 106 cobalt lina 60 cobalt dina 84 fable
eli 68 delta bruno 3 indigo eli 115 grove kim 94 delta kim 15 indigo ivan 108 grove kim 106 cobalt lina 60 cobalt dina 84 fable
eli 7 fable kim 69 cobalt bruno 80 amber kim 14 juniper farah 7 ember chen 115 delta kim 2 fable
kim 69 cobalt bruno 80 amber kim 14 juniper farah 7 ember chen 115 delta kim 2 fable
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012138
qwen/qwen3.7-plus
awkweave-0012139
Count how many records have paused in column 2. Print 0 if there are none.
$2 == "paused"{n++}END{print n+0}
gus closed 72 bruno ready 63 gus pending 38 kim active 23 bruno active 40 dina ready 100 bruno pending 102 alice paused 21 gus ready 64 eli active 38
1
dina pending 60 ivan failed 7 gus failed 118 gus paused 46 eli paused 104 kim ready 25
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012139-p1
Count the number of records where the second column is paused; output 0 if no such records exist.
$2 == "paused"{n++}END{print n+0}
gus closed 72 bruno ready 63 gus pending 38 kim active 23 bruno active 40 dina ready 100 bruno pending 102 alice paused 21 gus ready 64 eli active 38
1
dina pending 60 ivan failed 7 gus failed 118 gus paused 46 eli paused 104 kim ready 25
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012139
qwen/qwen3.7-plus
awkweave-0012140
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
delta 3 bruno fable 18 hana fable 27 farah birch 11 bruno grove 18 eli ember 23 ivan cobalt 27 hana delta 17 alice amber 20 eli indigo 20 bruno
184
amber 20 bruno cobalt 3 farah fable 29 chen juniper 28 hana delta 29 farah birch 12 chen delta 1 kim grove 19 farah ember 5 hana
146
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012140-p1
Compute and display the sum of integer values found in the second column.
{s+=$2}END{print s+0}
delta 3 bruno fable 18 hana fable 27 farah birch 11 bruno grove 18 eli ember 23 ivan cobalt 27 hana delta 17 alice amber 20 eli indigo 20 bruno
184
amber 20 bruno cobalt 3 farah fable 29 chen juniper 28 hana delta 29 farah birch 12 chen delta 1 kim grove 19 farah ember 5 hana
146
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012140
qwen/qwen3.7-plus
awkweave-0012141
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
grove 21 jules indigo 12 lina indigo 27 farah cobalt 29 ivan grove 23 jules amber 13 jules juniper 8 jules amber 3 alice
17.00
ember 19 kim harbor 11 chen ember 6 eli indigo 16 farah ember 25 eli juniper 11 alice harbor 13 chen birch 26 jules amber 6 dina harbor 23 jules
15.60
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012141-p1
Calculate the average of the values in the second column and print it rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
grove 21 jules indigo 12 lina indigo 27 farah cobalt 29 ivan grove 23 jules amber 13 jules juniper 8 jules amber 3 alice
17.00
ember 19 kim harbor 11 chen ember 6 eli indigo 16 farah ember 25 eli juniper 11 alice harbor 13 chen birch 26 jules amber 6 dina harbor 23 jules
15.60
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012141
qwen/qwen3.7-plus
awkweave-0012142
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
chen 18 indigo lina 27 juniper lina 2 cobalt bruno 29 ember farah 8 cobalt kim 4 harbor bruno 15 ember hana 14 cobalt dina 16 fable alice 5 delta
2
hana 14 ember gus 15 amber lina 23 delta ivan 29 harbor lina 5 juniper chen 17 grove jules 13 ember
5
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012142-p1
Identify and output the minimum number found in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
chen 18 indigo lina 27 juniper lina 2 cobalt bruno 29 ember farah 8 cobalt kim 4 harbor bruno 15 ember hana 14 cobalt dina 16 fable alice 5 delta
2
hana 14 ember gus 15 amber lina 23 delta ivan 29 harbor lina 5 juniper chen 17 grove jules 13 ember
5
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012142
qwen/qwen3.7-plus
awkweave-0012143
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
gus juniper 29 alice amber 27 ivan birch 18 chen grove 23 ivan indigo 30 chen harbor 1 chen harbor 27 farah amber 28 kim ember 3 kim indigo 12
30
farah indigo 3 ivan amber 10 gus amber 30 bruno delta 1 gus amber 9 alice grove 16 jules birch 20 chen cobalt 3 hana ember 28 lina birch 12
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012143-p1
Locate and display the maximum numeric value within the third column.
NR==1||$3>extreme{extreme=$3}END{print extreme}
gus juniper 29 alice amber 27 ivan birch 18 chen grove 23 ivan indigo 30 chen harbor 1 chen harbor 27 farah amber 28 kim ember 3 kim indigo 12
30
farah indigo 3 ivan amber 10 gus amber 30 bruno delta 1 gus amber 9 alice grove 16 jules birch 20 chen cobalt 3 hana ember 28 lina birch 12
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012143
qwen/qwen3.7-plus
awkweave-0012144
Count all input records and print the total.
END{print NR}
lina 69 alice 35 chen 28 jules 85 jules 101 dina 59 jules 40
7
alice 76 kim 60 gus 104 kim 115 kim 93 hana 21 eli 102 eli 22 eli 79 eli 86
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012144-p1
Calculate the total number of input records and print the count.
END{print NR}
lina 69 alice 35 chen 28 jules 85 jules 101 dina 59 jules 40
7
alice 76 kim 60 gus 104 kim 115 kim 93 hana 21 eli 102 eli 22 eli 79 eli 86
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012144
qwen/qwen3.7-plus
awkweave-0012145
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
hana birch 92 lina amber 101 ivan fable 110 lina juniper 8 hana birch 6 kim grove 54 hana birch 6 bruno grove 90 jules indigo 56 alice amber 34 bruno ember 107
hana birch 92 lina amber 101 ivan fable 110 lina juniper 8 hana birch 6 kim grove 54 bruno grove 90 jules indigo 56 alice amber 34 bruno ember 107
alice cobalt 69 dina birch 108 farah birch 8 lina harbor 6 jules juniper 58 eli juniper 28 jules ember 89 bruno birch 112 alice cobalt 69 alice birch 107
alice cobalt 69 dina birch 108 farah birch 8 lina harbor 6 jules juniper 58 eli juniper 28 jules ember 89 bruno birch 112 alice birch 107
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012145-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
hana birch 92 lina amber 101 ivan fable 110 lina juniper 8 hana birch 6 kim grove 54 hana birch 6 bruno grove 90 jules indigo 56 alice amber 34 bruno ember 107
hana birch 92 lina amber 101 ivan fable 110 lina juniper 8 hana birch 6 kim grove 54 bruno grove 90 jules indigo 56 alice amber 34 bruno ember 107
alice cobalt 69 dina birch 108 farah birch 8 lina harbor 6 jules juniper 58 eli juniper 28 jules ember 89 bruno birch 112 alice cobalt 69 alice birch 107
alice cobalt 69 dina birch 108 farah birch 8 lina harbor 6 jules juniper 58 eli juniper 28 jules ember 89 bruno birch 112 alice birch 107
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012145
qwen/qwen3.7-plus
awkweave-0012146
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
dina delta 34 bruno amber 22 jules indigo 65 lina indigo 83 jules fable 4 chen fable 44 alice indigo 54 jules amber 0 lina harbor 81
dina delta 34 bruno amber 22 jules indigo 65 jules fable 4 lina harbor 81
farah amber 77 ivan birch 63 eli ember 28 lina cobalt 109 jules juniper 4 chen birch 41
farah amber 77 ivan birch 63 eli ember 28 lina cobalt 109 jules juniper 4
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012146-p1
Retain only the initial line for every unique value in the second column, keeping the original order.
!seen[$2]++
dina delta 34 bruno amber 22 jules indigo 65 lina indigo 83 jules fable 4 chen fable 44 alice indigo 54 jules amber 0 lina harbor 81
dina delta 34 bruno amber 22 jules indigo 65 jules fable 4 lina harbor 81
farah amber 77 ivan birch 63 eli ember 28 lina cobalt 109 jules juniper 4 chen birch 41
farah amber 77 ivan birch 63 eli ember 28 lina cobalt 109 jules juniper 4
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012146
qwen/qwen3.7-plus
awkweave-0012147
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
farah 28 birch ivan 5 harbor bruno 21 amber ivan 14 amber kim 7 indigo chen 15 fable farah 27 delta chen 8 grove chen 29 indigo gus 23 delta
farah 28 ivan 33 bruno 54 ivan 68 kim 75 chen 90 farah 117 chen 125 chen 154 gus 177
chen 9 harbor farah 28 harbor alice 22 amber alice 12 delta ivan 1 amber bruno 18 harbor farah 29 birch kim 16 delta ivan 24 delta farah 22 ember
chen 9 farah 37 alice 59 alice 71 ivan 72 bruno 90 farah 119 kim 135 ivan 159 farah 181
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012147-p1
Output the first column alongside the cumulative sum of the second column for each record, separated by a space.
{s+=$2;print $1,s}
farah 28 birch ivan 5 harbor bruno 21 amber ivan 14 amber kim 7 indigo chen 15 fable farah 27 delta chen 8 grove chen 29 indigo gus 23 delta
farah 28 ivan 33 bruno 54 ivan 68 kim 75 chen 90 farah 117 chen 125 chen 154 gus 177
chen 9 harbor farah 28 harbor alice 22 amber alice 12 delta ivan 1 amber bruno 18 harbor farah 29 birch kim 16 delta ivan 24 delta farah 22 ember
chen 9 farah 37 alice 59 alice 71 ivan 72 bruno 90 farah 119 kim 135 ivan 159 farah 181
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012147
qwen/qwen3.7-plus
awkweave-0012148
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
lina 30 19 birch dina 3 28 amber ivan 7 20 birch dina 16 9 indigo gus 25 2 birch farah 13 6 fable dina 1 23 indigo kim 19 3 cobalt jules 20 17 ember
lina 49 dina 31 ivan 27 dina 25 gus 27 farah 19 dina 24 kim 22 jules 37
chen 8 14 harbor dina 26 6 grove kim 12 23 harbor farah 3 10 grove lina 20 17 grove bruno 22 27 fable gus 13 7 amber
chen 22 dina 32 kim 35 farah 13 lina 37 bruno 49 gus 20
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012148-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
lina 30 19 birch dina 3 28 amber ivan 7 20 birch dina 16 9 indigo gus 25 2 birch farah 13 6 fable dina 1 23 indigo kim 19 3 cobalt jules 20 17 ember
lina 49 dina 31 ivan 27 dina 25 gus 27 farah 19 dina 24 kim 22 jules 37
chen 8 14 harbor dina 26 6 grove kim 12 23 harbor farah 3 10 grove lina 20 17 grove bruno 22 27 fable gus 13 7 amber
chen 22 dina 32 kim 35 farah 13 lina 37 bruno 49 gus 20
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012148
qwen/qwen3.7-plus
awkweave-0012149
Print column 1 and pass when column 2 is at least 26; otherwise print fail.
{print $1,($2>=26?"pass":"fail")}
bruno 6 kim 2 lina 17 kim 30 hana 15 ivan 24 kim 5 chen 5
bruno fail kim fail lina fail kim pass hana fail ivan fail kim fail chen fail
lina 13 hana 9 ivan 7 hana 11 eli 30 farah 4 ivan 26 lina 26 kim 20
lina fail hana fail ivan fail hana fail eli pass farah fail ivan pass lina pass kim fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012149-p1
Output the first column with 'pass' if the second column is 26 or greater, otherwise output 'fail'.
{print $1,($2>=26?"pass":"fail")}
bruno 6 kim 2 lina 17 kim 30 hana 15 ivan 24 kim 5 chen 5
bruno fail kim fail lina fail kim pass hana fail ivan fail kim fail chen fail
lina 13 hana 9 ivan 7 hana 11 eli 30 farah 4 ivan 26 lina 26 kim 20
lina fail hana fail ivan fail hana fail eli pass farah fail ivan pass lina pass kim fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012149
qwen/qwen3.7-plus
awkweave-0012150
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
ivan indigo 76 farah juniper 109 gus birch 71 farah ember 87 kim grove 75 farah indigo 59 farah indigo 47
IVAN FARAH GUS FARAH KIM FARAH FARAH
gus indigo 118 gus grove 5 bruno indigo 19 alice cobalt 46 eli grove 96 farah juniper 61 chen indigo 23 farah indigo 12
GUS GUS BRUNO ALICE ELI FARAH CHEN FARAH
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012150-p1
Transform the first column to uppercase letters and print only that column.
{print toupper($1)}
ivan indigo 76 farah juniper 109 gus birch 71 farah ember 87 kim grove 75 farah indigo 59 farah indigo 47
IVAN FARAH GUS FARAH KIM FARAH FARAH
gus indigo 118 gus grove 5 bruno indigo 19 alice cobalt 46 eli grove 96 farah juniper 61 chen indigo 23 farah indigo 12
GUS GUS BRUNO ALICE ELI FARAH CHEN FARAH
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012150
qwen/qwen3.7-plus
awkweave-0012151
From column 1, print 3 characters starting at character 3.
{print substr($1,3,3)}
cobalt 62 grove 117 amber 57 delta 119 harbor 19 delta 62 amber 1
bal ove ber lta rbo lta ber
grove 92 harbor 53 indigo 108 indigo 9 birch 75 fable 61 ember 92 ember 64
ove rbo dig dig rch ble ber ber
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012151-p1
Extract and print a substring of 3 characters from the first column, starting at the third character.
{print substr($1,3,3)}
cobalt 62 grove 117 amber 57 delta 119 harbor 19 delta 62 amber 1
bal ove ber lta rbo lta ber
grove 92 harbor 53 indigo 108 indigo 9 birch 75 fable 61 ember 92 ember 64
ove rbo dig dig rch ble ber ber
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012151
qwen/qwen3.7-plus
awkweave-0012152
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
cobalt_fable 36 amber_birch 43 amber_delta 37 ember_delta 85 indigo_grove 50 cobalt_ember 103
cobalt fable amber birch amber delta ember delta indigo grove cobalt ember
juniper_fable 91 delta_amber 112 cobalt_indigo 13 amber_amber 74 cobalt_amber 29 fable_fable 88 ember_delta 31 birch_indigo 90 grove_fable 56
juniper fable delta amber cobalt indigo amber amber cobalt amber fable fable ember delta birch indigo grove fable
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012152-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
cobalt_fable 36 amber_birch 43 amber_delta 37 ember_delta 85 indigo_grove 50 cobalt_ember 103
cobalt fable amber birch amber delta ember delta indigo grove cobalt ember
juniper_fable 91 delta_amber 112 cobalt_indigo 13 amber_amber 74 cobalt_amber 29 fable_fable 88 ember_delta 31 birch_indigo 90 grove_fable 56
juniper fable delta amber cobalt indigo amber amber cobalt amber fable fable ember delta birch indigo grove fable
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012152
qwen/qwen3.7-plus
awkweave-0012153
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)}
chen delta 115 active bruno amber 112 paused hana amber 14 paused bruno indigo 116 closed kim indigo 116 ready gus indigo 95 failed dina ember 83 paused chen cobalt 15 closed
active 115 delta chen paused 112 amber bruno paused 14 amber hana closed 116 indigo bruno ready 116 indigo kim failed 95 indigo gus paused 83 ember dina closed 15 cobalt chen
eli grove 82 closed alice indigo 72 ready hana juniper 17 active dina grove 72 active ivan fable 0 closed gus harbor 5 failed
closed 82 grove eli ready 72 indigo alice active 17 juniper hana active 72 grove dina closed 0 fable ivan failed 5 harbor gus
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012153-p1
Reverse the sequence of fields in each line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
chen delta 115 active bruno amber 112 paused hana amber 14 paused bruno indigo 116 closed kim indigo 116 ready gus indigo 95 failed dina ember 83 paused chen cobalt 15 closed
active 115 delta chen paused 112 amber bruno paused 14 amber hana closed 116 indigo bruno ready 116 indigo kim failed 95 indigo gus paused 83 ember dina closed 15 cobalt chen
eli grove 82 closed alice indigo 72 ready hana juniper 17 active dina grove 72 active ivan fable 0 closed gus harbor 5 failed
closed 82 grove eli ready 72 indigo alice active 17 juniper hana active 72 grove dina closed 0 fable ivan failed 5 harbor gus
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012153
qwen/qwen3.7-plus
awkweave-0012154
Print the number of whitespace-separated fields on each line.
{print NF}
hana juniper 41 failed lina juniper 22 paused eli birch 90 pending lina harbor 39 active gus juniper 115 paused eli indigo 78 ready kim juniper 68 paused kim amber 62 paused chen indigo 105 ready
4 4 4 4 4 4 4 4 4
hana delta 54 pending jules harbor 18 active dina harbor 4 failed gus delta 63 ready farah juniper 21 ready farah indigo 56 pending
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012154-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
hana juniper 41 failed lina juniper 22 paused eli birch 90 pending lina harbor 39 active gus juniper 115 paused eli indigo 78 ready kim juniper 68 paused kim amber 62 paused chen indigo 105 ready
4 4 4 4 4 4 4 4 4
hana delta 54 pending jules harbor 18 active dina harbor 4 failed gus delta 63 ready farah juniper 21 ready farah indigo 56 pending
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012154
qwen/qwen3.7-plus
awkweave-0012155
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]]}
hana beta 40 dina beta 26 kim beta 119 lina beta 113 lina alpha 5 ivan gamma 46 ivan gamma 118 bruno gamma 47 hana gamma 33
beta 4 alpha 1 gamma 4
kim beta 5 lina beta 92 ivan alpha 107 chen beta 109 dina delta 42 eli delta 79 dina gamma 50 eli delta 80
beta 3 alpha 1 delta 3 gamma 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012155-p1
Tally the occurrences of each unique value in the second column and display the value alongside its total, maintaining the order in which they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
hana beta 40 dina beta 26 kim beta 119 lina beta 113 lina alpha 5 ivan gamma 46 ivan gamma 118 bruno gamma 47 hana gamma 33
beta 4 alpha 1 gamma 4
kim beta 5 lina beta 92 ivan alpha 107 chen beta 109 dina delta 42 eli delta 79 dina gamma 50 eli delta 80
beta 3 alpha 1 delta 3 gamma 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012155
qwen/qwen3.7-plus
awkweave-0012156
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]]}
lina alpha 17 kim beta 12 farah gamma 12 jules delta 7 kim delta 8 alice beta 30
alpha 17 beta 42 gamma 12 delta 15
ivan gamma 4 kim delta 14 ivan alpha 7 chen alpha 16 lina delta 23 eli beta 1
gamma 4 delta 37 alpha 23 beta 1
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012156-p1
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
lina alpha 17 kim beta 12 farah gamma 12 jules delta 7 kim delta 8 alice beta 30
alpha 17 beta 42 gamma 12 delta 15
ivan gamma 4 kim delta 14 ivan alpha 7 chen alpha 16 lina delta 23 eli beta 1
gamma 4 delta 37 alpha 23 beta 1
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0012156
qwen/qwen3.7-plus
awkweave-0012157
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 juniper 119 alpha fable 97 alpha fable 115 beta ember 42 alpha cobalt 79 alpha delta 0 gamma delta 92 delta fable 86 delta grove 86 gamma delta 48
beta 2 alpha 4 gamma 2 delta 2
delta grove 28 alpha grove 80 delta indigo 93 beta amber 107 beta grove 26 gamma ember 23 delta ember 43 delta fable 33 gamma juniper 107
delta 4 beta 2 gamma 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012157-p1
List each duplicated entry from the first column along with its frequency, sorted by the order of first occurrence.
{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 juniper 119 alpha fable 97 alpha fable 115 beta ember 42 alpha cobalt 79 alpha delta 0 gamma delta 92 delta fable 86 delta grove 86 gamma delta 48
beta 2 alpha 4 gamma 2 delta 2
delta grove 28 alpha grove 80 delta indigo 93 beta amber 107 beta grove 26 gamma ember 23 delta ember 43 delta fable 33 gamma juniper 107
delta 4 beta 2 gamma 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012157
qwen/qwen3.7-plus
awkweave-0012158
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"]}
note display_name state record_id r001 ivan 28 pending r002 jules 27 pending r003 farah 3 paused r004 alice 21 active r005 lina 3 failed r006 kim 15 failed r007 alice 25 pending r008 bruno 16 paused
pending pending paused active failed failed pending paused
note display_name state record_id r001 lina 11 closed r002 kim 2 ready r003 bruno 9 ready r004 ivan 27 pending r005 gus 16 closed r006 kim 4 paused r007 kim 22 ready r008 dina 29 pending r009 eli 9 failed
closed ready ready pending closed paused ready pending failed
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012158-p1
Skip the header row and output the values from the record_id column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
note display_name state record_id r001 ivan 28 pending r002 jules 27 pending r003 farah 3 paused r004 alice 21 active r005 lina 3 failed r006 kim 15 failed r007 alice 25 pending r008 bruno 16 paused
pending pending paused active failed failed pending paused
note display_name state record_id r001 lina 11 closed r002 kim 2 ready r003 bruno 9 ready r004 ivan 27 pending r005 gus 16 closed r006 kim 4 paused r007 kim 22 ready r008 dina 29 pending r009 eli 9 failed
closed ready ready pending closed paused ready pending failed
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012158
qwen/qwen3.7-plus
awkweave-0012159
The first row is a header. Print display_name for data rows whose score is greater than 10.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>10{print $h["display_name"]}
record_id display_name score state r001 chen 7 active r002 kim 29 closed r003 hana 7 active r004 gus 24 active r005 gus 20 active r006 hana 27 active r007 bruno 26 closed r008 chen 10 ready
kim gus gus hana bruno
record_id display_name score state r001 chen 25 pending r002 hana 11 ready r003 jules 15 ready r004 chen 24 active r005 bruno 15 active r006 dina 6 failed
chen hana jules chen bruno
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0012159-p1
Ignoring the header, print the display_name field for any row where the score is strictly greater than 10.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>10{print $h["display_name"]}
record_id display_name score state r001 chen 7 active r002 kim 29 closed r003 hana 7 active r004 gus 24 active r005 gus 20 active r006 hana 27 active r007 bruno 26 closed r008 chen 10 ready
kim gus gus hana bruno
record_id display_name score state r001 chen 25 pending r002 hana 11 ready r003 jules 15 ready r004 chen 24 active r005 bruno 15 active r006 dina 6 failed
chen hana jules chen bruno
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0012159
qwen/qwen3.7-plus
awkweave-0012160
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
lina 4 failed lina 14 pending lina 29 ready gus 15 closed kim 20 closed dina 2 paused lina 26 ready eli 18 failed ivan 16 active eli 5 closed
4 14 29 15 20 2 26 18 16 5
eli 9 failed gus 28 active chen 20 paused farah 9 closed kim 19 failed hana 29 closed alice 8 pending
9 28 20 9 19 29 8
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null