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-0023221-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
eli fable 56 alice delta 117 kim fable 105 gus harbor 66 lina grove 49 ivan cobalt 111 lina grove 49 dina ember 112
eli fable 56 alice delta 117 kim fable 105 gus harbor 66 lina grove 49 ivan cobalt 111 dina ember 112
ivan fable 89 jules juniper 116 lina birch 30 chen indigo 69 chen fable 15 dina amber 49 kim amber 111 hana indigo 103 ivan fable 89 chen indigo 103
ivan fable 89 jules juniper 116 lina birch 30 chen indigo 69 chen fable 15 dina amber 49 kim amber 111 hana indigo 103 chen indigo 103
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023221
qwen/qwen3.7-plus
awkweave-0023222
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
hana indigo 19 dina delta 18 hana indigo 24 ivan harbor 96 farah amber 34 lina fable 64 gus juniper 84
hana indigo 19 dina delta 18 ivan harbor 96 farah amber 34 lina fable 64 gus juniper 84
lina harbor 58 farah delta 101 gus delta 34 bruno delta 114 jules juniper 114 bruno amber 5 alice amber 6
lina harbor 58 farah delta 101 jules juniper 114 bruno amber 5
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023222-p1
Retain only the first occurrence for each unique value in column 2, keeping the original input order.
!seen[$2]++
hana indigo 19 dina delta 18 hana indigo 24 ivan harbor 96 farah amber 34 lina fable 64 gus juniper 84
hana indigo 19 dina delta 18 ivan harbor 96 farah amber 34 lina fable 64 gus juniper 84
lina harbor 58 farah delta 101 gus delta 34 bruno delta 114 jules juniper 114 bruno amber 5 alice amber 6
lina harbor 58 farah delta 101 jules juniper 114 bruno amber 5
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023222
qwen/qwen3.7-plus
awkweave-0023223
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
farah 5 delta jules 2 indigo hana 3 cobalt eli 13 juniper chen 11 delta chen 18 grove
farah 5 jules 7 hana 10 eli 23 chen 34 chen 52
bruno 7 juniper chen 8 ember hana 30 grove gus 2 fable gus 18 amber alice 11 cobalt alice 18 indigo lina 13 delta ivan 2 fable dina 22 cobalt
bruno 7 chen 15 hana 45 gus 47 gus 65 alice 76 alice 94 lina 107 ivan 109 dina 131
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023223-p1
For every record, output column 1 followed by the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
farah 5 delta jules 2 indigo hana 3 cobalt eli 13 juniper chen 11 delta chen 18 grove
farah 5 jules 7 hana 10 eli 23 chen 34 chen 52
bruno 7 juniper chen 8 ember hana 30 grove gus 2 fable gus 18 amber alice 11 cobalt alice 18 indigo lina 13 delta ivan 2 fable dina 22 cobalt
bruno 7 chen 15 hana 45 gus 47 gus 65 alice 76 alice 94 lina 107 ivan 109 dina 131
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023223
qwen/qwen3.7-plus
awkweave-0023224
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
dina 16 22 harbor farah 18 24 juniper alice 5 6 grove farah 3 21 fable ivan 25 8 amber farah 26 22 juniper ivan 2 14 grove
dina 38 farah 42 alice 11 farah 24 ivan 33 farah 48 ivan 16
kim 22 21 grove alice 27 12 grove kim 21 6 cobalt kim 18 10 indigo kim 13 21 ember eli 19 28 fable bruno 23 4 cobalt alice 22 19 indigo hana 16 20 delta jules 30 17 harbor
kim 43 alice 39 kim 27 kim 28 kim 34 eli 47 bruno 27 alice 41 hana 36 jules 47
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023224-p1
For each line, output the first field followed by the total of the second and third fields.
{print $1,$2+$3}
dina 16 22 harbor farah 18 24 juniper alice 5 6 grove farah 3 21 fable ivan 25 8 amber farah 26 22 juniper ivan 2 14 grove
dina 38 farah 42 alice 11 farah 24 ivan 33 farah 48 ivan 16
kim 22 21 grove alice 27 12 grove kim 21 6 cobalt kim 18 10 indigo kim 13 21 ember eli 19 28 fable bruno 23 4 cobalt alice 22 19 indigo hana 16 20 delta jules 30 17 harbor
kim 43 alice 39 kim 27 kim 28 kim 34 eli 47 bruno 27 alice 41 hana 36 jules 47
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023224
qwen/qwen3.7-plus
awkweave-0023225
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
hana 23 kim 19 jules 19 dina 10 chen 7 eli 18
hana fail kim fail jules fail dina fail chen fail eli fail
gus 19 hana 21 bruno 21 lina 3 gus 28 hana 27
gus fail hana fail bruno fail lina fail gus pass hana pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023225-p1
Output the first column; if the second column is 25 or more, print 'pass', otherwise print 'fail'.
{print $1,($2>=25?"pass":"fail")}
hana 23 kim 19 jules 19 dina 10 chen 7 eli 18
hana fail kim fail jules fail dina fail chen fail eli fail
gus 19 hana 21 bruno 21 lina 3 gus 28 hana 27
gus fail hana fail bruno fail lina fail gus pass hana pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023225
qwen/qwen3.7-plus
awkweave-0023226
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
jules amber 53 eli harbor 119 bruno grove 36 alice harbor 40 dina cobalt 93 gus harbor 33
AMBER HARBOR GROVE HARBOR COBALT HARBOR
gus amber 50 farah grove 82 lina birch 56 chen cobalt 4 kim indigo 94 hana grove 31 ivan juniper 72
AMBER GROVE BIRCH COBALT INDIGO GROVE JUNIPER
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023226-p1
Transform the second column to uppercase and display only that column.
{print toupper($2)}
jules amber 53 eli harbor 119 bruno grove 36 alice harbor 40 dina cobalt 93 gus harbor 33
AMBER HARBOR GROVE HARBOR COBALT HARBOR
gus amber 50 farah grove 82 lina birch 56 chen cobalt 4 kim indigo 94 hana grove 31 ivan juniper 72
AMBER GROVE BIRCH COBALT INDIGO GROVE JUNIPER
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023226
qwen/qwen3.7-plus
awkweave-0023227
From column 1, print 4 characters starting at character 3.
{print substr($1,3,4)}
harbor 107 ember 108 juniper 39 amber 6 indigo 69 fable 89 birch 112 indigo 35 juniper 98
rbor ber nipe ber digo ble rch digo nipe
indigo 12 cobalt 16 fable 44 cobalt 7 ember 8 harbor 109 grove 105 harbor 102
digo balt ble balt ber rbor ove rbor
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023227-p1
Extract and print a 4-character substring from the first column, starting at the third character.
{print substr($1,3,4)}
harbor 107 ember 108 juniper 39 amber 6 indigo 69 fable 89 birch 112 indigo 35 juniper 98
rbor ber nipe ber digo ble rch digo nipe
indigo 12 cobalt 16 fable 44 cobalt 7 ember 8 harbor 109 grove 105 harbor 102
digo balt ble balt ber rbor ove rbor
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023227
qwen/qwen3.7-plus
awkweave-0023228
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
ember_birch 61 juniper_birch 92 juniper_cobalt 47 grove_grove 23 cobalt_ember 80 birch_indigo 9 amber_juniper 120 ember_indigo 67
ember birch juniper birch juniper cobalt grove grove cobalt ember birch indigo amber juniper ember indigo
harbor_birch 102 grove_juniper 12 cobalt_harbor 20 fable_fable 101 delta_delta 105 fable_fable 66 fable_harbor 31 grove_fable 50 grove_ember 58 grove_cobalt 53
harbor birch grove juniper cobalt harbor fable fable delta delta fable fable fable harbor grove fable grove ember grove cobalt
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023228-p1
Substitute all underscores with spaces in the first column and output the modified values.
{gsub(/_/," ",$1);print $1}
ember_birch 61 juniper_birch 92 juniper_cobalt 47 grove_grove 23 cobalt_ember 80 birch_indigo 9 amber_juniper 120 ember_indigo 67
ember birch juniper birch juniper cobalt grove grove cobalt ember birch indigo amber juniper ember indigo
harbor_birch 102 grove_juniper 12 cobalt_harbor 20 fable_fable 101 delta_delta 105 fable_fable 66 fable_harbor 31 grove_fable 50 grove_ember 58 grove_cobalt 53
harbor birch grove juniper cobalt harbor fable fable delta delta fable fable fable harbor grove fable grove ember grove cobalt
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023228
qwen/qwen3.7-plus
awkweave-0023229
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)}
kim harbor 50 closed bruno harbor 119 pending kim fable 58 closed kim amber 61 paused jules harbor 3 paused bruno amber 65 pending dina birch 52 closed kim amber 82 ready
closed 50 harbor kim pending 119 harbor bruno closed 58 fable kim paused 61 amber kim paused 3 harbor jules pending 65 amber bruno closed 52 birch dina ready 82 amber kim
bruno amber 78 closed alice harbor 34 ready hana harbor 40 failed chen harbor 5 closed farah fable 5 pending ivan fable 14 pending
closed 78 amber bruno ready 34 harbor alice failed 40 harbor hana closed 5 harbor chen pending 5 fable farah pending 14 fable ivan
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023229-p1
Reverse the sequence of fields for every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
kim harbor 50 closed bruno harbor 119 pending kim fable 58 closed kim amber 61 paused jules harbor 3 paused bruno amber 65 pending dina birch 52 closed kim amber 82 ready
closed 50 harbor kim pending 119 harbor bruno closed 58 fable kim paused 61 amber kim paused 3 harbor jules pending 65 amber bruno closed 52 birch dina ready 82 amber kim
bruno amber 78 closed alice harbor 34 ready hana harbor 40 failed chen harbor 5 closed farah fable 5 pending ivan fable 14 pending
closed 78 amber bruno ready 34 harbor alice failed 40 harbor hana closed 5 harbor chen pending 5 fable farah pending 14 fable ivan
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023229
qwen/qwen3.7-plus
awkweave-0023230
Print the number of whitespace-separated fields on each line.
{print NF}
gus juniper 87 active hana indigo 78 paused alice juniper 66 failed alice birch 26 active jules juniper 86 closed eli cobalt 34 paused ivan birch 119 ready bruno delta 32 closed bruno birch 9 pending
4 4 4 4 4 4 4 4 4
hana harbor 79 active kim juniper 91 pending bruno grove 70 failed chen ember 111 ready jules amber 50 active ivan indigo 2 closed lina juniper 31 failed ivan cobalt 49 ready eli juniper 74 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023230-p1
Display the count of whitespace-delimited fields for each line.
{print NF}
gus juniper 87 active hana indigo 78 paused alice juniper 66 failed alice birch 26 active jules juniper 86 closed eli cobalt 34 paused ivan birch 119 ready bruno delta 32 closed bruno birch 9 pending
4 4 4 4 4 4 4 4 4
hana harbor 79 active kim juniper 91 pending bruno grove 70 failed chen ember 111 ready jules amber 50 active ivan indigo 2 closed lina juniper 31 failed ivan cobalt 49 ready eli juniper 74 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023230
qwen/qwen3.7-plus
awkweave-0023231
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 alpha 34 eli beta 70 hana gamma 51 gus beta 68 dina beta 89 dina beta 14 lina alpha 53 lina beta 68 hana gamma 104 ivan alpha 116
alpha 3 beta 5 gamma 2
hana delta 110 farah beta 41 jules delta 16 alice gamma 33 jules gamma 47 farah delta 55 jules alpha 32 kim beta 75
delta 3 beta 2 gamma 2 alpha 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023231-p1
Tally the 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]]}
jules alpha 34 eli beta 70 hana gamma 51 gus beta 68 dina beta 89 dina beta 14 lina alpha 53 lina beta 68 hana gamma 104 ivan alpha 116
alpha 3 beta 5 gamma 2
hana delta 110 farah beta 41 jules delta 16 alice gamma 33 jules gamma 47 farah delta 55 jules alpha 32 kim beta 75
delta 3 beta 2 gamma 2 alpha 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023231
qwen/qwen3.7-plus
awkweave-0023232
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]]}
jules delta 30 alice gamma 2 bruno gamma 12 alice beta 11 bruno alpha 24 kim alpha 7 gus delta 28 lina delta 13 dina delta 1 gus gamma 28
delta 72 gamma 42 beta 11 alpha 31
kim gamma 11 alice gamma 4 kim beta 14 alice gamma 11 lina delta 21 alice beta 24 kim alpha 7
gamma 26 beta 38 delta 21 alpha 7
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023232-p1
Calculate the sum of the third column for each group defined by the second column, listing 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]]}
jules delta 30 alice gamma 2 bruno gamma 12 alice beta 11 bruno alpha 24 kim alpha 7 gus delta 28 lina delta 13 dina delta 1 gus gamma 28
delta 72 gamma 42 beta 11 alpha 31
kim gamma 11 alice gamma 4 kim beta 14 alice gamma 11 lina delta 21 alice beta 24 kim alpha 7
gamma 26 beta 38 delta 21 alpha 7
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023232
qwen/qwen3.7-plus
awkweave-0023233
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 indigo 30 gamma cobalt 90 gamma cobalt 106 alpha amber 116 gamma cobalt 39 alpha harbor 4 delta cobalt 40 gamma fable 93
alpha 3 gamma 4
delta juniper 60 gamma fable 88 beta amber 18 gamma amber 63 beta amber 11 delta delta 30
delta 2 gamma 2 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023233-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 indigo 30 gamma cobalt 90 gamma cobalt 106 alpha amber 116 gamma cobalt 39 alpha harbor 4 delta cobalt 40 gamma fable 93
alpha 3 gamma 4
delta juniper 60 gamma fable 88 beta amber 18 gamma amber 63 beta amber 11 delta delta 30
delta 2 gamma 2 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023233
qwen/qwen3.7-plus
awkweave-0023234
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 record_id state score r001 hana 9 paused r002 gus 24 failed r003 gus 6 ready r004 lina 28 pending r005 farah 29 failed r006 gus 24 ready r007 gus 9 failed
hana gus gus lina farah gus gus
note record_id state score r001 gus 17 pending r002 hana 29 active r003 bruno 15 ready r004 lina 21 closed r005 kim 20 failed r006 farah 2 pending r007 gus 23 active r008 ivan 12 failed r009 kim 27 closed
gus hana bruno lina kim farah gus ivan kim
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023234-p1
Skipping the header row, print 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 record_id state score r001 hana 9 paused r002 gus 24 failed r003 gus 6 ready r004 lina 28 pending r005 farah 29 failed r006 gus 24 ready r007 gus 9 failed
hana gus gus lina farah gus gus
note record_id state score r001 gus 17 pending r002 hana 29 active r003 bruno 15 ready r004 lina 21 closed r005 kim 20 failed r006 farah 2 pending r007 gus 23 active r008 ivan 12 failed r009 kim 27 closed
gus hana bruno lina kim farah gus ivan kim
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023234
qwen/qwen3.7-plus
awkweave-0023235
The first row is a header. Print display_name for data rows whose score is greater than 19.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>19{print $h["display_name"]}
record_id display_name score state r001 alice 30 pending r002 dina 10 closed r003 lina 7 pending r004 dina 8 paused r005 gus 15 active r006 ivan 23 failed
alice ivan
record_id display_name score state r001 jules 18 paused r002 gus 22 failed r003 dina 28 active r004 alice 6 failed r005 eli 11 paused r006 ivan 11 closed r007 bruno 19 ready r008 jules 22 failed
gus dina jules
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023235-p1
Ignoring the header, print the 'display_name' column for rows where the 'score' exceeds 19.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>19{print $h["display_name"]}
record_id display_name score state r001 alice 30 pending r002 dina 10 closed r003 lina 7 pending r004 dina 8 paused r005 gus 15 active r006 ivan 23 failed
alice ivan
record_id display_name score state r001 jules 18 paused r002 gus 22 failed r003 dina 28 active r004 alice 6 failed r005 eli 11 paused r006 ivan 11 closed r007 bruno 19 ready r008 jules 22 failed
gus dina jules
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023235
qwen/qwen3.7-plus
awkweave-0023236
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
bruno 25 active alice 18 paused hana 16 failed chen 22 paused dina 14 ready dina 29 closed
bruno alice hana chen dina dina
chen 26 failed lina 12 failed alice 27 ready alice 27 active jules 28 ready chen 1 failed
chen lina alice alice jules chen
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023236-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
bruno 25 active alice 18 paused hana 16 failed chen 22 paused dina 14 ready dina 29 closed
bruno alice hana chen dina dina
chen 26 failed lina 12 failed alice 27 ready alice 27 active jules 28 ready chen 1 failed
chen lina alice alice jules chen
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0023236
qwen/qwen3.7-plus
awkweave-0023237
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 20.
BEGIN{FS=OFS=","}$2>20{print $1}
bruno,14,failed bruno,27,ready ivan,17,paused chen,28,failed lina,7,closed ivan,17,ready
bruno chen
lina,22,closed farah,11,paused alice,13,closed farah,21,pending farah,17,ready alice,17,paused alice,14,pending bruno,26,pending farah,1,closed dina,19,paused
lina farah bruno
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023237-p1
Output the first column of comma-separated values where the second column is greater than 20, assuming no quoted commas.
BEGIN{FS=OFS=","}$2>20{print $1}
bruno,14,failed bruno,27,ready ivan,17,paused chen,28,failed lina,7,closed ivan,17,ready
bruno chen
lina,22,closed farah,11,paused alice,13,closed farah,21,pending farah,17,ready alice,17,paused alice,14,pending bruno,26,pending farah,1,closed dina,19,paused
lina farah bruno
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023237
qwen/qwen3.7-plus
awkweave-0023238
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina indigo 117 farah harbor 104 gus indigo 40 chen delta 41 eli delta 117 chen cobalt 40 dina grove 21 jules indigo 69 lina harbor 35 dina indigo 114
lina indigo 117 farah harbor 104 gus indigo 40 chen delta 41 eli delta 117 chen cobalt 40 dina grove 21 jules indigo 69 lina harbor 35 dina indigo 114
jules indigo 31 bruno ember 51 hana grove 50 dina delta 17 bruno cobalt 9 dina birch 58
jules indigo 31 bruno ember 51 hana grove 50 dina delta 17 bruno cobalt 9 dina birch 58
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023238-p1
Remove leading and trailing whitespace and replace sequences of internal whitespace with a single space.
{$1=$1;print}
lina indigo 117 farah harbor 104 gus indigo 40 chen delta 41 eli delta 117 chen cobalt 40 dina grove 21 jules indigo 69 lina harbor 35 dina indigo 114
lina indigo 117 farah harbor 104 gus indigo 40 chen delta 41 eli delta 117 chen cobalt 40 dina grove 21 jules indigo 69 lina harbor 35 dina indigo 114
jules indigo 31 bruno ember 51 hana grove 50 dina delta 17 bruno cobalt 9 dina birch 58
jules indigo 31 bruno ember 51 hana grove 50 dina delta 17 bruno cobalt 9 dina birch 58
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023238
qwen/qwen3.7-plus
awkweave-0023239
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
bruno ember 24 closed farah grove 102 closed chen cobalt 27 failed jules delta 6 closed kim birch 50 failed bruno grove 84 paused bruno grove 5 paused bruno delta 9 ready
farah grove 102 closed
bruno indigo 49 failed alice juniper 40 failed lina delta 71 active dina fable 100 ready kim amber 48 pending chen fable 19 closed jules amber 39 active jules amber 103 active ivan birch 56 paused chen birch 42 ready
alice juniper 40 failed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023239-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}
bruno ember 24 closed farah grove 102 closed chen cobalt 27 failed jules delta 6 closed kim birch 50 failed bruno grove 84 paused bruno grove 5 paused bruno delta 9 ready
farah grove 102 closed
bruno indigo 49 failed alice juniper 40 failed lina delta 71 active dina fable 100 ready kim amber 48 pending chen fable 19 closed jules amber 39 active jules amber 103 active ivan birch 56 paused chen birch 42 ready
alice juniper 40 failed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023239
qwen/qwen3.7-plus
awkweave-0023240
Print every 4th line starting at line 1 (then line 5, and so on).
NR%4==1
eli 79 chen 64 dina 116 kim 11 dina 0 bruno 119
eli 79 dina 0
ivan 112 alice 73 gus 47 farah 57 farah 83 eli 97 bruno 62 bruno 75 gus 53 chen 50
ivan 112 farah 83 gus 53
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023240-p1
Print lines 1, 5, 9, and so on, effectively outputting every fourth line starting from the first.
NR%4==1
eli 79 chen 64 dina 116 kim 11 dina 0 bruno 119
eli 79 dina 0
ivan 112 alice 73 gus 47 farah 57 farah 83 eli 97 bruno 62 bruno 75 gus 53 chen 50
ivan 112 farah 83 gus 53
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023240
qwen/qwen3.7-plus
awkweave-0023241
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha delta 14 gamma fable 76 beta amber 73 delta indigo 58 beta juniper 80 gamma fable 29
5
alpha ember 49 beta juniper 35 beta harbor 97 alpha ember 25 gamma grove 72 alpha ember 60 gamma amber 27 beta amber 7 gamma ember 36 beta ember 112
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023241-p1
Calculate and display only the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
alpha delta 14 gamma fable 76 beta amber 73 delta indigo 58 beta juniper 80 gamma fable 29
5
alpha ember 49 beta juniper 35 beta harbor 97 alpha ember 25 gamma grove 72 alpha ember 60 gamma amber 27 beta amber 7 gamma ember 36 beta ember 112
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023241
qwen/qwen3.7-plus
awkweave-0023242
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 28 0 gus 10 28 farah 17 9 eli 14 6 alice 22 3 alice 20 2 jules 13 24 chen 3 6 ivan 30 15
gus 0.36 farah 1.89 eli 2.33 alice 7.33 alice 10.00 jules 0.54 chen 0.50 ivan 2.00
gus 28 0 gus 26 21 hana 4 8 kim 30 24 ivan 22 12 alice 18 25 farah 10 23 chen 7 9 gus 19 7
gus 1.24 hana 0.50 kim 1.25 ivan 1.83 alice 0.72 farah 0.43 chen 0.78 gus 2.71
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023242-p1
For each row where the third column is non-zero, output the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 28 0 gus 10 28 farah 17 9 eli 14 6 alice 22 3 alice 20 2 jules 13 24 chen 3 6 ivan 30 15
gus 0.36 farah 1.89 eli 2.33 alice 7.33 alice 10.00 jules 0.54 chen 0.50 ivan 2.00
gus 28 0 gus 26 21 hana 4 8 kim 30 24 ivan 22 12 alice 18 25 farah 10 23 chen 7 9 gus 19 7
gus 1.24 hana 0.50 kim 1.25 ivan 1.83 alice 0.72 farah 0.43 chen 0.78 gus 2.71
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023242
qwen/qwen3.7-plus
awkweave-0023243
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]}
bruno indigo 11 alice birch 25 dina ember 2 lina harbor 3 kim juniper 30 bruno delta 18 eli fable 10 eli ember 5
kim juniper 30 alice birch 25 bruno delta 18
farah amber 24 ivan cobalt 12 dina delta 14 chen indigo 28 eli ember 18 chen indigo 6
chen indigo 28 farah amber 24 eli ember 18
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023243-p1
Output the three full records with the highest numeric values in the third column, sorted in descending order while maintaining the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
bruno indigo 11 alice birch 25 dina ember 2 lina harbor 3 kim juniper 30 bruno delta 18 eli fable 10 eli ember 5
kim juniper 30 alice birch 25 bruno delta 18
farah amber 24 ivan cobalt 12 dina delta 14 chen indigo 28 eli ember 18 chen indigo 6
chen indigo 28 farah amber 24 eli ember 18
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023243
qwen/qwen3.7-plus
awkweave-0023244
Select the 3rd and 2nd fields in that order.
{print $3, $2}
failed active fable kim pending failed cobalt gus paused failed cobalt jules active failed harbor farah pending pending harbor eli failed paused indigo kim
fable active cobalt failed cobalt failed harbor failed harbor pending indigo paused
active paused indigo alice pending ready ember gus paused paused indigo kim active ready amber farah active pending juniper eli paused ready juniper kim active closed birch ivan
indigo paused ember ready indigo paused amber ready juniper pending juniper ready birch closed
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023244-p1
Reorder and print the fields by selecting the third field followed by the second field.
{print $3, $2}
failed active fable kim pending failed cobalt gus paused failed cobalt jules active failed harbor farah pending pending harbor eli failed paused indigo kim
fable active cobalt failed cobalt failed harbor failed harbor pending indigo paused
active paused indigo alice pending ready ember gus paused paused indigo kim active ready amber farah active pending juniper eli paused ready juniper kim active closed birch ivan
indigo paused ember ready indigo paused amber ready juniper pending juniper ready birch closed
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023244
qwen/qwen3.7-plus
awkweave-0023245
Print the last field of every input line.
{print $NF}
dina fable dina birch lina fable gus harbor chen grove kim indigo kim amber jules birch bruno harbor kim fable dina grove kim delta gus birch gus indigo lina cobalt kim fable lina juniper jules ember ivan amber hana fable
birch harbor indigo birch fable delta indigo fable ember fable
bruno delta bruno birch lina indigo hana fable ivan juniper gus amber chen ember alice indigo alice ember bruno harbor jules juniper farah birch gus amber hana fable jules ember chen harbor alice ember gus harbor kim delta dina amber
birch fable amber indigo harbor birch fable harbor harbor amber
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023245-p1
Display the final field from every line of input.
{print $NF}
dina fable dina birch lina fable gus harbor chen grove kim indigo kim amber jules birch bruno harbor kim fable dina grove kim delta gus birch gus indigo lina cobalt kim fable lina juniper jules ember ivan amber hana fable
birch harbor indigo birch fable delta indigo fable ember fable
bruno delta bruno birch lina indigo hana fable ivan juniper gus amber chen ember alice indigo alice ember bruno harbor jules juniper farah birch gus amber hana fable jules ember chen harbor alice ember gus harbor kim delta dina amber
birch fable amber indigo harbor birch fable harbor harbor amber
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023245
qwen/qwen3.7-plus
awkweave-0023246
Print the complete records where column 1 is less than 30.
$1 < 30
52 pending cobalt 41 active amber 70 pending ember 83 paused harbor 39 failed birch 12 failed amber 105 active fable 39 ready grove 29 failed ember 64 closed indigo
12 failed amber 29 failed ember
110 paused grove 100 failed delta 96 active grove 17 failed ember 108 paused juniper 64 ready fable 94 pending grove 95 pending ember
17 failed ember
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023246-p1
Print all complete records where the value in the first column is strictly less than 30.
$1 < 30
52 pending cobalt 41 active amber 70 pending ember 83 paused harbor 39 failed birch 12 failed amber 105 active fable 39 ready grove 29 failed ember 64 closed indigo
12 failed amber 29 failed ember
110 paused grove 100 failed delta 96 active grove 17 failed ember 108 paused juniper 64 ready fable 94 pending grove 95 pending ember
17 failed ember
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023246
qwen/qwen3.7-plus
awkweave-0023247
Show whole lines whose 3rd field is between 7 and 27, inclusive.
$3 >= 7 && $3 <= 27
gus eli 14 delta eli farah 5 harbor eli jules 13 birch gus kim 1 amber jules eli 26 delta gus hana 8 fable jules hana 16 delta jules kim 4 amber
gus eli 14 delta eli jules 13 birch jules eli 26 delta gus hana 8 fable jules hana 16 delta
dina gus 18 delta gus dina 28 harbor dina gus 4 fable kim ivan 11 indigo kim alice 9 indigo jules hana 1 cobalt chen hana 17 birch
dina gus 18 delta kim ivan 11 indigo kim alice 9 indigo chen hana 17 birch
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023247-p1
Output entire lines where the third field falls within the inclusive range of 7 to 27.
$3 >= 7 && $3 <= 27
gus eli 14 delta eli farah 5 harbor eli jules 13 birch gus kim 1 amber jules eli 26 delta gus hana 8 fable jules hana 16 delta jules kim 4 amber
gus eli 14 delta eli jules 13 birch jules eli 26 delta gus hana 8 fable jules hana 16 delta
dina gus 18 delta gus dina 28 harbor dina gus 4 fable kim ivan 11 indigo kim alice 9 indigo jules hana 1 cobalt chen hana 17 birch
dina gus 18 delta kim ivan 11 indigo kim alice 9 indigo chen hana 17 birch
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023247
qwen/qwen3.7-plus
awkweave-0023248
Print column 4 only for rows where column 2 is exactly failed.
$2 == "failed"{print $4}
108 failed juniper bruno 115 pending fable alice 113 pending harbor chen 84 pending grove lina 54 failed birch farah 48 active delta hana
bruno farah
18 ready ember alice 35 paused fable farah 43 failed birch hana 23 active cobalt dina 90 active indigo dina 72 pending fable alice
hana
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023248-p1
Display only the fourth column for rows where the second column matches 'failed' exactly.
$2 == "failed"{print $4}
108 failed juniper bruno 115 pending fable alice 113 pending harbor chen 84 pending grove lina 54 failed birch farah 48 active delta hana
bruno farah
18 ready ember alice 35 paused fable farah 43 failed birch hana 23 active cobalt dina 90 active indigo dina 72 pending fable alice
hana
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023248
qwen/qwen3.7-plus
awkweave-0023249
Print all fields from lines where field 3 begins with WARN.
$3 ~ /^WARN/
45 fable ERROR 58 grove INFO 30 fable WARN 113 ember ERROR 45 birch INFO 82 grove WARN 119 fable DEBUG 37 harbor DEBUG
30 fable WARN 82 grove WARN
42 fable INFO 112 amber ERROR 108 grove DEBUG 15 harbor DEBUG 24 delta ERROR 6 harbor ERROR 19 juniper WARN
19 juniper WARN
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023249-p1
Output all fields from lines where the third field starts with 'WARN'.
$3 ~ /^WARN/
45 fable ERROR 58 grove INFO 30 fable WARN 113 ember ERROR 45 birch INFO 82 grove WARN 119 fable DEBUG 37 harbor DEBUG
30 fable WARN 82 grove WARN
42 fable INFO 112 amber ERROR 108 grove DEBUG 15 harbor DEBUG 24 delta ERROR 6 harbor ERROR 19 juniper WARN
19 juniper WARN
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023249
qwen/qwen3.7-plus
awkweave-0023250
Print every line except those containing the exact text harbor.
$0 !~ /harbor/
birch 5 failed ember 77 active fable 90 paused delta 75 failed juniper 89 closed fable 88 paused fable 97 active birch 41 active harbor 999 active
birch 5 failed ember 77 active fable 90 paused delta 75 failed juniper 89 closed fable 88 paused fable 97 active birch 41 active
harbor 115 paused indigo 96 failed cobalt 7 active indigo 85 ready indigo 51 closed harbor 80 active harbor 999 active
indigo 96 failed cobalt 7 active indigo 85 ready indigo 51 closed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023250-p1
Print every line that does not contain the exact string 'harbor'.
$0 !~ /harbor/
birch 5 failed ember 77 active fable 90 paused delta 75 failed juniper 89 closed fable 88 paused fable 97 active birch 41 active harbor 999 active
birch 5 failed ember 77 active fable 90 paused delta 75 failed juniper 89 closed fable 88 paused fable 97 active birch 41 active
harbor 115 paused indigo 96 failed cobalt 7 active indigo 85 ready indigo 51 closed harbor 80 active harbor 999 active
indigo 96 failed cobalt 7 active indigo 85 ready indigo 51 closed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023250
qwen/qwen3.7-plus
awkweave-0023251
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
jules ember 89 hana ember 74 farah birch 71 kim delta 46 hana birch 44 kim cobalt 0 chen juniper 95 kim juniper 94 lina amber 70
kim delta 46 hana birch 44 kim cobalt 0 chen juniper 95
eli amber 64 jules birch 66 dina birch 56 chen fable 106 dina juniper 55 gus birch 16 dina juniper 96 hana ember 14 farah harbor 47 bruno cobalt 75
chen fable 106 dina juniper 55 gus birch 16 dina juniper 96
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023251-p1
Output lines 4 to 7, inclusive of both endpoints.
NR >= 4 && NR <= 7
jules ember 89 hana ember 74 farah birch 71 kim delta 46 hana birch 44 kim cobalt 0 chen juniper 95 kim juniper 94 lina amber 70
kim delta 46 hana birch 44 kim cobalt 0 chen juniper 95
eli amber 64 jules birch 66 dina birch 56 chen fable 106 dina juniper 55 gus birch 16 dina juniper 96 hana ember 14 farah harbor 47 bruno cobalt 75
chen fable 106 dina juniper 55 gus birch 16 dina juniper 96
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023251
qwen/qwen3.7-plus
awkweave-0023252
Output only the first 4 records.
NR <= 4
farah 18 delta chen 120 delta alice 45 birch lina 43 indigo gus 37 harbor alice 97 cobalt
farah 18 delta chen 120 delta alice 45 birch lina 43 indigo
gus 11 grove gus 9 cobalt gus 29 amber farah 117 delta bruno 95 juniper gus 37 amber jules 111 cobalt
gus 11 grove gus 9 cobalt gus 29 amber farah 117 delta
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023252-p1
Display only the first 4 records.
NR <= 4
farah 18 delta chen 120 delta alice 45 birch lina 43 indigo gus 37 harbor alice 97 cobalt
farah 18 delta chen 120 delta alice 45 birch lina 43 indigo
gus 11 grove gus 9 cobalt gus 29 amber farah 117 delta bruno 95 juniper gus 37 amber jules 111 cobalt
gus 11 grove gus 9 cobalt gus 29 amber farah 117 delta
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023252
qwen/qwen3.7-plus
awkweave-0023253
Skip the first line and print every remaining line unchanged.
NR > 1
gus 78 amber ivan 117 harbor chen 87 cobalt hana 37 birch gus 100 cobalt hana 36 ember jules 83 indigo lina 120 indigo lina 75 ember
ivan 117 harbor chen 87 cobalt hana 37 birch gus 100 cobalt hana 36 ember jules 83 indigo lina 120 indigo lina 75 ember
gus 17 indigo dina 120 fable kim 34 harbor farah 85 fable dina 28 indigo gus 64 birch lina 18 birch bruno 42 indigo
dina 120 fable kim 34 harbor farah 85 fable dina 28 indigo gus 64 birch lina 18 birch bruno 42 indigo
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023253-p1
Omit the first line and print all subsequent lines without modification.
NR > 1
gus 78 amber ivan 117 harbor chen 87 cobalt hana 37 birch gus 100 cobalt hana 36 ember jules 83 indigo lina 120 indigo lina 75 ember
ivan 117 harbor chen 87 cobalt hana 37 birch gus 100 cobalt hana 36 ember jules 83 indigo lina 120 indigo lina 75 ember
gus 17 indigo dina 120 fable kim 34 harbor farah 85 fable dina 28 indigo gus 64 birch lina 18 birch bruno 42 indigo
dina 120 fable kim 34 harbor farah 85 fable dina 28 indigo gus 64 birch lina 18 birch bruno 42 indigo
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023253
qwen/qwen3.7-plus
awkweave-0023254
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
farah pending 72 chen paused 50 ivan paused 84 eli ready 104 dina closed 62 jules active 85 ivan ready 102
1
lina ready 13 jules ready 41 lina active 110 ivan pending 101 chen ready 73 kim paused 2 bruno ready 68 alice failed 106
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023254-p1
Count the number of records with 'pending' in column 2; output 0 if none are found.
$2 == "pending"{n++}END{print n+0}
farah pending 72 chen paused 50 ivan paused 84 eli ready 104 dina closed 62 jules active 85 ivan ready 102
1
lina ready 13 jules ready 41 lina active 110 ivan pending 101 chen ready 73 kim paused 2 bruno ready 68 alice failed 106
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023254
qwen/qwen3.7-plus
awkweave-0023255
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
ember 9 gus amber 16 eli birch 2 kim amber 4 hana cobalt 22 lina juniper 16 alice grove 27 hana juniper 15 chen grove 2 kim juniper 9 hana
122
fable 26 kim indigo 29 farah juniper 27 dina indigo 15 farah grove 23 farah ember 12 dina
132
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023255-p1
Compute and display the sum of integer values in column 2.
{s+=$2}END{print s+0}
ember 9 gus amber 16 eli birch 2 kim amber 4 hana cobalt 22 lina juniper 16 alice grove 27 hana juniper 15 chen grove 2 kim juniper 9 hana
122
fable 26 kim indigo 29 farah juniper 27 dina indigo 15 farah grove 23 farah ember 12 dina
132
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023255
qwen/qwen3.7-plus
awkweave-0023256
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
24 juniper chen 19 cobalt hana 13 ember chen 12 juniper kim 4 birch eli 11 indigo dina
13.83
30 amber bruno 21 delta farah 17 harbor ivan 24 birch farah 12 amber alice 8 amber farah 28 grove hana 1 juniper dina
17.62
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023256-p1
Print the average of column 1, rounded to two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
24 juniper chen 19 cobalt hana 13 ember chen 12 juniper kim 4 birch eli 11 indigo dina
13.83
30 amber bruno 21 delta farah 17 harbor ivan 24 birch farah 12 amber alice 8 amber farah 28 grove hana 1 juniper dina
17.62
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023256
qwen/qwen3.7-plus
awkweave-0023257
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
27 bruno grove 12 lina fable 8 kim juniper 15 hana fable 12 gus cobalt 25 eli amber 11 eli amber 16 hana harbor 8 lina ember 17 gus delta
8
21 gus fable 21 hana birch 7 bruno birch 1 eli juniper 1 jules grove 15 ivan fable 15 eli ember 26 ivan amber
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023257-p1
Identify and output the minimum numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
27 bruno grove 12 lina fable 8 kim juniper 15 hana fable 12 gus cobalt 25 eli amber 11 eli amber 16 hana harbor 8 lina ember 17 gus delta
8
21 gus fable 21 hana birch 7 bruno birch 1 eli juniper 1 jules grove 15 ivan fable 15 eli ember 26 ivan amber
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023257
qwen/qwen3.7-plus
awkweave-0023258
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
bruno 7 cobalt hana 18 ember gus 30 indigo alice 5 ember kim 6 cobalt kim 3 delta kim 3 juniper chen 25 cobalt farah 4 juniper
30
bruno 17 ember jules 20 indigo gus 25 ember dina 6 grove bruno 23 harbor jules 16 fable kim 1 fable gus 16 birch farah 18 grove chen 20 delta
25
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023258-p1
Identify and output the maximum numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
bruno 7 cobalt hana 18 ember gus 30 indigo alice 5 ember kim 6 cobalt kim 3 delta kim 3 juniper chen 25 cobalt farah 4 juniper
30
bruno 17 ember jules 20 indigo gus 25 ember dina 6 grove bruno 23 harbor jules 16 fable kim 1 fable gus 16 birch farah 18 grove chen 20 delta
25
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023258
qwen/qwen3.7-plus
awkweave-0023259
Count all input records and print the total.
END{print NR}
alice 60 chen 78 eli 62 alice 27 alice 17 gus 18 gus 116 dina 66
8
eli 119 hana 65 eli 105 gus 104 kim 110 gus 44 eli 110 lina 63 dina 45 bruno 38
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023259-p1
Count the total number of input records and print the result.
END{print NR}
alice 60 chen 78 eli 62 alice 27 alice 17 gus 18 gus 116 dina 66
8
eli 119 hana 65 eli 105 gus 104 kim 110 gus 44 eli 110 lina 63 dina 45 bruno 38
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023259
qwen/qwen3.7-plus
awkweave-0023260
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
jules birch 28 chen harbor 66 eli cobalt 71 lina birch 66 eli juniper 37 kim birch 100 gus juniper 111 gus juniper 111 gus fable 33 farah ember 9
jules birch 28 chen harbor 66 eli cobalt 71 lina birch 66 eli juniper 37 kim birch 100 gus juniper 111 gus fable 33 farah ember 9
dina harbor 75 dina indigo 5 alice cobalt 34 hana indigo 62 gus amber 39 gus grove 100 lina birch 58 dina harbor 75 dina birch 70 lina birch 11
dina harbor 75 dina indigo 5 alice cobalt 34 hana indigo 62 gus amber 39 gus grove 100 lina birch 58 dina birch 70 lina birch 11
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023260-p1
Eliminate exact duplicate lines while maintaining the original sequence and keeping the first instance.
!seen[$0]++
jules birch 28 chen harbor 66 eli cobalt 71 lina birch 66 eli juniper 37 kim birch 100 gus juniper 111 gus juniper 111 gus fable 33 farah ember 9
jules birch 28 chen harbor 66 eli cobalt 71 lina birch 66 eli juniper 37 kim birch 100 gus juniper 111 gus fable 33 farah ember 9
dina harbor 75 dina indigo 5 alice cobalt 34 hana indigo 62 gus amber 39 gus grove 100 lina birch 58 dina harbor 75 dina birch 70 lina birch 11
dina harbor 75 dina indigo 5 alice cobalt 34 hana indigo 62 gus amber 39 gus grove 100 lina birch 58 dina birch 70 lina birch 11
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023260
qwen/qwen3.7-plus
awkweave-0023261
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
hana delta 80 alice amber 107 gus juniper 115 gus birch 111 lina juniper 49 eli harbor 59
hana delta 80 alice amber 107 gus juniper 115 lina juniper 49 eli harbor 59
dina ember 21 kim indigo 79 gus birch 18 lina grove 45 alice indigo 88 alice grove 92 chen juniper 1
dina ember 21 kim indigo 79 gus birch 18 lina grove 45 alice indigo 88 chen juniper 1
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023261-p1
Retain only the initial line for every unique value found in column 1, ensuring the input order is preserved.
!seen[$1]++
hana delta 80 alice amber 107 gus juniper 115 gus birch 111 lina juniper 49 eli harbor 59
hana delta 80 alice amber 107 gus juniper 115 lina juniper 49 eli harbor 59
dina ember 21 kim indigo 79 gus birch 18 lina grove 45 alice indigo 88 alice grove 92 chen juniper 1
dina ember 21 kim indigo 79 gus birch 18 lina grove 45 alice indigo 88 chen juniper 1
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023261
qwen/qwen3.7-plus
awkweave-0023262
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 19 harbor hana 26 amber hana 23 harbor ivan 26 amber jules 25 grove alice 6 fable chen 15 fable bruno 11 amber
ivan 19 hana 45 hana 68 ivan 94 jules 119 alice 125 chen 140 bruno 151
ivan 1 grove ivan 11 harbor lina 2 cobalt bruno 13 delta gus 25 indigo alice 5 delta
ivan 1 ivan 12 lina 14 bruno 27 gus 52 alice 57
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023262-p1
Output column 1 alongside the cumulative total of column 2 for each record, using a space as the delimiter.
{s+=$2;print $1,s}
ivan 19 harbor hana 26 amber hana 23 harbor ivan 26 amber jules 25 grove alice 6 fable chen 15 fable bruno 11 amber
ivan 19 hana 45 hana 68 ivan 94 jules 119 alice 125 chen 140 bruno 151
ivan 1 grove ivan 11 harbor lina 2 cobalt bruno 13 delta gus 25 indigo alice 5 delta
ivan 1 ivan 12 lina 14 bruno 27 gus 52 alice 57
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023262
qwen/qwen3.7-plus
awkweave-0023263
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
chen 6 6 indigo hana 2 6 indigo farah 24 1 indigo jules 23 25 amber jules 20 26 amber alice 6 23 grove gus 4 29 juniper dina 27 30 indigo eli 4 8 birch
chen 12 hana 8 farah 25 jules 48 jules 46 alice 29 gus 33 dina 57 eli 12
alice 19 13 ember kim 27 6 indigo eli 8 14 amber lina 10 19 harbor bruno 12 12 birch eli 26 4 amber chen 16 26 amber farah 21 4 birch
alice 32 kim 33 eli 22 lina 29 bruno 24 eli 30 chen 42 farah 25
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023263-p1
For each row, display field 1 followed by the combined sum of fields 2 and 3.
{print $1,$2+$3}
chen 6 6 indigo hana 2 6 indigo farah 24 1 indigo jules 23 25 amber jules 20 26 amber alice 6 23 grove gus 4 29 juniper dina 27 30 indigo eli 4 8 birch
chen 12 hana 8 farah 25 jules 48 jules 46 alice 29 gus 33 dina 57 eli 12
alice 19 13 ember kim 27 6 indigo eli 8 14 amber lina 10 19 harbor bruno 12 12 birch eli 26 4 amber chen 16 26 amber farah 21 4 birch
alice 32 kim 33 eli 22 lina 29 bruno 24 eli 30 chen 42 farah 25
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023263
qwen/qwen3.7-plus
awkweave-0023264
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
alice 28 kim 6 hana 10 ivan 24 dina 5 lina 10 bruno 15
alice pass kim fail hana fail ivan fail dina fail lina fail bruno fail
gus 2 ivan 11 lina 8 chen 3 jules 23 hana 7 gus 30 hana 8 kim 21 ivan 5
gus fail ivan fail lina fail chen fail jules fail hana fail gus pass hana fail kim fail ivan fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023264-p1
Output column 1 with 'pass' if column 2 is 25 or greater; otherwise, output 'fail'.
{print $1,($2>=25?"pass":"fail")}
alice 28 kim 6 hana 10 ivan 24 dina 5 lina 10 bruno 15
alice pass kim fail hana fail ivan fail dina fail lina fail bruno fail
gus 2 ivan 11 lina 8 chen 3 jules 23 hana 7 gus 30 hana 8 kim 21 ivan 5
gus fail ivan fail lina fail chen fail jules fail hana fail gus pass hana fail kim fail ivan fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023264
qwen/qwen3.7-plus
awkweave-0023265
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
hana cobalt 101 alice harbor 69 jules fable 1 kim juniper 73 farah birch 75 dina ember 97
COBALT HARBOR FABLE JUNIPER BIRCH EMBER
lina cobalt 117 dina birch 119 farah indigo 60 bruno birch 2 dina fable 12 lina indigo 37 dina ember 30 kim fable 49 jules ember 99
COBALT BIRCH INDIGO BIRCH FABLE INDIGO EMBER FABLE EMBER
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023265-p1
Transform column 2 to uppercase letters and output only that specific column.
{print toupper($2)}
hana cobalt 101 alice harbor 69 jules fable 1 kim juniper 73 farah birch 75 dina ember 97
COBALT HARBOR FABLE JUNIPER BIRCH EMBER
lina cobalt 117 dina birch 119 farah indigo 60 bruno birch 2 dina fable 12 lina indigo 37 dina ember 30 kim fable 49 jules ember 99
COBALT BIRCH INDIGO BIRCH FABLE INDIGO EMBER FABLE EMBER
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023265
qwen/qwen3.7-plus
awkweave-0023266
From column 1, print 4 characters starting at character 3.
{print substr($1,3,4)}
indigo 37 indigo 42 grove 55 grove 107 juniper 66 amber 71 harbor 19 delta 9 ember 38 grove 46
digo digo ove ove nipe ber rbor lta ber ove
indigo 78 grove 48 harbor 43 amber 116 indigo 67 juniper 67 indigo 88 cobalt 3
digo ove rbor ber digo nipe digo balt
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023266-p1
From column 1, print 4 characters starting at character 3.
{print substr($1,3,4)}
indigo 37 indigo 42 grove 55 grove 107 juniper 66 amber 71 harbor 19 delta 9 ember 38 grove 46
digo digo ove ove nipe ber rbor lta ber ove
indigo 78 grove 48 harbor 43 amber 116 indigo 67 juniper 67 indigo 88 cobalt 3
digo ove rbor ber digo nipe digo balt
substring
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0023266
qwen/qwen3.7-plus
awkweave-0023267
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
indigo_cobalt 54 harbor_ember 6 fable_delta 3 juniper_grove 49 cobalt_birch 51 birch_harbor 55 juniper_amber 112 cobalt_harbor 120
indigo cobalt harbor ember fable delta juniper grove cobalt birch birch harbor juniper amber cobalt harbor
juniper_indigo 96 grove_cobalt 92 indigo_amber 97 ember_juniper 6 grove_birch 27 harbor_juniper 71 juniper_fable 90
juniper indigo grove cobalt indigo amber ember juniper grove birch harbor juniper juniper fable
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023267-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
indigo_cobalt 54 harbor_ember 6 fable_delta 3 juniper_grove 49 cobalt_birch 51 birch_harbor 55 juniper_amber 112 cobalt_harbor 120
indigo cobalt harbor ember fable delta juniper grove cobalt birch birch harbor juniper amber cobalt harbor
juniper_indigo 96 grove_cobalt 92 indigo_amber 97 ember_juniper 6 grove_birch 27 harbor_juniper 71 juniper_fable 90
juniper indigo grove cobalt indigo amber ember juniper grove birch harbor juniper juniper fable
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023267
qwen/qwen3.7-plus
awkweave-0023268
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 ember 6 paused hana amber 7 failed kim ember 100 ready dina juniper 47 failed eli grove 8 paused gus fable 21 paused
paused 6 ember hana failed 7 amber hana ready 100 ember kim failed 47 juniper dina paused 8 grove eli paused 21 fable gus
dina juniper 22 ready alice juniper 62 pending hana juniper 97 active hana grove 8 paused chen delta 103 ready lina indigo 19 pending dina harbor 93 pending eli cobalt 44 pending
ready 22 juniper dina pending 62 juniper alice active 97 juniper hana paused 8 grove hana ready 103 delta chen pending 19 indigo lina pending 93 harbor dina pending 44 cobalt eli
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023268-p1
Invert the sequence of fields for every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
hana ember 6 paused hana amber 7 failed kim ember 100 ready dina juniper 47 failed eli grove 8 paused gus fable 21 paused
paused 6 ember hana failed 7 amber hana ready 100 ember kim failed 47 juniper dina paused 8 grove eli paused 21 fable gus
dina juniper 22 ready alice juniper 62 pending hana juniper 97 active hana grove 8 paused chen delta 103 ready lina indigo 19 pending dina harbor 93 pending eli cobalt 44 pending
ready 22 juniper dina pending 62 juniper alice active 97 juniper hana paused 8 grove hana ready 103 delta chen pending 19 indigo lina pending 93 harbor dina pending 44 cobalt eli
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023268
qwen/qwen3.7-plus
awkweave-0023269
Print the number of whitespace-separated fields on each line.
{print NF}
alice indigo 102 closed dina harbor 96 paused lina fable 40 active hana birch 91 failed dina delta 5 closed farah indigo 10 failed kim juniper 17 closed bruno harbor 12 pending dina fable 87 failed
4 4 4 4 4 4 4 4 4
hana birch 63 closed kim birch 106 paused hana harbor 1 ready farah amber 118 ready gus delta 102 active jules indigo 117 closed lina fable 82 active
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023269-p1
Display the count of whitespace-delimited fields present on each line.
{print NF}
alice indigo 102 closed dina harbor 96 paused lina fable 40 active hana birch 91 failed dina delta 5 closed farah indigo 10 failed kim juniper 17 closed bruno harbor 12 pending dina fable 87 failed
4 4 4 4 4 4 4 4 4
hana birch 63 closed kim birch 106 paused hana harbor 1 ready farah amber 118 ready gus delta 102 active jules indigo 117 closed lina fable 82 active
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023269
qwen/qwen3.7-plus
awkweave-0023270
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]]}
ivan gamma 29 lina gamma 98 kim beta 29 jules alpha 54 jules alpha 16 jules gamma 31
gamma 3 beta 1 alpha 2
bruno gamma 73 gus alpha 108 alice delta 41 hana gamma 68 gus delta 57 chen delta 12 chen gamma 35 hana beta 71
gamma 3 alpha 1 delta 3 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023270-p1
Tally the number of records for each distinct value in column 2, 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]]}
ivan gamma 29 lina gamma 98 kim beta 29 jules alpha 54 jules alpha 16 jules gamma 31
gamma 3 beta 1 alpha 2
bruno gamma 73 gus alpha 108 alice delta 41 hana gamma 68 gus delta 57 chen delta 12 chen gamma 35 hana beta 71
gamma 3 alpha 1 delta 3 beta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023270
qwen/qwen3.7-plus
awkweave-0023271
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]]}
chen gamma 28 ivan beta 12 hana delta 8 kim delta 27 bruno gamma 6 lina gamma 19 alice gamma 29 lina beta 19 chen beta 27
gamma 82 beta 58 delta 35
chen alpha 11 jules alpha 18 hana alpha 21 lina alpha 30 gus beta 23 lina alpha 16 kim beta 4 lina alpha 24
alpha 120 beta 27
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null