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-0018660-p1
Output the first column and the cumulative total of the second column for each record, separated by a space.
{s+=$2;print $1,s}
gus 7 ember chen 12 amber gus 19 grove dina 4 juniper lina 25 ember gus 22 cobalt bruno 17 indigo chen 2 indigo gus 22 grove hana 10 ember
gus 7 chen 19 gus 38 dina 42 lina 67 gus 89 bruno 106 chen 108 gus 130 hana 140
bruno 1 juniper farah 1 harbor farah 23 grove eli 11 ember gus 13 fable jules 29 grove chen 19 birch eli 13 juniper
bruno 1 farah 2 farah 25 eli 36 gus 49 jules 78 chen 97 eli 110
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018660
qwen/qwen3.7-plus
awkweave-0018661
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
eli 14 17 harbor bruno 19 29 juniper gus 15 12 harbor kim 12 23 juniper jules 24 29 amber lina 3 13 indigo
eli 31 bruno 48 gus 27 kim 35 jules 53 lina 16
farah 5 14 harbor dina 16 19 cobalt hana 1 1 cobalt hana 25 22 ember hana 11 9 indigo eli 27 21 ember eli 10 2 harbor lina 21 30 ember dina 2 17 grove
farah 19 dina 35 hana 2 hana 47 hana 20 eli 48 eli 12 lina 51 dina 19
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018661-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
eli 14 17 harbor bruno 19 29 juniper gus 15 12 harbor kim 12 23 juniper jules 24 29 amber lina 3 13 indigo
eli 31 bruno 48 gus 27 kim 35 jules 53 lina 16
farah 5 14 harbor dina 16 19 cobalt hana 1 1 cobalt hana 25 22 ember hana 11 9 indigo eli 27 21 ember eli 10 2 harbor lina 21 30 ember dina 2 17 grove
farah 19 dina 35 hana 2 hana 47 hana 20 eli 48 eli 12 lina 51 dina 19
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018661
qwen/qwen3.7-plus
awkweave-0018662
Print column 1 and pass when column 2 is at least 27; otherwise print fail.
{print $1,($2>=27?"pass":"fail")}
eli 9 kim 22 farah 17 bruno 24 lina 11 kim 18 alice 14 bruno 23 farah 11 ivan 15
eli fail kim fail farah fail bruno fail lina fail kim fail alice fail bruno fail farah fail ivan fail
farah 13 kim 17 jules 6 gus 29 alice 14 dina 2 kim 13 hana 23
farah fail kim fail jules fail gus pass alice fail dina fail kim fail hana fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018662-p1
Print the first column; output 'pass' if the second column is greater than or equal to 27, otherwise output 'fail'.
{print $1,($2>=27?"pass":"fail")}
eli 9 kim 22 farah 17 bruno 24 lina 11 kim 18 alice 14 bruno 23 farah 11 ivan 15
eli fail kim fail farah fail bruno fail lina fail kim fail alice fail bruno fail farah fail ivan fail
farah 13 kim 17 jules 6 gus 29 alice 14 dina 2 kim 13 hana 23
farah fail kim fail jules fail gus pass alice fail dina fail kim fail hana fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018662
qwen/qwen3.7-plus
awkweave-0018663
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
alice cobalt 108 jules juniper 113 jules cobalt 41 farah grove 51 ivan grove 104 bruno indigo 11
ALICE JULES JULES FARAH IVAN BRUNO
ivan fable 118 bruno amber 71 eli amber 77 farah delta 71 eli grove 78 ivan cobalt 32 farah birch 57 jules harbor 36 chen birch 80
IVAN BRUNO ELI FARAH ELI IVAN FARAH JULES CHEN
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018663-p1
Transform the first column to uppercase and print only that column.
{print toupper($1)}
alice cobalt 108 jules juniper 113 jules cobalt 41 farah grove 51 ivan grove 104 bruno indigo 11
ALICE JULES JULES FARAH IVAN BRUNO
ivan fable 118 bruno amber 71 eli amber 77 farah delta 71 eli grove 78 ivan cobalt 32 farah birch 57 jules harbor 36 chen birch 80
IVAN BRUNO ELI FARAH ELI IVAN FARAH JULES CHEN
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018663
qwen/qwen3.7-plus
awkweave-0018664
From column 1, print 4 characters starting at character 1.
{print substr($1,1,4)}
cobalt 112 harbor 0 delta 1 amber 38 ember 86 harbor 38 ember 39 juniper 93 indigo 53 indigo 52
coba harb delt ambe embe harb embe juni indi indi
ember 61 harbor 37 harbor 71 ember 70 delta 66 birch 62
embe harb harb embe delt birc
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018664-p1
Extract and print the first 4 characters from the first column.
{print substr($1,1,4)}
cobalt 112 harbor 0 delta 1 amber 38 ember 86 harbor 38 ember 39 juniper 93 indigo 53 indigo 52
coba harb delt ambe embe harb embe juni indi indi
ember 61 harbor 37 harbor 71 ember 70 delta 66 birch 62
embe harb harb embe delt birc
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018664
qwen/qwen3.7-plus
awkweave-0018665
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
amber_ember 68 cobalt_indigo 92 harbor_juniper 18 delta_delta 24 delta_indigo 35 fable_harbor 30
amber ember cobalt indigo harbor juniper delta delta delta indigo fable harbor
fable_indigo 96 birch_cobalt 95 ember_indigo 29 indigo_grove 71 delta_harbor 109 grove_amber 13 indigo_cobalt 45 cobalt_juniper 20 fable_delta 19
fable indigo birch cobalt ember indigo indigo grove delta harbor grove amber indigo cobalt cobalt juniper fable delta
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018665-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
amber_ember 68 cobalt_indigo 92 harbor_juniper 18 delta_delta 24 delta_indigo 35 fable_harbor 30
amber ember cobalt indigo harbor juniper delta delta delta indigo fable harbor
fable_indigo 96 birch_cobalt 95 ember_indigo 29 indigo_grove 71 delta_harbor 109 grove_amber 13 indigo_cobalt 45 cobalt_juniper 20 fable_delta 19
fable indigo birch cobalt ember indigo indigo grove delta harbor grove amber indigo cobalt cobalt juniper fable delta
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018665
qwen/qwen3.7-plus
awkweave-0018666
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)}
dina birch 98 active eli juniper 43 closed kim harbor 87 active lina grove 32 pending gus juniper 118 ready hana ember 30 pending hana grove 84 failed alice ember 75 pending
active 98 birch dina closed 43 juniper eli active 87 harbor kim pending 32 grove lina ready 118 juniper gus pending 30 ember hana failed 84 grove hana pending 75 ember alice
ivan delta 68 pending jules amber 10 paused gus amber 14 pending gus delta 97 ready ivan juniper 85 pending alice birch 74 active hana cobalt 1 pending
pending 68 delta ivan paused 10 amber jules pending 14 amber gus ready 97 delta gus pending 85 juniper ivan active 74 birch alice pending 1 cobalt hana
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018666-p1
Reverse the sequence of fields on every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
dina birch 98 active eli juniper 43 closed kim harbor 87 active lina grove 32 pending gus juniper 118 ready hana ember 30 pending hana grove 84 failed alice ember 75 pending
active 98 birch dina closed 43 juniper eli active 87 harbor kim pending 32 grove lina ready 118 juniper gus pending 30 ember hana failed 84 grove hana pending 75 ember alice
ivan delta 68 pending jules amber 10 paused gus amber 14 pending gus delta 97 ready ivan juniper 85 pending alice birch 74 active hana cobalt 1 pending
pending 68 delta ivan paused 10 amber jules pending 14 amber gus ready 97 delta gus pending 85 juniper ivan active 74 birch alice pending 1 cobalt hana
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018666
qwen/qwen3.7-plus
awkweave-0018667
Print the number of whitespace-separated fields on each line.
{print NF}
bruno juniper 67 paused kim indigo 87 paused jules indigo 111 pending gus cobalt 101 pending lina indigo 51 ready ivan amber 97 pending jules harbor 92 failed farah birch 47 active
4 4 4 4 4 4 4 4
dina birch 20 failed alice juniper 100 failed dina fable 92 closed hana indigo 80 failed ivan delta 102 closed gus harbor 38 pending ivan harbor 85 closed
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018667-p1
Print the count of whitespace-delimited fields for each line.
{print NF}
bruno juniper 67 paused kim indigo 87 paused jules indigo 111 pending gus cobalt 101 pending lina indigo 51 ready ivan amber 97 pending jules harbor 92 failed farah birch 47 active
4 4 4 4 4 4 4 4
dina birch 20 failed alice juniper 100 failed dina fable 92 closed hana indigo 80 failed ivan delta 102 closed gus harbor 38 pending ivan harbor 85 closed
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018667
qwen/qwen3.7-plus
awkweave-0018668
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
gus alpha 22 hana beta 72 jules delta 57 farah gamma 73 lina delta 110 hana delta 99 jules beta 104 kim alpha 47
alpha 2 beta 2 delta 3 gamma 1
bruno gamma 48 lina alpha 48 kim beta 83 eli gamma 102 ivan alpha 37 kim gamma 1 lina alpha 120
gamma 3 alpha 3 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018668-p1
Tally the number of records for each unique value in the second column. Output each value and its count in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
gus alpha 22 hana beta 72 jules delta 57 farah gamma 73 lina delta 110 hana delta 99 jules beta 104 kim alpha 47
alpha 2 beta 2 delta 3 gamma 1
bruno gamma 48 lina alpha 48 kim beta 83 eli gamma 102 ivan alpha 37 kim gamma 1 lina alpha 120
gamma 3 alpha 3 beta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018668
qwen/qwen3.7-plus
awkweave-0018669
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 alpha 11 ivan gamma 2 gus gamma 16 jules delta 29 lina gamma 14 dina alpha 6 lina gamma 12
alpha 17 gamma 44 delta 29
farah gamma 24 ivan gamma 20 bruno gamma 12 hana beta 15 chen delta 28 jules delta 12
gamma 56 beta 15 delta 40
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018669-p1
Calculate the sum of the third column for each group defined by the second column, printing the results in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
jules alpha 11 ivan gamma 2 gus gamma 16 jules delta 29 lina gamma 14 dina alpha 6 lina gamma 12
alpha 17 gamma 44 delta 29
farah gamma 24 ivan gamma 20 bruno gamma 12 hana beta 15 chen delta 28 jules delta 12
gamma 56 beta 15 delta 40
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018669
qwen/qwen3.7-plus
awkweave-0018670
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 fable 50 gamma fable 16 alpha fable 19 alpha birch 12 gamma birch 33 gamma amber 107 beta delta 7 beta cobalt 104
beta 3 gamma 3 alpha 2
beta amber 60 beta ember 31 beta delta 105 gamma indigo 64 gamma birch 64 delta harbor 77
beta 3 gamma 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018670-p1
List each duplicate value from the first column along with its occurrence count, ordered by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta fable 50 gamma fable 16 alpha fable 19 alpha birch 12 gamma birch 33 gamma amber 107 beta delta 7 beta cobalt 104
beta 3 gamma 3 alpha 2
beta amber 60 beta ember 31 beta delta 105 gamma indigo 64 gamma birch 64 delta harbor 77
beta 3 gamma 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018670
qwen/qwen3.7-plus
awkweave-0018671
The first row is a header. Print the score column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
note region score state r001 alice 27 ready r002 ivan 26 paused r003 alice 7 paused r004 lina 11 closed r005 eli 7 active r006 bruno 8 pending r007 eli 19 pending r008 kim 29 failed
27 26 7 11 7 8 19 29
note region score state r001 jules 5 paused r002 lina 27 active r003 lina 7 active r004 alice 5 closed r005 alice 5 paused r006 lina 25 failed r007 hana 16 ready
5 27 7 5 5 25 16
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018671-p1
Skip the header row and print the values from the score column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
note region score state r001 alice 27 ready r002 ivan 26 paused r003 alice 7 paused r004 lina 11 closed r005 eli 7 active r006 bruno 8 pending r007 eli 19 pending r008 kim 29 failed
27 26 7 11 7 8 19 29
note region score state r001 jules 5 paused r002 lina 27 active r003 lina 7 active r004 alice 5 closed r005 alice 5 paused r006 lina 25 failed r007 hana 16 ready
5 27 7 5 5 25 16
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018671
qwen/qwen3.7-plus
awkweave-0018672
The first row is a header. Print display_name for data rows whose score is greater than 13.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>13{print $h["display_name"]}
record_id display_name score state r001 hana 8 failed r002 eli 24 ready r003 eli 26 paused r004 farah 12 ready r005 jules 29 active r006 farah 2 pending r007 chen 24 failed r008 chen 5 ready r009 ivan 3 paused
eli eli jules chen
record_id display_name score state r001 chen 6 pending r002 ivan 22 paused r003 gus 19 paused r004 hana 8 failed r005 gus 28 pending r006 hana 7 closed
ivan gus gus
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018672-p1
Skip the header row and output the display_name field for all records where the score exceeds 13.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>13{print $h["display_name"]}
record_id display_name score state r001 hana 8 failed r002 eli 24 ready r003 eli 26 paused r004 farah 12 ready r005 jules 29 active r006 farah 2 pending r007 chen 24 failed r008 chen 5 ready r009 ivan 3 paused
eli eli jules chen
record_id display_name score state r001 chen 6 pending r002 ivan 22 paused r003 gus 19 paused r004 hana 8 failed r005 gus 28 pending r006 hana 7 closed
ivan gus gus
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018672
qwen/qwen3.7-plus
awkweave-0018673
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
alice 20 closed chen 30 active lina 18 active lina 30 pending kim 6 active dina 25 active
alice chen lina lina kim dina
dina 2 active lina 28 pending farah 15 failed bruno 27 ready gus 17 paused gus 7 active alice 21 failed kim 28 active gus 16 failed chen 30 active
dina lina farah bruno gus gus alice kim gus chen
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018673-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
alice 20 closed chen 30 active lina 18 active lina 30 pending kim 6 active dina 25 active
alice chen lina lina kim dina
dina 2 active lina 28 pending farah 15 failed bruno 27 ready gus 17 paused gus 7 active alice 21 failed kim 28 active gus 16 failed chen 30 active
dina lina farah bruno gus gus alice kim gus chen
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0018673
qwen/qwen3.7-plus
awkweave-0018674
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 13.
BEGIN{FS=OFS=","}$2>13{print $1}
hana,27,pending lina,23,ready kim,11,ready gus,7,pending dina,10,failed kim,16,paused hana,5,ready
hana lina kim
alice,4,ready alice,10,paused dina,2,closed alice,5,paused eli,6,paused lina,19,paused jules,3,failed gus,2,closed kim,17,pending gus,14,failed
lina kim gus
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018674-p1
For simple CSV data without quoted commas, output the first column whenever the second column is greater than 13.
BEGIN{FS=OFS=","}$2>13{print $1}
hana,27,pending lina,23,ready kim,11,ready gus,7,pending dina,10,failed kim,16,paused hana,5,ready
hana lina kim
alice,4,ready alice,10,paused dina,2,closed alice,5,paused eli,6,paused lina,19,paused jules,3,failed gus,2,closed kim,17,pending gus,14,failed
lina kim gus
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018674
qwen/qwen3.7-plus
awkweave-0018675
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
gus fable 49 kim indigo 59 gus juniper 8 alice ember 75 gus birch 91 chen birch 52 dina harbor 103 eli ember 110 alice harbor 109 bruno amber 52
gus fable 49 kim indigo 59 gus juniper 8 alice ember 75 gus birch 91 chen birch 52 dina harbor 103 eli ember 110 alice harbor 109 bruno amber 52
farah cobalt 99 ivan harbor 58 gus ember 94 bruno delta 56 ivan ember 76 bruno ember 53
farah cobalt 99 ivan harbor 58 gus ember 94 bruno delta 56 ivan ember 76 bruno ember 53
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018675-p1
Remove leading and trailing whitespace, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
gus fable 49 kim indigo 59 gus juniper 8 alice ember 75 gus birch 91 chen birch 52 dina harbor 103 eli ember 110 alice harbor 109 bruno amber 52
gus fable 49 kim indigo 59 gus juniper 8 alice ember 75 gus birch 91 chen birch 52 dina harbor 103 eli ember 110 alice harbor 109 bruno amber 52
farah cobalt 99 ivan harbor 58 gus ember 94 bruno delta 56 ivan ember 76 bruno ember 53
farah cobalt 99 ivan harbor 58 gus ember 94 bruno delta 56 ivan ember 76 bruno ember 53
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018675
qwen/qwen3.7-plus
awkweave-0018676
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
hana indigo 65 ready bruno juniper 9 ready hana birch 120 paused farah fable 6 pending bruno birch 4 paused kim harbor 24 closed lina amber 36 pending ivan delta 20 pending
bruno juniper 9 ready
kim amber 96 failed chen juniper 95 ready alice harbor 25 active jules ember 117 failed eli delta 50 ready farah delta 85 failed
alice harbor 25 active
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018676-p1
Identify and output the longest line from the input; if multiple lines share the maximum length, select the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
hana indigo 65 ready bruno juniper 9 ready hana birch 120 paused farah fable 6 pending bruno birch 4 paused kim harbor 24 closed lina amber 36 pending ivan delta 20 pending
bruno juniper 9 ready
kim amber 96 failed chen juniper 95 ready alice harbor 25 active jules ember 117 failed eli delta 50 ready farah delta 85 failed
alice harbor 25 active
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018676
qwen/qwen3.7-plus
awkweave-0018677
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
hana 42 kim 88 gus 94 chen 79 ivan 58 hana 40 eli 120 gus 37 dina 86 lina 4
kim 88 chen 79 hana 40 gus 37 lina 4
chen 11 jules 51 ivan 55 ivan 61 lina 52 hana 34 gus 91 jules 108 eli 115 farah 94
jules 51 ivan 61 hana 34 jules 108 farah 94
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018677-p1
Output every second line of the input, beginning with line 2 (i.e., lines 2, 4, 6, etc.).
NR%2==0
hana 42 kim 88 gus 94 chen 79 ivan 58 hana 40 eli 120 gus 37 dina 86 lina 4
kim 88 chen 79 hana 40 gus 37 lina 4
chen 11 jules 51 ivan 55 ivan 61 lina 52 hana 34 gus 91 jules 108 eli 115 farah 94
jules 51 ivan 61 hana 34 jules 108 farah 94
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018677
qwen/qwen3.7-plus
awkweave-0018678
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
alpha delta 6 gamma birch 81 alpha juniper 13 beta amber 29 delta juniper 15 beta cobalt 108 delta delta 57 gamma delta 29 beta delta 38
4
gamma indigo 61 beta amber 120 delta fable 81 delta harbor 40 gamma juniper 39 beta fable 81
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018678-p1
Calculate the number of unique values in the first column and print only that total count.
{if(!seen[$1]++)n++}END{print n+0}
alpha delta 6 gamma birch 81 alpha juniper 13 beta amber 29 delta juniper 15 beta cobalt 108 delta delta 57 gamma delta 29 beta delta 38
4
gamma indigo 61 beta amber 120 delta fable 81 delta harbor 40 gamma juniper 39 beta fable 81
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018678
qwen/qwen3.7-plus
awkweave-0018679
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 20 0 eli 3 20 eli 25 15 alice 12 26 eli 30 3 ivan 8 24
eli 0.15 eli 1.67 alice 0.46 eli 10.00 ivan 0.33
jules 22 0 dina 27 13 eli 9 1 dina 22 1 bruno 17 27 chen 10 7 eli 11 7 jules 11 14 jules 29 8
dina 2.08 eli 9.00 dina 22.00 bruno 0.63 chen 1.43 eli 1.57 jules 0.79 jules 3.62
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018679-p1
For each row, output the first column and the result of dividing the second column by the third (formatted to two decimal places), omitting any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
eli 20 0 eli 3 20 eli 25 15 alice 12 26 eli 30 3 ivan 8 24
eli 0.15 eli 1.67 alice 0.46 eli 10.00 ivan 0.33
jules 22 0 dina 27 13 eli 9 1 dina 22 1 bruno 17 27 chen 10 7 eli 11 7 jules 11 14 jules 29 8
dina 2.08 eli 9.00 dina 22.00 bruno 0.63 chen 1.43 eli 1.57 jules 0.79 jules 3.62
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018679
qwen/qwen3.7-plus
awkweave-0018680
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]}
dina juniper 24 farah cobalt 12 eli indigo 25 alice harbor 29 alice amber 19 gus birch 12 lina grove 9 farah grove 29 chen birch 7
alice harbor 29 farah grove 29 eli indigo 25
hana delta 27 farah delta 18 eli delta 20 gus cobalt 15 dina grove 30 alice cobalt 30
dina grove 30 alice cobalt 30 hana delta 27
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018680-p1
Output the top three records based on 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]}
dina juniper 24 farah cobalt 12 eli indigo 25 alice harbor 29 alice amber 19 gus birch 12 lina grove 9 farah grove 29 chen birch 7
alice harbor 29 farah grove 29 eli indigo 25
hana delta 27 farah delta 18 eli delta 20 gus cobalt 15 dina grove 30 alice cobalt 30
dina grove 30 alice cobalt 30 hana delta 27
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018680
qwen/qwen3.7-plus
awkweave-0018681
Print column 5 followed by column 1 for every record.
{print $5, $1}
pending 7 indigo 43 amber cobalt ready 47 harbor 85 harbor ember active 114 amber 33 cobalt ember paused 13 juniper 1 grove grove ready 71 juniper 79 birch cobalt paused 24 amber 26 grove indigo pending 114 amber 22 harbor grove ready 72 fable 13 grove juniper failed 43 amber 98 harbor grove
amber pending harbor ready cobalt active grove paused birch ready grove paused harbor pending grove ready harbor failed
paused 76 birch 22 amber delta ready 31 birch 110 indigo fable ready 8 fable 7 indigo birch active 80 ember 62 grove birch closed 94 cobalt 2 juniper delta closed 102 ember 36 birch harbor closed 92 harbor 49 cobalt cobalt closed 43 ember 19 birch fable
amber paused indigo ready indigo ready grove active juniper closed birch closed cobalt closed birch closed
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018681-p1
For every record, print the fifth column followed by the first column.
{print $5, $1}
pending 7 indigo 43 amber cobalt ready 47 harbor 85 harbor ember active 114 amber 33 cobalt ember paused 13 juniper 1 grove grove ready 71 juniper 79 birch cobalt paused 24 amber 26 grove indigo pending 114 amber 22 harbor grove ready 72 fable 13 grove juniper failed 43 amber 98 harbor grove
amber pending harbor ready cobalt active grove paused birch ready grove paused harbor pending grove ready harbor failed
paused 76 birch 22 amber delta ready 31 birch 110 indigo fable ready 8 fable 7 indigo birch active 80 ember 62 grove birch closed 94 cobalt 2 juniper delta closed 102 ember 36 birch harbor closed 92 harbor 49 cobalt cobalt closed 43 ember 19 birch fable
amber paused indigo ready indigo ready grove active juniper closed birch closed cobalt closed birch closed
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018681
qwen/qwen3.7-plus
awkweave-0018682
Print the last field of every input line.
{print $NF}
ready harbor chen hana 83 grove ready cobalt farah chen 21 amber active cobalt lina alice 42 grove active fable kim kim 32 harbor pending cobalt bruno gus 103 amber pending birch hana gus 74 delta failed delta dina farah 64 fable paused birch jules dina 47 birch failed amber lina gus 108 delta
grove amber grove harbor amber delta fable birch delta
ready indigo kim ivan 14 harbor active ember eli hana 32 indigo closed birch hana jules 33 cobalt pending fable dina hana 1 cobalt pending cobalt kim lina 74 cobalt closed indigo eli bruno 59 cobalt paused indigo dina alice 86 fable
harbor indigo cobalt cobalt cobalt cobalt fable
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018682-p1
Extract and print the final field from each line of input.
{print $NF}
ready harbor chen hana 83 grove ready cobalt farah chen 21 amber active cobalt lina alice 42 grove active fable kim kim 32 harbor pending cobalt bruno gus 103 amber pending birch hana gus 74 delta failed delta dina farah 64 fable paused birch jules dina 47 birch failed amber lina gus 108 delta
grove amber grove harbor amber delta fable birch delta
ready indigo kim ivan 14 harbor active ember eli hana 32 indigo closed birch hana jules 33 cobalt pending fable dina hana 1 cobalt pending cobalt kim lina 74 cobalt closed indigo eli bruno 59 cobalt paused indigo dina alice 86 fable
harbor indigo cobalt cobalt cobalt cobalt fable
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018682
qwen/qwen3.7-plus
awkweave-0018683
Print the complete records where column 2 is greater than 68.
$2 > 68
grove 49 chen fable 35 chen juniper 100 eli cobalt 97 eli birch 105 hana fable 94 lina amber 34 hana indigo 48 dina cobalt 72 jules
juniper 100 eli cobalt 97 eli birch 105 hana fable 94 lina cobalt 72 jules
harbor 12 jules fable 18 alice ember 17 hana birch 72 ivan amber 101 dina amber 39 chen indigo 21 chen
birch 72 ivan amber 101 dina
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018683-p1
Output the full records for which the value in the second column is greater than 68.
$2 > 68
grove 49 chen fable 35 chen juniper 100 eli cobalt 97 eli birch 105 hana fable 94 lina amber 34 hana indigo 48 dina cobalt 72 jules
juniper 100 eli cobalt 97 eli birch 105 hana fable 94 lina cobalt 72 jules
harbor 12 jules fable 18 alice ember 17 hana birch 72 ivan amber 101 dina amber 39 chen indigo 21 chen
birch 72 ivan amber 101 dina
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018683
qwen/qwen3.7-plus
awkweave-0018684
Show whole lines whose 3rd field is between 3 and 26, inclusive.
$3 >= 3 && $3 <= 26
juniper harbor 11 alice cobalt cobalt 1 chen birch harbor 1 farah birch ember 15 alice harbor delta 23 ivan grove birch 17 farah amber amber 28 bruno
juniper harbor 11 alice birch ember 15 alice harbor delta 23 ivan grove birch 17 farah
grove delta 5 kim grove birch 7 chen juniper cobalt 13 ivan fable indigo 13 alice fable grove 4 bruno fable indigo 9 gus amber birch 28 eli
grove delta 5 kim grove birch 7 chen juniper cobalt 13 ivan fable indigo 13 alice fable grove 4 bruno fable indigo 9 gus
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018684-p1
Display entire lines where the third field falls within the inclusive range of 3 to 26.
$3 >= 3 && $3 <= 26
juniper harbor 11 alice cobalt cobalt 1 chen birch harbor 1 farah birch ember 15 alice harbor delta 23 ivan grove birch 17 farah amber amber 28 bruno
juniper harbor 11 alice birch ember 15 alice harbor delta 23 ivan grove birch 17 farah
grove delta 5 kim grove birch 7 chen juniper cobalt 13 ivan fable indigo 13 alice fable grove 4 bruno fable indigo 9 gus amber birch 28 eli
grove delta 5 kim grove birch 7 chen juniper cobalt 13 ivan fable indigo 13 alice fable grove 4 bruno fable indigo 9 gus
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018684
qwen/qwen3.7-plus
awkweave-0018685
Print column 1 only for rows where column 2 is exactly active.
$2 == "active"{print $1}
eli failed fable 18 eli paused birch 59 hana active juniper 12 ivan active fable 39 farah paused indigo 53 alice closed indigo 66 jules active amber 15 dina closed birch 36 farah paused harbor 40
hana ivan jules
chen failed indigo 72 gus ready amber 97 chen active ember 1 farah closed juniper 59 hana pending cobalt 92 ivan active juniper 29
chen ivan
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018685-p1
Output only the first column for rows where the second column matches 'active' exactly.
$2 == "active"{print $1}
eli failed fable 18 eli paused birch 59 hana active juniper 12 ivan active fable 39 farah paused indigo 53 alice closed indigo 66 jules active amber 15 dina closed birch 36 farah paused harbor 40
hana ivan jules
chen failed indigo 72 gus ready amber 97 chen active ember 1 farah closed juniper 59 hana pending cobalt 92 ivan active juniper 29
chen ivan
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018685
qwen/qwen3.7-plus
awkweave-0018686
Print all fields from lines where field 2 begins with WARN.
$2 ~ /^WARN/
delta WARN 99 indigo WARN 67 ember DEBUG 49 amber ERROR 94 grove WARN 15 delta ERROR 26 amber DEBUG 117
delta WARN 99 indigo WARN 67 grove WARN 15
amber WARN 17 ember ERROR 63 juniper WARN 29 juniper INFO 99 indigo WARN 2 harbor WARN 30 fable DEBUG 90 fable WARN 71 ember ERROR 73 grove WARN 57
amber WARN 17 juniper WARN 29 indigo WARN 2 harbor WARN 30 fable WARN 71 grove WARN 57
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018686-p1
Print all fields from lines where the second field starts with 'WARN'.
$2 ~ /^WARN/
delta WARN 99 indigo WARN 67 ember DEBUG 49 amber ERROR 94 grove WARN 15 delta ERROR 26 amber DEBUG 117
delta WARN 99 indigo WARN 67 grove WARN 15
amber WARN 17 ember ERROR 63 juniper WARN 29 juniper INFO 99 indigo WARN 2 harbor WARN 30 fable DEBUG 90 fable WARN 71 ember ERROR 73 grove WARN 57
amber WARN 17 juniper WARN 29 indigo WARN 2 harbor WARN 30 fable WARN 71 grove WARN 57
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018686
qwen/qwen3.7-plus
awkweave-0018687
Print every line except those containing the exact text delta.
$0 !~ /delta/
juniper 83 failed harbor 12 ready birch 3 ready juniper 105 failed delta 82 active cobalt 13 paused delta 999 active
juniper 83 failed harbor 12 ready birch 3 ready juniper 105 failed cobalt 13 paused
indigo 34 ready indigo 108 ready amber 82 active cobalt 85 pending juniper 73 paused juniper 43 active amber 102 failed ember 112 active grove 78 ready delta 999 active
indigo 34 ready indigo 108 ready amber 82 active cobalt 85 pending juniper 73 paused juniper 43 active amber 102 failed ember 112 active grove 78 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018687-p1
Output every line that does not contain the exact string 'delta'.
$0 !~ /delta/
juniper 83 failed harbor 12 ready birch 3 ready juniper 105 failed delta 82 active cobalt 13 paused delta 999 active
juniper 83 failed harbor 12 ready birch 3 ready juniper 105 failed cobalt 13 paused
indigo 34 ready indigo 108 ready amber 82 active cobalt 85 pending juniper 73 paused juniper 43 active amber 102 failed ember 112 active grove 78 ready delta 999 active
indigo 34 ready indigo 108 ready amber 82 active cobalt 85 pending juniper 73 paused juniper 43 active amber 102 failed ember 112 active grove 78 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018687
qwen/qwen3.7-plus
awkweave-0018688
Print lines 4 through 6, including both endpoints.
NR >= 4 && NR <= 6
jules grove 56 eli amber 95 hana harbor 17 bruno harbor 106 kim delta 42 gus cobalt 6 kim indigo 85 lina grove 116 chen indigo 18
bruno harbor 106 kim delta 42 gus cobalt 6
gus ember 98 jules ember 105 hana fable 92 jules grove 81 farah juniper 81 alice birch 66 alice birch 15
jules grove 81 farah juniper 81 alice birch 66
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018688-p1
Print lines 4 through 6, inclusive of both endpoints.
NR >= 4 && NR <= 6
jules grove 56 eli amber 95 hana harbor 17 bruno harbor 106 kim delta 42 gus cobalt 6 kim indigo 85 lina grove 116 chen indigo 18
bruno harbor 106 kim delta 42 gus cobalt 6
gus ember 98 jules ember 105 hana fable 92 jules grove 81 farah juniper 81 alice birch 66 alice birch 15
jules grove 81 farah juniper 81 alice birch 66
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018688
qwen/qwen3.7-plus
awkweave-0018689
Output only the first 3 records.
NR <= 3
jules 116 harbor lina 104 indigo hana 35 harbor hana 102 delta lina 20 amber ivan 31 birch farah 91 harbor eli 106 delta
jules 116 harbor lina 104 indigo hana 35 harbor
kim 59 fable chen 18 grove eli 120 birch hana 38 amber jules 117 amber dina 4 birch farah 67 indigo chen 16 juniper lina 69 birch hana 61 fable
kim 59 fable chen 18 grove eli 120 birch
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018689-p1
Output only the first three records.
NR <= 3
jules 116 harbor lina 104 indigo hana 35 harbor hana 102 delta lina 20 amber ivan 31 birch farah 91 harbor eli 106 delta
jules 116 harbor lina 104 indigo hana 35 harbor
kim 59 fable chen 18 grove eli 120 birch hana 38 amber jules 117 amber dina 4 birch farah 67 indigo chen 16 juniper lina 69 birch hana 61 fable
kim 59 fable chen 18 grove eli 120 birch
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018689
qwen/qwen3.7-plus
awkweave-0018700
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
farah 18 20 cobalt alice 9 2 amber jules 3 24 grove ivan 19 1 ember alice 20 5 indigo chen 9 27 indigo dina 30 30 grove jules 27 10 grove dina 19 4 ember bruno 23 19 juniper
farah 38 alice 11 jules 27 ivan 20 alice 25 chen 36 dina 60 jules 37 dina 23 bruno 42
alice 10 30 grove farah 18 28 harbor gus 10 13 juniper hana 6 16 juniper lina 23 9 delta gus 29 18 fable dina 4 22 delta chen 16 13 delta farah 28 18 indigo
alice 40 farah 46 gus 23 hana 22 lina 32 gus 47 dina 26 chen 29 farah 46
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018700-p1
For each row, output the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
farah 18 20 cobalt alice 9 2 amber jules 3 24 grove ivan 19 1 ember alice 20 5 indigo chen 9 27 indigo dina 30 30 grove jules 27 10 grove dina 19 4 ember bruno 23 19 juniper
farah 38 alice 11 jules 27 ivan 20 alice 25 chen 36 dina 60 jules 37 dina 23 bruno 42
alice 10 30 grove farah 18 28 harbor gus 10 13 juniper hana 6 16 juniper lina 23 9 delta gus 29 18 fable dina 4 22 delta chen 16 13 delta farah 28 18 indigo
alice 40 farah 46 gus 23 hana 22 lina 32 gus 47 dina 26 chen 29 farah 46
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018700
qwen/qwen3.7-plus
awkweave-0018701
Print column 1 and pass when column 2 is at least 22; otherwise print fail.
{print $1,($2>=22?"pass":"fail")}
farah 16 bruno 14 jules 17 lina 21 eli 23 alice 30
farah fail bruno fail jules fail lina fail eli pass alice pass
hana 22 hana 14 farah 24 jules 2 eli 29 eli 17
hana pass hana fail farah pass jules fail eli pass eli fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018701-p1
Print the first column along with 'pass' if the second column is 22 or greater; otherwise, print 'fail'.
{print $1,($2>=22?"pass":"fail")}
farah 16 bruno 14 jules 17 lina 21 eli 23 alice 30
farah fail bruno fail jules fail lina fail eli pass alice pass
hana 22 hana 14 farah 24 jules 2 eli 29 eli 17
hana pass hana fail farah pass jules fail eli pass eli fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018701
qwen/qwen3.7-plus
awkweave-0018702
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
kim ember 55 jules amber 36 jules harbor 5 gus cobalt 1 farah fable 101 dina ember 3
KIM JULES JULES GUS FARAH DINA
eli fable 71 eli grove 74 eli delta 47 alice amber 106 gus indigo 75 eli indigo 94 jules grove 49 gus harbor 20 eli fable 92
ELI ELI ELI ALICE GUS ELI JULES GUS ELI
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018702-p1
Convert the first column to uppercase and output only that column.
{print toupper($1)}
kim ember 55 jules amber 36 jules harbor 5 gus cobalt 1 farah fable 101 dina ember 3
KIM JULES JULES GUS FARAH DINA
eli fable 71 eli grove 74 eli delta 47 alice amber 106 gus indigo 75 eli indigo 94 jules grove 49 gus harbor 20 eli fable 92
ELI ELI ELI ALICE GUS ELI JULES GUS ELI
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018702
qwen/qwen3.7-plus
awkweave-0018703
From column 1, print 3 characters starting at character 2.
{print substr($1,2,3)}
birch 42 delta 2 harbor 40 harbor 67 cobalt 63 birch 111 fable 94 indigo 35
irc elt arb arb oba irc abl ndi
delta 32 delta 73 amber 42 juniper 37 delta 80 indigo 34 harbor 49 amber 3
elt elt mbe uni elt ndi arb mbe
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018703-p1
Extract and print a 3-character substring from the first column, starting at the second character.
{print substr($1,2,3)}
birch 42 delta 2 harbor 40 harbor 67 cobalt 63 birch 111 fable 94 indigo 35
irc elt arb arb oba irc abl ndi
delta 32 delta 73 amber 42 juniper 37 delta 80 indigo 34 harbor 49 amber 3
elt elt mbe uni elt ndi arb mbe
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018703
qwen/qwen3.7-plus
awkweave-0018704
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
harbor_birch 33 grove_indigo 85 harbor_birch 69 harbor_fable 21 fable_cobalt 8 fable_ember 18 harbor_harbor 72
harbor birch grove indigo harbor birch harbor fable fable cobalt fable ember harbor harbor
ember_harbor 35 ember_amber 14 fable_fable 44 grove_delta 81 juniper_cobalt 120 fable_ember 3 harbor_delta 10 delta_cobalt 50
ember harbor ember amber fable fable grove delta juniper cobalt fable ember harbor delta delta cobalt
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018704-p1
Replace all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
harbor_birch 33 grove_indigo 85 harbor_birch 69 harbor_fable 21 fable_cobalt 8 fable_ember 18 harbor_harbor 72
harbor birch grove indigo harbor birch harbor fable fable cobalt fable ember harbor harbor
ember_harbor 35 ember_amber 14 fable_fable 44 grove_delta 81 juniper_cobalt 120 fable_ember 3 harbor_delta 10 delta_cobalt 50
ember harbor ember amber fable fable grove delta juniper cobalt fable ember harbor delta delta cobalt
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018704
qwen/qwen3.7-plus
awkweave-0018705
Reverse the order of fields on every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
gus cobalt 84 failed kim indigo 119 pending chen delta 53 closed gus ember 116 pending chen cobalt 11 ready hana cobalt 61 failed bruno harbor 11 failed lina harbor 104 ready jules juniper 68 ready
failed 84 cobalt gus pending 119 indigo kim closed 53 delta chen pending 116 ember gus ready 11 cobalt chen failed 61 cobalt hana failed 11 harbor bruno ready 104 harbor lina ready 68 juniper jules
eli fable 13 paused alice amber 20 paused lina fable 30 pending eli delta 112 ready eli grove 96 active ivan fable 48 closed eli juniper 47 ready kim juniper 9 closed eli grove 84 ready dina harbor 113 pending
paused 13 fable eli paused 20 amber alice pending 30 fable lina ready 112 delta eli active 96 grove eli closed 48 fable ivan ready 47 juniper eli closed 9 juniper kim ready 84 grove eli pending 113 harbor dina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018705-p1
Reverse the order of fields on each line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
gus cobalt 84 failed kim indigo 119 pending chen delta 53 closed gus ember 116 pending chen cobalt 11 ready hana cobalt 61 failed bruno harbor 11 failed lina harbor 104 ready jules juniper 68 ready
failed 84 cobalt gus pending 119 indigo kim closed 53 delta chen pending 116 ember gus ready 11 cobalt chen failed 61 cobalt hana failed 11 harbor bruno ready 104 harbor lina ready 68 juniper jules
eli fable 13 paused alice amber 20 paused lina fable 30 pending eli delta 112 ready eli grove 96 active ivan fable 48 closed eli juniper 47 ready kim juniper 9 closed eli grove 84 ready dina harbor 113 pending
paused 13 fable eli paused 20 amber alice pending 30 fable lina ready 112 delta eli active 96 grove eli closed 48 fable ivan ready 47 juniper eli closed 9 juniper kim ready 84 grove eli pending 113 harbor dina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018705
qwen/qwen3.7-plus
awkweave-0018706
Print the number of whitespace-separated fields on each line.
{print NF}
hana cobalt 36 closed chen harbor 31 failed farah fable 84 failed hana grove 84 active kim indigo 69 closed hana delta 63 pending ivan harbor 102 paused bruno amber 74 paused dina juniper 50 failed hana juniper 1 paused
4 4 4 4 4 4 4 4 4 4
alice harbor 31 pending dina amber 34 failed jules indigo 16 failed dina amber 107 ready gus birch 103 pending chen delta 41 failed kim harbor 35 active gus grove 25 closed chen cobalt 86 failed
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018706-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
hana cobalt 36 closed chen harbor 31 failed farah fable 84 failed hana grove 84 active kim indigo 69 closed hana delta 63 pending ivan harbor 102 paused bruno amber 74 paused dina juniper 50 failed hana juniper 1 paused
4 4 4 4 4 4 4 4 4 4
alice harbor 31 pending dina amber 34 failed jules indigo 16 failed dina amber 107 ready gus birch 103 pending chen delta 41 failed kim harbor 35 active gus grove 25 closed chen cobalt 86 failed
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018706
qwen/qwen3.7-plus
awkweave-0018707
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
eli beta 99 alice alpha 108 kim alpha 56 lina beta 51 lina beta 59 ivan beta 115 ivan alpha 70 chen alpha 0 kim gamma 52 eli beta 113
beta 5 alpha 4 gamma 1
jules delta 70 lina delta 115 hana beta 47 kim beta 106 farah alpha 3 chen gamma 80 kim beta 85 lina beta 16 chen beta 46 hana alpha 44
delta 2 beta 5 alpha 2 gamma 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018707-p1
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
eli beta 99 alice alpha 108 kim alpha 56 lina beta 51 lina beta 59 ivan beta 115 ivan alpha 70 chen alpha 0 kim gamma 52 eli beta 113
beta 5 alpha 4 gamma 1
jules delta 70 lina delta 115 hana beta 47 kim beta 106 farah alpha 3 chen gamma 80 kim beta 85 lina beta 16 chen beta 46 hana alpha 44
delta 2 beta 5 alpha 2 gamma 1
count_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0018707
qwen/qwen3.7-plus
awkweave-0018708
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 22 hana alpha 27 chen gamma 19 bruno alpha 26 ivan beta 26 gus alpha 14 chen alpha 9 chen delta 29
delta 51 alpha 76 gamma 19 beta 26
bruno alpha 17 chen delta 30 alice beta 28 ivan beta 1 chen gamma 22 chen beta 7
alpha 17 delta 30 beta 36 gamma 22
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018708-p1
Calculate the sum of values in the third column grouped by the second column's categories, listing results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
jules delta 22 hana alpha 27 chen gamma 19 bruno alpha 26 ivan beta 26 gus alpha 14 chen alpha 9 chen delta 29
delta 51 alpha 76 gamma 19 beta 26
bruno alpha 17 chen delta 30 alice beta 28 ivan beta 1 chen gamma 22 chen beta 7
alpha 17 delta 30 beta 36 gamma 22
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018708
qwen/qwen3.7-plus
awkweave-0018709
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta indigo 19 delta fable 13 alpha harbor 102 delta fable 98 delta birch 55 delta amber 33 gamma ember 51
delta 4
delta cobalt 7 gamma amber 109 gamma amber 102 gamma amber 65 delta fable 65 gamma indigo 37 beta indigo 96
delta 2 gamma 4
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018709-p1
List each duplicate 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 indigo 19 delta fable 13 alpha harbor 102 delta fable 98 delta birch 55 delta amber 33 gamma ember 51
delta 4
delta cobalt 7 gamma amber 109 gamma amber 102 gamma amber 65 delta fable 65 gamma indigo 37 beta indigo 96
delta 2 gamma 4
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018709
qwen/qwen3.7-plus
awkweave-0018710
The first row is a header. Print the state column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
score state region note r001 chen 1 closed r002 jules 15 closed r003 gus 20 active r004 dina 18 paused r005 eli 18 paused r006 alice 3 active r007 dina 30 active r008 ivan 2 paused r009 eli 4 ready
chen jules gus dina eli alice dina ivan eli
score state region note r001 bruno 3 paused r002 hana 7 paused r003 lina 1 failed r004 ivan 2 pending r005 lina 14 ready r006 dina 3 paused
bruno hana lina ivan lina dina
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018710-p1
Skip the header row and output the state column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
score state region note r001 chen 1 closed r002 jules 15 closed r003 gus 20 active r004 dina 18 paused r005 eli 18 paused r006 alice 3 active r007 dina 30 active r008 ivan 2 paused r009 eli 4 ready
chen jules gus dina eli alice dina ivan eli
score state region note r001 bruno 3 paused r002 hana 7 paused r003 lina 1 failed r004 ivan 2 pending r005 lina 14 ready r006 dina 3 paused
bruno hana lina ivan lina dina
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018710
qwen/qwen3.7-plus
awkweave-0018711
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 jules 3 pending r002 chen 6 pending r003 farah 9 paused r004 jules 28 pending r005 farah 14 failed r006 eli 29 failed r007 farah 29 closed r008 eli 12 ready r009 alice 12 pending r010 chen 9 ready
jules eli farah
record_id display_name score state r001 hana 26 failed r002 lina 11 paused r003 chen 3 active r004 farah 12 pending r005 eli 26 failed r006 dina 4 ready
hana eli
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018711-p1
Ignoring the header, print the display_name field for any record 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 jules 3 pending r002 chen 6 pending r003 farah 9 paused r004 jules 28 pending r005 farah 14 failed r006 eli 29 failed r007 farah 29 closed r008 eli 12 ready r009 alice 12 pending r010 chen 9 ready
jules eli farah
record_id display_name score state r001 hana 26 failed r002 lina 11 paused r003 chen 3 active r004 farah 12 pending r005 eli 26 failed r006 dina 4 ready
hana eli
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018711
qwen/qwen3.7-plus
awkweave-0018712
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
lina 17 failed alice 2 active farah 1 pending alice 1 closed gus 10 closed lina 25 paused
17 2 1 1 10 25
gus 13 active kim 15 closed hana 21 pending dina 3 failed gus 19 active bruno 22 paused bruno 18 failed lina 21 failed
13 15 21 3 19 22 18 21
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018712-p1
Given tab-separated input, extract and print the second field from each record.
BEGIN{FS=OFS="\t"}{print $2}
lina 17 failed alice 2 active farah 1 pending alice 1 closed gus 10 closed lina 25 paused
17 2 1 1 10 25
gus 13 active kim 15 closed hana 21 pending dina 3 failed gus 19 active bruno 22 paused bruno 18 failed lina 21 failed
13 15 21 3 19 22 18 21
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018712
qwen/qwen3.7-plus
awkweave-0018713
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 9.
BEGIN{FS=OFS=","}$2>9{print $1}
ivan,14,ready ivan,3,failed lina,4,closed dina,23,pending ivan,30,closed kim,5,pending alice,17,failed
ivan dina ivan alice
hana,5,closed jules,9,pending bruno,28,closed hana,13,paused alice,24,paused ivan,12,active chen,28,active chen,2,ready lina,26,failed lina,14,ready
bruno hana alice ivan chen lina lina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018713-p1
For simple comma-separated input without quoted commas, output the first field if the second field is greater than 9.
BEGIN{FS=OFS=","}$2>9{print $1}
ivan,14,ready ivan,3,failed lina,4,closed dina,23,pending ivan,30,closed kim,5,pending alice,17,failed
ivan dina ivan alice
hana,5,closed jules,9,pending bruno,28,closed hana,13,paused alice,24,paused ivan,12,active chen,28,active chen,2,ready lina,26,failed lina,14,ready
bruno hana alice ivan chen lina lina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018713
qwen/qwen3.7-plus
awkweave-0018714
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
farah indigo 19 ivan indigo 70 hana harbor 29 dina cobalt 13 alice indigo 101 alice cobalt 112 bruno indigo 26 kim birch 52 ivan indigo 87 hana birch 42
farah indigo 19 ivan indigo 70 hana harbor 29 dina cobalt 13 alice indigo 101 alice cobalt 112 bruno indigo 26 kim birch 52 ivan indigo 87 hana birch 42
jules grove 91 farah indigo 85 ivan ember 12 jules birch 1 chen harbor 20 hana indigo 95
jules grove 91 farah indigo 85 ivan ember 12 jules birch 1 chen harbor 20 hana indigo 95
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018714-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
farah indigo 19 ivan indigo 70 hana harbor 29 dina cobalt 13 alice indigo 101 alice cobalt 112 bruno indigo 26 kim birch 52 ivan indigo 87 hana birch 42
farah indigo 19 ivan indigo 70 hana harbor 29 dina cobalt 13 alice indigo 101 alice cobalt 112 bruno indigo 26 kim birch 52 ivan indigo 87 hana birch 42
jules grove 91 farah indigo 85 ivan ember 12 jules birch 1 chen harbor 20 hana indigo 95
jules grove 91 farah indigo 85 ivan ember 12 jules birch 1 chen harbor 20 hana indigo 95
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018714
qwen/qwen3.7-plus
awkweave-0018715
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
eli amber 82 pending jules amber 32 failed farah cobalt 113 failed dina fable 49 active eli indigo 57 closed farah fable 75 failed eli cobalt 116 paused farah delta 23 active
farah cobalt 113 failed
hana ember 107 pending lina fable 62 active jules amber 113 paused jules grove 41 failed gus amber 38 paused gus birch 107 failed chen grove 21 paused jules indigo 94 failed chen birch 36 failed dina cobalt 17 paused
hana ember 107 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018715-p1
Identify and print the longest line from the input; if multiple lines share the maximum length, select the first one.
{if(length($0)>length(best))best=$0}END{print best}
eli amber 82 pending jules amber 32 failed farah cobalt 113 failed dina fable 49 active eli indigo 57 closed farah fable 75 failed eli cobalt 116 paused farah delta 23 active
farah cobalt 113 failed
hana ember 107 pending lina fable 62 active jules amber 113 paused jules grove 41 failed gus amber 38 paused gus birch 107 failed chen grove 21 paused jules indigo 94 failed chen birch 36 failed dina cobalt 17 paused
hana ember 107 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018715
qwen/qwen3.7-plus
awkweave-0018716
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
kim 19 eli 9 ivan 1 bruno 58 jules 27 lina 5 lina 70 lina 65 dina 40
kim 19 ivan 1 jules 27 lina 70 dina 40
eli 35 alice 25 lina 48 hana 55 farah 10 kim 30 dina 52 ivan 119 alice 87
eli 35 lina 48 farah 10 dina 52 alice 87
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018716-p1
Print lines 1, 3, 5, and so on (every second line starting from the first).
NR%2==1
kim 19 eli 9 ivan 1 bruno 58 jules 27 lina 5 lina 70 lina 65 dina 40
kim 19 ivan 1 jules 27 lina 70 dina 40
eli 35 alice 25 lina 48 hana 55 farah 10 kim 30 dina 52 ivan 119 alice 87
eli 35 lina 48 farah 10 dina 52 alice 87
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018716
qwen/qwen3.7-plus
awkweave-0018717
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
gamma birch 120 delta fable 44 alpha indigo 46 gamma delta 73 gamma amber 6 delta grove 52 beta juniper 104 gamma ember 38 alpha juniper 24
4
gamma indigo 77 delta grove 118 gamma ember 54 delta fable 95 beta juniper 5 gamma cobalt 15
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018717-p1
Determine the number of unique values in the first column and output only that total count.
{if(!seen[$1]++)n++}END{print n+0}
gamma birch 120 delta fable 44 alpha indigo 46 gamma delta 73 gamma amber 6 delta grove 52 beta juniper 104 gamma ember 38 alpha juniper 24
4
gamma indigo 77 delta grove 118 gamma ember 54 delta fable 95 beta juniper 5 gamma cobalt 15
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018717
qwen/qwen3.7-plus
awkweave-0018718
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 20 0 hana 3 24 jules 8 26 ivan 9 2 jules 4 2 lina 13 1 bruno 18 14 gus 20 17
hana 0.12 jules 0.31 ivan 4.50 jules 2.00 lina 13.00 bruno 1.29 gus 1.18
farah 2 0 bruno 15 22 ivan 25 23 chen 20 4 ivan 3 4 gus 16 21
bruno 0.68 ivan 1.09 chen 5.00 ivan 0.75 gus 0.76
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018718-p1
For every row, output the first and second columns alongside the result of dividing the second column by the third, formatted to two decimal places, while omitting any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
eli 20 0 hana 3 24 jules 8 26 ivan 9 2 jules 4 2 lina 13 1 bruno 18 14 gus 20 17
hana 0.12 jules 0.31 ivan 4.50 jules 2.00 lina 13.00 bruno 1.29 gus 1.18
farah 2 0 bruno 15 22 ivan 25 23 chen 20 4 ivan 3 4 gus 16 21
bruno 0.68 ivan 1.09 chen 5.00 ivan 0.75 gus 0.76
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018718
qwen/qwen3.7-plus
awkweave-0018719
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 gus indigo 2 bruno harbor 17 hana harbor 12 jules birch 17 farah cobalt 11 alice amber 1 gus cobalt 14 chen grove 9
bruno harbor 17 jules birch 17 gus cobalt 14
chen fable 8 bruno delta 29 lina juniper 25 gus amber 20 jules juniper 11 hana birch 26 dina amber 24 ivan amber 21 lina indigo 28 bruno ember 8
bruno delta 29 lina indigo 28 hana birch 26
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018719-p1
Display the three full records that have the largest numeric values in the third column, sorted in descending order, maintaining the original input sequence for any tied values.
{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 gus indigo 2 bruno harbor 17 hana harbor 12 jules birch 17 farah cobalt 11 alice amber 1 gus cobalt 14 chen grove 9
bruno harbor 17 jules birch 17 gus cobalt 14
chen fable 8 bruno delta 29 lina juniper 25 gus amber 20 jules juniper 11 hana birch 26 dina amber 24 ivan amber 21 lina indigo 28 bruno ember 8
bruno delta 29 lina indigo 28 hana birch 26
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018719
qwen/qwen3.7-plus
awkweave-0018720
For each line, output fields 5 and 1, in that order.
{print $5, $1}
active 11 eli 15 cobalt delta ready 18 bruno 27 grove fable closed 90 bruno 101 amber juniper active 38 farah 93 amber delta failed 53 gus 17 fable juniper ready 40 gus 70 harbor delta active 43 ivan 113 amber fable pending 64 jules 19 cobalt fable
cobalt active grove ready amber closed amber active fable failed harbor ready amber active cobalt pending
pending 34 dina 39 delta juniper active 24 kim 24 ember ember ready 120 bruno 0 fable ember pending 79 alice 15 cobalt cobalt failed 0 eli 83 cobalt cobalt closed 75 farah 4 juniper indigo ready 80 ivan 107 ember juniper
delta pending ember active fable ready cobalt pending cobalt failed juniper closed ember ready
project_fields
1
train
original-grammar
CC-BY-4.0
null
null