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-0018550-p1
Output the count of whitespace-delimited fields present on every line.
{print NF}
dina amber 115 closed dina indigo 20 paused chen birch 22 failed bruno ember 29 paused kim amber 94 pending gus indigo 48 pending
4 4 4 4 4 4
alice birch 34 pending bruno cobalt 88 pending chen fable 67 pending alice harbor 118 ready lina amber 31 paused jules ember 2 closed chen delta 3 ready chen juniper 93 ready
4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018550
qwen/qwen3.7-plus
awkweave-0018551
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
kim delta 95 alice delta 36 kim alpha 36 chen delta 3 dina alpha 12 eli alpha 29 lina gamma 16
delta 3 alpha 3 gamma 1
alice beta 111 chen gamma 118 bruno beta 16 ivan beta 31 gus gamma 57 farah beta 11 gus gamma 25 eli alpha 113 farah beta 104
beta 5 gamma 3 alpha 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018551-p1
Tally the number of records for each distinct value in column 2, listing each value and its frequency in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
kim delta 95 alice delta 36 kim alpha 36 chen delta 3 dina alpha 12 eli alpha 29 lina gamma 16
delta 3 alpha 3 gamma 1
alice beta 111 chen gamma 118 bruno beta 16 ivan beta 31 gus gamma 57 farah beta 11 gus gamma 25 eli alpha 113 farah beta 104
beta 5 gamma 3 alpha 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018551
qwen/qwen3.7-plus
awkweave-0018552
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]]}
jules delta 18 bruno beta 24 farah delta 23 kim alpha 6 hana beta 8 hana delta 12 gus beta 18 lina delta 8
delta 61 beta 50 alpha 6
eli alpha 19 kim gamma 2 chen delta 6 eli delta 4 hana alpha 18 jules gamma 17 bruno beta 16 gus gamma 29
alpha 37 gamma 48 delta 10 beta 16
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018552-p1
Calculate the sum of column 3 grouped by categories in column 2, presenting the results in the order of the category's 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]]}
jules delta 18 bruno beta 24 farah delta 23 kim alpha 6 hana beta 8 hana delta 12 gus beta 18 lina delta 8
delta 61 beta 50 alpha 6
eli alpha 19 kim gamma 2 chen delta 6 eli delta 4 hana alpha 18 jules gamma 17 bruno beta 16 gus gamma 29
alpha 37 gamma 48 delta 10 beta 16
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018552
qwen/qwen3.7-plus
awkweave-0018553
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
delta harbor 39 alpha grove 8 delta ember 61 delta cobalt 74 alpha ember 118 alpha harbor 59 gamma harbor 95 beta amber 26
delta 3 alpha 3
beta indigo 59 alpha harbor 70 gamma indigo 84 alpha amber 11 beta harbor 1 alpha grove 91 alpha ember 89 beta ember 9 alpha harbor 19 gamma delta 44
beta 3 alpha 5 gamma 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018553-p1
List each duplicate value from column 1 along with its occurrence count, sorted by the order of 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]]}
delta harbor 39 alpha grove 8 delta ember 61 delta cobalt 74 alpha ember 118 alpha harbor 59 gamma harbor 95 beta amber 26
delta 3 alpha 3
beta indigo 59 alpha harbor 70 gamma indigo 84 alpha amber 11 beta harbor 1 alpha grove 91 alpha ember 89 beta ember 9 alpha harbor 19 gamma delta 44
beta 3 alpha 5 gamma 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018553
qwen/qwen3.7-plus
awkweave-0018554
The first row is a header. Print the state column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
region display_name record_id state r001 jules 29 paused r002 alice 1 pending r003 dina 20 paused r004 ivan 28 pending r005 ivan 2 failed r006 dina 19 ready r007 jules 11 failed r008 kim 26 paused r009 hana 6 paused
paused pending paused pending failed ready failed paused paused
region display_name record_id state r001 hana 10 closed r002 eli 29 pending r003 farah 6 failed r004 chen 18 pending r005 hana 7 ready r006 ivan 8 paused r007 chen 28 pending
closed pending failed pending ready paused pending
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018554-p1
Skip the header row and output the state column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
region display_name record_id state r001 jules 29 paused r002 alice 1 pending r003 dina 20 paused r004 ivan 28 pending r005 ivan 2 failed r006 dina 19 ready r007 jules 11 failed r008 kim 26 paused r009 hana 6 paused
paused pending paused pending failed ready failed paused paused
region display_name record_id state r001 hana 10 closed r002 eli 29 pending r003 farah 6 failed r004 chen 18 pending r005 hana 7 ready r006 ivan 8 paused r007 chen 28 pending
closed pending failed pending ready paused pending
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018554
qwen/qwen3.7-plus
awkweave-0018555
The first row is a header. Print display_name for data rows whose score is greater than 20.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>20{print $h["display_name"]}
record_id display_name score state r001 farah 30 paused r002 eli 2 active r003 bruno 30 pending r004 chen 7 failed r005 jules 23 ready r006 alice 5 failed r007 dina 8 closed
farah bruno jules
record_id display_name score state r001 chen 8 ready r002 lina 29 failed r003 lina 2 paused r004 chen 12 active r005 kim 10 ready r006 eli 20 ready r007 farah 23 ready r008 alice 26 paused
lina farah alice
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018555-p1
Ignore the header line and print the display_name field for records where the score is strictly greater than 20.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>20{print $h["display_name"]}
record_id display_name score state r001 farah 30 paused r002 eli 2 active r003 bruno 30 pending r004 chen 7 failed r005 jules 23 ready r006 alice 5 failed r007 dina 8 closed
farah bruno jules
record_id display_name score state r001 chen 8 ready r002 lina 29 failed r003 lina 2 paused r004 chen 12 active r005 kim 10 ready r006 eli 20 ready r007 farah 23 ready r008 alice 26 paused
lina farah alice
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018555
qwen/qwen3.7-plus
awkweave-0018556
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
farah 2 closed lina 20 closed ivan 21 active farah 28 active bruno 1 ready eli 21 pending alice 8 failed hana 30 pending jules 9 closed alice 13 pending
farah lina ivan farah bruno eli alice hana jules alice
bruno 29 paused kim 23 ready eli 7 active hana 28 ready hana 25 closed lina 1 failed eli 22 failed
bruno kim eli hana hana lina eli
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018556-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
farah 2 closed lina 20 closed ivan 21 active farah 28 active bruno 1 ready eli 21 pending alice 8 failed hana 30 pending jules 9 closed alice 13 pending
farah lina ivan farah bruno eli alice hana jules alice
bruno 29 paused kim 23 ready eli 7 active hana 28 ready hana 25 closed lina 1 failed eli 22 failed
bruno kim eli hana hana lina eli
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0018556
qwen/qwen3.7-plus
awkweave-0018557
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 10.
BEGIN{FS=OFS=","}$2>10{print $1}
eli,25,failed jules,4,closed alice,1,pending ivan,10,ready jules,15,active eli,21,paused ivan,6,closed eli,21,active
eli jules eli eli
jules,21,active alice,9,failed bruno,16,ready ivan,15,paused dina,7,pending ivan,26,pending bruno,17,ready bruno,10,active gus,2,failed lina,24,ready
jules bruno ivan ivan bruno lina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018557-p1
Process simple CSV data without quoted commas; print the first column only if the second column value is greater than 10.
BEGIN{FS=OFS=","}$2>10{print $1}
eli,25,failed jules,4,closed alice,1,pending ivan,10,ready jules,15,active eli,21,paused ivan,6,closed eli,21,active
eli jules eli eli
jules,21,active alice,9,failed bruno,16,ready ivan,15,paused dina,7,pending ivan,26,pending bruno,17,ready bruno,10,active gus,2,failed lina,24,ready
jules bruno ivan ivan bruno lina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018557
qwen/qwen3.7-plus
awkweave-0018558
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina indigo 42 gus cobalt 82 gus harbor 98 ivan ember 83 ivan grove 35 lina amber 39 gus birch 115 lina grove 41
lina indigo 42 gus cobalt 82 gus harbor 98 ivan ember 83 ivan grove 35 lina amber 39 gus birch 115 lina grove 41
chen amber 9 farah ember 81 ivan ember 19 lina amber 73 ivan indigo 92 kim birch 70 ivan juniper 77 lina ember 31 lina birch 5
chen amber 9 farah ember 81 ivan ember 19 lina amber 73 ivan indigo 92 kim birch 70 ivan juniper 77 lina ember 31 lina birch 5
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018558-p1
Remove leading and trailing whitespace, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
lina indigo 42 gus cobalt 82 gus harbor 98 ivan ember 83 ivan grove 35 lina amber 39 gus birch 115 lina grove 41
lina indigo 42 gus cobalt 82 gus harbor 98 ivan ember 83 ivan grove 35 lina amber 39 gus birch 115 lina grove 41
chen amber 9 farah ember 81 ivan ember 19 lina amber 73 ivan indigo 92 kim birch 70 ivan juniper 77 lina ember 31 lina birch 5
chen amber 9 farah ember 81 ivan ember 19 lina amber 73 ivan indigo 92 kim birch 70 ivan juniper 77 lina ember 31 lina birch 5
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018558
qwen/qwen3.7-plus
awkweave-0018559
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
kim grove 40 active eli fable 9 active dina amber 18 ready gus fable 9 ready hana cobalt 0 paused dina cobalt 21 failed eli birch 118 pending hana indigo 67 failed chen harbor 115 active
chen harbor 115 active
gus harbor 67 active jules grove 33 paused kim cobalt 76 failed bruno delta 104 failed farah harbor 77 closed bruno grove 74 pending chen birch 60 pending hana fable 97 paused
bruno delta 104 failed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018559-p1
Identify and print the longest line from the input; in case of a tie in length, select the first occurrence.
{if(length($0)>length(best))best=$0}END{print best}
kim grove 40 active eli fable 9 active dina amber 18 ready gus fable 9 ready hana cobalt 0 paused dina cobalt 21 failed eli birch 118 pending hana indigo 67 failed chen harbor 115 active
chen harbor 115 active
gus harbor 67 active jules grove 33 paused kim cobalt 76 failed bruno delta 104 failed farah harbor 77 closed bruno grove 74 pending chen birch 60 pending hana fable 97 paused
bruno delta 104 failed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018559
qwen/qwen3.7-plus
awkweave-0018560
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
chen 86 kim 65 ivan 91 jules 70 gus 62 dina 119 jules 109 hana 12
kim 65 jules 70 dina 119 hana 12
jules 63 gus 15 alice 52 ivan 28 gus 67 eli 91 gus 38 farah 99 ivan 22 lina 81
gus 15 ivan 28 eli 91 farah 99 lina 81
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018560-p1
Output every even-numbered line, starting from line 2 (i.e., lines 2, 4, 6, etc.).
NR%2==0
chen 86 kim 65 ivan 91 jules 70 gus 62 dina 119 jules 109 hana 12
kim 65 jules 70 dina 119 hana 12
jules 63 gus 15 alice 52 ivan 28 gus 67 eli 91 gus 38 farah 99 ivan 22 lina 81
gus 15 ivan 28 eli 91 farah 99 lina 81
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018560
qwen/qwen3.7-plus
awkweave-0018561
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta indigo 107 beta fable 81 gamma indigo 18 delta delta 18 alpha grove 95 beta indigo 21 delta amber 57 alpha delta 64 gamma juniper 17
4
gamma juniper 68 delta amber 120 beta grove 15 delta cobalt 29 gamma grove 1 gamma delta 22 beta grove 108
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018561-p1
Calculate the number of unique values in the first column and output only that count.
{if(!seen[$1]++)n++}END{print n+0}
beta indigo 107 beta fable 81 gamma indigo 18 delta delta 18 alpha grove 95 beta indigo 21 delta amber 57 alpha delta 64 gamma juniper 17
4
gamma juniper 68 delta amber 120 beta grove 15 delta cobalt 29 gamma grove 1 gamma delta 22 beta grove 108
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018561
qwen/qwen3.7-plus
awkweave-0018562
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}
lina 8 0 kim 12 27 eli 4 3 lina 12 27 jules 25 26 bruno 26 30 alice 28 23 chen 29 17 lina 14 14
kim 0.44 eli 1.33 lina 0.44 jules 0.96 bruno 0.87 alice 1.22 chen 1.71 lina 1.00
farah 11 0 bruno 23 6 ivan 7 5 lina 8 5 dina 23 8 chen 29 6 bruno 30 9
bruno 3.83 ivan 1.40 lina 1.60 dina 2.88 chen 4.83 bruno 3.33
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018562-p1
For each row where the third column is not zero, print 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}
lina 8 0 kim 12 27 eli 4 3 lina 12 27 jules 25 26 bruno 26 30 alice 28 23 chen 29 17 lina 14 14
kim 0.44 eli 1.33 lina 0.44 jules 0.96 bruno 0.87 alice 1.22 chen 1.71 lina 1.00
farah 11 0 bruno 23 6 ivan 7 5 lina 8 5 dina 23 8 chen 29 6 bruno 30 9
bruno 3.83 ivan 1.40 lina 1.60 dina 2.88 chen 4.83 bruno 3.33
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018562
qwen/qwen3.7-plus
awkweave-0018563
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]}
eli indigo 12 chen delta 28 chen birch 1 eli delta 7 bruno amber 22 ivan birch 27 alice juniper 12 jules delta 19 dina harbor 20
chen delta 28 ivan birch 27 bruno amber 22
kim delta 17 hana juniper 16 chen birch 28 eli amber 17 kim grove 21 jules harbor 11 bruno amber 15 chen ember 18 hana grove 5 farah delta 18
chen birch 28 kim grove 21 chen ember 18
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018563-p1
Select the top three records with 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]}
eli indigo 12 chen delta 28 chen birch 1 eli delta 7 bruno amber 22 ivan birch 27 alice juniper 12 jules delta 19 dina harbor 20
chen delta 28 ivan birch 27 bruno amber 22
kim delta 17 hana juniper 16 chen birch 28 eli amber 17 kim grove 21 jules harbor 11 bruno amber 15 chen ember 18 hana grove 5 farah delta 18
chen birch 28 kim grove 21 chen ember 18
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018563
qwen/qwen3.7-plus
awkweave-0018564
For each line, output fields 4 and 2, in that order.
{print $4, $2}
closed ember ready ember active indigo closed fable failed cobalt active birch ready cobalt ready harbor paused harbor ready delta pending grove ready ember closed juniper ready indigo paused juniper closed indigo
ember ember fable indigo birch cobalt harbor cobalt delta harbor ember grove indigo juniper indigo juniper
paused amber ready delta closed birch closed harbor ready ember closed cobalt active fable ready juniper pending delta ready fable pending fable pending indigo ready cobalt paused indigo
delta amber harbor birch cobalt ember juniper fable fable delta indigo fable indigo cobalt
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018564-p1
For every line, print the fourth field followed by the second field.
{print $4, $2}
closed ember ready ember active indigo closed fable failed cobalt active birch ready cobalt ready harbor paused harbor ready delta pending grove ready ember closed juniper ready indigo paused juniper closed indigo
ember ember fable indigo birch cobalt harbor cobalt delta harbor ember grove indigo juniper indigo juniper
paused amber ready delta closed birch closed harbor ready ember closed cobalt active fable ready juniper pending delta ready fable pending fable pending indigo ready cobalt paused indigo
delta amber harbor birch cobalt ember juniper fable fable delta indigo fable indigo cobalt
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018564
qwen/qwen3.7-plus
awkweave-0018565
Print the last field of every input line.
{print $NF}
closed alice indigo gus pending closed kim cobalt farah pending active eli birch kim paused failed gus ember farah failed active dina delta hana paused active farah juniper chen closed closed farah juniper dina pending closed bruno birch farah ready
pending pending paused failed paused closed pending ready
ready eli ember kim failed active alice birch kim paused pending bruno indigo bruno active paused eli cobalt kim pending active eli amber chen active failed eli birch chen paused active hana ember jules ready active farah grove bruno failed pending farah ember lina closed
failed paused active pending active paused ready failed closed
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018565-p1
Output the final field from each line of input.
{print $NF}
closed alice indigo gus pending closed kim cobalt farah pending active eli birch kim paused failed gus ember farah failed active dina delta hana paused active farah juniper chen closed closed farah juniper dina pending closed bruno birch farah ready
pending pending paused failed paused closed pending ready
ready eli ember kim failed active alice birch kim paused pending bruno indigo bruno active paused eli cobalt kim pending active eli amber chen active failed eli birch chen paused active hana ember jules ready active farah grove bruno failed pending farah ember lina closed
failed paused active pending active paused ready failed closed
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018565
qwen/qwen3.7-plus
awkweave-0018566
Print the complete records where column 1 is less than 46.
$1 < 46
23 active alice ready eli 15 pending lina ready eli 118 pending alice pending farah 109 paused ivan ready dina 71 closed farah failed kim 76 ready jules active hana 15 failed bruno closed jules 15 ready chen ready kim
23 active alice ready eli 15 pending lina ready eli 15 failed bruno closed jules 15 ready chen ready kim
77 ready eli failed kim 76 pending eli paused hana 69 paused ivan paused kim 98 active dina ready gus 9 ready gus closed ivan 0 active lina ready ivan 7 active farah pending bruno 51 failed farah active kim
9 ready gus closed ivan 0 active lina ready ivan 7 active farah pending bruno
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018566-p1
Output full records where the value in the first column is strictly less than 46.
$1 < 46
23 active alice ready eli 15 pending lina ready eli 118 pending alice pending farah 109 paused ivan ready dina 71 closed farah failed kim 76 ready jules active hana 15 failed bruno closed jules 15 ready chen ready kim
23 active alice ready eli 15 pending lina ready eli 15 failed bruno closed jules 15 ready chen ready kim
77 ready eli failed kim 76 pending eli paused hana 69 paused ivan paused kim 98 active dina ready gus 9 ready gus closed ivan 0 active lina ready ivan 7 active farah pending bruno 51 failed farah active kim
9 ready gus closed ivan 0 active lina ready ivan 7 active farah pending bruno
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018566
qwen/qwen3.7-plus
awkweave-0018567
Show whole lines whose 2nd field is between 3 and 27, inclusive.
$2 >= 3 && $2 <= 27
alice 8 active closed hana 26 active paused eli 6 failed active bruno 21 failed pending bruno 28 pending paused lina 24 closed paused eli 17 failed failed eli 9 active paused jules 3 active closed
alice 8 active closed hana 26 active paused eli 6 failed active bruno 21 failed pending lina 24 closed paused eli 17 failed failed eli 9 active paused jules 3 active closed
eli 7 pending paused ivan 12 ready pending kim 30 pending paused ivan 3 closed failed ivan 30 closed ready farah 5 pending ready
eli 7 pending paused ivan 12 ready pending ivan 3 closed failed farah 5 pending ready
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018567-p1
Display entire lines where the second field falls within the inclusive range of 3 to 27.
$2 >= 3 && $2 <= 27
alice 8 active closed hana 26 active paused eli 6 failed active bruno 21 failed pending bruno 28 pending paused lina 24 closed paused eli 17 failed failed eli 9 active paused jules 3 active closed
alice 8 active closed hana 26 active paused eli 6 failed active bruno 21 failed pending lina 24 closed paused eli 17 failed failed eli 9 active paused jules 3 active closed
eli 7 pending paused ivan 12 ready pending kim 30 pending paused ivan 3 closed failed ivan 30 closed ready farah 5 pending ready
eli 7 pending paused ivan 12 ready pending ivan 3 closed failed farah 5 pending ready
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018567
qwen/qwen3.7-plus
awkweave-0018568
Print column 1 only for rows where column 4 is exactly failed.
$4 == "failed"{print $1}
hana fable 80 closed jules delta 59 failed eli amber 101 active ivan cobalt 52 pending lina cobalt 74 closed hana indigo 18 pending
jules
farah cobalt 74 failed gus harbor 23 failed lina juniper 57 ready eli cobalt 101 closed eli juniper 3 paused bruno harbor 57 failed farah indigo 89 failed dina ember 67 failed
farah gus bruno farah dina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018568-p1
Extract and print only the first column for rows where the fourth column equals 'failed'.
$4 == "failed"{print $1}
hana fable 80 closed jules delta 59 failed eli amber 101 active ivan cobalt 52 pending lina cobalt 74 closed hana indigo 18 pending
jules
farah cobalt 74 failed gus harbor 23 failed lina juniper 57 ready eli cobalt 101 closed eli juniper 3 paused bruno harbor 57 failed farah indigo 89 failed dina ember 67 failed
farah gus bruno farah dina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018568
qwen/qwen3.7-plus
awkweave-0018569
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
WARN 100 delta DEBUG 34 fable WARN 31 amber INFO 10 juniper ERROR 76 indigo INFO 10 harbor ERROR 3 cobalt WARN 77 juniper
ERROR 76 indigo ERROR 3 cobalt
DEBUG 27 juniper INFO 32 birch ERROR 97 delta WARN 21 indigo DEBUG 18 indigo INFO 104 amber DEBUG 93 juniper ERROR 20 grove DEBUG 76 juniper
ERROR 97 delta ERROR 20 grove
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018569-p1
Print all fields from any line where the first field starts with the string 'ERROR'.
$1 ~ /^ERROR/
WARN 100 delta DEBUG 34 fable WARN 31 amber INFO 10 juniper ERROR 76 indigo INFO 10 harbor ERROR 3 cobalt WARN 77 juniper
ERROR 76 indigo ERROR 3 cobalt
DEBUG 27 juniper INFO 32 birch ERROR 97 delta WARN 21 indigo DEBUG 18 indigo INFO 104 amber DEBUG 93 juniper ERROR 20 grove DEBUG 76 juniper
ERROR 97 delta ERROR 20 grove
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018569
qwen/qwen3.7-plus
awkweave-0018570
Print every line except those containing the exact text grove.
$0 !~ /grove/
cobalt 2 active amber 54 closed juniper 76 failed indigo 29 ready indigo 20 failed cobalt 41 pending grove 999 active
cobalt 2 active amber 54 closed juniper 76 failed indigo 29 ready indigo 20 failed cobalt 41 pending
harbor 16 failed harbor 10 failed grove 30 failed juniper 39 ready delta 106 failed amber 107 active grove 999 active
harbor 16 failed harbor 10 failed juniper 39 ready delta 106 failed amber 107 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018570-p1
Output every line that does not contain the exact substring 'grove'.
$0 !~ /grove/
cobalt 2 active amber 54 closed juniper 76 failed indigo 29 ready indigo 20 failed cobalt 41 pending grove 999 active
cobalt 2 active amber 54 closed juniper 76 failed indigo 29 ready indigo 20 failed cobalt 41 pending
harbor 16 failed harbor 10 failed grove 30 failed juniper 39 ready delta 106 failed amber 107 active grove 999 active
harbor 16 failed harbor 10 failed juniper 39 ready delta 106 failed amber 107 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018570
qwen/qwen3.7-plus
awkweave-0018571
Print lines 3 through 4, including both endpoints.
NR >= 3 && NR <= 4
lina indigo 93 ivan juniper 58 gus harbor 82 gus birch 70 hana harbor 112 dina grove 56 dina amber 106
gus harbor 82 gus birch 70
lina ember 93 chen indigo 116 chen birch 65 lina juniper 43 jules indigo 89 kim grove 53
chen birch 65 lina juniper 43
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018571-p1
Print lines numbered 3 through 4, inclusive of both endpoints.
NR >= 3 && NR <= 4
lina indigo 93 ivan juniper 58 gus harbor 82 gus birch 70 hana harbor 112 dina grove 56 dina amber 106
gus harbor 82 gus birch 70
lina ember 93 chen indigo 116 chen birch 65 lina juniper 43 jules indigo 89 kim grove 53
chen birch 65 lina juniper 43
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018571
qwen/qwen3.7-plus
awkweave-0018572
Output only the first 3 records.
NR <= 3
kim 48 delta hana 5 ember ivan 77 birch chen 53 grove kim 108 grove hana 11 amber hana 12 birch jules 56 delta kim 3 ember
kim 48 delta hana 5 ember ivan 77 birch
kim 32 juniper farah 21 fable eli 61 juniper chen 56 grove hana 100 fable lina 4 delta gus 65 amber alice 20 amber kim 80 cobalt alice 59 fable
kim 32 juniper farah 21 fable eli 61 juniper
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018572-p1
Output only the initial 3 records from the input.
NR <= 3
kim 48 delta hana 5 ember ivan 77 birch chen 53 grove kim 108 grove hana 11 amber hana 12 birch jules 56 delta kim 3 ember
kim 48 delta hana 5 ember ivan 77 birch
kim 32 juniper farah 21 fable eli 61 juniper chen 56 grove hana 100 fable lina 4 delta gus 65 amber alice 20 amber kim 80 cobalt alice 59 fable
kim 32 juniper farah 21 fable eli 61 juniper
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018572
qwen/qwen3.7-plus
awkweave-0018573
Skip the first line and print every remaining line unchanged.
NR > 1
lina 17 amber bruno 111 fable lina 115 cobalt jules 8 juniper farah 0 birch ivan 74 birch kim 23 grove ivan 107 fable eli 45 delta
bruno 111 fable lina 115 cobalt jules 8 juniper farah 0 birch ivan 74 birch kim 23 grove ivan 107 fable eli 45 delta
gus 77 juniper jules 29 juniper eli 98 ember kim 108 fable eli 4 harbor alice 10 delta chen 63 amber eli 60 ember chen 16 juniper ivan 73 amber
jules 29 juniper eli 98 ember kim 108 fable eli 4 harbor alice 10 delta chen 63 amber eli 60 ember chen 16 juniper ivan 73 amber
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018573-p1
Ignore the first line and print all subsequent lines exactly as they appear.
NR > 1
lina 17 amber bruno 111 fable lina 115 cobalt jules 8 juniper farah 0 birch ivan 74 birch kim 23 grove ivan 107 fable eli 45 delta
bruno 111 fable lina 115 cobalt jules 8 juniper farah 0 birch ivan 74 birch kim 23 grove ivan 107 fable eli 45 delta
gus 77 juniper jules 29 juniper eli 98 ember kim 108 fable eli 4 harbor alice 10 delta chen 63 amber eli 60 ember chen 16 juniper ivan 73 amber
jules 29 juniper eli 98 ember kim 108 fable eli 4 harbor alice 10 delta chen 63 amber eli 60 ember chen 16 juniper ivan 73 amber
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018573
qwen/qwen3.7-plus
awkweave-0018574
Count how many records have ready in column 2. Print 0 if there are none.
$2 == "ready"{n++}END{print n+0}
jules active 20 ivan failed 51 hana active 104 kim active 101 ivan closed 116 dina paused 59 alice paused 101 gus paused 107
0
dina paused 93 bruno closed 96 alice closed 37 eli closed 36 hana closed 57 hana closed 1 chen ready 107
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018574-p1
Count the number of records containing 'ready' in the second column, outputting 0 if the count is zero.
$2 == "ready"{n++}END{print n+0}
jules active 20 ivan failed 51 hana active 104 kim active 101 ivan closed 116 dina paused 59 alice paused 101 gus paused 107
0
dina paused 93 bruno closed 96 alice closed 37 eli closed 36 hana closed 57 hana closed 1 chen ready 107
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018574
qwen/qwen3.7-plus
awkweave-0018575
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
amber 4 bruno delta 25 ivan juniper 17 kim harbor 26 gus amber 21 farah harbor 17 jules juniper 29 farah indigo 25 jules fable 6 lina
170
cobalt 6 alice harbor 18 dina juniper 9 gus grove 18 hana juniper 1 jules grove 3 lina cobalt 1 bruno cobalt 23 lina amber 21 chen delta 27 bruno
127
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018575-p1
Compute and display the total sum of integer values found in the second column.
{s+=$2}END{print s+0}
amber 4 bruno delta 25 ivan juniper 17 kim harbor 26 gus amber 21 farah harbor 17 jules juniper 29 farah indigo 25 jules fable 6 lina
170
cobalt 6 alice harbor 18 dina juniper 9 gus grove 18 hana juniper 1 jules grove 3 lina cobalt 1 bruno cobalt 23 lina amber 21 chen delta 27 bruno
127
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018575
qwen/qwen3.7-plus
awkweave-0018576
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
cobalt gus 13 fable hana 3 juniper jules 1 harbor dina 28 cobalt chen 13 amber bruno 11 harbor lina 9 grove gus 16 ember kim 9 amber alice 5
10.80
amber farah 23 birch dina 13 fable jules 26 indigo bruno 22 harbor gus 1 amber bruno 6 grove lina 7 indigo dina 12 grove jules 29
15.44
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018576-p1
Calculate the average of the third column and print it rounded to precisely two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
cobalt gus 13 fable hana 3 juniper jules 1 harbor dina 28 cobalt chen 13 amber bruno 11 harbor lina 9 grove gus 16 ember kim 9 amber alice 5
10.80
amber farah 23 birch dina 13 fable jules 26 indigo bruno 22 harbor gus 1 amber bruno 6 grove lina 7 indigo dina 12 grove jules 29
15.44
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018576
qwen/qwen3.7-plus
awkweave-0018577
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
fable lina 6 amber bruno 28 juniper gus 14 fable gus 28 juniper hana 21 delta jules 17 birch farah 24
6
indigo farah 8 delta farah 16 ember gus 29 grove gus 8 indigo chen 25 fable ivan 5 fable eli 19
5
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018577-p1
Identify and output the minimum numeric value present in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
fable lina 6 amber bruno 28 juniper gus 14 fable gus 28 juniper hana 21 delta jules 17 birch farah 24
6
indigo farah 8 delta farah 16 ember gus 29 grove gus 8 indigo chen 25 fable ivan 5 fable eli 19
5
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018577
qwen/qwen3.7-plus
awkweave-0018578
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
26 birch bruno 4 delta ivan 22 juniper hana 1 birch bruno 16 delta kim 8 indigo jules 25 delta chen
26
23 grove gus 9 indigo ivan 12 amber alice 29 grove alice 30 ember bruno 26 harbor ivan 10 cobalt lina
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018578-p1
Identify and output the maximum number found in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
26 birch bruno 4 delta ivan 22 juniper hana 1 birch bruno 16 delta kim 8 indigo jules 25 delta chen
26
23 grove gus 9 indigo ivan 12 amber alice 29 grove alice 30 ember bruno 26 harbor ivan 10 cobalt lina
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018578
qwen/qwen3.7-plus
awkweave-0018579
Count all input records and print the total.
END{print NR}
alice 0 jules 87 bruno 17 jules 67 ivan 88 jules 90
6
jules 112 ivan 72 dina 51 bruno 27 chen 2 lina 20 alice 116 alice 32 farah 78 jules 57
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018579-p1
Calculate the total number of input records and display the count.
END{print NR}
alice 0 jules 87 bruno 17 jules 67 ivan 88 jules 90
6
jules 112 ivan 72 dina 51 bruno 27 chen 2 lina 20 alice 116 alice 32 farah 78 jules 57
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018579
qwen/qwen3.7-plus
awkweave-0018580
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
jules amber 66 chen harbor 59 bruno grove 36 eli fable 26 bruno indigo 62 dina harbor 15 chen harbor 59 lina amber 72 jules delta 115
jules amber 66 chen harbor 59 bruno grove 36 eli fable 26 bruno indigo 62 dina harbor 15 lina amber 72 jules delta 115
farah indigo 72 hana ember 41 hana ember 0 hana ember 41 lina juniper 24 ivan juniper 84 farah cobalt 84 lina birch 41 eli juniper 93 lina birch 67
farah indigo 72 hana ember 41 hana ember 0 lina juniper 24 ivan juniper 84 farah cobalt 84 lina birch 41 eli juniper 93 lina birch 67
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018580-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
jules amber 66 chen harbor 59 bruno grove 36 eli fable 26 bruno indigo 62 dina harbor 15 chen harbor 59 lina amber 72 jules delta 115
jules amber 66 chen harbor 59 bruno grove 36 eli fable 26 bruno indigo 62 dina harbor 15 lina amber 72 jules delta 115
farah indigo 72 hana ember 41 hana ember 0 hana ember 41 lina juniper 24 ivan juniper 84 farah cobalt 84 lina birch 41 eli juniper 93 lina birch 67
farah indigo 72 hana ember 41 hana ember 0 lina juniper 24 ivan juniper 84 farah cobalt 84 lina birch 41 eli juniper 93 lina birch 67
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018580
qwen/qwen3.7-plus
awkweave-0018581
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
chen ember 110 dina juniper 18 dina indigo 17 jules amber 14 gus birch 16 lina ember 69 eli grove 44 bruno delta 79 jules juniper 87 chen birch 117
chen ember 110 dina juniper 18 dina indigo 17 jules amber 14 gus birch 16 lina ember 69 eli grove 44 bruno delta 79 jules juniper 87 chen birch 117
bruno ember 104 bruno birch 58 jules juniper 42 jules ember 56 alice cobalt 36 chen fable 41
bruno ember 104 bruno birch 58 jules juniper 42 jules ember 56 alice cobalt 36 chen fable 41
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018581-p1
Retain only the initial line for every unique value in the third column, keeping the original order intact.
!seen[$3]++
chen ember 110 dina juniper 18 dina indigo 17 jules amber 14 gus birch 16 lina ember 69 eli grove 44 bruno delta 79 jules juniper 87 chen birch 117
chen ember 110 dina juniper 18 dina indigo 17 jules amber 14 gus birch 16 lina ember 69 eli grove 44 bruno delta 79 jules juniper 87 chen birch 117
bruno ember 104 bruno birch 58 jules juniper 42 jules ember 56 alice cobalt 36 chen fable 41
bruno ember 104 bruno birch 58 jules juniper 42 jules ember 56 alice cobalt 36 chen fable 41
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018581
qwen/qwen3.7-plus
awkweave-0018582
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
kim 30 cobalt hana 9 ember bruno 1 amber alice 20 fable chen 12 juniper hana 9 amber ivan 28 delta
kim 30 hana 39 bruno 40 alice 60 chen 72 hana 81 ivan 109
eli 21 indigo hana 4 harbor ivan 11 cobalt jules 1 amber hana 6 harbor alice 19 fable
eli 21 hana 25 ivan 36 jules 37 hana 43 alice 62
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018582-p1
Output the first column alongside the cumulative sum of the second column for each record, separated by a space.
{s+=$2;print $1,s}
kim 30 cobalt hana 9 ember bruno 1 amber alice 20 fable chen 12 juniper hana 9 amber ivan 28 delta
kim 30 hana 39 bruno 40 alice 60 chen 72 hana 81 ivan 109
eli 21 indigo hana 4 harbor ivan 11 cobalt jules 1 amber hana 6 harbor alice 19 fable
eli 21 hana 25 ivan 36 jules 37 hana 43 alice 62
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018582
qwen/qwen3.7-plus
awkweave-0018583
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 13 16 ember chen 15 27 birch farah 30 11 amber gus 29 4 cobalt gus 5 14 birch jules 24 23 ember chen 22 16 ember
bruno 29 chen 42 farah 41 gus 33 gus 19 jules 47 chen 38
dina 19 10 juniper lina 11 21 grove farah 6 11 fable ivan 17 7 harbor eli 4 30 ember ivan 3 29 amber
dina 29 lina 32 farah 17 ivan 24 eli 34 ivan 32
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018583-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
bruno 13 16 ember chen 15 27 birch farah 30 11 amber gus 29 4 cobalt gus 5 14 birch jules 24 23 ember chen 22 16 ember
bruno 29 chen 42 farah 41 gus 33 gus 19 jules 47 chen 38
dina 19 10 juniper lina 11 21 grove farah 6 11 fable ivan 17 7 harbor eli 4 30 ember ivan 3 29 amber
dina 29 lina 32 farah 17 ivan 24 eli 34 ivan 32
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018583
qwen/qwen3.7-plus
awkweave-0018584
Print column 1 and pass when column 2 is at least 21; otherwise print fail.
{print $1,($2>=21?"pass":"fail")}
gus 10 hana 21 eli 5 gus 15 alice 9 ivan 19 hana 27 farah 13 ivan 23
gus fail hana pass eli fail gus fail alice fail ivan fail hana pass farah fail ivan pass
gus 18 farah 8 gus 21 alice 5 ivan 4 chen 21
gus fail farah fail gus pass alice fail ivan fail chen pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018584-p1
Output the first column; if the second column is 21 or greater, print 'pass', otherwise print 'fail'.
{print $1,($2>=21?"pass":"fail")}
gus 10 hana 21 eli 5 gus 15 alice 9 ivan 19 hana 27 farah 13 ivan 23
gus fail hana pass eli fail gus fail alice fail ivan fail hana pass farah fail ivan pass
gus 18 farah 8 gus 21 alice 5 ivan 4 chen 21
gus fail farah fail gus pass alice fail ivan fail chen pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018584
qwen/qwen3.7-plus
awkweave-0018585
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
lina delta 3 chen grove 46 gus amber 60 bruno fable 3 hana grove 46 bruno juniper 63 eli birch 20 kim delta 107 gus delta 14 jules juniper 8
DELTA GROVE AMBER FABLE GROVE JUNIPER BIRCH DELTA DELTA JUNIPER
dina juniper 100 alice birch 98 jules cobalt 84 bruno birch 72 kim birch 118 eli cobalt 17 lina fable 75 chen birch 21 alice indigo 92
JUNIPER BIRCH COBALT BIRCH BIRCH COBALT FABLE BIRCH INDIGO
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018585-p1
Transform the second column to uppercase and output only that column.
{print toupper($2)}
lina delta 3 chen grove 46 gus amber 60 bruno fable 3 hana grove 46 bruno juniper 63 eli birch 20 kim delta 107 gus delta 14 jules juniper 8
DELTA GROVE AMBER FABLE GROVE JUNIPER BIRCH DELTA DELTA JUNIPER
dina juniper 100 alice birch 98 jules cobalt 84 bruno birch 72 kim birch 118 eli cobalt 17 lina fable 75 chen birch 21 alice indigo 92
JUNIPER BIRCH COBALT BIRCH BIRCH COBALT FABLE BIRCH INDIGO
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018585
qwen/qwen3.7-plus
awkweave-0018586
From column 1, print 4 characters starting at character 1.
{print substr($1,1,4)}
juniper 93 amber 62 grove 40 grove 90 cobalt 46 grove 43 harbor 55 amber 34 juniper 50
juni ambe grov grov coba grov harb ambe juni
fable 53 harbor 73 grove 31 ember 112 grove 110 indigo 88 juniper 30 fable 55 cobalt 85 indigo 48
fabl harb grov embe grov indi juni fabl coba indi
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018586-p1
Extract and print the first 4 characters from the first column.
{print substr($1,1,4)}
juniper 93 amber 62 grove 40 grove 90 cobalt 46 grove 43 harbor 55 amber 34 juniper 50
juni ambe grov grov coba grov harb ambe juni
fable 53 harbor 73 grove 31 ember 112 grove 110 indigo 88 juniper 30 fable 55 cobalt 85 indigo 48
fabl harb grov embe grov indi juni fabl coba indi
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018586
qwen/qwen3.7-plus
awkweave-0018587
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
delta_amber 102 harbor_indigo 48 juniper_fable 113 juniper_delta 65 harbor_fable 102 juniper_grove 81 grove_grove 81 delta_amber 34
delta amber harbor indigo juniper fable juniper delta harbor fable juniper grove grove grove delta amber
delta_fable 10 cobalt_amber 59 juniper_grove 110 delta_birch 48 cobalt_birch 27 amber_grove 60 birch_grove 36
delta fable cobalt amber juniper grove delta birch cobalt birch amber grove birch grove
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018587-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
delta_amber 102 harbor_indigo 48 juniper_fable 113 juniper_delta 65 harbor_fable 102 juniper_grove 81 grove_grove 81 delta_amber 34
delta amber harbor indigo juniper fable juniper delta harbor fable juniper grove grove grove delta amber
delta_fable 10 cobalt_amber 59 juniper_grove 110 delta_birch 48 cobalt_birch 27 amber_grove 60 birch_grove 36
delta fable cobalt amber juniper grove delta birch cobalt birch amber grove birch grove
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018587
qwen/qwen3.7-plus
awkweave-0018588
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 birch 104 paused lina amber 95 active kim birch 120 failed jules delta 113 active eli indigo 65 active kim delta 60 ready lina indigo 36 ready lina juniper 86 ready chen indigo 86 paused
paused 104 birch hana active 95 amber lina failed 120 birch kim active 113 delta jules active 65 indigo eli ready 60 delta kim ready 36 indigo lina ready 86 juniper lina paused 86 indigo chen
dina delta 20 failed hana fable 14 ready lina juniper 68 failed farah fable 111 failed chen ember 88 ready dina birch 42 failed jules grove 75 ready hana ember 11 failed gus grove 57 active
failed 20 delta dina ready 14 fable hana failed 68 juniper lina failed 111 fable farah ready 88 ember chen failed 42 birch dina ready 75 grove jules failed 11 ember hana active 57 grove gus
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018588-p1
Reverse 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)}
hana birch 104 paused lina amber 95 active kim birch 120 failed jules delta 113 active eli indigo 65 active kim delta 60 ready lina indigo 36 ready lina juniper 86 ready chen indigo 86 paused
paused 104 birch hana active 95 amber lina failed 120 birch kim active 113 delta jules active 65 indigo eli ready 60 delta kim ready 36 indigo lina ready 86 juniper lina paused 86 indigo chen
dina delta 20 failed hana fable 14 ready lina juniper 68 failed farah fable 111 failed chen ember 88 ready dina birch 42 failed jules grove 75 ready hana ember 11 failed gus grove 57 active
failed 20 delta dina ready 14 fable hana failed 68 juniper lina failed 111 fable farah ready 88 ember chen failed 42 birch dina ready 75 grove jules failed 11 ember hana active 57 grove gus
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018588
qwen/qwen3.7-plus
awkweave-0018589
Print the number of whitespace-separated fields on each line.
{print NF}
alice ember 99 closed kim fable 70 closed gus cobalt 9 paused lina indigo 80 ready bruno ember 56 active gus amber 102 ready
4 4 4 4 4 4
gus grove 41 pending chen amber 57 closed hana amber 41 pending kim fable 71 ready chen birch 0 closed eli ember 120 pending farah indigo 17 failed
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018589-p1
Display the count of whitespace-delimited fields for each line.
{print NF}
alice ember 99 closed kim fable 70 closed gus cobalt 9 paused lina indigo 80 ready bruno ember 56 active gus amber 102 ready
4 4 4 4 4 4
gus grove 41 pending chen amber 57 closed hana amber 41 pending kim fable 71 ready chen birch 0 closed eli ember 120 pending farah indigo 17 failed
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018589
qwen/qwen3.7-plus
awkweave-0018600
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta harbor 28 alpha cobalt 75 beta cobalt 31 alpha delta 34 delta ember 25 gamma juniper 49 alpha birch 86 delta fable 43
4
delta birch 93 delta ember 71 alpha cobalt 9 gamma cobalt 5 alpha birch 54 gamma cobalt 58 alpha cobalt 89 alpha grove 39 gamma birch 73 beta juniper 19
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018600-p1
Calculate the number of unique entries in the first column and display just that total.
{if(!seen[$1]++)n++}END{print n+0}
beta harbor 28 alpha cobalt 75 beta cobalt 31 alpha delta 34 delta ember 25 gamma juniper 49 alpha birch 86 delta fable 43
4
delta birch 93 delta ember 71 alpha cobalt 9 gamma cobalt 5 alpha birch 54 gamma cobalt 58 alpha cobalt 89 alpha grove 39 gamma birch 73 beta juniper 19
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018600
qwen/qwen3.7-plus
awkweave-0018601
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 24 0 hana 1 23 lina 14 4 bruno 9 14 dina 30 18 ivan 28 11 chen 10 30 ivan 26 30 dina 27 2 dina 18 26
hana 0.04 lina 3.50 bruno 0.64 dina 1.67 ivan 2.55 chen 0.33 ivan 0.87 dina 13.50 dina 0.69
farah 5 0 ivan 5 1 bruno 26 10 alice 15 15 jules 22 2 jules 13 7 dina 30 23
ivan 5.00 bruno 2.60 alice 1.00 jules 11.00 jules 1.86 dina 1.30
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018601-p1
For every row where the third column is not zero, output the first and second columns along with the result of dividing the second by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
hana 24 0 hana 1 23 lina 14 4 bruno 9 14 dina 30 18 ivan 28 11 chen 10 30 ivan 26 30 dina 27 2 dina 18 26
hana 0.04 lina 3.50 bruno 0.64 dina 1.67 ivan 2.55 chen 0.33 ivan 0.87 dina 13.50 dina 0.69
farah 5 0 ivan 5 1 bruno 26 10 alice 15 15 jules 22 2 jules 13 7 dina 30 23
ivan 5.00 bruno 2.60 alice 1.00 jules 11.00 jules 1.86 dina 1.30
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018601
qwen/qwen3.7-plus
awkweave-0018602
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]}
ivan grove 10 gus indigo 10 farah grove 6 alice fable 27 eli ember 18 bruno grove 16 chen ember 11 farah amber 20
alice fable 27 farah amber 20 eli ember 18
alice grove 17 lina birch 16 ivan amber 14 jules harbor 13 gus indigo 8 farah cobalt 2 bruno juniper 7 hana juniper 27
hana juniper 27 alice grove 17 lina birch 16
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018602-p1
Display the top three records based on the highest numeric values in column 3, sorted in descending order, while maintaining the original input sequence for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
ivan grove 10 gus indigo 10 farah grove 6 alice fable 27 eli ember 18 bruno grove 16 chen ember 11 farah amber 20
alice fable 27 farah amber 20 eli ember 18
alice grove 17 lina birch 16 ivan amber 14 jules harbor 13 gus indigo 8 farah cobalt 2 bruno juniper 7 hana juniper 27
hana juniper 27 alice grove 17 lina birch 16
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018602
qwen/qwen3.7-plus
awkweave-0018603
For each line, output fields 6 and 5, in that order.
{print $6, $5}
ivan indigo 59 cobalt ivan 93 ivan birch 80 indigo gus 67 farah cobalt 88 indigo jules 109 bruno cobalt 97 cobalt lina 5 ivan ember 56 juniper alice 48 jules indigo 45 birch kim 116 kim amber 96 cobalt chen 24 ivan cobalt 109 cobalt ivan 108 gus indigo 113 juniper dina 117 eli delta 18 cobalt kim 14
93 ivan 67 gus 109 jules 5 lina 48 alice 116 kim 24 chen 108 ivan 117 dina 14 kim
alice delta 96 juniper gus 29 alice juniper 106 grove jules 31 alice amber 102 grove farah 92 jules juniper 92 harbor eli 12 jules amber 83 ember bruno 12 alice cobalt 75 grove chen 10 jules juniper 71 fable alice 108
29 gus 31 jules 92 farah 12 eli 12 bruno 10 chen 108 alice
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018603-p1
Output the sixth field followed by the fifth field for each line.
{print $6, $5}
ivan indigo 59 cobalt ivan 93 ivan birch 80 indigo gus 67 farah cobalt 88 indigo jules 109 bruno cobalt 97 cobalt lina 5 ivan ember 56 juniper alice 48 jules indigo 45 birch kim 116 kim amber 96 cobalt chen 24 ivan cobalt 109 cobalt ivan 108 gus indigo 113 juniper dina 117 eli delta 18 cobalt kim 14
93 ivan 67 gus 109 jules 5 lina 48 alice 116 kim 24 chen 108 ivan 117 dina 14 kim
alice delta 96 juniper gus 29 alice juniper 106 grove jules 31 alice amber 102 grove farah 92 jules juniper 92 harbor eli 12 jules amber 83 ember bruno 12 alice cobalt 75 grove chen 10 jules juniper 71 fable alice 108
29 gus 31 jules 92 farah 12 eli 12 bruno 10 chen 108 alice
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018603
qwen/qwen3.7-plus
awkweave-0018604
Print the last field of every input line.
{print $NF}
2 active kim paused jules 12 closed gus failed lina 74 closed bruno ready gus 9 paused eli paused alice 60 failed kim paused farah 65 pending hana closed alice 96 pending farah paused chen 59 paused eli paused hana 4 ready bruno ready ivan 57 failed hana failed farah
jules lina gus alice farah alice chen hana ivan farah
7 failed hana pending alice 100 paused dina paused alice 66 pending kim pending lina 59 active ivan pending chen 74 closed dina active farah 33 ready eli failed ivan 55 ready eli paused hana
alice alice lina chen farah ivan hana
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018604-p1
Print the final field from every line of input.
{print $NF}
2 active kim paused jules 12 closed gus failed lina 74 closed bruno ready gus 9 paused eli paused alice 60 failed kim paused farah 65 pending hana closed alice 96 pending farah paused chen 59 paused eli paused hana 4 ready bruno ready ivan 57 failed hana failed farah
jules lina gus alice farah alice chen hana ivan farah
7 failed hana pending alice 100 paused dina paused alice 66 pending kim pending lina 59 active ivan pending chen 74 closed dina active farah 33 ready eli failed ivan 55 ready eli paused hana
alice alice lina chen farah ivan hana
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018604
qwen/qwen3.7-plus
awkweave-0018605
Print the complete records where column 1 is at most 63.
$1 <= 63
107 delta paused 37 juniper failed 96 birch ready 23 juniper active 32 fable paused 106 delta failed 77 amber pending
37 juniper failed 23 juniper active 32 fable paused
84 indigo pending 83 delta closed 118 ember paused 95 ember paused 95 amber ready 59 amber pending
59 amber pending
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018605-p1
Output the full records for which the value in the first column is less than or equal to 63.
$1 <= 63
107 delta paused 37 juniper failed 96 birch ready 23 juniper active 32 fable paused 106 delta failed 77 amber pending
37 juniper failed 23 juniper active 32 fable paused
84 indigo pending 83 delta closed 118 ember paused 95 ember paused 95 amber ready 59 amber pending
59 amber pending
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018605
qwen/qwen3.7-plus
awkweave-0018606
Show whole lines whose 3rd field is between 12 and 20, inclusive.
$3 >= 12 && $3 <= 20
ivan bruno 29 birch eli jules 1 cobalt jules eli 30 fable eli gus 4 indigo gus kim 15 delta lina dina 9 fable lina eli 2 amber
gus kim 15 delta
kim gus 4 amber ivan dina 11 cobalt eli farah 14 juniper jules gus 25 harbor farah dina 18 fable chen farah 12 grove eli gus 14 ember dina dina 10 delta gus chen 18 amber
eli farah 14 juniper farah dina 18 fable chen farah 12 grove eli gus 14 ember gus chen 18 amber
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018606-p1
Display entire lines where the third field falls within the inclusive range of 12 to 20.
$3 >= 12 && $3 <= 20
ivan bruno 29 birch eli jules 1 cobalt jules eli 30 fable eli gus 4 indigo gus kim 15 delta lina dina 9 fable lina eli 2 amber
gus kim 15 delta
kim gus 4 amber ivan dina 11 cobalt eli farah 14 juniper jules gus 25 harbor farah dina 18 fable chen farah 12 grove eli gus 14 ember dina dina 10 delta gus chen 18 amber
eli farah 14 juniper farah dina 18 fable chen farah 12 grove eli gus 14 ember gus chen 18 amber
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018606
qwen/qwen3.7-plus
awkweave-0018607
Print column 4 only for rows where column 2 is exactly pending.
$2 == "pending"{print $4}
58 ready grove hana 6 pending amber eli 93 active harbor kim 17 ready birch dina 107 failed harbor jules 22 failed harbor bruno
eli
75 closed juniper farah 93 failed fable lina 63 paused indigo lina 31 active cobalt eli 100 pending indigo farah 77 ready grove ivan 22 active indigo alice 26 closed grove chen
farah
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018607-p1
Output only the fourth column for rows where the second column matches 'pending' exactly.
$2 == "pending"{print $4}
58 ready grove hana 6 pending amber eli 93 active harbor kim 17 ready birch dina 107 failed harbor jules 22 failed harbor bruno
eli
75 closed juniper farah 93 failed fable lina 63 paused indigo lina 31 active cobalt eli 100 pending indigo farah 77 ready grove ivan 22 active indigo alice 26 closed grove chen
farah
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018607
qwen/qwen3.7-plus
awkweave-0018608
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
12 DEBUG harbor 34 WARN ember 31 INFO fable 97 ERROR birch 67 WARN fable 95 ERROR ember 22 ERROR indigo 28 INFO harbor 77 INFO cobalt
97 ERROR birch 95 ERROR ember 22 ERROR indigo
73 WARN fable 72 DEBUG juniper 33 WARN grove 23 INFO juniper 66 DEBUG harbor 82 DEBUG ember 96 INFO indigo 5 INFO grove 72 INFO juniper 117 DEBUG fable
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018608-p1
Print all fields from lines where the second field starts with the string 'ERROR'.
$2 ~ /^ERROR/
12 DEBUG harbor 34 WARN ember 31 INFO fable 97 ERROR birch 67 WARN fable 95 ERROR ember 22 ERROR indigo 28 INFO harbor 77 INFO cobalt
97 ERROR birch 95 ERROR ember 22 ERROR indigo
73 WARN fable 72 DEBUG juniper 33 WARN grove 23 INFO juniper 66 DEBUG harbor 82 DEBUG ember 96 INFO indigo 5 INFO grove 72 INFO juniper 117 DEBUG fable
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018608
qwen/qwen3.7-plus
awkweave-0018609
Print every line except those containing the exact text grove.
$0 !~ /grove/
amber 38 failed birch 50 pending ember 112 pending birch 82 failed cobalt 69 failed grove 92 closed birch 112 ready grove 999 active
amber 38 failed birch 50 pending ember 112 pending birch 82 failed cobalt 69 failed birch 112 ready
juniper 119 ready birch 52 closed ember 61 paused ember 86 paused ember 41 failed delta 24 failed harbor 26 active grove 999 active
juniper 119 ready birch 52 closed ember 61 paused ember 86 paused ember 41 failed delta 24 failed harbor 26 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018609-p1
Output every line that does not contain the exact string 'grove'.
$0 !~ /grove/
amber 38 failed birch 50 pending ember 112 pending birch 82 failed cobalt 69 failed grove 92 closed birch 112 ready grove 999 active
amber 38 failed birch 50 pending ember 112 pending birch 82 failed cobalt 69 failed birch 112 ready
juniper 119 ready birch 52 closed ember 61 paused ember 86 paused ember 41 failed delta 24 failed harbor 26 active grove 999 active
juniper 119 ready birch 52 closed ember 61 paused ember 86 paused ember 41 failed delta 24 failed harbor 26 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018609
qwen/qwen3.7-plus
awkweave-0018610
Print lines 2 through 5, including both endpoints.
NR >= 2 && NR <= 5
hana juniper 56 kim harbor 108 eli grove 12 farah ember 107 lina amber 18 alice ember 119 lina fable 22 bruno juniper 9 dina ember 67 chen birch 82
kim harbor 108 eli grove 12 farah ember 107 lina amber 18
chen indigo 37 eli cobalt 6 dina cobalt 0 gus delta 42 chen indigo 51 ivan juniper 15 bruno birch 57 kim grove 85 lina fable 4
eli cobalt 6 dina cobalt 0 gus delta 42 chen indigo 51
line_range
1
train
original-grammar
CC-BY-4.0
null
null