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-0033051-p1
Output column 1 alongside the cumulative sum of column 2 for each record, using a space as the delimiter.
{s+=$2;print $1,s}
alice 18 fable bruno 30 amber jules 21 harbor hana 27 birch ivan 1 delta chen 11 grove eli 25 amber gus 24 indigo
alice 18 bruno 48 jules 69 hana 96 ivan 97 chen 108 eli 133 gus 157
dina 14 cobalt kim 19 juniper jules 28 amber gus 13 indigo kim 16 juniper alice 21 amber gus 18 birch jules 7 amber lina 23 grove
dina 14 kim 33 jules 61 gus 74 kim 90 alice 111 gus 129 jules 136 lina 159
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033051
qwen/qwen3.7-plus
awkweave-0033052
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
lina 17 21 delta chen 14 19 birch farah 12 7 birch alice 25 13 ember alice 8 24 delta bruno 21 21 fable
lina 38 chen 33 farah 19 alice 38 alice 32 bruno 42
lina 18 19 ember chen 24 27 indigo gus 23 9 fable ivan 14 2 grove lina 22 7 cobalt chen 6 10 birch
lina 37 chen 51 gus 32 ivan 16 lina 29 chen 16
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033052-p1
For each row, output field 1 followed by the total of fields 2 and 3.
{print $1,$2+$3}
lina 17 21 delta chen 14 19 birch farah 12 7 birch alice 25 13 ember alice 8 24 delta bruno 21 21 fable
lina 38 chen 33 farah 19 alice 38 alice 32 bruno 42
lina 18 19 ember chen 24 27 indigo gus 23 9 fable ivan 14 2 grove lina 22 7 cobalt chen 6 10 birch
lina 37 chen 51 gus 32 ivan 16 lina 29 chen 16
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033052
qwen/qwen3.7-plus
awkweave-0033053
Print column 1 and pass when column 2 is at least 26; otherwise print fail.
{print $1,($2>=26?"pass":"fail")}
kim 19 gus 11 chen 5 alice 24 jules 23 farah 5 kim 25 chen 2 dina 27
kim fail gus fail chen fail alice fail jules fail farah fail kim fail chen fail dina pass
farah 22 kim 25 chen 28 eli 11 alice 13 kim 9 kim 13 eli 24
farah fail kim fail chen pass eli fail alice fail kim fail kim fail eli fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033053-p1
Display column 1 and output 'pass' if column 2 is 26 or greater; otherwise, output 'fail'.
{print $1,($2>=26?"pass":"fail")}
kim 19 gus 11 chen 5 alice 24 jules 23 farah 5 kim 25 chen 2 dina 27
kim fail gus fail chen fail alice fail jules fail farah fail kim fail chen fail dina pass
farah 22 kim 25 chen 28 eli 11 alice 13 kim 9 kim 13 eli 24
farah fail kim fail chen pass eli fail alice fail kim fail kim fail eli fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033053
qwen/qwen3.7-plus
awkweave-0033054
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
lina amber 15 bruno ember 79 jules juniper 63 gus indigo 39 gus ember 114 farah fable 17
AMBER EMBER JUNIPER INDIGO EMBER FABLE
dina juniper 83 gus birch 91 ivan harbor 90 farah juniper 62 ivan birch 91 kim indigo 65 bruno delta 4 kim delta 32 farah birch 117 eli fable 84
JUNIPER BIRCH HARBOR JUNIPER BIRCH INDIGO DELTA DELTA BIRCH FABLE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033054-p1
Transform column 2 to uppercase and print only that specific column.
{print toupper($2)}
lina amber 15 bruno ember 79 jules juniper 63 gus indigo 39 gus ember 114 farah fable 17
AMBER EMBER JUNIPER INDIGO EMBER FABLE
dina juniper 83 gus birch 91 ivan harbor 90 farah juniper 62 ivan birch 91 kim indigo 65 bruno delta 4 kim delta 32 farah birch 117 eli fable 84
JUNIPER BIRCH HARBOR JUNIPER BIRCH INDIGO DELTA DELTA BIRCH FABLE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033054
qwen/qwen3.7-plus
awkweave-0033055
From column 1, print 2 characters starting at character 1.
{print substr($1,1,2)}
harbor 26 delta 105 delta 51 fable 98 cobalt 80 cobalt 48 amber 23
ha de de fa co co am
delta 4 cobalt 89 juniper 29 indigo 61 harbor 101 harbor 74
de co ju in ha ha
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033055-p1
Extract and print the first 2 characters from column 1, starting at position 1.
{print substr($1,1,2)}
harbor 26 delta 105 delta 51 fable 98 cobalt 80 cobalt 48 amber 23
ha de de fa co co am
delta 4 cobalt 89 juniper 29 indigo 61 harbor 101 harbor 74
de co ju in ha ha
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033055
qwen/qwen3.7-plus
awkweave-0033056
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
juniper_harbor 43 delta_amber 112 ember_grove 61 fable_cobalt 57 juniper_grove 106 birch_juniper 82 grove_delta 105
juniper harbor delta amber ember grove fable cobalt juniper grove birch juniper grove delta
ember_amber 46 fable_grove 18 ember_fable 35 birch_indigo 35 harbor_cobalt 85 indigo_cobalt 48 delta_grove 6 harbor_juniper 112 fable_amber 86 amber_juniper 81
ember amber fable grove ember fable birch indigo harbor cobalt indigo cobalt delta grove harbor juniper fable amber amber juniper
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033056-p1
Substitute all underscores in column 1 with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
juniper_harbor 43 delta_amber 112 ember_grove 61 fable_cobalt 57 juniper_grove 106 birch_juniper 82 grove_delta 105
juniper harbor delta amber ember grove fable cobalt juniper grove birch juniper grove delta
ember_amber 46 fable_grove 18 ember_fable 35 birch_indigo 35 harbor_cobalt 85 indigo_cobalt 48 delta_grove 6 harbor_juniper 112 fable_amber 86 amber_juniper 81
ember amber fable grove ember fable birch indigo harbor cobalt indigo cobalt delta grove harbor juniper fable amber amber juniper
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033056
qwen/qwen3.7-plus
awkweave-0033057
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)}
alice indigo 118 closed farah harbor 86 active eli harbor 8 pending farah indigo 92 failed lina cobalt 12 failed dina fable 17 ready gus indigo 63 failed ivan ember 26 failed farah indigo 43 ready
closed 118 indigo alice active 86 harbor farah pending 8 harbor eli failed 92 indigo farah failed 12 cobalt lina ready 17 fable dina failed 63 indigo gus failed 26 ember ivan ready 43 indigo farah
kim indigo 115 closed lina cobalt 57 closed farah ember 68 ready lina indigo 90 active chen indigo 119 paused eli harbor 0 closed ivan harbor 17 closed hana harbor 56 failed
closed 115 indigo kim closed 57 cobalt lina ready 68 ember farah active 90 indigo lina paused 119 indigo chen closed 0 harbor eli closed 17 harbor ivan failed 56 harbor hana
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033057-p1
Reverse the sequence of fields on each line and print all of them.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
alice indigo 118 closed farah harbor 86 active eli harbor 8 pending farah indigo 92 failed lina cobalt 12 failed dina fable 17 ready gus indigo 63 failed ivan ember 26 failed farah indigo 43 ready
closed 118 indigo alice active 86 harbor farah pending 8 harbor eli failed 92 indigo farah failed 12 cobalt lina ready 17 fable dina failed 63 indigo gus failed 26 ember ivan ready 43 indigo farah
kim indigo 115 closed lina cobalt 57 closed farah ember 68 ready lina indigo 90 active chen indigo 119 paused eli harbor 0 closed ivan harbor 17 closed hana harbor 56 failed
closed 115 indigo kim closed 57 cobalt lina ready 68 ember farah active 90 indigo lina paused 119 indigo chen closed 0 harbor eli closed 17 harbor ivan failed 56 harbor hana
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033057
qwen/qwen3.7-plus
awkweave-0033058
Print the number of whitespace-separated fields on each line.
{print NF}
alice delta 35 closed chen cobalt 48 active jules fable 86 paused chen ember 63 active lina fable 26 closed chen cobalt 34 active hana indigo 36 pending
4 4 4 4 4 4 4
gus amber 101 ready jules harbor 96 pending ivan ember 21 ready lina harbor 52 pending kim grove 23 pending gus indigo 81 paused gus juniper 105 active
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033058-p1
Print the count of whitespace-separated fields found on each line.
{print NF}
alice delta 35 closed chen cobalt 48 active jules fable 86 paused chen ember 63 active lina fable 26 closed chen cobalt 34 active hana indigo 36 pending
4 4 4 4 4 4 4
gus amber 101 ready jules harbor 96 pending ivan ember 21 ready lina harbor 52 pending kim grove 23 pending gus indigo 81 paused gus juniper 105 active
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033058
qwen/qwen3.7-plus
awkweave-0033059
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 gamma 91 chen beta 78 lina alpha 71 chen delta 54 eli gamma 53 ivan alpha 19 gus alpha 94 alice beta 68 alice alpha 77 lina alpha 88
gamma 2 beta 2 alpha 5 delta 1
jules alpha 103 lina beta 111 farah beta 45 eli alpha 26 farah beta 57 hana beta 16 eli delta 9 kim delta 13 kim delta 57 hana alpha 51
alpha 3 beta 4 delta 3
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033059-p1
Tally the records for each distinct value in column 2, then print each value with its count 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 gamma 91 chen beta 78 lina alpha 71 chen delta 54 eli gamma 53 ivan alpha 19 gus alpha 94 alice beta 68 alice alpha 77 lina alpha 88
gamma 2 beta 2 alpha 5 delta 1
jules alpha 103 lina beta 111 farah beta 45 eli alpha 26 farah beta 57 hana beta 16 eli delta 9 kim delta 13 kim delta 57 hana alpha 51
alpha 3 beta 4 delta 3
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033059
qwen/qwen3.7-plus
awkweave-0033060
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 beta 4 kim alpha 5 chen delta 18 gus delta 28 bruno gamma 10 jules gamma 4 kim delta 19 chen beta 6
beta 10 alpha 5 delta 65 gamma 14
bruno delta 18 eli alpha 26 bruno beta 30 gus alpha 21 dina delta 24 jules delta 27
delta 69 alpha 47 beta 30
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033060-p1
Calculate the sum of values in column 3 for each unique category found in column 2, and output the results sorted by the order in which each category first appears.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
jules beta 4 kim alpha 5 chen delta 18 gus delta 28 bruno gamma 10 jules gamma 4 kim delta 19 chen beta 6
beta 10 alpha 5 delta 65 gamma 14
bruno delta 18 eli alpha 26 bruno beta 30 gus alpha 21 dina delta 24 jules delta 27
delta 69 alpha 47 beta 30
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033060
qwen/qwen3.7-plus
awkweave-0033061
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 birch 97 alpha fable 60 gamma cobalt 24 gamma amber 112 alpha delta 70 alpha fable 69 gamma fable 23
gamma 4 alpha 3
alpha grove 10 beta amber 69 alpha harbor 41 delta amber 104 delta indigo 21 alpha harbor 68 beta cobalt 118
alpha 3 beta 2 delta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033061-p1
Identify all duplicate entries in column 1, count their occurrences, and list them alongside their counts in the order they first appeared.
{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 birch 97 alpha fable 60 gamma cobalt 24 gamma amber 112 alpha delta 70 alpha fable 69 gamma fable 23
gamma 4 alpha 3
alpha grove 10 beta amber 69 alpha harbor 41 delta amber 104 delta indigo 21 alpha harbor 68 beta cobalt 118
alpha 3 beta 2 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033061
qwen/qwen3.7-plus
awkweave-0033062
The first row is a header. Print the record_id column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
region note display_name record_id r001 gus 17 ready r002 alice 19 closed r003 jules 13 active r004 lina 13 ready r005 farah 26 ready r006 eli 26 ready r007 dina 21 failed
ready closed active ready ready ready failed
region note display_name record_id r001 alice 18 closed r002 hana 14 pending r003 eli 17 closed r004 lina 19 paused r005 alice 1 closed r006 bruno 26 paused r007 farah 19 paused r008 jules 18 pending r009 ivan 14 failed
closed pending closed paused closed paused paused pending failed
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033062-p1
Treating the first line as a header, extract and print the values from the record_id column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
region note display_name record_id r001 gus 17 ready r002 alice 19 closed r003 jules 13 active r004 lina 13 ready r005 farah 26 ready r006 eli 26 ready r007 dina 21 failed
ready closed active ready ready ready failed
region note display_name record_id r001 alice 18 closed r002 hana 14 pending r003 eli 17 closed r004 lina 19 paused r005 alice 1 closed r006 bruno 26 paused r007 farah 19 paused r008 jules 18 pending r009 ivan 14 failed
closed pending closed paused closed paused paused pending failed
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033062
qwen/qwen3.7-plus
awkweave-0033063
The first row is a header. Print display_name for data rows whose score is greater than 21.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>21{print $h["display_name"]}
record_id display_name score state r001 gus 21 ready r002 dina 27 paused r003 kim 5 closed r004 chen 24 ready r005 ivan 14 pending r006 alice 22 paused r007 eli 6 failed r008 dina 11 active
dina chen alice
record_id display_name score state r001 ivan 20 closed r002 chen 9 closed r003 lina 20 pending r004 hana 24 pending r005 alice 17 paused r006 hana 19 ready
hana
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033063-p1
Ignoring the header row, output the display_name field for any record where the score value is strictly greater than 21.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>21{print $h["display_name"]}
record_id display_name score state r001 gus 21 ready r002 dina 27 paused r003 kim 5 closed r004 chen 24 ready r005 ivan 14 pending r006 alice 22 paused r007 eli 6 failed r008 dina 11 active
dina chen alice
record_id display_name score state r001 ivan 20 closed r002 chen 9 closed r003 lina 20 pending r004 hana 24 pending r005 alice 17 paused r006 hana 19 ready
hana
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033063
qwen/qwen3.7-plus
awkweave-0033064
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
gus 29 pending dina 20 paused jules 16 paused jules 10 paused jules 19 failed lina 11 paused chen 28 active
gus dina jules jules jules lina chen
alice 5 failed bruno 21 failed hana 29 active eli 16 pending dina 23 paused gus 25 closed jules 14 ready
alice bruno hana eli dina gus jules
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033064-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
gus 29 pending dina 20 paused jules 16 paused jules 10 paused jules 19 failed lina 11 paused chen 28 active
gus dina jules jules jules lina chen
alice 5 failed bruno 21 failed hana 29 active eli 16 pending dina 23 paused gus 25 closed jules 14 ready
alice bruno hana eli dina gus jules
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0033064
qwen/qwen3.7-plus
awkweave-0033065
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 9.
BEGIN{FS=OFS=","}$2>9{print $1}
bruno,18,ready ivan,14,ready eli,15,paused chen,17,pending hana,15,paused dina,29,pending jules,18,paused jules,29,pending gus,22,failed bruno,17,paused
bruno ivan eli chen hana dina jules jules gus bruno
gus,4,failed ivan,12,ready eli,10,pending ivan,27,active kim,9,failed kim,6,ready
ivan eli ivan
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033065-p1
Process simple comma-separated values without quoted fields, and print the first column only when the value in the second column is greater than 9.
BEGIN{FS=OFS=","}$2>9{print $1}
bruno,18,ready ivan,14,ready eli,15,paused chen,17,pending hana,15,paused dina,29,pending jules,18,paused jules,29,pending gus,22,failed bruno,17,paused
bruno ivan eli chen hana dina jules jules gus bruno
gus,4,failed ivan,12,ready eli,10,pending ivan,27,active kim,9,failed kim,6,ready
ivan eli ivan
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033065
qwen/qwen3.7-plus
awkweave-0033066
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
bruno delta 73 lina delta 63 chen birch 92 chen ember 54 ivan harbor 113 ivan delta 23
bruno delta 73 lina delta 63 chen birch 92 chen ember 54 ivan harbor 113 ivan delta 23
kim amber 2 chen juniper 60 lina delta 35 kim harbor 111 hana birch 71 ivan harbor 40 kim amber 1 farah amber 21 hana indigo 77
kim amber 2 chen juniper 60 lina delta 35 kim harbor 111 hana birch 71 ivan harbor 40 kim amber 1 farah amber 21 hana indigo 77
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033066-p1
Remove leading and trailing whitespace from the text, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
bruno delta 73 lina delta 63 chen birch 92 chen ember 54 ivan harbor 113 ivan delta 23
bruno delta 73 lina delta 63 chen birch 92 chen ember 54 ivan harbor 113 ivan delta 23
kim amber 2 chen juniper 60 lina delta 35 kim harbor 111 hana birch 71 ivan harbor 40 kim amber 1 farah amber 21 hana indigo 77
kim amber 2 chen juniper 60 lina delta 35 kim harbor 111 hana birch 71 ivan harbor 40 kim amber 1 farah amber 21 hana indigo 77
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033066
qwen/qwen3.7-plus
awkweave-0033067
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
bruno indigo 27 closed farah indigo 61 active jules fable 51 paused hana amber 94 closed chen birch 70 closed chen indigo 27 closed dina birch 22 pending dina cobalt 45 active lina grove 107 paused
bruno indigo 27 closed
farah birch 92 failed eli birch 30 pending lina delta 37 closed bruno grove 93 active farah ember 81 ready gus cobalt 62 failed kim grove 99 pending eli grove 31 closed kim juniper 1 pending dina cobalt 22 pending
dina cobalt 22 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033067-p1
Identify and output the longest line from the input; if multiple lines share the maximum length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
bruno indigo 27 closed farah indigo 61 active jules fable 51 paused hana amber 94 closed chen birch 70 closed chen indigo 27 closed dina birch 22 pending dina cobalt 45 active lina grove 107 paused
bruno indigo 27 closed
farah birch 92 failed eli birch 30 pending lina delta 37 closed bruno grove 93 active farah ember 81 ready gus cobalt 62 failed kim grove 99 pending eli grove 31 closed kim juniper 1 pending dina cobalt 22 pending
dina cobalt 22 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033067
qwen/qwen3.7-plus
awkweave-0033068
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
bruno 84 chen 5 jules 18 dina 59 chen 71 jules 49 bruno 42
chen 5 dina 59 jules 49
chen 19 ivan 97 lina 76 hana 24 eli 18 ivan 107 ivan 25
ivan 97 hana 24 ivan 107
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033068-p1
Output every second line of the input, beginning with line 2 (i.e., lines 2, 4, 6, etc.).
NR%2==0
bruno 84 chen 5 jules 18 dina 59 chen 71 jules 49 bruno 42
chen 5 dina 59 jules 49
chen 19 ivan 97 lina 76 hana 24 eli 18 ivan 107 ivan 25
ivan 97 hana 24 ivan 107
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033068
qwen/qwen3.7-plus
awkweave-0033069
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta ember 38 gamma cobalt 67 beta delta 94 gamma birch 40 gamma indigo 51 alpha indigo 72 alpha juniper 8 alpha harbor 66
7
beta juniper 40 beta harbor 105 gamma harbor 64 beta harbor 99 alpha amber 62 delta cobalt 85 alpha cobalt 106 beta fable 95
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033069-p1
Determine the number of unique values present in column 2 and print only this total count.
{if(!seen[$2]++)n++}END{print n+0}
beta ember 38 gamma cobalt 67 beta delta 94 gamma birch 40 gamma indigo 51 alpha indigo 72 alpha juniper 8 alpha harbor 66
7
beta juniper 40 beta harbor 105 gamma harbor 64 beta harbor 99 alpha amber 62 delta cobalt 85 alpha cobalt 106 beta fable 95
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033069
qwen/qwen3.7-plus
awkweave-0033070
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
kim 4 0 farah 29 24 farah 24 2 farah 10 18 farah 5 20 eli 24 19 alice 5 29 bruno 11 5 ivan 21 9
farah 1.21 farah 12.00 farah 0.56 farah 0.25 eli 1.26 alice 0.17 bruno 2.20 ivan 2.33
eli 23 0 ivan 24 19 jules 9 1 kim 29 29 jules 7 20 farah 13 20 chen 25 7 chen 21 3 gus 24 16 hana 30 7
ivan 1.26 jules 9.00 kim 1.00 jules 0.35 farah 0.65 chen 3.57 chen 7.00 gus 1.50 hana 4.29
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033070-p1
For each row, output column 1 and the result of dividing column 2 by column 3 formatted to two decimal places, excluding any rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
kim 4 0 farah 29 24 farah 24 2 farah 10 18 farah 5 20 eli 24 19 alice 5 29 bruno 11 5 ivan 21 9
farah 1.21 farah 12.00 farah 0.56 farah 0.25 eli 1.26 alice 0.17 bruno 2.20 ivan 2.33
eli 23 0 ivan 24 19 jules 9 1 kim 29 29 jules 7 20 farah 13 20 chen 25 7 chen 21 3 gus 24 16 hana 30 7
ivan 1.26 jules 9.00 kim 1.00 jules 0.35 farah 0.65 chen 3.57 chen 7.00 gus 1.50 hana 4.29
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033070
qwen/qwen3.7-plus
awkweave-0033071
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]}
bruno grove 29 lina fable 18 hana harbor 2 ivan fable 24 kim juniper 25 kim grove 21 kim indigo 29 alice indigo 6 gus delta 21
bruno grove 29 kim indigo 29 kim juniper 25
chen delta 9 ivan grove 17 jules fable 16 chen ember 3 jules juniper 2 jules fable 28 dina fable 17 gus fable 30 dina fable 3
gus fable 30 jules fable 28 ivan grove 17
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033071-p1
Select the top three records with the highest numeric values in column 3, sorted in descending order, while maintaining the original input order for any tied values.
{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]}
bruno grove 29 lina fable 18 hana harbor 2 ivan fable 24 kim juniper 25 kim grove 21 kim indigo 29 alice indigo 6 gus delta 21
bruno grove 29 kim indigo 29 kim juniper 25
chen delta 9 ivan grove 17 jules fable 16 chen ember 3 jules juniper 2 jules fable 28 dina fable 17 gus fable 30 dina fable 3
gus fable 30 jules fable 28 ivan grove 17
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033071
qwen/qwen3.7-plus
awkweave-0033072
For each line, output fields 4 and 3, in that order.
{print $4, $3}
39 35 102 birch 85 87 31 delta 68 77 64 ember 50 61 50 ember 16 96 92 ember 62 82 63 indigo 118 114 61 fable 86 79 112 harbor
birch 102 delta 31 ember 64 ember 50 ember 92 indigo 63 fable 61 harbor 112
36 72 42 birch 119 45 5 fable 29 68 69 ember 99 61 112 grove 86 67 117 birch 99 84 55 delta 7 94 6 fable
birch 42 fable 5 ember 69 grove 112 birch 117 delta 55 fable 6
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033072-p1
For every line, display the fourth field followed by the third field.
{print $4, $3}
39 35 102 birch 85 87 31 delta 68 77 64 ember 50 61 50 ember 16 96 92 ember 62 82 63 indigo 118 114 61 fable 86 79 112 harbor
birch 102 delta 31 ember 64 ember 50 ember 92 indigo 63 fable 61 harbor 112
36 72 42 birch 119 45 5 fable 29 68 69 ember 99 61 112 grove 86 67 117 birch 99 84 55 delta 7 94 6 fable
birch 42 fable 5 ember 69 grove 112 birch 117 delta 55 fable 6
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033072
qwen/qwen3.7-plus
awkweave-0033073
Print the last field of every input line.
{print $NF}
98 16 36 41 19 112 97 54 9 61 76 74 32 23 62 109 57 37 38 36 58 35 16 10
36 112 9 74 62 37 58 10
34 33 21 26 39 92 56 61 35 90 22 77 33 105 116 98 78 96 91 52 23 88 8 19 56 112 33 78 45 6
21 92 35 77 116 96 23 19 33 6
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033073-p1
Output the final field from each input line.
{print $NF}
98 16 36 41 19 112 97 54 9 61 76 74 32 23 62 109 57 37 38 36 58 35 16 10
36 112 9 74 62 37 58 10
34 33 21 26 39 92 56 61 35 90 22 77 33 105 116 98 78 96 91 52 23 88 8 19 56 112 33 78 45 6
21 92 35 77 116 96 23 19 33 6
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033073
qwen/qwen3.7-plus
awkweave-0033074
Print the complete records where column 1 is at most 40.
$1 <= 40
113 pending gus eli eli 115 active dina alice jules 71 paused lina kim gus 56 failed chen eli eli 96 paused farah eli lina 38 paused gus chen kim 106 failed hana hana lina
38 paused gus chen kim
59 active hana alice gus 115 pending bruno hana chen 32 ready kim alice gus 64 pending ivan dina chen 53 failed ivan ivan lina 71 active farah bruno bruno 108 ready dina alice hana
32 ready kim alice gus
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033074-p1
Display full records where the value in the first column is less than or equal to 40.
$1 <= 40
113 pending gus eli eli 115 active dina alice jules 71 paused lina kim gus 56 failed chen eli eli 96 paused farah eli lina 38 paused gus chen kim 106 failed hana hana lina
38 paused gus chen kim
59 active hana alice gus 115 pending bruno hana chen 32 ready kim alice gus 64 pending ivan dina chen 53 failed ivan ivan lina 71 active farah bruno bruno 108 ready dina alice hana
32 ready kim alice gus
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033074
qwen/qwen3.7-plus
awkweave-0033075
Show whole lines whose 2nd field is between 11 and 20, inclusive.
$2 >= 11 && $2 <= 20
juniper 9 kim failed harbor 27 gus ready fable 4 kim active harbor 1 kim active fable 26 farah pending grove 8 bruno ready ember 22 dina ready harbor 20 gus active grove 3 gus failed
harbor 20 gus active
ember 18 dina active fable 5 jules paused juniper 9 dina paused fable 24 lina paused amber 13 hana ready juniper 7 eli failed indigo 8 hana paused juniper 8 ivan closed ember 17 kim active cobalt 17 dina pending
ember 18 dina active amber 13 hana ready ember 17 kim active cobalt 17 dina pending
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033075-p1
Show entire lines where the second field falls within the inclusive range of 11 to 20.
$2 >= 11 && $2 <= 20
juniper 9 kim failed harbor 27 gus ready fable 4 kim active harbor 1 kim active fable 26 farah pending grove 8 bruno ready ember 22 dina ready harbor 20 gus active grove 3 gus failed
harbor 20 gus active
ember 18 dina active fable 5 jules paused juniper 9 dina paused fable 24 lina paused amber 13 hana ready juniper 7 eli failed indigo 8 hana paused juniper 8 ivan closed ember 17 kim active cobalt 17 dina pending
ember 18 dina active amber 13 hana ready ember 17 kim active cobalt 17 dina pending
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033075
qwen/qwen3.7-plus
awkweave-0033076
Print column 3 only for rows where column 4 is exactly failed.
$4 == "failed"{print $3}
juniper 100 kim paused ember 112 eli ready ember 51 kim ready indigo 18 hana paused juniper 100 alice failed grove 116 alice paused
alice
juniper 98 chen pending juniper 19 eli ready cobalt 83 lina failed delta 90 farah ready cobalt 48 gus closed grove 34 hana failed juniper 71 jules failed harbor 43 lina failed delta 2 chen failed juniper 82 eli ready
lina hana jules lina chen
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033076-p1
Output only the third column for rows where the fourth column is exactly 'failed'.
$4 == "failed"{print $3}
juniper 100 kim paused ember 112 eli ready ember 51 kim ready indigo 18 hana paused juniper 100 alice failed grove 116 alice paused
alice
juniper 98 chen pending juniper 19 eli ready cobalt 83 lina failed delta 90 farah ready cobalt 48 gus closed grove 34 hana failed juniper 71 jules failed harbor 43 lina failed delta 2 chen failed juniper 82 eli ready
lina hana jules lina chen
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033076
qwen/qwen3.7-plus
awkweave-0033077
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
harbor DEBUG 87 birch ERROR 97 cobalt DEBUG 57 harbor WARN 34 juniper ERROR 29 cobalt INFO 36 indigo DEBUG 51
birch ERROR 97 juniper ERROR 29
cobalt ERROR 88 cobalt WARN 76 harbor WARN 92 delta ERROR 116 juniper DEBUG 1 harbor WARN 77 ember DEBUG 61 delta DEBUG 69 ember INFO 57 harbor INFO 45
cobalt ERROR 88 delta ERROR 116
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033077-p1
Print all fields for lines where the second field starts with 'ERROR'.
$2 ~ /^ERROR/
harbor DEBUG 87 birch ERROR 97 cobalt DEBUG 57 harbor WARN 34 juniper ERROR 29 cobalt INFO 36 indigo DEBUG 51
birch ERROR 97 juniper ERROR 29
cobalt ERROR 88 cobalt WARN 76 harbor WARN 92 delta ERROR 116 juniper DEBUG 1 harbor WARN 77 ember DEBUG 61 delta DEBUG 69 ember INFO 57 harbor INFO 45
cobalt ERROR 88 delta ERROR 116
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033077
qwen/qwen3.7-plus
awkweave-0033078
Print every line except those containing the exact text harbor.
$0 !~ /harbor/
amber 108 pending harbor 120 closed delta 80 ready amber 16 active amber 108 active harbor 56 active amber 27 pending ember 116 pending ember 27 pending ember 101 closed harbor 999 active
amber 108 pending delta 80 ready amber 16 active amber 108 active amber 27 pending ember 116 pending ember 27 pending ember 101 closed
fable 113 pending cobalt 10 paused fable 17 closed grove 79 active delta 77 ready cobalt 108 ready harbor 999 active
fable 113 pending cobalt 10 paused fable 17 closed grove 79 active delta 77 ready cobalt 108 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033078-p1
Output every line that does not contain the exact string 'harbor'.
$0 !~ /harbor/
amber 108 pending harbor 120 closed delta 80 ready amber 16 active amber 108 active harbor 56 active amber 27 pending ember 116 pending ember 27 pending ember 101 closed harbor 999 active
amber 108 pending delta 80 ready amber 16 active amber 108 active amber 27 pending ember 116 pending ember 27 pending ember 101 closed
fable 113 pending cobalt 10 paused fable 17 closed grove 79 active delta 77 ready cobalt 108 ready harbor 999 active
fable 113 pending cobalt 10 paused fable 17 closed grove 79 active delta 77 ready cobalt 108 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033078
qwen/qwen3.7-plus
awkweave-0033079
Print lines 4 through 5, including both endpoints.
NR >= 4 && NR <= 5
eli amber 65 farah delta 84 alice delta 59 bruno ember 119 chen amber 16 ivan harbor 0 kim cobalt 46 kim birch 2 alice indigo 14
bruno ember 119 chen amber 16
ivan juniper 29 farah birch 110 chen indigo 82 chen birch 71 alice ember 27 eli indigo 52 lina ember 53 alice ember 5 chen amber 58 jules harbor 118
chen birch 71 alice ember 27
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033079-p1
Print lines 4 through 5, inclusive.
NR >= 4 && NR <= 5
eli amber 65 farah delta 84 alice delta 59 bruno ember 119 chen amber 16 ivan harbor 0 kim cobalt 46 kim birch 2 alice indigo 14
bruno ember 119 chen amber 16
ivan juniper 29 farah birch 110 chen indigo 82 chen birch 71 alice ember 27 eli indigo 52 lina ember 53 alice ember 5 chen amber 58 jules harbor 118
chen birch 71 alice ember 27
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033079
qwen/qwen3.7-plus
awkweave-0033080
Output only the first 3 records.
NR <= 3
chen 91 grove chen 13 ember bruno 30 harbor alice 67 cobalt lina 62 grove eli 29 indigo dina 64 ember lina 64 cobalt dina 0 juniper
chen 91 grove chen 13 ember bruno 30 harbor
ivan 77 cobalt ivan 118 juniper hana 115 cobalt alice 105 amber lina 19 ember kim 28 delta dina 57 harbor bruno 74 cobalt gus 117 grove
ivan 77 cobalt ivan 118 juniper hana 115 cobalt
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033080-p1
Output only the first 3 records.
NR <= 3
chen 91 grove chen 13 ember bruno 30 harbor alice 67 cobalt lina 62 grove eli 29 indigo dina 64 ember lina 64 cobalt dina 0 juniper
chen 91 grove chen 13 ember bruno 30 harbor
ivan 77 cobalt ivan 118 juniper hana 115 cobalt alice 105 amber lina 19 ember kim 28 delta dina 57 harbor bruno 74 cobalt gus 117 grove
ivan 77 cobalt ivan 118 juniper hana 115 cobalt
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0033080
qwen/qwen3.7-plus
awkweave-0033081
Skip the first line and print every remaining line unchanged.
NR > 1
farah 64 fable alice 91 indigo kim 8 birch chen 103 delta alice 9 cobalt jules 19 delta alice 97 harbor
alice 91 indigo kim 8 birch chen 103 delta alice 9 cobalt jules 19 delta alice 97 harbor
gus 64 juniper eli 41 grove kim 116 amber ivan 103 amber gus 59 juniper bruno 18 fable ivan 49 cobalt hana 30 birch jules 98 amber ivan 94 birch
eli 41 grove kim 116 amber ivan 103 amber gus 59 juniper bruno 18 fable ivan 49 cobalt hana 30 birch jules 98 amber ivan 94 birch
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033081-p1
Omit the first line and print all subsequent lines without modification.
NR > 1
farah 64 fable alice 91 indigo kim 8 birch chen 103 delta alice 9 cobalt jules 19 delta alice 97 harbor
alice 91 indigo kim 8 birch chen 103 delta alice 9 cobalt jules 19 delta alice 97 harbor
gus 64 juniper eli 41 grove kim 116 amber ivan 103 amber gus 59 juniper bruno 18 fable ivan 49 cobalt hana 30 birch jules 98 amber ivan 94 birch
eli 41 grove kim 116 amber ivan 103 amber gus 59 juniper bruno 18 fable ivan 49 cobalt hana 30 birch jules 98 amber ivan 94 birch
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033081
qwen/qwen3.7-plus
awkweave-0033082
Count how many records have ready in column 2. Print 0 if there are none.
$2 == "ready"{n++}END{print n+0}
chen failed 29 gus closed 1 dina ready 42 lina failed 92 bruno pending 37 gus paused 88 chen active 114
1
jules active 82 kim pending 8 chen ready 89 kim ready 15 lina ready 62 eli ready 62 ivan pending 61 bruno paused 117 chen paused 113
4
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033082-p1
Count the number of records with 'ready' in the second column; output 0 if none are found.
$2 == "ready"{n++}END{print n+0}
chen failed 29 gus closed 1 dina ready 42 lina failed 92 bruno pending 37 gus paused 88 chen active 114
1
jules active 82 kim pending 8 chen ready 89 kim ready 15 lina ready 62 eli ready 62 ivan pending 61 bruno paused 117 chen paused 113
4
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033082
qwen/qwen3.7-plus
awkweave-0033083
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
14 juniper ivan 9 indigo lina 14 fable bruno 17 fable ivan 20 birch jules 28 amber farah 7 amber hana
109
11 fable chen 9 amber ivan 2 birch alice 3 ember lina 8 cobalt gus 7 ember alice 7 cobalt lina 21 ember ivan 28 juniper jules 5 amber farah
101
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033083-p1
Compute and display the sum of all integer values in the first column.
{s+=$1}END{print s+0}
14 juniper ivan 9 indigo lina 14 fable bruno 17 fable ivan 20 birch jules 28 amber farah 7 amber hana
109
11 fable chen 9 amber ivan 2 birch alice 3 ember lina 8 cobalt gus 7 ember alice 7 cobalt lina 21 ember ivan 28 juniper jules 5 amber farah
101
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033083
qwen/qwen3.7-plus
awkweave-0033084
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
ivan 16 juniper eli 25 cobalt alice 13 grove bruno 11 harbor alice 11 harbor dina 27 cobalt kim 24 birch gus 16 fable ivan 27 fable
18.89
hana 19 grove alice 8 amber ivan 23 fable kim 29 fable alice 30 grove farah 25 juniper
22.33
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033084-p1
Calculate the average of the values in column 2 and display the result rounded to two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
ivan 16 juniper eli 25 cobalt alice 13 grove bruno 11 harbor alice 11 harbor dina 27 cobalt kim 24 birch gus 16 fable ivan 27 fable
18.89
hana 19 grove alice 8 amber ivan 23 fable kim 29 fable alice 30 grove farah 25 juniper
22.33
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033084
qwen/qwen3.7-plus
awkweave-0033085
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
cobalt ivan 26 amber gus 13 harbor bruno 11 cobalt jules 15 cobalt dina 11 amber alice 3 juniper alice 16 grove dina 15 amber jules 29 indigo bruno 9
3
grove jules 10 fable lina 9 fable hana 3 indigo ivan 26 birch kim 2 juniper eli 11 grove dina 10 fable dina 11
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033085-p1
Identify and output the minimum numeric value found in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
cobalt ivan 26 amber gus 13 harbor bruno 11 cobalt jules 15 cobalt dina 11 amber alice 3 juniper alice 16 grove dina 15 amber jules 29 indigo bruno 9
3
grove jules 10 fable lina 9 fable hana 3 indigo ivan 26 birch kim 2 juniper eli 11 grove dina 10 fable dina 11
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033085
qwen/qwen3.7-plus
awkweave-0033086
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
birch farah 23 cobalt chen 17 grove bruno 14 fable lina 23 cobalt lina 27 amber lina 1 harbor alice 22 ember alice 16 cobalt gus 29
29
harbor chen 4 juniper alice 21 indigo ivan 23 amber kim 4 juniper alice 13 juniper chen 13 grove alice 18 indigo bruno 13 indigo alice 7 amber ivan 10
23
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033086-p1
Identify and output the maximum numeric value found in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
birch farah 23 cobalt chen 17 grove bruno 14 fable lina 23 cobalt lina 27 amber lina 1 harbor alice 22 ember alice 16 cobalt gus 29
29
harbor chen 4 juniper alice 21 indigo ivan 23 amber kim 4 juniper alice 13 juniper chen 13 grove alice 18 indigo bruno 13 indigo alice 7 amber ivan 10
23
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033086
qwen/qwen3.7-plus
awkweave-0033087
Count all input records and print the total.
END{print NR}
kim 3 farah 41 hana 111 bruno 75 alice 109 farah 26
6
chen 81 kim 28 kim 102 lina 96 farah 7 chen 89 ivan 37
7
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033087-p1
Count the total number of input records and print the final count.
END{print NR}
kim 3 farah 41 hana 111 bruno 75 alice 109 farah 26
6
chen 81 kim 28 kim 102 lina 96 farah 7 chen 89 ivan 37
7
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033087
qwen/qwen3.7-plus
awkweave-0033088
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
hana fable 54 hana cobalt 100 eli indigo 65 hana ember 114 chen juniper 24 lina grove 87 alice cobalt 57 kim birch 98 hana cobalt 100 hana delta 91 chen cobalt 86
hana fable 54 hana cobalt 100 eli indigo 65 hana ember 114 chen juniper 24 lina grove 87 alice cobalt 57 kim birch 98 hana delta 91 chen cobalt 86
ivan juniper 73 hana cobalt 32 bruno amber 25 alice grove 55 hana cobalt 32 dina grove 65 ivan amber 100
ivan juniper 73 hana cobalt 32 bruno amber 25 alice grove 55 dina grove 65 ivan amber 100
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033088-p1
Eliminate duplicate lines by keeping only the first instance of each, maintaining the original sequence.
!seen[$0]++
hana fable 54 hana cobalt 100 eli indigo 65 hana ember 114 chen juniper 24 lina grove 87 alice cobalt 57 kim birch 98 hana cobalt 100 hana delta 91 chen cobalt 86
hana fable 54 hana cobalt 100 eli indigo 65 hana ember 114 chen juniper 24 lina grove 87 alice cobalt 57 kim birch 98 hana delta 91 chen cobalt 86
ivan juniper 73 hana cobalt 32 bruno amber 25 alice grove 55 hana cobalt 32 dina grove 65 ivan amber 100
ivan juniper 73 hana cobalt 32 bruno amber 25 alice grove 55 dina grove 65 ivan amber 100
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033088
qwen/qwen3.7-plus
awkweave-0033089
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
farah juniper 34 farah indigo 7 farah delta 93 ivan indigo 84 hana ember 37 kim grove 87 alice amber 69 dina fable 80 farah fable 8 alice grove 56
farah juniper 34 ivan indigo 84 hana ember 37 kim grove 87 alice amber 69 dina fable 80
eli ember 29 jules juniper 13 dina birch 63 ivan harbor 23 jules ember 17 dina grove 30
eli ember 29 jules juniper 13 dina birch 63 ivan harbor 23
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033089-p1
Retain only the first occurrence for each unique value in column 1, preserving the initial input order.
!seen[$1]++
farah juniper 34 farah indigo 7 farah delta 93 ivan indigo 84 hana ember 37 kim grove 87 alice amber 69 dina fable 80 farah fable 8 alice grove 56
farah juniper 34 ivan indigo 84 hana ember 37 kim grove 87 alice amber 69 dina fable 80
eli ember 29 jules juniper 13 dina birch 63 ivan harbor 23 jules ember 17 dina grove 30
eli ember 29 jules juniper 13 dina birch 63 ivan harbor 23
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033089
qwen/qwen3.7-plus
awkweave-0033100
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta amber 79 beta birch 37 delta harbor 44 delta harbor 19 beta delta 5 gamma ember 0 beta grove 0 beta ember 101 delta harbor 63
beta 5 delta 3
beta ember 1 gamma cobalt 95 alpha delta 82 alpha cobalt 97 beta cobalt 58 alpha cobalt 44 beta delta 47 gamma harbor 38 alpha grove 76 beta fable 67
beta 4 gamma 2 alpha 4
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033100-p1
List each value from column 1 that appears more than once, along with its frequency, ordered by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta amber 79 beta birch 37 delta harbor 44 delta harbor 19 beta delta 5 gamma ember 0 beta grove 0 beta ember 101 delta harbor 63
beta 5 delta 3
beta ember 1 gamma cobalt 95 alpha delta 82 alpha cobalt 97 beta cobalt 58 alpha cobalt 44 beta delta 47 gamma harbor 38 alpha grove 76 beta fable 67
beta 4 gamma 2 alpha 4
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033100
qwen/qwen3.7-plus
awkweave-0033101
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"]}
display_name region score state r001 jules 29 paused r002 farah 26 paused r003 dina 9 closed r004 eli 9 paused r005 farah 24 pending r006 hana 29 active
paused paused closed paused pending active
display_name region score state r001 ivan 14 closed r002 eli 9 paused r003 ivan 15 active r004 eli 2 ready r005 jules 28 ready r006 lina 11 paused r007 bruno 12 active r008 hana 25 closed r009 hana 28 active r010 farah 5 closed
closed paused active ready ready paused active closed active closed
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033101-p1
Skip the header row and output the state column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
display_name region score state r001 jules 29 paused r002 farah 26 paused r003 dina 9 closed r004 eli 9 paused r005 farah 24 pending r006 hana 29 active
paused paused closed paused pending active
display_name region score state r001 ivan 14 closed r002 eli 9 paused r003 ivan 15 active r004 eli 2 ready r005 jules 28 ready r006 lina 11 paused r007 bruno 12 active r008 hana 25 closed r009 hana 28 active r010 farah 5 closed
closed paused active ready ready paused active closed active closed
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033101
qwen/qwen3.7-plus
awkweave-0033102
The first row is a header. Print display_name for data rows whose score is greater than 8.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>8{print $h["display_name"]}
record_id display_name score state r001 ivan 7 closed r002 dina 28 ready r003 gus 18 closed r004 gus 17 pending r005 gus 5 pending r006 hana 1 pending r007 alice 6 active
dina gus gus
record_id display_name score state r001 chen 6 ready r002 lina 26 closed r003 hana 23 closed r004 chen 7 failed r005 jules 12 paused r006 dina 9 pending r007 chen 1 failed
lina hana jules dina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033102-p1
Ignoring the header, print the display_name field for any data row where the score is greater than 8.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>8{print $h["display_name"]}
record_id display_name score state r001 ivan 7 closed r002 dina 28 ready r003 gus 18 closed r004 gus 17 pending r005 gus 5 pending r006 hana 1 pending r007 alice 6 active
dina gus gus
record_id display_name score state r001 chen 6 ready r002 lina 26 closed r003 hana 23 closed r004 chen 7 failed r005 jules 12 paused r006 dina 9 pending r007 chen 1 failed
lina hana jules dina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033102
qwen/qwen3.7-plus
awkweave-0033103
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
kim 20 failed farah 14 paused alice 24 active eli 6 ready chen 9 paused eli 22 failed
kim farah alice eli chen eli
dina 4 pending lina 26 failed ivan 26 closed alice 6 pending lina 13 failed dina 25 ready farah 11 closed kim 27 active eli 23 closed jules 24 active
dina lina ivan alice lina dina farah kim eli jules
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033103-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
kim 20 failed farah 14 paused alice 24 active eli 6 ready chen 9 paused eli 22 failed
kim farah alice eli chen eli
dina 4 pending lina 26 failed ivan 26 closed alice 6 pending lina 13 failed dina 25 ready farah 11 closed kim 27 active eli 23 closed jules 24 active
dina lina ivan alice lina dina farah kim eli jules
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0033103
qwen/qwen3.7-plus
awkweave-0033104
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 17.
BEGIN{FS=OFS=","}$2>17{print $1}
gus,18,failed jules,10,failed hana,12,paused gus,22,paused chen,4,paused chen,6,failed
gus gus
jules,6,pending bruno,10,ready gus,15,active lina,27,active dina,3,paused alice,9,ready ivan,3,ready
lina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033104-p1
For simple comma-separated input without quoted fields, print the first column if the second column value is greater than 17.
BEGIN{FS=OFS=","}$2>17{print $1}
gus,18,failed jules,10,failed hana,12,paused gus,22,paused chen,4,paused chen,6,failed
gus gus
jules,6,pending bruno,10,ready gus,15,active lina,27,active dina,3,paused alice,9,ready ivan,3,ready
lina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033104
qwen/qwen3.7-plus
awkweave-0033105
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
hana indigo 103 kim delta 61 chen amber 21 ivan harbor 112 kim juniper 43 gus indigo 40 alice juniper 57 lina amber 81 bruno harbor 54
hana indigo 103 kim delta 61 chen amber 21 ivan harbor 112 kim juniper 43 gus indigo 40 alice juniper 57 lina amber 81 bruno harbor 54
hana grove 9 gus grove 106 alice harbor 9 jules birch 115 farah birch 107 hana cobalt 66
hana grove 9 gus grove 106 alice harbor 9 jules birch 115 farah birch 107 hana cobalt 66
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033105-p1
Strip leading and trailing whitespace from each line and replace consecutive internal whitespace characters with a single space.
{$1=$1;print}
hana indigo 103 kim delta 61 chen amber 21 ivan harbor 112 kim juniper 43 gus indigo 40 alice juniper 57 lina amber 81 bruno harbor 54
hana indigo 103 kim delta 61 chen amber 21 ivan harbor 112 kim juniper 43 gus indigo 40 alice juniper 57 lina amber 81 bruno harbor 54
hana grove 9 gus grove 106 alice harbor 9 jules birch 115 farah birch 107 hana cobalt 66
hana grove 9 gus grove 106 alice harbor 9 jules birch 115 farah birch 107 hana cobalt 66
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033105
qwen/qwen3.7-plus
awkweave-0033106
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah cobalt 57 ready ivan grove 81 active ivan delta 113 active bruno harbor 73 failed hana cobalt 71 failed lina birch 52 paused hana birch 37 ready
bruno harbor 73 failed
hana ember 118 failed bruno amber 28 pending dina juniper 103 paused farah indigo 60 ready bruno amber 5 active alice ember 48 paused lina ember 57 pending gus indigo 98 active kim amber 62 ready
dina juniper 103 paused
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033106-p1
Output the longest line from the input, selecting the first one encountered if multiple lines share the maximum length.
{if(length($0)>length(best))best=$0}END{print best}
farah cobalt 57 ready ivan grove 81 active ivan delta 113 active bruno harbor 73 failed hana cobalt 71 failed lina birch 52 paused hana birch 37 ready
bruno harbor 73 failed
hana ember 118 failed bruno amber 28 pending dina juniper 103 paused farah indigo 60 ready bruno amber 5 active alice ember 48 paused lina ember 57 pending gus indigo 98 active kim amber 62 ready
dina juniper 103 paused
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033106
qwen/qwen3.7-plus
awkweave-0033107
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
lina 89 jules 111 jules 26 eli 37 farah 95 eli 23 kim 36 dina 38 bruno 89
jules 111 farah 95 dina 38
jules 65 lina 69 jules 111 hana 115 alice 55 lina 117 dina 36 eli 78 dina 100
lina 69 alice 55 eli 78
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033107-p1
Print lines 2, 5, 8, and so on, effectively outputting every third line starting from the second.
NR%3==2
lina 89 jules 111 jules 26 eli 37 farah 95 eli 23 kim 36 dina 38 bruno 89
jules 111 farah 95 dina 38
jules 65 lina 69 jules 111 hana 115 alice 55 lina 117 dina 36 eli 78 dina 100
lina 69 alice 55 eli 78
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033107
qwen/qwen3.7-plus
awkweave-0033108
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha juniper 47 alpha juniper 75 beta juniper 60 beta fable 29 alpha fable 23 alpha amber 60 gamma fable 64 gamma ember 85
4
gamma harbor 42 alpha grove 30 delta amber 69 beta fable 36 alpha cobalt 74 beta juniper 89
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033108-p1
Calculate and display only the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
alpha juniper 47 alpha juniper 75 beta juniper 60 beta fable 29 alpha fable 23 alpha amber 60 gamma fable 64 gamma ember 85
4
gamma harbor 42 alpha grove 30 delta amber 69 beta fable 36 alpha cobalt 74 beta juniper 89
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033108
qwen/qwen3.7-plus
awkweave-0033109
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 23 0 jules 12 20 bruno 19 3 farah 24 7 gus 25 1 dina 26 10 alice 6 6
jules 0.60 bruno 6.33 farah 3.43 gus 25.00 dina 2.60 alice 1.00
dina 21 0 alice 25 13 alice 7 19 kim 11 10 farah 1 13 lina 28 14 alice 30 20 bruno 9 2
alice 1.92 alice 0.37 kim 1.10 farah 0.08 lina 2.00 alice 1.50 bruno 4.50
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033109-p1
For each row where the third column is not zero, print the first column followed by 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}
alice 23 0 jules 12 20 bruno 19 3 farah 24 7 gus 25 1 dina 26 10 alice 6 6
jules 0.60 bruno 6.33 farah 3.43 gus 25.00 dina 2.60 alice 1.00
dina 21 0 alice 25 13 alice 7 19 kim 11 10 farah 1 13 lina 28 14 alice 30 20 bruno 9 2
alice 1.92 alice 0.37 kim 1.10 farah 0.08 lina 2.00 alice 1.50 bruno 4.50
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033109
qwen/qwen3.7-plus
awkweave-0033110
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 25 ivan grove 7 alice delta 3 dina juniper 20 lina delta 23 jules cobalt 20 kim juniper 10 hana fable 5 ivan juniper 6 gus juniper 25
eli indigo 25 gus juniper 25 lina delta 23
alice ember 17 gus ember 21 lina birch 3 gus grove 21 eli amber 10 alice indigo 13 gus juniper 9 hana harbor 1
gus ember 21 gus grove 21 alice ember 17
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0033110-p1
Display the full records for the top three 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]}
eli indigo 25 ivan grove 7 alice delta 3 dina juniper 20 lina delta 23 jules cobalt 20 kim juniper 10 hana fable 5 ivan juniper 6 gus juniper 25
eli indigo 25 gus juniper 25 lina delta 23
alice ember 17 gus ember 21 lina birch 3 gus grove 21 eli amber 10 alice indigo 13 gus juniper 9 hana harbor 1
gus ember 21 gus grove 21 alice ember 17
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0033110
qwen/qwen3.7-plus
awkweave-0033111
For each line, output fields 5 and 2, in that order.
{print $5, $2}
delta harbor kim dina delta ember birch cobalt kim farah grove ember ember juniper lina alice fable harbor cobalt harbor eli farah fable fable harbor juniper eli eli ember ember grove juniper farah chen delta harbor indigo fable kim dina fable fable
delta harbor grove cobalt fable juniper fable harbor ember juniper delta juniper fable fable
indigo birch alice farah delta indigo indigo juniper alice ivan cobalt juniper indigo grove dina gus grove birch harbor cobalt hana chen birch indigo grove delta jules alice indigo juniper grove grove farah alice birch harbor harbor birch lina kim cobalt juniper
delta birch cobalt juniper grove grove birch cobalt indigo delta birch grove cobalt birch
project_fields
1
train
original-grammar
CC-BY-4.0
null
null