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-0054003
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 beta 8 bruno gamma 23 bruno beta 6 lina gamma 11 alice beta 26 gus alpha 20 bruno gamma 6
beta 40 gamma 40 alpha 20
chen beta 7 gus beta 16 eli alpha 8 hana alpha 5 eli beta 14 lina gamma 29
beta 37 alpha 13 gamma 29
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054003-p1
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 beta 8 bruno gamma 23 bruno beta 6 lina gamma 11 alice beta 26 gus alpha 20 bruno gamma 6
beta 40 gamma 40 alpha 20
chen beta 7 gus beta 16 eli alpha 8 hana alpha 5 eli beta 14 lina gamma 29
beta 37 alpha 13 gamma 29
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0054003
qwen/qwen3.7-plus
awkweave-0054004
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
alpha indigo 92 beta ember 111 delta harbor 86 gamma ember 94 gamma birch 103 beta fable 39 gamma fable 100 alpha amber 80
alpha 2 beta 2 gamma 3
alpha indigo 95 alpha fable 0 alpha indigo 73 gamma fable 22 beta birch 58 beta birch 55 alpha amber 51 delta harbor 15 gamma birch 16
alpha 4 gamma 2 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054004-p1
List each duplicate value from column 1 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]]}
alpha indigo 92 beta ember 111 delta harbor 86 gamma ember 94 gamma birch 103 beta fable 39 gamma fable 100 alpha amber 80
alpha 2 beta 2 gamma 3
alpha indigo 95 alpha fable 0 alpha indigo 73 gamma fable 22 beta birch 58 beta birch 55 alpha amber 51 delta harbor 15 gamma birch 16
alpha 4 gamma 2 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054004
qwen/qwen3.7-plus
awkweave-0054005
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"]}
region record_id note display_name r001 alice 29 pending r002 farah 1 active r003 bruno 21 active r004 farah 18 failed r005 jules 7 paused r006 eli 12 paused
pending active active failed paused paused
region record_id note display_name r001 kim 30 pending r002 kim 16 closed r003 dina 11 ready r004 dina 12 paused r005 kim 19 active r006 alice 9 paused r007 ivan 16 pending
pending closed ready paused active paused pending
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054005-p1
Skip the header row and output the display_name column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
region record_id note display_name r001 alice 29 pending r002 farah 1 active r003 bruno 21 active r004 farah 18 failed r005 jules 7 paused r006 eli 12 paused
pending active active failed paused paused
region record_id note display_name r001 kim 30 pending r002 kim 16 closed r003 dina 11 ready r004 dina 12 paused r005 kim 19 active r006 alice 9 paused r007 ivan 16 pending
pending closed ready paused active paused pending
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054005
qwen/qwen3.7-plus
awkweave-0054006
The first row is a header. Print display_name for data rows whose score is greater than 13.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>13{print $h["display_name"]}
record_id display_name score state r001 kim 28 closed r002 farah 18 closed r003 hana 14 pending r004 bruno 9 pending r005 alice 29 active r006 kim 28 active r007 dina 23 closed
kim farah hana alice kim dina
record_id display_name score state r001 alice 7 pending r002 hana 21 failed r003 dina 7 ready r004 lina 20 active r005 hana 4 paused r006 jules 25 paused r007 eli 11 active r008 dina 23 closed r009 farah 26 pending r010 hana 13 ready
hana lina jules dina farah
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054006-p1
Ignore the header row and print the display_name for rows where the score is greater than 13.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>13{print $h["display_name"]}
record_id display_name score state r001 kim 28 closed r002 farah 18 closed r003 hana 14 pending r004 bruno 9 pending r005 alice 29 active r006 kim 28 active r007 dina 23 closed
kim farah hana alice kim dina
record_id display_name score state r001 alice 7 pending r002 hana 21 failed r003 dina 7 ready r004 lina 20 active r005 hana 4 paused r006 jules 25 paused r007 eli 11 active r008 dina 23 closed r009 farah 26 pending r010 hana 13 ready
hana lina jules dina farah
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054006
qwen/qwen3.7-plus
awkweave-0054007
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
lina 16 pending lina 30 active chen 28 failed alice 6 pending lina 4 ready farah 8 ready hana 7 pending kim 3 ready
lina lina chen alice lina farah hana kim
kim 8 ready gus 13 closed gus 30 closed jules 14 closed gus 24 ready alice 7 ready ivan 25 failed
kim gus gus jules gus alice ivan
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054007-p1
Given tab-separated input, output the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
lina 16 pending lina 30 active chen 28 failed alice 6 pending lina 4 ready farah 8 ready hana 7 pending kim 3 ready
lina lina chen alice lina farah hana kim
kim 8 ready gus 13 closed gus 30 closed jules 14 closed gus 24 ready alice 7 ready ivan 25 failed
kim gus gus jules gus alice ivan
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054007
qwen/qwen3.7-plus
awkweave-0054008
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}
farah,2,paused eli,7,active ivan,16,failed farah,1,closed ivan,3,closed alice,22,ready bruno,12,closed kim,18,failed ivan,18,ready hana,19,pending
alice
bruno,20,ready jules,26,closed chen,10,pending dina,1,active farah,15,pending ivan,10,ready
bruno jules
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054008-p1
For simple comma-separated data without quoted commas, print the first column if the second column value is greater than 19.
BEGIN{FS=OFS=","}$2>19{print $1}
farah,2,paused eli,7,active ivan,16,failed farah,1,closed ivan,3,closed alice,22,ready bruno,12,closed kim,18,failed ivan,18,ready hana,19,pending
alice
bruno,20,ready jules,26,closed chen,10,pending dina,1,active farah,15,pending ivan,10,ready
bruno jules
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054008
qwen/qwen3.7-plus
awkweave-0054009
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina harbor 85 ivan fable 81 jules amber 76 jules ember 102 dina cobalt 4 lina indigo 73 hana harbor 8 chen ember 29 hana juniper 1 farah delta 9
lina harbor 85 ivan fable 81 jules amber 76 jules ember 102 dina cobalt 4 lina indigo 73 hana harbor 8 chen ember 29 hana juniper 1 farah delta 9
chen cobalt 42 gus harbor 75 dina indigo 42 dina ember 81 alice fable 8 lina delta 51 kim indigo 8
chen cobalt 42 gus harbor 75 dina indigo 42 dina ember 81 alice fable 8 lina delta 51 kim indigo 8
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054009-p1
Remove leading and trailing whitespace and replace internal whitespace sequences with a single space.
{$1=$1;print}
lina harbor 85 ivan fable 81 jules amber 76 jules ember 102 dina cobalt 4 lina indigo 73 hana harbor 8 chen ember 29 hana juniper 1 farah delta 9
lina harbor 85 ivan fable 81 jules amber 76 jules ember 102 dina cobalt 4 lina indigo 73 hana harbor 8 chen ember 29 hana juniper 1 farah delta 9
chen cobalt 42 gus harbor 75 dina indigo 42 dina ember 81 alice fable 8 lina delta 51 kim indigo 8
chen cobalt 42 gus harbor 75 dina indigo 42 dina ember 81 alice fable 8 lina delta 51 kim indigo 8
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054009
qwen/qwen3.7-plus
awkweave-0054010
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
hana amber 108 failed gus birch 3 failed eli fable 36 closed eli ember 54 failed alice delta 27 paused lina ember 48 closed
hana amber 108 failed
farah grove 89 failed alice fable 69 active jules ember 65 ready bruno delta 68 failed farah grove 112 failed eli amber 17 closed lina delta 37 active bruno amber 104 closed ivan cobalt 14 closed
farah grove 112 failed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054010-p1
Identify and print the longest line from the input; if there is a tie, select the first one.
{if(length($0)>length(best))best=$0}END{print best}
hana amber 108 failed gus birch 3 failed eli fable 36 closed eli ember 54 failed alice delta 27 paused lina ember 48 closed
hana amber 108 failed
farah grove 89 failed alice fable 69 active jules ember 65 ready bruno delta 68 failed farah grove 112 failed eli amber 17 closed lina delta 37 active bruno amber 104 closed ivan cobalt 14 closed
farah grove 112 failed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054010
qwen/qwen3.7-plus
awkweave-0054011
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
chen 90 ivan 51 kim 114 lina 98 farah 39 farah 46
ivan 51 lina 98 farah 46
chen 79 farah 51 jules 72 farah 100 ivan 89 chen 9
farah 51 farah 100 chen 9
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054011-p1
Output every second line, beginning with line 2 (i.e., lines 2, 4, 6, ...).
NR%2==0
chen 90 ivan 51 kim 114 lina 98 farah 39 farah 46
ivan 51 lina 98 farah 46
chen 79 farah 51 jules 72 farah 100 ivan 89 chen 9
farah 51 farah 100 chen 9
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054011
qwen/qwen3.7-plus
awkweave-0054012
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta ember 91 gamma harbor 51 gamma birch 32 beta indigo 61 alpha juniper 51 alpha indigo 81 alpha delta 88 alpha grove 111 alpha delta 83
7
delta birch 4 alpha juniper 16 delta harbor 116 alpha grove 24 gamma indigo 79 gamma amber 28 alpha cobalt 94
7
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054012-p1
Determine the number of unique entries in the second column and output just that total.
{if(!seen[$2]++)n++}END{print n+0}
beta ember 91 gamma harbor 51 gamma birch 32 beta indigo 61 alpha juniper 51 alpha indigo 81 alpha delta 88 alpha grove 111 alpha delta 83
7
delta birch 4 alpha juniper 16 delta harbor 116 alpha grove 24 gamma indigo 79 gamma amber 28 alpha cobalt 94
7
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054012
qwen/qwen3.7-plus
awkweave-0054013
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}
farah 30 0 dina 25 17 ivan 19 6 alice 25 26 dina 28 5 kim 13 30 jules 10 1 lina 28 28 ivan 14 23 bruno 20 27
dina 1.47 ivan 3.17 alice 0.96 dina 5.60 kim 0.43 jules 10.00 lina 1.00 ivan 0.61 bruno 0.74
farah 27 0 jules 2 20 lina 9 30 gus 13 26 alice 9 2 gus 26 6 bruno 13 12 bruno 23 5 farah 30 6
jules 0.10 lina 0.30 gus 0.50 alice 4.50 gus 4.33 bruno 1.08 bruno 4.60 farah 5.00
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054013-p1
For every row where the third column is not zero, display the first and second columns along with the result of dividing the second by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
farah 30 0 dina 25 17 ivan 19 6 alice 25 26 dina 28 5 kim 13 30 jules 10 1 lina 28 28 ivan 14 23 bruno 20 27
dina 1.47 ivan 3.17 alice 0.96 dina 5.60 kim 0.43 jules 10.00 lina 1.00 ivan 0.61 bruno 0.74
farah 27 0 jules 2 20 lina 9 30 gus 13 26 alice 9 2 gus 26 6 bruno 13 12 bruno 23 5 farah 30 6
jules 0.10 lina 0.30 gus 0.50 alice 4.50 gus 4.33 bruno 1.08 bruno 4.60 farah 5.00
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054013
qwen/qwen3.7-plus
awkweave-0054014
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 delta 16 farah juniper 15 ivan harbor 29 hana amber 25 hana indigo 21 bruno harbor 24 chen juniper 26
ivan harbor 29 chen juniper 26 hana amber 25
gus indigo 22 ivan cobalt 14 lina amber 11 chen delta 17 farah indigo 22 jules ember 2
gus indigo 22 farah indigo 22 chen delta 17
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054014-p1
Retrieve the top three records based on the highest numeric values in column 3, sorted in descending order, while maintaining the original input sequence 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 delta 16 farah juniper 15 ivan harbor 29 hana amber 25 hana indigo 21 bruno harbor 24 chen juniper 26
ivan harbor 29 chen juniper 26 hana amber 25
gus indigo 22 ivan cobalt 14 lina amber 11 chen delta 17 farah indigo 22 jules ember 2
gus indigo 22 farah indigo 22 chen delta 17
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054014
qwen/qwen3.7-plus
awkweave-0054015
Select the 5th and 1st fields in that order.
{print $5, $1}
active 98 indigo paused eli gus paused 85 indigo pending eli kim active 52 grove closed chen dina ready 0 ember closed eli jules active 72 fable failed hana eli pending 37 cobalt ready ivan bruno ready 103 indigo paused alice hana ready 83 amber pending gus kim closed 81 amber failed farah alice
eli active eli paused chen active eli ready hana active ivan pending alice ready gus ready farah closed
closed 4 birch ready kim dina failed 4 harbor paused jules alice paused 9 juniper closed bruno bruno paused 88 delta failed eli bruno closed 4 fable failed alice chen ready 36 harbor active hana bruno closed 110 juniper active eli hana active 75 fable closed gus chen active 14 harbor pending jules farah
kim closed jules failed bruno paused eli paused alice closed hana ready eli closed gus active jules active
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054015-p1
Extract and display the fifth field followed by the first field.
{print $5, $1}
active 98 indigo paused eli gus paused 85 indigo pending eli kim active 52 grove closed chen dina ready 0 ember closed eli jules active 72 fable failed hana eli pending 37 cobalt ready ivan bruno ready 103 indigo paused alice hana ready 83 amber pending gus kim closed 81 amber failed farah alice
eli active eli paused chen active eli ready hana active ivan pending alice ready gus ready farah closed
closed 4 birch ready kim dina failed 4 harbor paused jules alice paused 9 juniper closed bruno bruno paused 88 delta failed eli bruno closed 4 fable failed alice chen ready 36 harbor active hana bruno closed 110 juniper active eli hana active 75 fable closed gus chen active 14 harbor pending jules farah
kim closed jules failed bruno paused eli paused alice closed hana ready eli closed gus active jules active
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054015
qwen/qwen3.7-plus
awkweave-0054016
Print the last field of every input line.
{print $NF}
83 pending delta pending 36 paused ember active 70 ready ember ready 94 failed harbor paused 1 paused delta pending 46 active indigo failed 104 pending indigo failed
pending active ready paused pending failed failed
16 failed ember ready 46 paused harbor active 3 active grove pending 30 ready delta pending 118 paused amber paused 34 failed cobalt pending 118 paused juniper active 109 pending ember ready 109 active grove active 3 pending cobalt closed
ready active pending pending paused pending active ready active closed
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054016-p1
Output the final field from each line of input.
{print $NF}
83 pending delta pending 36 paused ember active 70 ready ember ready 94 failed harbor paused 1 paused delta pending 46 active indigo failed 104 pending indigo failed
pending active ready paused pending failed failed
16 failed ember ready 46 paused harbor active 3 active grove pending 30 ready delta pending 118 paused amber paused 34 failed cobalt pending 118 paused juniper active 109 pending ember ready 109 active grove active 3 pending cobalt closed
ready active pending pending paused pending active ready active closed
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054016
qwen/qwen3.7-plus
awkweave-0054017
Print the complete records where column 4 is at most 51.
$4 <= 51
birch juniper juniper 65 ivan amber fable fable 74 lina birch ember amber 96 jules ember harbor fable 37 jules harbor juniper delta 62 bruno harbor delta cobalt 106 chen
ember harbor fable 37 jules
delta indigo indigo 46 chen ember grove birch 114 jules harbor fable ember 0 gus cobalt birch birch 24 ivan grove cobalt harbor 48 eli juniper ember juniper 58 gus
delta indigo indigo 46 chen harbor fable ember 0 gus cobalt birch birch 24 ivan grove cobalt harbor 48 eli
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054017-p1
Display full records where the value in the fourth column is less than or equal to 51.
$4 <= 51
birch juniper juniper 65 ivan amber fable fable 74 lina birch ember amber 96 jules ember harbor fable 37 jules harbor juniper delta 62 bruno harbor delta cobalt 106 chen
ember harbor fable 37 jules
delta indigo indigo 46 chen ember grove birch 114 jules harbor fable ember 0 gus cobalt birch birch 24 ivan grove cobalt harbor 48 eli juniper ember juniper 58 gus
delta indigo indigo 46 chen harbor fable ember 0 gus cobalt birch birch 24 ivan grove cobalt harbor 48 eli
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054017
qwen/qwen3.7-plus
awkweave-0054018
Show whole lines whose 3rd field is between 7 and 26, inclusive.
$3 >= 7 && $3 <= 26
harbor dina 19 kim fable alice 30 farah harbor bruno 24 gus indigo lina 28 gus birch ivan 16 chen indigo alice 22 gus ember eli 18 eli
harbor dina 19 kim harbor bruno 24 gus birch ivan 16 chen indigo alice 22 gus ember eli 18 eli
ember lina 15 ivan indigo alice 19 eli grove alice 9 lina indigo alice 7 kim fable chen 24 bruno amber kim 11 ivan delta hana 18 jules indigo eli 13 eli
ember lina 15 ivan indigo alice 19 eli grove alice 9 lina indigo alice 7 kim fable chen 24 bruno amber kim 11 ivan delta hana 18 jules indigo eli 13 eli
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054018-p1
Print entire lines where the third field falls within the inclusive range of 7 to 26.
$3 >= 7 && $3 <= 26
harbor dina 19 kim fable alice 30 farah harbor bruno 24 gus indigo lina 28 gus birch ivan 16 chen indigo alice 22 gus ember eli 18 eli
harbor dina 19 kim harbor bruno 24 gus birch ivan 16 chen indigo alice 22 gus ember eli 18 eli
ember lina 15 ivan indigo alice 19 eli grove alice 9 lina indigo alice 7 kim fable chen 24 bruno amber kim 11 ivan delta hana 18 jules indigo eli 13 eli
ember lina 15 ivan indigo alice 19 eli grove alice 9 lina indigo alice 7 kim fable chen 24 bruno amber kim 11 ivan delta hana 18 jules indigo eli 13 eli
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054018
qwen/qwen3.7-plus
awkweave-0054019
Print column 4 only for rows where column 2 is exactly active.
$2 == "active"{print $4}
117 closed indigo ivan 100 active cobalt alice 19 closed juniper jules 10 pending indigo lina 108 active amber bruno 76 ready amber alice 114 closed cobalt farah 17 active indigo ivan 103 pending juniper ivan 111 pending delta farah
alice bruno ivan
39 active cobalt jules 90 ready grove alice 39 active birch hana 119 paused indigo alice 38 closed fable farah 120 pending cobalt chen 107 ready juniper ivan 39 paused grove bruno
jules hana
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054019-p1
Output only the fourth column for rows where the second column matches the exact string 'active'.
$2 == "active"{print $4}
117 closed indigo ivan 100 active cobalt alice 19 closed juniper jules 10 pending indigo lina 108 active amber bruno 76 ready amber alice 114 closed cobalt farah 17 active indigo ivan 103 pending juniper ivan 111 pending delta farah
alice bruno ivan
39 active cobalt jules 90 ready grove alice 39 active birch hana 119 paused indigo alice 38 closed fable farah 120 pending cobalt chen 107 ready juniper ivan 39 paused grove bruno
jules hana
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054019
qwen/qwen3.7-plus
awkweave-0054020
Print all fields from lines where field 3 begins with ERROR.
$3 ~ /^ERROR/
19 indigo DEBUG 104 grove ERROR 103 juniper INFO 86 birch ERROR 5 grove INFO 51 ember ERROR 1 fable WARN
104 grove ERROR 86 birch ERROR 51 ember ERROR
104 cobalt INFO 25 delta ERROR 119 delta ERROR 120 cobalt DEBUG 75 birch ERROR 85 juniper WARN 82 birch DEBUG 5 juniper INFO 73 delta ERROR 57 delta INFO
25 delta ERROR 119 delta ERROR 75 birch ERROR 73 delta ERROR
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054020-p1
Print all fields from lines where the third field starts with the prefix 'ERROR'.
$3 ~ /^ERROR/
19 indigo DEBUG 104 grove ERROR 103 juniper INFO 86 birch ERROR 5 grove INFO 51 ember ERROR 1 fable WARN
104 grove ERROR 86 birch ERROR 51 ember ERROR
104 cobalt INFO 25 delta ERROR 119 delta ERROR 120 cobalt DEBUG 75 birch ERROR 85 juniper WARN 82 birch DEBUG 5 juniper INFO 73 delta ERROR 57 delta INFO
25 delta ERROR 119 delta ERROR 75 birch ERROR 73 delta ERROR
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054020
qwen/qwen3.7-plus
awkweave-0054021
Print every line except those containing the exact text ember.
$0 !~ /ember/
birch 74 closed amber 16 paused harbor 50 failed grove 48 closed harbor 74 active birch 82 active ember 999 active
birch 74 closed amber 16 paused harbor 50 failed grove 48 closed harbor 74 active birch 82 active
juniper 71 paused fable 51 active delta 6 paused grove 61 failed fable 15 failed fable 57 closed juniper 63 ready ember 999 active
juniper 71 paused fable 51 active delta 6 paused grove 61 failed fable 15 failed fable 57 closed juniper 63 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054021-p1
Output every line except those that contain the exact substring 'ember'.
$0 !~ /ember/
birch 74 closed amber 16 paused harbor 50 failed grove 48 closed harbor 74 active birch 82 active ember 999 active
birch 74 closed amber 16 paused harbor 50 failed grove 48 closed harbor 74 active birch 82 active
juniper 71 paused fable 51 active delta 6 paused grove 61 failed fable 15 failed fable 57 closed juniper 63 ready ember 999 active
juniper 71 paused fable 51 active delta 6 paused grove 61 failed fable 15 failed fable 57 closed juniper 63 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054021
qwen/qwen3.7-plus
awkweave-0054022
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
eli cobalt 20 dina delta 3 jules ember 113 dina ember 26 kim birch 93 gus amber 110 farah indigo 61 farah harbor 7 dina delta 16
dina delta 3 jules ember 113
farah delta 8 dina fable 73 farah ember 97 alice grove 107 gus ember 98 farah birch 26 lina amber 56 chen amber 88
dina fable 73 farah ember 97
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054022-p1
Print lines 2 through 3, inclusive.
NR >= 2 && NR <= 3
eli cobalt 20 dina delta 3 jules ember 113 dina ember 26 kim birch 93 gus amber 110 farah indigo 61 farah harbor 7 dina delta 16
dina delta 3 jules ember 113
farah delta 8 dina fable 73 farah ember 97 alice grove 107 gus ember 98 farah birch 26 lina amber 56 chen amber 88
dina fable 73 farah ember 97
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054022
qwen/qwen3.7-plus
awkweave-0054023
Output only the first 5 records.
NR <= 5
alice 18 fable kim 50 indigo dina 5 fable gus 34 harbor jules 34 juniper eli 82 birch
alice 18 fable kim 50 indigo dina 5 fable gus 34 harbor jules 34 juniper
jules 14 juniper chen 106 cobalt farah 76 amber bruno 18 juniper alice 72 indigo alice 96 indigo
jules 14 juniper chen 106 cobalt farah 76 amber bruno 18 juniper alice 72 indigo
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054023-p1
Display only the first 5 records.
NR <= 5
alice 18 fable kim 50 indigo dina 5 fable gus 34 harbor jules 34 juniper eli 82 birch
alice 18 fable kim 50 indigo dina 5 fable gus 34 harbor jules 34 juniper
jules 14 juniper chen 106 cobalt farah 76 amber bruno 18 juniper alice 72 indigo alice 96 indigo
jules 14 juniper chen 106 cobalt farah 76 amber bruno 18 juniper alice 72 indigo
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054023
qwen/qwen3.7-plus
awkweave-0054024
Skip the first line and print every remaining line unchanged.
NR > 1
hana 44 juniper kim 57 cobalt bruno 101 indigo alice 100 cobalt hana 29 fable eli 8 ember
kim 57 cobalt bruno 101 indigo alice 100 cobalt hana 29 fable eli 8 ember
kim 103 fable ivan 17 juniper gus 77 harbor dina 20 juniper kim 95 cobalt alice 53 harbor
ivan 17 juniper gus 77 harbor dina 20 juniper kim 95 cobalt alice 53 harbor
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054024-p1
Omit the initial line and output all subsequent lines exactly as they appear.
NR > 1
hana 44 juniper kim 57 cobalt bruno 101 indigo alice 100 cobalt hana 29 fable eli 8 ember
kim 57 cobalt bruno 101 indigo alice 100 cobalt hana 29 fable eli 8 ember
kim 103 fable ivan 17 juniper gus 77 harbor dina 20 juniper kim 95 cobalt alice 53 harbor
ivan 17 juniper gus 77 harbor dina 20 juniper kim 95 cobalt alice 53 harbor
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054024
qwen/qwen3.7-plus
awkweave-0054025
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
ivan ready 19 dina pending 101 hana ready 64 bruno closed 13 alice pending 114 chen paused 113 lina ready 74 jules pending 19 alice failed 44 alice active 64
3
chen paused 16 alice pending 12 kim pending 90 hana closed 70 farah active 61 chen pending 20 ivan pending 114 alice ready 120
4
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054025-p1
Determine the number of entries where the second column contains 'pending', outputting 0 if no such entries exist.
$2 == "pending"{n++}END{print n+0}
ivan ready 19 dina pending 101 hana ready 64 bruno closed 13 alice pending 114 chen paused 113 lina ready 74 jules pending 19 alice failed 44 alice active 64
3
chen paused 16 alice pending 12 kim pending 90 hana closed 70 farah active 61 chen pending 20 ivan pending 114 alice ready 120
4
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054025
qwen/qwen3.7-plus
awkweave-0054026
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
chen 20 birch bruno 13 amber kim 18 grove kim 29 ember eli 24 harbor jules 10 fable jules 24 fable kim 30 grove bruno 25 ember hana 15 amber
208
hana 21 cobalt chen 19 fable bruno 9 amber farah 7 ember ivan 15 grove ivan 9 harbor chen 2 juniper jules 14 delta hana 12 ember dina 17 fable
125
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054026-p1
Compute and display the total sum of integer values found in the second column.
{s+=$2}END{print s+0}
chen 20 birch bruno 13 amber kim 18 grove kim 29 ember eli 24 harbor jules 10 fable jules 24 fable kim 30 grove bruno 25 ember hana 15 amber
208
hana 21 cobalt chen 19 fable bruno 9 amber farah 7 ember ivan 15 grove ivan 9 harbor chen 2 juniper jules 14 delta hana 12 ember dina 17 fable
125
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054026
qwen/qwen3.7-plus
awkweave-0054027
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
alice 19 fable kim 4 grove farah 9 grove hana 9 indigo kim 11 amber alice 10 grove
10.33
lina 15 cobalt jules 1 cobalt farah 14 fable lina 18 juniper dina 27 harbor kim 25 cobalt chen 29 indigo hana 8 indigo bruno 11 delta
16.44
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054027-p1
Output the average of the values in the second column, formatted to precisely two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
alice 19 fable kim 4 grove farah 9 grove hana 9 indigo kim 11 amber alice 10 grove
10.33
lina 15 cobalt jules 1 cobalt farah 14 fable lina 18 juniper dina 27 harbor kim 25 cobalt chen 29 indigo hana 8 indigo bruno 11 delta
16.44
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054027
qwen/qwen3.7-plus
awkweave-0054028
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
chen 4 indigo alice 23 birch farah 3 birch jules 5 indigo hana 2 birch eli 18 juniper jules 30 harbor
2
dina 18 indigo jules 14 fable farah 28 delta hana 20 fable kim 28 harbor farah 27 delta
14
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054028-p1
Identify and print the minimum numeric value present in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
chen 4 indigo alice 23 birch farah 3 birch jules 5 indigo hana 2 birch eli 18 juniper jules 30 harbor
2
dina 18 indigo jules 14 fable farah 28 delta hana 20 fable kim 28 harbor farah 27 delta
14
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054028
qwen/qwen3.7-plus
awkweave-0054029
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
farah birch 27 ivan amber 8 farah delta 30 eli grove 21 hana delta 1 farah cobalt 7 dina delta 5 eli cobalt 12 chen delta 2 farah harbor 12
30
chen fable 10 lina ember 20 kim delta 30 chen fable 3 farah ember 10 alice ember 13 farah fable 18
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054029-p1
Identify and print the maximum numeric value present in the third column.
NR==1||$3>extreme{extreme=$3}END{print extreme}
farah birch 27 ivan amber 8 farah delta 30 eli grove 21 hana delta 1 farah cobalt 7 dina delta 5 eli cobalt 12 chen delta 2 farah harbor 12
30
chen fable 10 lina ember 20 kim delta 30 chen fable 3 farah ember 10 alice ember 13 farah fable 18
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054029
qwen/qwen3.7-plus
awkweave-0054030
Count all input records and print the total.
END{print NR}
dina 34 eli 102 alice 87 dina 89 alice 96 kim 10 gus 18 jules 7
8
kim 87 eli 116 gus 116 ivan 91 bruno 76 alice 44
6
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054030-p1
Count the total number of input records and display the result.
END{print NR}
dina 34 eli 102 alice 87 dina 89 alice 96 kim 10 gus 18 jules 7
8
kim 87 eli 116 gus 116 ivan 91 bruno 76 alice 44
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054030
qwen/qwen3.7-plus
awkweave-0054031
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
gus indigo 111 farah cobalt 111 alice harbor 105 hana grove 106 ivan fable 83 jules cobalt 28 ivan fable 83 ivan ember 26 ivan harbor 92 hana fable 36 farah ember 34
gus indigo 111 farah cobalt 111 alice harbor 105 hana grove 106 ivan fable 83 jules cobalt 28 ivan ember 26 ivan harbor 92 hana fable 36 farah ember 34
eli cobalt 51 jules amber 50 farah grove 61 gus amber 26 dina ember 97 lina fable 80 ivan harbor 114 kim amber 83 jules amber 50 lina grove 94
eli cobalt 51 jules amber 50 farah grove 61 gus amber 26 dina ember 97 lina fable 80 ivan harbor 114 kim amber 83 lina grove 94
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054031-p1
Eliminate exact duplicate lines while maintaining the original sequence and keeping only the first instance of each.
!seen[$0]++
gus indigo 111 farah cobalt 111 alice harbor 105 hana grove 106 ivan fable 83 jules cobalt 28 ivan fable 83 ivan ember 26 ivan harbor 92 hana fable 36 farah ember 34
gus indigo 111 farah cobalt 111 alice harbor 105 hana grove 106 ivan fable 83 jules cobalt 28 ivan ember 26 ivan harbor 92 hana fable 36 farah ember 34
eli cobalt 51 jules amber 50 farah grove 61 gus amber 26 dina ember 97 lina fable 80 ivan harbor 114 kim amber 83 jules amber 50 lina grove 94
eli cobalt 51 jules amber 50 farah grove 61 gus amber 26 dina ember 97 lina fable 80 ivan harbor 114 kim amber 83 lina grove 94
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054031
qwen/qwen3.7-plus
awkweave-0054032
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
farah amber 116 lina grove 86 farah ember 24 jules amber 65 lina birch 49 gus birch 89 eli harbor 103 bruno harbor 103 bruno juniper 38 hana juniper 36
farah amber 116 lina grove 86 jules amber 65 gus birch 89 eli harbor 103 bruno harbor 103 hana juniper 36
jules juniper 16 lina indigo 92 farah cobalt 118 kim amber 20 ivan birch 105 lina juniper 101 alice ember 11
jules juniper 16 lina indigo 92 farah cobalt 118 kim amber 20 ivan birch 105 alice ember 11
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054032-p1
Retain only the first occurrence for every unique value in the first column, preserving the original input order.
!seen[$1]++
farah amber 116 lina grove 86 farah ember 24 jules amber 65 lina birch 49 gus birch 89 eli harbor 103 bruno harbor 103 bruno juniper 38 hana juniper 36
farah amber 116 lina grove 86 jules amber 65 gus birch 89 eli harbor 103 bruno harbor 103 hana juniper 36
jules juniper 16 lina indigo 92 farah cobalt 118 kim amber 20 ivan birch 105 lina juniper 101 alice ember 11
jules juniper 16 lina indigo 92 farah cobalt 118 kim amber 20 ivan birch 105 alice ember 11
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054032
qwen/qwen3.7-plus
awkweave-0054033
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
kim 15 grove chen 2 indigo dina 19 birch dina 29 cobalt bruno 28 grove farah 15 grove
kim 15 chen 17 dina 36 dina 65 bruno 93 farah 108
eli 2 fable bruno 16 indigo farah 30 cobalt gus 30 ember ivan 30 ember kim 25 amber jules 24 amber eli 22 fable
eli 2 bruno 18 farah 48 gus 78 ivan 108 kim 133 jules 157 eli 179
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054033-p1
For each entry, output the first column followed by the cumulative sum of the second column, separated by a space.
{s+=$2;print $1,s}
kim 15 grove chen 2 indigo dina 19 birch dina 29 cobalt bruno 28 grove farah 15 grove
kim 15 chen 17 dina 36 dina 65 bruno 93 farah 108
eli 2 fable bruno 16 indigo farah 30 cobalt gus 30 ember ivan 30 ember kim 25 amber jules 24 amber eli 22 fable
eli 2 bruno 18 farah 48 gus 78 ivan 108 kim 133 jules 157 eli 179
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054033
qwen/qwen3.7-plus
awkweave-0054034
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
hana 3 8 indigo ivan 21 8 indigo bruno 9 23 indigo hana 24 22 indigo gus 29 24 juniper jules 6 8 indigo bruno 6 7 harbor gus 26 5 ember farah 25 29 fable
hana 11 ivan 29 bruno 32 hana 46 gus 53 jules 14 bruno 13 gus 31 farah 54
hana 16 13 amber gus 24 13 juniper chen 26 15 fable hana 18 9 fable lina 15 1 birch kim 9 19 indigo lina 4 16 cobalt lina 17 6 cobalt
hana 29 gus 37 chen 41 hana 27 lina 16 kim 28 lina 20 lina 23
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054034-p1
For each row, output the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
hana 3 8 indigo ivan 21 8 indigo bruno 9 23 indigo hana 24 22 indigo gus 29 24 juniper jules 6 8 indigo bruno 6 7 harbor gus 26 5 ember farah 25 29 fable
hana 11 ivan 29 bruno 32 hana 46 gus 53 jules 14 bruno 13 gus 31 farah 54
hana 16 13 amber gus 24 13 juniper chen 26 15 fable hana 18 9 fable lina 15 1 birch kim 9 19 indigo lina 4 16 cobalt lina 17 6 cobalt
hana 29 gus 37 chen 41 hana 27 lina 16 kim 28 lina 20 lina 23
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054034
qwen/qwen3.7-plus
awkweave-0054035
Print column 1 and pass when column 2 is at least 22; otherwise print fail.
{print $1,($2>=22?"pass":"fail")}
kim 18 eli 2 lina 20 ivan 14 kim 15 farah 16 hana 24
kim fail eli fail lina fail ivan fail kim fail farah fail hana pass
kim 1 eli 12 gus 28 alice 5 gus 25 gus 9 eli 11 kim 24 eli 19 chen 4
kim fail eli fail gus pass alice fail gus pass gus fail eli fail kim pass eli fail chen fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054035-p1
Output the first column along with 'pass' if the second column is 22 or greater; otherwise, output 'fail'.
{print $1,($2>=22?"pass":"fail")}
kim 18 eli 2 lina 20 ivan 14 kim 15 farah 16 hana 24
kim fail eli fail lina fail ivan fail kim fail farah fail hana pass
kim 1 eli 12 gus 28 alice 5 gus 25 gus 9 eli 11 kim 24 eli 19 chen 4
kim fail eli fail gus pass alice fail gus pass gus fail eli fail kim pass eli fail chen fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054035
qwen/qwen3.7-plus
awkweave-0054036
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
bruno fable 51 chen grove 87 ivan indigo 16 bruno birch 60 kim amber 119 alice indigo 78 bruno birch 71 ivan indigo 112 ivan indigo 19 chen grove 30
BRUNO CHEN IVAN BRUNO KIM ALICE BRUNO IVAN IVAN CHEN
hana cobalt 7 bruno grove 100 gus delta 70 hana cobalt 0 hana amber 9 jules fable 35
HANA BRUNO GUS HANA HANA JULES
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054036-p1
Transform the first column to uppercase and output only that column.
{print toupper($1)}
bruno fable 51 chen grove 87 ivan indigo 16 bruno birch 60 kim amber 119 alice indigo 78 bruno birch 71 ivan indigo 112 ivan indigo 19 chen grove 30
BRUNO CHEN IVAN BRUNO KIM ALICE BRUNO IVAN IVAN CHEN
hana cobalt 7 bruno grove 100 gus delta 70 hana cobalt 0 hana amber 9 jules fable 35
HANA BRUNO GUS HANA HANA JULES
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054036
qwen/qwen3.7-plus
awkweave-0054037
From column 1, print 3 characters starting at character 1.
{print substr($1,1,3)}
juniper 47 harbor 11 indigo 60 juniper 90 harbor 60 ember 17 ember 0
jun har ind jun har emb emb
cobalt 67 harbor 66 delta 35 ember 41 ember 61 ember 90 cobalt 47 fable 50
cob har del emb emb emb cob fab
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054037-p1
Extract and print the first 3 characters from column 1.
{print substr($1,1,3)}
juniper 47 harbor 11 indigo 60 juniper 90 harbor 60 ember 17 ember 0
jun har ind jun har emb emb
cobalt 67 harbor 66 delta 35 ember 41 ember 61 ember 90 cobalt 47 fable 50
cob har del emb emb emb cob fab
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054037
qwen/qwen3.7-plus
awkweave-0054038
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
ember_delta 29 ember_juniper 3 ember_ember 61 harbor_grove 30 fable_indigo 35 grove_cobalt 30
ember delta ember juniper ember ember harbor grove fable indigo grove cobalt
harbor_juniper 74 juniper_delta 68 juniper_delta 60 ember_fable 76 juniper_amber 33 amber_cobalt 57
harbor juniper juniper delta juniper delta ember fable juniper amber amber cobalt
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054038-p1
Substitute all underscores in column 1 with spaces and display the results.
{gsub(/_/," ",$1);print $1}
ember_delta 29 ember_juniper 3 ember_ember 61 harbor_grove 30 fable_indigo 35 grove_cobalt 30
ember delta ember juniper ember ember harbor grove fable indigo grove cobalt
harbor_juniper 74 juniper_delta 68 juniper_delta 60 ember_fable 76 juniper_amber 33 amber_cobalt 57
harbor juniper juniper delta juniper delta ember fable juniper amber amber cobalt
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054038
qwen/qwen3.7-plus
awkweave-0054039
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)}
chen juniper 33 failed dina indigo 70 active farah ember 36 closed gus ember 101 failed hana cobalt 60 failed kim ember 1 paused bruno harbor 37 failed kim grove 49 paused jules indigo 79 closed kim harbor 32 closed
failed 33 juniper chen active 70 indigo dina closed 36 ember farah failed 101 ember gus failed 60 cobalt hana paused 1 ember kim failed 37 harbor bruno paused 49 grove kim closed 79 indigo jules closed 32 harbor kim
alice indigo 24 pending kim cobalt 19 ready gus cobalt 34 paused kim grove 108 closed eli fable 62 ready ivan delta 94 paused alice amber 107 closed alice juniper 55 active bruno ember 104 failed kim birch 84 failed
pending 24 indigo alice ready 19 cobalt kim paused 34 cobalt gus closed 108 grove kim ready 62 fable eli paused 94 delta ivan closed 107 amber alice active 55 juniper alice failed 104 ember bruno failed 84 birch kim
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054039-p1
Reverse the field order for each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
chen juniper 33 failed dina indigo 70 active farah ember 36 closed gus ember 101 failed hana cobalt 60 failed kim ember 1 paused bruno harbor 37 failed kim grove 49 paused jules indigo 79 closed kim harbor 32 closed
failed 33 juniper chen active 70 indigo dina closed 36 ember farah failed 101 ember gus failed 60 cobalt hana paused 1 ember kim failed 37 harbor bruno paused 49 grove kim closed 79 indigo jules closed 32 harbor kim
alice indigo 24 pending kim cobalt 19 ready gus cobalt 34 paused kim grove 108 closed eli fable 62 ready ivan delta 94 paused alice amber 107 closed alice juniper 55 active bruno ember 104 failed kim birch 84 failed
pending 24 indigo alice ready 19 cobalt kim paused 34 cobalt gus closed 108 grove kim ready 62 fable eli paused 94 delta ivan closed 107 amber alice active 55 juniper alice failed 104 ember bruno failed 84 birch kim
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054039
qwen/qwen3.7-plus
awkweave-0054040
Print the number of whitespace-separated fields on each line.
{print NF}
dina birch 33 paused eli indigo 115 pending hana indigo 45 closed gus delta 1 active gus fable 47 failed ivan amber 44 closed kim birch 110 closed gus delta 114 failed jules cobalt 75 pending
4 4 4 4 4 4 4 4 4
bruno cobalt 26 paused kim fable 25 active alice amber 76 active farah harbor 117 closed alice indigo 48 closed ivan ember 75 pending farah amber 3 paused
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054040-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
dina birch 33 paused eli indigo 115 pending hana indigo 45 closed gus delta 1 active gus fable 47 failed ivan amber 44 closed kim birch 110 closed gus delta 114 failed jules cobalt 75 pending
4 4 4 4 4 4 4 4 4
bruno cobalt 26 paused kim fable 25 active alice amber 76 active farah harbor 117 closed alice indigo 48 closed ivan ember 75 pending farah amber 3 paused
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054040
qwen/qwen3.7-plus
awkweave-0054041
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]]}
lina delta 102 ivan delta 56 alice beta 85 bruno beta 58 chen delta 31 eli delta 107
delta 4 beta 2
bruno delta 53 farah delta 59 jules beta 90 kim alpha 39 lina delta 85 farah alpha 28 hana beta 54 alice delta 63
delta 4 beta 2 alpha 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054041-p1
Tally records by unique values in column 2, listing each value and its total 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]]}
lina delta 102 ivan delta 56 alice beta 85 bruno beta 58 chen delta 31 eli delta 107
delta 4 beta 2
bruno delta 53 farah delta 59 jules beta 90 kim alpha 39 lina delta 85 farah alpha 28 hana beta 54 alice delta 63
delta 4 beta 2 alpha 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054041
qwen/qwen3.7-plus
awkweave-0054042
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]]}
alice alpha 5 jules alpha 27 jules beta 3 alice beta 16 gus alpha 2 gus gamma 19 gus delta 17
alpha 34 beta 19 gamma 19 delta 17
gus gamma 10 lina alpha 6 chen alpha 30 eli beta 4 ivan gamma 14 bruno delta 5 hana gamma 11
gamma 35 alpha 36 beta 4 delta 5
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054042-p1
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]]}
alice alpha 5 jules alpha 27 jules beta 3 alice beta 16 gus alpha 2 gus gamma 19 gus delta 17
alpha 34 beta 19 gamma 19 delta 17
gus gamma 10 lina alpha 6 chen alpha 30 eli beta 4 ivan gamma 14 bruno delta 5 hana gamma 11
gamma 35 alpha 36 beta 4 delta 5
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0054042
qwen/qwen3.7-plus
awkweave-0054043
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 ember 4 alpha harbor 8 beta amber 87 beta ember 105 gamma juniper 44 alpha indigo 80
alpha 3 beta 2
delta fable 45 gamma juniper 54 delta amber 104 delta indigo 93 delta amber 66 delta cobalt 27 gamma birch 38 delta amber 88 alpha fable 70 beta ember 105
delta 6 gamma 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054043-p1
List duplicate values from column 1 alongside their occurrence counts, 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]]}
alpha ember 4 alpha harbor 8 beta amber 87 beta ember 105 gamma juniper 44 alpha indigo 80
alpha 3 beta 2
delta fable 45 gamma juniper 54 delta amber 104 delta indigo 93 delta amber 66 delta cobalt 27 gamma birch 38 delta amber 88 alpha fable 70 beta ember 105
delta 6 gamma 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054043
qwen/qwen3.7-plus
awkweave-0054044
The first row is a header. Print the note column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
region display_name note record_id r001 bruno 1 pending r002 kim 15 ready r003 gus 12 pending r004 bruno 10 closed r005 dina 26 active r006 bruno 19 paused
1 15 12 10 26 19
region display_name note record_id r001 gus 27 closed r002 farah 7 active r003 bruno 2 failed r004 gus 21 active r005 alice 24 closed r006 dina 5 active r007 alice 15 active
27 7 2 21 24 5 15
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054044-p1
Skip the header row and output the 'note' column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
region display_name note record_id r001 bruno 1 pending r002 kim 15 ready r003 gus 12 pending r004 bruno 10 closed r005 dina 26 active r006 bruno 19 paused
1 15 12 10 26 19
region display_name note record_id r001 gus 27 closed r002 farah 7 active r003 bruno 2 failed r004 gus 21 active r005 alice 24 closed r006 dina 5 active r007 alice 15 active
27 7 2 21 24 5 15
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054044
qwen/qwen3.7-plus
awkweave-0054045
The first row is a header. Print display_name for data rows whose score is greater than 22.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]}
record_id display_name score state r001 alice 21 failed r002 eli 3 failed r003 lina 23 failed r004 jules 28 paused r005 chen 28 failed r006 jules 25 active r007 ivan 17 closed
lina jules chen jules
record_id display_name score state r001 hana 8 pending r002 kim 24 ready r003 bruno 3 ready r004 ivan 25 closed r005 kim 22 active r006 chen 28 paused r007 eli 8 pending r008 gus 9 pending r009 jules 20 ready r010 chen 8 closed
kim ivan chen
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054045-p1
Ignoring the header, print the 'display_name' column for rows where 'score' is greater than 22.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]}
record_id display_name score state r001 alice 21 failed r002 eli 3 failed r003 lina 23 failed r004 jules 28 paused r005 chen 28 failed r006 jules 25 active r007 ivan 17 closed
lina jules chen jules
record_id display_name score state r001 hana 8 pending r002 kim 24 ready r003 bruno 3 ready r004 ivan 25 closed r005 kim 22 active r006 chen 28 paused r007 eli 8 pending r008 gus 9 pending r009 jules 20 ready r010 chen 8 closed
kim ivan chen
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054045
qwen/qwen3.7-plus
awkweave-0054046
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
gus 28 closed farah 8 active jules 30 ready farah 22 closed kim 16 closed jules 10 closed lina 4 ready kim 15 pending
gus farah jules farah kim jules lina kim
gus 1 closed eli 23 pending chen 30 pending kim 2 ready bruno 30 closed bruno 18 ready dina 22 failed bruno 13 pending gus 17 paused
gus eli chen kim bruno bruno dina bruno gus
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054046-p1
Given tab-separated input, output the first column for every record.
BEGIN{FS=OFS="\t"}{print $1}
gus 28 closed farah 8 active jules 30 ready farah 22 closed kim 16 closed jules 10 closed lina 4 ready kim 15 pending
gus farah jules farah kim jules lina kim
gus 1 closed eli 23 pending chen 30 pending kim 2 ready bruno 30 closed bruno 18 ready dina 22 failed bruno 13 pending gus 17 paused
gus eli chen kim bruno bruno dina bruno gus
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054046
qwen/qwen3.7-plus
awkweave-0054047
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 10.
BEGIN{FS=OFS=","}$2>10{print $1}
dina,15,failed bruno,22,failed bruno,23,ready dina,23,pending ivan,10,paused farah,6,closed kim,26,closed eli,14,ready ivan,26,ready chen,4,closed
dina bruno bruno dina kim eli ivan
dina,18,ready kim,25,ready hana,23,closed chen,14,ready ivan,13,paused dina,19,failed lina,15,failed jules,2,pending
dina kim hana chen ivan dina lina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054047-p1
For simple comma-separated input without quoted commas, print column 1 if column 2 is greater than 10.
BEGIN{FS=OFS=","}$2>10{print $1}
dina,15,failed bruno,22,failed bruno,23,ready dina,23,pending ivan,10,paused farah,6,closed kim,26,closed eli,14,ready ivan,26,ready chen,4,closed
dina bruno bruno dina kim eli ivan
dina,18,ready kim,25,ready hana,23,closed chen,14,ready ivan,13,paused dina,19,failed lina,15,failed jules,2,pending
dina kim hana chen ivan dina lina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054047
qwen/qwen3.7-plus
awkweave-0054048
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
farah fable 45 bruno amber 65 hana fable 28 jules grove 94 gus cobalt 2 ivan amber 95 lina cobalt 29 gus fable 100 lina cobalt 89 bruno juniper 9
farah fable 45 bruno amber 65 hana fable 28 jules grove 94 gus cobalt 2 ivan amber 95 lina cobalt 29 gus fable 100 lina cobalt 89 bruno juniper 9
kim ember 90 eli harbor 86 bruno indigo 97 kim birch 34 ivan birch 102 alice delta 77 dina birch 105 lina harbor 0
kim ember 90 eli harbor 86 bruno indigo 97 kim birch 34 ivan birch 102 alice delta 77 dina birch 105 lina harbor 0
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054048-p1
Remove leading and trailing whitespace, then replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
farah fable 45 bruno amber 65 hana fable 28 jules grove 94 gus cobalt 2 ivan amber 95 lina cobalt 29 gus fable 100 lina cobalt 89 bruno juniper 9
farah fable 45 bruno amber 65 hana fable 28 jules grove 94 gus cobalt 2 ivan amber 95 lina cobalt 29 gus fable 100 lina cobalt 89 bruno juniper 9
kim ember 90 eli harbor 86 bruno indigo 97 kim birch 34 ivan birch 102 alice delta 77 dina birch 105 lina harbor 0
kim ember 90 eli harbor 86 bruno indigo 97 kim birch 34 ivan birch 102 alice delta 77 dina birch 105 lina harbor 0
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054048
qwen/qwen3.7-plus
awkweave-0054049
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
dina birch 104 ready bruno cobalt 1 failed jules ember 31 pending chen amber 76 failed gus birch 4 paused eli juniper 81 paused
jules ember 31 pending
eli birch 104 paused hana harbor 44 pending lina ember 36 pending jules fable 18 pending dina indigo 18 closed farah cobalt 94 ready
hana harbor 44 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054049-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}
dina birch 104 ready bruno cobalt 1 failed jules ember 31 pending chen amber 76 failed gus birch 4 paused eli juniper 81 paused
jules ember 31 pending
eli birch 104 paused hana harbor 44 pending lina ember 36 pending jules fable 18 pending dina indigo 18 closed farah cobalt 94 ready
hana harbor 44 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054049
qwen/qwen3.7-plus
awkweave-0054050
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
eli 56 bruno 11 bruno 58 farah 95 bruno 42 jules 0 farah 106 ivan 58 bruno 64
bruno 11 bruno 42 ivan 58
lina 119 farah 46 lina 78 dina 101 bruno 26 kim 36 chen 98 farah 76
farah 46 bruno 26 farah 76
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054050-p1
Output every third line beginning with line 2 (i.e., lines 2, 5, 8, etc.).
NR%3==2
eli 56 bruno 11 bruno 58 farah 95 bruno 42 jules 0 farah 106 ivan 58 bruno 64
bruno 11 bruno 42 ivan 58
lina 119 farah 46 lina 78 dina 101 bruno 26 kim 36 chen 98 farah 76
farah 46 bruno 26 farah 76
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054050
qwen/qwen3.7-plus
awkweave-0054051
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta indigo 63 gamma delta 71 alpha delta 70 beta birch 94 gamma grove 45 beta harbor 117
3
beta fable 83 gamma juniper 108 delta juniper 43 alpha birch 110 gamma harbor 60 alpha harbor 61 beta harbor 101 gamma grove 21
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054051-p1
Calculate the number of unique values found in the first column and display only that total count.
{if(!seen[$1]++)n++}END{print n+0}
beta indigo 63 gamma delta 71 alpha delta 70 beta birch 94 gamma grove 45 beta harbor 117
3
beta fable 83 gamma juniper 108 delta juniper 43 alpha birch 110 gamma harbor 60 alpha harbor 61 beta harbor 101 gamma grove 21
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054051
qwen/qwen3.7-plus
awkweave-0054052
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 9 0 eli 1 6 chen 25 4 ivan 13 3 alice 2 28 gus 1 11 chen 19 23 farah 22 16 alice 2 1 chen 9 26
eli 0.17 chen 6.25 ivan 4.33 alice 0.07 gus 0.09 chen 0.83 farah 1.38 alice 2.00 chen 0.35
farah 4 0 bruno 28 11 dina 12 6 jules 21 25 chen 28 25 kim 16 9 jules 8 17
bruno 2.55 dina 2.00 jules 0.84 chen 1.12 kim 1.78 jules 0.47
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0054052-p1
For each row, output the value of column 1 followed by the result of column 2 divided by column 3 formatted to two decimal places, excluding any rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
hana 9 0 eli 1 6 chen 25 4 ivan 13 3 alice 2 28 gus 1 11 chen 19 23 farah 22 16 alice 2 1 chen 9 26
eli 0.17 chen 6.25 ivan 4.33 alice 0.07 gus 0.09 chen 0.83 farah 1.38 alice 2.00 chen 0.35
farah 4 0 bruno 28 11 dina 12 6 jules 21 25 chen 28 25 kim 16 9 jules 8 17
bruno 2.55 dina 2.00 jules 0.84 chen 1.12 kim 1.78 jules 0.47
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0054052
qwen/qwen3.7-plus