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-0040001-p1
Tally the occurrences of each unique value in the second column and display 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]]}
lina delta 109 eli delta 21 hana beta 44 ivan gamma 5 farah delta 107 bruno gamma 102 farah alpha 21 hana alpha 72 alice gamma 46
delta 3 beta 1 gamma 3 alpha 2
gus gamma 0 hana alpha 16 jules beta 40 bruno alpha 51 ivan beta 43 ivan beta 51 gus delta 93
gamma 1 alpha 2 beta 3 delta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040001
qwen/qwen3.7-plus
awkweave-0040002
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]]}
ivan delta 5 hana alpha 22 hana beta 16 eli delta 15 chen alpha 13 gus beta 4 bruno delta 20 bruno delta 26 jules gamma 6
delta 66 alpha 35 beta 20 gamma 6
chen gamma 23 bruno gamma 26 eli alpha 30 eli delta 28 ivan gamma 30 lina gamma 16 eli alpha 14 jules gamma 1 lina alpha 16
gamma 96 alpha 60 delta 28
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040002-p1
Calculate the sum of values in column 3 grouped by the categories in column 2, presenting the results in the order the 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]]}
ivan delta 5 hana alpha 22 hana beta 16 eli delta 15 chen alpha 13 gus beta 4 bruno delta 20 bruno delta 26 jules gamma 6
delta 66 alpha 35 beta 20 gamma 6
chen gamma 23 bruno gamma 26 eli alpha 30 eli delta 28 ivan gamma 30 lina gamma 16 eli alpha 14 jules gamma 1 lina alpha 16
gamma 96 alpha 60 delta 28
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040002
qwen/qwen3.7-plus
awkweave-0040003
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
alpha grove 38 alpha amber 66 beta harbor 119 beta fable 26 beta amber 11 delta amber 26 gamma grove 65 beta indigo 14 gamma amber 23 gamma juniper 73
alpha 2 beta 4 gamma 3
delta birch 22 delta delta 109 delta juniper 41 gamma amber 103 beta cobalt 33 alpha fable 79 beta harbor 78
delta 3 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040003-p1
List each value from column 1 that appears more than once, along with its frequency, sorted by the order of first occurrence.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
alpha grove 38 alpha amber 66 beta harbor 119 beta fable 26 beta amber 11 delta amber 26 gamma grove 65 beta indigo 14 gamma amber 23 gamma juniper 73
alpha 2 beta 4 gamma 3
delta birch 22 delta delta 109 delta juniper 41 gamma amber 103 beta cobalt 33 alpha fable 79 beta harbor 78
delta 3 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040003
qwen/qwen3.7-plus
awkweave-0040004
The first row is a header. Print the display_name column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
note score display_name record_id r001 lina 12 failed r002 alice 26 ready r003 farah 16 paused r004 chen 13 failed r005 jules 4 closed r006 hana 18 failed r007 chen 21 active r008 chen 7 pending r009 eli 3 active
12 26 16 13 4 18 21 7 3
note score display_name record_id r001 kim 15 ready r002 farah 22 ready r003 ivan 26 ready r004 lina 8 pending r005 kim 12 pending r006 farah 29 failed r007 farah 13 ready r008 chen 24 active r009 alice 15 ready r010 hana 7 closed
15 22 26 8 12 29 13 24 15 7
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040004-p1
Skip the header row and output the values from the display_name column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
note score display_name record_id r001 lina 12 failed r002 alice 26 ready r003 farah 16 paused r004 chen 13 failed r005 jules 4 closed r006 hana 18 failed r007 chen 21 active r008 chen 7 pending r009 eli 3 active
12 26 16 13 4 18 21 7 3
note score display_name record_id r001 kim 15 ready r002 farah 22 ready r003 ivan 26 ready r004 lina 8 pending r005 kim 12 pending r006 farah 29 failed r007 farah 13 ready r008 chen 24 active r009 alice 15 ready r010 hana 7 closed
15 22 26 8 12 29 13 24 15 7
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040004
qwen/qwen3.7-plus
awkweave-0040005
The first row is a header. Print display_name for data rows whose score is greater than 14.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>14{print $h["display_name"]}
record_id display_name score state r001 jules 15 ready r002 eli 9 closed r003 eli 23 paused r004 chen 27 ready r005 lina 29 failed r006 farah 22 pending r007 chen 24 pending r008 hana 20 pending
jules eli chen lina farah chen hana
record_id display_name score state r001 lina 15 active r002 jules 30 failed r003 eli 15 failed r004 alice 13 active r005 jules 14 active r006 ivan 25 paused r007 chen 24 closed r008 chen 1 active r009 dina 29 failed
lina jules eli ivan chen dina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040005-p1
Ignoring the header row, print the display_name for any record where the score is strictly greater than 14.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>14{print $h["display_name"]}
record_id display_name score state r001 jules 15 ready r002 eli 9 closed r003 eli 23 paused r004 chen 27 ready r005 lina 29 failed r006 farah 22 pending r007 chen 24 pending r008 hana 20 pending
jules eli chen lina farah chen hana
record_id display_name score state r001 lina 15 active r002 jules 30 failed r003 eli 15 failed r004 alice 13 active r005 jules 14 active r006 ivan 25 paused r007 chen 24 closed r008 chen 1 active r009 dina 29 failed
lina jules eli ivan chen dina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040005
qwen/qwen3.7-plus
awkweave-0040006
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
kim 11 closed bruno 20 closed lina 21 failed hana 5 paused jules 10 ready lina 12 active jules 6 pending farah 3 paused chen 28 paused
closed closed failed paused ready active pending paused paused
ivan 5 closed eli 11 failed gus 4 failed kim 7 failed farah 2 ready hana 13 pending gus 23 ready lina 14 ready jules 6 failed
closed failed failed failed ready pending ready ready failed
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040006-p1
Given tab-separated input, extract and print the third field from each record.
BEGIN{FS=OFS="\t"}{print $3}
kim 11 closed bruno 20 closed lina 21 failed hana 5 paused jules 10 ready lina 12 active jules 6 pending farah 3 paused chen 28 paused
closed closed failed paused ready active pending paused paused
ivan 5 closed eli 11 failed gus 4 failed kim 7 failed farah 2 ready hana 13 pending gus 23 ready lina 14 ready jules 6 failed
closed failed failed failed ready pending ready ready failed
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040006
qwen/qwen3.7-plus
awkweave-0040007
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 8.
BEGIN{FS=OFS=","}$2>8{print $1}
dina,26,active dina,16,closed ivan,9,closed kim,5,active bruno,28,active alice,9,failed chen,30,paused bruno,11,active
dina dina ivan bruno alice chen bruno
gus,29,ready lina,6,ready ivan,5,closed dina,11,failed ivan,4,ready eli,22,failed jules,6,closed kim,19,failed chen,1,failed
gus dina eli kim
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040007-p1
For simple comma-separated input without quoted fields, output the first column only if the value in the second column is greater than 8.
BEGIN{FS=OFS=","}$2>8{print $1}
dina,26,active dina,16,closed ivan,9,closed kim,5,active bruno,28,active alice,9,failed chen,30,paused bruno,11,active
dina dina ivan bruno alice chen bruno
gus,29,ready lina,6,ready ivan,5,closed dina,11,failed ivan,4,ready eli,22,failed jules,6,closed kim,19,failed chen,1,failed
gus dina eli kim
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040007
qwen/qwen3.7-plus
awkweave-0040008
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
bruno delta 65 farah delta 17 gus indigo 40 bruno indigo 109 gus amber 99 ivan birch 86
bruno delta 65 farah delta 17 gus indigo 40 bruno indigo 109 gus amber 99 ivan birch 86
jules juniper 60 bruno cobalt 66 hana cobalt 33 gus cobalt 59 hana cobalt 77 gus ember 78
jules juniper 60 bruno cobalt 66 hana cobalt 33 gus cobalt 59 hana cobalt 77 gus ember 78
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040008-p1
Remove leading and trailing whitespace from each line and replace sequences of internal whitespace with a single space.
{$1=$1;print}
bruno delta 65 farah delta 17 gus indigo 40 bruno indigo 109 gus amber 99 ivan birch 86
bruno delta 65 farah delta 17 gus indigo 40 bruno indigo 109 gus amber 99 ivan birch 86
jules juniper 60 bruno cobalt 66 hana cobalt 33 gus cobalt 59 hana cobalt 77 gus ember 78
jules juniper 60 bruno cobalt 66 hana cobalt 33 gus cobalt 59 hana cobalt 77 gus ember 78
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040008
qwen/qwen3.7-plus
awkweave-0040009
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
gus grove 70 active farah cobalt 11 paused farah birch 96 closed eli harbor 46 active dina birch 72 pending ivan juniper 77 closed
farah cobalt 11 paused
alice cobalt 15 paused alice fable 88 active ivan juniper 55 ready ivan grove 89 ready lina amber 46 ready chen grove 102 ready ivan delta 4 failed hana juniper 20 closed farah indigo 105 closed
farah indigo 105 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040009-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}
gus grove 70 active farah cobalt 11 paused farah birch 96 closed eli harbor 46 active dina birch 72 pending ivan juniper 77 closed
farah cobalt 11 paused
alice cobalt 15 paused alice fable 88 active ivan juniper 55 ready ivan grove 89 ready lina amber 46 ready chen grove 102 ready ivan delta 4 failed hana juniper 20 closed farah indigo 105 closed
farah indigo 105 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040009
qwen/qwen3.7-plus
awkweave-0040010
Print every 4th line starting at line 1 (then line 5, and so on).
NR%4==1
gus 112 kim 33 lina 78 hana 95 eli 92 jules 68 bruno 83 ivan 120 ivan 52 hana 45
gus 112 eli 92 ivan 52
dina 68 gus 4 chen 109 farah 25 chen 23 hana 50 hana 98 kim 117
dina 68 chen 23
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040010-p1
Print lines 1, 5, 9, and so on, effectively outputting every fourth line starting from the first.
NR%4==1
gus 112 kim 33 lina 78 hana 95 eli 92 jules 68 bruno 83 ivan 120 ivan 52 hana 45
gus 112 eli 92 ivan 52
dina 68 gus 4 chen 109 farah 25 chen 23 hana 50 hana 98 kim 117
dina 68 chen 23
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040010
qwen/qwen3.7-plus
awkweave-0040011
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
delta delta 50 beta delta 31 beta cobalt 65 delta juniper 42 beta grove 55 alpha indigo 94 alpha ember 22 beta delta 47 alpha amber 113
3
delta harbor 49 beta amber 92 alpha cobalt 33 gamma indigo 70 beta harbor 37 alpha harbor 26
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040011-p1
Determine the number of unique values in the first column and output only this total count.
{if(!seen[$1]++)n++}END{print n+0}
delta delta 50 beta delta 31 beta cobalt 65 delta juniper 42 beta grove 55 alpha indigo 94 alpha ember 22 beta delta 47 alpha amber 113
3
delta harbor 49 beta amber 92 alpha cobalt 33 gamma indigo 70 beta harbor 37 alpha harbor 26
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040011
qwen/qwen3.7-plus
awkweave-0040012
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 3 0 lina 30 21 gus 16 6 jules 8 7 kim 7 13 farah 2 8 farah 27 23 jules 2 14 hana 1 2
lina 1.43 gus 2.67 jules 1.14 kim 0.54 farah 0.25 farah 1.17 jules 0.14 hana 0.50
chen 14 0 chen 11 10 gus 23 6 kim 16 15 kim 8 2 jules 22 10 eli 17 30 dina 25 26 gus 2 26
chen 1.10 gus 3.83 kim 1.07 kim 4.00 jules 2.20 eli 0.57 dina 0.96 gus 0.08
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040012-p1
For each row, output the first and second columns along with the result of dividing the second column by the third, formatted to two decimal places; exclude any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
eli 3 0 lina 30 21 gus 16 6 jules 8 7 kim 7 13 farah 2 8 farah 27 23 jules 2 14 hana 1 2
lina 1.43 gus 2.67 jules 1.14 kim 0.54 farah 0.25 farah 1.17 jules 0.14 hana 0.50
chen 14 0 chen 11 10 gus 23 6 kim 16 15 kim 8 2 jules 22 10 eli 17 30 dina 25 26 gus 2 26
chen 1.10 gus 3.83 kim 1.07 kim 4.00 jules 2.20 eli 0.57 dina 0.96 gus 0.08
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040012
qwen/qwen3.7-plus
awkweave-0040013
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]}
chen cobalt 5 dina amber 13 bruno juniper 5 gus cobalt 30 lina indigo 1 gus delta 29 ivan harbor 26 dina amber 3
gus cobalt 30 gus delta 29 ivan harbor 26
lina delta 24 bruno juniper 4 dina juniper 27 gus delta 17 ivan juniper 12 chen indigo 17 dina delta 24 eli grove 20
dina juniper 27 lina delta 24 dina delta 24
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040013-p1
Display the top three records based on the highest numeric values in the third column, sorted in descending order, while maintaining the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
chen cobalt 5 dina amber 13 bruno juniper 5 gus cobalt 30 lina indigo 1 gus delta 29 ivan harbor 26 dina amber 3
gus cobalt 30 gus delta 29 ivan harbor 26
lina delta 24 bruno juniper 4 dina juniper 27 gus delta 17 ivan juniper 12 chen indigo 17 dina delta 24 eli grove 20
dina juniper 27 lina delta 24 dina delta 24
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040013
qwen/qwen3.7-plus
awkweave-0040014
Select the 5th and 2nd fields in that order.
{print $5, $2}
birch ember 36 110 ember indigo fable 95 111 delta amber ember 0 99 grove cobalt amber 37 72 fable amber fable 71 17 juniper harbor juniper 99 110 fable indigo indigo 39 83 juniper cobalt grove 31 4 fable
ember ember delta fable grove ember fable amber juniper fable fable juniper juniper indigo fable grove
grove indigo 34 7 indigo juniper harbor 105 5 birch birch delta 74 90 birch delta cobalt 54 83 ember harbor indigo 92 1 delta indigo birch 8 116 indigo harbor amber 114 38 amber
indigo indigo birch harbor birch delta ember cobalt delta indigo indigo birch amber amber
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040014-p1
Extract and display the fifth field followed by the second field.
{print $5, $2}
birch ember 36 110 ember indigo fable 95 111 delta amber ember 0 99 grove cobalt amber 37 72 fable amber fable 71 17 juniper harbor juniper 99 110 fable indigo indigo 39 83 juniper cobalt grove 31 4 fable
ember ember delta fable grove ember fable amber juniper fable fable juniper juniper indigo fable grove
grove indigo 34 7 indigo juniper harbor 105 5 birch birch delta 74 90 birch delta cobalt 54 83 ember harbor indigo 92 1 delta indigo birch 8 116 indigo harbor amber 114 38 amber
indigo indigo birch harbor birch delta ember cobalt delta indigo indigo birch amber amber
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040014
qwen/qwen3.7-plus
awkweave-0040015
Print the last field of every input line.
{print $NF}
amber amber 0 bruno harbor amber 26 ivan juniper cobalt 62 chen birch amber 2 alice amber amber 64 jules indigo cobalt 78 eli harbor juniper 110 lina cobalt birch 29 kim delta amber 40 kim birch fable 24 kim
bruno ivan chen alice jules eli lina kim kim kim
cobalt indigo 108 ivan indigo amber 95 chen ember birch 112 gus delta juniper 71 gus harbor cobalt 70 ivan harbor ember 118 lina indigo birch 15 hana
ivan chen gus gus ivan lina hana
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040015-p1
Output the final field from every line of input.
{print $NF}
amber amber 0 bruno harbor amber 26 ivan juniper cobalt 62 chen birch amber 2 alice amber amber 64 jules indigo cobalt 78 eli harbor juniper 110 lina cobalt birch 29 kim delta amber 40 kim birch fable 24 kim
bruno ivan chen alice jules eli lina kim kim kim
cobalt indigo 108 ivan indigo amber 95 chen ember birch 112 gus delta juniper 71 gus harbor cobalt 70 ivan harbor ember 118 lina indigo birch 15 hana
ivan chen gus gus ivan lina hana
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040015
qwen/qwen3.7-plus
awkweave-0040016
Print the complete records where column 4 is at most 51.
$4 <= 51
failed cobalt paused 52 gus pending fable closed 108 alice failed birch closed 100 eli paused fable active 39 gus paused birch active 30 dina failed ember pending 12 chen ready cobalt paused 115 gus
paused fable active 39 gus paused birch active 30 dina failed ember pending 12 chen
paused indigo paused 105 alice failed cobalt closed 27 kim pending grove ready 47 dina pending grove ready 61 gus failed ember failed 39 ivan paused harbor pending 33 hana ready grove pending 114 ivan
failed cobalt closed 27 kim pending grove ready 47 dina failed ember failed 39 ivan paused harbor pending 33 hana
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040016-p1
Print full records where the value in the fourth column is less than or equal to 51.
$4 <= 51
failed cobalt paused 52 gus pending fable closed 108 alice failed birch closed 100 eli paused fable active 39 gus paused birch active 30 dina failed ember pending 12 chen ready cobalt paused 115 gus
paused fable active 39 gus paused birch active 30 dina failed ember pending 12 chen
paused indigo paused 105 alice failed cobalt closed 27 kim pending grove ready 47 dina pending grove ready 61 gus failed ember failed 39 ivan paused harbor pending 33 hana ready grove pending 114 ivan
failed cobalt closed 27 kim pending grove ready 47 dina failed ember failed 39 ivan paused harbor pending 33 hana
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040016
qwen/qwen3.7-plus
awkweave-0040017
Show whole lines whose 3rd field is between 8 and 21, inclusive.
$3 >= 8 && $3 <= 21
gus farah 16 cobalt gus jules 15 birch gus hana 1 ember farah kim 10 fable eli hana 12 grove gus hana 6 fable chen bruno 2 delta
gus farah 16 cobalt gus jules 15 birch farah kim 10 fable eli hana 12 grove
eli kim 30 ember alice jules 17 ember jules bruno 19 harbor ivan lina 2 indigo bruno bruno 8 fable hana farah 4 delta lina gus 24 cobalt ivan bruno 20 cobalt lina alice 16 indigo
alice jules 17 ember jules bruno 19 harbor bruno bruno 8 fable ivan bruno 20 cobalt lina alice 16 indigo
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040017-p1
Display entire lines where the third field falls within the inclusive range of 8 to 21.
$3 >= 8 && $3 <= 21
gus farah 16 cobalt gus jules 15 birch gus hana 1 ember farah kim 10 fable eli hana 12 grove gus hana 6 fable chen bruno 2 delta
gus farah 16 cobalt gus jules 15 birch farah kim 10 fable eli hana 12 grove
eli kim 30 ember alice jules 17 ember jules bruno 19 harbor ivan lina 2 indigo bruno bruno 8 fable hana farah 4 delta lina gus 24 cobalt ivan bruno 20 cobalt lina alice 16 indigo
alice jules 17 ember jules bruno 19 harbor bruno bruno 8 fable ivan bruno 20 cobalt lina alice 16 indigo
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040017
qwen/qwen3.7-plus
awkweave-0040018
Print column 1 only for rows where column 3 is exactly ready.
$3 == "ready"{print $1}
jules 93 failed grove jules 117 failed delta hana 89 ready harbor farah 15 paused ember alice 97 active birch eli 93 paused ember
hana
bruno 66 failed harbor dina 98 active juniper gus 48 active cobalt jules 70 pending birch jules 29 ready ember hana 2 ready juniper alice 76 failed grove
jules hana
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040018-p1
Output only the first column for rows where the third column contains exactly the text 'ready'.
$3 == "ready"{print $1}
jules 93 failed grove jules 117 failed delta hana 89 ready harbor farah 15 paused ember alice 97 active birch eli 93 paused ember
hana
bruno 66 failed harbor dina 98 active juniper gus 48 active cobalt jules 70 pending birch jules 29 ready ember hana 2 ready juniper alice 76 failed grove
jules hana
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040018
qwen/qwen3.7-plus
awkweave-0040019
Print all fields from lines where field 1 begins with INFO.
$1 ~ /^INFO/
ERROR grove 114 WARN ember 103 DEBUG amber 99 INFO cobalt 109 INFO harbor 81 ERROR fable 105 INFO grove 114 ERROR juniper 35
INFO cobalt 109 INFO harbor 81 INFO grove 114
WARN birch 18 DEBUG amber 77 INFO amber 118 INFO indigo 108 ERROR harbor 99 INFO ember 10
INFO amber 118 INFO indigo 108 INFO ember 10
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040019-p1
Print all fields from lines where the first field starts with the string 'INFO'.
$1 ~ /^INFO/
ERROR grove 114 WARN ember 103 DEBUG amber 99 INFO cobalt 109 INFO harbor 81 ERROR fable 105 INFO grove 114 ERROR juniper 35
INFO cobalt 109 INFO harbor 81 INFO grove 114
WARN birch 18 DEBUG amber 77 INFO amber 118 INFO indigo 108 ERROR harbor 99 INFO ember 10
INFO amber 118 INFO indigo 108 INFO ember 10
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040019
qwen/qwen3.7-plus
awkweave-0040020
Print every line except those containing the exact text fable.
$0 !~ /fable/
grove 23 pending birch 37 ready birch 52 active indigo 84 paused amber 11 ready delta 38 closed cobalt 55 active fable 999 active
grove 23 pending birch 37 ready birch 52 active indigo 84 paused amber 11 ready delta 38 closed cobalt 55 active
ember 114 pending fable 17 paused cobalt 117 paused ember 22 closed juniper 27 pending ember 36 paused fable 0 active fable 999 active
ember 114 pending cobalt 117 paused ember 22 closed juniper 27 pending ember 36 paused
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040020-p1
Output every line that does not contain the exact string 'fable'.
$0 !~ /fable/
grove 23 pending birch 37 ready birch 52 active indigo 84 paused amber 11 ready delta 38 closed cobalt 55 active fable 999 active
grove 23 pending birch 37 ready birch 52 active indigo 84 paused amber 11 ready delta 38 closed cobalt 55 active
ember 114 pending fable 17 paused cobalt 117 paused ember 22 closed juniper 27 pending ember 36 paused fable 0 active fable 999 active
ember 114 pending cobalt 117 paused ember 22 closed juniper 27 pending ember 36 paused
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040020
qwen/qwen3.7-plus
awkweave-0040021
Print lines 2 through 5, including both endpoints.
NR >= 2 && NR <= 5
jules amber 46 ivan fable 67 lina cobalt 69 alice ember 96 dina harbor 19 kim grove 110 chen amber 18 ivan amber 74 dina cobalt 63
ivan fable 67 lina cobalt 69 alice ember 96 dina harbor 19
ivan fable 35 kim cobalt 55 eli grove 60 eli amber 89 bruno birch 92 lina cobalt 39
kim cobalt 55 eli grove 60 eli amber 89 bruno birch 92
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040021-p1
Print lines 2 through 5, inclusive of both endpoints.
NR >= 2 && NR <= 5
jules amber 46 ivan fable 67 lina cobalt 69 alice ember 96 dina harbor 19 kim grove 110 chen amber 18 ivan amber 74 dina cobalt 63
ivan fable 67 lina cobalt 69 alice ember 96 dina harbor 19
ivan fable 35 kim cobalt 55 eli grove 60 eli amber 89 bruno birch 92 lina cobalt 39
kim cobalt 55 eli grove 60 eli amber 89 bruno birch 92
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040021
qwen/qwen3.7-plus
awkweave-0040022
Output only the first 5 records.
NR <= 5
kim 116 indigo lina 114 indigo kim 102 juniper dina 22 grove hana 105 birch hana 87 cobalt alice 100 ember jules 50 indigo
kim 116 indigo lina 114 indigo kim 102 juniper dina 22 grove hana 105 birch
ivan 103 delta lina 115 ember eli 54 birch bruno 44 delta bruno 70 birch bruno 62 amber dina 18 juniper
ivan 103 delta lina 115 ember eli 54 birch bruno 44 delta bruno 70 birch
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040022-p1
Output only the first five records.
NR <= 5
kim 116 indigo lina 114 indigo kim 102 juniper dina 22 grove hana 105 birch hana 87 cobalt alice 100 ember jules 50 indigo
kim 116 indigo lina 114 indigo kim 102 juniper dina 22 grove hana 105 birch
ivan 103 delta lina 115 ember eli 54 birch bruno 44 delta bruno 70 birch bruno 62 amber dina 18 juniper
ivan 103 delta lina 115 ember eli 54 birch bruno 44 delta bruno 70 birch
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040022
qwen/qwen3.7-plus
awkweave-0040023
Skip the first line and print every remaining line unchanged.
NR > 1
chen 17 delta dina 94 fable chen 63 harbor alice 24 birch gus 72 birch lina 62 delta bruno 96 ember bruno 58 amber farah 88 fable
dina 94 fable chen 63 harbor alice 24 birch gus 72 birch lina 62 delta bruno 96 ember bruno 58 amber farah 88 fable
eli 116 indigo kim 80 fable eli 52 amber alice 36 birch ivan 28 harbor chen 102 amber dina 99 fable ivan 2 cobalt
kim 80 fable eli 52 amber alice 36 birch ivan 28 harbor chen 102 amber dina 99 fable ivan 2 cobalt
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040023-p1
Omit the first line and print all subsequent lines exactly as they appear.
NR > 1
chen 17 delta dina 94 fable chen 63 harbor alice 24 birch gus 72 birch lina 62 delta bruno 96 ember bruno 58 amber farah 88 fable
dina 94 fable chen 63 harbor alice 24 birch gus 72 birch lina 62 delta bruno 96 ember bruno 58 amber farah 88 fable
eli 116 indigo kim 80 fable eli 52 amber alice 36 birch ivan 28 harbor chen 102 amber dina 99 fable ivan 2 cobalt
kim 80 fable eli 52 amber alice 36 birch ivan 28 harbor chen 102 amber dina 99 fable ivan 2 cobalt
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040023
qwen/qwen3.7-plus
awkweave-0040024
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
jules paused 75 eli paused 30 alice paused 96 gus ready 9 gus closed 113 lina paused 101 kim failed 87 ivan active 117 ivan pending 61 bruno paused 99
1
jules ready 59 farah paused 61 jules active 12 alice failed 53 chen paused 94 alice closed 6 hana closed 9 hana active 31
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040024-p1
Determine the number of entries where column 2 contains 'closed', outputting 0 if no such entries exist.
$2 == "closed"{n++}END{print n+0}
jules paused 75 eli paused 30 alice paused 96 gus ready 9 gus closed 113 lina paused 101 kim failed 87 ivan active 117 ivan pending 61 bruno paused 99
1
jules ready 59 farah paused 61 jules active 12 alice failed 53 chen paused 94 alice closed 6 hana closed 9 hana active 31
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040024
qwen/qwen3.7-plus
awkweave-0040025
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
farah 5 fable hana 28 cobalt jules 20 amber alice 11 birch bruno 28 harbor lina 24 fable jules 8 indigo jules 19 grove
143
lina 20 delta dina 6 amber kim 24 cobalt gus 9 cobalt hana 8 delta alice 2 amber
69
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040025-p1
Compute and display the total sum of all integer values found in column 2.
{s+=$2}END{print s+0}
farah 5 fable hana 28 cobalt jules 20 amber alice 11 birch bruno 28 harbor lina 24 fable jules 8 indigo jules 19 grove
143
lina 20 delta dina 6 amber kim 24 cobalt gus 9 cobalt hana 8 delta alice 2 amber
69
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040025
qwen/qwen3.7-plus
awkweave-0040026
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
alice 29 ember dina 14 juniper hana 30 juniper farah 8 grove alice 5 harbor ivan 3 fable
14.83
lina 20 birch chen 29 amber farah 9 grove kim 20 delta alice 17 cobalt lina 8 birch
17.17
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040026-p1
Output the average value of column 2, formatted to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
alice 29 ember dina 14 juniper hana 30 juniper farah 8 grove alice 5 harbor ivan 3 fable
14.83
lina 20 birch chen 29 amber farah 9 grove kim 20 delta alice 17 cobalt lina 8 birch
17.17
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040026
qwen/qwen3.7-plus
awkweave-0040027
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
gus delta 13 gus grove 2 farah amber 22 kim grove 23 bruno harbor 19 gus harbor 26 chen delta 16 jules cobalt 28
2
chen ember 4 hana grove 27 eli harbor 8 farah indigo 24 farah amber 1 hana grove 6
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040027-p1
Identify and display the minimum numeric value present in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
gus delta 13 gus grove 2 farah amber 22 kim grove 23 bruno harbor 19 gus harbor 26 chen delta 16 jules cobalt 28
2
chen ember 4 hana grove 27 eli harbor 8 farah indigo 24 farah amber 1 hana grove 6
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040027
qwen/qwen3.7-plus
awkweave-0040028
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
kim 27 juniper hana 3 birch eli 16 fable hana 18 indigo dina 15 cobalt eli 2 cobalt
27
ivan 23 juniper bruno 5 ember gus 6 indigo gus 19 birch ivan 19 ember lina 1 ember gus 24 harbor chen 4 birch eli 28 grove farah 20 fable
28
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040028-p1
Identify and display the maximum numeric value present in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
kim 27 juniper hana 3 birch eli 16 fable hana 18 indigo dina 15 cobalt eli 2 cobalt
27
ivan 23 juniper bruno 5 ember gus 6 indigo gus 19 birch ivan 19 ember lina 1 ember gus 24 harbor chen 4 birch eli 28 grove farah 20 fable
28
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040028
qwen/qwen3.7-plus
awkweave-0040029
Count all input records and print the total.
END{print NR}
kim 56 lina 44 alice 75 kim 22 bruno 81 chen 14 jules 73
7
bruno 86 alice 34 bruno 100 alice 31 bruno 79 alice 85 gus 88 bruno 56 alice 84 lina 116
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040029-p1
Count the total number of input records and print the result.
END{print NR}
kim 56 lina 44 alice 75 kim 22 bruno 81 chen 14 jules 73
7
bruno 86 alice 34 bruno 100 alice 31 bruno 79 alice 85 gus 88 bruno 56 alice 84 lina 116
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040029
qwen/qwen3.7-plus
awkweave-0040030
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
gus cobalt 12 gus birch 31 bruno ember 50 jules indigo 87 jules grove 57 dina fable 117 lina grove 81 dina indigo 111 ivan ember 75 gus birch 31
gus cobalt 12 gus birch 31 bruno ember 50 jules indigo 87 jules grove 57 dina fable 117 lina grove 81 dina indigo 111 ivan ember 75
kim amber 105 kim amber 105 ivan delta 23 eli birch 37 bruno cobalt 97 kim ember 110 chen harbor 59 bruno birch 64 farah fable 35
kim amber 105 ivan delta 23 eli birch 37 bruno cobalt 97 kim ember 110 chen harbor 59 bruno birch 64 farah fable 35
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040030-p1
Eliminate exact duplicate lines while maintaining the original order and keeping the first instance of each unique line.
!seen[$0]++
gus cobalt 12 gus birch 31 bruno ember 50 jules indigo 87 jules grove 57 dina fable 117 lina grove 81 dina indigo 111 ivan ember 75 gus birch 31
gus cobalt 12 gus birch 31 bruno ember 50 jules indigo 87 jules grove 57 dina fable 117 lina grove 81 dina indigo 111 ivan ember 75
kim amber 105 kim amber 105 ivan delta 23 eli birch 37 bruno cobalt 97 kim ember 110 chen harbor 59 bruno birch 64 farah fable 35
kim amber 105 ivan delta 23 eli birch 37 bruno cobalt 97 kim ember 110 chen harbor 59 bruno birch 64 farah fable 35
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040030
qwen/qwen3.7-plus
awkweave-0040031
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
lina indigo 18 chen indigo 60 eli ember 23 bruno grove 43 bruno fable 103 kim cobalt 61 chen amber 42
lina indigo 18 eli ember 23 bruno grove 43 bruno fable 103 kim cobalt 61 chen amber 42
hana indigo 19 dina harbor 101 dina birch 84 ivan indigo 29 eli harbor 83 alice juniper 78 bruno grove 65 kim harbor 28 jules fable 63 eli birch 115
hana indigo 19 dina harbor 101 dina birch 84 alice juniper 78 bruno grove 65 jules fable 63
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040031-p1
Retain only the first occurrence for each unique value in column 2, preserving the original input sequence.
!seen[$2]++
lina indigo 18 chen indigo 60 eli ember 23 bruno grove 43 bruno fable 103 kim cobalt 61 chen amber 42
lina indigo 18 eli ember 23 bruno grove 43 bruno fable 103 kim cobalt 61 chen amber 42
hana indigo 19 dina harbor 101 dina birch 84 ivan indigo 29 eli harbor 83 alice juniper 78 bruno grove 65 kim harbor 28 jules fable 63 eli birch 115
hana indigo 19 dina harbor 101 dina birch 84 alice juniper 78 bruno grove 65 jules fable 63
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040031
qwen/qwen3.7-plus
awkweave-0040032
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
hana 9 ember eli 12 birch hana 9 delta hana 23 amber jules 24 birch alice 9 amber lina 23 indigo ivan 4 fable farah 28 fable
hana 9 eli 21 hana 30 hana 53 jules 77 alice 86 lina 109 ivan 113 farah 141
farah 7 ember kim 16 ember lina 5 juniper alice 9 fable gus 19 grove farah 26 grove alice 23 amber kim 1 birch
farah 7 kim 23 lina 28 alice 37 gus 56 farah 82 alice 105 kim 106
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040032-p1
For every record, output column 1 alongside the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
hana 9 ember eli 12 birch hana 9 delta hana 23 amber jules 24 birch alice 9 amber lina 23 indigo ivan 4 fable farah 28 fable
hana 9 eli 21 hana 30 hana 53 jules 77 alice 86 lina 109 ivan 113 farah 141
farah 7 ember kim 16 ember lina 5 juniper alice 9 fable gus 19 grove farah 26 grove alice 23 amber kim 1 birch
farah 7 kim 23 lina 28 alice 37 gus 56 farah 82 alice 105 kim 106
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040032
qwen/qwen3.7-plus
awkweave-0040033
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
eli 14 25 harbor jules 17 4 ember farah 6 24 grove alice 13 11 cobalt farah 23 24 juniper bruno 3 29 harbor gus 14 17 ember jules 22 18 birch
eli 39 jules 21 farah 30 alice 24 farah 47 bruno 32 gus 31 jules 40
ivan 16 22 grove dina 20 28 birch bruno 29 11 cobalt chen 28 11 cobalt alice 14 11 juniper chen 3 28 indigo ivan 19 8 fable hana 21 27 birch
ivan 38 dina 48 bruno 40 chen 39 alice 25 chen 31 ivan 27 hana 48
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040033-p1
For each row, output field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
eli 14 25 harbor jules 17 4 ember farah 6 24 grove alice 13 11 cobalt farah 23 24 juniper bruno 3 29 harbor gus 14 17 ember jules 22 18 birch
eli 39 jules 21 farah 30 alice 24 farah 47 bruno 32 gus 31 jules 40
ivan 16 22 grove dina 20 28 birch bruno 29 11 cobalt chen 28 11 cobalt alice 14 11 juniper chen 3 28 indigo ivan 19 8 fable hana 21 27 birch
ivan 38 dina 48 bruno 40 chen 39 alice 25 chen 31 ivan 27 hana 48
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040033
qwen/qwen3.7-plus
awkweave-0040034
Print column 1 and pass when column 2 is at least 22; otherwise print fail.
{print $1,($2>=22?"pass":"fail")}
jules 8 bruno 10 kim 28 bruno 16 alice 11 ivan 10 ivan 10 dina 5 jules 10 dina 27
jules fail bruno fail kim pass bruno fail alice fail ivan fail ivan fail dina fail jules fail dina pass
lina 11 bruno 13 dina 20 jules 28 alice 20 gus 10
lina fail bruno fail dina fail jules pass alice fail gus fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040034-p1
Print column 1 along with 'pass' if column 2 is greater than or equal to 22; otherwise, print 'fail'.
{print $1,($2>=22?"pass":"fail")}
jules 8 bruno 10 kim 28 bruno 16 alice 11 ivan 10 ivan 10 dina 5 jules 10 dina 27
jules fail bruno fail kim pass bruno fail alice fail ivan fail ivan fail dina fail jules fail dina pass
lina 11 bruno 13 dina 20 jules 28 alice 20 gus 10
lina fail bruno fail dina fail jules pass alice fail gus fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040034
qwen/qwen3.7-plus
awkweave-0040035
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
chen fable 64 kim indigo 0 gus harbor 107 alice fable 49 chen juniper 17 farah juniper 97 kim grove 76 jules fable 83 farah indigo 101 hana birch 68
CHEN KIM GUS ALICE CHEN FARAH KIM JULES FARAH HANA
kim juniper 75 eli harbor 86 farah delta 82 dina amber 37 bruno indigo 66 eli indigo 7 eli grove 18 gus fable 88 dina delta 120 lina juniper 50
KIM ELI FARAH DINA BRUNO ELI ELI GUS DINA LINA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040035-p1
Transform column 1 to uppercase characters and print only this modified column.
{print toupper($1)}
chen fable 64 kim indigo 0 gus harbor 107 alice fable 49 chen juniper 17 farah juniper 97 kim grove 76 jules fable 83 farah indigo 101 hana birch 68
CHEN KIM GUS ALICE CHEN FARAH KIM JULES FARAH HANA
kim juniper 75 eli harbor 86 farah delta 82 dina amber 37 bruno indigo 66 eli indigo 7 eli grove 18 gus fable 88 dina delta 120 lina juniper 50
KIM ELI FARAH DINA BRUNO ELI ELI GUS DINA LINA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040035
qwen/qwen3.7-plus
awkweave-0040036
From column 1, print 4 characters starting at character 2.
{print substr($1,2,4)}
juniper 42 fable 15 indigo 53 juniper 88 amber 69 birch 118 delta 39
unip able ndig unip mber irch elta
juniper 94 fable 0 grove 59 indigo 99 fable 16 harbor 34 juniper 107 fable 69
unip able rove ndig able arbo unip able
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040036-p1
Extract a 4-character substring from the first column, beginning at the second character.
{print substr($1,2,4)}
juniper 42 fable 15 indigo 53 juniper 88 amber 69 birch 118 delta 39
unip able ndig unip mber irch elta
juniper 94 fable 0 grove 59 indigo 99 fable 16 harbor 34 juniper 107 fable 69
unip able rove ndig able arbo unip able
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040036
qwen/qwen3.7-plus
awkweave-0040037
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
amber_amber 11 delta_cobalt 37 ember_juniper 48 delta_amber 2 birch_indigo 65 ember_fable 94 juniper_ember 111 harbor_indigo 101
amber amber delta cobalt ember juniper delta amber birch indigo ember fable juniper ember harbor indigo
ember_amber 34 delta_birch 98 fable_juniper 15 birch_harbor 90 birch_birch 59 juniper_harbor 84 cobalt_amber 72
ember amber delta birch fable juniper birch harbor birch birch juniper harbor cobalt amber
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040037-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
amber_amber 11 delta_cobalt 37 ember_juniper 48 delta_amber 2 birch_indigo 65 ember_fable 94 juniper_ember 111 harbor_indigo 101
amber amber delta cobalt ember juniper delta amber birch indigo ember fable juniper ember harbor indigo
ember_amber 34 delta_birch 98 fable_juniper 15 birch_harbor 90 birch_birch 59 juniper_harbor 84 cobalt_amber 72
ember amber delta birch fable juniper birch harbor birch birch juniper harbor cobalt amber
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040037
qwen/qwen3.7-plus
awkweave-0040038
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)}
eli grove 116 active chen fable 47 ready eli delta 74 paused bruno harbor 71 failed ivan fable 13 active ivan harbor 117 paused kim birch 55 failed hana indigo 60 paused jules amber 108 closed
active 116 grove eli ready 47 fable chen paused 74 delta eli failed 71 harbor bruno active 13 fable ivan paused 117 harbor ivan failed 55 birch kim paused 60 indigo hana closed 108 amber jules
dina amber 116 closed chen indigo 104 pending jules fable 103 paused dina fable 24 ready alice harbor 96 failed dina delta 34 failed
closed 116 amber dina pending 104 indigo chen paused 103 fable jules ready 24 fable dina failed 96 harbor alice failed 34 delta dina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040038-p1
Reverse the sequence of fields on each line and display every field.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
eli grove 116 active chen fable 47 ready eli delta 74 paused bruno harbor 71 failed ivan fable 13 active ivan harbor 117 paused kim birch 55 failed hana indigo 60 paused jules amber 108 closed
active 116 grove eli ready 47 fable chen paused 74 delta eli failed 71 harbor bruno active 13 fable ivan paused 117 harbor ivan failed 55 birch kim paused 60 indigo hana closed 108 amber jules
dina amber 116 closed chen indigo 104 pending jules fable 103 paused dina fable 24 ready alice harbor 96 failed dina delta 34 failed
closed 116 amber dina pending 104 indigo chen paused 103 fable jules ready 24 fable dina failed 96 harbor alice failed 34 delta dina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040038
qwen/qwen3.7-plus
awkweave-0040039
Print the number of whitespace-separated fields on each line.
{print NF}
bruno harbor 69 paused hana grove 2 paused lina grove 46 paused ivan fable 97 ready dina fable 102 active lina amber 88 active alice ember 59 active bruno harbor 88 paused alice harbor 86 pending
4 4 4 4 4 4 4 4 4
farah fable 75 active chen delta 17 ready ivan grove 56 paused alice delta 93 failed farah cobalt 97 paused eli amber 43 pending bruno amber 93 closed lina birch 100 ready bruno ember 63 paused
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040039-p1
Output the count of whitespace-delimited fields for each line.
{print NF}
bruno harbor 69 paused hana grove 2 paused lina grove 46 paused ivan fable 97 ready dina fable 102 active lina amber 88 active alice ember 59 active bruno harbor 88 paused alice harbor 86 pending
4 4 4 4 4 4 4 4 4
farah fable 75 active chen delta 17 ready ivan grove 56 paused alice delta 93 failed farah cobalt 97 paused eli amber 43 pending bruno amber 93 closed lina birch 100 ready bruno ember 63 paused
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040039
qwen/qwen3.7-plus
awkweave-0040040
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
kim alpha 25 dina delta 75 alice gamma 39 alice beta 58 dina beta 101 dina beta 1 jules alpha 65 bruno delta 70
alpha 2 delta 2 gamma 1 beta 3
dina beta 30 jules gamma 43 bruno gamma 119 dina gamma 97 jules gamma 14 gus alpha 44 jules delta 31 eli beta 87 kim delta 118
beta 2 gamma 4 alpha 1 delta 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040040-p1
Tally the occurrences of each unique value in the second column, listing them alongside their counts in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
kim alpha 25 dina delta 75 alice gamma 39 alice beta 58 dina beta 101 dina beta 1 jules alpha 65 bruno delta 70
alpha 2 delta 2 gamma 1 beta 3
dina beta 30 jules gamma 43 bruno gamma 119 dina gamma 97 jules gamma 14 gus alpha 44 jules delta 31 eli beta 87 kim delta 118
beta 2 gamma 4 alpha 1 delta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040040
qwen/qwen3.7-plus
awkweave-0040041
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]]}
ivan alpha 17 bruno gamma 7 ivan delta 6 eli alpha 15 gus delta 2 dina alpha 9 eli delta 6 chen beta 3
alpha 41 gamma 7 delta 14 beta 3
lina gamma 15 lina delta 23 alice beta 29 gus gamma 19 kim gamma 29 gus beta 5 dina beta 21 lina delta 7 lina beta 19
gamma 63 delta 30 beta 74
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040041-p1
Calculate the sum of the third column for each distinct category in the second column, presenting the results in the order of the categories' 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]]}
ivan alpha 17 bruno gamma 7 ivan delta 6 eli alpha 15 gus delta 2 dina alpha 9 eli delta 6 chen beta 3
alpha 41 gamma 7 delta 14 beta 3
lina gamma 15 lina delta 23 alice beta 29 gus gamma 19 kim gamma 29 gus beta 5 dina beta 21 lina delta 7 lina beta 19
gamma 63 delta 30 beta 74
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040041
qwen/qwen3.7-plus
awkweave-0040042
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]]}
gamma indigo 10 delta birch 12 delta juniper 103 delta amber 4 beta birch 36 beta ember 59 alpha harbor 115 delta fable 56 delta fable 44
delta 5 beta 2
alpha cobalt 30 delta indigo 9 alpha fable 43 delta fable 92 gamma birch 63 beta fable 68
alpha 2 delta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040042-p1
List each duplicate value from the first column along with its frequency, sorted by the order of first occurrence.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma indigo 10 delta birch 12 delta juniper 103 delta amber 4 beta birch 36 beta ember 59 alpha harbor 115 delta fable 56 delta fable 44
delta 5 beta 2
alpha cobalt 30 delta indigo 9 alpha fable 43 delta fable 92 gamma birch 63 beta fable 68
alpha 2 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040042
qwen/qwen3.7-plus
awkweave-0040043
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"]}
note region display_name state r001 kim 24 pending r002 jules 28 pending r003 kim 13 ready r004 chen 20 closed r005 ivan 14 pending r006 dina 18 failed
pending pending ready closed pending failed
note region display_name state r001 eli 17 ready r002 lina 21 paused r003 kim 25 pending r004 farah 29 pending r005 alice 30 active r006 hana 15 paused
ready paused pending pending active paused
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040043-p1
Skip the header row and output the values from the state column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
note region display_name state r001 kim 24 pending r002 jules 28 pending r003 kim 13 ready r004 chen 20 closed r005 ivan 14 pending r006 dina 18 failed
pending pending ready closed pending failed
note region display_name state r001 eli 17 ready r002 lina 21 paused r003 kim 25 pending r004 farah 29 pending r005 alice 30 active r006 hana 15 paused
ready paused pending pending active paused
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040043
qwen/qwen3.7-plus
awkweave-0040044
The first row is a header. Print display_name for data rows whose score is greater than 8.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>8{print $h["display_name"]}
record_id display_name score state r001 farah 12 pending r002 hana 3 active r003 jules 29 active r004 kim 3 failed r005 lina 20 paused r006 kim 18 failed r007 farah 28 active r008 jules 23 paused
farah jules lina kim farah jules
record_id display_name score state r001 lina 16 closed r002 hana 29 pending r003 chen 13 failed r004 kim 1 pending r005 ivan 18 paused r006 kim 14 ready
lina hana chen ivan kim
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040044-p1
Ignoring the header, print the display_name for any data row where the score is strictly greater than 8.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>8{print $h["display_name"]}
record_id display_name score state r001 farah 12 pending r002 hana 3 active r003 jules 29 active r004 kim 3 failed r005 lina 20 paused r006 kim 18 failed r007 farah 28 active r008 jules 23 paused
farah jules lina kim farah jules
record_id display_name score state r001 lina 16 closed r002 hana 29 pending r003 chen 13 failed r004 kim 1 pending r005 ivan 18 paused r006 kim 14 ready
lina hana chen ivan kim
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040044
qwen/qwen3.7-plus
awkweave-0040045
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
bruno 3 ready farah 8 active gus 12 ready kim 2 closed lina 8 closed lina 13 paused
bruno farah gus kim lina lina
alice 4 failed gus 2 closed eli 29 paused eli 4 failed hana 15 active alice 29 paused
alice gus eli eli hana alice
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040045-p1
Given tab-separated input, output the first column for every record.
BEGIN{FS=OFS="\t"}{print $1}
bruno 3 ready farah 8 active gus 12 ready kim 2 closed lina 8 closed lina 13 paused
bruno farah gus kim lina lina
alice 4 failed gus 2 closed eli 29 paused eli 4 failed hana 15 active alice 29 paused
alice gus eli eli hana alice
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040045
qwen/qwen3.7-plus
awkweave-0040046
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 8.
BEGIN{FS=OFS=","}$2>8{print $1}
gus,4,pending alice,16,active gus,3,closed farah,20,ready gus,13,ready ivan,15,pending dina,17,closed kim,2,paused
alice farah gus ivan dina
lina,9,failed alice,22,failed hana,11,closed eli,14,closed alice,13,active hana,28,ready lina,13,failed kim,9,active jules,18,active lina,3,ready
lina alice hana eli alice hana lina kim jules
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040046-p1
For simple comma-separated input without quoted commas, print the first column only if the second column's value is greater than 8.
BEGIN{FS=OFS=","}$2>8{print $1}
gus,4,pending alice,16,active gus,3,closed farah,20,ready gus,13,ready ivan,15,pending dina,17,closed kim,2,paused
alice farah gus ivan dina
lina,9,failed alice,22,failed hana,11,closed eli,14,closed alice,13,active hana,28,ready lina,13,failed kim,9,active jules,18,active lina,3,ready
lina alice hana eli alice hana lina kim jules
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040046
qwen/qwen3.7-plus
awkweave-0040047
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
alice delta 43 alice indigo 85 eli juniper 93 jules ember 92 jules grove 72 bruno grove 113 bruno cobalt 26 lina harbor 95 lina indigo 95 alice grove 116
alice delta 43 alice indigo 85 eli juniper 93 jules ember 92 jules grove 72 bruno grove 113 bruno cobalt 26 lina harbor 95 lina indigo 95 alice grove 116
lina birch 32 jules fable 99 chen delta 50 chen birch 44 farah cobalt 55 jules fable 119 gus fable 78 chen fable 9 ivan harbor 88 chen cobalt 6
lina birch 32 jules fable 99 chen delta 50 chen birch 44 farah cobalt 55 jules fable 119 gus fable 78 chen fable 9 ivan harbor 88 chen cobalt 6
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040047-p1
Remove leading and trailing whitespace, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
alice delta 43 alice indigo 85 eli juniper 93 jules ember 92 jules grove 72 bruno grove 113 bruno cobalt 26 lina harbor 95 lina indigo 95 alice grove 116
alice delta 43 alice indigo 85 eli juniper 93 jules ember 92 jules grove 72 bruno grove 113 bruno cobalt 26 lina harbor 95 lina indigo 95 alice grove 116
lina birch 32 jules fable 99 chen delta 50 chen birch 44 farah cobalt 55 jules fable 119 gus fable 78 chen fable 9 ivan harbor 88 chen cobalt 6
lina birch 32 jules fable 99 chen delta 50 chen birch 44 farah cobalt 55 jules fable 119 gus fable 78 chen fable 9 ivan harbor 88 chen cobalt 6
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040047
qwen/qwen3.7-plus
awkweave-0040048
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
hana juniper 84 failed lina amber 15 ready dina ember 100 failed gus cobalt 76 active lina ember 36 pending alice delta 80 closed hana amber 40 active
hana juniper 84 failed
ivan cobalt 118 ready farah fable 90 closed lina ember 87 active kim grove 114 closed hana grove 73 failed bruno amber 107 closed chen birch 113 pending
bruno amber 107 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040048-p1
Output the longest line from the input, selecting the first one encountered if there is a tie in length.
{if(length($0)>length(best))best=$0}END{print best}
hana juniper 84 failed lina amber 15 ready dina ember 100 failed gus cobalt 76 active lina ember 36 pending alice delta 80 closed hana amber 40 active
hana juniper 84 failed
ivan cobalt 118 ready farah fable 90 closed lina ember 87 active kim grove 114 closed hana grove 73 failed bruno amber 107 closed chen birch 113 pending
bruno amber 107 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040048
qwen/qwen3.7-plus
awkweave-0040049
Print every 3rd line starting at line 3 (then line 6, and so on).
NR%3==0
hana 23 chen 103 lina 120 hana 15 kim 8 eli 62 gus 34 ivan 106
lina 120 eli 62
lina 31 gus 59 ivan 93 alice 107 ivan 12 hana 96 jules 58 dina 33 gus 48 alice 109
ivan 93 hana 96 gus 48
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040049-p1
Print lines 3, 6, 9, and so on, effectively outputting every third line starting from the third.
NR%3==0
hana 23 chen 103 lina 120 hana 15 kim 8 eli 62 gus 34 ivan 106
lina 120 eli 62
lina 31 gus 59 ivan 93 alice 107 ivan 12 hana 96 jules 58 dina 33 gus 48 alice 109
ivan 93 hana 96 gus 48
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040049
qwen/qwen3.7-plus
awkweave-0040050
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha juniper 108 beta fable 75 delta ember 33 gamma indigo 66 delta birch 28 beta indigo 12 alpha harbor 56 beta grove 2 alpha amber 98 gamma ember 87
8
beta grove 72 alpha indigo 116 delta amber 31 delta juniper 41 delta juniper 3 beta fable 102 gamma harbor 33 beta delta 48
7
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040050-p1
Calculate and display only the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
alpha juniper 108 beta fable 75 delta ember 33 gamma indigo 66 delta birch 28 beta indigo 12 alpha harbor 56 beta grove 2 alpha amber 98 gamma ember 87
8
beta grove 72 alpha indigo 116 delta amber 31 delta juniper 41 delta juniper 3 beta fable 102 gamma harbor 33 beta delta 48
7
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040050
qwen/qwen3.7-plus
awkweave-0040051
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}
alice 17 0 kim 21 21 bruno 27 23 chen 8 6 bruno 8 21 lina 27 29 eli 1 22 chen 5 5
kim 1.00 bruno 1.17 chen 1.33 bruno 0.38 lina 0.93 eli 0.05 chen 1.00
dina 1 0 alice 16 20 lina 10 30 eli 8 19 kim 1 12 dina 21 10 bruno 4 30 kim 28 18
alice 0.80 lina 0.33 eli 0.42 kim 0.08 dina 2.10 bruno 0.13 kim 1.56
ratio
2
train
original-grammar
CC-BY-4.0
null
null