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-0032551-p1
Output the count of whitespace-delimited fields for each line.
{print NF}
eli juniper 50 ready gus cobalt 65 ready dina grove 98 closed chen birch 8 paused chen cobalt 79 ready ivan grove 18 failed
4 4 4 4 4 4
hana fable 120 ready eli amber 57 closed lina cobalt 98 closed dina juniper 32 pending dina cobalt 81 paused alice grove 70 pending farah juniper 92 ready hana amber 35 ready gus cobalt 80 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032551
qwen/qwen3.7-plus
awkweave-0032552
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]]}
jules delta 5 eli alpha 34 lina beta 20 dina alpha 115 bruno gamma 53 chen alpha 94 ivan delta 89 eli alpha 40
delta 2 alpha 4 beta 1 gamma 1
kim gamma 116 gus gamma 7 farah delta 65 bruno alpha 2 bruno beta 2 gus gamma 115
gamma 3 delta 1 alpha 1 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032552-p1
Tally records for each unique value in column 2 and print each value with its count in the order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
jules delta 5 eli alpha 34 lina beta 20 dina alpha 115 bruno gamma 53 chen alpha 94 ivan delta 89 eli alpha 40
delta 2 alpha 4 beta 1 gamma 1
kim gamma 116 gus gamma 7 farah delta 65 bruno alpha 2 bruno beta 2 gus gamma 115
gamma 3 delta 1 alpha 1 beta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032552
qwen/qwen3.7-plus
awkweave-0032553
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]]}
lina delta 19 lina delta 17 bruno beta 8 dina gamma 8 jules alpha 5 chen gamma 1
delta 36 beta 8 gamma 9 alpha 5
dina gamma 12 hana beta 8 dina delta 1 alice beta 29 bruno alpha 16 bruno alpha 10 alice alpha 27
gamma 12 beta 37 delta 1 alpha 53
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032553-p1
Calculate the sum of column 3 for each group defined by column 2, printing results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
lina delta 19 lina delta 17 bruno beta 8 dina gamma 8 jules alpha 5 chen gamma 1
delta 36 beta 8 gamma 9 alpha 5
dina gamma 12 hana beta 8 dina delta 1 alice beta 29 bruno alpha 16 bruno alpha 10 alice alpha 27
gamma 12 beta 37 delta 1 alpha 53
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032553
qwen/qwen3.7-plus
awkweave-0032554
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta harbor 112 gamma ember 49 alpha amber 88 gamma birch 119 delta indigo 42 gamma indigo 94 alpha amber 10
gamma 3 alpha 2
alpha delta 62 gamma fable 32 alpha fable 116 alpha indigo 55 alpha indigo 84 gamma cobalt 110 beta birch 89 alpha amber 61 beta delta 106 delta indigo 8
alpha 5 gamma 2 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032554-p1
List each unique value from the first column alongside its frequency count, ordered by when they first appear.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta harbor 112 gamma ember 49 alpha amber 88 gamma birch 119 delta indigo 42 gamma indigo 94 alpha amber 10
gamma 3 alpha 2
alpha delta 62 gamma fable 32 alpha fable 116 alpha indigo 55 alpha indigo 84 gamma cobalt 110 beta birch 89 alpha amber 61 beta delta 106 delta indigo 8
alpha 5 gamma 2 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032554
qwen/qwen3.7-plus
awkweave-0032555
The first row is a header. Print the display_name column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
note record_id display_name region r001 hana 21 failed r002 ivan 3 failed r003 chen 3 ready r004 dina 1 pending r005 chen 5 failed r006 chen 14 failed r007 gus 8 pending
21 3 3 1 5 14 8
note record_id display_name region r001 jules 18 pending r002 lina 14 ready r003 chen 17 active r004 kim 24 failed r005 alice 11 active r006 jules 11 ready r007 dina 14 failed r008 eli 3 active
18 14 17 24 11 11 14 3
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032555-p1
Treating the initial line as a header, output the 'display_name' field for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
note record_id display_name region r001 hana 21 failed r002 ivan 3 failed r003 chen 3 ready r004 dina 1 pending r005 chen 5 failed r006 chen 14 failed r007 gus 8 pending
21 3 3 1 5 14 8
note record_id display_name region r001 jules 18 pending r002 lina 14 ready r003 chen 17 active r004 kim 24 failed r005 alice 11 active r006 jules 11 ready r007 dina 14 failed r008 eli 3 active
18 14 17 24 11 11 14 3
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032555
qwen/qwen3.7-plus
awkweave-0032556
The first row is a header. Print display_name for data rows whose score is greater than 11.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>11{print $h["display_name"]}
record_id display_name score state r001 gus 27 pending r002 alice 2 failed r003 chen 28 paused r004 farah 8 active r005 bruno 17 paused r006 ivan 22 active r007 gus 29 paused r008 eli 7 pending
gus chen bruno ivan gus
record_id display_name score state r001 gus 15 active r002 dina 2 paused r003 gus 21 pending r004 hana 28 closed r005 jules 19 pending r006 alice 16 failed r007 chen 13 paused
gus gus hana jules alice chen
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032556-p1
Skip the header row, then print the 'display_name' for any record where the 'score' is strictly greater than 11.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>11{print $h["display_name"]}
record_id display_name score state r001 gus 27 pending r002 alice 2 failed r003 chen 28 paused r004 farah 8 active r005 bruno 17 paused r006 ivan 22 active r007 gus 29 paused r008 eli 7 pending
gus chen bruno ivan gus
record_id display_name score state r001 gus 15 active r002 dina 2 paused r003 gus 21 pending r004 hana 28 closed r005 jules 19 pending r006 alice 16 failed r007 chen 13 paused
gus gus hana jules alice chen
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032556
qwen/qwen3.7-plus
awkweave-0032557
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
kim 10 active chen 6 pending kim 18 ready alice 2 active gus 6 pending jules 3 active jules 2 active alice 27 paused
10 6 18 2 6 3 2 27
gus 26 ready dina 10 failed ivan 21 failed eli 5 failed chen 27 closed gus 4 ready hana 28 paused ivan 4 paused bruno 11 pending
26 10 21 5 27 4 28 4 11
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032557-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
kim 10 active chen 6 pending kim 18 ready alice 2 active gus 6 pending jules 3 active jules 2 active alice 27 paused
10 6 18 2 6 3 2 27
gus 26 ready dina 10 failed ivan 21 failed eli 5 failed chen 27 closed gus 4 ready hana 28 paused ivan 4 paused bruno 11 pending
26 10 21 5 27 4 28 4 11
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0032557
qwen/qwen3.7-plus
awkweave-0032558
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 12.
BEGIN{FS=OFS=","}$2>12{print $1}
kim,4,ready kim,21,pending dina,8,paused bruno,14,closed kim,3,closed dina,2,failed bruno,24,paused farah,29,pending
kim bruno bruno farah
alice,28,pending chen,13,pending alice,16,closed bruno,9,pending chen,10,pending dina,13,active chen,7,paused kim,5,pending hana,21,closed
alice chen alice dina hana
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032558-p1
For simple CSV input without quoted commas, output the first column only if the second column's value is greater than 12.
BEGIN{FS=OFS=","}$2>12{print $1}
kim,4,ready kim,21,pending dina,8,paused bruno,14,closed kim,3,closed dina,2,failed bruno,24,paused farah,29,pending
kim bruno bruno farah
alice,28,pending chen,13,pending alice,16,closed bruno,9,pending chen,10,pending dina,13,active chen,7,paused kim,5,pending hana,21,closed
alice chen alice dina hana
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032558
qwen/qwen3.7-plus
awkweave-0032559
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
farah birch 14 lina harbor 44 farah harbor 68 kim ember 108 eli birch 71 hana birch 6 kim amber 29 bruno juniper 114 alice delta 51 chen indigo 91
farah birch 14 lina harbor 44 farah harbor 68 kim ember 108 eli birch 71 hana birch 6 kim amber 29 bruno juniper 114 alice delta 51 chen indigo 91
hana birch 14 eli fable 36 lina indigo 90 ivan fable 103 kim fable 95 lina indigo 117 hana birch 59 ivan fable 102 hana birch 24
hana birch 14 eli fable 36 lina indigo 90 ivan fable 103 kim fable 95 lina indigo 117 hana birch 59 ivan fable 102 hana birch 24
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032559-p1
Remove leading and trailing spaces, and replace any sequence of internal whitespace with a single space.
{$1=$1;print}
farah birch 14 lina harbor 44 farah harbor 68 kim ember 108 eli birch 71 hana birch 6 kim amber 29 bruno juniper 114 alice delta 51 chen indigo 91
farah birch 14 lina harbor 44 farah harbor 68 kim ember 108 eli birch 71 hana birch 6 kim amber 29 bruno juniper 114 alice delta 51 chen indigo 91
hana birch 14 eli fable 36 lina indigo 90 ivan fable 103 kim fable 95 lina indigo 117 hana birch 59 ivan fable 102 hana birch 24
hana birch 14 eli fable 36 lina indigo 90 ivan fable 103 kim fable 95 lina indigo 117 hana birch 59 ivan fable 102 hana birch 24
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032559
qwen/qwen3.7-plus
awkweave-0032560
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
gus cobalt 17 failed gus ember 48 closed kim grove 59 active ivan cobalt 30 ready kim grove 31 closed jules fable 47 ready farah juniper 82 active dina ember 2 pending
farah juniper 82 active
eli ember 109 closed ivan harbor 116 failed lina birch 77 ready kim cobalt 49 closed alice indigo 0 pending jules harbor 73 active kim ember 69 failed chen juniper 46 active lina cobalt 34 ready farah amber 6 failed
ivan harbor 116 failed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032560-p1
Output the longest line from the input; in case of a tie in length, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
gus cobalt 17 failed gus ember 48 closed kim grove 59 active ivan cobalt 30 ready kim grove 31 closed jules fable 47 ready farah juniper 82 active dina ember 2 pending
farah juniper 82 active
eli ember 109 closed ivan harbor 116 failed lina birch 77 ready kim cobalt 49 closed alice indigo 0 pending jules harbor 73 active kim ember 69 failed chen juniper 46 active lina cobalt 34 ready farah amber 6 failed
ivan harbor 116 failed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032560
qwen/qwen3.7-plus
awkweave-0032561
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
kim 88 dina 1 hana 118 gus 23 hana 34 hana 104 bruno 60 alice 77 dina 78
dina 1 hana 34 alice 77
jules 63 jules 93 lina 117 farah 108 chen 77 alice 28
jules 93 chen 77
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032561-p1
Starting from line 2, print every third line (i.e., lines 2, 5, 8, etc.).
NR%3==2
kim 88 dina 1 hana 118 gus 23 hana 34 hana 104 bruno 60 alice 77 dina 78
dina 1 hana 34 alice 77
jules 63 jules 93 lina 117 farah 108 chen 77 alice 28
jules 93 chen 77
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032561
qwen/qwen3.7-plus
awkweave-0032562
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta indigo 64 delta harbor 14 alpha birch 96 gamma cobalt 104 beta harbor 14 delta harbor 100 gamma ember 69 beta indigo 24
4
delta indigo 108 gamma juniper 26 gamma delta 23 gamma indigo 91 delta juniper 25 beta birch 72 alpha indigo 119
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032562-p1
Calculate and print only the total number of unique values found in the first column.
{if(!seen[$1]++)n++}END{print n+0}
beta indigo 64 delta harbor 14 alpha birch 96 gamma cobalt 104 beta harbor 14 delta harbor 100 gamma ember 69 beta indigo 24
4
delta indigo 108 gamma juniper 26 gamma delta 23 gamma indigo 91 delta juniper 25 beta birch 72 alpha indigo 119
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032562
qwen/qwen3.7-plus
awkweave-0032563
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 7 0 eli 5 28 kim 18 8 gus 16 16 hana 15 6 kim 14 5
eli 0.18 kim 2.25 gus 1.00 hana 2.50 kim 2.80
gus 26 0 lina 1 1 hana 10 27 farah 10 21 lina 23 24 kim 14 16
lina 1.00 hana 0.37 farah 0.48 lina 0.96 kim 0.88
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032563-p1
For each row where the third column is non-zero, print the first column and the result of dividing the second column by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
kim 7 0 eli 5 28 kim 18 8 gus 16 16 hana 15 6 kim 14 5
eli 0.18 kim 2.25 gus 1.00 hana 2.50 kim 2.80
gus 26 0 lina 1 1 hana 10 27 farah 10 21 lina 23 24 kim 14 16
lina 1.00 hana 0.37 farah 0.48 lina 0.96 kim 0.88
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032563
qwen/qwen3.7-plus
awkweave-0032564
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]}
farah birch 15 bruno ember 12 lina grove 21 jules delta 11 gus ember 10 alice ember 23 dina cobalt 10 ivan fable 29 hana harbor 8 eli birch 12
ivan fable 29 alice ember 23 lina grove 21
lina grove 8 eli delta 11 eli fable 7 bruno harbor 3 hana birch 15 lina grove 16
lina grove 16 hana birch 15 eli delta 11
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032564-p1
Output the top three records based on the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
farah birch 15 bruno ember 12 lina grove 21 jules delta 11 gus ember 10 alice ember 23 dina cobalt 10 ivan fable 29 hana harbor 8 eli birch 12
ivan fable 29 alice ember 23 lina grove 21
lina grove 8 eli delta 11 eli fable 7 bruno harbor 3 hana birch 15 lina grove 16
lina grove 16 hana birch 15 eli delta 11
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032564
qwen/qwen3.7-plus
awkweave-0032565
Select the 3rd and 2nd fields in that order.
{print $3, $2}
jules ivan pending amber failed 89 eli bruno closed delta active 76 ivan ivan pending cobalt closed 60 alice hana active delta closed 44 bruno jules ready ember closed 14 bruno eli ready delta paused 23 hana dina ready fable paused 105 bruno chen pending ember ready 25 dina hana closed cobalt paused 74
pending ivan closed bruno pending ivan active hana ready jules ready eli ready dina pending chen closed hana
dina chen ready cobalt paused 46 eli ivan closed juniper pending 31 kim dina ready grove ready 19 chen gus closed amber pending 0 chen chen ready harbor pending 52 gus chen pending delta active 96 ivan chen paused delta failed 56 dina chen failed indigo failed 86 lina dina pending delta pending 13
ready chen closed ivan ready dina closed gus ready chen pending chen paused chen failed chen pending dina
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032565-p1
Extract and print the third field followed by the second field.
{print $3, $2}
jules ivan pending amber failed 89 eli bruno closed delta active 76 ivan ivan pending cobalt closed 60 alice hana active delta closed 44 bruno jules ready ember closed 14 bruno eli ready delta paused 23 hana dina ready fable paused 105 bruno chen pending ember ready 25 dina hana closed cobalt paused 74
pending ivan closed bruno pending ivan active hana ready jules ready eli ready dina pending chen closed hana
dina chen ready cobalt paused 46 eli ivan closed juniper pending 31 kim dina ready grove ready 19 chen gus closed amber pending 0 chen chen ready harbor pending 52 gus chen pending delta active 96 ivan chen paused delta failed 56 dina chen failed indigo failed 86 lina dina pending delta pending 13
ready chen closed ivan ready dina closed gus ready chen pending chen paused chen failed chen pending dina
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032565
qwen/qwen3.7-plus
awkweave-0032566
Print the last field of every input line.
{print $NF}
dina birch active failed closed active kim ember paused closed closed pending kim grove ready failed active closed farah delta closed failed ready closed ivan cobalt pending active failed failed gus amber ready paused failed ready bruno ember closed pending closed ready eli juniper ready ready closed active chen grove ...
active pending closed closed failed ready ready active ready failed
lina indigo pending paused ready closed eli fable failed ready paused active jules indigo paused closed pending closed bruno harbor paused ready closed paused gus ember active pending closed paused farah amber failed paused ready closed
closed active closed paused paused closed
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032566-p1
Output the final field from each line of input.
{print $NF}
dina birch active failed closed active kim ember paused closed closed pending kim grove ready failed active closed farah delta closed failed ready closed ivan cobalt pending active failed failed gus amber ready paused failed ready bruno ember closed pending closed ready eli juniper ready ready closed active chen grove ...
active pending closed closed failed ready ready active ready failed
lina indigo pending paused ready closed eli fable failed ready paused active jules indigo paused closed pending closed bruno harbor paused ready closed paused gus ember active pending closed paused farah amber failed paused ready closed
closed active closed paused paused closed
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032566
qwen/qwen3.7-plus
awkweave-0032567
Print the complete records where column 3 is less than 42.
$3 < 42
birch pending 64 paused harbor paused 33 ready harbor active 85 ready juniper ready 69 pending grove failed 79 pending birch pending 67 ready amber active 114 closed cobalt active 111 ready grove pending 63 ready cobalt closed 81 ready
harbor paused 33 ready
amber paused 12 pending ember active 62 pending birch failed 73 active delta pending 86 paused harbor paused 77 failed amber pending 50 ready cobalt ready 26 pending birch active 115 pending ember pending 5 pending birch failed 72 pending
amber paused 12 pending cobalt ready 26 pending ember pending 5 pending
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032567-p1
Display full records where the value in the third column is strictly less than 42.
$3 < 42
birch pending 64 paused harbor paused 33 ready harbor active 85 ready juniper ready 69 pending grove failed 79 pending birch pending 67 ready amber active 114 closed cobalt active 111 ready grove pending 63 ready cobalt closed 81 ready
harbor paused 33 ready
amber paused 12 pending ember active 62 pending birch failed 73 active delta pending 86 paused harbor paused 77 failed amber pending 50 ready cobalt ready 26 pending birch active 115 pending ember pending 5 pending birch failed 72 pending
amber paused 12 pending cobalt ready 26 pending ember pending 5 pending
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032567
qwen/qwen3.7-plus
awkweave-0032568
Show whole lines whose 2nd field is between 10 and 28, inclusive.
$2 >= 10 && $2 <= 28
ember 1 bruno active juniper 23 dina pending juniper 22 alice active juniper 16 chen pending grove 27 gus active indigo 25 farah ready indigo 20 kim paused harbor 11 jules pending amber 28 jules closed
juniper 23 dina pending juniper 22 alice active juniper 16 chen pending grove 27 gus active indigo 25 farah ready indigo 20 kim paused harbor 11 jules pending amber 28 jules closed
ember 15 jules closed juniper 11 lina pending fable 24 hana closed delta 3 kim active harbor 27 hana ready harbor 10 lina ready
ember 15 jules closed juniper 11 lina pending fable 24 hana closed harbor 27 hana ready harbor 10 lina ready
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032568-p1
Show entire lines where the second field falls within the inclusive range of 10 to 28.
$2 >= 10 && $2 <= 28
ember 1 bruno active juniper 23 dina pending juniper 22 alice active juniper 16 chen pending grove 27 gus active indigo 25 farah ready indigo 20 kim paused harbor 11 jules pending amber 28 jules closed
juniper 23 dina pending juniper 22 alice active juniper 16 chen pending grove 27 gus active indigo 25 farah ready indigo 20 kim paused harbor 11 jules pending amber 28 jules closed
ember 15 jules closed juniper 11 lina pending fable 24 hana closed delta 3 kim active harbor 27 hana ready harbor 10 lina ready
ember 15 jules closed juniper 11 lina pending fable 24 hana closed harbor 27 hana ready harbor 10 lina ready
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032568
qwen/qwen3.7-plus
awkweave-0032569
Print column 2 only for rows where column 3 is exactly ready.
$3 == "ready"{print $2}
juniper ivan closed 54 grove ivan closed 54 amber farah ready 72 indigo kim closed 117 indigo gus failed 7 grove dina ready 11 ember lina active 83 amber farah closed 70 cobalt gus failed 105 delta alice pending 76
farah dina
harbor gus closed 113 indigo ivan ready 37 fable dina pending 96 juniper kim paused 44 cobalt dina ready 48 birch lina pending 78 ember gus closed 82 delta dina ready 70 indigo jules closed 28 cobalt hana pending 39
ivan dina dina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032569-p1
Extract and print only the second column for rows where the third column equals 'ready'.
$3 == "ready"{print $2}
juniper ivan closed 54 grove ivan closed 54 amber farah ready 72 indigo kim closed 117 indigo gus failed 7 grove dina ready 11 ember lina active 83 amber farah closed 70 cobalt gus failed 105 delta alice pending 76
farah dina
harbor gus closed 113 indigo ivan ready 37 fable dina pending 96 juniper kim paused 44 cobalt dina ready 48 birch lina pending 78 ember gus closed 82 delta dina ready 70 indigo jules closed 28 cobalt hana pending 39
ivan dina dina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032569
qwen/qwen3.7-plus
awkweave-0032570
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
DEBUG 31 birch DEBUG 120 cobalt ERROR 74 amber DEBUG 101 juniper INFO 69 birch DEBUG 16 ember DEBUG 21 juniper DEBUG 51 fable
ERROR 74 amber
ERROR 110 indigo WARN 29 juniper ERROR 67 juniper DEBUG 101 cobalt INFO 29 ember DEBUG 49 harbor
ERROR 110 indigo ERROR 67 juniper
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032570-p1
Print all fields from any line where the first field starts with the string 'ERROR'.
$1 ~ /^ERROR/
DEBUG 31 birch DEBUG 120 cobalt ERROR 74 amber DEBUG 101 juniper INFO 69 birch DEBUG 16 ember DEBUG 21 juniper DEBUG 51 fable
ERROR 74 amber
ERROR 110 indigo WARN 29 juniper ERROR 67 juniper DEBUG 101 cobalt INFO 29 ember DEBUG 49 harbor
ERROR 110 indigo ERROR 67 juniper
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032570
qwen/qwen3.7-plus
awkweave-0032571
Print every line except those containing the exact text indigo.
$0 !~ /indigo/
delta 109 closed cobalt 61 active grove 58 closed ember 67 failed juniper 113 ready delta 24 closed cobalt 27 paused delta 105 pending delta 112 closed fable 116 ready indigo 999 active
delta 109 closed cobalt 61 active grove 58 closed ember 67 failed juniper 113 ready delta 24 closed cobalt 27 paused delta 105 pending delta 112 closed fable 116 ready
cobalt 5 ready amber 50 paused ember 80 pending cobalt 67 closed grove 28 active juniper 49 paused amber 80 pending indigo 999 active
cobalt 5 ready amber 50 paused ember 80 pending cobalt 67 closed grove 28 active juniper 49 paused amber 80 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032571-p1
Output every line that does not contain the exact substring 'indigo'.
$0 !~ /indigo/
delta 109 closed cobalt 61 active grove 58 closed ember 67 failed juniper 113 ready delta 24 closed cobalt 27 paused delta 105 pending delta 112 closed fable 116 ready indigo 999 active
delta 109 closed cobalt 61 active grove 58 closed ember 67 failed juniper 113 ready delta 24 closed cobalt 27 paused delta 105 pending delta 112 closed fable 116 ready
cobalt 5 ready amber 50 paused ember 80 pending cobalt 67 closed grove 28 active juniper 49 paused amber 80 pending indigo 999 active
cobalt 5 ready amber 50 paused ember 80 pending cobalt 67 closed grove 28 active juniper 49 paused amber 80 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032571
qwen/qwen3.7-plus
awkweave-0032572
Print lines 3 through 5, including both endpoints.
NR >= 3 && NR <= 5
alice ember 67 lina birch 104 lina amber 114 eli grove 101 dina ember 117 ivan ember 92 alice delta 17 hana cobalt 9 alice fable 21
lina amber 114 eli grove 101 dina ember 117
farah indigo 89 kim amber 104 dina delta 72 jules grove 50 gus cobalt 2 lina fable 82 jules amber 59 hana grove 80 dina amber 75
dina delta 72 jules grove 50 gus cobalt 2
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032572-p1
Print lines numbered 3 through 5, inclusive of both the start and end lines.
NR >= 3 && NR <= 5
alice ember 67 lina birch 104 lina amber 114 eli grove 101 dina ember 117 ivan ember 92 alice delta 17 hana cobalt 9 alice fable 21
lina amber 114 eli grove 101 dina ember 117
farah indigo 89 kim amber 104 dina delta 72 jules grove 50 gus cobalt 2 lina fable 82 jules amber 59 hana grove 80 dina amber 75
dina delta 72 jules grove 50 gus cobalt 2
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032572
qwen/qwen3.7-plus
awkweave-0032573
Output only the first 2 records.
NR <= 2
jules 14 ember ivan 54 cobalt eli 11 fable hana 109 birch alice 93 grove alice 19 cobalt gus 0 harbor hana 23 birch
jules 14 ember ivan 54 cobalt
chen 80 fable ivan 92 harbor alice 36 grove gus 44 birch alice 86 indigo lina 83 harbor jules 106 birch alice 101 fable
chen 80 fable ivan 92 harbor
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032573-p1
Display only the first two records from the input.
NR <= 2
jules 14 ember ivan 54 cobalt eli 11 fable hana 109 birch alice 93 grove alice 19 cobalt gus 0 harbor hana 23 birch
jules 14 ember ivan 54 cobalt
chen 80 fable ivan 92 harbor alice 36 grove gus 44 birch alice 86 indigo lina 83 harbor jules 106 birch alice 101 fable
chen 80 fable ivan 92 harbor
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032573
qwen/qwen3.7-plus
awkweave-0032574
Skip the first line and print every remaining line unchanged.
NR > 1
alice 29 grove lina 89 harbor alice 87 juniper kim 90 amber bruno 31 indigo alice 117 indigo
lina 89 harbor alice 87 juniper kim 90 amber bruno 31 indigo alice 117 indigo
farah 67 birch chen 67 indigo chen 103 fable eli 120 cobalt ivan 46 cobalt jules 18 fable bruno 18 cobalt
chen 67 indigo chen 103 fable eli 120 cobalt ivan 46 cobalt jules 18 fable bruno 18 cobalt
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032574-p1
Omit the first line and output all subsequent lines exactly as they appear.
NR > 1
alice 29 grove lina 89 harbor alice 87 juniper kim 90 amber bruno 31 indigo alice 117 indigo
lina 89 harbor alice 87 juniper kim 90 amber bruno 31 indigo alice 117 indigo
farah 67 birch chen 67 indigo chen 103 fable eli 120 cobalt ivan 46 cobalt jules 18 fable bruno 18 cobalt
chen 67 indigo chen 103 fable eli 120 cobalt ivan 46 cobalt jules 18 fable bruno 18 cobalt
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032574
qwen/qwen3.7-plus
awkweave-0032575
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
jules closed 17 hana closed 10 chen active 69 lina ready 89 ivan pending 59 lina failed 71 alice failed 18 alice closed 50 alice failed 110 alice pending 91
3
alice paused 87 hana pending 26 kim pending 59 ivan paused 84 lina paused 52 jules ready 54
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032575-p1
Count the number of records where the second column is 'failed'; output 0 if the count is zero.
$2 == "failed"{n++}END{print n+0}
jules closed 17 hana closed 10 chen active 69 lina ready 89 ivan pending 59 lina failed 71 alice failed 18 alice closed 50 alice failed 110 alice pending 91
3
alice paused 87 hana pending 26 kim pending 59 ivan paused 84 lina paused 52 jules ready 54
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032575
qwen/qwen3.7-plus
awkweave-0032576
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
birch bruno 4 harbor farah 26 delta chen 13 indigo kim 24 fable chen 30 amber ivan 7 indigo dina 17
121
cobalt gus 4 delta kim 19 juniper jules 11 amber farah 22 indigo gus 23 indigo chen 17 fable hana 21 harbor alice 14 birch chen 8
139
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032576-p1
Compute and display the total sum of integer values found in the third column.
{s+=$3}END{print s+0}
birch bruno 4 harbor farah 26 delta chen 13 indigo kim 24 fable chen 30 amber ivan 7 indigo dina 17
121
cobalt gus 4 delta kim 19 juniper jules 11 amber farah 22 indigo gus 23 indigo chen 17 fable hana 21 harbor alice 14 birch chen 8
139
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032576
qwen/qwen3.7-plus
awkweave-0032577
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
ember 25 chen indigo 3 hana harbor 16 gus delta 14 farah cobalt 24 ivan harbor 2 jules
14.00
grove 29 alice amber 5 chen birch 9 jules indigo 23 eli ember 14 dina ember 13 bruno ember 28 dina grove 4 lina grove 26 bruno
16.78
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032577-p1
Calculate the average of values in the second column and print it rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
ember 25 chen indigo 3 hana harbor 16 gus delta 14 farah cobalt 24 ivan harbor 2 jules
14.00
grove 29 alice amber 5 chen birch 9 jules indigo 23 eli ember 14 dina ember 13 bruno ember 28 dina grove 4 lina grove 26 bruno
16.78
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032577
qwen/qwen3.7-plus
awkweave-0032578
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
kim grove 25 kim indigo 27 hana grove 9 jules juniper 5 dina indigo 9 jules juniper 8 ivan juniper 21 kim ember 30 chen ember 3
3
bruno indigo 9 dina cobalt 28 lina cobalt 15 chen birch 11 bruno juniper 17 dina ember 21 farah birch 27 hana delta 25
9
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032578-p1
Identify and output the minimum number found in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
kim grove 25 kim indigo 27 hana grove 9 jules juniper 5 dina indigo 9 jules juniper 8 ivan juniper 21 kim ember 30 chen ember 3
3
bruno indigo 9 dina cobalt 28 lina cobalt 15 chen birch 11 bruno juniper 17 dina ember 21 farah birch 27 hana delta 25
9
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032578
qwen/qwen3.7-plus
awkweave-0032579
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
amber 8 ivan ember 10 jules grove 12 hana harbor 14 farah birch 12 chen birch 18 lina harbor 17 kim amber 10 bruno fable 28 farah harbor 4 lina
28
indigo 14 lina fable 19 dina cobalt 2 dina harbor 18 lina ember 19 jules cobalt 11 ivan harbor 15 alice indigo 30 lina
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032579-p1
Locate and display the maximum numeric value within the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
amber 8 ivan ember 10 jules grove 12 hana harbor 14 farah birch 12 chen birch 18 lina harbor 17 kim amber 10 bruno fable 28 farah harbor 4 lina
28
indigo 14 lina fable 19 dina cobalt 2 dina harbor 18 lina ember 19 jules cobalt 11 ivan harbor 15 alice indigo 30 lina
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032579
qwen/qwen3.7-plus
awkweave-0032580
Count all input records and print the total.
END{print NR}
farah 30 eli 3 hana 42 lina 82 jules 110 chen 46 chen 68 jules 57
8
bruno 94 dina 79 jules 118 ivan 88 jules 64 farah 40 alice 14 chen 34
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032580-p1
Calculate the total number of input records and print the count.
END{print NR}
farah 30 eli 3 hana 42 lina 82 jules 110 chen 46 chen 68 jules 57
8
bruno 94 dina 79 jules 118 ivan 88 jules 64 farah 40 alice 14 chen 34
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032580
qwen/qwen3.7-plus
awkweave-0032581
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
alice harbor 115 chen ember 95 kim fable 45 eli indigo 66 gus harbor 23 chen ember 95 bruno birch 94 jules indigo 53
alice harbor 115 chen ember 95 kim fable 45 eli indigo 66 gus harbor 23 bruno birch 94 jules indigo 53
lina grove 90 gus birch 104 bruno ember 51 kim indigo 47 alice cobalt 107 bruno ember 51 farah cobalt 96 alice juniper 67 hana cobalt 21 ivan amber 86
lina grove 90 gus birch 104 bruno ember 51 kim indigo 47 alice cobalt 107 farah cobalt 96 alice juniper 67 hana cobalt 21 ivan amber 86
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032581-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
alice harbor 115 chen ember 95 kim fable 45 eli indigo 66 gus harbor 23 chen ember 95 bruno birch 94 jules indigo 53
alice harbor 115 chen ember 95 kim fable 45 eli indigo 66 gus harbor 23 bruno birch 94 jules indigo 53
lina grove 90 gus birch 104 bruno ember 51 kim indigo 47 alice cobalt 107 bruno ember 51 farah cobalt 96 alice juniper 67 hana cobalt 21 ivan amber 86
lina grove 90 gus birch 104 bruno ember 51 kim indigo 47 alice cobalt 107 farah cobalt 96 alice juniper 67 hana cobalt 21 ivan amber 86
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032581
qwen/qwen3.7-plus
awkweave-0032582
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
gus juniper 82 jules birch 83 hana grove 17 gus juniper 80 chen delta 85 dina birch 51 chen fable 6
gus juniper 82 jules birch 83 hana grove 17 gus juniper 80 chen delta 85 dina birch 51 chen fable 6
chen juniper 30 kim grove 33 dina amber 101 hana juniper 19 jules amber 82 alice ember 5
chen juniper 30 kim grove 33 dina amber 101 hana juniper 19 jules amber 82 alice ember 5
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032582-p1
Retain only the initial line for every unique value in the third column, ensuring input order is preserved.
!seen[$3]++
gus juniper 82 jules birch 83 hana grove 17 gus juniper 80 chen delta 85 dina birch 51 chen fable 6
gus juniper 82 jules birch 83 hana grove 17 gus juniper 80 chen delta 85 dina birch 51 chen fable 6
chen juniper 30 kim grove 33 dina amber 101 hana juniper 19 jules amber 82 alice ember 5
chen juniper 30 kim grove 33 dina amber 101 hana juniper 19 jules amber 82 alice ember 5
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032582
qwen/qwen3.7-plus
awkweave-0032583
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 6 harbor alice 30 delta gus 2 juniper bruno 10 cobalt lina 6 cobalt kim 20 birch
ivan 6 alice 36 gus 38 bruno 48 lina 54 kim 74
eli 15 delta gus 8 cobalt alice 19 amber eli 4 fable gus 21 cobalt ivan 15 cobalt
eli 15 gus 23 alice 42 eli 46 gus 67 ivan 82
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032583-p1
Output the first column alongside the cumulative sum of the second column for each record, using a space as the delimiter.
{s+=$2;print $1,s}
ivan 6 harbor alice 30 delta gus 2 juniper bruno 10 cobalt lina 6 cobalt kim 20 birch
ivan 6 alice 36 gus 38 bruno 48 lina 54 kim 74
eli 15 delta gus 8 cobalt alice 19 amber eli 4 fable gus 21 cobalt ivan 15 cobalt
eli 15 gus 23 alice 42 eli 46 gus 67 ivan 82
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032583
qwen/qwen3.7-plus
awkweave-0032584
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
dina 4 14 grove eli 17 18 harbor chen 19 20 juniper eli 5 27 harbor farah 30 4 fable bruno 16 1 harbor ivan 11 26 delta alice 9 10 harbor chen 29 2 juniper
dina 18 eli 35 chen 39 eli 32 farah 34 bruno 17 ivan 37 alice 19 chen 31
kim 17 10 amber lina 6 18 fable hana 7 29 ember eli 8 7 fable alice 25 4 amber eli 5 13 birch ivan 20 5 birch dina 18 14 delta
kim 27 lina 24 hana 36 eli 15 alice 29 eli 18 ivan 25 dina 32
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032584-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
dina 4 14 grove eli 17 18 harbor chen 19 20 juniper eli 5 27 harbor farah 30 4 fable bruno 16 1 harbor ivan 11 26 delta alice 9 10 harbor chen 29 2 juniper
dina 18 eli 35 chen 39 eli 32 farah 34 bruno 17 ivan 37 alice 19 chen 31
kim 17 10 amber lina 6 18 fable hana 7 29 ember eli 8 7 fable alice 25 4 amber eli 5 13 birch ivan 20 5 birch dina 18 14 delta
kim 27 lina 24 hana 36 eli 15 alice 29 eli 18 ivan 25 dina 32
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032584
qwen/qwen3.7-plus
awkweave-0032585
Print column 1 and pass when column 2 is at least 21; otherwise print fail.
{print $1,($2>=21?"pass":"fail")}
gus 7 lina 29 dina 24 jules 30 chen 7 gus 14 jules 7 bruno 12
gus fail lina pass dina pass jules pass chen fail gus fail jules fail bruno fail
chen 5 kim 14 bruno 13 ivan 6 lina 30 gus 6 dina 17 jules 13
chen fail kim fail bruno fail ivan fail lina pass gus fail dina fail jules fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032585-p1
Print the first column and output 'pass' if the second column is 21 or greater; otherwise, output 'fail'.
{print $1,($2>=21?"pass":"fail")}
gus 7 lina 29 dina 24 jules 30 chen 7 gus 14 jules 7 bruno 12
gus fail lina pass dina pass jules pass chen fail gus fail jules fail bruno fail
chen 5 kim 14 bruno 13 ivan 6 lina 30 gus 6 dina 17 jules 13
chen fail kim fail bruno fail ivan fail lina pass gus fail dina fail jules fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032585
qwen/qwen3.7-plus
awkweave-0032586
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
farah fable 80 alice delta 113 farah harbor 21 dina grove 84 alice fable 75 gus fable 98
FARAH ALICE FARAH DINA ALICE GUS
bruno birch 104 eli grove 101 lina amber 44 farah harbor 76 alice indigo 74 farah delta 89 hana juniper 93 ivan cobalt 33
BRUNO ELI LINA FARAH ALICE FARAH HANA IVAN
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032586-p1
Transform the first column to uppercase letters and print only that modified column.
{print toupper($1)}
farah fable 80 alice delta 113 farah harbor 21 dina grove 84 alice fable 75 gus fable 98
FARAH ALICE FARAH DINA ALICE GUS
bruno birch 104 eli grove 101 lina amber 44 farah harbor 76 alice indigo 74 farah delta 89 hana juniper 93 ivan cobalt 33
BRUNO ELI LINA FARAH ALICE FARAH HANA IVAN
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032586
qwen/qwen3.7-plus
awkweave-0032587
From column 1, print 3 characters starting at character 2.
{print substr($1,2,3)}
amber 20 cobalt 117 birch 79 juniper 120 birch 86 harbor 27 grove 114
mbe oba irc uni irc arb rov
indigo 104 ember 40 fable 46 grove 110 cobalt 23 delta 46 birch 7 indigo 67
ndi mbe abl rov oba elt irc ndi
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032587-p1
Extract and print a substring of 3 characters from the first column, beginning at the second character.
{print substr($1,2,3)}
amber 20 cobalt 117 birch 79 juniper 120 birch 86 harbor 27 grove 114
mbe oba irc uni irc arb rov
indigo 104 ember 40 fable 46 grove 110 cobalt 23 delta 46 birch 7 indigo 67
ndi mbe abl rov oba elt irc ndi
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032587
qwen/qwen3.7-plus
awkweave-0032588
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
juniper_amber 9 grove_delta 36 ember_indigo 32 juniper_harbor 55 indigo_fable 25 birch_fable 14
juniper amber grove delta ember indigo juniper harbor indigo fable birch fable
indigo_cobalt 59 grove_juniper 84 cobalt_ember 46 indigo_cobalt 32 indigo_harbor 14 amber_grove 51 juniper_fable 107 cobalt_delta 92
indigo cobalt grove juniper cobalt ember indigo cobalt indigo harbor amber grove juniper fable cobalt delta
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032588-p1
Substitute all underscores in the first column with spaces and print the updated values.
{gsub(/_/," ",$1);print $1}
juniper_amber 9 grove_delta 36 ember_indigo 32 juniper_harbor 55 indigo_fable 25 birch_fable 14
juniper amber grove delta ember indigo juniper harbor indigo fable birch fable
indigo_cobalt 59 grove_juniper 84 cobalt_ember 46 indigo_cobalt 32 indigo_harbor 14 amber_grove 51 juniper_fable 107 cobalt_delta 92
indigo cobalt grove juniper cobalt ember indigo cobalt indigo harbor amber grove juniper fable cobalt delta
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032588
qwen/qwen3.7-plus
awkweave-0032589
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)}
kim cobalt 11 pending ivan harbor 110 paused lina juniper 97 ready alice indigo 20 active farah harbor 4 closed jules amber 97 closed eli juniper 88 failed alice ember 42 ready
pending 11 cobalt kim paused 110 harbor ivan ready 97 juniper lina active 20 indigo alice closed 4 harbor farah closed 97 amber jules failed 88 juniper eli ready 42 ember alice
farah indigo 55 closed kim fable 75 pending kim juniper 16 pending jules delta 32 failed alice indigo 18 ready bruno amber 37 active eli amber 119 failed lina birch 77 paused bruno amber 99 closed alice birch 27 closed
closed 55 indigo farah pending 75 fable kim pending 16 juniper kim failed 32 delta jules ready 18 indigo alice active 37 amber bruno failed 119 amber eli paused 77 birch lina closed 99 amber bruno closed 27 birch alice
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032589-p1
Invert the sequence of fields for every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
kim cobalt 11 pending ivan harbor 110 paused lina juniper 97 ready alice indigo 20 active farah harbor 4 closed jules amber 97 closed eli juniper 88 failed alice ember 42 ready
pending 11 cobalt kim paused 110 harbor ivan ready 97 juniper lina active 20 indigo alice closed 4 harbor farah closed 97 amber jules failed 88 juniper eli ready 42 ember alice
farah indigo 55 closed kim fable 75 pending kim juniper 16 pending jules delta 32 failed alice indigo 18 ready bruno amber 37 active eli amber 119 failed lina birch 77 paused bruno amber 99 closed alice birch 27 closed
closed 55 indigo farah pending 75 fable kim pending 16 juniper kim failed 32 delta jules ready 18 indigo alice active 37 amber bruno failed 119 amber eli paused 77 birch lina closed 99 amber bruno closed 27 birch alice
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032589
qwen/qwen3.7-plus
awkweave-0032600
Print every 4th line starting at line 2 (then line 6, and so on).
NR%4==2
jules 90 chen 60 lina 85 ivan 91 eli 38 dina 7 eli 57 farah 105 kim 105
chen 60 dina 7
jules 92 bruno 119 bruno 40 gus 116 eli 64 alice 69
bruno 119 alice 69
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032600-p1
Output every fourth line beginning with the second line (i.e., lines 2, 6, etc.).
NR%4==2
jules 90 chen 60 lina 85 ivan 91 eli 38 dina 7 eli 57 farah 105 kim 105
chen 60 dina 7
jules 92 bruno 119 bruno 40 gus 116 eli 64 alice 69
bruno 119 alice 69
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032600
qwen/qwen3.7-plus
awkweave-0032601
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta harbor 20 delta harbor 107 gamma cobalt 82 beta amber 43 alpha juniper 79 beta cobalt 32 alpha grove 92
4
beta harbor 6 alpha indigo 58 beta ember 1 alpha birch 50 alpha fable 74 beta indigo 82 beta grove 19
2
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032601-p1
Calculate and display only the number of unique values found in the first column.
{if(!seen[$1]++)n++}END{print n+0}
beta harbor 20 delta harbor 107 gamma cobalt 82 beta amber 43 alpha juniper 79 beta cobalt 32 alpha grove 92
4
beta harbor 6 alpha indigo 58 beta ember 1 alpha birch 50 alpha fable 74 beta indigo 82 beta grove 19
2
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032601
qwen/qwen3.7-plus
awkweave-0032602
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}
bruno 23 0 gus 12 17 hana 21 26 hana 15 22 dina 10 21 bruno 26 3
gus 0.71 hana 0.81 hana 0.68 dina 0.48 bruno 8.67
dina 11 0 alice 30 25 dina 17 28 bruno 3 15 eli 3 1 alice 6 16 bruno 24 21 chen 28 1
alice 1.20 dina 0.61 bruno 0.20 eli 3.00 alice 0.38 bruno 1.14 chen 28.00
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032602-p1
For each row where the third column is not zero, output the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
bruno 23 0 gus 12 17 hana 21 26 hana 15 22 dina 10 21 bruno 26 3
gus 0.71 hana 0.81 hana 0.68 dina 0.48 bruno 8.67
dina 11 0 alice 30 25 dina 17 28 bruno 3 15 eli 3 1 alice 6 16 bruno 24 21 chen 28 1
alice 1.20 dina 0.61 bruno 0.20 eli 3.00 alice 0.38 bruno 1.14 chen 28.00
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032602
qwen/qwen3.7-plus
awkweave-0032603
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]}
alice grove 26 chen birch 5 lina cobalt 28 bruno fable 17 eli birch 6 jules ember 15
lina cobalt 28 alice grove 26 bruno fable 17
bruno juniper 12 hana harbor 18 lina birch 7 gus fable 23 chen birch 19 alice indigo 27
alice indigo 27 gus fable 23 chen birch 19
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032603-p1
Display the three full records with the largest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
alice grove 26 chen birch 5 lina cobalt 28 bruno fable 17 eli birch 6 jules ember 15
lina cobalt 28 alice grove 26 bruno fable 17
bruno juniper 12 hana harbor 18 lina birch 7 gus fable 23 chen birch 19 alice indigo 27
alice indigo 27 gus fable 23 chen birch 19
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032603
qwen/qwen3.7-plus
awkweave-0032604
Select the 3rd and 1st fields in that order.
{print $3, $1}
alice 88 86 ready 104 kim 91 46 ready 29 alice 94 57 pending 76 lina 17 56 paused 67 lina 60 20 closed 101 gus 13 58 ready 61 gus 87 42 closed 43 farah 68 53 failed 55 hana 77 40 closed 97
86 alice 46 kim 57 alice 56 lina 20 lina 58 gus 42 gus 53 farah 40 hana
farah 16 54 ready 1 hana 53 110 ready 105 dina 52 103 closed 69 dina 83 76 paused 36 bruno 42 43 active 36 chen 56 27 pending 25 lina 26 54 active 107
54 farah 110 hana 103 dina 76 dina 43 bruno 27 chen 54 lina
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032604-p1
Extract and print the third field followed by the first field.
{print $3, $1}
alice 88 86 ready 104 kim 91 46 ready 29 alice 94 57 pending 76 lina 17 56 paused 67 lina 60 20 closed 101 gus 13 58 ready 61 gus 87 42 closed 43 farah 68 53 failed 55 hana 77 40 closed 97
86 alice 46 kim 57 alice 56 lina 20 lina 58 gus 42 gus 53 farah 40 hana
farah 16 54 ready 1 hana 53 110 ready 105 dina 52 103 closed 69 dina 83 76 paused 36 bruno 42 43 active 36 chen 56 27 pending 25 lina 26 54 active 107
54 farah 110 hana 103 dina 76 dina 43 bruno 27 chen 54 lina
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032604
qwen/qwen3.7-plus
awkweave-0032605
Print the last field of every input line.
{print $NF}
ready fable indigo delta 42 paused juniper amber delta 56 ready fable juniper indigo 59 active harbor grove grove 104 ready birch delta amber 17 closed birch birch indigo 92 active delta ember amber 84
42 56 59 104 17 92 84
paused birch fable delta 119 ready amber ember indigo 84 active birch grove fable 101 failed birch indigo cobalt 11 paused delta amber harbor 20 active harbor ember ember 80 paused indigo grove indigo 94 active cobalt ember cobalt 48
119 84 101 11 20 80 94 48
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032605-p1
Output the final field from every line of input.
{print $NF}
ready fable indigo delta 42 paused juniper amber delta 56 ready fable juniper indigo 59 active harbor grove grove 104 ready birch delta amber 17 closed birch birch indigo 92 active delta ember amber 84
42 56 59 104 17 92 84
paused birch fable delta 119 ready amber ember indigo 84 active birch grove fable 101 failed birch indigo cobalt 11 paused delta amber harbor 20 active harbor ember ember 80 paused indigo grove indigo 94 active cobalt ember cobalt 48
119 84 101 11 20 80 94 48
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032605
qwen/qwen3.7-plus
awkweave-0032606
Print the complete records where column 1 is greater than 74.
$1 > 74
15 eli failed paused dina 118 kim closed closed hana 66 jules paused active lina 60 dina closed paused kim 93 dina paused pending dina 35 eli pending paused kim 79 ivan closed closed dina 21 farah failed failed alice
118 kim closed closed hana 93 dina paused pending dina 79 ivan closed closed dina
13 bruno active ready gus 82 farah closed ready farah 40 ivan ready paused ivan 34 gus active closed farah 70 kim paused pending alice 95 dina closed ready dina 78 kim failed pending kim
82 farah closed ready farah 95 dina closed ready dina 78 kim failed pending kim
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032606-p1
Print entire records where the value in the first column exceeds 74.
$1 > 74
15 eli failed paused dina 118 kim closed closed hana 66 jules paused active lina 60 dina closed paused kim 93 dina paused pending dina 35 eli pending paused kim 79 ivan closed closed dina 21 farah failed failed alice
118 kim closed closed hana 93 dina paused pending dina 79 ivan closed closed dina
13 bruno active ready gus 82 farah closed ready farah 40 ivan ready paused ivan 34 gus active closed farah 70 kim paused pending alice 95 dina closed ready dina 78 kim failed pending kim
82 farah closed ready farah 95 dina closed ready dina 78 kim failed pending kim
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032606
qwen/qwen3.7-plus
awkweave-0032607
Show whole lines whose 3rd field is between 10 and 26, inclusive.
$3 >= 10 && $3 <= 26
closed lina 26 dina pending bruno 28 chen pending dina 6 jules failed hana 10 ivan ready bruno 9 alice failed jules 18 alice active hana 6 ivan failed lina 25 lina paused ivan 22 chen failed farah 3 jules
closed lina 26 dina failed hana 10 ivan failed jules 18 alice failed lina 25 lina paused ivan 22 chen
failed gus 9 farah ready farah 9 lina paused gus 18 farah active chen 17 alice pending kim 26 jules active eli 22 eli failed alice 24 farah closed chen 8 lina paused lina 3 eli
paused gus 18 farah active chen 17 alice pending kim 26 jules active eli 22 eli failed alice 24 farah
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032607-p1
Display complete lines where the third field falls within the inclusive range of 10 to 26.
$3 >= 10 && $3 <= 26
closed lina 26 dina pending bruno 28 chen pending dina 6 jules failed hana 10 ivan ready bruno 9 alice failed jules 18 alice active hana 6 ivan failed lina 25 lina paused ivan 22 chen failed farah 3 jules
closed lina 26 dina failed hana 10 ivan failed jules 18 alice failed lina 25 lina paused ivan 22 chen
failed gus 9 farah ready farah 9 lina paused gus 18 farah active chen 17 alice pending kim 26 jules active eli 22 eli failed alice 24 farah closed chen 8 lina paused lina 3 eli
paused gus 18 farah active chen 17 alice pending kim 26 jules active eli 22 eli failed alice 24 farah
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032607
qwen/qwen3.7-plus
awkweave-0032608
Print column 4 only for rows where column 3 is exactly failed.
$3 == "failed"{print $4}
birch 105 paused farah juniper 80 active chen indigo 77 active hana birch 12 pending gus ember 7 pending farah fable 43 closed hana delta 50 active jules harbor 6 failed hana
hana
delta 87 closed bruno amber 71 ready alice indigo 62 pending lina grove 40 ready ivan ember 18 paused alice amber 22 failed bruno
bruno
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032608-p1
Output only the fourth column for rows where the third column contains exactly the text 'failed'.
$3 == "failed"{print $4}
birch 105 paused farah juniper 80 active chen indigo 77 active hana birch 12 pending gus ember 7 pending farah fable 43 closed hana delta 50 active jules harbor 6 failed hana
hana
delta 87 closed bruno amber 71 ready alice indigo 62 pending lina grove 40 ready ivan ember 18 paused alice amber 22 failed bruno
bruno
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032608
qwen/qwen3.7-plus
awkweave-0032609
Print all fields from lines where field 2 begins with INFO.
$2 ~ /^INFO/
grove DEBUG 57 cobalt INFO 99 juniper WARN 39 juniper INFO 100 grove ERROR 35 birch ERROR 69 grove DEBUG 26
cobalt INFO 99 juniper INFO 100
ember DEBUG 94 indigo WARN 18 birch WARN 67 ember INFO 101 harbor DEBUG 8 amber INFO 64 indigo DEBUG 36 grove WARN 110 fable INFO 52
ember INFO 101 amber INFO 64 fable INFO 52
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032609-p1
Print all fields from lines where the second field starts with 'INFO'.
$2 ~ /^INFO/
grove DEBUG 57 cobalt INFO 99 juniper WARN 39 juniper INFO 100 grove ERROR 35 birch ERROR 69 grove DEBUG 26
cobalt INFO 99 juniper INFO 100
ember DEBUG 94 indigo WARN 18 birch WARN 67 ember INFO 101 harbor DEBUG 8 amber INFO 64 indigo DEBUG 36 grove WARN 110 fable INFO 52
ember INFO 101 amber INFO 64 fable INFO 52
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032609
qwen/qwen3.7-plus
awkweave-0032610
Print every line except those containing the exact text cobalt.
$0 !~ /cobalt/
delta 26 closed grove 80 closed birch 117 closed ember 16 failed cobalt 26 failed amber 2 ready delta 84 pending ember 35 ready harbor 70 pending birch 61 pending cobalt 999 active
delta 26 closed grove 80 closed birch 117 closed ember 16 failed amber 2 ready delta 84 pending ember 35 ready harbor 70 pending birch 61 pending
delta 101 pending harbor 112 failed indigo 25 closed ember 29 pending ember 116 failed grove 42 paused fable 76 failed cobalt 999 active
delta 101 pending harbor 112 failed indigo 25 closed ember 29 pending ember 116 failed grove 42 paused fable 76 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032610-p1
Output every line that does not contain the exact string 'cobalt'.
$0 !~ /cobalt/
delta 26 closed grove 80 closed birch 117 closed ember 16 failed cobalt 26 failed amber 2 ready delta 84 pending ember 35 ready harbor 70 pending birch 61 pending cobalt 999 active
delta 26 closed grove 80 closed birch 117 closed ember 16 failed amber 2 ready delta 84 pending ember 35 ready harbor 70 pending birch 61 pending
delta 101 pending harbor 112 failed indigo 25 closed ember 29 pending ember 116 failed grove 42 paused fable 76 failed cobalt 999 active
delta 101 pending harbor 112 failed indigo 25 closed ember 29 pending ember 116 failed grove 42 paused fable 76 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032610
qwen/qwen3.7-plus
awkweave-0032611
Print lines 4 through 6, including both endpoints.
NR >= 4 && NR <= 6
eli cobalt 120 chen grove 82 alice ember 59 gus harbor 32 dina juniper 103 alice juniper 74 dina fable 109
gus harbor 32 dina juniper 103 alice juniper 74
dina juniper 70 hana birch 18 bruno birch 91 hana cobalt 64 lina grove 80 alice cobalt 74 dina ember 98 gus birch 97
hana cobalt 64 lina grove 80 alice cobalt 74
line_range
1
train
original-grammar
CC-BY-4.0
null
null