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-0041051-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
delta_juniper 119 grove_birch 91 birch_harbor 69 fable_harbor 80 indigo_indigo 30 grove_harbor 55
delta juniper grove birch birch harbor fable harbor indigo indigo grove harbor
grove_fable 29 birch_grove 106 ember_amber 53 delta_fable 35 juniper_birch 108 juniper_juniper 110 amber_amber 82 cobalt_grove 96 delta_cobalt 24
grove fable birch grove ember amber delta fable juniper birch juniper juniper amber amber cobalt grove delta cobalt
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041051
qwen/qwen3.7-plus
awkweave-0041052
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 indigo 39 paused ivan harbor 113 active alice cobalt 34 pending gus ember 88 pending farah indigo 31 active hana cobalt 40 closed gus delta 38 closed dina amber 45 paused
paused 39 indigo dina active 113 harbor ivan pending 34 cobalt alice pending 88 ember gus active 31 indigo farah closed 40 cobalt hana closed 38 delta gus paused 45 amber dina
alice amber 31 closed farah ember 24 closed dina amber 99 failed dina harbor 66 active jules birch 61 pending jules juniper 83 ready jules amber 55 ready
closed 31 amber alice closed 24 ember farah failed 99 amber dina active 66 harbor dina pending 61 birch jules ready 83 juniper jules ready 55 amber jules
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041052-p1
Reverse the sequence of fields for each line and print all of them.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
dina indigo 39 paused ivan harbor 113 active alice cobalt 34 pending gus ember 88 pending farah indigo 31 active hana cobalt 40 closed gus delta 38 closed dina amber 45 paused
paused 39 indigo dina active 113 harbor ivan pending 34 cobalt alice pending 88 ember gus active 31 indigo farah closed 40 cobalt hana closed 38 delta gus paused 45 amber dina
alice amber 31 closed farah ember 24 closed dina amber 99 failed dina harbor 66 active jules birch 61 pending jules juniper 83 ready jules amber 55 ready
closed 31 amber alice closed 24 ember farah failed 99 amber dina active 66 harbor dina pending 61 birch jules ready 83 juniper jules ready 55 amber jules
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041052
qwen/qwen3.7-plus
awkweave-0041053
Print the number of whitespace-separated fields on each line.
{print NF}
gus ember 81 closed dina delta 57 ready farah amber 115 paused hana grove 101 failed alice amber 93 failed dina amber 49 failed jules birch 42 active dina harbor 111 active hana grove 29 pending
4 4 4 4 4 4 4 4 4
ivan harbor 99 ready chen amber 74 failed farah grove 26 closed chen indigo 7 closed hana cobalt 7 active hana indigo 110 paused
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041053-p1
Display the count of whitespace-delimited fields for every line.
{print NF}
gus ember 81 closed dina delta 57 ready farah amber 115 paused hana grove 101 failed alice amber 93 failed dina amber 49 failed jules birch 42 active dina harbor 111 active hana grove 29 pending
4 4 4 4 4 4 4 4 4
ivan harbor 99 ready chen amber 74 failed farah grove 26 closed chen indigo 7 closed hana cobalt 7 active hana indigo 110 paused
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041053
qwen/qwen3.7-plus
awkweave-0041054
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]]}
chen beta 3 chen delta 48 chen gamma 103 jules alpha 112 bruno alpha 118 lina delta 50
beta 1 delta 2 gamma 1 alpha 2
jules gamma 38 ivan delta 51 chen alpha 85 bruno alpha 52 ivan gamma 23 lina beta 81 alice alpha 54
gamma 2 delta 1 alpha 3 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041054-p1
Tally the records for each unique value in the second column and print the value alongside its count, maintaining the order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
chen beta 3 chen delta 48 chen gamma 103 jules alpha 112 bruno alpha 118 lina delta 50
beta 1 delta 2 gamma 1 alpha 2
jules gamma 38 ivan delta 51 chen alpha 85 bruno alpha 52 ivan gamma 23 lina beta 81 alice alpha 54
gamma 2 delta 1 alpha 3 beta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041054
qwen/qwen3.7-plus
awkweave-0041055
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
eli gamma 23 alice gamma 20 hana delta 21 farah alpha 29 eli gamma 19 bruno alpha 4
gamma 62 delta 21 alpha 33
bruno delta 16 ivan beta 16 dina beta 2 chen gamma 30 bruno alpha 22 dina beta 2 eli gamma 13
delta 16 beta 20 gamma 43 alpha 22
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041055-p1
Calculate the sum of the third column grouped by the second column, printing the results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
eli gamma 23 alice gamma 20 hana delta 21 farah alpha 29 eli gamma 19 bruno alpha 4
gamma 62 delta 21 alpha 33
bruno delta 16 ivan beta 16 dina beta 2 chen gamma 30 bruno alpha 22 dina beta 2 eli gamma 13
delta 16 beta 20 gamma 43 alpha 22
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041055
qwen/qwen3.7-plus
awkweave-0041056
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta juniper 54 beta indigo 75 gamma birch 0 delta fable 103 beta ember 0 beta cobalt 67 beta harbor 34 alpha delta 50 delta ember 119
beta 5 delta 2
delta grove 104 alpha delta 55 beta indigo 102 gamma delta 92 gamma harbor 20 alpha indigo 40 alpha birch 0
alpha 3 gamma 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041056-p1
List each duplicate value from the first column along with its frequency, sorted 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 juniper 54 beta indigo 75 gamma birch 0 delta fable 103 beta ember 0 beta cobalt 67 beta harbor 34 alpha delta 50 delta ember 119
beta 5 delta 2
delta grove 104 alpha delta 55 beta indigo 102 gamma delta 92 gamma harbor 20 alpha indigo 40 alpha birch 0
alpha 3 gamma 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041056
qwen/qwen3.7-plus
awkweave-0041057
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 record_id region state r001 farah 6 active r002 alice 2 ready r003 alice 7 paused r004 ivan 23 pending r005 hana 16 active r006 alice 23 closed r007 farah 3 active r008 gus 26 ready
active ready paused pending active closed active ready
score record_id region state r001 kim 6 failed r002 jules 2 closed r003 lina 29 pending r004 eli 3 pending r005 hana 24 failed r006 lina 9 active r007 kim 23 pending
failed closed pending pending failed active pending
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041057-p1
Treating the first row as a header, output the state column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
score record_id region state r001 farah 6 active r002 alice 2 ready r003 alice 7 paused r004 ivan 23 pending r005 hana 16 active r006 alice 23 closed r007 farah 3 active r008 gus 26 ready
active ready paused pending active closed active ready
score record_id region state r001 kim 6 failed r002 jules 2 closed r003 lina 29 pending r004 eli 3 pending r005 hana 24 failed r006 lina 9 active r007 kim 23 pending
failed closed pending pending failed active pending
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041057
qwen/qwen3.7-plus
awkweave-0041058
The first row is a header. Print display_name for data rows whose score is greater than 15.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>15{print $h["display_name"]}
record_id display_name score state r001 lina 21 closed r002 gus 8 failed r003 gus 1 paused r004 jules 17 active r005 alice 21 closed r006 gus 18 paused r007 lina 16 active r008 ivan 11 active r009 alice 13 paused r010 ivan 3 ready
lina jules alice gus lina
record_id display_name score state r001 gus 14 active r002 kim 16 closed r003 farah 2 ready r004 hana 20 closed r005 dina 27 paused r006 bruno 26 paused r007 bruno 8 failed r008 farah 9 failed r009 ivan 26 active r010 kim 1 ready
kim hana dina bruno ivan
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041058-p1
With the first row as a header, print the display_name for data rows where the score exceeds 15.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>15{print $h["display_name"]}
record_id display_name score state r001 lina 21 closed r002 gus 8 failed r003 gus 1 paused r004 jules 17 active r005 alice 21 closed r006 gus 18 paused r007 lina 16 active r008 ivan 11 active r009 alice 13 paused r010 ivan 3 ready
lina jules alice gus lina
record_id display_name score state r001 gus 14 active r002 kim 16 closed r003 farah 2 ready r004 hana 20 closed r005 dina 27 paused r006 bruno 26 paused r007 bruno 8 failed r008 farah 9 failed r009 ivan 26 active r010 kim 1 ready
kim hana dina bruno ivan
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041058
qwen/qwen3.7-plus
awkweave-0041059
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
hana 27 pending lina 18 ready dina 9 ready chen 7 pending hana 16 ready gus 30 ready
hana lina dina chen hana gus
farah 1 closed ivan 6 active dina 12 failed bruno 23 ready ivan 27 pending chen 6 failed bruno 20 ready bruno 28 failed chen 5 failed
farah ivan dina bruno ivan chen bruno bruno chen
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041059-p1
Given tab-separated input, output the first column for every record.
BEGIN{FS=OFS="\t"}{print $1}
hana 27 pending lina 18 ready dina 9 ready chen 7 pending hana 16 ready gus 30 ready
hana lina dina chen hana gus
farah 1 closed ivan 6 active dina 12 failed bruno 23 ready ivan 27 pending chen 6 failed bruno 20 ready bruno 28 failed chen 5 failed
farah ivan dina bruno ivan chen bruno bruno chen
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041059
qwen/qwen3.7-plus
awkweave-0041060
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 19.
BEGIN{FS=OFS=","}$2>19{print $1}
gus,12,active ivan,17,closed jules,26,failed hana,4,ready lina,24,paused gus,17,closed gus,13,active chen,23,active dina,20,closed ivan,26,paused
jules lina chen dina ivan
chen,15,ready bruno,15,ready dina,8,pending hana,12,paused farah,10,closed eli,6,ready
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041060-p1
Given comma-separated input without quoted commas, output the first column whenever the second column is greater than 19.
BEGIN{FS=OFS=","}$2>19{print $1}
gus,12,active ivan,17,closed jules,26,failed hana,4,ready lina,24,paused gus,17,closed gus,13,active chen,23,active dina,20,closed ivan,26,paused
jules lina chen dina ivan
chen,15,ready bruno,15,ready dina,8,pending hana,12,paused farah,10,closed eli,6,ready
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041060
qwen/qwen3.7-plus
awkweave-0041061
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
kim cobalt 32 chen fable 17 alice amber 83 eli grove 96 eli cobalt 38 farah grove 27
kim cobalt 32 chen fable 17 alice amber 83 eli grove 96 eli cobalt 38 farah grove 27
chen delta 81 eli birch 83 dina harbor 116 lina amber 42 gus delta 10 jules delta 44 jules juniper 68 alice amber 77 bruno grove 112
chen delta 81 eli birch 83 dina harbor 116 lina amber 42 gus delta 10 jules delta 44 jules juniper 68 alice amber 77 bruno grove 112
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041061-p1
Remove leading and trailing whitespace, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
kim cobalt 32 chen fable 17 alice amber 83 eli grove 96 eli cobalt 38 farah grove 27
kim cobalt 32 chen fable 17 alice amber 83 eli grove 96 eli cobalt 38 farah grove 27
chen delta 81 eli birch 83 dina harbor 116 lina amber 42 gus delta 10 jules delta 44 jules juniper 68 alice amber 77 bruno grove 112
chen delta 81 eli birch 83 dina harbor 116 lina amber 42 gus delta 10 jules delta 44 jules juniper 68 alice amber 77 bruno grove 112
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041061
qwen/qwen3.7-plus
awkweave-0041062
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
lina harbor 92 paused ivan cobalt 3 pending chen birch 72 active hana birch 5 closed bruno ember 111 active gus ember 49 pending eli harbor 84 failed chen juniper 20 pending farah delta 10 ready kim indigo 60 closed
chen juniper 20 pending
bruno amber 42 active kim indigo 108 closed ivan cobalt 120 ready jules juniper 56 active lina fable 1 closed dina cobalt 5 closed
jules juniper 56 active
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041062-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}
lina harbor 92 paused ivan cobalt 3 pending chen birch 72 active hana birch 5 closed bruno ember 111 active gus ember 49 pending eli harbor 84 failed chen juniper 20 pending farah delta 10 ready kim indigo 60 closed
chen juniper 20 pending
bruno amber 42 active kim indigo 108 closed ivan cobalt 120 ready jules juniper 56 active lina fable 1 closed dina cobalt 5 closed
jules juniper 56 active
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041062
qwen/qwen3.7-plus
awkweave-0041063
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
ivan 43 chen 82 dina 34 kim 51 lina 106 bruno 65
ivan 43 dina 34 lina 106
farah 90 farah 89 hana 91 jules 69 chen 5 jules 13 bruno 5 farah 7 hana 46
farah 90 hana 91 chen 5 bruno 5 hana 46
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041063-p1
Output every other line beginning with the first line (i.e., lines 1, 3, 5, etc.).
NR%2==1
ivan 43 chen 82 dina 34 kim 51 lina 106 bruno 65
ivan 43 dina 34 lina 106
farah 90 farah 89 hana 91 jules 69 chen 5 jules 13 bruno 5 farah 7 hana 46
farah 90 hana 91 chen 5 bruno 5 hana 46
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041063
qwen/qwen3.7-plus
awkweave-0041064
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
gamma harbor 91 alpha cobalt 50 beta grove 117 beta amber 15 beta grove 73 delta fable 46 alpha indigo 84 alpha birch 60 beta grove 107
4
beta cobalt 4 alpha harbor 108 delta birch 43 alpha grove 73 delta ember 69 gamma cobalt 32 beta grove 44 delta cobalt 43 beta fable 114
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041064-p1
Calculate the number of unique values in the first column and output only that total count.
{if(!seen[$1]++)n++}END{print n+0}
gamma harbor 91 alpha cobalt 50 beta grove 117 beta amber 15 beta grove 73 delta fable 46 alpha indigo 84 alpha birch 60 beta grove 107
4
beta cobalt 4 alpha harbor 108 delta birch 43 alpha grove 73 delta ember 69 gamma cobalt 32 beta grove 44 delta cobalt 43 beta fable 114
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041064
qwen/qwen3.7-plus
awkweave-0041065
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 4 0 lina 18 17 lina 12 14 hana 9 23 alice 29 14 lina 29 27
lina 1.06 lina 0.86 hana 0.39 alice 2.07 lina 1.07
jules 20 0 farah 27 22 bruno 16 19 lina 19 11 gus 26 17 kim 7 22 farah 14 27 jules 24 4
farah 1.23 bruno 0.84 lina 1.73 gus 1.53 kim 0.32 farah 0.52 jules 6.00
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041065-p1
For each row where the third column is not zero, output the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 4 0 lina 18 17 lina 12 14 hana 9 23 alice 29 14 lina 29 27
lina 1.06 lina 0.86 hana 0.39 alice 2.07 lina 1.07
jules 20 0 farah 27 22 bruno 16 19 lina 19 11 gus 26 17 kim 7 22 farah 14 27 jules 24 4
farah 1.23 bruno 0.84 lina 1.73 gus 1.53 kim 0.32 farah 0.52 jules 6.00
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041065
qwen/qwen3.7-plus
awkweave-0041066
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]}
lina indigo 17 kim cobalt 5 jules cobalt 8 gus delta 16 eli grove 19 lina fable 26 alice delta 3 bruno juniper 16 chen birch 20 bruno delta 4
lina fable 26 chen birch 20 eli grove 19
chen amber 24 jules indigo 28 lina delta 8 gus harbor 22 dina harbor 29 eli ember 3 hana birch 5
dina harbor 29 jules indigo 28 chen amber 24
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041066-p1
Output the three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
lina indigo 17 kim cobalt 5 jules cobalt 8 gus delta 16 eli grove 19 lina fable 26 alice delta 3 bruno juniper 16 chen birch 20 bruno delta 4
lina fable 26 chen birch 20 eli grove 19
chen amber 24 jules indigo 28 lina delta 8 gus harbor 22 dina harbor 29 eli ember 3 hana birch 5
dina harbor 29 jules indigo 28 chen amber 24
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041066
qwen/qwen3.7-plus
awkweave-0041067
Select the 6th and 5th fields in that order.
{print $6, $5}
fable 51 fable kim active chen birch 13 juniper ivan failed chen ember 77 grove eli paused farah cobalt 44 grove dina pending ivan cobalt 65 ember jules paused gus fable 30 fable gus closed hana grove 41 amber kim active hana cobalt 27 ember jules paused farah birch 63 harbor gus pending jules delta 74 amber gus pendin...
chen active chen failed farah paused ivan pending gus paused hana closed hana active farah paused jules pending jules pending
fable 17 fable farah ready kim fable 94 birch ivan active alice harbor 26 amber kim ready jules amber 65 delta kim ready hana fable 105 harbor lina pending kim delta 27 birch alice pending farah ember 111 fable eli pending gus grove 25 amber gus closed hana birch 53 birch farah failed alice
kim ready alice active jules ready hana ready kim pending farah pending gus pending hana closed alice failed
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041067-p1
Extract and display the 6th field followed by the 5th field, in that specific order.
{print $6, $5}
fable 51 fable kim active chen birch 13 juniper ivan failed chen ember 77 grove eli paused farah cobalt 44 grove dina pending ivan cobalt 65 ember jules paused gus fable 30 fable gus closed hana grove 41 amber kim active hana cobalt 27 ember jules paused farah birch 63 harbor gus pending jules delta 74 amber gus pendin...
chen active chen failed farah paused ivan pending gus paused hana closed hana active farah paused jules pending jules pending
fable 17 fable farah ready kim fable 94 birch ivan active alice harbor 26 amber kim ready jules amber 65 delta kim ready hana fable 105 harbor lina pending kim delta 27 birch alice pending farah ember 111 fable eli pending gus grove 25 amber gus closed hana birch 53 birch farah failed alice
kim ready alice active jules ready hana ready kim pending farah pending gus pending hana closed alice failed
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041067
qwen/qwen3.7-plus
awkweave-0041068
Print the last field of every input line.
{print $NF}
hana chen birch 13 farah bruno amber 1 dina hana fable 65 dina chen harbor 107 hana lina juniper 53 dina gus fable 103 eli bruno ember 9 jules chen ember 78 hana dina birch 37
13 1 65 107 53 103 9 78 37
hana alice delta 50 eli alice cobalt 52 eli gus fable 89 bruno gus harbor 63 kim gus birch 23 hana dina harbor 39
50 52 89 63 23 39
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041068-p1
Output the final field from every line of input.
{print $NF}
hana chen birch 13 farah bruno amber 1 dina hana fable 65 dina chen harbor 107 hana lina juniper 53 dina gus fable 103 eli bruno ember 9 jules chen ember 78 hana dina birch 37
13 1 65 107 53 103 9 78 37
hana alice delta 50 eli alice cobalt 52 eli gus fable 89 bruno gus harbor 63 kim gus birch 23 hana dina harbor 39
50 52 89 63 23 39
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041068
qwen/qwen3.7-plus
awkweave-0041069
Print the complete records where column 4 is at most 63.
$4 <= 63
amber paused farah 86 dina juniper paused gus 95 alice indigo closed gus 22 alice amber active farah 62 farah juniper paused lina 82 lina birch closed eli 102 farah
indigo closed gus 22 alice amber active farah 62 farah
indigo failed hana 9 chen ember failed alice 30 eli grove pending eli 79 farah harbor paused bruno 82 chen cobalt failed lina 61 gus indigo closed jules 27 kim birch pending eli 71 hana
indigo failed hana 9 chen ember failed alice 30 eli cobalt failed lina 61 gus indigo closed jules 27 kim
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041069-p1
Print the full records for which the value in column 4 is less than or equal to 63.
$4 <= 63
amber paused farah 86 dina juniper paused gus 95 alice indigo closed gus 22 alice amber active farah 62 farah juniper paused lina 82 lina birch closed eli 102 farah
indigo closed gus 22 alice amber active farah 62 farah
indigo failed hana 9 chen ember failed alice 30 eli grove pending eli 79 farah harbor paused bruno 82 chen cobalt failed lina 61 gus indigo closed jules 27 kim birch pending eli 71 hana
indigo failed hana 9 chen ember failed alice 30 eli cobalt failed lina 61 gus indigo closed jules 27 kim
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041069
qwen/qwen3.7-plus
awkweave-0041070
Show whole lines whose 3rd field is between 3 and 28, inclusive.
$3 >= 3 && $3 <= 28
ivan bruno 13 cobalt kim chen 8 harbor chen chen 2 indigo alice hana 17 amber jules bruno 8 amber kim farah 26 indigo
ivan bruno 13 cobalt kim chen 8 harbor alice hana 17 amber jules bruno 8 amber kim farah 26 indigo
ivan eli 2 grove farah chen 10 birch jules ivan 8 amber gus eli 12 birch farah eli 13 amber alice lina 23 amber ivan ivan 23 amber
farah chen 10 birch jules ivan 8 amber gus eli 12 birch farah eli 13 amber alice lina 23 amber ivan ivan 23 amber
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041070-p1
Display entire lines where the third field has a value between 3 and 28, inclusive.
$3 >= 3 && $3 <= 28
ivan bruno 13 cobalt kim chen 8 harbor chen chen 2 indigo alice hana 17 amber jules bruno 8 amber kim farah 26 indigo
ivan bruno 13 cobalt kim chen 8 harbor alice hana 17 amber jules bruno 8 amber kim farah 26 indigo
ivan eli 2 grove farah chen 10 birch jules ivan 8 amber gus eli 12 birch farah eli 13 amber alice lina 23 amber ivan ivan 23 amber
farah chen 10 birch jules ivan 8 amber gus eli 12 birch farah eli 13 amber alice lina 23 amber ivan ivan 23 amber
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041070
qwen/qwen3.7-plus
awkweave-0041071
Print column 2 only for rows where column 3 is exactly ready.
$3 == "ready"{print $2}
cobalt lina ready 50 fable ivan active 70 juniper lina failed 48 harbor dina failed 7 indigo eli ready 113 amber jules paused 98 fable hana ready 47
lina eli hana
fable hana pending 90 amber chen active 42 birch gus ready 52 grove eli ready 47 cobalt chen paused 109 grove kim active 110 fable dina pending 107 cobalt lina paused 27 indigo dina paused 27
gus eli
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041071-p1
Output only the second column for rows where the third column contains the exact string 'ready'.
$3 == "ready"{print $2}
cobalt lina ready 50 fable ivan active 70 juniper lina failed 48 harbor dina failed 7 indigo eli ready 113 amber jules paused 98 fable hana ready 47
lina eli hana
fable hana pending 90 amber chen active 42 birch gus ready 52 grove eli ready 47 cobalt chen paused 109 grove kim active 110 fable dina pending 107 cobalt lina paused 27 indigo dina paused 27
gus eli
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041071
qwen/qwen3.7-plus
awkweave-0041072
Print all fields from lines where field 2 begins with WARN.
$2 ~ /^WARN/
ember ERROR 55 amber DEBUG 105 harbor INFO 65 ember WARN 17 indigo INFO 79 juniper WARN 5 delta WARN 2
ember WARN 17 juniper WARN 5 delta WARN 2
grove ERROR 10 harbor ERROR 18 ember DEBUG 17 indigo INFO 28 grove DEBUG 57 delta INFO 31 ember WARN 83 delta ERROR 99
ember WARN 83
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041072-p1
Display every field from rows where the second field starts with WARN.
$2 ~ /^WARN/
ember ERROR 55 amber DEBUG 105 harbor INFO 65 ember WARN 17 indigo INFO 79 juniper WARN 5 delta WARN 2
ember WARN 17 juniper WARN 5 delta WARN 2
grove ERROR 10 harbor ERROR 18 ember DEBUG 17 indigo INFO 28 grove DEBUG 57 delta INFO 31 ember WARN 83 delta ERROR 99
ember WARN 83
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041072
qwen/qwen3.7-plus
awkweave-0041073
Print every line except those containing the exact text juniper.
$0 !~ /juniper/
birch 32 pending harbor 117 failed birch 100 failed fable 25 failed fable 97 pending juniper 52 active juniper 999 active
birch 32 pending harbor 117 failed birch 100 failed fable 25 failed fable 97 pending
cobalt 59 active amber 39 active harbor 29 failed amber 75 failed harbor 116 paused fable 58 failed juniper 72 pending ember 83 active juniper 999 active
cobalt 59 active amber 39 active harbor 29 failed amber 75 failed harbor 116 paused fable 58 failed ember 83 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041073-p1
Output all lines that do not contain the exact string juniper.
$0 !~ /juniper/
birch 32 pending harbor 117 failed birch 100 failed fable 25 failed fable 97 pending juniper 52 active juniper 999 active
birch 32 pending harbor 117 failed birch 100 failed fable 25 failed fable 97 pending
cobalt 59 active amber 39 active harbor 29 failed amber 75 failed harbor 116 paused fable 58 failed juniper 72 pending ember 83 active juniper 999 active
cobalt 59 active amber 39 active harbor 29 failed amber 75 failed harbor 116 paused fable 58 failed ember 83 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041073
qwen/qwen3.7-plus
awkweave-0041074
Print lines 4 through 6, including both endpoints.
NR >= 4 && NR <= 6
hana fable 68 lina cobalt 96 farah juniper 101 jules juniper 55 alice delta 71 hana delta 38
jules juniper 55 alice delta 71 hana delta 38
gus amber 25 hana fable 93 alice fable 34 hana birch 78 alice fable 61 kim ember 3 farah ember 83 jules ember 82 alice delta 28
hana birch 78 alice fable 61 kim ember 3
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041074-p1
Print lines 4 to 6, inclusive of both the start and end lines.
NR >= 4 && NR <= 6
hana fable 68 lina cobalt 96 farah juniper 101 jules juniper 55 alice delta 71 hana delta 38
jules juniper 55 alice delta 71 hana delta 38
gus amber 25 hana fable 93 alice fable 34 hana birch 78 alice fable 61 kim ember 3 farah ember 83 jules ember 82 alice delta 28
hana birch 78 alice fable 61 kim ember 3
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041074
qwen/qwen3.7-plus
awkweave-0041075
Output only the first 3 records.
NR <= 3
lina 37 delta bruno 21 indigo hana 39 cobalt ivan 18 cobalt lina 68 ember ivan 97 ember gus 24 juniper kim 41 delta jules 94 delta bruno 13 fable
lina 37 delta bruno 21 indigo hana 39 cobalt
gus 4 cobalt jules 40 amber bruno 100 ember dina 84 fable bruno 119 indigo jules 72 amber kim 16 fable kim 91 indigo kim 56 fable bruno 97 cobalt
gus 4 cobalt jules 40 amber bruno 100 ember
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041075-p1
Show only the first 3 records.
NR <= 3
lina 37 delta bruno 21 indigo hana 39 cobalt ivan 18 cobalt lina 68 ember ivan 97 ember gus 24 juniper kim 41 delta jules 94 delta bruno 13 fable
lina 37 delta bruno 21 indigo hana 39 cobalt
gus 4 cobalt jules 40 amber bruno 100 ember dina 84 fable bruno 119 indigo jules 72 amber kim 16 fable kim 91 indigo kim 56 fable bruno 97 cobalt
gus 4 cobalt jules 40 amber bruno 100 ember
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041075
qwen/qwen3.7-plus
awkweave-0041076
Skip the first line and print every remaining line unchanged.
NR > 1
kim 9 birch gus 7 juniper hana 68 indigo dina 46 amber bruno 8 birch kim 71 grove bruno 62 indigo alice 100 birch
gus 7 juniper hana 68 indigo dina 46 amber bruno 8 birch kim 71 grove bruno 62 indigo alice 100 birch
gus 63 grove jules 28 fable dina 3 juniper kim 7 harbor gus 63 amber gus 1 birch farah 0 amber dina 24 indigo
jules 28 fable dina 3 juniper kim 7 harbor gus 63 amber gus 1 birch farah 0 amber dina 24 indigo
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041076-p1
Omit the first line and print the rest of the lines as they are.
NR > 1
kim 9 birch gus 7 juniper hana 68 indigo dina 46 amber bruno 8 birch kim 71 grove bruno 62 indigo alice 100 birch
gus 7 juniper hana 68 indigo dina 46 amber bruno 8 birch kim 71 grove bruno 62 indigo alice 100 birch
gus 63 grove jules 28 fable dina 3 juniper kim 7 harbor gus 63 amber gus 1 birch farah 0 amber dina 24 indigo
jules 28 fable dina 3 juniper kim 7 harbor gus 63 amber gus 1 birch farah 0 amber dina 24 indigo
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041076
qwen/qwen3.7-plus
awkweave-0041077
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
alice failed 97 kim pending 14 bruno pending 15 farah paused 112 hana paused 77 jules active 11 jules ready 13 farah paused 113 gus closed 16 lina failed 31
2
kim active 106 lina ready 29 hana paused 14 gus paused 58 farah active 97 alice closed 36 bruno failed 55 chen closed 103 kim ready 104 alice paused 95
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041077-p1
Count the number of records with pending in the second column; output 0 if none exist.
$2 == "pending"{n++}END{print n+0}
alice failed 97 kim pending 14 bruno pending 15 farah paused 112 hana paused 77 jules active 11 jules ready 13 farah paused 113 gus closed 16 lina failed 31
2
kim active 106 lina ready 29 hana paused 14 gus paused 58 farah active 97 alice closed 36 bruno failed 55 chen closed 103 kim ready 104 alice paused 95
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041077
qwen/qwen3.7-plus
awkweave-0041078
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
harbor alice 15 ember eli 30 birch bruno 18 birch bruno 4 amber bruno 5 indigo alice 20 delta lina 6 cobalt chen 23
121
ember ivan 21 fable jules 4 delta eli 24 cobalt dina 4 grove bruno 14 harbor jules 23
90
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041078-p1
Compute and display the total sum of integer values in the third column.
{s+=$3}END{print s+0}
harbor alice 15 ember eli 30 birch bruno 18 birch bruno 4 amber bruno 5 indigo alice 20 delta lina 6 cobalt chen 23
121
ember ivan 21 fable jules 4 delta eli 24 cobalt dina 4 grove bruno 14 harbor jules 23
90
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041078
qwen/qwen3.7-plus
awkweave-0041079
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
dina fable 5 dina delta 26 bruno delta 30 eli harbor 16 chen birch 28 alice fable 29 chen birch 25 kim amber 14 ivan grove 21 kim ember 4
19.80
bruno fable 21 kim amber 8 farah fable 3 kim indigo 18 lina harbor 1 hana juniper 22
12.17
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041079-p1
Print the average of the values in column 3, formatted to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
dina fable 5 dina delta 26 bruno delta 30 eli harbor 16 chen birch 28 alice fable 29 chen birch 25 kim amber 14 ivan grove 21 kim ember 4
19.80
bruno fable 21 kim amber 8 farah fable 3 kim indigo 18 lina harbor 1 hana juniper 22
12.17
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041079
qwen/qwen3.7-plus
awkweave-0041080
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
25 hana ember 13 chen indigo 6 gus grove 14 alice birch 19 ivan indigo 19 dina grove 12 gus birch 12 eli fable 6 farah indigo
6
15 jules delta 26 farah cobalt 25 gus amber 4 chen amber 4 ivan ember 18 alice indigo
4
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041080-p1
Identify and output the minimum numeric value found in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
25 hana ember 13 chen indigo 6 gus grove 14 alice birch 19 ivan indigo 19 dina grove 12 gus birch 12 eli fable 6 farah indigo
6
15 jules delta 26 farah cobalt 25 gus amber 4 chen amber 4 ivan ember 18 alice indigo
4
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041080
qwen/qwen3.7-plus
awkweave-0041081
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
16 ember lina 12 ember bruno 29 ember farah 10 amber farah 15 cobalt gus 26 birch lina 3 delta eli 17 ember kim 7 ember hana 4 fable farah
29
29 fable gus 28 ember farah 5 cobalt farah 8 cobalt farah 1 amber chen 10 grove kim 11 amber chen
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041081-p1
Identify and output the maximum numeric value found in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
16 ember lina 12 ember bruno 29 ember farah 10 amber farah 15 cobalt gus 26 birch lina 3 delta eli 17 ember kim 7 ember hana 4 fable farah
29
29 fable gus 28 ember farah 5 cobalt farah 8 cobalt farah 1 amber chen 10 grove kim 11 amber chen
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041081
qwen/qwen3.7-plus
awkweave-0041082
Count all input records and print the total.
END{print NR}
hana 60 kim 87 jules 16 alice 57 hana 18 dina 8 jules 104 farah 104 eli 11 chen 97
10
hana 19 kim 102 hana 94 bruno 85 gus 106 gus 73 bruno 65 alice 57 eli 109
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041082-p1
Count the total number of input records and print the result.
END{print NR}
hana 60 kim 87 jules 16 alice 57 hana 18 dina 8 jules 104 farah 104 eli 11 chen 97
10
hana 19 kim 102 hana 94 bruno 85 gus 106 gus 73 bruno 65 alice 57 eli 109
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041082
qwen/qwen3.7-plus
awkweave-0041083
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
chen ember 5 chen delta 34 gus indigo 79 eli ember 87 lina fable 53 eli juniper 107 lina fable 53 ivan ember 92 jules fable 96 chen indigo 6
chen ember 5 chen delta 34 gus indigo 79 eli ember 87 lina fable 53 eli juniper 107 ivan ember 92 jules fable 96 chen indigo 6
hana indigo 6 gus fable 26 alice amber 69 gus birch 54 farah juniper 117 gus fable 26 dina harbor 10 lina birch 102 kim amber 108 gus ember 120 eli juniper 88
hana indigo 6 gus fable 26 alice amber 69 gus birch 54 farah juniper 117 dina harbor 10 lina birch 102 kim amber 108 gus ember 120 eli juniper 88
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041083-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
chen ember 5 chen delta 34 gus indigo 79 eli ember 87 lina fable 53 eli juniper 107 lina fable 53 ivan ember 92 jules fable 96 chen indigo 6
chen ember 5 chen delta 34 gus indigo 79 eli ember 87 lina fable 53 eli juniper 107 ivan ember 92 jules fable 96 chen indigo 6
hana indigo 6 gus fable 26 alice amber 69 gus birch 54 farah juniper 117 gus fable 26 dina harbor 10 lina birch 102 kim amber 108 gus ember 120 eli juniper 88
hana indigo 6 gus fable 26 alice amber 69 gus birch 54 farah juniper 117 dina harbor 10 lina birch 102 kim amber 108 gus ember 120 eli juniper 88
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041083
qwen/qwen3.7-plus
awkweave-0041084
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
bruno fable 73 jules juniper 52 alice indigo 110 bruno harbor 116 bruno ember 41 ivan cobalt 110 bruno amber 74 ivan birch 103
bruno fable 73 jules juniper 52 alice indigo 110 bruno harbor 116 bruno ember 41 ivan cobalt 110 bruno amber 74 ivan birch 103
alice amber 53 farah indigo 24 eli grove 50 lina delta 30 dina harbor 26 dina indigo 45 gus fable 81 gus harbor 74 hana ember 96
alice amber 53 farah indigo 24 eli grove 50 lina delta 30 dina harbor 26 gus fable 81 hana ember 96
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041084-p1
For every unique value in column 2, output only the first occurrence while maintaining the original input order.
!seen[$2]++
bruno fable 73 jules juniper 52 alice indigo 110 bruno harbor 116 bruno ember 41 ivan cobalt 110 bruno amber 74 ivan birch 103
bruno fable 73 jules juniper 52 alice indigo 110 bruno harbor 116 bruno ember 41 ivan cobalt 110 bruno amber 74 ivan birch 103
alice amber 53 farah indigo 24 eli grove 50 lina delta 30 dina harbor 26 dina indigo 45 gus fable 81 gus harbor 74 hana ember 96
alice amber 53 farah indigo 24 eli grove 50 lina delta 30 dina harbor 26 gus fable 81 hana ember 96
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041084
qwen/qwen3.7-plus
awkweave-0041085
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
bruno 12 harbor farah 10 juniper lina 14 juniper bruno 10 indigo hana 17 ember alice 12 harbor bruno 4 grove hana 28 ember
bruno 12 farah 22 lina 36 bruno 46 hana 63 alice 75 bruno 79 hana 107
alice 22 harbor jules 8 amber dina 30 indigo ivan 28 grove alice 27 delta dina 18 harbor
alice 22 jules 30 dina 60 ivan 88 alice 115 dina 133
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041085-p1
Output column 1 and the cumulative sum of column 2 for each record, separated by a space.
{s+=$2;print $1,s}
bruno 12 harbor farah 10 juniper lina 14 juniper bruno 10 indigo hana 17 ember alice 12 harbor bruno 4 grove hana 28 ember
bruno 12 farah 22 lina 36 bruno 46 hana 63 alice 75 bruno 79 hana 107
alice 22 harbor jules 8 amber dina 30 indigo ivan 28 grove alice 27 delta dina 18 harbor
alice 22 jules 30 dina 60 ivan 88 alice 115 dina 133
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041085
qwen/qwen3.7-plus
awkweave-0041086
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
ivan 24 17 indigo chen 27 14 delta lina 1 29 delta bruno 10 23 indigo bruno 12 4 ember ivan 12 13 fable chen 13 30 grove alice 23 13 indigo alice 14 18 birch farah 16 14 amber
ivan 41 chen 41 lina 30 bruno 33 bruno 16 ivan 25 chen 43 alice 36 alice 32 farah 30
alice 25 12 birch chen 18 26 indigo gus 10 20 indigo lina 12 28 fable farah 2 7 birch chen 27 30 juniper jules 25 1 harbor lina 19 25 fable eli 10 26 indigo
alice 37 chen 44 gus 30 lina 40 farah 9 chen 57 jules 26 lina 44 eli 36
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041086-p1
Print field 1 followed by the sum of fields 2 and 3 for each row.
{print $1,$2+$3}
ivan 24 17 indigo chen 27 14 delta lina 1 29 delta bruno 10 23 indigo bruno 12 4 ember ivan 12 13 fable chen 13 30 grove alice 23 13 indigo alice 14 18 birch farah 16 14 amber
ivan 41 chen 41 lina 30 bruno 33 bruno 16 ivan 25 chen 43 alice 36 alice 32 farah 30
alice 25 12 birch chen 18 26 indigo gus 10 20 indigo lina 12 28 fable farah 2 7 birch chen 27 30 juniper jules 25 1 harbor lina 19 25 fable eli 10 26 indigo
alice 37 chen 44 gus 30 lina 40 farah 9 chen 57 jules 26 lina 44 eli 36
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041086
qwen/qwen3.7-plus
awkweave-0041087
Print column 1 and pass when column 2 is at least 20; otherwise print fail.
{print $1,($2>=20?"pass":"fail")}
eli 26 farah 2 bruno 9 lina 20 gus 10 jules 25
eli pass farah fail bruno fail lina pass gus fail jules pass
dina 23 alice 16 jules 6 farah 28 ivan 28 kim 26 hana 22 farah 9 jules 11 chen 15
dina pass alice fail jules fail farah pass ivan pass kim pass hana pass farah fail jules fail chen fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041087-p1
Output column 1 along with 'pass' if column 2 is 20 or greater, otherwise output 'fail'.
{print $1,($2>=20?"pass":"fail")}
eli 26 farah 2 bruno 9 lina 20 gus 10 jules 25
eli pass farah fail bruno fail lina pass gus fail jules pass
dina 23 alice 16 jules 6 farah 28 ivan 28 kim 26 hana 22 farah 9 jules 11 chen 15
dina pass alice fail jules fail farah pass ivan pass kim pass hana pass farah fail jules fail chen fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041087
qwen/qwen3.7-plus
awkweave-0041088
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
kim amber 40 alice indigo 3 alice delta 31 dina indigo 90 kim juniper 110 lina juniper 59 eli delta 55 alice fable 40 alice grove 71 jules fable 50
KIM ALICE ALICE DINA KIM LINA ELI ALICE ALICE JULES
eli delta 80 farah indigo 59 farah juniper 12 alice fable 11 ivan grove 76 gus ember 98
ELI FARAH FARAH ALICE IVAN GUS
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041088-p1
Transform column 1 to uppercase and display only that column.
{print toupper($1)}
kim amber 40 alice indigo 3 alice delta 31 dina indigo 90 kim juniper 110 lina juniper 59 eli delta 55 alice fable 40 alice grove 71 jules fable 50
KIM ALICE ALICE DINA KIM LINA ELI ALICE ALICE JULES
eli delta 80 farah indigo 59 farah juniper 12 alice fable 11 ivan grove 76 gus ember 98
ELI FARAH FARAH ALICE IVAN GUS
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041088
qwen/qwen3.7-plus
awkweave-0041089
From column 1, print 2 characters starting at character 1.
{print substr($1,1,2)}
juniper 37 indigo 63 fable 115 indigo 58 fable 70 cobalt 34 amber 5 amber 94
ju in fa in fa co am am
juniper 9 ember 13 birch 114 fable 81 cobalt 34 cobalt 73 harbor 120 delta 39 juniper 23
ju em bi fa co co ha de ju
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041089-p1
Extract and print the first 2 characters from column 1.
{print substr($1,1,2)}
juniper 37 indigo 63 fable 115 indigo 58 fable 70 cobalt 34 amber 5 amber 94
ju in fa in fa co am am
juniper 9 ember 13 birch 114 fable 81 cobalt 34 cobalt 73 harbor 120 delta 39 juniper 23
ju em bi fa co co ha de ju
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041089
qwen/qwen3.7-plus
awkweave-0041100
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
hana grove 17 ivan amber 72 eli indigo 112 dina amber 26 gus amber 16 lina juniper 13 hana delta 29 hana fable 38 hana ember 2 ivan amber 72
hana grove 17 ivan amber 72 eli indigo 112 dina amber 26 gus amber 16 lina juniper 13 hana delta 29 hana fable 38 hana ember 2 ivan amber 72
kim indigo 34 eli ember 39 lina ember 57 eli cobalt 90 lina harbor 58 chen grove 79 lina delta 103 chen ember 93 chen delta 31 dina indigo 99
kim indigo 34 eli ember 39 lina ember 57 eli cobalt 90 lina harbor 58 chen grove 79 lina delta 103 chen ember 93 chen delta 31 dina indigo 99
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041100-p1
Remove leading and trailing whitespace and replace consecutive internal whitespace with a single space.
{$1=$1;print}
hana grove 17 ivan amber 72 eli indigo 112 dina amber 26 gus amber 16 lina juniper 13 hana delta 29 hana fable 38 hana ember 2 ivan amber 72
hana grove 17 ivan amber 72 eli indigo 112 dina amber 26 gus amber 16 lina juniper 13 hana delta 29 hana fable 38 hana ember 2 ivan amber 72
kim indigo 34 eli ember 39 lina ember 57 eli cobalt 90 lina harbor 58 chen grove 79 lina delta 103 chen ember 93 chen delta 31 dina indigo 99
kim indigo 34 eli ember 39 lina ember 57 eli cobalt 90 lina harbor 58 chen grove 79 lina delta 103 chen ember 93 chen delta 31 dina indigo 99
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041100
qwen/qwen3.7-plus
awkweave-0041101
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
eli amber 96 paused kim cobalt 45 paused farah juniper 99 failed farah delta 46 failed ivan birch 109 ready hana grove 50 closed chen cobalt 9 active ivan juniper 60 ready bruno cobalt 26 failed
farah juniper 99 failed
dina delta 1 ready alice harbor 86 closed ivan cobalt 29 closed alice birch 86 ready bruno harbor 99 closed lina grove 15 closed
alice harbor 86 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041101-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 96 paused kim cobalt 45 paused farah juniper 99 failed farah delta 46 failed ivan birch 109 ready hana grove 50 closed chen cobalt 9 active ivan juniper 60 ready bruno cobalt 26 failed
farah juniper 99 failed
dina delta 1 ready alice harbor 86 closed ivan cobalt 29 closed alice birch 86 ready bruno harbor 99 closed lina grove 15 closed
alice harbor 86 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041101
qwen/qwen3.7-plus
awkweave-0041102
Print every 4th line starting at line 2 (then line 6, and so on).
NR%4==2
gus 80 hana 71 kim 10 farah 24 lina 96 gus 86 hana 41 hana 85
hana 71 gus 86
chen 34 gus 66 dina 71 kim 46 chen 48 farah 48 gus 48
gus 66 farah 48
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041102-p1
Print every 4th line beginning with line 2 (i.e., lines 2, 6, 10, etc.).
NR%4==2
gus 80 hana 71 kim 10 farah 24 lina 96 gus 86 hana 41 hana 85
hana 71 gus 86
chen 34 gus 66 dina 71 kim 46 chen 48 farah 48 gus 48
gus 66 farah 48
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041102
qwen/qwen3.7-plus
awkweave-0041103
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha grove 29 beta harbor 16 delta delta 47 beta cobalt 86 alpha amber 112 delta amber 102 delta juniper 41 delta amber 96 alpha amber 116
6
beta fable 105 alpha juniper 14 delta ember 98 alpha ember 3 delta ember 107 delta juniper 89 beta harbor 43 beta ember 51 alpha indigo 12 delta delta 75
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041103-p1
Calculate and print the total number of unique values found in column 2.
{if(!seen[$2]++)n++}END{print n+0}
alpha grove 29 beta harbor 16 delta delta 47 beta cobalt 86 alpha amber 112 delta amber 102 delta juniper 41 delta amber 96 alpha amber 116
6
beta fable 105 alpha juniper 14 delta ember 98 alpha ember 3 delta ember 107 delta juniper 89 beta harbor 43 beta ember 51 alpha indigo 12 delta delta 75
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041103
qwen/qwen3.7-plus
awkweave-0041104
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}
hana 8 0 hana 7 17 kim 13 21 dina 22 21 dina 17 30 bruno 25 27
hana 0.41 kim 0.62 dina 1.05 dina 0.57 bruno 0.93
alice 13 0 kim 30 18 farah 28 4 chen 27 7 farah 18 25 hana 7 21 jules 4 25 jules 5 20
kim 1.67 farah 7.00 chen 3.86 farah 0.72 hana 0.33 jules 0.16 jules 0.25
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041104-p1
For each row where column 3 is non-zero, print column 1 and the result of column 2 divided by column 3 formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
hana 8 0 hana 7 17 kim 13 21 dina 22 21 dina 17 30 bruno 25 27
hana 0.41 kim 0.62 dina 1.05 dina 0.57 bruno 0.93
alice 13 0 kim 30 18 farah 28 4 chen 27 7 farah 18 25 hana 7 21 jules 4 25 jules 5 20
kim 1.67 farah 7.00 chen 3.86 farah 0.72 hana 0.33 jules 0.16 jules 0.25
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041104
qwen/qwen3.7-plus
awkweave-0041105
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
jules ember 21 kim grove 3 bruno cobalt 21 jules harbor 2 hana indigo 28 eli indigo 13 chen fable 10 dina indigo 24 dina ember 15 bruno fable 19
hana indigo 28 dina indigo 24 jules ember 21
kim delta 28 jules cobalt 19 dina cobalt 18 bruno cobalt 28 chen indigo 14 jules grove 2 kim delta 7 gus amber 11
kim delta 28 bruno cobalt 28 jules cobalt 19
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041105-p1
Display the top 3 records with the highest numeric values in column 3, sorted in descending order; maintain input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
jules ember 21 kim grove 3 bruno cobalt 21 jules harbor 2 hana indigo 28 eli indigo 13 chen fable 10 dina indigo 24 dina ember 15 bruno fable 19
hana indigo 28 dina indigo 24 jules ember 21
kim delta 28 jules cobalt 19 dina cobalt 18 bruno cobalt 28 chen indigo 14 jules grove 2 kim delta 7 gus amber 11
kim delta 28 bruno cobalt 28 jules cobalt 19
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041105
qwen/qwen3.7-plus
awkweave-0041106
Print column 5 followed by column 2 for every record.
{print $5, $2}
ivan delta farah pending 115 lina ember eli closed 78 kim indigo dina paused 69 alice amber ivan active 51 alice birch farah failed 32 dina fable bruno closed 73
115 delta 78 ember 69 indigo 51 amber 32 birch 73 fable
chen juniper kim closed 10 farah harbor dina active 20 jules grove eli failed 75 hana ember gus paused 107 hana ember jules ready 108 farah amber dina failed 29 bruno indigo bruno active 102 ivan harbor eli closed 60
10 juniper 20 harbor 75 grove 107 ember 108 ember 29 amber 102 indigo 60 harbor
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041106-p1
For each record, output the fifth column followed by the second column.
{print $5, $2}
ivan delta farah pending 115 lina ember eli closed 78 kim indigo dina paused 69 alice amber ivan active 51 alice birch farah failed 32 dina fable bruno closed 73
115 delta 78 ember 69 indigo 51 amber 32 birch 73 fable
chen juniper kim closed 10 farah harbor dina active 20 jules grove eli failed 75 hana ember gus paused 107 hana ember jules ready 108 farah amber dina failed 29 bruno indigo bruno active 102 ivan harbor eli closed 60
10 juniper 20 harbor 75 grove 107 ember 108 ember 29 amber 102 indigo 60 harbor
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041106
qwen/qwen3.7-plus
awkweave-0041107
Print the last field of every input line.
{print $NF}
pending active eli active failed lina active paused farah closed ready eli ready active dina closed pending ivan pending closed chen pending closed bruno
eli lina farah eli dina ivan chen bruno
paused pending dina active closed gus closed paused kim closed paused jules pending ready bruno failed active gus active ready chen paused closed alice pending closed hana
dina gus kim jules bruno gus chen alice hana
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041107-p1
Display the final field from every input line.
{print $NF}
pending active eli active failed lina active paused farah closed ready eli ready active dina closed pending ivan pending closed chen pending closed bruno
eli lina farah eli dina ivan chen bruno
paused pending dina active closed gus closed paused kim closed paused jules pending ready bruno failed active gus active ready chen paused closed alice pending closed hana
dina gus kim jules bruno gus chen alice hana
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041107
qwen/qwen3.7-plus
awkweave-0041108
Print the complete records where column 1 is at least 78.
$1 >= 78
80 active paused ember 9 ready ready ember 67 closed closed fable 37 failed active amber 39 paused pending delta 13 ready closed delta
80 active paused ember
31 closed closed juniper 66 paused closed harbor 65 active ready amber 50 paused active grove 76 closed pending cobalt 51 closed active indigo 30 paused paused cobalt 59 active paused ember 63 failed failed birch 116 active paused juniper
116 active paused juniper
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041108-p1
Output full records where the value in the first column is greater than or equal to 78.
$1 >= 78
80 active paused ember 9 ready ready ember 67 closed closed fable 37 failed active amber 39 paused pending delta 13 ready closed delta
80 active paused ember
31 closed closed juniper 66 paused closed harbor 65 active ready amber 50 paused active grove 76 closed pending cobalt 51 closed active indigo 30 paused paused cobalt 59 active paused ember 63 failed failed birch 116 active paused juniper
116 active paused juniper
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041108
qwen/qwen3.7-plus
awkweave-0041109
Show whole lines whose 2nd field is between 9 and 18, inclusive.
$2 >= 9 && $2 <= 18
juniper 7 bruno ready harbor 3 kim pending grove 10 eli active delta 16 alice failed cobalt 22 eli paused indigo 3 farah active cobalt 1 dina paused
grove 10 eli active delta 16 alice failed
delta 4 lina active delta 3 bruno closed amber 25 gus failed indigo 9 dina pending cobalt 11 farah ready grove 2 kim paused
indigo 9 dina pending cobalt 11 farah ready
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041109-p1
Show entire lines where the second field falls within the inclusive range of 9 to 18.
$2 >= 9 && $2 <= 18
juniper 7 bruno ready harbor 3 kim pending grove 10 eli active delta 16 alice failed cobalt 22 eli paused indigo 3 farah active cobalt 1 dina paused
grove 10 eli active delta 16 alice failed
delta 4 lina active delta 3 bruno closed amber 25 gus failed indigo 9 dina pending cobalt 11 farah ready grove 2 kim paused
indigo 9 dina pending cobalt 11 farah ready
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041109
qwen/qwen3.7-plus
awkweave-0041110
Print column 4 only for rows where column 1 is exactly failed.
$1 == "failed"{print $4}
active amber 78 hana pending amber 4 dina failed ember 20 farah closed delta 88 hana failed delta 27 lina ready cobalt 54 ivan
farah lina
failed juniper 46 bruno pending delta 112 ivan closed harbor 44 dina failed cobalt 111 ivan failed fable 49 hana pending juniper 69 alice
bruno ivan hana
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0041110-p1
Output only the fourth column for rows where the first column matches 'failed' exactly.
$1 == "failed"{print $4}
active amber 78 hana pending amber 4 dina failed ember 20 farah closed delta 88 hana failed delta 27 lina ready cobalt 54 ivan
farah lina
failed juniper 46 bruno pending delta 112 ivan closed harbor 44 dina failed cobalt 111 ivan failed fable 49 hana pending juniper 69 alice
bruno ivan hana
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0041110
qwen/qwen3.7-plus
awkweave-0041111
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
delta ERROR 59 ember WARN 112 fable INFO 93 birch WARN 78 grove DEBUG 79 juniper ERROR 108 juniper INFO 38
delta ERROR 59 juniper ERROR 108
grove INFO 90 delta INFO 102 cobalt WARN 115 grove DEBUG 112 harbor WARN 53 ember INFO 28 cobalt INFO 44 fable INFO 15
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null