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-0024551-p1
Output the first column along with 'pass' if the second column is 22 or greater, otherwise output 'fail'.
{print $1,($2>=22?"pass":"fail")}
dina 24 dina 3 kim 1 chen 15 dina 8 farah 28 bruno 8 lina 24 ivan 25 ivan 10
dina pass dina fail kim fail chen fail dina fail farah pass bruno fail lina pass ivan pass ivan fail
bruno 9 jules 21 hana 15 jules 16 jules 20 jules 21 hana 2 alice 12
bruno fail jules fail hana fail jules fail jules fail jules fail hana fail alice fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024551
qwen/qwen3.7-plus
awkweave-0024552
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
bruno amber 11 gus cobalt 26 ivan delta 62 bruno juniper 1 lina indigo 105 eli ember 105 gus fable 68
BRUNO GUS IVAN BRUNO LINA ELI GUS
bruno amber 105 hana fable 11 gus indigo 76 jules grove 73 jules ember 110 farah fable 63 alice birch 46
BRUNO HANA GUS JULES JULES FARAH ALICE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024552-p1
Transform the first column to uppercase and print only that transformed column.
{print toupper($1)}
bruno amber 11 gus cobalt 26 ivan delta 62 bruno juniper 1 lina indigo 105 eli ember 105 gus fable 68
BRUNO GUS IVAN BRUNO LINA ELI GUS
bruno amber 105 hana fable 11 gus indigo 76 jules grove 73 jules ember 110 farah fable 63 alice birch 46
BRUNO HANA GUS JULES JULES FARAH ALICE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024552
qwen/qwen3.7-plus
awkweave-0024553
From column 1, print 2 characters starting at character 1.
{print substr($1,1,2)}
harbor 81 birch 41 ember 26 cobalt 89 ember 60 grove 88 amber 101 indigo 115 grove 66
ha bi em co em gr am in gr
juniper 86 juniper 77 ember 32 birch 98 fable 63 juniper 23 delta 50
ju ju em bi fa ju de
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024553-p1
Extract and print the first two characters from the first column.
{print substr($1,1,2)}
harbor 81 birch 41 ember 26 cobalt 89 ember 60 grove 88 amber 101 indigo 115 grove 66
ha bi em co em gr am in gr
juniper 86 juniper 77 ember 32 birch 98 fable 63 juniper 23 delta 50
ju ju em bi fa ju de
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024553
qwen/qwen3.7-plus
awkweave-0024554
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
fable_birch 81 amber_ember 17 juniper_cobalt 101 fable_juniper 3 cobalt_juniper 58 indigo_amber 27 juniper_fable 85
fable birch amber ember juniper cobalt fable juniper cobalt juniper indigo amber juniper fable
amber_birch 91 birch_indigo 111 juniper_indigo 108 fable_ember 66 fable_harbor 76 indigo_grove 18 ember_indigo 26 ember_indigo 97 juniper_cobalt 85
amber birch birch indigo juniper indigo fable ember fable harbor indigo grove ember indigo ember indigo juniper cobalt
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024554-p1
Substitute all underscores with spaces in the first column and output the modified values.
{gsub(/_/," ",$1);print $1}
fable_birch 81 amber_ember 17 juniper_cobalt 101 fable_juniper 3 cobalt_juniper 58 indigo_amber 27 juniper_fable 85
fable birch amber ember juniper cobalt fable juniper cobalt juniper indigo amber juniper fable
amber_birch 91 birch_indigo 111 juniper_indigo 108 fable_ember 66 fable_harbor 76 indigo_grove 18 ember_indigo 26 ember_indigo 97 juniper_cobalt 85
amber birch birch indigo juniper indigo fable ember fable harbor indigo grove ember indigo ember indigo juniper cobalt
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024554
qwen/qwen3.7-plus
awkweave-0024555
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)}
jules delta 72 active lina juniper 2 pending chen amber 5 failed gus fable 86 paused kim indigo 95 pending hana ember 105 closed jules amber 43 active
active 72 delta jules pending 2 juniper lina failed 5 amber chen paused 86 fable gus pending 95 indigo kim closed 105 ember hana active 43 amber jules
gus cobalt 50 ready gus ember 116 closed hana fable 57 paused hana juniper 66 ready gus amber 27 pending eli harbor 14 ready bruno delta 119 ready bruno harbor 102 pending chen fable 10 pending
ready 50 cobalt gus closed 116 ember gus paused 57 fable hana ready 66 juniper hana pending 27 amber gus ready 14 harbor eli ready 119 delta bruno pending 102 harbor bruno pending 10 fable chen
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024555-p1
Reverse the sequence of fields for each line and display every field.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
jules delta 72 active lina juniper 2 pending chen amber 5 failed gus fable 86 paused kim indigo 95 pending hana ember 105 closed jules amber 43 active
active 72 delta jules pending 2 juniper lina failed 5 amber chen paused 86 fable gus pending 95 indigo kim closed 105 ember hana active 43 amber jules
gus cobalt 50 ready gus ember 116 closed hana fable 57 paused hana juniper 66 ready gus amber 27 pending eli harbor 14 ready bruno delta 119 ready bruno harbor 102 pending chen fable 10 pending
ready 50 cobalt gus closed 116 ember gus paused 57 fable hana ready 66 juniper hana pending 27 amber gus ready 14 harbor eli ready 119 delta bruno pending 102 harbor bruno pending 10 fable chen
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024555
qwen/qwen3.7-plus
awkweave-0024556
Print the number of whitespace-separated fields on each line.
{print NF}
chen juniper 84 paused jules ember 52 failed ivan grove 86 failed kim juniper 98 closed chen delta 103 closed chen harbor 78 active lina fable 60 failed eli birch 78 failed jules harbor 28 failed
4 4 4 4 4 4 4 4 4
bruno birch 57 pending kim grove 65 pending lina delta 55 closed hana harbor 52 ready eli amber 4 pending chen indigo 82 closed kim delta 2 closed eli juniper 14 paused kim cobalt 47 pending
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024556-p1
Output the count of whitespace-delimited fields present on each line.
{print NF}
chen juniper 84 paused jules ember 52 failed ivan grove 86 failed kim juniper 98 closed chen delta 103 closed chen harbor 78 active lina fable 60 failed eli birch 78 failed jules harbor 28 failed
4 4 4 4 4 4 4 4 4
bruno birch 57 pending kim grove 65 pending lina delta 55 closed hana harbor 52 ready eli amber 4 pending chen indigo 82 closed kim delta 2 closed eli juniper 14 paused kim cobalt 47 pending
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024556
qwen/qwen3.7-plus
awkweave-0024557
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 118 farah beta 119 hana alpha 42 chen alpha 16 kim gamma 35 lina gamma 43 gus alpha 66 hana beta 10
gamma 3 beta 2 alpha 3
bruno gamma 1 jules gamma 93 farah beta 100 bruno beta 36 gus gamma 85 chen alpha 68 bruno delta 37 chen delta 59
gamma 3 beta 2 alpha 1 delta 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024557-p1
Tally the occurrences of each unique value in the second column and print the 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 gamma 118 farah beta 119 hana alpha 42 chen alpha 16 kim gamma 35 lina gamma 43 gus alpha 66 hana beta 10
gamma 3 beta 2 alpha 3
bruno gamma 1 jules gamma 93 farah beta 100 bruno beta 36 gus gamma 85 chen alpha 68 bruno delta 37 chen delta 59
gamma 3 beta 2 alpha 1 delta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024557
qwen/qwen3.7-plus
awkweave-0024558
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
alice beta 23 alice delta 19 alice gamma 30 jules alpha 12 chen beta 27 farah alpha 16 alice alpha 14
beta 50 delta 19 gamma 30 alpha 42
bruno gamma 28 jules beta 6 ivan gamma 25 lina gamma 17 lina alpha 19 gus beta 7 hana beta 22 dina gamma 12
gamma 82 beta 35 alpha 19
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024558-p1
Calculate the sum of the third column grouped by the second column's categories, displaying 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]]}
alice beta 23 alice delta 19 alice gamma 30 jules alpha 12 chen beta 27 farah alpha 16 alice alpha 14
beta 50 delta 19 gamma 30 alpha 42
bruno gamma 28 jules beta 6 ivan gamma 25 lina gamma 17 lina alpha 19 gus beta 7 hana beta 22 dina gamma 12
gamma 82 beta 35 alpha 19
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024558
qwen/qwen3.7-plus
awkweave-0024559
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 amber 22 gamma indigo 89 alpha delta 51 gamma fable 92 delta harbor 104 beta fable 54
gamma 3
alpha fable 118 alpha indigo 76 gamma fable 73 gamma fable 1 delta fable 49 alpha fable 116 beta amber 2 delta harbor 99 beta juniper 5 alpha fable 78
alpha 4 gamma 2 delta 2 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024559-p1
List each duplicate value from the first column along with its frequency, sorted by the order of first occurrence.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma amber 22 gamma indigo 89 alpha delta 51 gamma fable 92 delta harbor 104 beta fable 54
gamma 3
alpha fable 118 alpha indigo 76 gamma fable 73 gamma fable 1 delta fable 49 alpha fable 116 beta amber 2 delta harbor 99 beta juniper 5 alpha fable 78
alpha 4 gamma 2 delta 2 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024559
qwen/qwen3.7-plus
awkweave-0024560
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"]}
state record_id region note r001 jules 8 active r002 gus 29 paused r003 ivan 4 closed r004 lina 30 paused r005 kim 1 paused r006 eli 14 paused r007 eli 29 paused
jules gus ivan lina kim eli eli
state record_id region note r001 jules 16 active r002 farah 3 ready r003 gus 8 paused r004 ivan 18 failed r005 hana 24 failed r006 gus 6 active r007 alice 6 ready r008 eli 29 paused
jules farah gus ivan hana gus alice eli
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024560-p1
Skip the header row and output the values from the record_id column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
state record_id region note r001 jules 8 active r002 gus 29 paused r003 ivan 4 closed r004 lina 30 paused r005 kim 1 paused r006 eli 14 paused r007 eli 29 paused
jules gus ivan lina kim eli eli
state record_id region note r001 jules 16 active r002 farah 3 ready r003 gus 8 paused r004 ivan 18 failed r005 hana 24 failed r006 gus 6 active r007 alice 6 ready r008 eli 29 paused
jules farah gus ivan hana gus alice eli
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024560
qwen/qwen3.7-plus
awkweave-0024561
The first row is a header. Print display_name for data rows whose score is greater than 9.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>9{print $h["display_name"]}
record_id display_name score state r001 eli 14 closed r002 hana 4 failed r003 farah 28 closed r004 alice 17 ready r005 bruno 21 pending r006 jules 16 pending
eli farah alice bruno jules
record_id display_name score state r001 gus 25 paused r002 ivan 25 active r003 farah 4 active r004 dina 27 closed r005 eli 23 paused r006 gus 26 paused r007 eli 20 active r008 lina 15 ready r009 lina 6 ready
gus ivan dina eli gus eli lina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024561-p1
Ignoring the header, print the display_name for any data row where the score is strictly greater than 9.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>9{print $h["display_name"]}
record_id display_name score state r001 eli 14 closed r002 hana 4 failed r003 farah 28 closed r004 alice 17 ready r005 bruno 21 pending r006 jules 16 pending
eli farah alice bruno jules
record_id display_name score state r001 gus 25 paused r002 ivan 25 active r003 farah 4 active r004 dina 27 closed r005 eli 23 paused r006 gus 26 paused r007 eli 20 active r008 lina 15 ready r009 lina 6 ready
gus ivan dina eli gus eli lina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024561
qwen/qwen3.7-plus
awkweave-0024562
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
ivan 6 active gus 1 closed kim 4 paused hana 20 paused chen 2 closed kim 30 failed gus 25 ready
ivan gus kim hana chen kim gus
hana 20 closed eli 12 ready ivan 24 closed bruno 23 failed alice 4 active dina 29 active
hana eli ivan bruno alice dina
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024562-p1
Given tab-separated input, extract and print the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
ivan 6 active gus 1 closed kim 4 paused hana 20 paused chen 2 closed kim 30 failed gus 25 ready
ivan gus kim hana chen kim gus
hana 20 closed eli 12 ready ivan 24 closed bruno 23 failed alice 4 active dina 29 active
hana eli ivan bruno alice dina
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024562
qwen/qwen3.7-plus
awkweave-0024563
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 16.
BEGIN{FS=OFS=","}$2>16{print $1}
lina,8,ready lina,19,failed dina,23,ready dina,22,paused hana,17,paused kim,23,pending alice,2,ready bruno,5,ready jules,7,active
lina dina dina hana kim
farah,25,failed bruno,21,closed jules,24,ready ivan,1,failed bruno,27,failed bruno,9,active
farah bruno jules bruno
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024563-p1
For simple comma-separated input without quoted commas, print the first column only if the second column value is greater than 16.
BEGIN{FS=OFS=","}$2>16{print $1}
lina,8,ready lina,19,failed dina,23,ready dina,22,paused hana,17,paused kim,23,pending alice,2,ready bruno,5,ready jules,7,active
lina dina dina hana kim
farah,25,failed bruno,21,closed jules,24,ready ivan,1,failed bruno,27,failed bruno,9,active
farah bruno jules bruno
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024563
qwen/qwen3.7-plus
awkweave-0024564
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina indigo 32 farah indigo 114 bruno cobalt 43 lina cobalt 53 dina cobalt 106 dina grove 92 kim birch 78 dina cobalt 59
lina indigo 32 farah indigo 114 bruno cobalt 43 lina cobalt 53 dina cobalt 106 dina grove 92 kim birch 78 dina cobalt 59
bruno delta 18 chen cobalt 56 bruno cobalt 102 eli ember 56 dina delta 27 hana delta 115
bruno delta 18 chen cobalt 56 bruno cobalt 102 eli ember 56 dina delta 27 hana delta 115
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024564-p1
Remove leading and trailing whitespace and replace consecutive internal whitespace characters with a single space.
{$1=$1;print}
lina indigo 32 farah indigo 114 bruno cobalt 43 lina cobalt 53 dina cobalt 106 dina grove 92 kim birch 78 dina cobalt 59
lina indigo 32 farah indigo 114 bruno cobalt 43 lina cobalt 53 dina cobalt 106 dina grove 92 kim birch 78 dina cobalt 59
bruno delta 18 chen cobalt 56 bruno cobalt 102 eli ember 56 dina delta 27 hana delta 115
bruno delta 18 chen cobalt 56 bruno cobalt 102 eli ember 56 dina delta 27 hana delta 115
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024564
qwen/qwen3.7-plus
awkweave-0024565
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
chen ember 43 closed dina delta 46 ready kim fable 60 pending chen birch 80 ready alice delta 24 pending lina grove 42 failed dina birch 57 ready bruno harbor 28 failed
alice delta 24 pending
ivan juniper 27 closed chen amber 115 pending kim birch 25 closed alice grove 51 ready bruno grove 17 paused jules ember 19 paused alice harbor 97 pending
alice harbor 97 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024565-p1
Identify and print the longest line from the input; if multiple lines share the maximum length, select the first one.
{if(length($0)>length(best))best=$0}END{print best}
chen ember 43 closed dina delta 46 ready kim fable 60 pending chen birch 80 ready alice delta 24 pending lina grove 42 failed dina birch 57 ready bruno harbor 28 failed
alice delta 24 pending
ivan juniper 27 closed chen amber 115 pending kim birch 25 closed alice grove 51 ready bruno grove 17 paused jules ember 19 paused alice harbor 97 pending
alice harbor 97 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024565
qwen/qwen3.7-plus
awkweave-0024566
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
kim 36 chen 39 gus 75 jules 64 eli 76 jules 4 kim 63 gus 119
chen 39 jules 64 jules 4 gus 119
alice 13 kim 116 kim 45 alice 70 jules 29 gus 101 jules 33
kim 116 alice 70 gus 101
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024566-p1
Output every second line beginning with line 2 (i.e., lines 2, 4, etc.).
NR%2==0
kim 36 chen 39 gus 75 jules 64 eli 76 jules 4 kim 63 gus 119
chen 39 jules 64 jules 4 gus 119
alice 13 kim 116 kim 45 alice 70 jules 29 gus 101 jules 33
kim 116 alice 70 gus 101
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024566
qwen/qwen3.7-plus
awkweave-0024567
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta cobalt 29 gamma fable 105 beta fable 112 alpha indigo 27 delta delta 81 delta grove 27 delta harbor 88 alpha juniper 79 alpha juniper 28
7
gamma birch 66 alpha ember 16 beta fable 46 gamma indigo 33 delta fable 118 beta cobalt 88
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024567-p1
Calculate and display the number of unique entries in the second column.
{if(!seen[$2]++)n++}END{print n+0}
beta cobalt 29 gamma fable 105 beta fable 112 alpha indigo 27 delta delta 81 delta grove 27 delta harbor 88 alpha juniper 79 alpha juniper 28
7
gamma birch 66 alpha ember 16 beta fable 46 gamma indigo 33 delta fable 118 beta cobalt 88
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024567
qwen/qwen3.7-plus
awkweave-0024568
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}
gus 5 0 eli 15 3 farah 17 8 alice 22 8 kim 30 29 lina 8 21
eli 5.00 farah 2.12 alice 2.75 kim 1.03 lina 0.38
bruno 16 0 farah 6 8 kim 17 30 bruno 24 28 jules 12 28 gus 26 27 farah 20 23 dina 8 10
farah 0.75 kim 0.57 bruno 0.86 jules 0.43 gus 0.96 farah 0.87 dina 0.80
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024568-p1
For each row where the third column is not zero, output the first column and the result of dividing the second column by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 5 0 eli 15 3 farah 17 8 alice 22 8 kim 30 29 lina 8 21
eli 5.00 farah 2.12 alice 2.75 kim 1.03 lina 0.38
bruno 16 0 farah 6 8 kim 17 30 bruno 24 28 jules 12 28 gus 26 27 farah 20 23 dina 8 10
farah 0.75 kim 0.57 bruno 0.86 jules 0.43 gus 0.96 farah 0.87 dina 0.80
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024568
qwen/qwen3.7-plus
awkweave-0024569
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]}
hana fable 28 ivan delta 14 gus fable 12 ivan harbor 13 chen delta 10 bruno ember 30 bruno indigo 11 lina amber 17 eli ember 23 dina harbor 18
bruno ember 30 hana fable 28 eli ember 23
farah indigo 25 alice grove 28 farah ember 30 lina delta 22 jules amber 4 alice fable 19 gus fable 24 lina harbor 25 jules delta 10
farah ember 30 alice grove 28 farah indigo 25
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024569-p1
Display the top three full records based on the highest numeric values in column 3, sorted in descending order, while maintaining 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]}
hana fable 28 ivan delta 14 gus fable 12 ivan harbor 13 chen delta 10 bruno ember 30 bruno indigo 11 lina amber 17 eli ember 23 dina harbor 18
bruno ember 30 hana fable 28 eli ember 23
farah indigo 25 alice grove 28 farah ember 30 lina delta 22 jules amber 4 alice fable 19 gus fable 24 lina harbor 25 jules delta 10
farah ember 30 alice grove 28 farah indigo 25
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024569
qwen/qwen3.7-plus
awkweave-0024570
Select the 5th and 3rd fields in that order.
{print $5, $3}
pending delta closed farah 57 pending cobalt failed gus 84 ready harbor active bruno 103 closed grove ready hana 1 ready amber closed chen 1 pending birch active lina 102 paused grove pending bruno 84 pending cobalt paused lina 64 failed amber pending lina 61
57 closed 84 failed 103 active 1 ready 1 closed 102 active 84 pending 64 paused 61 pending
failed ember pending hana 63 failed delta paused jules 84 ready birch pending ivan 83 active grove active alice 53 failed ember ready kim 30 failed ember failed alice 84 active harbor failed jules 18
63 pending 84 paused 83 pending 53 active 30 ready 84 failed 18 failed
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024570-p1
Extract and print the 5th field followed by the 3rd field.
{print $5, $3}
pending delta closed farah 57 pending cobalt failed gus 84 ready harbor active bruno 103 closed grove ready hana 1 ready amber closed chen 1 pending birch active lina 102 paused grove pending bruno 84 pending cobalt paused lina 64 failed amber pending lina 61
57 closed 84 failed 103 active 1 ready 1 closed 102 active 84 pending 64 paused 61 pending
failed ember pending hana 63 failed delta paused jules 84 ready birch pending ivan 83 active grove active alice 53 failed ember ready kim 30 failed ember failed alice 84 active harbor failed jules 18
63 pending 84 paused 83 pending 53 active 30 ready 84 failed 18 failed
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024570
qwen/qwen3.7-plus
awkweave-0024571
Print the last field of every input line.
{print $NF}
active pending active 18 eli paused active active 22 alice closed closed paused 43 hana pending paused pending 64 alice pending paused paused 60 dina pending pending ready 94 gus ready paused active 34 jules ready closed active 115 bruno
eli alice hana alice dina gus jules bruno
active failed active 27 alice paused active paused 100 alice closed closed pending 37 gus ready active failed 96 alice ready paused ready 54 alice closed ready failed 22 gus
alice alice gus alice alice gus
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024571-p1
Output the final field from every line of input.
{print $NF}
active pending active 18 eli paused active active 22 alice closed closed paused 43 hana pending paused pending 64 alice pending paused paused 60 dina pending pending ready 94 gus ready paused active 34 jules ready closed active 115 bruno
eli alice hana alice dina gus jules bruno
active failed active 27 alice paused active paused 100 alice closed closed pending 37 gus ready active failed 96 alice ready paused ready 54 alice closed ready failed 22 gus
alice alice gus alice alice gus
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024571
qwen/qwen3.7-plus
awkweave-0024572
Print the complete records where column 2 is greater than 36.
$2 > 36
kim 29 lina bruno 51 alice chen 37 dina bruno 15 gus bruno 93 eli gus 91 chen dina 3 eli ivan 30 dina
bruno 51 alice chen 37 dina bruno 93 eli gus 91 chen
lina 38 eli gus 119 alice lina 104 chen jules 89 alice bruno 31 kim lina 10 farah chen 17 lina lina 43 kim eli 58 gus
lina 38 eli gus 119 alice lina 104 chen jules 89 alice lina 43 kim eli 58 gus
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024572-p1
Print entire records where the value in the second column exceeds 36.
$2 > 36
kim 29 lina bruno 51 alice chen 37 dina bruno 15 gus bruno 93 eli gus 91 chen dina 3 eli ivan 30 dina
bruno 51 alice chen 37 dina bruno 93 eli gus 91 chen
lina 38 eli gus 119 alice lina 104 chen jules 89 alice bruno 31 kim lina 10 farah chen 17 lina lina 43 kim eli 58 gus
lina 38 eli gus 119 alice lina 104 chen jules 89 alice lina 43 kim eli 58 gus
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024572
qwen/qwen3.7-plus
awkweave-0024573
Show whole lines whose 3rd field is between 12 and 22, inclusive.
$3 >= 12 && $3 <= 22
juniper paused 10 juniper cobalt ready 20 juniper amber paused 15 grove cobalt ready 5 indigo harbor pending 15 amber delta paused 5 indigo
cobalt ready 20 juniper amber paused 15 grove harbor pending 15 amber
grove active 26 indigo grove active 20 fable cobalt ready 22 fable amber paused 12 indigo birch ready 21 delta birch paused 13 grove amber pending 10 fable ember closed 11 fable
grove active 20 fable cobalt ready 22 fable amber paused 12 indigo birch ready 21 delta birch paused 13 grove
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024573-p1
Display complete lines where the third field falls within the inclusive range of 12 to 22.
$3 >= 12 && $3 <= 22
juniper paused 10 juniper cobalt ready 20 juniper amber paused 15 grove cobalt ready 5 indigo harbor pending 15 amber delta paused 5 indigo
cobalt ready 20 juniper amber paused 15 grove harbor pending 15 amber
grove active 26 indigo grove active 20 fable cobalt ready 22 fable amber paused 12 indigo birch ready 21 delta birch paused 13 grove amber pending 10 fable ember closed 11 fable
grove active 20 fable cobalt ready 22 fable amber paused 12 indigo birch ready 21 delta birch paused 13 grove
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024573
qwen/qwen3.7-plus
awkweave-0024574
Print column 2 only for rows where column 1 is exactly failed.
$1 == "failed"{print $2}
failed gus fable 108 paused eli grove 109 ready gus grove 83 closed jules juniper 70 failed eli birch 3 active gus delta 77 pending jules juniper 120 active alice birch 89
gus eli
paused ivan fable 81 failed kim juniper 6 failed kim ember 118 active bruno fable 38 pending lina indigo 111 failed hana indigo 8 closed lina juniper 66 failed hana cobalt 45 pending alice harbor 117 failed gus ember 105
kim kim hana hana gus
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024574-p1
Output only the second column for rows where the first column matches 'failed' exactly.
$1 == "failed"{print $2}
failed gus fable 108 paused eli grove 109 ready gus grove 83 closed jules juniper 70 failed eli birch 3 active gus delta 77 pending jules juniper 120 active alice birch 89
gus eli
paused ivan fable 81 failed kim juniper 6 failed kim ember 118 active bruno fable 38 pending lina indigo 111 failed hana indigo 8 closed lina juniper 66 failed hana cobalt 45 pending alice harbor 117 failed gus ember 105
kim kim hana hana gus
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024574
qwen/qwen3.7-plus
awkweave-0024575
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
DEBUG 13 cobalt WARN 22 grove ERROR 45 ember WARN 23 fable ERROR 3 fable INFO 75 birch
ERROR 45 ember ERROR 3 fable
WARN 111 cobalt WARN 54 ember DEBUG 59 grove INFO 102 ember INFO 86 amber DEBUG 54 harbor WARN 85 ember INFO 27 grove
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024575-p1
Print all fields from lines where the first field starts with the string 'ERROR'.
$1 ~ /^ERROR/
DEBUG 13 cobalt WARN 22 grove ERROR 45 ember WARN 23 fable ERROR 3 fable INFO 75 birch
ERROR 45 ember ERROR 3 fable
WARN 111 cobalt WARN 54 ember DEBUG 59 grove INFO 102 ember INFO 86 amber DEBUG 54 harbor WARN 85 ember INFO 27 grove
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024575
qwen/qwen3.7-plus
awkweave-0024576
Print every line except those containing the exact text grove.
$0 !~ /grove/
juniper 79 pending harbor 21 pending cobalt 63 failed fable 38 failed ember 0 paused juniper 94 pending birch 55 paused birch 22 paused grove 999 active
juniper 79 pending harbor 21 pending cobalt 63 failed fable 38 failed ember 0 paused juniper 94 pending birch 55 paused birch 22 paused
juniper 90 pending fable 118 failed birch 58 active fable 27 paused juniper 24 paused juniper 49 ready fable 84 active grove 31 failed grove 999 active
juniper 90 pending fable 118 failed birch 58 active fable 27 paused juniper 24 paused juniper 49 ready fable 84 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024576-p1
Output every line that does not contain the exact string 'grove'.
$0 !~ /grove/
juniper 79 pending harbor 21 pending cobalt 63 failed fable 38 failed ember 0 paused juniper 94 pending birch 55 paused birch 22 paused grove 999 active
juniper 79 pending harbor 21 pending cobalt 63 failed fable 38 failed ember 0 paused juniper 94 pending birch 55 paused birch 22 paused
juniper 90 pending fable 118 failed birch 58 active fable 27 paused juniper 24 paused juniper 49 ready fable 84 active grove 31 failed grove 999 active
juniper 90 pending fable 118 failed birch 58 active fable 27 paused juniper 24 paused juniper 49 ready fable 84 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024576
qwen/qwen3.7-plus
awkweave-0024577
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
hana amber 74 farah fable 109 chen harbor 104 alice ember 14 alice cobalt 9 jules cobalt 18 hana fable 22 dina ember 41 ivan delta 116 lina harbor 63
farah fable 109 chen harbor 104
gus harbor 5 dina grove 44 ivan harbor 11 kim indigo 23 ivan indigo 110 dina fable 68 dina delta 8 bruno grove 98 farah ember 6
dina grove 44 ivan harbor 11
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024577-p1
Print lines 2 and 3, inclusive.
NR >= 2 && NR <= 3
hana amber 74 farah fable 109 chen harbor 104 alice ember 14 alice cobalt 9 jules cobalt 18 hana fable 22 dina ember 41 ivan delta 116 lina harbor 63
farah fable 109 chen harbor 104
gus harbor 5 dina grove 44 ivan harbor 11 kim indigo 23 ivan indigo 110 dina fable 68 dina delta 8 bruno grove 98 farah ember 6
dina grove 44 ivan harbor 11
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024577
qwen/qwen3.7-plus
awkweave-0024578
Output only the first 4 records.
NR <= 4
farah 57 amber kim 30 delta dina 66 amber ivan 101 harbor eli 9 amber kim 23 cobalt alice 94 ember jules 117 grove jules 69 juniper
farah 57 amber kim 30 delta dina 66 amber ivan 101 harbor
bruno 41 amber kim 70 amber lina 113 delta lina 12 grove hana 30 indigo dina 64 indigo farah 46 grove
bruno 41 amber kim 70 amber lina 113 delta lina 12 grove
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024578-p1
Display only the initial four entries.
NR <= 4
farah 57 amber kim 30 delta dina 66 amber ivan 101 harbor eli 9 amber kim 23 cobalt alice 94 ember jules 117 grove jules 69 juniper
farah 57 amber kim 30 delta dina 66 amber ivan 101 harbor
bruno 41 amber kim 70 amber lina 113 delta lina 12 grove hana 30 indigo dina 64 indigo farah 46 grove
bruno 41 amber kim 70 amber lina 113 delta lina 12 grove
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024578
qwen/qwen3.7-plus
awkweave-0024579
Skip the first line and print every remaining line unchanged.
NR > 1
ivan 75 delta bruno 27 indigo chen 67 fable ivan 14 harbor farah 1 amber gus 50 delta lina 39 cobalt
bruno 27 indigo chen 67 fable ivan 14 harbor farah 1 amber gus 50 delta lina 39 cobalt
farah 89 delta ivan 85 delta chen 41 grove chen 103 grove chen 69 fable ivan 24 grove
ivan 85 delta chen 41 grove chen 103 grove chen 69 fable ivan 24 grove
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024579-p1
Omit the header line and output all subsequent lines exactly as they appear.
NR > 1
ivan 75 delta bruno 27 indigo chen 67 fable ivan 14 harbor farah 1 amber gus 50 delta lina 39 cobalt
bruno 27 indigo chen 67 fable ivan 14 harbor farah 1 amber gus 50 delta lina 39 cobalt
farah 89 delta ivan 85 delta chen 41 grove chen 103 grove chen 69 fable ivan 24 grove
ivan 85 delta chen 41 grove chen 103 grove chen 69 fable ivan 24 grove
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024579
qwen/qwen3.7-plus
awkweave-0024580
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
gus paused 48 chen closed 65 gus closed 21 jules paused 39 gus closed 67 hana ready 44 farah pending 9 alice paused 64
1
kim closed 74 dina active 50 chen active 2 hana closed 62 hana paused 23 chen closed 42 eli active 24
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024580-p1
Tally the number of records where column 2 contains 'pending', outputting 0 if no matches are found.
$2 == "pending"{n++}END{print n+0}
gus paused 48 chen closed 65 gus closed 21 jules paused 39 gus closed 67 hana ready 44 farah pending 9 alice paused 64
1
kim closed 74 dina active 50 chen active 2 hana closed 62 hana paused 23 chen closed 42 eli active 24
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024580
qwen/qwen3.7-plus
awkweave-0024581
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
23 chen delta 3 dina indigo 4 bruno harbor 9 farah amber 20 gus juniper 11 kim cobalt 6 alice birch 18 gus grove 21 bruno cobalt
115
23 dina delta 4 hana fable 20 bruno grove 8 jules birch 17 dina fable 1 ivan delta 19 gus delta
92
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024581-p1
Compute and display the total sum of integer values found in column 1.
{s+=$1}END{print s+0}
23 chen delta 3 dina indigo 4 bruno harbor 9 farah amber 20 gus juniper 11 kim cobalt 6 alice birch 18 gus grove 21 bruno cobalt
115
23 dina delta 4 hana fable 20 bruno grove 8 jules birch 17 dina fable 1 ivan delta 19 gus delta
92
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024581
qwen/qwen3.7-plus
awkweave-0024582
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
2 harbor jules 9 fable dina 16 amber kim 11 amber dina 27 delta lina 15 ember hana
13.33
1 indigo jules 15 indigo ivan 16 cobalt alice 27 delta farah 4 cobalt hana 6 harbor lina 8 amber dina 24 cobalt lina 24 juniper bruno
13.89
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024582-p1
Output the average of column 1, formatted to precisely two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
2 harbor jules 9 fable dina 16 amber kim 11 amber dina 27 delta lina 15 ember hana
13.33
1 indigo jules 15 indigo ivan 16 cobalt alice 27 delta farah 4 cobalt hana 6 harbor lina 8 amber dina 24 cobalt lina 24 juniper bruno
13.89
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024582
qwen/qwen3.7-plus
awkweave-0024583
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
kim 7 grove jules 26 delta gus 2 grove eli 4 juniper bruno 15 indigo farah 15 harbor lina 13 fable alice 2 harbor jules 12 juniper
2
gus 21 indigo chen 24 cobalt jules 24 delta gus 25 ember alice 9 indigo hana 28 birch kim 29 amber gus 21 cobalt eli 6 amber
6
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024583-p1
Identify and print the minimum numeric value present in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
kim 7 grove jules 26 delta gus 2 grove eli 4 juniper bruno 15 indigo farah 15 harbor lina 13 fable alice 2 harbor jules 12 juniper
2
gus 21 indigo chen 24 cobalt jules 24 delta gus 25 ember alice 9 indigo hana 28 birch kim 29 amber gus 21 cobalt eli 6 amber
6
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024583
qwen/qwen3.7-plus
awkweave-0024584
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
kim fable 6 farah fable 2 hana indigo 22 alice fable 22 ivan birch 28 alice grove 13 alice grove 13 farah indigo 22
28
ivan ember 26 gus grove 1 chen harbor 18 jules birch 14 kim juniper 8 alice harbor 22 bruno amber 3 kim birch 16 jules ember 24
26
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024584-p1
Identify and print the maximum numeric value present in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
kim fable 6 farah fable 2 hana indigo 22 alice fable 22 ivan birch 28 alice grove 13 alice grove 13 farah indigo 22
28
ivan ember 26 gus grove 1 chen harbor 18 jules birch 14 kim juniper 8 alice harbor 22 bruno amber 3 kim birch 16 jules ember 24
26
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024584
qwen/qwen3.7-plus
awkweave-0024585
Count all input records and print the total.
END{print NR}
alice 109 lina 27 kim 10 hana 77 bruno 37 farah 17 farah 86
7
dina 68 eli 17 bruno 113 farah 46 kim 18 ivan 105
6
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024585-p1
Count the total number of input records and print the result.
END{print NR}
alice 109 lina 27 kim 10 hana 77 bruno 37 farah 17 farah 86
7
dina 68 eli 17 bruno 113 farah 46 kim 18 ivan 105
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024585
qwen/qwen3.7-plus
awkweave-0024586
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
dina harbor 66 lina amber 56 bruno fable 40 alice ember 54 alice cobalt 1 ivan cobalt 7 alice fable 36 ivan grove 107 dina harbor 66
dina harbor 66 lina amber 56 bruno fable 40 alice ember 54 alice cobalt 1 ivan cobalt 7 alice fable 36 ivan grove 107
hana indigo 2 alice ember 106 kim ember 72 alice ember 106 chen fable 29 farah ember 22 chen ember 109 chen ember 113 chen grove 92 farah cobalt 88 eli juniper 114
hana indigo 2 alice ember 106 kim ember 72 chen fable 29 farah ember 22 chen ember 109 chen ember 113 chen grove 92 farah cobalt 88 eli juniper 114
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024586-p1
Eliminate exact duplicate lines while maintaining the original order and keeping the first instance of each.
!seen[$0]++
dina harbor 66 lina amber 56 bruno fable 40 alice ember 54 alice cobalt 1 ivan cobalt 7 alice fable 36 ivan grove 107 dina harbor 66
dina harbor 66 lina amber 56 bruno fable 40 alice ember 54 alice cobalt 1 ivan cobalt 7 alice fable 36 ivan grove 107
hana indigo 2 alice ember 106 kim ember 72 alice ember 106 chen fable 29 farah ember 22 chen ember 109 chen ember 113 chen grove 92 farah cobalt 88 eli juniper 114
hana indigo 2 alice ember 106 kim ember 72 chen fable 29 farah ember 22 chen ember 109 chen ember 113 chen grove 92 farah cobalt 88 eli juniper 114
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024586
qwen/qwen3.7-plus
awkweave-0024587
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
chen grove 0 eli cobalt 24 dina indigo 39 jules harbor 32 alice ember 85 lina juniper 39 jules birch 112 bruno juniper 66 hana cobalt 78
chen grove 0 eli cobalt 24 dina indigo 39 jules harbor 32 alice ember 85 lina juniper 39 bruno juniper 66 hana cobalt 78
eli fable 23 chen amber 33 farah grove 61 bruno cobalt 42 hana ember 17 ivan ember 71 alice amber 55
eli fable 23 chen amber 33 farah grove 61 bruno cobalt 42 hana ember 17 ivan ember 71 alice amber 55
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024587-p1
Retain only the first occurrence for each unique value in column 1, preserving the original input sequence.
!seen[$1]++
chen grove 0 eli cobalt 24 dina indigo 39 jules harbor 32 alice ember 85 lina juniper 39 jules birch 112 bruno juniper 66 hana cobalt 78
chen grove 0 eli cobalt 24 dina indigo 39 jules harbor 32 alice ember 85 lina juniper 39 bruno juniper 66 hana cobalt 78
eli fable 23 chen amber 33 farah grove 61 bruno cobalt 42 hana ember 17 ivan ember 71 alice amber 55
eli fable 23 chen amber 33 farah grove 61 bruno cobalt 42 hana ember 17 ivan ember 71 alice amber 55
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024587
qwen/qwen3.7-plus
awkweave-0024588
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
kim 11 ember chen 11 indigo ivan 27 cobalt gus 9 juniper gus 27 birch lina 8 fable kim 24 amber farah 6 ember
kim 11 chen 22 ivan 49 gus 58 gus 85 lina 93 kim 117 farah 123
bruno 1 cobalt eli 17 juniper ivan 2 harbor eli 12 amber ivan 21 fable lina 17 delta chen 17 delta alice 13 birch
bruno 1 eli 18 ivan 20 eli 32 ivan 53 lina 70 chen 87 alice 100
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024588-p1
For each entry, output column 1 alongside the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
kim 11 ember chen 11 indigo ivan 27 cobalt gus 9 juniper gus 27 birch lina 8 fable kim 24 amber farah 6 ember
kim 11 chen 22 ivan 49 gus 58 gus 85 lina 93 kim 117 farah 123
bruno 1 cobalt eli 17 juniper ivan 2 harbor eli 12 amber ivan 21 fable lina 17 delta chen 17 delta alice 13 birch
bruno 1 eli 18 ivan 20 eli 32 ivan 53 lina 70 chen 87 alice 100
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024588
qwen/qwen3.7-plus
awkweave-0024589
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
hana 1 13 birch jules 20 16 harbor lina 29 5 fable alice 12 16 cobalt ivan 19 22 delta eli 17 24 amber bruno 25 24 delta chen 27 22 indigo hana 10 16 birch lina 11 14 indigo
hana 14 jules 36 lina 34 alice 28 ivan 41 eli 41 bruno 49 chen 49 hana 26 lina 25
farah 12 23 juniper eli 9 26 amber farah 14 25 cobalt ivan 23 7 cobalt kim 3 14 grove alice 17 23 cobalt
farah 35 eli 35 farah 39 ivan 30 kim 17 alice 40
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024589-p1
For each row, output field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
hana 1 13 birch jules 20 16 harbor lina 29 5 fable alice 12 16 cobalt ivan 19 22 delta eli 17 24 amber bruno 25 24 delta chen 27 22 indigo hana 10 16 birch lina 11 14 indigo
hana 14 jules 36 lina 34 alice 28 ivan 41 eli 41 bruno 49 chen 49 hana 26 lina 25
farah 12 23 juniper eli 9 26 amber farah 14 25 cobalt ivan 23 7 cobalt kim 3 14 grove alice 17 23 cobalt
farah 35 eli 35 farah 39 ivan 30 kim 17 alice 40
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024589
qwen/qwen3.7-plus
awkweave-0024600
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 chen 14 active r002 alice 21 pending r003 bruno 28 active r004 kim 13 active r005 gus 18 closed r006 bruno 20 active r007 dina 14 failed
alice bruno
record_id display_name score state r001 alice 28 ready r002 chen 5 closed r003 bruno 9 paused r004 bruno 18 pending r005 hana 14 failed r006 alice 13 pending r007 eli 22 failed r008 lina 27 failed
alice eli lina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024600-p1
Skip the header row and output the display_name field for all records where the score exceeds 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 chen 14 active r002 alice 21 pending r003 bruno 28 active r004 kim 13 active r005 gus 18 closed r006 bruno 20 active r007 dina 14 failed
alice bruno
record_id display_name score state r001 alice 28 ready r002 chen 5 closed r003 bruno 9 paused r004 bruno 18 pending r005 hana 14 failed r006 alice 13 pending r007 eli 22 failed r008 lina 27 failed
alice eli lina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024600
qwen/qwen3.7-plus
awkweave-0024601
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
chen 26 paused bruno 5 paused ivan 14 ready dina 7 paused gus 27 active bruno 29 ready chen 25 pending hana 20 paused jules 4 active
paused paused ready paused active ready pending paused active
jules 17 failed chen 6 pending eli 3 active jules 5 failed alice 24 paused hana 5 active alice 12 ready dina 12 paused
failed pending active failed paused active ready paused
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024601-p1
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
chen 26 paused bruno 5 paused ivan 14 ready dina 7 paused gus 27 active bruno 29 ready chen 25 pending hana 20 paused jules 4 active
paused paused ready paused active ready pending paused active
jules 17 failed chen 6 pending eli 3 active jules 5 failed alice 24 paused hana 5 active alice 12 ready dina 12 paused
failed pending active failed paused active ready paused
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0024601
qwen/qwen3.7-plus
awkweave-0024602
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}
bruno,18,pending eli,9,active dina,1,ready chen,1,ready alice,2,closed lina,17,active
bruno lina
dina,27,active kim,6,failed gus,6,active hana,8,ready eli,20,failed jules,27,failed dina,1,active dina,13,closed farah,1,failed
dina eli jules
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024602-p1
For simple CSV data without quoted commas, output the first column if the second column is greater than 15.
BEGIN{FS=OFS=","}$2>15{print $1}
bruno,18,pending eli,9,active dina,1,ready chen,1,ready alice,2,closed lina,17,active
bruno lina
dina,27,active kim,6,failed gus,6,active hana,8,ready eli,20,failed jules,27,failed dina,1,active dina,13,closed farah,1,failed
dina eli jules
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024602
qwen/qwen3.7-plus
awkweave-0024603
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
chen cobalt 3 kim juniper 61 kim harbor 114 farah fable 68 bruno amber 69 chen ember 32 hana juniper 29 dina cobalt 80
chen cobalt 3 kim juniper 61 kim harbor 114 farah fable 68 bruno amber 69 chen ember 32 hana juniper 29 dina cobalt 80
bruno ember 105 chen birch 66 ivan birch 34 bruno indigo 116 farah ember 40 alice ember 46 ivan ember 40 lina grove 56 jules ember 103
bruno ember 105 chen birch 66 ivan birch 34 bruno indigo 116 farah ember 40 alice ember 46 ivan ember 40 lina grove 56 jules ember 103
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024603-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
chen cobalt 3 kim juniper 61 kim harbor 114 farah fable 68 bruno amber 69 chen ember 32 hana juniper 29 dina cobalt 80
chen cobalt 3 kim juniper 61 kim harbor 114 farah fable 68 bruno amber 69 chen ember 32 hana juniper 29 dina cobalt 80
bruno ember 105 chen birch 66 ivan birch 34 bruno indigo 116 farah ember 40 alice ember 46 ivan ember 40 lina grove 56 jules ember 103
bruno ember 105 chen birch 66 ivan birch 34 bruno indigo 116 farah ember 40 alice ember 46 ivan ember 40 lina grove 56 jules ember 103
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024603
qwen/qwen3.7-plus
awkweave-0024604
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah fable 70 active dina grove 69 pending alice juniper 75 failed hana amber 50 ready bruno birch 5 pending hana indigo 93 paused dina grove 118 closed ivan grove 105 paused farah cobalt 51 active
alice juniper 75 failed
alice amber 96 pending ivan ember 43 paused eli birch 109 pending jules fable 105 active dina juniper 14 paused alice amber 57 failed gus birch 114 active kim grove 22 active farah grove 70 failed
alice amber 96 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024604-p1
Identify and output the longest line from the input; in case of a tie, select the first occurrence.
{if(length($0)>length(best))best=$0}END{print best}
farah fable 70 active dina grove 69 pending alice juniper 75 failed hana amber 50 ready bruno birch 5 pending hana indigo 93 paused dina grove 118 closed ivan grove 105 paused farah cobalt 51 active
alice juniper 75 failed
alice amber 96 pending ivan ember 43 paused eli birch 109 pending jules fable 105 active dina juniper 14 paused alice amber 57 failed gus birch 114 active kim grove 22 active farah grove 70 failed
alice amber 96 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024604
qwen/qwen3.7-plus
awkweave-0024605
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
jules 58 bruno 28 alice 79 chen 118 ivan 18 bruno 36 eli 62 hana 55 hana 86 farah 52
jules 58 alice 79 ivan 18 eli 62 hana 86
lina 73 ivan 80 eli 33 chen 87 lina 92 gus 78 gus 0 dina 16 alice 86
lina 73 eli 33 lina 92 gus 0 alice 86
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024605-p1
Output every other line, beginning with the first line (i.e., lines 1, 3, 5, ...).
NR%2==1
jules 58 bruno 28 alice 79 chen 118 ivan 18 bruno 36 eli 62 hana 55 hana 86 farah 52
jules 58 alice 79 ivan 18 eli 62 hana 86
lina 73 ivan 80 eli 33 chen 87 lina 92 gus 78 gus 0 dina 16 alice 86
lina 73 eli 33 lina 92 gus 0 alice 86
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024605
qwen/qwen3.7-plus
awkweave-0024606
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta cobalt 24 delta ember 27 alpha cobalt 30 alpha grove 89 gamma delta 85 gamma fable 55 alpha juniper 12 delta cobalt 81 delta ember 91
6
gamma indigo 3 gamma delta 22 delta amber 93 delta harbor 49 gamma indigo 12 alpha indigo 87 gamma delta 46 alpha birch 5
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024606-p1
Calculate the number of unique values in the second column and print only that total count.
{if(!seen[$2]++)n++}END{print n+0}
beta cobalt 24 delta ember 27 alpha cobalt 30 alpha grove 89 gamma delta 85 gamma fable 55 alpha juniper 12 delta cobalt 81 delta ember 91
6
gamma indigo 3 gamma delta 22 delta amber 93 delta harbor 49 gamma indigo 12 alpha indigo 87 gamma delta 46 alpha birch 5
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024606
qwen/qwen3.7-plus
awkweave-0024607
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}
alice 20 0 jules 18 22 hana 18 9 kim 6 4 ivan 14 8 alice 27 5 eli 29 28 bruno 30 20 jules 7 14
jules 0.82 hana 2.00 kim 1.50 ivan 1.75 alice 5.40 eli 1.04 bruno 1.50 jules 0.50
dina 11 0 eli 23 23 alice 14 7 jules 12 14 dina 2 16 bruno 9 29 eli 2 17 jules 5 4 gus 17 13 alice 28 25
eli 1.00 alice 2.00 jules 0.86 dina 0.12 bruno 0.31 eli 0.12 jules 1.25 gus 1.31 alice 1.12
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024607-p1
For each row, output the first column and the result of dividing the second column by the third (formatted to two decimal places), skipping any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
alice 20 0 jules 18 22 hana 18 9 kim 6 4 ivan 14 8 alice 27 5 eli 29 28 bruno 30 20 jules 7 14
jules 0.82 hana 2.00 kim 1.50 ivan 1.75 alice 5.40 eli 1.04 bruno 1.50 jules 0.50
dina 11 0 eli 23 23 alice 14 7 jules 12 14 dina 2 16 bruno 9 29 eli 2 17 jules 5 4 gus 17 13 alice 28 25
eli 1.00 alice 2.00 jules 0.86 dina 0.12 bruno 0.31 eli 0.12 jules 1.25 gus 1.31 alice 1.12
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024607
qwen/qwen3.7-plus
awkweave-0024608
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]}
gus juniper 10 kim grove 30 farah cobalt 12 farah amber 4 chen fable 10 dina amber 19 eli indigo 22 kim indigo 12
kim grove 30 eli indigo 22 dina amber 19
eli ember 24 chen delta 12 hana fable 8 chen fable 11 gus fable 19 dina fable 15 gus amber 20 eli juniper 9
eli ember 24 gus amber 20 gus fable 19
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024608-p1
Output the top three records based on 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]}
gus juniper 10 kim grove 30 farah cobalt 12 farah amber 4 chen fable 10 dina amber 19 eli indigo 22 kim indigo 12
kim grove 30 eli indigo 22 dina amber 19
eli ember 24 chen delta 12 hana fable 8 chen fable 11 gus fable 19 dina fable 15 gus amber 20 eli juniper 9
eli ember 24 gus amber 20 gus fable 19
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024608
qwen/qwen3.7-plus
awkweave-0024609
Select the 6th and 4th fields in that order.
{print $6, $4}
amber birch closed grove 62 juniper grove indigo paused harbor 100 indigo grove delta closed juniper 77 amber grove indigo active harbor 54 juniper birch delta paused cobalt 19 indigo fable delta ready grove 47 cobalt amber cobalt active fable 109 indigo delta delta closed indigo 45 amber juniper amber active grove 17 ...
juniper grove indigo harbor amber juniper juniper harbor indigo cobalt cobalt grove indigo fable amber indigo ember grove
juniper fable ready birch 102 birch ember birch active grove 41 juniper indigo harbor failed delta 62 delta harbor cobalt active ember 102 harbor fable indigo pending grove 106 harbor grove harbor failed amber 58 amber indigo ember ready cobalt 54 harbor fable harbor failed ember 66 fable cobalt juniper pending delta 9...
birch birch juniper grove delta delta harbor ember harbor grove amber amber harbor cobalt fable ember amber delta ember grove
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024609-p1
Extract and print the sixth field followed by the fourth field, in that specific order.
{print $6, $4}
amber birch closed grove 62 juniper grove indigo paused harbor 100 indigo grove delta closed juniper 77 amber grove indigo active harbor 54 juniper birch delta paused cobalt 19 indigo fable delta ready grove 47 cobalt amber cobalt active fable 109 indigo delta delta closed indigo 45 amber juniper amber active grove 17 ...
juniper grove indigo harbor amber juniper juniper harbor indigo cobalt cobalt grove indigo fable amber indigo ember grove
juniper fable ready birch 102 birch ember birch active grove 41 juniper indigo harbor failed delta 62 delta harbor cobalt active ember 102 harbor fable indigo pending grove 106 harbor grove harbor failed amber 58 amber indigo ember ready cobalt 54 harbor fable harbor failed ember 66 fable cobalt juniper pending delta 9...
birch birch juniper grove delta delta harbor ember harbor grove amber amber harbor cobalt fable ember amber delta ember grove
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024609
qwen/qwen3.7-plus
awkweave-0024610
Print the last field of every input line.
{print $NF}
31 closed 114 31 84 pending 13 failed 34 19 79 active 87 pending 70 15 81 paused 109 paused 95 86 71 active 75 failed 24 14 80 failed 76 paused 119 31 41 paused 49 failed 114 68 44 pending 40 paused 48 57 5 pending
pending active paused active failed paused pending pending
107 closed 82 84 91 failed 23 paused 10 98 101 closed 72 active 86 9 1 active 14 closed 66 44 19 failed 13 ready 89 48 66 paused 93 pending 97 69 54 active 113 closed 104 114 53 ready 86 closed 63 80 55 active 10 closed 114 46 71 ready
failed closed active failed paused active ready active ready
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024610-p1
Print the final field from every line of input.
{print $NF}
31 closed 114 31 84 pending 13 failed 34 19 79 active 87 pending 70 15 81 paused 109 paused 95 86 71 active 75 failed 24 14 80 failed 76 paused 119 31 41 paused 49 failed 114 68 44 pending 40 paused 48 57 5 pending
pending active paused active failed paused pending pending
107 closed 82 84 91 failed 23 paused 10 98 101 closed 72 active 86 9 1 active 14 closed 66 44 19 failed 13 ready 89 48 66 paused 93 pending 97 69 54 active 113 closed 104 114 53 ready 86 closed 63 80 55 active 10 closed 114 46 71 ready
failed closed active failed paused active ready active ready
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024610
qwen/qwen3.7-plus
awkweave-0024611
Print the complete records where column 3 is at most 21.
$3 <= 21
paused dina 42 failed failed closed eli 30 closed ready active bruno 87 active failed closed hana 15 active paused pending dina 19 closed pending failed hana 94 pending failed pending farah 119 failed active
closed hana 15 active paused pending dina 19 closed pending
ready bruno 114 pending pending ready bruno 30 paused closed pending ivan 64 closed paused ready hana 86 failed active pending hana 28 failed closed active bruno 82 paused active paused alice 100 pending failed ready chen 52 active ready
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null