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-0013830-p1
Reverse the sequence of fields on each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
hana juniper 60 pending farah grove 80 ready kim amber 66 active gus harbor 1 ready lina harbor 36 active kim fable 15 pending
pending 60 juniper hana ready 80 grove farah active 66 amber kim ready 1 harbor gus active 36 harbor lina pending 15 fable kim
gus fable 65 active hana grove 46 failed jules fable 99 failed dina juniper 13 pending lina ember 47 pending jules fable 47 ready alice birch 64 failed farah juniper 22 active jules indigo 59 failed dina birch 87 active
active 65 fable gus failed 46 grove hana failed 99 fable jules pending 13 juniper dina pending 47 ember lina ready 47 fable jules failed 64 birch alice active 22 juniper farah failed 59 indigo jules active 87 birch dina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013830
qwen/qwen3.7-plus
awkweave-0013831
Print the number of whitespace-separated fields on each line.
{print NF}
dina harbor 113 active eli grove 92 pending alice birch 70 ready hana cobalt 11 failed jules cobalt 76 active farah harbor 56 failed farah cobalt 69 closed gus ember 62 closed dina fable 83 active
4 4 4 4 4 4 4 4 4
alice fable 46 failed jules fable 75 ready eli juniper 80 paused bruno ember 109 pending eli juniper 51 closed bruno harbor 88 ready alice delta 90 ready
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013831-p1
Display the count of whitespace-delimited fields for each line.
{print NF}
dina harbor 113 active eli grove 92 pending alice birch 70 ready hana cobalt 11 failed jules cobalt 76 active farah harbor 56 failed farah cobalt 69 closed gus ember 62 closed dina fable 83 active
4 4 4 4 4 4 4 4 4
alice fable 46 failed jules fable 75 ready eli juniper 80 paused bruno ember 109 pending eli juniper 51 closed bruno harbor 88 ready alice delta 90 ready
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013831
qwen/qwen3.7-plus
awkweave-0013832
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
hana beta 57 alice gamma 78 alice delta 117 gus beta 29 chen delta 10 alice gamma 70 gus gamma 87 jules gamma 14 lina gamma 88
beta 2 gamma 5 delta 2
kim alpha 35 dina beta 31 ivan beta 101 farah alpha 71 eli delta 95 chen alpha 94 ivan gamma 13 dina delta 84 bruno delta 56
alpha 3 beta 2 delta 3 gamma 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013832-p1
Tally the records for each unique value in the second column and print each value with 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]]}
hana beta 57 alice gamma 78 alice delta 117 gus beta 29 chen delta 10 alice gamma 70 gus gamma 87 jules gamma 14 lina gamma 88
beta 2 gamma 5 delta 2
kim alpha 35 dina beta 31 ivan beta 101 farah alpha 71 eli delta 95 chen alpha 94 ivan gamma 13 dina delta 84 bruno delta 56
alpha 3 beta 2 delta 3 gamma 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013832
qwen/qwen3.7-plus
awkweave-0013833
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]]}
hana gamma 20 jules beta 11 chen delta 28 alice beta 4 chen alpha 4 jules delta 15 farah gamma 2 farah gamma 28 gus delta 30 eli delta 25
gamma 50 beta 15 delta 98 alpha 4
jules beta 4 ivan alpha 18 kim delta 26 jules beta 28 ivan gamma 24 bruno gamma 13 alice beta 1 dina delta 12 hana delta 1 gus beta 24
beta 57 alpha 18 delta 39 gamma 37
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013833-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]]}
hana gamma 20 jules beta 11 chen delta 28 alice beta 4 chen alpha 4 jules delta 15 farah gamma 2 farah gamma 28 gus delta 30 eli delta 25
gamma 50 beta 15 delta 98 alpha 4
jules beta 4 ivan alpha 18 kim delta 26 jules beta 28 ivan gamma 24 bruno gamma 13 alice beta 1 dina delta 12 hana delta 1 gus beta 24
beta 57 alpha 18 delta 39 gamma 37
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013833
qwen/qwen3.7-plus
awkweave-0013834
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 13 delta birch 26 beta harbor 27 beta indigo 3 alpha harbor 55 beta harbor 110 beta birch 22
beta 5
delta harbor 102 delta juniper 95 gamma indigo 1 gamma fable 103 beta grove 84 delta delta 69 beta fable 86 beta cobalt 22 gamma ember 34
delta 3 gamma 3 beta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013834-p1
List each duplicate value from the first column alongside 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 13 delta birch 26 beta harbor 27 beta indigo 3 alpha harbor 55 beta harbor 110 beta birch 22
beta 5
delta harbor 102 delta juniper 95 gamma indigo 1 gamma fable 103 beta grove 84 delta delta 69 beta fable 86 beta cobalt 22 gamma ember 34
delta 3 gamma 3 beta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013834
qwen/qwen3.7-plus
awkweave-0013835
The first row is a header. Print the region column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
score region note record_id r001 alice 6 ready r002 chen 14 paused r003 kim 4 closed r004 hana 5 pending r005 hana 30 closed r006 bruno 12 ready
alice chen kim hana hana bruno
score region note record_id r001 hana 10 paused r002 bruno 17 active r003 gus 27 pending r004 alice 2 ready r005 ivan 8 paused r006 alice 12 active r007 kim 1 pending r008 hana 14 closed r009 eli 19 failed r010 dina 1 failed
hana bruno gus alice ivan alice kim hana eli dina
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013835-p1
Skip the header row and print the region column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
score region note record_id r001 alice 6 ready r002 chen 14 paused r003 kim 4 closed r004 hana 5 pending r005 hana 30 closed r006 bruno 12 ready
alice chen kim hana hana bruno
score region note record_id r001 hana 10 paused r002 bruno 17 active r003 gus 27 pending r004 alice 2 ready r005 ivan 8 paused r006 alice 12 active r007 kim 1 pending r008 hana 14 closed r009 eli 19 failed r010 dina 1 failed
hana bruno gus alice ivan alice kim hana eli dina
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013835
qwen/qwen3.7-plus
awkweave-0013836
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 chen 22 ready r002 jules 8 paused r003 lina 5 pending r004 eli 22 ready r005 farah 27 ready r006 dina 5 pending r007 farah 28 ready r008 dina 24 active r009 alice 29 paused r010 kim 9 paused
chen eli farah farah dina alice
record_id display_name score state r001 hana 9 failed r002 alice 5 ready r003 bruno 5 ready r004 gus 11 pending r005 bruno 12 ready r006 farah 3 closed r007 hana 3 failed r008 eli 30 ready r009 dina 15 pending
eli dina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013836-p1
Treat the first line as a header and output the display_name field for all data rows 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 chen 22 ready r002 jules 8 paused r003 lina 5 pending r004 eli 22 ready r005 farah 27 ready r006 dina 5 pending r007 farah 28 ready r008 dina 24 active r009 alice 29 paused r010 kim 9 paused
chen eli farah farah dina alice
record_id display_name score state r001 hana 9 failed r002 alice 5 ready r003 bruno 5 ready r004 gus 11 pending r005 bruno 12 ready r006 farah 3 closed r007 hana 3 failed r008 eli 30 ready r009 dina 15 pending
eli dina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013836
qwen/qwen3.7-plus
awkweave-0013837
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
hana 21 ready alice 8 failed gus 4 paused dina 22 failed eli 12 ready bruno 14 paused alice 13 pending gus 27 pending eli 28 active
hana alice gus dina eli bruno alice gus eli
ivan 17 failed ivan 1 closed dina 4 active eli 26 failed eli 10 active chen 10 closed ivan 17 active ivan 26 failed bruno 9 pending jules 8 paused
ivan ivan dina eli eli chen ivan ivan bruno jules
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013837-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
hana 21 ready alice 8 failed gus 4 paused dina 22 failed eli 12 ready bruno 14 paused alice 13 pending gus 27 pending eli 28 active
hana alice gus dina eli bruno alice gus eli
ivan 17 failed ivan 1 closed dina 4 active eli 26 failed eli 10 active chen 10 closed ivan 17 active ivan 26 failed bruno 9 pending jules 8 paused
ivan ivan dina eli eli chen ivan ivan bruno jules
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0013837
qwen/qwen3.7-plus
awkweave-0013838
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 18.
BEGIN{FS=OFS=","}$2>18{print $1}
gus,15,closed bruno,10,active chen,12,closed alice,13,paused chen,17,failed dina,12,active eli,10,failed farah,23,paused
farah
chen,28,active kim,3,failed lina,18,closed chen,15,paused jules,17,active jules,15,paused chen,5,paused
chen
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013838-p1
For simple comma-separated input without quoted commas, print the first column only if the second column is greater than 18.
BEGIN{FS=OFS=","}$2>18{print $1}
gus,15,closed bruno,10,active chen,12,closed alice,13,paused chen,17,failed dina,12,active eli,10,failed farah,23,paused
farah
chen,28,active kim,3,failed lina,18,closed chen,15,paused jules,17,active jules,15,paused chen,5,paused
chen
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013838
qwen/qwen3.7-plus
awkweave-0013839
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
gus fable 32 hana delta 98 alice fable 40 chen birch 47 ivan amber 48 jules indigo 117 alice harbor 94 hana delta 89 hana cobalt 88
gus fable 32 hana delta 98 alice fable 40 chen birch 47 ivan amber 48 jules indigo 117 alice harbor 94 hana delta 89 hana cobalt 88
alice ember 85 alice cobalt 118 eli birch 106 farah juniper 5 gus indigo 115 hana fable 104
alice ember 85 alice cobalt 118 eli birch 106 farah juniper 5 gus indigo 115 hana fable 104
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013839-p1
Remove leading and trailing whitespace, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
gus fable 32 hana delta 98 alice fable 40 chen birch 47 ivan amber 48 jules indigo 117 alice harbor 94 hana delta 89 hana cobalt 88
gus fable 32 hana delta 98 alice fable 40 chen birch 47 ivan amber 48 jules indigo 117 alice harbor 94 hana delta 89 hana cobalt 88
alice ember 85 alice cobalt 118 eli birch 106 farah juniper 5 gus indigo 115 hana fable 104
alice ember 85 alice cobalt 118 eli birch 106 farah juniper 5 gus indigo 115 hana fable 104
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013839
qwen/qwen3.7-plus
awkweave-0013840
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
bruno delta 114 active lina harbor 4 ready bruno harbor 106 closed kim amber 119 ready ivan grove 81 closed farah juniper 64 pending eli ember 23 closed bruno delta 53 ready
farah juniper 64 pending
chen indigo 81 closed farah fable 26 active lina indigo 53 active jules amber 47 ready gus fable 87 active gus birch 101 pending
chen indigo 81 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013840-p1
Identify and print the longest line from the input; in case of a tie in length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
bruno delta 114 active lina harbor 4 ready bruno harbor 106 closed kim amber 119 ready ivan grove 81 closed farah juniper 64 pending eli ember 23 closed bruno delta 53 ready
farah juniper 64 pending
chen indigo 81 closed farah fable 26 active lina indigo 53 active jules amber 47 ready gus fable 87 active gus birch 101 pending
chen indigo 81 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013840
qwen/qwen3.7-plus
awkweave-0013841
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
dina 75 jules 67 eli 10 hana 29 hana 116 dina 80
jules 67 hana 116
kim 49 bruno 87 jules 113 alice 97 farah 72 kim 20 chen 113 chen 79 lina 43
bruno 87 farah 72 chen 79
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013841-p1
Output every third line beginning with line 2 (i.e., lines 2, 5, 8, etc.).
NR%3==2
dina 75 jules 67 eli 10 hana 29 hana 116 dina 80
jules 67 hana 116
kim 49 bruno 87 jules 113 alice 97 farah 72 kim 20 chen 113 chen 79 lina 43
bruno 87 farah 72 chen 79
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013841
qwen/qwen3.7-plus
awkweave-0013842
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
delta delta 117 alpha fable 112 beta fable 70 delta delta 49 alpha harbor 2 delta indigo 22 gamma fable 13 gamma delta 16
4
alpha amber 65 delta cobalt 83 alpha juniper 108 delta indigo 108 alpha grove 23 alpha juniper 119 alpha harbor 53 beta grove 15 alpha fable 62
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013842-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}
delta delta 117 alpha fable 112 beta fable 70 delta delta 49 alpha harbor 2 delta indigo 22 gamma fable 13 gamma delta 16
4
alpha amber 65 delta cobalt 83 alpha juniper 108 delta indigo 108 alpha grove 23 alpha juniper 119 alpha harbor 53 beta grove 15 alpha fable 62
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013842
qwen/qwen3.7-plus
awkweave-0013843
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 21 0 chen 21 3 bruno 20 5 kim 12 28 bruno 15 30 kim 7 6 jules 18 22 alice 21 11
chen 7.00 bruno 4.00 kim 0.43 bruno 0.50 kim 1.17 jules 0.82 alice 1.91
eli 9 0 jules 15 5 lina 22 10 eli 21 9 kim 9 19 chen 23 10 gus 8 22 gus 3 9 dina 16 9 jules 6 20
jules 3.00 lina 2.20 eli 2.33 kim 0.47 chen 2.30 gus 0.36 gus 0.33 dina 1.78 jules 0.30
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013843-p1
For each row, skip entries where column 3 is zero, then print column 1 followed by column 2 divided by column 3, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
eli 21 0 chen 21 3 bruno 20 5 kim 12 28 bruno 15 30 kim 7 6 jules 18 22 alice 21 11
chen 7.00 bruno 4.00 kim 0.43 bruno 0.50 kim 1.17 jules 0.82 alice 1.91
eli 9 0 jules 15 5 lina 22 10 eli 21 9 kim 9 19 chen 23 10 gus 8 22 gus 3 9 dina 16 9 jules 6 20
jules 3.00 lina 2.20 eli 2.33 kim 0.47 chen 2.30 gus 0.36 gus 0.33 dina 1.78 jules 0.30
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013843
qwen/qwen3.7-plus
awkweave-0013844
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 grove 8 lina ember 25 ivan amber 26 hana grove 17 bruno indigo 19 bruno amber 24 bruno amber 26
ivan amber 26 bruno amber 26 lina ember 25
alice fable 4 hana grove 10 dina harbor 21 bruno delta 21 hana juniper 17 chen ember 6 jules amber 17 jules juniper 10
dina harbor 21 bruno delta 21 hana juniper 17
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013844-p1
Select the top three records with the highest numeric values in column 3, 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]}
dina grove 8 lina ember 25 ivan amber 26 hana grove 17 bruno indigo 19 bruno amber 24 bruno amber 26
ivan amber 26 bruno amber 26 lina ember 25
alice fable 4 hana grove 10 dina harbor 21 bruno delta 21 hana juniper 17 chen ember 6 jules amber 17 jules juniper 10
dina harbor 21 bruno delta 21 hana juniper 17
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013844
qwen/qwen3.7-plus
awkweave-0013845
For each line, output fields 4 and 1, in that order.
{print $4, $1}
jules amber ready gus closed ivan birch failed ivan paused eli juniper failed farah pending gus juniper paused lina active kim amber paused chen pending hana delta paused hana closed chen fable failed dina closed alice grove closed chen closed gus amber active lina ready
gus jules ivan ivan farah eli lina gus chen kim hana hana dina chen chen alice lina gus
bruno grove failed dina failed alice birch ready eli closed chen fable ready lina failed ivan harbor active alice paused farah ember pending eli paused bruno birch paused ivan ready
dina bruno eli alice lina chen alice ivan eli farah ivan bruno
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013845-p1
For every line, print the fourth field followed by the first field.
{print $4, $1}
jules amber ready gus closed ivan birch failed ivan paused eli juniper failed farah pending gus juniper paused lina active kim amber paused chen pending hana delta paused hana closed chen fable failed dina closed alice grove closed chen closed gus amber active lina ready
gus jules ivan ivan farah eli lina gus chen kim hana hana dina chen chen alice lina gus
bruno grove failed dina failed alice birch ready eli closed chen fable ready lina failed ivan harbor active alice paused farah ember pending eli paused bruno birch paused ivan ready
dina bruno eli alice lina chen alice ivan eli farah ivan bruno
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013845
qwen/qwen3.7-plus
awkweave-0013846
Print the last field of every input line.
{print $NF}
86 18 117 43 56 67 97 115 17 46 38 8 9 104 85 100 16 84 54 40 80 17 7 119 113 47 1
117 67 17 8 85 84 80 119 1
27 117 74 72 38 30 112 66 20 99 48 83 106 85 2 74 108 34 76 88 48
74 30 20 83 2 34 48
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013846-p1
Output the final field from each line of input.
{print $NF}
86 18 117 43 56 67 97 115 17 46 38 8 9 104 85 100 16 84 54 40 80 17 7 119 113 47 1
117 67 17 8 85 84 80 119 1
27 117 74 72 38 30 112 66 20 99 48 83 106 85 2 74 108 34 76 88 48
74 30 20 83 2 34 48
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013846
qwen/qwen3.7-plus
awkweave-0013847
Print the complete records where column 4 is at least 45.
$4 >= 45
failed eli farah 99 ready ready chen ivan 71 ready failed alice alice 120 closed active dina chen 25 pending active bruno chen 63 paused closed kim alice 96 paused failed lina ivan 28 ready ready ivan kim 103 closed
failed eli farah 99 ready ready chen ivan 71 ready failed alice alice 120 closed active bruno chen 63 paused closed kim alice 96 paused ready ivan kim 103 closed
active jules dina 30 closed failed gus bruno 106 closed pending farah hana 95 active closed jules eli 78 active failed eli bruno 101 active closed jules ivan 61 pending active hana kim 21 ready
failed gus bruno 106 closed pending farah hana 95 active closed jules eli 78 active failed eli bruno 101 active closed jules ivan 61 pending
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013847-p1
Print full records where the value in column 4 is 45 or higher.
$4 >= 45
failed eli farah 99 ready ready chen ivan 71 ready failed alice alice 120 closed active dina chen 25 pending active bruno chen 63 paused closed kim alice 96 paused failed lina ivan 28 ready ready ivan kim 103 closed
failed eli farah 99 ready ready chen ivan 71 ready failed alice alice 120 closed active bruno chen 63 paused closed kim alice 96 paused ready ivan kim 103 closed
active jules dina 30 closed failed gus bruno 106 closed pending farah hana 95 active closed jules eli 78 active failed eli bruno 101 active closed jules ivan 61 pending active hana kim 21 ready
failed gus bruno 106 closed pending farah hana 95 active closed jules eli 78 active failed eli bruno 101 active closed jules ivan 61 pending
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013847
qwen/qwen3.7-plus
awkweave-0013848
Show whole lines whose 3rd field is between 12 and 19, inclusive.
$3 >= 12 && $3 <= 19
active indigo 17 ivan closed juniper 25 bruno active fable 26 ivan ready cobalt 2 alice closed amber 7 bruno closed amber 16 kim ready amber 21 gus pending birch 25 chen
active indigo 17 ivan closed amber 16 kim
paused harbor 24 chen closed birch 18 bruno pending indigo 20 dina failed harbor 13 farah active indigo 19 bruno active ember 20 chen active grove 14 eli ready grove 30 chen active cobalt 10 kim
closed birch 18 bruno failed harbor 13 farah active indigo 19 bruno active grove 14 eli
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013848-p1
Display entire lines where the value in the third field falls within the inclusive range of 12 to 19.
$3 >= 12 && $3 <= 19
active indigo 17 ivan closed juniper 25 bruno active fable 26 ivan ready cobalt 2 alice closed amber 7 bruno closed amber 16 kim ready amber 21 gus pending birch 25 chen
active indigo 17 ivan closed amber 16 kim
paused harbor 24 chen closed birch 18 bruno pending indigo 20 dina failed harbor 13 farah active indigo 19 bruno active ember 20 chen active grove 14 eli ready grove 30 chen active cobalt 10 kim
closed birch 18 bruno failed harbor 13 farah active indigo 19 bruno active grove 14 eli
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013848
qwen/qwen3.7-plus
awkweave-0013849
Print column 1 only for rows where column 4 is exactly failed.
$4 == "failed"{print $1}
hana 97 harbor ready gus 119 juniper pending hana 37 cobalt failed gus 2 harbor ready chen 21 harbor pending gus 36 cobalt closed eli 77 birch ready
hana
farah 19 harbor failed jules 113 juniper active chen 1 grove active hana 98 birch paused ivan 76 juniper paused ivan 11 fable active kim 116 harbor paused bruno 40 cobalt closed
farah
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013849-p1
Output only the first column for rows where the fourth column matches the string 'failed' exactly.
$4 == "failed"{print $1}
hana 97 harbor ready gus 119 juniper pending hana 37 cobalt failed gus 2 harbor ready chen 21 harbor pending gus 36 cobalt closed eli 77 birch ready
hana
farah 19 harbor failed jules 113 juniper active chen 1 grove active hana 98 birch paused ivan 76 juniper paused ivan 11 fable active kim 116 harbor paused bruno 40 cobalt closed
farah
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013849
qwen/qwen3.7-plus
awkweave-0013850
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
juniper INFO 91 delta DEBUG 84 fable INFO 30 birch WARN 19 indigo DEBUG 91 ember ERROR 98 indigo DEBUG 10 juniper WARN 112 ember INFO 0 fable WARN 16
ember ERROR 98
juniper INFO 19 amber INFO 57 amber DEBUG 88 harbor WARN 79 cobalt DEBUG 44 fable DEBUG 105 ember WARN 115 cobalt INFO 12
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013850-p1
Print all fields from any line where the second field starts with the prefix 'ERROR'.
$2 ~ /^ERROR/
juniper INFO 91 delta DEBUG 84 fable INFO 30 birch WARN 19 indigo DEBUG 91 ember ERROR 98 indigo DEBUG 10 juniper WARN 112 ember INFO 0 fable WARN 16
ember ERROR 98
juniper INFO 19 amber INFO 57 amber DEBUG 88 harbor WARN 79 cobalt DEBUG 44 fable DEBUG 105 ember WARN 115 cobalt INFO 12
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013850
qwen/qwen3.7-plus
awkweave-0013851
Print every line except those containing the exact text amber.
$0 !~ /amber/
juniper 27 failed birch 73 paused harbor 45 ready indigo 48 ready delta 61 active grove 35 failed amber 999 active
juniper 27 failed birch 73 paused harbor 45 ready indigo 48 ready delta 61 active grove 35 failed
indigo 92 ready ember 89 ready juniper 27 ready indigo 107 pending harbor 62 failed juniper 118 paused ember 100 pending amber 999 active
indigo 92 ready ember 89 ready juniper 27 ready indigo 107 pending harbor 62 failed juniper 118 paused ember 100 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013851-p1
Output every line that does not contain the exact substring 'amber'.
$0 !~ /amber/
juniper 27 failed birch 73 paused harbor 45 ready indigo 48 ready delta 61 active grove 35 failed amber 999 active
juniper 27 failed birch 73 paused harbor 45 ready indigo 48 ready delta 61 active grove 35 failed
indigo 92 ready ember 89 ready juniper 27 ready indigo 107 pending harbor 62 failed juniper 118 paused ember 100 pending amber 999 active
indigo 92 ready ember 89 ready juniper 27 ready indigo 107 pending harbor 62 failed juniper 118 paused ember 100 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013851
qwen/qwen3.7-plus
awkweave-0013852
Print lines 3 through 5, including both endpoints.
NR >= 3 && NR <= 5
dina amber 61 chen cobalt 39 ivan indigo 32 dina ember 42 lina harbor 15 jules birch 86 alice amber 54
ivan indigo 32 dina ember 42 lina harbor 15
farah indigo 57 eli cobalt 24 bruno juniper 0 eli fable 81 kim ember 42 farah birch 115 dina grove 71 lina ember 112 kim delta 118 kim grove 34
bruno juniper 0 eli fable 81 kim ember 42
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013852-p1
Print lines numbered 3 through 5, inclusive of both the start and end lines.
NR >= 3 && NR <= 5
dina amber 61 chen cobalt 39 ivan indigo 32 dina ember 42 lina harbor 15 jules birch 86 alice amber 54
ivan indigo 32 dina ember 42 lina harbor 15
farah indigo 57 eli cobalt 24 bruno juniper 0 eli fable 81 kim ember 42 farah birch 115 dina grove 71 lina ember 112 kim delta 118 kim grove 34
bruno juniper 0 eli fable 81 kim ember 42
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013852
qwen/qwen3.7-plus
awkweave-0013853
Output only the first 4 records.
NR <= 4
alice 55 fable ivan 79 grove gus 40 cobalt farah 31 ember eli 36 ember kim 79 delta dina 93 delta hana 19 cobalt
alice 55 fable ivan 79 grove gus 40 cobalt farah 31 ember
jules 60 fable lina 26 amber jules 19 birch ivan 54 ember hana 36 juniper jules 16 indigo jules 21 cobalt alice 63 indigo
jules 60 fable lina 26 amber jules 19 birch ivan 54 ember
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013853-p1
Display only the initial 4 records from the input.
NR <= 4
alice 55 fable ivan 79 grove gus 40 cobalt farah 31 ember eli 36 ember kim 79 delta dina 93 delta hana 19 cobalt
alice 55 fable ivan 79 grove gus 40 cobalt farah 31 ember
jules 60 fable lina 26 amber jules 19 birch ivan 54 ember hana 36 juniper jules 16 indigo jules 21 cobalt alice 63 indigo
jules 60 fable lina 26 amber jules 19 birch ivan 54 ember
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013853
qwen/qwen3.7-plus
awkweave-0013854
Skip the first line and print every remaining line unchanged.
NR > 1
gus 9 birch farah 39 birch bruno 69 grove farah 74 birch alice 79 birch kim 94 delta ivan 43 harbor
farah 39 birch bruno 69 grove farah 74 birch alice 79 birch kim 94 delta ivan 43 harbor
lina 41 indigo gus 46 birch eli 71 birch lina 112 amber farah 91 delta jules 96 grove ivan 42 amber farah 59 amber lina 93 amber bruno 23 juniper
gus 46 birch eli 71 birch lina 112 amber farah 91 delta jules 96 grove ivan 42 amber farah 59 amber lina 93 amber bruno 23 juniper
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013854-p1
Omit the first line and output all subsequent lines without modification.
NR > 1
gus 9 birch farah 39 birch bruno 69 grove farah 74 birch alice 79 birch kim 94 delta ivan 43 harbor
farah 39 birch bruno 69 grove farah 74 birch alice 79 birch kim 94 delta ivan 43 harbor
lina 41 indigo gus 46 birch eli 71 birch lina 112 amber farah 91 delta jules 96 grove ivan 42 amber farah 59 amber lina 93 amber bruno 23 juniper
gus 46 birch eli 71 birch lina 112 amber farah 91 delta jules 96 grove ivan 42 amber farah 59 amber lina 93 amber bruno 23 juniper
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013854
qwen/qwen3.7-plus
awkweave-0013855
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
ivan failed 118 lina closed 92 alice paused 89 dina ready 33 chen paused 90 chen pending 40 eli paused 104
1
jules active 76 lina active 67 alice active 54 jules paused 38 hana pending 107 eli pending 3 gus active 104 dina active 8 eli failed 10 farah failed 20
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013855-p1
Count the number of records where the second column is 'failed', and print 0 if no such records exist.
$2 == "failed"{n++}END{print n+0}
ivan failed 118 lina closed 92 alice paused 89 dina ready 33 chen paused 90 chen pending 40 eli paused 104
1
jules active 76 lina active 67 alice active 54 jules paused 38 hana pending 107 eli pending 3 gus active 104 dina active 8 eli failed 10 farah failed 20
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013855
qwen/qwen3.7-plus
awkweave-0013856
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
27 lina birch 15 eli fable 5 ivan grove 5 gus fable 7 bruno cobalt 10 jules ember 12 jules harbor 4 hana delta 6 lina indigo 21 ivan birch
112
19 jules indigo 5 farah harbor 21 lina ember 6 chen cobalt 2 alice fable 4 ivan indigo 20 eli juniper
77
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013856-p1
Compute and output the total sum of all integer values found in the first column.
{s+=$1}END{print s+0}
27 lina birch 15 eli fable 5 ivan grove 5 gus fable 7 bruno cobalt 10 jules ember 12 jules harbor 4 hana delta 6 lina indigo 21 ivan birch
112
19 jules indigo 5 farah harbor 21 lina ember 6 chen cobalt 2 alice fable 4 ivan indigo 20 eli juniper
77
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013856
qwen/qwen3.7-plus
awkweave-0013857
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
indigo 10 jules fable 6 kim delta 4 alice amber 15 bruno grove 3 bruno harbor 6 dina juniper 27 chen
10.14
indigo 21 jules birch 30 bruno juniper 25 alice fable 27 ivan amber 19 chen fable 21 hana fable 4 chen
21.00
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013857-p1
Calculate the average of the values in the second column and print the result rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
indigo 10 jules fable 6 kim delta 4 alice amber 15 bruno grove 3 bruno harbor 6 dina juniper 27 chen
10.14
indigo 21 jules birch 30 bruno juniper 25 alice fable 27 ivan amber 19 chen fable 21 hana fable 4 chen
21.00
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013857
qwen/qwen3.7-plus
awkweave-0013858
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
13 indigo ivan 26 juniper bruno 23 indigo chen 11 indigo kim 27 ember gus 25 cobalt dina 4 indigo chen 19 indigo eli 7 grove chen
4
11 harbor gus 26 amber kim 16 juniper gus 16 harbor dina 23 birch jules 30 amber farah 7 harbor jules 19 indigo eli
7
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013858-p1
Identify and print the minimum numeric value present in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
13 indigo ivan 26 juniper bruno 23 indigo chen 11 indigo kim 27 ember gus 25 cobalt dina 4 indigo chen 19 indigo eli 7 grove chen
4
11 harbor gus 26 amber kim 16 juniper gus 16 harbor dina 23 birch jules 30 amber farah 7 harbor jules 19 indigo eli
7
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013858
qwen/qwen3.7-plus
awkweave-0013859
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
14 juniper ivan 11 juniper jules 14 harbor bruno 2 indigo gus 13 indigo ivan 11 delta chen 24 harbor bruno
24
7 ember bruno 28 delta dina 2 indigo dina 14 fable ivan 17 indigo jules 5 cobalt bruno
28
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013859-p1
Identify and print the maximum numeric value present in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
14 juniper ivan 11 juniper jules 14 harbor bruno 2 indigo gus 13 indigo ivan 11 delta chen 24 harbor bruno
24
7 ember bruno 28 delta dina 2 indigo dina 14 fable ivan 17 indigo jules 5 cobalt bruno
28
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013859
qwen/qwen3.7-plus
awkweave-0013860
Count all input records and print the total.
END{print NR}
kim 60 kim 119 alice 81 eli 98 lina 93 chen 49 alice 3 kim 110 dina 14
9
bruno 81 lina 95 eli 18 hana 58 bruno 62 chen 84 eli 94 kim 106 kim 113 ivan 78
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013860-p1
Output the total count of all input records.
END{print NR}
kim 60 kim 119 alice 81 eli 98 lina 93 chen 49 alice 3 kim 110 dina 14
9
bruno 81 lina 95 eli 18 hana 58 bruno 62 chen 84 eli 94 kim 106 kim 113 ivan 78
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013860
qwen/qwen3.7-plus
awkweave-0013861
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
farah cobalt 89 eli grove 98 eli grove 98 chen delta 59 eli harbor 118 ivan grove 21 jules fable 48 alice fable 19 hana amber 114 gus harbor 60 chen fable 29
farah cobalt 89 eli grove 98 chen delta 59 eli harbor 118 ivan grove 21 jules fable 48 alice fable 19 hana amber 114 gus harbor 60 chen fable 29
alice cobalt 90 alice cobalt 90 hana ember 45 farah ember 92 hana juniper 7 gus ember 9 gus cobalt 33
alice cobalt 90 hana ember 45 farah ember 92 hana juniper 7 gus ember 9 gus cobalt 33
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013861-p1
Eliminate duplicate lines by keeping only the first instance of each, maintaining the original sequence.
!seen[$0]++
farah cobalt 89 eli grove 98 eli grove 98 chen delta 59 eli harbor 118 ivan grove 21 jules fable 48 alice fable 19 hana amber 114 gus harbor 60 chen fable 29
farah cobalt 89 eli grove 98 chen delta 59 eli harbor 118 ivan grove 21 jules fable 48 alice fable 19 hana amber 114 gus harbor 60 chen fable 29
alice cobalt 90 alice cobalt 90 hana ember 45 farah ember 92 hana juniper 7 gus ember 9 gus cobalt 33
alice cobalt 90 hana ember 45 farah ember 92 hana juniper 7 gus ember 9 gus cobalt 33
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013861
qwen/qwen3.7-plus
awkweave-0013862
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
farah juniper 52 jules amber 68 farah harbor 42 hana cobalt 75 ivan amber 86 dina amber 78 kim birch 73 dina cobalt 40
farah juniper 52 jules amber 68 hana cobalt 75 ivan amber 86 dina amber 78 kim birch 73
gus cobalt 83 ivan ember 0 gus indigo 19 bruno birch 45 chen ember 100 lina delta 106 dina cobalt 113 jules birch 80 hana cobalt 25
gus cobalt 83 ivan ember 0 bruno birch 45 chen ember 100 lina delta 106 dina cobalt 113 jules birch 80 hana cobalt 25
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013862-p1
Retain only the initial row for every unique value found in the first column, preserving the input order.
!seen[$1]++
farah juniper 52 jules amber 68 farah harbor 42 hana cobalt 75 ivan amber 86 dina amber 78 kim birch 73 dina cobalt 40
farah juniper 52 jules amber 68 hana cobalt 75 ivan amber 86 dina amber 78 kim birch 73
gus cobalt 83 ivan ember 0 gus indigo 19 bruno birch 45 chen ember 100 lina delta 106 dina cobalt 113 jules birch 80 hana cobalt 25
gus cobalt 83 ivan ember 0 bruno birch 45 chen ember 100 lina delta 106 dina cobalt 113 jules birch 80 hana cobalt 25
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013862
qwen/qwen3.7-plus
awkweave-0013863
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
hana 15 fable lina 29 fable alice 5 birch eli 9 harbor hana 8 fable jules 1 grove alice 17 amber chen 10 grove
hana 15 lina 44 alice 49 eli 58 hana 66 jules 67 alice 84 chen 94
gus 9 ember chen 10 cobalt alice 1 fable eli 26 grove hana 27 juniper jules 29 harbor alice 30 fable alice 8 delta lina 5 cobalt
gus 9 chen 19 alice 20 eli 46 hana 73 jules 102 alice 132 alice 140 lina 145
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013863-p1
For each entry, output the first column and the cumulative sum of the second column, separated by a space.
{s+=$2;print $1,s}
hana 15 fable lina 29 fable alice 5 birch eli 9 harbor hana 8 fable jules 1 grove alice 17 amber chen 10 grove
hana 15 lina 44 alice 49 eli 58 hana 66 jules 67 alice 84 chen 94
gus 9 ember chen 10 cobalt alice 1 fable eli 26 grove hana 27 juniper jules 29 harbor alice 30 fable alice 8 delta lina 5 cobalt
gus 9 chen 19 alice 20 eli 46 hana 73 jules 102 alice 132 alice 140 lina 145
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013863
qwen/qwen3.7-plus
awkweave-0013864
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
ivan 29 13 indigo bruno 26 25 indigo eli 9 3 juniper farah 21 5 amber eli 29 23 delta chen 17 18 indigo gus 2 16 fable eli 9 29 juniper farah 10 19 cobalt
ivan 42 bruno 51 eli 12 farah 26 eli 52 chen 35 gus 18 eli 38 farah 29
farah 16 11 cobalt eli 18 9 grove gus 13 10 fable jules 6 15 birch kim 3 10 harbor hana 23 3 grove gus 16 14 amber kim 7 6 birch bruno 1 26 delta
farah 27 eli 27 gus 23 jules 21 kim 13 hana 26 gus 30 kim 13 bruno 27
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013864-p1
Output the first field followed by the sum of the second and third fields for every row.
{print $1,$2+$3}
ivan 29 13 indigo bruno 26 25 indigo eli 9 3 juniper farah 21 5 amber eli 29 23 delta chen 17 18 indigo gus 2 16 fable eli 9 29 juniper farah 10 19 cobalt
ivan 42 bruno 51 eli 12 farah 26 eli 52 chen 35 gus 18 eli 38 farah 29
farah 16 11 cobalt eli 18 9 grove gus 13 10 fable jules 6 15 birch kim 3 10 harbor hana 23 3 grove gus 16 14 amber kim 7 6 birch bruno 1 26 delta
farah 27 eli 27 gus 23 jules 21 kim 13 hana 26 gus 30 kim 13 bruno 27
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013864
qwen/qwen3.7-plus
awkweave-0013865
Print column 1 and pass when column 2 is at least 22; otherwise print fail.
{print $1,($2>=22?"pass":"fail")}
chen 30 hana 7 hana 5 bruno 2 gus 27 farah 16 gus 21 chen 15
chen pass hana fail hana fail bruno fail gus pass farah fail gus fail chen fail
dina 23 dina 3 bruno 30 hana 11 gus 29 alice 8
dina pass dina fail bruno pass hana fail gus pass alice fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013865-p1
Display the first column along with 'pass' if the second column is 22 or greater, otherwise display 'fail'.
{print $1,($2>=22?"pass":"fail")}
chen 30 hana 7 hana 5 bruno 2 gus 27 farah 16 gus 21 chen 15
chen pass hana fail hana fail bruno fail gus pass farah fail gus fail chen fail
dina 23 dina 3 bruno 30 hana 11 gus 29 alice 8
dina pass dina fail bruno pass hana fail gus pass alice fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013865
qwen/qwen3.7-plus
awkweave-0013866
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
eli cobalt 108 eli harbor 50 dina delta 87 gus fable 78 alice amber 73 chen birch 25 alice cobalt 15 ivan harbor 7
COBALT HARBOR DELTA FABLE AMBER BIRCH COBALT HARBOR
ivan birch 18 chen delta 48 kim ember 70 kim birch 2 eli ember 74 ivan fable 4 hana ember 56 gus fable 112
BIRCH DELTA EMBER BIRCH EMBER FABLE EMBER FABLE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013866-p1
Transform the second column to uppercase and output only that column.
{print toupper($2)}
eli cobalt 108 eli harbor 50 dina delta 87 gus fable 78 alice amber 73 chen birch 25 alice cobalt 15 ivan harbor 7
COBALT HARBOR DELTA FABLE AMBER BIRCH COBALT HARBOR
ivan birch 18 chen delta 48 kim ember 70 kim birch 2 eli ember 74 ivan fable 4 hana ember 56 gus fable 112
BIRCH DELTA EMBER BIRCH EMBER FABLE EMBER FABLE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013866
qwen/qwen3.7-plus
awkweave-0013867
From column 1, print 2 characters starting at character 3.
{print substr($1,3,2)}
grove 20 cobalt 67 birch 66 delta 40 fable 75 amber 8 indigo 12 grove 114
ov ba rc lt bl be di ov
cobalt 50 harbor 114 grove 93 cobalt 89 delta 104 juniper 105 juniper 54
ba rb ov ba lt ni ni
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013867-p1
From column 1, print 2 characters starting at character 3.
{print substr($1,3,2)}
grove 20 cobalt 67 birch 66 delta 40 fable 75 amber 8 indigo 12 grove 114
ov ba rc lt bl be di ov
cobalt 50 harbor 114 grove 93 cobalt 89 delta 104 juniper 105 juniper 54
ba rb ov ba lt ni ni
substring
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0013867
qwen/qwen3.7-plus
awkweave-0013868
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
delta_cobalt 104 ember_harbor 14 ember_grove 57 ember_delta 104 harbor_indigo 23 ember_cobalt 53 fable_delta 77 cobalt_birch 100 indigo_juniper 58
delta cobalt ember harbor ember grove ember delta harbor indigo ember cobalt fable delta cobalt birch indigo juniper
harbor_indigo 48 cobalt_amber 7 amber_cobalt 85 grove_cobalt 100 cobalt_harbor 90 cobalt_harbor 97 fable_grove 28 juniper_grove 14 delta_harbor 16 indigo_harbor 103
harbor indigo cobalt amber amber cobalt grove cobalt cobalt harbor cobalt harbor fable grove juniper grove delta harbor indigo harbor
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013868-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
delta_cobalt 104 ember_harbor 14 ember_grove 57 ember_delta 104 harbor_indigo 23 ember_cobalt 53 fable_delta 77 cobalt_birch 100 indigo_juniper 58
delta cobalt ember harbor ember grove ember delta harbor indigo ember cobalt fable delta cobalt birch indigo juniper
harbor_indigo 48 cobalt_amber 7 amber_cobalt 85 grove_cobalt 100 cobalt_harbor 90 cobalt_harbor 97 fable_grove 28 juniper_grove 14 delta_harbor 16 indigo_harbor 103
harbor indigo cobalt amber amber cobalt grove cobalt cobalt harbor cobalt harbor fable grove juniper grove delta harbor indigo harbor
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013868
qwen/qwen3.7-plus
awkweave-0013869
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 ember 93 pending chen amber 116 ready dina ember 79 pending dina amber 87 active hana fable 103 ready lina indigo 19 pending dina grove 53 closed
pending 93 ember gus ready 116 amber chen pending 79 ember dina active 87 amber dina ready 103 fable hana pending 19 indigo lina closed 53 grove dina
ivan amber 43 closed ivan grove 53 active hana harbor 83 failed farah delta 5 failed dina grove 79 pending kim indigo 92 paused
closed 43 amber ivan active 53 grove ivan failed 83 harbor hana failed 5 delta farah pending 79 grove dina paused 92 indigo kim
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013869-p1
Reverse the sequence of fields on each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
gus ember 93 pending chen amber 116 ready dina ember 79 pending dina amber 87 active hana fable 103 ready lina indigo 19 pending dina grove 53 closed
pending 93 ember gus ready 116 amber chen pending 79 ember dina active 87 amber dina ready 103 fable hana pending 19 indigo lina closed 53 grove dina
ivan amber 43 closed ivan grove 53 active hana harbor 83 failed farah delta 5 failed dina grove 79 pending kim indigo 92 paused
closed 43 amber ivan active 53 grove ivan failed 83 harbor hana failed 5 delta farah pending 79 grove dina paused 92 indigo kim
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013869
qwen/qwen3.7-plus
awkweave-0013870
Print the number of whitespace-separated fields on each line.
{print NF}
bruno harbor 39 closed bruno fable 29 paused eli ember 39 ready alice harbor 15 active bruno delta 67 ready jules indigo 12 pending alice grove 81 paused kim fable 4 ready farah ember 66 failed bruno juniper 30 failed
4 4 4 4 4 4 4 4 4 4
farah fable 38 pending jules grove 6 pending ivan ember 27 pending eli ember 93 pending ivan ember 106 closed dina fable 77 paused eli ember 6 ready kim harbor 108 paused kim indigo 93 pending
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013870-p1
Print the count of whitespace-delimited fields for each line.
{print NF}
bruno harbor 39 closed bruno fable 29 paused eli ember 39 ready alice harbor 15 active bruno delta 67 ready jules indigo 12 pending alice grove 81 paused kim fable 4 ready farah ember 66 failed bruno juniper 30 failed
4 4 4 4 4 4 4 4 4 4
farah fable 38 pending jules grove 6 pending ivan ember 27 pending eli ember 93 pending ivan ember 106 closed dina fable 77 paused eli ember 6 ready kim harbor 108 paused kim indigo 93 pending
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013870
qwen/qwen3.7-plus
awkweave-0013871
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]]}
dina gamma 79 eli gamma 33 eli gamma 92 bruno alpha 105 eli delta 0 lina beta 89 jules beta 96 bruno beta 27
gamma 3 alpha 1 delta 1 beta 3
lina beta 115 lina beta 62 eli gamma 18 chen delta 100 alice delta 20 kim gamma 50 alice alpha 89
beta 2 gamma 2 delta 2 alpha 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013871-p1
Tally the number of records for each distinct value in the second column, printing the value and its count in the order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
dina gamma 79 eli gamma 33 eli gamma 92 bruno alpha 105 eli delta 0 lina beta 89 jules beta 96 bruno beta 27
gamma 3 alpha 1 delta 1 beta 3
lina beta 115 lina beta 62 eli gamma 18 chen delta 100 alice delta 20 kim gamma 50 alice alpha 89
beta 2 gamma 2 delta 2 alpha 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013871
qwen/qwen3.7-plus
awkweave-0013872
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]]}
dina gamma 29 eli beta 1 dina alpha 23 ivan delta 8 ivan delta 22 lina gamma 8
gamma 37 beta 1 alpha 23 delta 30
kim alpha 18 eli gamma 29 jules alpha 18 chen beta 17 chen delta 2 ivan alpha 22 chen gamma 28 jules beta 24 bruno beta 18
alpha 58 gamma 57 beta 59 delta 2
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013872-p1
Calculate the sum of column 3 for each unique value in column 2, listing the groups in the order they 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]]}
dina gamma 29 eli beta 1 dina alpha 23 ivan delta 8 ivan delta 22 lina gamma 8
gamma 37 beta 1 alpha 23 delta 30
kim alpha 18 eli gamma 29 jules alpha 18 chen beta 17 chen delta 2 ivan alpha 22 chen gamma 28 jules beta 24 bruno beta 18
alpha 58 gamma 57 beta 59 delta 2
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013872
qwen/qwen3.7-plus
awkweave-0013873
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 harbor 55 alpha cobalt 81 beta birch 4 gamma ember 100 beta cobalt 120 beta amber 105 alpha harbor 62 alpha birch 82 alpha juniper 24 delta cobalt 54
beta 4 alpha 4
delta indigo 55 alpha birch 13 beta delta 50 beta birch 44 beta fable 25 delta delta 64 gamma delta 32 gamma indigo 58
delta 2 beta 3 gamma 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013873-p1
List each duplicate value from column 1 along with its occurrence count, maintaining the order of 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 harbor 55 alpha cobalt 81 beta birch 4 gamma ember 100 beta cobalt 120 beta amber 105 alpha harbor 62 alpha birch 82 alpha juniper 24 delta cobalt 54
beta 4 alpha 4
delta indigo 55 alpha birch 13 beta delta 50 beta birch 44 beta fable 25 delta delta 64 gamma delta 32 gamma indigo 58
delta 2 beta 3 gamma 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013873
qwen/qwen3.7-plus
awkweave-0013874
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"]}
score display_name note record_id r001 ivan 23 active r002 hana 11 ready r003 lina 4 paused r004 alice 22 failed r005 bruno 15 failed r006 lina 13 pending r007 lina 8 paused r008 eli 6 failed r009 kim 24 ready
active ready paused failed failed pending paused failed ready
score display_name note record_id r001 kim 8 ready r002 chen 20 pending r003 jules 22 active r004 dina 19 failed r005 alice 1 paused r006 farah 25 closed r007 gus 7 failed
ready pending active failed paused closed failed
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013874-p1
Treating the first row as a header, output the record_id field for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
score display_name note record_id r001 ivan 23 active r002 hana 11 ready r003 lina 4 paused r004 alice 22 failed r005 bruno 15 failed r006 lina 13 pending r007 lina 8 paused r008 eli 6 failed r009 kim 24 ready
active ready paused failed failed pending paused failed ready
score display_name note record_id r001 kim 8 ready r002 chen 20 pending r003 jules 22 active r004 dina 19 failed r005 alice 1 paused r006 farah 25 closed r007 gus 7 failed
ready pending active failed paused closed failed
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013874
qwen/qwen3.7-plus
awkweave-0013875
The first row is a header. Print display_name for data rows whose score is greater than 15.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>15{print $h["display_name"]}
record_id display_name score state r001 gus 10 closed r002 chen 4 ready r003 chen 20 pending r004 farah 6 pending r005 kim 14 ready r006 lina 18 pending r007 eli 28 paused r008 farah 19 paused r009 hana 23 closed r010 eli 27 active
chen lina eli farah hana eli
record_id display_name score state r001 farah 12 ready r002 dina 28 ready r003 farah 10 paused r004 chen 27 active r005 gus 6 closed r006 chen 1 closed r007 eli 8 active r008 dina 8 pending r009 kim 9 pending r010 chen 5 paused
dina chen
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013875-p1
With the first row as a header, display the display_name for any data row where the score exceeds 15.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>15{print $h["display_name"]}
record_id display_name score state r001 gus 10 closed r002 chen 4 ready r003 chen 20 pending r004 farah 6 pending r005 kim 14 ready r006 lina 18 pending r007 eli 28 paused r008 farah 19 paused r009 hana 23 closed r010 eli 27 active
chen lina eli farah hana eli
record_id display_name score state r001 farah 12 ready r002 dina 28 ready r003 farah 10 paused r004 chen 27 active r005 gus 6 closed r006 chen 1 closed r007 eli 8 active r008 dina 8 pending r009 kim 9 pending r010 chen 5 paused
dina chen
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013875
qwen/qwen3.7-plus
awkweave-0013876
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 18 active jules 30 paused chen 4 failed jules 6 pending jules 5 failed lina 5 pending dina 19 closed
18 30 4 6 5 5 19
hana 5 pending chen 18 paused eli 12 failed bruno 18 failed lina 26 closed chen 5 closed
5 18 12 18 26 5
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013876-p1
Given tab-separated input, extract and print the second column from every record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 18 active jules 30 paused chen 4 failed jules 6 pending jules 5 failed lina 5 pending dina 19 closed
18 30 4 6 5 5 19
hana 5 pending chen 18 paused eli 12 failed bruno 18 failed lina 26 closed chen 5 closed
5 18 12 18 26 5
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013876
qwen/qwen3.7-plus
awkweave-0013877
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 23.
BEGIN{FS=OFS=","}$2>23{print $1}
bruno,26,active dina,17,paused eli,19,active bruno,16,closed bruno,12,paused jules,10,ready bruno,6,failed eli,19,closed
bruno
farah,19,active hana,24,active dina,12,ready dina,14,ready alice,26,paused dina,7,failed
hana alice
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013877-p1
For simple comma-separated data without quoted commas, output column 1 whenever column 2 is greater than 23.
BEGIN{FS=OFS=","}$2>23{print $1}
bruno,26,active dina,17,paused eli,19,active bruno,16,closed bruno,12,paused jules,10,ready bruno,6,failed eli,19,closed
bruno
farah,19,active hana,24,active dina,12,ready dina,14,ready alice,26,paused dina,7,failed
hana alice
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013877
qwen/qwen3.7-plus
awkweave-0013878
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
chen amber 109 gus indigo 117 farah amber 117 hana harbor 115 farah ember 57 gus ember 80 eli birch 91 eli delta 27 farah grove 15
chen amber 109 gus indigo 117 farah amber 117 hana harbor 115 farah ember 57 gus ember 80 eli birch 91 eli delta 27 farah grove 15
alice juniper 8 eli juniper 99 bruno cobalt 81 jules indigo 65 dina juniper 99 kim cobalt 87 eli fable 38 jules birch 25
alice juniper 8 eli juniper 99 bruno cobalt 81 jules indigo 65 dina juniper 99 kim cobalt 87 eli fable 38 jules birch 25
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013878-p1
Remove leading and trailing whitespace and replace sequences of internal whitespace with a single space.
{$1=$1;print}
chen amber 109 gus indigo 117 farah amber 117 hana harbor 115 farah ember 57 gus ember 80 eli birch 91 eli delta 27 farah grove 15
chen amber 109 gus indigo 117 farah amber 117 hana harbor 115 farah ember 57 gus ember 80 eli birch 91 eli delta 27 farah grove 15
alice juniper 8 eli juniper 99 bruno cobalt 81 jules indigo 65 dina juniper 99 kim cobalt 87 eli fable 38 jules birch 25
alice juniper 8 eli juniper 99 bruno cobalt 81 jules indigo 65 dina juniper 99 kim cobalt 87 eli fable 38 jules birch 25
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013878
qwen/qwen3.7-plus
awkweave-0013879
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
alice ember 56 active gus delta 56 paused jules ember 101 pending chen cobalt 47 pending hana ember 63 paused jules grove 101 pending gus delta 113 ready kim birch 36 paused
jules ember 101 pending
gus indigo 55 active eli birch 48 failed lina juniper 84 pending dina juniper 107 closed hana harbor 111 closed chen delta 37 closed kim juniper 81 closed
lina juniper 84 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013879-p1
Identify and output 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}
alice ember 56 active gus delta 56 paused jules ember 101 pending chen cobalt 47 pending hana ember 63 paused jules grove 101 pending gus delta 113 ready kim birch 36 paused
jules ember 101 pending
gus indigo 55 active eli birch 48 failed lina juniper 84 pending dina juniper 107 closed hana harbor 111 closed chen delta 37 closed kim juniper 81 closed
lina juniper 84 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013879
qwen/qwen3.7-plus
awkweave-0013880
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
alice 87 kim 21 chen 27 bruno 80 bruno 113 alice 108 eli 4 bruno 64 alice 79
alice 87 chen 27 bruno 113 eli 4 alice 79
chen 112 lina 32 lina 78 lina 21 lina 6 eli 85 chen 20 bruno 54 hana 3 lina 82
chen 112 lina 78 lina 6 chen 20 hana 3
every_nth
1
train
original-grammar
CC-BY-4.0
null
null