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-0004550-p1
Tally the occurrences of each unique value in the second column and print each value alongside its count, maintaining the order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
dina delta 84 farah gamma 113 jules beta 82 farah delta 62 jules alpha 21 ivan beta 22 kim delta 53 ivan delta 119 lina delta 76
delta 5 gamma 1 beta 2 alpha 1
ivan alpha 100 dina gamma 103 hana gamma 8 alice alpha 80 ivan alpha 28 alice alpha 80 chen gamma 100 bruno delta 24 farah delta 31 lina gamma 64
alpha 4 gamma 4 delta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004550
qwen/qwen3.7-plus
awkweave-0004551
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 alpha 24 eli beta 30 hana gamma 24 dina beta 9 lina beta 15 bruno alpha 12 eli alpha 5 dina alpha 23 lina beta 15 eli alpha 10
alpha 74 beta 69 gamma 24
hana beta 11 eli beta 13 eli delta 17 ivan delta 2 lina alpha 25 ivan gamma 19
beta 24 delta 19 alpha 25 gamma 19
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004551-p1
Calculate the sum of the third column for each distinct category in the second column, printing the results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
gus alpha 24 eli beta 30 hana gamma 24 dina beta 9 lina beta 15 bruno alpha 12 eli alpha 5 dina alpha 23 lina beta 15 eli alpha 10
alpha 74 beta 69 gamma 24
hana beta 11 eli beta 13 eli delta 17 ivan delta 2 lina alpha 25 ivan gamma 19
beta 24 delta 19 alpha 25 gamma 19
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004551
qwen/qwen3.7-plus
awkweave-0004552
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma indigo 25 beta grove 98 delta harbor 107 beta juniper 109 alpha cobalt 31 beta ember 25 delta fable 84 gamma juniper 109
gamma 2 beta 3 delta 2
delta indigo 30 delta amber 10 alpha birch 81 delta cobalt 100 alpha fable 6 alpha delta 108
delta 3 alpha 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004552-p1
List each duplicate value from the first column 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]]}
gamma indigo 25 beta grove 98 delta harbor 107 beta juniper 109 alpha cobalt 31 beta ember 25 delta fable 84 gamma juniper 109
gamma 2 beta 3 delta 2
delta indigo 30 delta amber 10 alpha birch 81 delta cobalt 100 alpha fable 6 alpha delta 108
delta 3 alpha 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004552
qwen/qwen3.7-plus
awkweave-0004553
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"]}
region record_id note score r001 kim 17 active r002 jules 14 pending r003 gus 21 paused r004 bruno 28 pending r005 kim 20 failed r006 chen 11 failed r007 ivan 29 closed r008 alice 6 failed r009 chen 4 failed r010 jules 1 paused
kim jules gus bruno kim chen ivan alice chen jules
region record_id note score r001 lina 19 closed r002 lina 30 ready r003 eli 17 active r004 kim 30 active r005 lina 20 failed r006 chen 8 ready r007 lina 1 active
lina lina eli kim lina chen lina
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004553-p1
Skip the header row and print the values from the record_id column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
region record_id note score r001 kim 17 active r002 jules 14 pending r003 gus 21 paused r004 bruno 28 pending r005 kim 20 failed r006 chen 11 failed r007 ivan 29 closed r008 alice 6 failed r009 chen 4 failed r010 jules 1 paused
kim jules gus bruno kim chen ivan alice chen jules
region record_id note score r001 lina 19 closed r002 lina 30 ready r003 eli 17 active r004 kim 30 active r005 lina 20 failed r006 chen 8 ready r007 lina 1 active
lina lina eli kim lina chen lina
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004553
qwen/qwen3.7-plus
awkweave-0004554
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 gus 23 closed r002 hana 23 failed r003 jules 3 closed r004 ivan 6 ready r005 gus 17 pending r006 hana 15 closed r007 jules 21 closed r008 dina 4 closed
gus hana gus hana jules
record_id display_name score state r001 jules 10 failed r002 ivan 4 paused r003 jules 15 ready r004 bruno 1 failed r005 alice 19 paused r006 kim 19 pending r007 eli 13 pending r008 hana 12 ready r009 eli 7 ready r010 farah 14 closed
jules alice kim
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004554-p1
Skip the header row and output the display_name field for all records 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 gus 23 closed r002 hana 23 failed r003 jules 3 closed r004 ivan 6 ready r005 gus 17 pending r006 hana 15 closed r007 jules 21 closed r008 dina 4 closed
gus hana gus hana jules
record_id display_name score state r001 jules 10 failed r002 ivan 4 paused r003 jules 15 ready r004 bruno 1 failed r005 alice 19 paused r006 kim 19 pending r007 eli 13 pending r008 hana 12 ready r009 eli 7 ready r010 farah 14 closed
jules alice kim
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004554
qwen/qwen3.7-plus
awkweave-0004555
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
bruno 10 closed eli 21 failed hana 30 active kim 9 paused ivan 10 failed kim 16 active
bruno eli hana kim ivan kim
gus 30 closed dina 9 failed bruno 26 ready dina 11 paused alice 10 ready eli 2 paused kim 27 paused
gus dina bruno dina alice eli kim
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004555-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
bruno 10 closed eli 21 failed hana 30 active kim 9 paused ivan 10 failed kim 16 active
bruno eli hana kim ivan kim
gus 30 closed dina 9 failed bruno 26 ready dina 11 paused alice 10 ready eli 2 paused kim 27 paused
gus dina bruno dina alice eli kim
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0004555
qwen/qwen3.7-plus
awkweave-0004556
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 15.
BEGIN{FS=OFS=","}$2>15{print $1}
lina,28,paused bruno,14,failed lina,18,closed farah,24,active hana,4,active alice,4,active hana,29,failed lina,28,closed gus,12,active alice,25,ready
lina lina farah hana lina alice
ivan,16,active ivan,6,paused ivan,2,active hana,17,ready bruno,4,ready lina,1,ready
ivan hana
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004556-p1
For simple CSV data without quoted commas, output the first column whenever the second column is greater than 15.
BEGIN{FS=OFS=","}$2>15{print $1}
lina,28,paused bruno,14,failed lina,18,closed farah,24,active hana,4,active alice,4,active hana,29,failed lina,28,closed gus,12,active alice,25,ready
lina lina farah hana lina alice
ivan,16,active ivan,6,paused ivan,2,active hana,17,ready bruno,4,ready lina,1,ready
ivan hana
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004556
qwen/qwen3.7-plus
awkweave-0004557
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
ivan harbor 116 gus delta 114 bruno ember 6 gus indigo 15 jules delta 110 dina cobalt 4
ivan harbor 116 gus delta 114 bruno ember 6 gus indigo 15 jules delta 110 dina cobalt 4
farah cobalt 5 farah indigo 23 jules ember 60 alice ember 35 lina birch 56 eli harbor 65
farah cobalt 5 farah indigo 23 jules ember 60 alice ember 35 lina birch 56 eli harbor 65
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004557-p1
Remove leading and trailing whitespace, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
ivan harbor 116 gus delta 114 bruno ember 6 gus indigo 15 jules delta 110 dina cobalt 4
ivan harbor 116 gus delta 114 bruno ember 6 gus indigo 15 jules delta 110 dina cobalt 4
farah cobalt 5 farah indigo 23 jules ember 60 alice ember 35 lina birch 56 eli harbor 65
farah cobalt 5 farah indigo 23 jules ember 60 alice ember 35 lina birch 56 eli harbor 65
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004557
qwen/qwen3.7-plus
awkweave-0004558
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
gus juniper 101 pending dina grove 89 active jules harbor 50 paused kim juniper 97 ready lina grove 42 pending eli birch 22 ready jules cobalt 41 closed
gus juniper 101 pending
gus delta 106 active gus juniper 107 failed hana cobalt 12 failed eli birch 103 ready alice juniper 120 paused ivan amber 4 paused
alice juniper 120 paused
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004558-p1
Identify and output the longest line in 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}
gus juniper 101 pending dina grove 89 active jules harbor 50 paused kim juniper 97 ready lina grove 42 pending eli birch 22 ready jules cobalt 41 closed
gus juniper 101 pending
gus delta 106 active gus juniper 107 failed hana cobalt 12 failed eli birch 103 ready alice juniper 120 paused ivan amber 4 paused
alice juniper 120 paused
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004558
qwen/qwen3.7-plus
awkweave-0004559
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
chen 85 jules 86 kim 104 chen 25 chen 41 gus 69
jules 86 chen 25 gus 69
gus 76 bruno 19 lina 51 ivan 21 jules 36 ivan 101
bruno 19 ivan 21 ivan 101
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004559-p1
Output every second line of the input, beginning with line 2 (i.e., lines 2, 4, 6, etc.).
NR%2==0
chen 85 jules 86 kim 104 chen 25 chen 41 gus 69
jules 86 chen 25 gus 69
gus 76 bruno 19 lina 51 ivan 21 jules 36 ivan 101
bruno 19 ivan 21 ivan 101
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004559
qwen/qwen3.7-plus
awkweave-0004560
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
gamma juniper 108 beta juniper 49 beta delta 60 gamma indigo 90 alpha juniper 21 alpha ember 9 delta delta 0
4
alpha ember 118 alpha indigo 14 alpha harbor 93 alpha grove 46 beta grove 69 delta delta 9 delta birch 43
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004560-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}
gamma juniper 108 beta juniper 49 beta delta 60 gamma indigo 90 alpha juniper 21 alpha ember 9 delta delta 0
4
alpha ember 118 alpha indigo 14 alpha harbor 93 alpha grove 46 beta grove 69 delta delta 9 delta birch 43
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004560
qwen/qwen3.7-plus
awkweave-0004561
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}
jules 8 0 chen 24 16 jules 15 8 alice 2 25 kim 6 11 lina 16 22 dina 24 24 chen 26 17
chen 1.50 jules 1.88 alice 0.08 kim 0.55 lina 0.73 dina 1.00 chen 1.53
kim 29 0 kim 29 18 hana 2 1 jules 23 18 lina 7 3 farah 18 28 ivan 4 6
kim 1.61 hana 2.00 jules 1.28 lina 2.33 farah 0.64 ivan 0.67
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004561-p1
For each row, output the first column and the result of dividing the second column by the third column formatted to two decimal places, excluding any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
jules 8 0 chen 24 16 jules 15 8 alice 2 25 kim 6 11 lina 16 22 dina 24 24 chen 26 17
chen 1.50 jules 1.88 alice 0.08 kim 0.55 lina 0.73 dina 1.00 chen 1.53
kim 29 0 kim 29 18 hana 2 1 jules 23 18 lina 7 3 farah 18 28 ivan 4 6
kim 1.61 hana 2.00 jules 1.28 lina 2.33 farah 0.64 ivan 0.67
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004561
qwen/qwen3.7-plus
awkweave-0004562
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 birch 11 alice harbor 29 lina delta 26 jules birch 21 kim indigo 16 chen harbor 2 chen harbor 17 kim amber 30 bruno juniper 6 hana harbor 18
kim amber 30 alice harbor 29 lina delta 26
hana ember 16 farah harbor 3 jules grove 12 bruno amber 30 chen grove 24 gus fable 5
bruno amber 30 chen grove 24 hana ember 16
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004562-p1
Output the three full records with the highest 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 birch 11 alice harbor 29 lina delta 26 jules birch 21 kim indigo 16 chen harbor 2 chen harbor 17 kim amber 30 bruno juniper 6 hana harbor 18
kim amber 30 alice harbor 29 lina delta 26
hana ember 16 farah harbor 3 jules grove 12 bruno amber 30 chen grove 24 gus fable 5
bruno amber 30 chen grove 24 hana ember 16
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004562
qwen/qwen3.7-plus
awkweave-0004563
Print column 5 followed by column 2 for every record.
{print $5, $2}
grove paused 102 active kim active fable failed 99 closed kim failed juniper ready 108 ready eli closed cobalt paused 75 paused dina paused cobalt pending 119 pending jules pending ember ready 28 pending farah active delta failed 3 active eli failed juniper failed 117 paused farah ready
kim paused kim failed eli ready dina paused jules pending farah ready eli failed farah failed
grove pending 28 failed chen ready birch pending 31 failed hana pending juniper failed 118 failed gus ready delta active 68 ready bruno failed cobalt closed 59 paused lina paused ember pending 102 active chen ready ember paused 7 ready hana active indigo closed 52 ready hana ready birch pending 74 ready chen paused
chen pending hana pending gus failed bruno active lina closed chen pending hana paused hana closed chen pending
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004563-p1
For every record, print the fifth column followed by the second column.
{print $5, $2}
grove paused 102 active kim active fable failed 99 closed kim failed juniper ready 108 ready eli closed cobalt paused 75 paused dina paused cobalt pending 119 pending jules pending ember ready 28 pending farah active delta failed 3 active eli failed juniper failed 117 paused farah ready
kim paused kim failed eli ready dina paused jules pending farah ready eli failed farah failed
grove pending 28 failed chen ready birch pending 31 failed hana pending juniper failed 118 failed gus ready delta active 68 ready bruno failed cobalt closed 59 paused lina paused ember pending 102 active chen ready ember paused 7 ready hana active indigo closed 52 ready hana ready birch pending 74 ready chen paused
chen pending hana pending gus failed bruno active lina closed chen pending hana paused hana closed chen pending
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004563
qwen/qwen3.7-plus
awkweave-0004564
Print the last field of every input line.
{print $NF}
68 ready active cobalt 96 54 active failed indigo 27 0 paused ready birch 112 18 active pending birch 39 95 failed active juniper 87 57 closed pending grove 115 42 active active harbor 81
96 27 112 39 87 115 81
100 paused failed delta 117 94 pending failed fable 24 16 ready active delta 70 82 closed ready birch 79 49 closed ready ember 69 87 ready pending cobalt 73 104 paused paused harbor 72 2 pending paused ember 31
117 24 70 79 69 73 72 31
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004564-p1
Output the final field from each line of the input.
{print $NF}
68 ready active cobalt 96 54 active failed indigo 27 0 paused ready birch 112 18 active pending birch 39 95 failed active juniper 87 57 closed pending grove 115 42 active active harbor 81
96 27 112 39 87 115 81
100 paused failed delta 117 94 pending failed fable 24 16 ready active delta 70 82 closed ready birch 79 49 closed ready ember 69 87 ready pending cobalt 73 104 paused paused harbor 72 2 pending paused ember 31
117 24 70 79 69 73 72 31
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004564
qwen/qwen3.7-plus
awkweave-0004565
Print the complete records where column 2 is greater than 75.
$2 > 75
failed 15 delta eli ready pending 47 harbor jules active ready 3 delta kim active failed 48 fable alice paused active 4 cobalt chen closed pending 106 cobalt kim active closed 64 birch alice active closed 74 indigo chen active
pending 106 cobalt kim active
pending 97 harbor farah pending active 80 cobalt hana paused closed 49 indigo gus paused pending 108 fable jules active failed 13 ember ivan pending active 16 harbor lina pending ready 116 birch chen active
pending 97 harbor farah pending active 80 cobalt hana paused pending 108 fable jules active ready 116 birch chen active
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004565-p1
Print the full records for which the value in the second column is greater than 75.
$2 > 75
failed 15 delta eli ready pending 47 harbor jules active ready 3 delta kim active failed 48 fable alice paused active 4 cobalt chen closed pending 106 cobalt kim active closed 64 birch alice active closed 74 indigo chen active
pending 106 cobalt kim active
pending 97 harbor farah pending active 80 cobalt hana paused closed 49 indigo gus paused pending 108 fable jules active failed 13 ember ivan pending active 16 harbor lina pending ready 116 birch chen active
pending 97 harbor farah pending active 80 cobalt hana paused pending 108 fable jules active ready 116 birch chen active
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004565
qwen/qwen3.7-plus
awkweave-0004566
Show whole lines whose 3rd field is between 11 and 28, inclusive.
$3 >= 11 && $3 <= 28
closed active 25 ivan failed pending 25 dina paused paused 2 eli failed ready 7 kim failed ready 9 chen pending ready 13 eli pending closed 17 eli ready failed 23 hana closed pending 10 gus active pending 15 bruno
closed active 25 ivan failed pending 25 dina pending ready 13 eli pending closed 17 eli ready failed 23 hana active pending 15 bruno
closed active 6 hana pending ready 3 jules paused paused 6 kim pending pending 11 dina failed closed 8 bruno closed closed 23 jules paused ready 7 chen failed active 15 eli active failed 10 eli
pending pending 11 dina closed closed 23 jules failed active 15 eli
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004566-p1
Display complete lines where the third field falls within the inclusive range of 11 to 28.
$3 >= 11 && $3 <= 28
closed active 25 ivan failed pending 25 dina paused paused 2 eli failed ready 7 kim failed ready 9 chen pending ready 13 eli pending closed 17 eli ready failed 23 hana closed pending 10 gus active pending 15 bruno
closed active 25 ivan failed pending 25 dina pending ready 13 eli pending closed 17 eli ready failed 23 hana active pending 15 bruno
closed active 6 hana pending ready 3 jules paused paused 6 kim pending pending 11 dina failed closed 8 bruno closed closed 23 jules paused ready 7 chen failed active 15 eli active failed 10 eli
pending pending 11 dina closed closed 23 jules failed active 15 eli
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004566
qwen/qwen3.7-plus
awkweave-0004567
Print column 1 only for rows where column 4 is exactly ready.
$4 == "ready"{print $1}
ivan 107 birch failed chen 33 delta active dina 10 delta ready gus 95 harbor pending farah 1 juniper ready lina 101 grove closed eli 80 grove failed bruno 4 cobalt ready dina 64 indigo active
dina farah bruno
dina 78 ember failed kim 43 delta failed farah 76 indigo active alice 119 indigo paused chen 51 grove closed dina 46 fable active farah 77 indigo closed
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004567-p1
Output only the first column for rows where the fourth column is exactly 'ready'.
$4 == "ready"{print $1}
ivan 107 birch failed chen 33 delta active dina 10 delta ready gus 95 harbor pending farah 1 juniper ready lina 101 grove closed eli 80 grove failed bruno 4 cobalt ready dina 64 indigo active
dina farah bruno
dina 78 ember failed kim 43 delta failed farah 76 indigo active alice 119 indigo paused chen 51 grove closed dina 46 fable active farah 77 indigo closed
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004567
qwen/qwen3.7-plus
awkweave-0004568
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
57 INFO juniper 5 INFO cobalt 96 ERROR birch 63 WARN amber 106 INFO amber 114 WARN birch 54 DEBUG delta 53 WARN indigo
96 ERROR birch
69 ERROR birch 29 WARN indigo 34 INFO cobalt 53 ERROR amber 57 ERROR ember 66 ERROR indigo
69 ERROR birch 53 ERROR amber 57 ERROR ember 66 ERROR indigo
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004568-p1
Print all fields from lines where the second field starts with 'ERROR'.
$2 ~ /^ERROR/
57 INFO juniper 5 INFO cobalt 96 ERROR birch 63 WARN amber 106 INFO amber 114 WARN birch 54 DEBUG delta 53 WARN indigo
96 ERROR birch
69 ERROR birch 29 WARN indigo 34 INFO cobalt 53 ERROR amber 57 ERROR ember 66 ERROR indigo
69 ERROR birch 53 ERROR amber 57 ERROR ember 66 ERROR indigo
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004568
qwen/qwen3.7-plus
awkweave-0004569
Print every line except those containing the exact text birch.
$0 !~ /birch/
birch 58 closed ember 119 closed harbor 2 paused indigo 119 paused birch 20 active delta 104 active harbor 0 ready amber 54 pending harbor 58 pending birch 999 active
ember 119 closed harbor 2 paused indigo 119 paused delta 104 active harbor 0 ready amber 54 pending harbor 58 pending
juniper 22 active cobalt 98 pending amber 40 ready ember 11 pending delta 87 paused fable 89 active indigo 16 closed birch 18 paused juniper 57 ready birch 999 active
juniper 22 active cobalt 98 pending amber 40 ready ember 11 pending delta 87 paused fable 89 active indigo 16 closed juniper 57 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004569-p1
Output every line that does not contain the exact string 'birch'.
$0 !~ /birch/
birch 58 closed ember 119 closed harbor 2 paused indigo 119 paused birch 20 active delta 104 active harbor 0 ready amber 54 pending harbor 58 pending birch 999 active
ember 119 closed harbor 2 paused indigo 119 paused delta 104 active harbor 0 ready amber 54 pending harbor 58 pending
juniper 22 active cobalt 98 pending amber 40 ready ember 11 pending delta 87 paused fable 89 active indigo 16 closed birch 18 paused juniper 57 ready birch 999 active
juniper 22 active cobalt 98 pending amber 40 ready ember 11 pending delta 87 paused fable 89 active indigo 16 closed juniper 57 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004569
qwen/qwen3.7-plus
awkweave-0004570
Print lines 3 through 6, including both endpoints.
NR >= 3 && NR <= 6
dina amber 35 alice juniper 56 jules harbor 8 alice indigo 64 eli indigo 14 ivan indigo 34 ivan amber 61 kim indigo 76
jules harbor 8 alice indigo 64 eli indigo 14 ivan indigo 34
alice indigo 62 eli juniper 82 kim delta 114 alice grove 21 gus cobalt 51 kim birch 16 ivan juniper 29 farah indigo 2 gus fable 25
kim delta 114 alice grove 21 gus cobalt 51 kim birch 16
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004570-p1
Print lines 3 through 6, inclusive of both endpoints.
NR >= 3 && NR <= 6
dina amber 35 alice juniper 56 jules harbor 8 alice indigo 64 eli indigo 14 ivan indigo 34 ivan amber 61 kim indigo 76
jules harbor 8 alice indigo 64 eli indigo 14 ivan indigo 34
alice indigo 62 eli juniper 82 kim delta 114 alice grove 21 gus cobalt 51 kim birch 16 ivan juniper 29 farah indigo 2 gus fable 25
kim delta 114 alice grove 21 gus cobalt 51 kim birch 16
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004570
qwen/qwen3.7-plus
awkweave-0004571
Output only the first 4 records.
NR <= 4
eli 19 fable gus 44 delta jules 78 delta lina 79 birch gus 87 cobalt bruno 94 ember ivan 39 birch chen 20 grove ivan 90 delta kim 99 grove
eli 19 fable gus 44 delta jules 78 delta lina 79 birch
hana 23 grove eli 42 harbor farah 61 indigo jules 93 grove lina 11 delta jules 57 harbor kim 84 juniper bruno 91 amber
hana 23 grove eli 42 harbor farah 61 indigo jules 93 grove
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004571-p1
Output only the first 4 records.
NR <= 4
eli 19 fable gus 44 delta jules 78 delta lina 79 birch gus 87 cobalt bruno 94 ember ivan 39 birch chen 20 grove ivan 90 delta kim 99 grove
eli 19 fable gus 44 delta jules 78 delta lina 79 birch
hana 23 grove eli 42 harbor farah 61 indigo jules 93 grove lina 11 delta jules 57 harbor kim 84 juniper bruno 91 amber
hana 23 grove eli 42 harbor farah 61 indigo jules 93 grove
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0004571
qwen/qwen3.7-plus
awkweave-0004572
Skip the first line and print every remaining line unchanged.
NR > 1
gus 95 amber kim 45 grove ivan 66 fable dina 7 indigo bruno 7 cobalt dina 6 harbor farah 44 delta
kim 45 grove ivan 66 fable dina 7 indigo bruno 7 cobalt dina 6 harbor farah 44 delta
hana 48 amber farah 54 birch gus 0 birch bruno 49 harbor ivan 63 ember bruno 115 ember farah 15 birch
farah 54 birch gus 0 birch bruno 49 harbor ivan 63 ember bruno 115 ember farah 15 birch
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004572-p1
Omit the first line and print all subsequent lines without modification.
NR > 1
gus 95 amber kim 45 grove ivan 66 fable dina 7 indigo bruno 7 cobalt dina 6 harbor farah 44 delta
kim 45 grove ivan 66 fable dina 7 indigo bruno 7 cobalt dina 6 harbor farah 44 delta
hana 48 amber farah 54 birch gus 0 birch bruno 49 harbor ivan 63 ember bruno 115 ember farah 15 birch
farah 54 birch gus 0 birch bruno 49 harbor ivan 63 ember bruno 115 ember farah 15 birch
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004572
qwen/qwen3.7-plus
awkweave-0004573
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
farah closed 24 eli paused 24 lina failed 26 gus ready 69 chen paused 8 lina closed 108 lina active 44
1
chen failed 120 eli closed 13 lina paused 117 dina active 93 eli paused 58 chen closed 69 jules failed 119 bruno active 8 jules pending 62 chen failed 98
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004573-p1
Count the number of records with 'active' in the second column, printing 0 if none are found.
$2 == "active"{n++}END{print n+0}
farah closed 24 eli paused 24 lina failed 26 gus ready 69 chen paused 8 lina closed 108 lina active 44
1
chen failed 120 eli closed 13 lina paused 117 dina active 93 eli paused 58 chen closed 69 jules failed 119 bruno active 8 jules pending 62 chen failed 98
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004573
qwen/qwen3.7-plus
awkweave-0004574
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
1 alice indigo 19 kim delta 25 gus fable 15 lina amber 28 farah grove 30 hana birch 13 farah harbor 30 farah delta 11 dina grove 30 dina grove
202
12 jules ember 11 chen grove 20 gus delta 23 lina delta 9 eli delta 29 gus birch 23 chen amber 17 gus ember
144
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004574-p1
Compute and display the sum of integer values in the first column.
{s+=$1}END{print s+0}
1 alice indigo 19 kim delta 25 gus fable 15 lina amber 28 farah grove 30 hana birch 13 farah harbor 30 farah delta 11 dina grove 30 dina grove
202
12 jules ember 11 chen grove 20 gus delta 23 lina delta 9 eli delta 29 gus birch 23 chen amber 17 gus ember
144
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004574
qwen/qwen3.7-plus
awkweave-0004575
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
6 amber gus 9 juniper bruno 13 fable ivan 27 harbor alice 24 harbor lina 19 indigo kim 21 harbor bruno
17.00
18 grove alice 11 harbor farah 22 birch lina 16 birch bruno 18 juniper eli 29 indigo farah 25 amber lina
19.86
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004575-p1
Print the average of the values in the first column, rounded to two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
6 amber gus 9 juniper bruno 13 fable ivan 27 harbor alice 24 harbor lina 19 indigo kim 21 harbor bruno
17.00
18 grove alice 11 harbor farah 22 birch lina 16 birch bruno 18 juniper eli 29 indigo farah 25 amber lina
19.86
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004575
qwen/qwen3.7-plus
awkweave-0004576
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
24 indigo kim 5 grove farah 2 cobalt eli 2 ember farah 20 fable farah 22 indigo eli 6 ember eli 9 delta dina 11 birch farah 30 ember bruno
2
18 harbor ivan 28 harbor chen 2 amber lina 12 amber gus 25 indigo dina 22 ember chen 23 cobalt eli
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004576-p1
Identify and print the minimum numeric value in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
24 indigo kim 5 grove farah 2 cobalt eli 2 ember farah 20 fable farah 22 indigo eli 6 ember eli 9 delta dina 11 birch farah 30 ember bruno
2
18 harbor ivan 28 harbor chen 2 amber lina 12 amber gus 25 indigo dina 22 ember chen 23 cobalt eli
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004576
qwen/qwen3.7-plus
awkweave-0004577
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
21 dina juniper 15 jules indigo 25 hana indigo 3 eli indigo 25 gus grove 22 gus cobalt 19 kim amber 7 dina cobalt 29 farah ember 30 kim fable
30
17 hana indigo 22 gus cobalt 25 bruno harbor 19 alice juniper 30 kim delta 3 jules juniper 2 farah grove 18 gus amber 18 dina cobalt 7 alice amber
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004577-p1
Identify and print the maximum numeric value in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
21 dina juniper 15 jules indigo 25 hana indigo 3 eli indigo 25 gus grove 22 gus cobalt 19 kim amber 7 dina cobalt 29 farah ember 30 kim fable
30
17 hana indigo 22 gus cobalt 25 bruno harbor 19 alice juniper 30 kim delta 3 jules juniper 2 farah grove 18 gus amber 18 dina cobalt 7 alice amber
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004577
qwen/qwen3.7-plus
awkweave-0004578
Count all input records and print the total.
END{print NR}
jules 22 eli 116 gus 49 hana 62 gus 37 hana 8 eli 59 eli 8 dina 68 chen 32
10
alice 43 dina 13 chen 22 kim 31 jules 11 eli 65 dina 69 eli 51 bruno 98
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004578-p1
Calculate and output the total number of input records.
END{print NR}
jules 22 eli 116 gus 49 hana 62 gus 37 hana 8 eli 59 eli 8 dina 68 chen 32
10
alice 43 dina 13 chen 22 kim 31 jules 11 eli 65 dina 69 eli 51 bruno 98
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004578
qwen/qwen3.7-plus
awkweave-0004579
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
eli harbor 23 bruno amber 93 ivan harbor 30 hana birch 30 eli fable 80 chen amber 35 dina delta 70 bruno amber 93 lina harbor 105 lina ember 34
eli harbor 23 bruno amber 93 ivan harbor 30 hana birch 30 eli fable 80 chen amber 35 dina delta 70 lina harbor 105 lina ember 34
jules indigo 80 bruno amber 6 lina harbor 48 farah harbor 71 eli indigo 29 eli juniper 93 bruno amber 22 gus harbor 67 lina harbor 48 alice harbor 92 lina grove 19
jules indigo 80 bruno amber 6 lina harbor 48 farah harbor 71 eli indigo 29 eli juniper 93 bruno amber 22 gus harbor 67 alice harbor 92 lina grove 19
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004579-p1
Eliminate duplicate lines by keeping only the first instance of each, maintaining the original sequence.
!seen[$0]++
eli harbor 23 bruno amber 93 ivan harbor 30 hana birch 30 eli fable 80 chen amber 35 dina delta 70 bruno amber 93 lina harbor 105 lina ember 34
eli harbor 23 bruno amber 93 ivan harbor 30 hana birch 30 eli fable 80 chen amber 35 dina delta 70 lina harbor 105 lina ember 34
jules indigo 80 bruno amber 6 lina harbor 48 farah harbor 71 eli indigo 29 eli juniper 93 bruno amber 22 gus harbor 67 lina harbor 48 alice harbor 92 lina grove 19
jules indigo 80 bruno amber 6 lina harbor 48 farah harbor 71 eli indigo 29 eli juniper 93 bruno amber 22 gus harbor 67 alice harbor 92 lina grove 19
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004579
qwen/qwen3.7-plus
awkweave-0004580
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
hana ember 6 farah cobalt 0 eli indigo 28 kim cobalt 61 hana delta 13 farah ember 20 ivan cobalt 63 lina delta 35 hana ember 19 bruno birch 0
hana ember 6 farah cobalt 0 eli indigo 28 hana delta 13 bruno birch 0
lina birch 11 hana ember 88 gus ember 55 hana ember 86 dina grove 37 jules birch 86 alice juniper 27
lina birch 11 hana ember 88 dina grove 37 alice juniper 27
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004580-p1
Retain only the initial row for every unique entry in the second column, keeping the original order.
!seen[$2]++
hana ember 6 farah cobalt 0 eli indigo 28 kim cobalt 61 hana delta 13 farah ember 20 ivan cobalt 63 lina delta 35 hana ember 19 bruno birch 0
hana ember 6 farah cobalt 0 eli indigo 28 hana delta 13 bruno birch 0
lina birch 11 hana ember 88 gus ember 55 hana ember 86 dina grove 37 jules birch 86 alice juniper 27
lina birch 11 hana ember 88 dina grove 37 alice juniper 27
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004580
qwen/qwen3.7-plus
awkweave-0004581
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
alice 26 indigo kim 20 amber farah 1 harbor gus 2 cobalt kim 19 indigo farah 21 ember ivan 16 fable farah 9 amber hana 4 grove chen 4 delta
alice 26 kim 46 farah 47 gus 49 kim 68 farah 89 ivan 105 farah 114 hana 118 chen 122
eli 18 amber kim 12 cobalt dina 3 amber jules 19 juniper alice 16 ember chen 10 birch eli 18 grove lina 3 grove lina 23 delta
eli 18 kim 30 dina 33 jules 52 alice 68 chen 78 eli 96 lina 99 lina 122
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004581-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}
alice 26 indigo kim 20 amber farah 1 harbor gus 2 cobalt kim 19 indigo farah 21 ember ivan 16 fable farah 9 amber hana 4 grove chen 4 delta
alice 26 kim 46 farah 47 gus 49 kim 68 farah 89 ivan 105 farah 114 hana 118 chen 122
eli 18 amber kim 12 cobalt dina 3 amber jules 19 juniper alice 16 ember chen 10 birch eli 18 grove lina 3 grove lina 23 delta
eli 18 kim 30 dina 33 jules 52 alice 68 chen 78 eli 96 lina 99 lina 122
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004581
qwen/qwen3.7-plus
awkweave-0004582
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
hana 20 6 juniper farah 3 28 cobalt hana 3 30 ember farah 25 13 ember farah 12 8 ember chen 16 10 indigo
hana 26 farah 31 hana 33 farah 38 farah 20 chen 26
dina 12 16 amber farah 7 15 fable hana 27 18 delta ivan 18 11 juniper chen 25 28 indigo eli 18 1 birch
dina 28 farah 22 hana 45 ivan 29 chen 53 eli 19
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004582-p1
For each line, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
hana 20 6 juniper farah 3 28 cobalt hana 3 30 ember farah 25 13 ember farah 12 8 ember chen 16 10 indigo
hana 26 farah 31 hana 33 farah 38 farah 20 chen 26
dina 12 16 amber farah 7 15 fable hana 27 18 delta ivan 18 11 juniper chen 25 28 indigo eli 18 1 birch
dina 28 farah 22 hana 45 ivan 29 chen 53 eli 19
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004582
qwen/qwen3.7-plus
awkweave-0004583
Print column 1 and pass when column 2 is at least 23; otherwise print fail.
{print $1,($2>=23?"pass":"fail")}
chen 2 farah 29 dina 18 ivan 8 bruno 18 hana 26 ivan 21
chen fail farah pass dina fail ivan fail bruno fail hana pass ivan fail
bruno 28 farah 30 eli 30 kim 22 alice 8 hana 14 gus 28 farah 23 ivan 26 gus 20
bruno pass farah pass eli pass kim fail alice fail hana fail gus pass farah pass ivan pass gus fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004583-p1
Output the first column; append 'pass' if the second column is 23 or greater, otherwise append 'fail'.
{print $1,($2>=23?"pass":"fail")}
chen 2 farah 29 dina 18 ivan 8 bruno 18 hana 26 ivan 21
chen fail farah pass dina fail ivan fail bruno fail hana pass ivan fail
bruno 28 farah 30 eli 30 kim 22 alice 8 hana 14 gus 28 farah 23 ivan 26 gus 20
bruno pass farah pass eli pass kim fail alice fail hana fail gus pass farah pass ivan pass gus fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004583
qwen/qwen3.7-plus
awkweave-0004584
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
alice grove 118 ivan amber 45 gus grove 74 gus delta 12 chen indigo 62 jules birch 75 gus cobalt 104 dina grove 66 gus fable 86
GROVE AMBER GROVE DELTA INDIGO BIRCH COBALT GROVE FABLE
jules amber 45 kim juniper 101 farah ember 94 alice cobalt 9 farah grove 30 jules fable 13 farah amber 35 hana cobalt 54 chen indigo 64 dina indigo 119
AMBER JUNIPER EMBER COBALT GROVE FABLE AMBER COBALT INDIGO INDIGO
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004584-p1
Transform the second column to uppercase and output only that modified column.
{print toupper($2)}
alice grove 118 ivan amber 45 gus grove 74 gus delta 12 chen indigo 62 jules birch 75 gus cobalt 104 dina grove 66 gus fable 86
GROVE AMBER GROVE DELTA INDIGO BIRCH COBALT GROVE FABLE
jules amber 45 kim juniper 101 farah ember 94 alice cobalt 9 farah grove 30 jules fable 13 farah amber 35 hana cobalt 54 chen indigo 64 dina indigo 119
AMBER JUNIPER EMBER COBALT GROVE FABLE AMBER COBALT INDIGO INDIGO
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004584
qwen/qwen3.7-plus
awkweave-0004585
From column 1, print 4 characters starting at character 2.
{print substr($1,2,4)}
ember 77 grove 79 cobalt 110 cobalt 64 ember 105 ember 73 amber 89 birch 110 ember 53
mber rove obal obal mber mber mber irch mber
cobalt 36 fable 65 cobalt 111 ember 111 amber 82 delta 87 delta 91 grove 0
obal able obal mber mber elta elta rove
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004585-p1
Extract and print a 4-character substring from the first column, starting at the second character.
{print substr($1,2,4)}
ember 77 grove 79 cobalt 110 cobalt 64 ember 105 ember 73 amber 89 birch 110 ember 53
mber rove obal obal mber mber mber irch mber
cobalt 36 fable 65 cobalt 111 ember 111 amber 82 delta 87 delta 91 grove 0
obal able obal mber mber elta elta rove
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004585
qwen/qwen3.7-plus
awkweave-0004586
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
delta_indigo 95 ember_birch 31 cobalt_delta 17 fable_juniper 96 fable_ember 107 ember_amber 44 amber_amber 6
delta indigo ember birch cobalt delta fable juniper fable ember ember amber amber amber
amber_delta 13 delta_harbor 24 birch_birch 103 delta_indigo 88 delta_amber 92 birch_amber 40 indigo_indigo 86 birch_juniper 1
amber delta delta harbor birch birch delta indigo delta amber birch amber indigo indigo birch juniper
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004586-p1
Substitute all underscores with spaces in the first column and print the results.
{gsub(/_/," ",$1);print $1}
delta_indigo 95 ember_birch 31 cobalt_delta 17 fable_juniper 96 fable_ember 107 ember_amber 44 amber_amber 6
delta indigo ember birch cobalt delta fable juniper fable ember ember amber amber amber
amber_delta 13 delta_harbor 24 birch_birch 103 delta_indigo 88 delta_amber 92 birch_amber 40 indigo_indigo 86 birch_juniper 1
amber delta delta harbor birch birch delta indigo delta amber birch amber indigo indigo birch juniper
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004586
qwen/qwen3.7-plus
awkweave-0004587
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)}
hana delta 12 failed alice grove 115 failed hana grove 110 pending eli delta 93 closed lina ember 83 ready lina indigo 74 active dina delta 59 failed chen amber 74 failed eli indigo 60 pending chen harbor 100 closed
failed 12 delta hana failed 115 grove alice pending 110 grove hana closed 93 delta eli ready 83 ember lina active 74 indigo lina failed 59 delta dina failed 74 amber chen pending 60 indigo eli closed 100 harbor chen
kim juniper 43 active dina indigo 61 pending eli fable 57 paused ivan amber 3 paused gus cobalt 98 failed hana cobalt 96 closed bruno indigo 79 ready
active 43 juniper kim pending 61 indigo dina paused 57 fable eli paused 3 amber ivan failed 98 cobalt gus closed 96 cobalt hana ready 79 indigo bruno
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004587-p1
Reverse the sequence of fields for every line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
hana delta 12 failed alice grove 115 failed hana grove 110 pending eli delta 93 closed lina ember 83 ready lina indigo 74 active dina delta 59 failed chen amber 74 failed eli indigo 60 pending chen harbor 100 closed
failed 12 delta hana failed 115 grove alice pending 110 grove hana closed 93 delta eli ready 83 ember lina active 74 indigo lina failed 59 delta dina failed 74 amber chen pending 60 indigo eli closed 100 harbor chen
kim juniper 43 active dina indigo 61 pending eli fable 57 paused ivan amber 3 paused gus cobalt 98 failed hana cobalt 96 closed bruno indigo 79 ready
active 43 juniper kim pending 61 indigo dina paused 57 fable eli paused 3 amber ivan failed 98 cobalt gus closed 96 cobalt hana ready 79 indigo bruno
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004587
qwen/qwen3.7-plus
awkweave-0004588
Print the number of whitespace-separated fields on each line.
{print NF}
farah indigo 30 ready bruno delta 19 pending eli grove 65 ready dina birch 73 active jules birch 93 pending gus harbor 54 active hana harbor 9 pending eli birch 22 paused alice cobalt 54 failed jules delta 100 closed
4 4 4 4 4 4 4 4 4 4
dina juniper 37 failed alice birch 22 active dina birch 9 paused farah harbor 111 active chen delta 50 pending bruno grove 90 pending dina ember 32 ready jules juniper 27 paused jules indigo 116 closed lina amber 13 active
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004588-p1
Output the count of whitespace-delimited fields for each line.
{print NF}
farah indigo 30 ready bruno delta 19 pending eli grove 65 ready dina birch 73 active jules birch 93 pending gus harbor 54 active hana harbor 9 pending eli birch 22 paused alice cobalt 54 failed jules delta 100 closed
4 4 4 4 4 4 4 4 4 4
dina juniper 37 failed alice birch 22 active dina birch 9 paused farah harbor 111 active chen delta 50 pending bruno grove 90 pending dina ember 32 ready jules juniper 27 paused jules indigo 116 closed lina amber 13 active
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004588
qwen/qwen3.7-plus
awkweave-0004589
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]]}
dina gamma 77 eli alpha 16 farah gamma 46 hana alpha 93 bruno gamma 0 jules delta 88 ivan gamma 14 chen beta 117
gamma 4 alpha 2 delta 1 beta 1
jules beta 83 chen beta 22 kim alpha 58 bruno gamma 112 kim gamma 22 bruno beta 110 ivan alpha 84 chen gamma 2
beta 3 alpha 2 gamma 3
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004589-p1
Tally the occurrences of each value in the second column and print each value with its count, ordered by first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
dina gamma 77 eli alpha 16 farah gamma 46 hana alpha 93 bruno gamma 0 jules delta 88 ivan gamma 14 chen beta 117
gamma 4 alpha 2 delta 1 beta 1
jules beta 83 chen beta 22 kim alpha 58 bruno gamma 112 kim gamma 22 bruno beta 110 ivan alpha 84 chen gamma 2
beta 3 alpha 2 gamma 3
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004589
qwen/qwen3.7-plus
awkweave-0004600
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 23 0 lina 8 2 bruno 23 11 hana 15 14 bruno 13 11 hana 15 25 eli 30 20
lina 4.00 bruno 2.09 hana 1.07 bruno 1.18 hana 0.60 eli 1.50
lina 3 0 chen 25 16 ivan 15 6 bruno 6 28 dina 17 16 ivan 20 29 gus 17 1 gus 16 28 ivan 8 13
chen 1.56 ivan 2.50 bruno 0.21 dina 1.06 ivan 0.69 gus 17.00 gus 0.57 ivan 0.62
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004600-p1
For every row where column 3 is not zero, output column 1 and the result of column 2 divided by column 3 formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
hana 23 0 lina 8 2 bruno 23 11 hana 15 14 bruno 13 11 hana 15 25 eli 30 20
lina 4.00 bruno 2.09 hana 1.07 bruno 1.18 hana 0.60 eli 1.50
lina 3 0 chen 25 16 ivan 15 6 bruno 6 28 dina 17 16 ivan 20 29 gus 17 1 gus 16 28 ivan 8 13
chen 1.56 ivan 2.50 bruno 0.21 dina 1.06 ivan 0.69 gus 17.00 gus 0.57 ivan 0.62
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004600
qwen/qwen3.7-plus
awkweave-0004601
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
lina delta 15 bruno fable 30 bruno juniper 8 farah indigo 12 gus harbor 29 kim cobalt 11 chen indigo 9 chen ember 17 bruno juniper 3
bruno fable 30 gus harbor 29 chen ember 17
dina birch 16 bruno grove 25 ivan fable 29 chen indigo 22 eli delta 13 chen delta 12
ivan fable 29 bruno grove 25 chen indigo 22
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004601-p1
Display the three full records with the largest values in column 3, sorted in descending order, while maintaining the original input sequence for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
lina delta 15 bruno fable 30 bruno juniper 8 farah indigo 12 gus harbor 29 kim cobalt 11 chen indigo 9 chen ember 17 bruno juniper 3
bruno fable 30 gus harbor 29 chen ember 17
dina birch 16 bruno grove 25 ivan fable 29 chen indigo 22 eli delta 13 chen delta 12
ivan fable 29 bruno grove 25 chen indigo 22
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004601
qwen/qwen3.7-plus
awkweave-0004602
Select the 5th and 4th fields in that order.
{print $5, $4}
amber fable 94 24 27 2 grove juniper 103 104 105 22 grove cobalt 96 6 103 21 delta fable 55 104 12 1 birch fable 40 55 84 38 indigo cobalt 13 62 31 77
27 24 105 104 103 6 12 104 84 55 31 62
birch delta 115 29 71 21 indigo juniper 51 74 80 60 fable juniper 99 83 82 49 birch indigo 70 34 42 92 juniper juniper 119 111 8 3 ember delta 94 75 116 51 delta fable 42 65 107 38 harbor harbor 86 42 23 57 delta delta 85 20 42 25
71 29 80 74 82 83 42 34 8 111 116 75 107 65 23 42 42 20
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004602-p1
Extract the 5th field followed by the 4th field.
{print $5, $4}
amber fable 94 24 27 2 grove juniper 103 104 105 22 grove cobalt 96 6 103 21 delta fable 55 104 12 1 birch fable 40 55 84 38 indigo cobalt 13 62 31 77
27 24 105 104 103 6 12 104 84 55 31 62
birch delta 115 29 71 21 indigo juniper 51 74 80 60 fable juniper 99 83 82 49 birch indigo 70 34 42 92 juniper juniper 119 111 8 3 ember delta 94 75 116 51 delta fable 42 65 107 38 harbor harbor 86 42 23 57 delta delta 85 20 42 25
71 29 80 74 82 83 42 34 8 111 116 75 107 65 23 42 42 20
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004602
qwen/qwen3.7-plus
awkweave-0004603
Print the last field of every input line.
{print $NF}
47 chen farah ivan harbor 47 ivan lina kim indigo 101 dina farah kim delta 79 bruno alice hana harbor 33 eli gus gus juniper 74 chen kim lina grove 34 eli bruno lina indigo 26 ivan kim alice birch
harbor indigo delta harbor juniper grove indigo birch
84 eli dina ivan indigo 8 alice jules dina amber 51 chen hana chen fable 116 kim kim jules cobalt 26 lina eli ivan amber 46 alice dina kim cobalt 81 bruno kim ivan fable 85 kim dina hana grove 106 gus ivan kim grove
indigo amber fable cobalt amber cobalt fable grove grove
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004603-p1
Output the final field from each line of input.
{print $NF}
47 chen farah ivan harbor 47 ivan lina kim indigo 101 dina farah kim delta 79 bruno alice hana harbor 33 eli gus gus juniper 74 chen kim lina grove 34 eli bruno lina indigo 26 ivan kim alice birch
harbor indigo delta harbor juniper grove indigo birch
84 eli dina ivan indigo 8 alice jules dina amber 51 chen hana chen fable 116 kim kim jules cobalt 26 lina eli ivan amber 46 alice dina kim cobalt 81 bruno kim ivan fable 85 kim dina hana grove 106 gus ivan kim grove
indigo amber fable cobalt amber cobalt fable grove grove
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004603
qwen/qwen3.7-plus
awkweave-0004604
Print the complete records where column 2 is at least 72.
$2 >= 72
active 88 active birch active 65 failed harbor pending 16 failed harbor pending 9 paused delta active 6 failed amber failed 3 active cobalt paused 81 failed cobalt failed 20 active ember active 6 failed cobalt active 106 failed cobalt
active 88 active birch paused 81 failed cobalt active 106 failed cobalt
failed 114 failed fable failed 45 closed grove failed 9 closed grove failed 45 paused indigo ready 110 closed juniper pending 32 pending grove failed 106 pending juniper closed 87 closed ember paused 92 pending juniper ready 37 active fable
failed 114 failed fable ready 110 closed juniper failed 106 pending juniper closed 87 closed ember paused 92 pending juniper
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004604-p1
Print the entire record for any row where the value in column 2 is greater than or equal to 72.
$2 >= 72
active 88 active birch active 65 failed harbor pending 16 failed harbor pending 9 paused delta active 6 failed amber failed 3 active cobalt paused 81 failed cobalt failed 20 active ember active 6 failed cobalt active 106 failed cobalt
active 88 active birch paused 81 failed cobalt active 106 failed cobalt
failed 114 failed fable failed 45 closed grove failed 9 closed grove failed 45 paused indigo ready 110 closed juniper pending 32 pending grove failed 106 pending juniper closed 87 closed ember paused 92 pending juniper ready 37 active fable
failed 114 failed fable ready 110 closed juniper failed 106 pending juniper closed 87 closed ember paused 92 pending juniper
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004604
qwen/qwen3.7-plus
awkweave-0004605
Show whole lines whose 2nd field is between 4 and 26, inclusive.
$2 >= 4 && $2 <= 26
failed 25 kim chen active 3 eli ivan pending 7 dina lina failed 13 jules hana ready 28 ivan jules active 7 gus dina pending 27 gus chen pending 9 kim alice active 3 bruno chen
failed 25 kim chen pending 7 dina lina failed 13 jules hana active 7 gus dina pending 9 kim alice
paused 30 alice bruno closed 30 kim kim ready 22 hana kim closed 30 dina lina closed 13 eli lina paused 21 eli ivan paused 23 dina eli active 24 ivan eli paused 15 hana hana pending 8 ivan farah
ready 22 hana kim closed 13 eli lina paused 21 eli ivan paused 23 dina eli active 24 ivan eli paused 15 hana hana pending 8 ivan farah
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004605-p1
Display complete lines where the second field falls within the inclusive range of 4 to 26.
$2 >= 4 && $2 <= 26
failed 25 kim chen active 3 eli ivan pending 7 dina lina failed 13 jules hana ready 28 ivan jules active 7 gus dina pending 27 gus chen pending 9 kim alice active 3 bruno chen
failed 25 kim chen pending 7 dina lina failed 13 jules hana active 7 gus dina pending 9 kim alice
paused 30 alice bruno closed 30 kim kim ready 22 hana kim closed 30 dina lina closed 13 eli lina paused 21 eli ivan paused 23 dina eli active 24 ivan eli paused 15 hana hana pending 8 ivan farah
ready 22 hana kim closed 13 eli lina paused 21 eli ivan paused 23 dina eli active 24 ivan eli paused 15 hana hana pending 8 ivan farah
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004605
qwen/qwen3.7-plus
awkweave-0004606
Print column 3 only for rows where column 1 is exactly pending.
$1 == "pending"{print $3}
pending 20 bruno amber pending 87 bruno harbor closed 6 dina indigo pending 52 kim harbor failed 100 ivan birch active 59 ivan juniper pending 91 alice birch
bruno bruno kim alice
failed 120 lina fable ready 54 kim cobalt paused 120 kim juniper paused 88 jules juniper closed 79 eli amber active 116 alice cobalt active 36 alice grove ready 15 chen delta closed 107 alice amber
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004606-p1
Output only column 3 for rows where column 1 matches the exact string 'pending'.
$1 == "pending"{print $3}
pending 20 bruno amber pending 87 bruno harbor closed 6 dina indigo pending 52 kim harbor failed 100 ivan birch active 59 ivan juniper pending 91 alice birch
bruno bruno kim alice
failed 120 lina fable ready 54 kim cobalt paused 120 kim juniper paused 88 jules juniper closed 79 eli amber active 116 alice cobalt active 36 alice grove ready 15 chen delta closed 107 alice amber
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004606
qwen/qwen3.7-plus
awkweave-0004607
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
delta INFO 28 delta WARN 9 indigo INFO 114 birch ERROR 7 fable DEBUG 88 ember DEBUG 29 delta WARN 92 birch INFO 113 delta INFO 63 juniper ERROR 53
birch ERROR 7 juniper ERROR 53
amber DEBUG 111 amber WARN 50 juniper WARN 50 cobalt DEBUG 60 grove DEBUG 2 juniper ERROR 16
juniper ERROR 16
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004607-p1
Print all fields from any line where the second field starts with the prefix 'ERROR'.
$2 ~ /^ERROR/
delta INFO 28 delta WARN 9 indigo INFO 114 birch ERROR 7 fable DEBUG 88 ember DEBUG 29 delta WARN 92 birch INFO 113 delta INFO 63 juniper ERROR 53
birch ERROR 7 juniper ERROR 53
amber DEBUG 111 amber WARN 50 juniper WARN 50 cobalt DEBUG 60 grove DEBUG 2 juniper ERROR 16
juniper ERROR 16
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004607
qwen/qwen3.7-plus
awkweave-0004608
Print every line except those containing the exact text amber.
$0 !~ /amber/
fable 13 ready harbor 10 closed cobalt 91 closed delta 37 paused delta 65 active delta 107 ready amber 104 ready amber 999 active
fable 13 ready harbor 10 closed cobalt 91 closed delta 37 paused delta 65 active delta 107 ready
fable 107 paused grove 58 ready indigo 111 active birch 47 active harbor 21 ready delta 27 paused amber 999 active
fable 107 paused grove 58 ready indigo 111 active birch 47 active harbor 21 ready delta 27 paused
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004608-p1
Print every line that does not contain the exact substring 'amber'.
$0 !~ /amber/
fable 13 ready harbor 10 closed cobalt 91 closed delta 37 paused delta 65 active delta 107 ready amber 104 ready amber 999 active
fable 13 ready harbor 10 closed cobalt 91 closed delta 37 paused delta 65 active delta 107 ready
fable 107 paused grove 58 ready indigo 111 active birch 47 active harbor 21 ready delta 27 paused amber 999 active
fable 107 paused grove 58 ready indigo 111 active birch 47 active harbor 21 ready delta 27 paused
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004608
qwen/qwen3.7-plus
awkweave-0004609
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
hana indigo 58 jules harbor 31 bruno fable 81 ivan indigo 45 lina harbor 103 kim fable 0
jules harbor 31 bruno fable 81
hana cobalt 60 ivan birch 46 eli ember 68 bruno juniper 21 eli harbor 62 dina cobalt 114 dina birch 35 kim birch 91 jules delta 36
ivan birch 46 eli ember 68
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004609-p1
Output lines 2 through 3, inclusive.
NR >= 2 && NR <= 3
hana indigo 58 jules harbor 31 bruno fable 81 ivan indigo 45 lina harbor 103 kim fable 0
jules harbor 31 bruno fable 81
hana cobalt 60 ivan birch 46 eli ember 68 bruno juniper 21 eli harbor 62 dina cobalt 114 dina birch 35 kim birch 91 jules delta 36
ivan birch 46 eli ember 68
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004609
qwen/qwen3.7-plus
awkweave-0004610
Output only the first 5 records.
NR <= 5
eli 69 ember bruno 94 indigo eli 37 amber farah 0 harbor dina 114 cobalt bruno 114 amber ivan 95 delta kim 64 fable
eli 69 ember bruno 94 indigo eli 37 amber farah 0 harbor dina 114 cobalt
ivan 10 birch kim 29 juniper dina 90 ember chen 45 grove jules 104 cobalt eli 118 birch hana 13 amber kim 107 amber
ivan 10 birch kim 29 juniper dina 90 ember chen 45 grove jules 104 cobalt
first_n
1
train
original-grammar
CC-BY-4.0
null
null