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-0024831-p1
Calculate the sum of the third column grouped by the second column's categories, listing the groups in the order they first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
bruno beta 28 hana gamma 26 kim alpha 27 hana beta 17 alice beta 9 chen delta 1 alice gamma 3
beta 54 gamma 29 alpha 27 delta 1
eli beta 24 lina alpha 6 lina beta 2 kim gamma 29 hana gamma 8 jules alpha 13 chen alpha 9
beta 26 alpha 28 gamma 37
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024831
qwen/qwen3.7-plus
awkweave-0024832
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]]}
delta grove 30 gamma indigo 101 delta fable 32 delta fable 15 gamma juniper 100 beta fable 72
delta 3 gamma 2
gamma ember 23 beta cobalt 5 alpha cobalt 12 beta juniper 19 alpha delta 94 delta juniper 40 alpha cobalt 52
beta 2 alpha 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024832-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]]}
delta grove 30 gamma indigo 101 delta fable 32 delta fable 15 gamma juniper 100 beta fable 72
delta 3 gamma 2
gamma ember 23 beta cobalt 5 alpha cobalt 12 beta juniper 19 alpha delta 94 delta juniper 40 alpha cobalt 52
beta 2 alpha 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024832
qwen/qwen3.7-plus
awkweave-0024833
The first row is a header. Print the record_id column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
note state region record_id r001 hana 10 ready r002 chen 30 pending r003 ivan 11 pending r004 gus 13 failed r005 dina 13 ready r006 kim 9 failed
ready pending pending failed ready failed
note state region record_id r001 lina 18 pending r002 hana 15 pending r003 chen 16 pending r004 jules 6 active r005 hana 17 closed r006 kim 6 pending r007 gus 23 pending r008 hana 30 ready r009 farah 9 ready
pending pending pending active closed pending pending ready ready
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024833-p1
Treating the initial row as a header, output the 'record_id' field for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
note state region record_id r001 hana 10 ready r002 chen 30 pending r003 ivan 11 pending r004 gus 13 failed r005 dina 13 ready r006 kim 9 failed
ready pending pending failed ready failed
note state region record_id r001 lina 18 pending r002 hana 15 pending r003 chen 16 pending r004 jules 6 active r005 hana 17 closed r006 kim 6 pending r007 gus 23 pending r008 hana 30 ready r009 farah 9 ready
pending pending pending active closed pending pending ready ready
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024833
qwen/qwen3.7-plus
awkweave-0024834
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 chen 11 active r002 gus 24 ready r003 bruno 24 paused r004 alice 23 active r005 hana 14 active r006 bruno 23 paused r007 gus 14 ready r008 kim 16 closed
gus bruno alice bruno kim
record_id display_name score state r001 kim 1 failed r002 lina 15 failed r003 gus 23 failed r004 chen 9 failed r005 dina 17 failed r006 dina 13 failed r007 hana 16 ready r008 farah 7 failed r009 alice 3 closed
lina gus dina hana
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024834-p1
With the first row as a header, output the 'display_name' field for data rows where the 'score' exceeds 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 chen 11 active r002 gus 24 ready r003 bruno 24 paused r004 alice 23 active r005 hana 14 active r006 bruno 23 paused r007 gus 14 ready r008 kim 16 closed
gus bruno alice bruno kim
record_id display_name score state r001 kim 1 failed r002 lina 15 failed r003 gus 23 failed r004 chen 9 failed r005 dina 17 failed r006 dina 13 failed r007 hana 16 ready r008 farah 7 failed r009 alice 3 closed
lina gus dina hana
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024834
qwen/qwen3.7-plus
awkweave-0024835
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
eli 27 closed jules 24 ready farah 27 active gus 6 paused alice 27 paused lina 25 active chen 28 failed
closed ready active paused paused active failed
alice 25 closed farah 14 failed bruno 25 active alice 19 paused dina 23 active dina 27 ready eli 25 ready
closed failed active paused active ready ready
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024835-p1
Given tab-separated input, output the third column for every record.
BEGIN{FS=OFS="\t"}{print $3}
eli 27 closed jules 24 ready farah 27 active gus 6 paused alice 27 paused lina 25 active chen 28 failed
closed ready active paused paused active failed
alice 25 closed farah 14 failed bruno 25 active alice 19 paused dina 23 active dina 27 ready eli 25 ready
closed failed active paused active ready ready
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024835
qwen/qwen3.7-plus
awkweave-0024836
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 13.
BEGIN{FS=OFS=","}$2>13{print $1}
dina,14,ready ivan,17,paused farah,28,ready eli,9,active alice,15,failed kim,4,pending hana,20,active lina,23,pending bruno,3,active
dina ivan farah alice hana lina
jules,12,active chen,28,active lina,13,pending farah,15,pending ivan,16,active chen,14,failed
chen farah ivan chen
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024836-p1
Given comma-separated input without quoted commas, output the first column whenever the second column is greater than 13.
BEGIN{FS=OFS=","}$2>13{print $1}
dina,14,ready ivan,17,paused farah,28,ready eli,9,active alice,15,failed kim,4,pending hana,20,active lina,23,pending bruno,3,active
dina ivan farah alice hana lina
jules,12,active chen,28,active lina,13,pending farah,15,pending ivan,16,active chen,14,failed
chen farah ivan chen
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024836
qwen/qwen3.7-plus
awkweave-0024837
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
dina fable 5 dina delta 68 dina delta 114 eli birch 45 alice harbor 31 alice grove 109 bruno indigo 108 dina amber 34 ivan birch 51
dina fable 5 dina delta 68 dina delta 114 eli birch 45 alice harbor 31 alice grove 109 bruno indigo 108 dina amber 34 ivan birch 51
farah cobalt 74 bruno indigo 76 gus fable 100 farah amber 18 jules harbor 39 eli juniper 102 eli ember 115 hana fable 117
farah cobalt 74 bruno indigo 76 gus fable 100 farah amber 18 jules harbor 39 eli juniper 102 eli ember 115 hana fable 117
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024837-p1
Remove leading and trailing whitespace from each line and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
dina fable 5 dina delta 68 dina delta 114 eli birch 45 alice harbor 31 alice grove 109 bruno indigo 108 dina amber 34 ivan birch 51
dina fable 5 dina delta 68 dina delta 114 eli birch 45 alice harbor 31 alice grove 109 bruno indigo 108 dina amber 34 ivan birch 51
farah cobalt 74 bruno indigo 76 gus fable 100 farah amber 18 jules harbor 39 eli juniper 102 eli ember 115 hana fable 117
farah cobalt 74 bruno indigo 76 gus fable 100 farah amber 18 jules harbor 39 eli juniper 102 eli ember 115 hana fable 117
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024837
qwen/qwen3.7-plus
awkweave-0024838
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
dina birch 113 failed dina amber 119 paused chen amber 110 failed bruno delta 69 failed ivan birch 21 pending farah amber 47 ready bruno birch 113 closed gus fable 54 failed jules birch 8 paused
bruno birch 113 closed
farah cobalt 82 ready hana delta 98 paused gus ember 28 pending gus birch 45 ready hana birch 9 failed bruno harbor 66 failed alice delta 101 ready
bruno harbor 66 failed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024838-p1
Identify and print the longest line from the input; if multiple lines share the maximum length, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
dina birch 113 failed dina amber 119 paused chen amber 110 failed bruno delta 69 failed ivan birch 21 pending farah amber 47 ready bruno birch 113 closed gus fable 54 failed jules birch 8 paused
bruno birch 113 closed
farah cobalt 82 ready hana delta 98 paused gus ember 28 pending gus birch 45 ready hana birch 9 failed bruno harbor 66 failed alice delta 101 ready
bruno harbor 66 failed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024838
qwen/qwen3.7-plus
awkweave-0024839
Print every 3rd line starting at line 1 (then line 4, and so on).
NR%3==1
eli 56 chen 16 bruno 69 gus 15 eli 55 ivan 70
eli 56 gus 15
kim 9 bruno 16 ivan 102 bruno 86 alice 51 jules 8 alice 11 hana 34 jules 50
kim 9 bruno 86 alice 11
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024839-p1
Output every third line beginning with the first line (i.e., lines 1, 4, 7, etc.).
NR%3==1
eli 56 chen 16 bruno 69 gus 15 eli 55 ivan 70
eli 56 gus 15
kim 9 bruno 16 ivan 102 bruno 86 alice 51 jules 8 alice 11 hana 34 jules 50
kim 9 bruno 86 alice 11
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024839
qwen/qwen3.7-plus
awkweave-0024840
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
delta birch 79 delta ember 66 alpha amber 60 beta grove 1 alpha ember 69 delta indigo 112 beta grove 72 gamma birch 17 gamma indigo 36
4
delta fable 64 gamma juniper 108 gamma harbor 42 gamma juniper 15 beta grove 78 gamma delta 28 gamma birch 92 alpha harbor 112 beta grove 106
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024840-p1
Calculate the number of unique values in the first column and print only that total count.
{if(!seen[$1]++)n++}END{print n+0}
delta birch 79 delta ember 66 alpha amber 60 beta grove 1 alpha ember 69 delta indigo 112 beta grove 72 gamma birch 17 gamma indigo 36
4
delta fable 64 gamma juniper 108 gamma harbor 42 gamma juniper 15 beta grove 78 gamma delta 28 gamma birch 92 alpha harbor 112 beta grove 106
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024840
qwen/qwen3.7-plus
awkweave-0024841
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 20 0 hana 21 2 eli 25 16 farah 5 30 dina 24 2 ivan 2 13 alice 5 7
hana 10.50 eli 1.56 farah 0.17 dina 12.00 ivan 0.15 alice 0.71
eli 26 0 alice 18 14 farah 27 20 jules 30 18 farah 25 8 chen 3 16 alice 5 12
alice 1.29 farah 1.35 jules 1.67 farah 3.12 chen 0.19 alice 0.42
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024841-p1
For each row, display the first column and the result of dividing the second column by the third column formatted to two decimal places, omitting any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
hana 20 0 hana 21 2 eli 25 16 farah 5 30 dina 24 2 ivan 2 13 alice 5 7
hana 10.50 eli 1.56 farah 0.17 dina 12.00 ivan 0.15 alice 0.71
eli 26 0 alice 18 14 farah 27 20 jules 30 18 farah 25 8 chen 3 16 alice 5 12
alice 1.29 farah 1.35 jules 1.67 farah 3.12 chen 0.19 alice 0.42
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024841
qwen/qwen3.7-plus
awkweave-0024842
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]}
kim ember 4 chen fable 15 alice grove 23 alice juniper 26 eli indigo 2 jules juniper 3 farah grove 30 jules fable 23
farah grove 30 alice juniper 26 alice grove 23
hana harbor 8 jules cobalt 2 bruno indigo 17 farah juniper 22 ivan fable 30 hana harbor 9 eli grove 26 kim harbor 7
ivan fable 30 eli grove 26 farah juniper 22
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024842-p1
Output the three full records with the largest numeric values in the third column, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
kim ember 4 chen fable 15 alice grove 23 alice juniper 26 eli indigo 2 jules juniper 3 farah grove 30 jules fable 23
farah grove 30 alice juniper 26 alice grove 23
hana harbor 8 jules cobalt 2 bruno indigo 17 farah juniper 22 ivan fable 30 hana harbor 9 eli grove 26 kim harbor 7
ivan fable 30 eli grove 26 farah juniper 22
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024842
qwen/qwen3.7-plus
awkweave-0024843
For each line, output fields 5 and 3, in that order.
{print $5, $3}
20 harbor fable ready 64 pending 104 amber fable closed 80 active 2 cobalt grove active 94 failed 44 harbor juniper paused 109 active 95 ember indigo failed 83 active 88 harbor delta paused 25 failed 75 ember ember active 42 ready 6 delta amber paused 107 active 66 ember birch paused 78 failed
64 fable 80 fable 94 grove 109 juniper 83 indigo 25 delta 42 ember 107 amber 78 birch
61 harbor amber active 75 closed 3 grove birch closed 106 active 23 delta harbor ready 40 failed 22 cobalt cobalt pending 68 active 38 birch cobalt pending 69 ready 18 cobalt amber failed 27 failed 91 indigo harbor ready 60 paused 2 cobalt cobalt ready 81 pending 85 harbor grove closed 67 active
75 amber 106 birch 40 harbor 68 cobalt 69 cobalt 27 amber 60 harbor 81 cobalt 67 grove
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024843-p1
For every line, print the fifth field followed by the third field.
{print $5, $3}
20 harbor fable ready 64 pending 104 amber fable closed 80 active 2 cobalt grove active 94 failed 44 harbor juniper paused 109 active 95 ember indigo failed 83 active 88 harbor delta paused 25 failed 75 ember ember active 42 ready 6 delta amber paused 107 active 66 ember birch paused 78 failed
64 fable 80 fable 94 grove 109 juniper 83 indigo 25 delta 42 ember 107 amber 78 birch
61 harbor amber active 75 closed 3 grove birch closed 106 active 23 delta harbor ready 40 failed 22 cobalt cobalt pending 68 active 38 birch cobalt pending 69 ready 18 cobalt amber failed 27 failed 91 indigo harbor ready 60 paused 2 cobalt cobalt ready 81 pending 85 harbor grove closed 67 active
75 amber 106 birch 40 harbor 68 cobalt 69 cobalt 27 amber 60 harbor 81 cobalt 67 grove
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024843
qwen/qwen3.7-plus
awkweave-0024844
Print the last field of every input line.
{print $NF}
delta 76 juniper chen ready grove ember 31 amber kim pending ember cobalt 59 amber alice failed harbor ember 82 birch hana pending indigo grove 89 birch kim closed fable juniper 74 birch jules active amber fable 49 harbor chen active ember birch 73 cobalt lina ready juniper
grove ember harbor indigo fable amber ember juniper
juniper 34 delta bruno ready cobalt birch 110 cobalt kim active ember ember 32 grove kim ready ember juniper 93 indigo farah paused grove ember 42 amber gus ready indigo indigo 105 grove ivan ready delta harbor 42 amber hana active cobalt birch 2 cobalt dina pending cobalt harbor 63 grove eli ready fable amber 94 junip...
cobalt ember ember grove indigo delta cobalt cobalt fable grove
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024844-p1
Display the final field of each input line.
{print $NF}
delta 76 juniper chen ready grove ember 31 amber kim pending ember cobalt 59 amber alice failed harbor ember 82 birch hana pending indigo grove 89 birch kim closed fable juniper 74 birch jules active amber fable 49 harbor chen active ember birch 73 cobalt lina ready juniper
grove ember harbor indigo fable amber ember juniper
juniper 34 delta bruno ready cobalt birch 110 cobalt kim active ember ember 32 grove kim ready ember juniper 93 indigo farah paused grove ember 42 amber gus ready indigo indigo 105 grove ivan ready delta harbor 42 amber hana active cobalt birch 2 cobalt dina pending cobalt harbor 63 grove eli ready fable amber 94 junip...
cobalt ember ember grove indigo delta cobalt cobalt fable grove
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024844
qwen/qwen3.7-plus
awkweave-0024845
Print the complete records where column 2 is greater than 27.
$2 > 27
grove 101 juniper pending bruno delta 8 ember paused chen birch 41 harbor pending gus harbor 113 amber active hana indigo 22 ember pending jules delta 7 juniper ready bruno ember 59 grove closed bruno ember 118 harbor failed lina
grove 101 juniper pending bruno birch 41 harbor pending gus harbor 113 amber active hana ember 59 grove closed bruno ember 118 harbor failed lina
ember 116 amber closed jules cobalt 108 delta pending chen delta 5 cobalt ready dina grove 75 cobalt failed kim birch 104 grove failed lina amber 48 ember ready hana
ember 116 amber closed jules cobalt 108 delta pending chen grove 75 cobalt failed kim birch 104 grove failed lina amber 48 ember ready hana
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024845-p1
Print the entire record for any row where the value in the second column exceeds 27.
$2 > 27
grove 101 juniper pending bruno delta 8 ember paused chen birch 41 harbor pending gus harbor 113 amber active hana indigo 22 ember pending jules delta 7 juniper ready bruno ember 59 grove closed bruno ember 118 harbor failed lina
grove 101 juniper pending bruno birch 41 harbor pending gus harbor 113 amber active hana ember 59 grove closed bruno ember 118 harbor failed lina
ember 116 amber closed jules cobalt 108 delta pending chen delta 5 cobalt ready dina grove 75 cobalt failed kim birch 104 grove failed lina amber 48 ember ready hana
ember 116 amber closed jules cobalt 108 delta pending chen grove 75 cobalt failed kim birch 104 grove failed lina amber 48 ember ready hana
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024845
qwen/qwen3.7-plus
awkweave-0024846
Show whole lines whose 3rd field is between 11 and 18, inclusive.
$3 >= 11 && $3 <= 18
closed ember 8 chen pending birch 30 dina failed cobalt 11 hana ready cobalt 26 hana paused fable 30 kim failed amber 1 alice failed cobalt 4 alice ready birch 10 kim closed cobalt 13 kim failed grove 28 ivan
failed cobalt 11 hana closed cobalt 13 kim
closed indigo 6 bruno ready amber 17 eli ready ember 9 dina pending harbor 5 eli closed juniper 28 dina failed fable 10 bruno paused cobalt 7 lina
ready amber 17 eli
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024846-p1
Output complete lines where the third field falls within the inclusive range of 11 to 18.
$3 >= 11 && $3 <= 18
closed ember 8 chen pending birch 30 dina failed cobalt 11 hana ready cobalt 26 hana paused fable 30 kim failed amber 1 alice failed cobalt 4 alice ready birch 10 kim closed cobalt 13 kim failed grove 28 ivan
failed cobalt 11 hana closed cobalt 13 kim
closed indigo 6 bruno ready amber 17 eli ready ember 9 dina pending harbor 5 eli closed juniper 28 dina failed fable 10 bruno paused cobalt 7 lina
ready amber 17 eli
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024846
qwen/qwen3.7-plus
awkweave-0024847
Print column 3 only for rows where column 2 is exactly active.
$2 == "active"{print $3}
28 paused alice harbor 112 paused kim ember 72 active dina harbor 0 pending kim delta 114 ready ivan delta 52 paused dina juniper 71 ready ivan cobalt 24 ready jules amber 24 pending bruno delta 104 failed gus fable
dina
17 paused eli delta 86 active lina birch 68 ready kim fable 37 failed gus harbor 56 pending dina cobalt 99 failed eli ember 56 active eli grove 88 active gus harbor 104 pending dina harbor 52 active jules delta
lina eli gus jules
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024847-p1
Print only the third column for rows where the second column is exactly 'active'.
$2 == "active"{print $3}
28 paused alice harbor 112 paused kim ember 72 active dina harbor 0 pending kim delta 114 ready ivan delta 52 paused dina juniper 71 ready ivan cobalt 24 ready jules amber 24 pending bruno delta 104 failed gus fable
dina
17 paused eli delta 86 active lina birch 68 ready kim fable 37 failed gus harbor 56 pending dina cobalt 99 failed eli ember 56 active eli grove 88 active gus harbor 104 pending dina harbor 52 active jules delta
lina eli gus jules
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024847
qwen/qwen3.7-plus
awkweave-0024848
Print all fields from lines where field 1 begins with INFO.
$1 ~ /^INFO/
ERROR 65 juniper DEBUG 64 juniper INFO 92 harbor INFO 4 indigo ERROR 15 delta ERROR 44 ember ERROR 44 indigo
INFO 92 harbor INFO 4 indigo
INFO 45 fable WARN 66 cobalt INFO 52 cobalt INFO 97 juniper WARN 65 juniper INFO 93 cobalt WARN 81 ember INFO 91 amber ERROR 61 cobalt
INFO 45 fable INFO 52 cobalt INFO 97 juniper INFO 93 cobalt INFO 91 amber
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024848-p1
Output all fields for rows where the first field starts with INFO.
$1 ~ /^INFO/
ERROR 65 juniper DEBUG 64 juniper INFO 92 harbor INFO 4 indigo ERROR 15 delta ERROR 44 ember ERROR 44 indigo
INFO 92 harbor INFO 4 indigo
INFO 45 fable WARN 66 cobalt INFO 52 cobalt INFO 97 juniper WARN 65 juniper INFO 93 cobalt WARN 81 ember INFO 91 amber ERROR 61 cobalt
INFO 45 fable INFO 52 cobalt INFO 97 juniper INFO 93 cobalt INFO 91 amber
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024848
qwen/qwen3.7-plus
awkweave-0024849
Print every line except those containing the exact text ember.
$0 !~ /ember/
harbor 81 failed cobalt 106 failed delta 82 ready amber 97 paused harbor 88 closed birch 5 failed cobalt 108 pending ember 999 active
harbor 81 failed cobalt 106 failed delta 82 ready amber 97 paused harbor 88 closed birch 5 failed cobalt 108 pending
cobalt 90 active indigo 40 ready harbor 0 failed indigo 10 ready harbor 111 pending cobalt 51 ready cobalt 16 active harbor 3 ready juniper 80 failed cobalt 29 pending ember 999 active
cobalt 90 active indigo 40 ready harbor 0 failed indigo 10 ready harbor 111 pending cobalt 51 ready cobalt 16 active harbor 3 ready juniper 80 failed cobalt 29 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024849-p1
Display every line that does not contain the exact string ember.
$0 !~ /ember/
harbor 81 failed cobalt 106 failed delta 82 ready amber 97 paused harbor 88 closed birch 5 failed cobalt 108 pending ember 999 active
harbor 81 failed cobalt 106 failed delta 82 ready amber 97 paused harbor 88 closed birch 5 failed cobalt 108 pending
cobalt 90 active indigo 40 ready harbor 0 failed indigo 10 ready harbor 111 pending cobalt 51 ready cobalt 16 active harbor 3 ready juniper 80 failed cobalt 29 pending ember 999 active
cobalt 90 active indigo 40 ready harbor 0 failed indigo 10 ready harbor 111 pending cobalt 51 ready cobalt 16 active harbor 3 ready juniper 80 failed cobalt 29 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024849
qwen/qwen3.7-plus
awkweave-0024850
Print lines 2 through 5, including both endpoints.
NR >= 2 && NR <= 5
dina indigo 90 ivan ember 109 chen cobalt 30 dina grove 26 lina fable 27 farah ember 22 ivan grove 64 eli birch 6 bruno juniper 4
ivan ember 109 chen cobalt 30 dina grove 26 lina fable 27
hana grove 21 farah amber 107 kim delta 87 chen amber 108 farah amber 83 lina ember 43 eli ember 63
farah amber 107 kim delta 87 chen amber 108 farah amber 83
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024850-p1
Print lines 2 to 5, inclusive.
NR >= 2 && NR <= 5
dina indigo 90 ivan ember 109 chen cobalt 30 dina grove 26 lina fable 27 farah ember 22 ivan grove 64 eli birch 6 bruno juniper 4
ivan ember 109 chen cobalt 30 dina grove 26 lina fable 27
hana grove 21 farah amber 107 kim delta 87 chen amber 108 farah amber 83 lina ember 43 eli ember 63
farah amber 107 kim delta 87 chen amber 108 farah amber 83
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024850
qwen/qwen3.7-plus
awkweave-0024851
Output only the first 4 records.
NR <= 4
bruno 111 ember jules 116 fable bruno 92 amber kim 22 amber eli 0 cobalt lina 34 fable kim 4 delta alice 40 cobalt hana 11 birch
bruno 111 ember jules 116 fable bruno 92 amber kim 22 amber
dina 3 amber hana 63 ember alice 104 amber kim 26 amber farah 41 grove jules 60 indigo eli 34 birch
dina 3 amber hana 63 ember alice 104 amber kim 26 amber
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024851-p1
Show only the initial 4 records.
NR <= 4
bruno 111 ember jules 116 fable bruno 92 amber kim 22 amber eli 0 cobalt lina 34 fable kim 4 delta alice 40 cobalt hana 11 birch
bruno 111 ember jules 116 fable bruno 92 amber kim 22 amber
dina 3 amber hana 63 ember alice 104 amber kim 26 amber farah 41 grove jules 60 indigo eli 34 birch
dina 3 amber hana 63 ember alice 104 amber kim 26 amber
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024851
qwen/qwen3.7-plus
awkweave-0024852
Skip the first line and print every remaining line unchanged.
NR > 1
ivan 13 ember bruno 79 cobalt chen 80 ember chen 37 birch eli 5 amber chen 105 harbor jules 107 cobalt hana 40 grove bruno 35 juniper farah 44 juniper
bruno 79 cobalt chen 80 ember chen 37 birch eli 5 amber chen 105 harbor jules 107 cobalt hana 40 grove bruno 35 juniper farah 44 juniper
jules 30 delta jules 104 birch dina 108 birch kim 92 harbor gus 18 delta jules 87 juniper dina 36 fable
jules 104 birch dina 108 birch kim 92 harbor gus 18 delta jules 87 juniper dina 36 fable
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024852-p1
Omit the first line and output the rest as-is.
NR > 1
ivan 13 ember bruno 79 cobalt chen 80 ember chen 37 birch eli 5 amber chen 105 harbor jules 107 cobalt hana 40 grove bruno 35 juniper farah 44 juniper
bruno 79 cobalt chen 80 ember chen 37 birch eli 5 amber chen 105 harbor jules 107 cobalt hana 40 grove bruno 35 juniper farah 44 juniper
jules 30 delta jules 104 birch dina 108 birch kim 92 harbor gus 18 delta jules 87 juniper dina 36 fable
jules 104 birch dina 108 birch kim 92 harbor gus 18 delta jules 87 juniper dina 36 fable
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024852
qwen/qwen3.7-plus
awkweave-0024853
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
hana failed 23 dina ready 65 jules active 0 hana closed 112 eli pending 56 lina ready 48 ivan failed 66 alice closed 104
1
kim failed 11 kim paused 2 alice ready 93 alice pending 13 kim paused 45 chen pending 0 kim pending 27
3
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024853-p1
Count entries with pending in the second column; output 0 if none exist.
$2 == "pending"{n++}END{print n+0}
hana failed 23 dina ready 65 jules active 0 hana closed 112 eli pending 56 lina ready 48 ivan failed 66 alice closed 104
1
kim failed 11 kim paused 2 alice ready 93 alice pending 13 kim paused 45 chen pending 0 kim pending 27
3
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024853
qwen/qwen3.7-plus
awkweave-0024854
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
indigo gus 18 ember kim 30 fable bruno 11 harbor kim 16 juniper hana 3 ember gus 8 delta ivan 24 grove eli 6 grove jules 17 harbor farah 25
158
harbor jules 12 fable hana 14 ember eli 11 cobalt gus 27 juniper bruno 16 ember jules 22
102
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024854-p1
Compute and display the total sum of integers in the third column.
{s+=$3}END{print s+0}
indigo gus 18 ember kim 30 fable bruno 11 harbor kim 16 juniper hana 3 ember gus 8 delta ivan 24 grove eli 6 grove jules 17 harbor farah 25
158
harbor jules 12 fable hana 14 ember eli 11 cobalt gus 27 juniper bruno 16 ember jules 22
102
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024854
qwen/qwen3.7-plus
awkweave-0024855
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
juniper ivan 5 juniper ivan 8 amber farah 1 birch bruno 1 grove ivan 29 delta alice 2 birch bruno 13 birch hana 13 harbor gus 12
9.33
fable lina 29 birch alice 11 birch jules 16 delta kim 11 cobalt bruno 16 juniper bruno 29 ember hana 27 delta bruno 26
20.62
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024855-p1
Output the average of column 3, formatted to two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
juniper ivan 5 juniper ivan 8 amber farah 1 birch bruno 1 grove ivan 29 delta alice 2 birch bruno 13 birch hana 13 harbor gus 12
9.33
fable lina 29 birch alice 11 birch jules 16 delta kim 11 cobalt bruno 16 juniper bruno 29 ember hana 27 delta bruno 26
20.62
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024855
qwen/qwen3.7-plus
awkweave-0024856
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
cobalt chen 6 amber jules 4 indigo eli 26 birch kim 12 fable farah 24 harbor bruno 6 indigo chen 20
4
cobalt lina 2 indigo eli 26 birch jules 16 delta hana 17 delta kim 21 cobalt ivan 10
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024856-p1
Identify and print the minimum numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
cobalt chen 6 amber jules 4 indigo eli 26 birch kim 12 fable farah 24 harbor bruno 6 indigo chen 20
4
cobalt lina 2 indigo eli 26 birch jules 16 delta hana 17 delta kim 21 cobalt ivan 10
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024856
qwen/qwen3.7-plus
awkweave-0024857
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
ember bruno 19 ember kim 1 fable farah 10 delta alice 14 harbor chen 22 juniper alice 22 delta eli 3 fable ivan 2
22
grove kim 3 juniper gus 25 harbor eli 20 delta bruno 6 indigo chen 13 grove gus 3 cobalt lina 23 juniper eli 25 grove jules 11 delta chen 8
25
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024857-p1
Identify and print the maximum numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
ember bruno 19 ember kim 1 fable farah 10 delta alice 14 harbor chen 22 juniper alice 22 delta eli 3 fable ivan 2
22
grove kim 3 juniper gus 25 harbor eli 20 delta bruno 6 indigo chen 13 grove gus 3 cobalt lina 23 juniper eli 25 grove jules 11 delta chen 8
25
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024857
qwen/qwen3.7-plus
awkweave-0024858
Count all input records and print the total.
END{print NR}
farah 2 hana 105 gus 5 bruno 104 hana 78 ivan 111 ivan 54 gus 85 bruno 56 bruno 20
10
farah 68 hana 13 dina 10 farah 7 bruno 80 farah 69 ivan 64 bruno 45 kim 99
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024858-p1
Count and print the total number of input records.
END{print NR}
farah 2 hana 105 gus 5 bruno 104 hana 78 ivan 111 ivan 54 gus 85 bruno 56 bruno 20
10
farah 68 hana 13 dina 10 farah 7 bruno 80 farah 69 ivan 64 bruno 45 kim 99
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024858
qwen/qwen3.7-plus
awkweave-0024859
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
ivan harbor 84 farah fable 114 lina delta 111 bruno ember 14 farah birch 22 hana fable 40 lina delta 111 hana fable 49
ivan harbor 84 farah fable 114 lina delta 111 bruno ember 14 farah birch 22 hana fable 40 hana fable 49
farah ember 78 lina birch 93 hana delta 118 alice delta 99 gus ember 54 hana delta 118 chen birch 99 bruno delta 111 gus indigo 55 farah harbor 20 gus harbor 14
farah ember 78 lina birch 93 hana delta 118 alice delta 99 gus ember 54 chen birch 99 bruno delta 111 gus indigo 55 farah harbor 20 gus harbor 14
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024859-p1
Eliminate exact duplicate lines while keeping the first instance and original sequence.
!seen[$0]++
ivan harbor 84 farah fable 114 lina delta 111 bruno ember 14 farah birch 22 hana fable 40 lina delta 111 hana fable 49
ivan harbor 84 farah fable 114 lina delta 111 bruno ember 14 farah birch 22 hana fable 40 hana fable 49
farah ember 78 lina birch 93 hana delta 118 alice delta 99 gus ember 54 hana delta 118 chen birch 99 bruno delta 111 gus indigo 55 farah harbor 20 gus harbor 14
farah ember 78 lina birch 93 hana delta 118 alice delta 99 gus ember 54 chen birch 99 bruno delta 111 gus indigo 55 farah harbor 20 gus harbor 14
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024859
qwen/qwen3.7-plus
awkweave-0024860
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
eli ember 96 eli juniper 114 ivan harbor 107 chen cobalt 45 bruno grove 117 eli amber 74 gus birch 58 bruno indigo 103 hana ember 90 ivan indigo 94
eli ember 96 eli juniper 114 ivan harbor 107 chen cobalt 45 bruno grove 117 eli amber 74 gus birch 58 bruno indigo 103 hana ember 90 ivan indigo 94
kim indigo 10 gus cobalt 103 gus birch 92 lina cobalt 50 chen harbor 49 gus grove 49 chen birch 47
kim indigo 10 gus cobalt 103 gus birch 92 lina cobalt 50 chen harbor 49 chen birch 47
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024860-p1
Retain only the first occurrence of each unique value in column 3, maintaining the original input sequence.
!seen[$3]++
eli ember 96 eli juniper 114 ivan harbor 107 chen cobalt 45 bruno grove 117 eli amber 74 gus birch 58 bruno indigo 103 hana ember 90 ivan indigo 94
eli ember 96 eli juniper 114 ivan harbor 107 chen cobalt 45 bruno grove 117 eli amber 74 gus birch 58 bruno indigo 103 hana ember 90 ivan indigo 94
kim indigo 10 gus cobalt 103 gus birch 92 lina cobalt 50 chen harbor 49 gus grove 49 chen birch 47
kim indigo 10 gus cobalt 103 gus birch 92 lina cobalt 50 chen harbor 49 chen birch 47
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024860
qwen/qwen3.7-plus
awkweave-0024861
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
gus 9 fable ivan 26 grove hana 29 indigo eli 16 amber lina 28 grove dina 18 juniper gus 4 juniper gus 14 fable bruno 5 ember
gus 9 ivan 35 hana 64 eli 80 lina 108 dina 126 gus 130 gus 144 bruno 149
ivan 3 birch eli 8 amber bruno 1 grove gus 23 birch eli 30 birch farah 25 birch lina 25 juniper lina 11 juniper dina 20 amber
ivan 3 eli 11 bruno 12 gus 35 eli 65 farah 90 lina 115 lina 126 dina 146
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024861-p1
Output column 1 alongside the cumulative total of column 2 for every record, using a space as the delimiter.
{s+=$2;print $1,s}
gus 9 fable ivan 26 grove hana 29 indigo eli 16 amber lina 28 grove dina 18 juniper gus 4 juniper gus 14 fable bruno 5 ember
gus 9 ivan 35 hana 64 eli 80 lina 108 dina 126 gus 130 gus 144 bruno 149
ivan 3 birch eli 8 amber bruno 1 grove gus 23 birch eli 30 birch farah 25 birch lina 25 juniper lina 11 juniper dina 20 amber
ivan 3 eli 11 bruno 12 gus 35 eli 65 farah 90 lina 115 lina 126 dina 146
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024861
qwen/qwen3.7-plus
awkweave-0024862
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
gus 4 6 harbor eli 25 11 birch lina 29 3 juniper dina 20 18 amber jules 2 24 juniper gus 6 11 grove eli 17 17 harbor kim 18 13 delta gus 6 20 juniper alice 15 25 indigo
gus 10 eli 36 lina 32 dina 38 jules 26 gus 17 eli 34 kim 31 gus 26 alice 40
alice 1 9 birch dina 16 8 grove bruno 9 2 amber lina 4 6 grove gus 25 9 juniper kim 15 13 ember chen 24 17 cobalt
alice 10 dina 24 bruno 11 lina 10 gus 34 kim 28 chen 41
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024862-p1
For each row, display field 1 followed by the combined total of fields 2 and 3.
{print $1,$2+$3}
gus 4 6 harbor eli 25 11 birch lina 29 3 juniper dina 20 18 amber jules 2 24 juniper gus 6 11 grove eli 17 17 harbor kim 18 13 delta gus 6 20 juniper alice 15 25 indigo
gus 10 eli 36 lina 32 dina 38 jules 26 gus 17 eli 34 kim 31 gus 26 alice 40
alice 1 9 birch dina 16 8 grove bruno 9 2 amber lina 4 6 grove gus 25 9 juniper kim 15 13 ember chen 24 17 cobalt
alice 10 dina 24 bruno 11 lina 10 gus 34 kim 28 chen 41
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024862
qwen/qwen3.7-plus
awkweave-0024863
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
alice 28 farah 20 lina 28 kim 22 lina 26 hana 8 hana 18 ivan 20 dina 26
alice pass farah fail lina pass kim fail lina pass hana fail hana fail ivan fail dina pass
lina 12 jules 18 eli 21 bruno 20 farah 18 ivan 1 gus 13 lina 21 alice 16
lina fail jules fail eli fail bruno fail farah fail ivan fail gus fail lina fail alice fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024863-p1
Output column 1 with 'pass' if column 2 is 25 or greater, otherwise output 'fail'.
{print $1,($2>=25?"pass":"fail")}
alice 28 farah 20 lina 28 kim 22 lina 26 hana 8 hana 18 ivan 20 dina 26
alice pass farah fail lina pass kim fail lina pass hana fail hana fail ivan fail dina pass
lina 12 jules 18 eli 21 bruno 20 farah 18 ivan 1 gus 13 lina 21 alice 16
lina fail jules fail eli fail bruno fail farah fail ivan fail gus fail lina fail alice fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024863
qwen/qwen3.7-plus
awkweave-0024864
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
chen harbor 91 ivan birch 15 ivan ember 85 jules birch 2 jules harbor 16 lina harbor 29 hana grove 31
CHEN IVAN IVAN JULES JULES LINA HANA
gus delta 17 alice ember 103 jules delta 84 chen cobalt 112 eli juniper 33 gus birch 103 ivan birch 7 alice amber 84 kim indigo 16 alice indigo 114
GUS ALICE JULES CHEN ELI GUS IVAN ALICE KIM ALICE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024864-p1
Transform column 1 to uppercase letters and output only this modified column.
{print toupper($1)}
chen harbor 91 ivan birch 15 ivan ember 85 jules birch 2 jules harbor 16 lina harbor 29 hana grove 31
CHEN IVAN IVAN JULES JULES LINA HANA
gus delta 17 alice ember 103 jules delta 84 chen cobalt 112 eli juniper 33 gus birch 103 ivan birch 7 alice amber 84 kim indigo 16 alice indigo 114
GUS ALICE JULES CHEN ELI GUS IVAN ALICE KIM ALICE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024864
qwen/qwen3.7-plus
awkweave-0024865
From column 1, print 3 characters starting at character 3.
{print substr($1,3,3)}
indigo 47 birch 99 cobalt 18 grove 110 ember 61 delta 1 juniper 35
dig rch bal ove ber lta nip
harbor 75 ember 106 delta 7 indigo 89 cobalt 13 harbor 78 grove 1
rbo ber lta dig bal rbo ove
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024865-p1
Extract and print a substring of length 3 from column 1, beginning at the third character.
{print substr($1,3,3)}
indigo 47 birch 99 cobalt 18 grove 110 ember 61 delta 1 juniper 35
dig rch bal ove ber lta nip
harbor 75 ember 106 delta 7 indigo 89 cobalt 13 harbor 78 grove 1
rbo ber lta dig bal rbo ove
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024865
qwen/qwen3.7-plus
awkweave-0024866
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
amber_juniper 5 cobalt_cobalt 92 delta_grove 6 juniper_delta 16 ember_ember 54 ember_grove 14 fable_amber 1 birch_grove 109
amber juniper cobalt cobalt delta grove juniper delta ember ember ember grove fable amber birch grove
fable_grove 47 fable_juniper 101 grove_grove 120 juniper_birch 52 juniper_indigo 76 fable_amber 117
fable grove fable juniper grove grove juniper birch juniper indigo fable amber
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024866-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
amber_juniper 5 cobalt_cobalt 92 delta_grove 6 juniper_delta 16 ember_ember 54 ember_grove 14 fable_amber 1 birch_grove 109
amber juniper cobalt cobalt delta grove juniper delta ember ember ember grove fable amber birch grove
fable_grove 47 fable_juniper 101 grove_grove 120 juniper_birch 52 juniper_indigo 76 fable_amber 117
fable grove fable juniper grove grove juniper birch juniper indigo fable amber
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024866
qwen/qwen3.7-plus
awkweave-0024867
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)}
farah grove 104 pending eli birch 51 pending eli fable 39 active alice grove 36 paused lina indigo 67 active gus delta 2 paused eli birch 55 pending lina grove 64 active jules cobalt 23 pending
pending 104 grove farah pending 51 birch eli active 39 fable eli paused 36 grove alice active 67 indigo lina paused 2 delta gus pending 55 birch eli active 64 grove lina pending 23 cobalt jules
dina delta 69 pending gus juniper 4 paused gus juniper 64 ready farah juniper 91 ready chen cobalt 82 failed hana indigo 67 pending lina fable 57 ready lina harbor 74 ready
pending 69 delta dina paused 4 juniper gus ready 64 juniper gus ready 91 juniper farah failed 82 cobalt chen pending 67 indigo hana ready 57 fable lina ready 74 harbor lina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024867-p1
Reverse the sequence of fields for each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
farah grove 104 pending eli birch 51 pending eli fable 39 active alice grove 36 paused lina indigo 67 active gus delta 2 paused eli birch 55 pending lina grove 64 active jules cobalt 23 pending
pending 104 grove farah pending 51 birch eli active 39 fable eli paused 36 grove alice active 67 indigo lina paused 2 delta gus pending 55 birch eli active 64 grove lina pending 23 cobalt jules
dina delta 69 pending gus juniper 4 paused gus juniper 64 ready farah juniper 91 ready chen cobalt 82 failed hana indigo 67 pending lina fable 57 ready lina harbor 74 ready
pending 69 delta dina paused 4 juniper gus ready 64 juniper gus ready 91 juniper farah failed 82 cobalt chen pending 67 indigo hana ready 57 fable lina ready 74 harbor lina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024867
qwen/qwen3.7-plus
awkweave-0024868
Print the number of whitespace-separated fields on each line.
{print NF}
bruno harbor 50 ready chen fable 31 closed alice delta 14 active gus cobalt 7 active ivan harbor 32 active hana cobalt 55 failed
4 4 4 4 4 4
bruno fable 78 ready farah cobalt 8 closed lina fable 10 active ivan birch 4 paused lina harbor 29 failed dina delta 29 ready kim juniper 100 closed chen juniper 48 failed ivan ember 41 paused chen amber 109 closed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024868-p1
Output the count of whitespace-delimited fields present on each line.
{print NF}
bruno harbor 50 ready chen fable 31 closed alice delta 14 active gus cobalt 7 active ivan harbor 32 active hana cobalt 55 failed
4 4 4 4 4 4
bruno fable 78 ready farah cobalt 8 closed lina fable 10 active ivan birch 4 paused lina harbor 29 failed dina delta 29 ready kim juniper 100 closed chen juniper 48 failed ivan ember 41 paused chen amber 109 closed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024868
qwen/qwen3.7-plus
awkweave-0024869
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]]}
ivan delta 91 bruno alpha 66 kim gamma 93 gus beta 111 eli gamma 98 bruno delta 16 farah alpha 91
delta 2 alpha 2 gamma 2 beta 1
farah gamma 2 farah delta 18 lina gamma 47 gus gamma 53 hana gamma 91 alice gamma 55 chen gamma 60
gamma 6 delta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024869-p1
Tally the number of records for each distinct value in column 2, listing them in the order they first appear along with their counts.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
ivan delta 91 bruno alpha 66 kim gamma 93 gus beta 111 eli gamma 98 bruno delta 16 farah alpha 91
delta 2 alpha 2 gamma 2 beta 1
farah gamma 2 farah delta 18 lina gamma 47 gus gamma 53 hana gamma 91 alice gamma 55 chen gamma 60
gamma 6 delta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024869
qwen/qwen3.7-plus
awkweave-0024870
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]]}
gus beta 13 lina delta 25 farah beta 9 ivan gamma 17 gus delta 28 alice alpha 4 kim gamma 28 gus gamma 18 chen alpha 24
beta 22 delta 53 gamma 63 alpha 28
alice beta 13 dina beta 20 farah alpha 23 dina delta 27 farah gamma 11 chen alpha 2 bruno delta 24 bruno gamma 18 chen beta 2
beta 35 alpha 25 delta 51 gamma 29
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024870-p1
Calculate the sum of column 3 grouped by categories in column 2, presenting the results in the 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]]}
gus beta 13 lina delta 25 farah beta 9 ivan gamma 17 gus delta 28 alice alpha 4 kim gamma 28 gus gamma 18 chen alpha 24
beta 22 delta 53 gamma 63 alpha 28
alice beta 13 dina beta 20 farah alpha 23 dina delta 27 farah gamma 11 chen alpha 2 bruno delta 24 bruno gamma 18 chen beta 2
beta 35 alpha 25 delta 51 gamma 29
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024870
qwen/qwen3.7-plus
awkweave-0024871
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta fable 112 beta harbor 105 delta amber 105 gamma ember 16 gamma cobalt 2 beta grove 16 beta harbor 13
beta 4 gamma 2
alpha juniper 5 gamma ember 91 beta amber 81 beta indigo 12 alpha cobalt 97 delta cobalt 27
alpha 2 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024871-p1
List each duplicate value from column 1 along with its frequency, ordered by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta fable 112 beta harbor 105 delta amber 105 gamma ember 16 gamma cobalt 2 beta grove 16 beta harbor 13
beta 4 gamma 2
alpha juniper 5 gamma ember 91 beta amber 81 beta indigo 12 alpha cobalt 97 delta cobalt 27
alpha 2 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024871
qwen/qwen3.7-plus
awkweave-0024872
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"]}
score region note display_name r001 farah 28 pending r002 ivan 25 pending r003 jules 8 ready r004 alice 14 closed r005 hana 22 active r006 farah 14 active r007 bruno 29 paused r008 hana 5 closed r009 lina 24 failed r010 lina 8 pending
pending pending ready closed active active paused closed failed pending
score region note display_name r001 hana 1 closed r002 bruno 18 pending r003 hana 24 active r004 dina 29 paused r005 bruno 20 pending r006 gus 21 pending
closed pending active paused pending pending
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024872-p1
Skip the header row and output the display_name field for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
score region note display_name r001 farah 28 pending r002 ivan 25 pending r003 jules 8 ready r004 alice 14 closed r005 hana 22 active r006 farah 14 active r007 bruno 29 paused r008 hana 5 closed r009 lina 24 failed r010 lina 8 pending
pending pending ready closed active active paused closed failed pending
score region note display_name r001 hana 1 closed r002 bruno 18 pending r003 hana 24 active r004 dina 29 paused r005 bruno 20 pending r006 gus 21 pending
closed pending active paused pending pending
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024872
qwen/qwen3.7-plus
awkweave-0024873
The first row is a header. Print display_name for data rows whose score is greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 gus 9 paused r002 kim 10 paused r003 kim 7 paused r004 alice 28 active r005 farah 7 pending r006 lina 29 failed r007 alice 23 paused
alice lina alice
record_id display_name score state r001 hana 8 failed r002 jules 22 closed r003 hana 29 paused r004 alice 8 pending r005 jules 3 paused r006 hana 10 paused r007 dina 13 closed r008 lina 17 ready r009 jules 26 paused
jules hana lina jules
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024873-p1
Ignoring the header, output the display_name for rows where the score exceeds 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 gus 9 paused r002 kim 10 paused r003 kim 7 paused r004 alice 28 active r005 farah 7 pending r006 lina 29 failed r007 alice 23 paused
alice lina alice
record_id display_name score state r001 hana 8 failed r002 jules 22 closed r003 hana 29 paused r004 alice 8 pending r005 jules 3 paused r006 hana 10 paused r007 dina 13 closed r008 lina 17 ready r009 jules 26 paused
jules hana lina jules
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024873
qwen/qwen3.7-plus
awkweave-0024874
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
jules 24 failed ivan 18 paused hana 15 failed kim 3 pending alice 7 closed dina 22 closed
24 18 15 3 7 22
gus 22 ready jules 5 closed bruno 22 active jules 30 failed alice 22 closed chen 20 pending chen 13 failed
22 5 22 30 22 20 13
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024874-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
jules 24 failed ivan 18 paused hana 15 failed kim 3 pending alice 7 closed dina 22 closed
24 18 15 3 7 22
gus 22 ready jules 5 closed bruno 22 active jules 30 failed alice 22 closed chen 20 pending chen 13 failed
22 5 22 30 22 20 13
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0024874
qwen/qwen3.7-plus
awkweave-0024875
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 11.
BEGIN{FS=OFS=","}$2>11{print $1}
lina,25,paused ivan,9,paused bruno,13,paused ivan,21,closed chen,13,ready lina,30,pending dina,9,ready eli,22,pending dina,15,failed
lina bruno ivan chen lina eli dina
dina,19,pending hana,12,failed hana,13,active bruno,6,pending jules,27,active jules,24,active hana,1,active eli,6,ready
dina hana hana jules jules
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024875-p1
For simple CSV input without quoted commas, print the first column if the second column is greater than 11.
BEGIN{FS=OFS=","}$2>11{print $1}
lina,25,paused ivan,9,paused bruno,13,paused ivan,21,closed chen,13,ready lina,30,pending dina,9,ready eli,22,pending dina,15,failed
lina bruno ivan chen lina eli dina
dina,19,pending hana,12,failed hana,13,active bruno,6,pending jules,27,active jules,24,active hana,1,active eli,6,ready
dina hana hana jules jules
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024875
qwen/qwen3.7-plus
awkweave-0024876
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
gus birch 28 hana indigo 12 eli ember 14 farah ember 108 dina indigo 44 lina juniper 83 gus juniper 120 chen delta 113
gus birch 28 hana indigo 12 eli ember 14 farah ember 108 dina indigo 44 lina juniper 83 gus juniper 120 chen delta 113
farah cobalt 34 hana juniper 72 jules amber 60 kim juniper 53 kim birch 75 lina fable 12 ivan birch 29 lina ember 2 hana delta 48
farah cobalt 34 hana juniper 72 jules amber 60 kim juniper 53 kim birch 75 lina fable 12 ivan birch 29 lina ember 2 hana delta 48
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024876-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
gus birch 28 hana indigo 12 eli ember 14 farah ember 108 dina indigo 44 lina juniper 83 gus juniper 120 chen delta 113
gus birch 28 hana indigo 12 eli ember 14 farah ember 108 dina indigo 44 lina juniper 83 gus juniper 120 chen delta 113
farah cobalt 34 hana juniper 72 jules amber 60 kim juniper 53 kim birch 75 lina fable 12 ivan birch 29 lina ember 2 hana delta 48
farah cobalt 34 hana juniper 72 jules amber 60 kim juniper 53 kim birch 75 lina fable 12 ivan birch 29 lina ember 2 hana delta 48
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024876
qwen/qwen3.7-plus
awkweave-0024877
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
bruno juniper 57 active gus amber 26 closed eli cobalt 58 active gus grove 41 closed bruno fable 91 failed alice juniper 54 ready gus birch 117 paused gus harbor 105 failed farah juniper 44 pending
farah juniper 44 pending
bruno harbor 112 failed lina ember 92 paused dina harbor 60 paused jules harbor 87 active jules fable 116 pending jules amber 1 failed
bruno harbor 112 failed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024877-p1
Output the longest line from the input; in case of a tie in length, select the first occurrence.
{if(length($0)>length(best))best=$0}END{print best}
bruno juniper 57 active gus amber 26 closed eli cobalt 58 active gus grove 41 closed bruno fable 91 failed alice juniper 54 ready gus birch 117 paused gus harbor 105 failed farah juniper 44 pending
farah juniper 44 pending
bruno harbor 112 failed lina ember 92 paused dina harbor 60 paused jules harbor 87 active jules fable 116 pending jules amber 1 failed
bruno harbor 112 failed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024877
qwen/qwen3.7-plus
awkweave-0024878
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
farah 60 alice 97 chen 115 ivan 87 ivan 64 kim 102 hana 117 ivan 119 dina 27
farah 60 chen 115 ivan 64 hana 117 dina 27
ivan 12 eli 73 alice 9 eli 16 jules 70 kim 7 farah 55
ivan 12 alice 9 jules 70 farah 55
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024878-p1
Print lines 1, 3, 5, and so on (every second line starting from the first).
NR%2==1
farah 60 alice 97 chen 115 ivan 87 ivan 64 kim 102 hana 117 ivan 119 dina 27
farah 60 chen 115 ivan 64 hana 117 dina 27
ivan 12 eli 73 alice 9 eli 16 jules 70 kim 7 farah 55
ivan 12 alice 9 jules 70 farah 55
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024878
qwen/qwen3.7-plus
awkweave-0024879
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
gamma birch 83 delta ember 117 beta birch 3 delta amber 109 alpha indigo 48 delta harbor 75 delta birch 53 delta grove 26
4
alpha ember 42 alpha birch 93 gamma ember 93 alpha harbor 116 beta indigo 93 delta delta 10 beta delta 23 beta ember 91 delta harbor 34 beta amber 95
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024879-p1
Calculate the number of unique values in the first column and output only that count.
{if(!seen[$1]++)n++}END{print n+0}
gamma birch 83 delta ember 117 beta birch 3 delta amber 109 alpha indigo 48 delta harbor 75 delta birch 53 delta grove 26
4
alpha ember 42 alpha birch 93 gamma ember 93 alpha harbor 116 beta indigo 93 delta delta 10 beta delta 23 beta ember 91 delta harbor 34 beta amber 95
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024879
qwen/qwen3.7-plus
awkweave-0024880
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}
kim 13 0 jules 18 3 gus 10 22 alice 26 19 dina 2 1 alice 30 4
jules 6.00 gus 0.45 alice 1.37 dina 2.00 alice 7.50
lina 17 0 farah 27 5 chen 12 9 gus 27 21 chen 25 27 gus 16 3 farah 28 9
farah 5.40 chen 1.33 gus 1.29 chen 0.93 gus 5.33 farah 3.11
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024880-p1
For each row, output the first column and the result of dividing the second column by the third, formatted to two decimal places, skipping any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
kim 13 0 jules 18 3 gus 10 22 alice 26 19 dina 2 1 alice 30 4
jules 6.00 gus 0.45 alice 1.37 dina 2.00 alice 7.50
lina 17 0 farah 27 5 chen 12 9 gus 27 21 chen 25 27 gus 16 3 farah 28 9
farah 5.40 chen 1.33 gus 1.29 chen 0.93 gus 5.33 farah 3.11
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024880
qwen/qwen3.7-plus
awkweave-0024881
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
dina harbor 25 bruno harbor 3 kim juniper 6 bruno fable 7 chen amber 18 farah birch 10 gus grove 11
dina harbor 25 chen amber 18 gus grove 11
kim delta 24 ivan fable 12 farah ember 5 gus indigo 15 kim amber 19 eli amber 27
eli amber 27 kim delta 24 kim amber 19
top_three
3
train
original-grammar
CC-BY-4.0
null
null