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-0005050-p1
For each row, display field 1 followed by the combined total of fields 2 and 3.
{print $1,$2+$3}
gus 11 21 amber bruno 29 16 cobalt jules 13 17 amber lina 18 15 birch kim 5 21 harbor gus 20 3 indigo jules 25 4 harbor bruno 16 28 fable chen 25 20 fable hana 7 15 harbor
gus 32 bruno 45 jules 30 lina 33 kim 26 gus 23 jules 29 bruno 44 chen 45 hana 22
dina 13 14 fable gus 1 4 grove eli 26 26 cobalt jules 5 17 delta chen 19 16 indigo farah 21 22 juniper alice 28 25 indigo chen 5 7 grove alice 15 18 fable kim 13 5 delta
dina 27 gus 5 eli 52 jules 22 chen 35 farah 43 alice 53 chen 12 alice 33 kim 18
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005050
qwen/qwen3.7-plus
awkweave-0005051
Print column 1 and pass when column 2 is at least 23; otherwise print fail.
{print $1,($2>=23?"pass":"fail")}
eli 6 bruno 20 gus 2 ivan 3 lina 30 farah 19
eli fail bruno fail gus fail ivan fail lina pass farah fail
chen 15 jules 24 jules 9 alice 5 alice 30 gus 19 gus 9 lina 26
chen fail jules pass jules fail alice fail alice pass gus fail gus fail lina pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005051-p1
Output column 1 paired with 'pass' if column 2 is greater than or equal to 23; otherwise, output 'fail'.
{print $1,($2>=23?"pass":"fail")}
eli 6 bruno 20 gus 2 ivan 3 lina 30 farah 19
eli fail bruno fail gus fail ivan fail lina pass farah fail
chen 15 jules 24 jules 9 alice 5 alice 30 gus 19 gus 9 lina 26
chen fail jules pass jules fail alice fail alice pass gus fail gus fail lina pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005051
qwen/qwen3.7-plus
awkweave-0005052
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
alice birch 96 ivan juniper 113 bruno cobalt 38 dina fable 45 farah cobalt 88 ivan cobalt 59 farah birch 66 dina indigo 4 kim cobalt 103 dina grove 71
BIRCH JUNIPER COBALT FABLE COBALT COBALT BIRCH INDIGO COBALT GROVE
farah ember 58 gus cobalt 7 hana indigo 109 dina fable 95 eli grove 31 farah juniper 80 lina fable 88
EMBER COBALT INDIGO FABLE GROVE JUNIPER FABLE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005052-p1
Transform column 2 to uppercase letters and display only this modified column.
{print toupper($2)}
alice birch 96 ivan juniper 113 bruno cobalt 38 dina fable 45 farah cobalt 88 ivan cobalt 59 farah birch 66 dina indigo 4 kim cobalt 103 dina grove 71
BIRCH JUNIPER COBALT FABLE COBALT COBALT BIRCH INDIGO COBALT GROVE
farah ember 58 gus cobalt 7 hana indigo 109 dina fable 95 eli grove 31 farah juniper 80 lina fable 88
EMBER COBALT INDIGO FABLE GROVE JUNIPER FABLE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005052
qwen/qwen3.7-plus
awkweave-0005053
From column 1, print 4 characters starting at character 1.
{print substr($1,1,4)}
harbor 78 fable 91 juniper 64 birch 60 amber 55 amber 67 juniper 106
harb fabl juni birc ambe ambe juni
indigo 20 delta 4 cobalt 21 grove 22 birch 105 indigo 116 ember 66 indigo 86 juniper 96 cobalt 45
indi delt coba grov birc indi embe indi juni coba
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005053-p1
Extract and print the first 4 characters from column 1, starting at position 1.
{print substr($1,1,4)}
harbor 78 fable 91 juniper 64 birch 60 amber 55 amber 67 juniper 106
harb fabl juni birc ambe ambe juni
indigo 20 delta 4 cobalt 21 grove 22 birch 105 indigo 116 ember 66 indigo 86 juniper 96 cobalt 45
indi delt coba grov birc indi embe indi juni coba
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005053
qwen/qwen3.7-plus
awkweave-0005054
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
indigo_indigo 111 juniper_amber 14 cobalt_juniper 100 indigo_indigo 69 fable_delta 76 cobalt_cobalt 70 cobalt_harbor 13 indigo_birch 53
indigo indigo juniper amber cobalt juniper indigo indigo fable delta cobalt cobalt cobalt harbor indigo birch
cobalt_grove 26 birch_juniper 64 grove_ember 55 cobalt_birch 55 harbor_juniper 104 cobalt_delta 49 amber_ember 109 ember_fable 102 grove_amber 50 ember_grove 28
cobalt grove birch juniper grove ember cobalt birch harbor juniper cobalt delta amber ember ember fable grove amber ember grove
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005054-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
indigo_indigo 111 juniper_amber 14 cobalt_juniper 100 indigo_indigo 69 fable_delta 76 cobalt_cobalt 70 cobalt_harbor 13 indigo_birch 53
indigo indigo juniper amber cobalt juniper indigo indigo fable delta cobalt cobalt cobalt harbor indigo birch
cobalt_grove 26 birch_juniper 64 grove_ember 55 cobalt_birch 55 harbor_juniper 104 cobalt_delta 49 amber_ember 109 ember_fable 102 grove_amber 50 ember_grove 28
cobalt grove birch juniper grove ember cobalt birch harbor juniper cobalt delta amber ember ember fable grove amber ember grove
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005054
qwen/qwen3.7-plus
awkweave-0005055
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)}
dina ember 98 active chen fable 44 failed farah delta 44 closed ivan juniper 62 pending alice ember 75 ready lina birch 84 closed dina harbor 103 pending ivan grove 66 failed lina fable 97 closed dina juniper 38 paused
active 98 ember dina failed 44 fable chen closed 44 delta farah pending 62 juniper ivan ready 75 ember alice closed 84 birch lina pending 103 harbor dina failed 66 grove ivan closed 97 fable lina paused 38 juniper dina
ivan grove 99 pending alice cobalt 3 paused farah delta 33 ready jules birch 61 closed kim fable 100 failed lina fable 51 paused alice delta 45 active gus amber 27 active gus harbor 11 pending hana ember 83 paused
pending 99 grove ivan paused 3 cobalt alice ready 33 delta farah closed 61 birch jules failed 100 fable kim paused 51 fable lina active 45 delta alice active 27 amber gus pending 11 harbor gus paused 83 ember hana
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005055-p1
Invert the sequence of fields on each line and print the entire set of fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
dina ember 98 active chen fable 44 failed farah delta 44 closed ivan juniper 62 pending alice ember 75 ready lina birch 84 closed dina harbor 103 pending ivan grove 66 failed lina fable 97 closed dina juniper 38 paused
active 98 ember dina failed 44 fable chen closed 44 delta farah pending 62 juniper ivan ready 75 ember alice closed 84 birch lina pending 103 harbor dina failed 66 grove ivan closed 97 fable lina paused 38 juniper dina
ivan grove 99 pending alice cobalt 3 paused farah delta 33 ready jules birch 61 closed kim fable 100 failed lina fable 51 paused alice delta 45 active gus amber 27 active gus harbor 11 pending hana ember 83 paused
pending 99 grove ivan paused 3 cobalt alice ready 33 delta farah closed 61 birch jules failed 100 fable kim paused 51 fable lina active 45 delta alice active 27 amber gus pending 11 harbor gus paused 83 ember hana
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005055
qwen/qwen3.7-plus
awkweave-0005056
Print the number of whitespace-separated fields on each line.
{print NF}
ivan fable 63 active bruno amber 24 pending kim indigo 2 ready farah delta 115 active gus juniper 67 paused alice delta 6 pending gus harbor 58 ready dina amber 24 ready kim ember 45 ready
4 4 4 4 4 4 4 4 4
chen birch 103 closed chen juniper 54 paused kim indigo 39 ready farah indigo 93 failed jules ember 81 failed hana birch 62 ready ivan indigo 53 paused hana ember 87 ready
4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005056-p1
Display the count of whitespace-delimited fields present on each line.
{print NF}
ivan fable 63 active bruno amber 24 pending kim indigo 2 ready farah delta 115 active gus juniper 67 paused alice delta 6 pending gus harbor 58 ready dina amber 24 ready kim ember 45 ready
4 4 4 4 4 4 4 4 4
chen birch 103 closed chen juniper 54 paused kim indigo 39 ready farah indigo 93 failed jules ember 81 failed hana birch 62 ready ivan indigo 53 paused hana ember 87 ready
4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005056
qwen/qwen3.7-plus
awkweave-0005057
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]]}
chen beta 69 eli delta 5 ivan gamma 111 jules delta 119 alice alpha 35 bruno beta 42 eli beta 87
beta 3 delta 2 gamma 1 alpha 1
chen alpha 100 jules alpha 11 jules beta 63 alice delta 55 lina beta 91 bruno beta 88 chen beta 87 chen alpha 34 hana gamma 70
alpha 3 beta 4 delta 1 gamma 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005057-p1
Tally the number of records for each distinct value in column 2, listing each value and its frequency in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
chen beta 69 eli delta 5 ivan gamma 111 jules delta 119 alice alpha 35 bruno beta 42 eli beta 87
beta 3 delta 2 gamma 1 alpha 1
chen alpha 100 jules alpha 11 jules beta 63 alice delta 55 lina beta 91 bruno beta 88 chen beta 87 chen alpha 34 hana gamma 70
alpha 3 beta 4 delta 1 gamma 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005057
qwen/qwen3.7-plus
awkweave-0005058
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]]}
bruno gamma 9 alice gamma 23 gus beta 19 eli delta 1 farah beta 10 jules delta 9 farah beta 24 jules gamma 19
gamma 51 beta 53 delta 10
jules delta 30 farah alpha 3 chen gamma 9 hana beta 10 farah alpha 24 gus delta 1 hana delta 20 dina delta 30 gus delta 29
delta 110 alpha 27 gamma 9 beta 10
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005058-p1
Calculate the sum of column 3 grouped by categories in column 2, presenting the results in the 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]]}
bruno gamma 9 alice gamma 23 gus beta 19 eli delta 1 farah beta 10 jules delta 9 farah beta 24 jules gamma 19
gamma 51 beta 53 delta 10
jules delta 30 farah alpha 3 chen gamma 9 hana beta 10 farah alpha 24 gus delta 1 hana delta 20 dina delta 30 gus delta 29
delta 110 alpha 27 gamma 9 beta 10
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005058
qwen/qwen3.7-plus
awkweave-0005059
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
delta delta 46 alpha fable 16 delta amber 2 beta ember 104 gamma cobalt 40 gamma harbor 43 delta cobalt 42 delta harbor 29 beta grove 86
delta 4 beta 2 gamma 2
beta cobalt 34 delta fable 94 beta delta 84 beta delta 95 gamma harbor 77 alpha amber 112
beta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005059-p1
List each duplicate value from column 1 along with its occurrence count, 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]]}
delta delta 46 alpha fable 16 delta amber 2 beta ember 104 gamma cobalt 40 gamma harbor 43 delta cobalt 42 delta harbor 29 beta grove 86
delta 4 beta 2 gamma 2
beta cobalt 34 delta fable 94 beta delta 84 beta delta 95 gamma harbor 77 alpha amber 112
beta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005059
qwen/qwen3.7-plus
awkweave-0005060
The first row is a header. Print the display_name column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
record_id region display_name score r001 kim 1 ready r002 eli 14 failed r003 jules 4 paused r004 alice 23 closed r005 gus 13 ready r006 gus 28 closed r007 gus 21 paused r008 kim 18 active r009 jules 27 active
1 14 4 23 13 28 21 18 27
record_id region display_name score r001 alice 27 ready r002 lina 10 failed r003 alice 25 active r004 dina 12 ready r005 dina 27 ready r006 bruno 5 paused r007 dina 26 failed r008 eli 1 paused r009 lina 17 failed r010 ivan 2 pending
27 10 25 12 27 5 26 1 17 2
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005060-p1
Treat the first line as a header and output the display_name field for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
record_id region display_name score r001 kim 1 ready r002 eli 14 failed r003 jules 4 paused r004 alice 23 closed r005 gus 13 ready r006 gus 28 closed r007 gus 21 paused r008 kim 18 active r009 jules 27 active
1 14 4 23 13 28 21 18 27
record_id region display_name score r001 alice 27 ready r002 lina 10 failed r003 alice 25 active r004 dina 12 ready r005 dina 27 ready r006 bruno 5 paused r007 dina 26 failed r008 eli 1 paused r009 lina 17 failed r010 ivan 2 pending
27 10 25 12 27 5 26 1 17 2
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005060
qwen/qwen3.7-plus
awkweave-0005061
The first row is a header. Print display_name for data rows whose score is greater than 22.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]}
record_id display_name score state r001 kim 14 active r002 bruno 5 pending r003 chen 27 closed r004 chen 4 failed r005 gus 17 active r006 farah 16 active r007 kim 6 active
chen
record_id display_name score state r001 hana 5 pending r002 lina 4 ready r003 chen 1 pending r004 eli 10 failed r005 gus 26 ready r006 gus 1 paused r007 gus 13 active
gus
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005061-p1
With the first row serving as a header, output the display_name for any data row where the score exceeds 22.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]}
record_id display_name score state r001 kim 14 active r002 bruno 5 pending r003 chen 27 closed r004 chen 4 failed r005 gus 17 active r006 farah 16 active r007 kim 6 active
chen
record_id display_name score state r001 hana 5 pending r002 lina 4 ready r003 chen 1 pending r004 eli 10 failed r005 gus 26 ready r006 gus 1 paused r007 gus 13 active
gus
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005061
qwen/qwen3.7-plus
awkweave-0005062
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
eli 13 pending eli 8 failed dina 11 failed gus 18 pending lina 21 pending jules 2 paused gus 5 failed chen 6 paused chen 24 active eli 27 ready
eli eli dina gus lina jules gus chen chen eli
farah 16 paused ivan 12 pending bruno 18 active bruno 12 failed ivan 6 ready chen 19 closed
farah ivan bruno bruno ivan chen
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005062-p1
Given tab-separated input, extract and print the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
eli 13 pending eli 8 failed dina 11 failed gus 18 pending lina 21 pending jules 2 paused gus 5 failed chen 6 paused chen 24 active eli 27 ready
eli eli dina gus lina jules gus chen chen eli
farah 16 paused ivan 12 pending bruno 18 active bruno 12 failed ivan 6 ready chen 19 closed
farah ivan bruno bruno ivan chen
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005062
qwen/qwen3.7-plus
awkweave-0005063
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 12.
BEGIN{FS=OFS=","}$2>12{print $1}
kim,19,closed lina,18,closed ivan,9,pending gus,17,ready gus,18,pending kim,10,pending
kim lina gus gus
alice,24,active lina,7,failed gus,25,pending farah,21,ready gus,20,ready alice,25,closed dina,8,paused
alice gus farah gus alice
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005063-p1
For simple comma-separated input without quoted commas, print the first column only if the second column is greater than 12.
BEGIN{FS=OFS=","}$2>12{print $1}
kim,19,closed lina,18,closed ivan,9,pending gus,17,ready gus,18,pending kim,10,pending
kim lina gus gus
alice,24,active lina,7,failed gus,25,pending farah,21,ready gus,20,ready alice,25,closed dina,8,paused
alice gus farah gus alice
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005063
qwen/qwen3.7-plus
awkweave-0005064
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina delta 5 eli cobalt 39 ivan grove 61 dina delta 108 bruno birch 64 bruno harbor 70 gus amber 26 gus fable 2 ivan ember 0
lina delta 5 eli cobalt 39 ivan grove 61 dina delta 108 bruno birch 64 bruno harbor 70 gus amber 26 gus fable 2 ivan ember 0
jules ember 70 hana indigo 106 alice cobalt 49 jules birch 74 gus cobalt 120 gus ember 12 ivan juniper 119
jules ember 70 hana indigo 106 alice cobalt 49 jules birch 74 gus cobalt 120 gus ember 12 ivan juniper 119
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005064-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
lina delta 5 eli cobalt 39 ivan grove 61 dina delta 108 bruno birch 64 bruno harbor 70 gus amber 26 gus fable 2 ivan ember 0
lina delta 5 eli cobalt 39 ivan grove 61 dina delta 108 bruno birch 64 bruno harbor 70 gus amber 26 gus fable 2 ivan ember 0
jules ember 70 hana indigo 106 alice cobalt 49 jules birch 74 gus cobalt 120 gus ember 12 ivan juniper 119
jules ember 70 hana indigo 106 alice cobalt 49 jules birch 74 gus cobalt 120 gus ember 12 ivan juniper 119
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005064
qwen/qwen3.7-plus
awkweave-0005065
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
eli ember 80 failed lina amber 64 active hana amber 77 pending ivan fable 46 failed eli indigo 103 ready alice indigo 23 ready lina grove 109 pending hana amber 118 failed dina ember 3 ready alice fable 103 paused
lina grove 109 pending
jules amber 8 paused gus delta 120 failed chen delta 22 paused alice amber 119 pending ivan indigo 71 pending chen delta 9 active chen ember 81 pending jules indigo 62 active gus indigo 99 closed
alice amber 119 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005065-p1
Identify and output the longest line from the input; in case of a tie, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
eli ember 80 failed lina amber 64 active hana amber 77 pending ivan fable 46 failed eli indigo 103 ready alice indigo 23 ready lina grove 109 pending hana amber 118 failed dina ember 3 ready alice fable 103 paused
lina grove 109 pending
jules amber 8 paused gus delta 120 failed chen delta 22 paused alice amber 119 pending ivan indigo 71 pending chen delta 9 active chen ember 81 pending jules indigo 62 active gus indigo 99 closed
alice amber 119 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005065
qwen/qwen3.7-plus
awkweave-0005066
Print every 4th line starting at line 4 (then line 8, and so on).
NR%4==0
alice 67 hana 99 gus 51 alice 65 ivan 36 chen 4 lina 2 alice 76
alice 65 alice 76
lina 30 kim 21 kim 113 alice 116 eli 96 bruno 6 gus 98
alice 116
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005066-p1
Output every fourth line, beginning with line 4 (i.e., lines 4, 8, 12, etc.).
NR%4==0
alice 67 hana 99 gus 51 alice 65 ivan 36 chen 4 lina 2 alice 76
alice 65 alice 76
lina 30 kim 21 kim 113 alice 116 eli 96 bruno 6 gus 98
alice 116
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005066
qwen/qwen3.7-plus
awkweave-0005067
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta grove 70 delta cobalt 64 delta grove 54 beta cobalt 110 gamma grove 22 alpha juniper 77 delta harbor 11 alpha juniper 44
4
delta indigo 75 delta ember 72 gamma indigo 72 gamma indigo 57 delta delta 99 alpha amber 83 alpha harbor 76 beta cobalt 48
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005067-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 grove 70 delta cobalt 64 delta grove 54 beta cobalt 110 gamma grove 22 alpha juniper 77 delta harbor 11 alpha juniper 44
4
delta indigo 75 delta ember 72 gamma indigo 72 gamma indigo 57 delta delta 99 alpha amber 83 alpha harbor 76 beta cobalt 48
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005067
qwen/qwen3.7-plus
awkweave-0005068
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 24 0 alice 23 7 gus 28 15 kim 3 10 alice 16 24 jules 19 28 bruno 20 29 eli 27 2 hana 22 6
alice 3.29 gus 1.87 kim 0.30 alice 0.67 jules 0.68 bruno 0.69 eli 13.50 hana 3.67
alice 20 0 alice 16 19 lina 2 18 kim 27 18 hana 10 7 alice 26 14 chen 4 27 jules 29 15 farah 16 29 kim 14 10
alice 0.84 lina 0.11 kim 1.50 hana 1.43 alice 1.86 chen 0.15 jules 1.93 farah 0.55 kim 1.40
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005068-p1
For each row, output the first column and the result of dividing the second column by the third column formatted to two decimal places, skipping any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
kim 24 0 alice 23 7 gus 28 15 kim 3 10 alice 16 24 jules 19 28 bruno 20 29 eli 27 2 hana 22 6
alice 3.29 gus 1.87 kim 0.30 alice 0.67 jules 0.68 bruno 0.69 eli 13.50 hana 3.67
alice 20 0 alice 16 19 lina 2 18 kim 27 18 hana 10 7 alice 26 14 chen 4 27 jules 29 15 farah 16 29 kim 14 10
alice 0.84 lina 0.11 kim 1.50 hana 1.43 alice 1.86 chen 0.15 jules 1.93 farah 0.55 kim 1.40
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005068
qwen/qwen3.7-plus
awkweave-0005069
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
alice cobalt 12 hana indigo 25 ivan amber 24 lina juniper 16 chen delta 16 lina delta 10 farah ember 18 bruno ember 27 alice birch 14
bruno ember 27 hana indigo 25 ivan amber 24
bruno indigo 20 dina delta 13 farah cobalt 13 kim amber 16 bruno cobalt 12 hana cobalt 14 gus harbor 16 lina cobalt 17
bruno indigo 20 lina cobalt 17 kim amber 16
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005069-p1
Output the three full records with 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]}
alice cobalt 12 hana indigo 25 ivan amber 24 lina juniper 16 chen delta 16 lina delta 10 farah ember 18 bruno ember 27 alice birch 14
bruno ember 27 hana indigo 25 ivan amber 24
bruno indigo 20 dina delta 13 farah cobalt 13 kim amber 16 bruno cobalt 12 hana cobalt 14 gus harbor 16 lina cobalt 17
bruno indigo 20 lina cobalt 17 kim amber 16
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005069
qwen/qwen3.7-plus
awkweave-0005070
Select the 5th and 1st fields in that order.
{print $5, $1}
failed chen hana birch 26 ready eli alice grove 101 ready alice alice juniper 55 pending kim lina birch 36 active lina kim ember 38 closed hana farah juniper 61 pending bruno gus amber 70 paused eli hana ember 3
26 failed 101 ready 55 ready 36 pending 38 active 61 closed 70 pending 3 paused
ready eli farah grove 27 ready hana gus delta 94 pending dina kim amber 38 pending chen alice grove 63 ready dina gus fable 57 paused lina gus amber 32
27 ready 94 ready 38 pending 63 pending 57 ready 32 paused
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005070-p1
Extract and print the fifth field followed by the first field, in that specific order.
{print $5, $1}
failed chen hana birch 26 ready eli alice grove 101 ready alice alice juniper 55 pending kim lina birch 36 active lina kim ember 38 closed hana farah juniper 61 pending bruno gus amber 70 paused eli hana ember 3
26 failed 101 ready 55 ready 36 pending 38 active 61 closed 70 pending 3 paused
ready eli farah grove 27 ready hana gus delta 94 pending dina kim amber 38 pending chen alice grove 63 ready dina gus fable 57 paused lina gus amber 32
27 ready 94 ready 38 pending 63 pending 57 ready 32 paused
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005070
qwen/qwen3.7-plus
awkweave-0005071
Print the last field of every input line.
{print $NF}
16 ready 68 37 ready 61 64 pending 38 46 pending 91 8 closed 23 35 ready 31 71 pending 64 12 pending 10 59 pending 101 12 ready 49
68 61 38 91 23 31 64 10 101 49
4 paused 8 105 active 119 2 failed 5 52 paused 50 103 pending 5 40 ready 91 68 ready 67 38 closed 9 47 pending 31
8 119 5 50 5 91 67 9 31
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005071-p1
Print the final field from every line of input.
{print $NF}
16 ready 68 37 ready 61 64 pending 38 46 pending 91 8 closed 23 35 ready 31 71 pending 64 12 pending 10 59 pending 101 12 ready 49
68 61 38 91 23 31 64 10 101 49
4 paused 8 105 active 119 2 failed 5 52 paused 50 103 pending 5 40 ready 91 68 ready 67 38 closed 9 47 pending 31
8 119 5 50 5 91 67 9 31
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005071
qwen/qwen3.7-plus
awkweave-0005072
Print the complete records where column 1 is less than 25.
$1 < 25
113 ember failed closed 118 juniper active failed 53 delta active ready 100 fable ready paused 6 harbor pending paused 33 amber pending ready
6 harbor pending paused
96 juniper failed ready 17 harbor closed active 13 birch active paused 57 juniper ready closed 108 amber active failed 82 cobalt paused closed 48 juniper active active
17 harbor closed active 13 birch active paused
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005072-p1
Output full records where the value in the first column is strictly less than 25.
$1 < 25
113 ember failed closed 118 juniper active failed 53 delta active ready 100 fable ready paused 6 harbor pending paused 33 amber pending ready
6 harbor pending paused
96 juniper failed ready 17 harbor closed active 13 birch active paused 57 juniper ready closed 108 amber active failed 82 cobalt paused closed 48 juniper active active
17 harbor closed active 13 birch active paused
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005072
qwen/qwen3.7-plus
awkweave-0005073
Show whole lines whose 2nd field is between 7 and 21, inclusive.
$2 >= 7 && $2 <= 21
amber 14 harbor juniper harbor 6 delta grove grove 4 cobalt harbor birch 20 birch fable indigo 9 grove grove birch 21 cobalt fable amber 18 juniper indigo birch 19 indigo amber
amber 14 harbor juniper birch 20 birch fable indigo 9 grove grove birch 21 cobalt fable amber 18 juniper indigo birch 19 indigo amber
delta 14 delta juniper cobalt 14 juniper grove cobalt 25 harbor fable fable 9 cobalt grove grove 28 harbor fable indigo 28 harbor amber juniper 19 indigo ember harbor 4 amber birch indigo 24 grove grove amber 24 fable fable
delta 14 delta juniper cobalt 14 juniper grove fable 9 cobalt grove juniper 19 indigo ember
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005073-p1
Display entire lines where the second field falls within the inclusive range of 7 to 21.
$2 >= 7 && $2 <= 21
amber 14 harbor juniper harbor 6 delta grove grove 4 cobalt harbor birch 20 birch fable indigo 9 grove grove birch 21 cobalt fable amber 18 juniper indigo birch 19 indigo amber
amber 14 harbor juniper birch 20 birch fable indigo 9 grove grove birch 21 cobalt fable amber 18 juniper indigo birch 19 indigo amber
delta 14 delta juniper cobalt 14 juniper grove cobalt 25 harbor fable fable 9 cobalt grove grove 28 harbor fable indigo 28 harbor amber juniper 19 indigo ember harbor 4 amber birch indigo 24 grove grove amber 24 fable fable
delta 14 delta juniper cobalt 14 juniper grove fable 9 cobalt grove juniper 19 indigo ember
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005073
qwen/qwen3.7-plus
awkweave-0005074
Print column 4 only for rows where column 2 is exactly pending.
$2 == "pending"{print $4}
grove paused 80 dina grove ready 34 gus harbor pending 18 eli delta pending 36 gus juniper ready 89 kim amber failed 70 kim indigo paused 112 ivan cobalt closed 43 lina harbor pending 111 ivan juniper paused 117 ivan
eli gus ivan
fable paused 80 alice amber failed 40 chen ember paused 38 bruno birch failed 64 farah indigo pending 65 hana cobalt pending 77 dina juniper closed 98 lina amber closed 101 hana indigo active 57 chen
hana dina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005074-p1
Extract and print only the fourth column for rows where the second column equals pending.
$2 == "pending"{print $4}
grove paused 80 dina grove ready 34 gus harbor pending 18 eli delta pending 36 gus juniper ready 89 kim amber failed 70 kim indigo paused 112 ivan cobalt closed 43 lina harbor pending 111 ivan juniper paused 117 ivan
eli gus ivan
fable paused 80 alice amber failed 40 chen ember paused 38 bruno birch failed 64 farah indigo pending 65 hana cobalt pending 77 dina juniper closed 98 lina amber closed 101 hana indigo active 57 chen
hana dina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005074
qwen/qwen3.7-plus
awkweave-0005075
Print all fields from lines where field 1 begins with WARN.
$1 ~ /^WARN/
WARN fable 100 WARN delta 48 WARN amber 56 WARN indigo 14 WARN delta 55 DEBUG birch 40 WARN fable 68 WARN grove 34 DEBUG harbor 85
WARN fable 100 WARN delta 48 WARN amber 56 WARN indigo 14 WARN delta 55 WARN fable 68 WARN grove 34
INFO ember 72 INFO grove 66 ERROR juniper 54 ERROR delta 12 DEBUG ember 27 DEBUG grove 59 WARN ember 41 INFO birch 96 WARN amber 107 DEBUG fable 15
WARN ember 41 WARN amber 107
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005075-p1
Print all fields from lines where the first field starts with the prefix WARN.
$1 ~ /^WARN/
WARN fable 100 WARN delta 48 WARN amber 56 WARN indigo 14 WARN delta 55 DEBUG birch 40 WARN fable 68 WARN grove 34 DEBUG harbor 85
WARN fable 100 WARN delta 48 WARN amber 56 WARN indigo 14 WARN delta 55 WARN fable 68 WARN grove 34
INFO ember 72 INFO grove 66 ERROR juniper 54 ERROR delta 12 DEBUG ember 27 DEBUG grove 59 WARN ember 41 INFO birch 96 WARN amber 107 DEBUG fable 15
WARN ember 41 WARN amber 107
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005075
qwen/qwen3.7-plus
awkweave-0005076
Print every line except those containing the exact text ember.
$0 !~ /ember/
juniper 118 paused grove 119 active fable 7 pending harbor 88 failed birch 81 ready ember 100 failed indigo 3 failed indigo 69 failed ember 999 active
juniper 118 paused grove 119 active fable 7 pending harbor 88 failed birch 81 ready indigo 3 failed indigo 69 failed
fable 98 closed birch 73 ready cobalt 107 active harbor 38 failed fable 94 paused indigo 0 closed amber 108 pending ember 999 active
fable 98 closed birch 73 ready cobalt 107 active harbor 38 failed fable 94 paused indigo 0 closed amber 108 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005076-p1
Output every line that does not contain the exact string ember.
$0 !~ /ember/
juniper 118 paused grove 119 active fable 7 pending harbor 88 failed birch 81 ready ember 100 failed indigo 3 failed indigo 69 failed ember 999 active
juniper 118 paused grove 119 active fable 7 pending harbor 88 failed birch 81 ready indigo 3 failed indigo 69 failed
fable 98 closed birch 73 ready cobalt 107 active harbor 38 failed fable 94 paused indigo 0 closed amber 108 pending ember 999 active
fable 98 closed birch 73 ready cobalt 107 active harbor 38 failed fable 94 paused indigo 0 closed amber 108 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005076
qwen/qwen3.7-plus
awkweave-0005077
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
hana fable 102 gus amber 24 farah birch 114 kim indigo 105 gus birch 107 alice harbor 67 ivan ember 99 dina grove 73
gus amber 24 farah birch 114
dina birch 53 eli delta 85 eli amber 90 dina indigo 26 dina ember 120 hana delta 44 chen ember 0 eli grove 25 hana grove 14 hana delta 87
eli delta 85 eli amber 90
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005077-p1
Print lines 2 through 3, inclusive of both endpoints.
NR >= 2 && NR <= 3
hana fable 102 gus amber 24 farah birch 114 kim indigo 105 gus birch 107 alice harbor 67 ivan ember 99 dina grove 73
gus amber 24 farah birch 114
dina birch 53 eli delta 85 eli amber 90 dina indigo 26 dina ember 120 hana delta 44 chen ember 0 eli grove 25 hana grove 14 hana delta 87
eli delta 85 eli amber 90
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005077
qwen/qwen3.7-plus
awkweave-0005078
Output only the first 3 records.
NR <= 3
gus 88 ember lina 111 indigo eli 9 amber chen 29 amber hana 69 harbor jules 33 delta bruno 115 harbor ivan 16 juniper chen 112 grove kim 2 grove
gus 88 ember lina 111 indigo eli 9 amber
eli 87 delta gus 2 harbor hana 100 cobalt alice 51 ember dina 88 juniper farah 85 juniper alice 35 delta
eli 87 delta gus 2 harbor hana 100 cobalt
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005078-p1
Output only the first 3 records from the input.
NR <= 3
gus 88 ember lina 111 indigo eli 9 amber chen 29 amber hana 69 harbor jules 33 delta bruno 115 harbor ivan 16 juniper chen 112 grove kim 2 grove
gus 88 ember lina 111 indigo eli 9 amber
eli 87 delta gus 2 harbor hana 100 cobalt alice 51 ember dina 88 juniper farah 85 juniper alice 35 delta
eli 87 delta gus 2 harbor hana 100 cobalt
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005078
qwen/qwen3.7-plus
awkweave-0005079
Skip the first line and print every remaining line unchanged.
NR > 1
hana 112 grove dina 16 delta kim 21 fable alice 111 birch chen 83 juniper dina 3 indigo gus 120 grove farah 7 cobalt ivan 61 amber
dina 16 delta kim 21 fable alice 111 birch chen 83 juniper dina 3 indigo gus 120 grove farah 7 cobalt ivan 61 amber
eli 112 juniper ivan 31 delta lina 43 harbor hana 18 harbor bruno 63 ember lina 33 birch jules 106 juniper jules 114 harbor alice 111 delta dina 66 juniper
ivan 31 delta lina 43 harbor hana 18 harbor bruno 63 ember lina 33 birch jules 106 juniper jules 114 harbor alice 111 delta dina 66 juniper
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005079-p1
Ignore the first line and print all subsequent lines exactly as they appear.
NR > 1
hana 112 grove dina 16 delta kim 21 fable alice 111 birch chen 83 juniper dina 3 indigo gus 120 grove farah 7 cobalt ivan 61 amber
dina 16 delta kim 21 fable alice 111 birch chen 83 juniper dina 3 indigo gus 120 grove farah 7 cobalt ivan 61 amber
eli 112 juniper ivan 31 delta lina 43 harbor hana 18 harbor bruno 63 ember lina 33 birch jules 106 juniper jules 114 harbor alice 111 delta dina 66 juniper
ivan 31 delta lina 43 harbor hana 18 harbor bruno 63 ember lina 33 birch jules 106 juniper jules 114 harbor alice 111 delta dina 66 juniper
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005079
qwen/qwen3.7-plus
awkweave-0005080
Count how many records have ready in column 2. Print 0 if there are none.
$2 == "ready"{n++}END{print n+0}
farah pending 34 farah ready 91 gus failed 118 bruno closed 103 eli ready 63 eli failed 58 ivan closed 57 hana active 91 chen paused 94
2
farah failed 120 ivan closed 120 eli closed 74 hana closed 40 kim paused 59 gus ready 39
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005080-p1
Count the number of records where the second column is ready, outputting 0 if no matches are found.
$2 == "ready"{n++}END{print n+0}
farah pending 34 farah ready 91 gus failed 118 bruno closed 103 eli ready 63 eli failed 58 ivan closed 57 hana active 91 chen paused 94
2
farah failed 120 ivan closed 120 eli closed 74 hana closed 40 kim paused 59 gus ready 39
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005080
qwen/qwen3.7-plus
awkweave-0005081
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
5 farah juniper 6 alice fable 7 gus cobalt 22 bruno amber 14 bruno grove 20 dina juniper 28 eli juniper 7 eli delta 27 kim ember 19 chen juniper
155
18 ivan fable 3 lina delta 1 eli amber 9 ivan delta 20 bruno harbor 7 dina cobalt 16 lina birch 29 bruno harbor 5 dina cobalt
108
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005081-p1
Compute and display the sum of all integer values found in the first column.
{s+=$1}END{print s+0}
5 farah juniper 6 alice fable 7 gus cobalt 22 bruno amber 14 bruno grove 20 dina juniper 28 eli juniper 7 eli delta 27 kim ember 19 chen juniper
155
18 ivan fable 3 lina delta 1 eli amber 9 ivan delta 20 bruno harbor 7 dina cobalt 16 lina birch 29 bruno harbor 5 dina cobalt
108
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005081
qwen/qwen3.7-plus
awkweave-0005082
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
cobalt 5 jules cobalt 18 ivan grove 25 gus ember 21 eli juniper 18 farah delta 7 alice harbor 13 chen amber 26 hana juniper 29 chen
18.00
cobalt 18 dina birch 26 jules cobalt 28 farah fable 9 gus ember 16 kim grove 11 chen
18.00
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005082-p1
Calculate the average of the values in the second column and print it rounded to two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
cobalt 5 jules cobalt 18 ivan grove 25 gus ember 21 eli juniper 18 farah delta 7 alice harbor 13 chen amber 26 hana juniper 29 chen
18.00
cobalt 18 dina birch 26 jules cobalt 28 farah fable 9 gus ember 16 kim grove 11 chen
18.00
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005082
qwen/qwen3.7-plus
awkweave-0005083
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
3 fable ivan 25 ember eli 23 cobalt gus 25 grove ivan 14 cobalt dina 5 juniper lina
3
1 amber hana 11 ember kim 4 juniper eli 16 grove hana 14 birch bruno 23 delta gus 9 birch chen
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005083-p1
Identify and print the minimum numeric value present in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
3 fable ivan 25 ember eli 23 cobalt gus 25 grove ivan 14 cobalt dina 5 juniper lina
3
1 amber hana 11 ember kim 4 juniper eli 16 grove hana 14 birch bruno 23 delta gus 9 birch chen
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005083
qwen/qwen3.7-plus
awkweave-0005084
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
delta 17 bruno indigo 7 hana amber 14 lina harbor 14 dina harbor 23 lina harbor 27 jules ember 8 lina juniper 5 alice
27
indigo 13 gus fable 11 eli juniper 20 eli harbor 13 ivan amber 29 hana juniper 11 chen birch 28 gus
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005084-p1
Identify and output the maximum number found in the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
delta 17 bruno indigo 7 hana amber 14 lina harbor 14 dina harbor 23 lina harbor 27 jules ember 8 lina juniper 5 alice
27
indigo 13 gus fable 11 eli juniper 20 eli harbor 13 ivan amber 29 hana juniper 11 chen birch 28 gus
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005084
qwen/qwen3.7-plus
awkweave-0005085
Count all input records and print the total.
END{print NR}
jules 30 bruno 92 kim 113 alice 57 dina 48 dina 95
6
farah 32 lina 81 jules 57 lina 87 dina 37 eli 19 lina 35
7
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005085-p1
Calculate the total number of input records and display the count.
END{print NR}
jules 30 bruno 92 kim 113 alice 57 dina 48 dina 95
6
farah 32 lina 81 jules 57 lina 87 dina 37 eli 19 lina 35
7
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005085
qwen/qwen3.7-plus
awkweave-0005086
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
hana birch 70 farah fable 79 eli delta 19 hana cobalt 56 hana juniper 34 gus harbor 67 alice harbor 96 kim juniper 109 farah fable 79
hana birch 70 farah fable 79 eli delta 19 hana cobalt 56 hana juniper 34 gus harbor 67 alice harbor 96 kim juniper 109
gus harbor 58 kim juniper 51 kim juniper 51 jules harbor 49 gus ember 73 ivan ember 16 bruno ember 115 eli juniper 44 alice fable 2
gus harbor 58 kim juniper 51 jules harbor 49 gus ember 73 ivan ember 16 bruno ember 115 eli juniper 44 alice fable 2
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005086-p1
Eliminate duplicate lines while maintaining the original sequence and keeping the first instance of each.
!seen[$0]++
hana birch 70 farah fable 79 eli delta 19 hana cobalt 56 hana juniper 34 gus harbor 67 alice harbor 96 kim juniper 109 farah fable 79
hana birch 70 farah fable 79 eli delta 19 hana cobalt 56 hana juniper 34 gus harbor 67 alice harbor 96 kim juniper 109
gus harbor 58 kim juniper 51 kim juniper 51 jules harbor 49 gus ember 73 ivan ember 16 bruno ember 115 eli juniper 44 alice fable 2
gus harbor 58 kim juniper 51 jules harbor 49 gus ember 73 ivan ember 16 bruno ember 115 eli juniper 44 alice fable 2
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005086
qwen/qwen3.7-plus
awkweave-0005087
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
jules ember 78 alice juniper 89 ivan ember 13 hana grove 15 dina ember 37 lina ember 10 gus harbor 51 lina juniper 68 kim ember 76
jules ember 78 alice juniper 89 ivan ember 13 hana grove 15 dina ember 37 lina ember 10 gus harbor 51 lina juniper 68 kim ember 76
kim juniper 89 ivan harbor 88 ivan amber 76 ivan indigo 37 gus birch 28 ivan cobalt 98 kim fable 40 alice indigo 5 kim indigo 52
kim juniper 89 ivan harbor 88 ivan amber 76 ivan indigo 37 gus birch 28 ivan cobalt 98 kim fable 40 alice indigo 5 kim indigo 52
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005087-p1
Retain only the initial line for every unique value in the third column, ensuring the original input order is preserved.
!seen[$3]++
jules ember 78 alice juniper 89 ivan ember 13 hana grove 15 dina ember 37 lina ember 10 gus harbor 51 lina juniper 68 kim ember 76
jules ember 78 alice juniper 89 ivan ember 13 hana grove 15 dina ember 37 lina ember 10 gus harbor 51 lina juniper 68 kim ember 76
kim juniper 89 ivan harbor 88 ivan amber 76 ivan indigo 37 gus birch 28 ivan cobalt 98 kim fable 40 alice indigo 5 kim indigo 52
kim juniper 89 ivan harbor 88 ivan amber 76 ivan indigo 37 gus birch 28 ivan cobalt 98 kim fable 40 alice indigo 5 kim indigo 52
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005087
qwen/qwen3.7-plus
awkweave-0005088
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
bruno 7 cobalt jules 26 amber eli 11 delta alice 17 ember eli 27 fable lina 22 grove chen 5 ember alice 5 ember gus 11 ember
bruno 7 jules 33 eli 44 alice 61 eli 88 lina 110 chen 115 alice 120 gus 131
eli 4 cobalt hana 3 amber alice 6 delta eli 13 ember gus 25 juniper gus 1 amber gus 10 cobalt kim 6 cobalt farah 14 harbor
eli 4 hana 7 alice 13 eli 26 gus 51 gus 52 gus 62 kim 68 farah 82
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005088-p1
Output the first column alongside the cumulative sum of the second column for each record, using a space as the delimiter.
{s+=$2;print $1,s}
bruno 7 cobalt jules 26 amber eli 11 delta alice 17 ember eli 27 fable lina 22 grove chen 5 ember alice 5 ember gus 11 ember
bruno 7 jules 33 eli 44 alice 61 eli 88 lina 110 chen 115 alice 120 gus 131
eli 4 cobalt hana 3 amber alice 6 delta eli 13 ember gus 25 juniper gus 1 amber gus 10 cobalt kim 6 cobalt farah 14 harbor
eli 4 hana 7 alice 13 eli 26 gus 51 gus 52 gus 62 kim 68 farah 82
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005088
qwen/qwen3.7-plus
awkweave-0005089
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
hana 27 11 ember alice 18 1 delta farah 30 2 amber lina 7 11 indigo farah 2 1 indigo lina 27 26 harbor chen 24 17 birch
hana 38 alice 19 farah 32 lina 18 farah 3 lina 53 chen 41
dina 21 20 fable hana 22 14 harbor bruno 14 7 amber dina 2 13 indigo farah 1 16 harbor alice 13 24 cobalt eli 28 11 juniper
dina 41 hana 36 bruno 21 dina 15 farah 17 alice 37 eli 39
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005089-p1
For each row, display the first field followed by the combined total of the second and third fields.
{print $1,$2+$3}
hana 27 11 ember alice 18 1 delta farah 30 2 amber lina 7 11 indigo farah 2 1 indigo lina 27 26 harbor chen 24 17 birch
hana 38 alice 19 farah 32 lina 18 farah 3 lina 53 chen 41
dina 21 20 fable hana 22 14 harbor bruno 14 7 amber dina 2 13 indigo farah 1 16 harbor alice 13 24 cobalt eli 28 11 juniper
dina 41 hana 36 bruno 21 dina 15 farah 17 alice 37 eli 39
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005089
qwen/qwen3.7-plus
awkweave-0005100
The first row is a header. Print display_name for data rows whose score is greater than 24.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>24{print $h["display_name"]}
record_id display_name score state r001 alice 27 ready r002 lina 7 pending r003 eli 29 pending r004 alice 30 ready r005 dina 4 paused r006 dina 6 ready r007 lina 17 paused
alice eli alice
record_id display_name score state r001 jules 13 active r002 gus 6 paused r003 chen 30 pending r004 eli 9 ready r005 dina 7 failed r006 dina 11 ready r007 bruno 30 active r008 gus 17 closed r009 chen 14 ready r010 eli 17 pending
chen bruno
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005100-p1
Treating the first line as a header, output the display_name for any data rows where the score is strictly greater than 24.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>24{print $h["display_name"]}
record_id display_name score state r001 alice 27 ready r002 lina 7 pending r003 eli 29 pending r004 alice 30 ready r005 dina 4 paused r006 dina 6 ready r007 lina 17 paused
alice eli alice
record_id display_name score state r001 jules 13 active r002 gus 6 paused r003 chen 30 pending r004 eli 9 ready r005 dina 7 failed r006 dina 11 ready r007 bruno 30 active r008 gus 17 closed r009 chen 14 ready r010 eli 17 pending
chen bruno
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005100
qwen/qwen3.7-plus
awkweave-0005101
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
bruno 3 failed jules 11 closed jules 15 failed kim 16 ready jules 15 pending kim 28 closed
bruno jules jules kim jules kim
ivan 25 pending bruno 18 ready dina 21 ready farah 16 ready kim 14 failed jules 29 ready eli 30 paused chen 4 paused
ivan bruno dina farah kim jules eli chen
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005101-p1
Given tab-separated input, extract and print the first column from all records.
BEGIN{FS=OFS="\t"}{print $1}
bruno 3 failed jules 11 closed jules 15 failed kim 16 ready jules 15 pending kim 28 closed
bruno jules jules kim jules kim
ivan 25 pending bruno 18 ready dina 21 ready farah 16 ready kim 14 failed jules 29 ready eli 30 paused chen 4 paused
ivan bruno dina farah kim jules eli chen
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005101
qwen/qwen3.7-plus
awkweave-0005102
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 10.
BEGIN{FS=OFS=","}$2>10{print $1}
kim,16,paused gus,15,ready ivan,14,ready ivan,6,paused eli,7,ready kim,20,active farah,3,paused lina,24,closed dina,20,closed
kim gus ivan kim lina dina
gus,19,failed bruno,23,ready dina,13,active kim,9,active alice,17,ready farah,27,paused gus,22,paused hana,20,closed lina,6,pending eli,16,active
gus bruno dina alice farah gus hana eli
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005102-p1
Process simple comma-separated values without quoted commas, printing the first column whenever the second column value is greater than 10.
BEGIN{FS=OFS=","}$2>10{print $1}
kim,16,paused gus,15,ready ivan,14,ready ivan,6,paused eli,7,ready kim,20,active farah,3,paused lina,24,closed dina,20,closed
kim gus ivan kim lina dina
gus,19,failed bruno,23,ready dina,13,active kim,9,active alice,17,ready farah,27,paused gus,22,paused hana,20,closed lina,6,pending eli,16,active
gus bruno dina alice farah gus hana eli
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005102
qwen/qwen3.7-plus
awkweave-0005103
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
alice harbor 77 jules birch 86 eli delta 67 ivan grove 81 dina delta 93 dina amber 17 lina fable 100 farah amber 62 hana birch 54
alice harbor 77 jules birch 86 eli delta 67 ivan grove 81 dina delta 93 dina amber 17 lina fable 100 farah amber 62 hana birch 54
kim fable 11 jules birch 81 alice ember 64 bruno ember 10 alice harbor 79 dina ember 59 chen delta 38 farah grove 37
kim fable 11 jules birch 81 alice ember 64 bruno ember 10 alice harbor 79 dina ember 59 chen delta 38 farah grove 37
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005103-p1
Strip leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
alice harbor 77 jules birch 86 eli delta 67 ivan grove 81 dina delta 93 dina amber 17 lina fable 100 farah amber 62 hana birch 54
alice harbor 77 jules birch 86 eli delta 67 ivan grove 81 dina delta 93 dina amber 17 lina fable 100 farah amber 62 hana birch 54
kim fable 11 jules birch 81 alice ember 64 bruno ember 10 alice harbor 79 dina ember 59 chen delta 38 farah grove 37
kim fable 11 jules birch 81 alice ember 64 bruno ember 10 alice harbor 79 dina ember 59 chen delta 38 farah grove 37
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005103
qwen/qwen3.7-plus
awkweave-0005104
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah ember 65 pending dina fable 14 failed chen juniper 57 ready kim amber 107 paused hana grove 24 failed dina ember 104 pending dina indigo 116 paused kim birch 95 paused
farah ember 65 pending
kim cobalt 36 failed dina birch 92 failed ivan birch 21 active gus harbor 111 failed eli grove 34 paused hana delta 65 active dina delta 70 paused
gus harbor 111 failed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005104-p1
Locate and print the longest line from the input; in case of a tie in length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah ember 65 pending dina fable 14 failed chen juniper 57 ready kim amber 107 paused hana grove 24 failed dina ember 104 pending dina indigo 116 paused kim birch 95 paused
farah ember 65 pending
kim cobalt 36 failed dina birch 92 failed ivan birch 21 active gus harbor 111 failed eli grove 34 paused hana delta 65 active dina delta 70 paused
gus harbor 111 failed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005104
qwen/qwen3.7-plus
awkweave-0005105
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
ivan 84 jules 39 dina 79 bruno 5 chen 106 jules 58
jules 39 chen 106
eli 91 jules 24 ivan 67 bruno 23 hana 113 alice 76 farah 117 farah 1 gus 96 gus 98
jules 24 hana 113 farah 1
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005105-p1
Output every third line beginning with line 2 (i.e., lines 2, 5, 8, etc.).
NR%3==2
ivan 84 jules 39 dina 79 bruno 5 chen 106 jules 58
jules 39 chen 106
eli 91 jules 24 ivan 67 bruno 23 hana 113 alice 76 farah 117 farah 1 gus 96 gus 98
jules 24 hana 113 farah 1
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005105
qwen/qwen3.7-plus
awkweave-0005106
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha grove 44 delta ember 5 delta fable 116 delta delta 96 gamma grove 14 alpha birch 57 gamma harbor 3 alpha ember 9
6
alpha juniper 0 delta harbor 1 gamma grove 20 gamma ember 36 gamma harbor 8 beta birch 63 gamma cobalt 30 gamma amber 14 gamma indigo 73
8
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005106-p1
Calculate the number of unique entries in the second column and output just that total.
{if(!seen[$2]++)n++}END{print n+0}
alpha grove 44 delta ember 5 delta fable 116 delta delta 96 gamma grove 14 alpha birch 57 gamma harbor 3 alpha ember 9
6
alpha juniper 0 delta harbor 1 gamma grove 20 gamma ember 36 gamma harbor 8 beta birch 63 gamma cobalt 30 gamma amber 14 gamma indigo 73
8
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005106
qwen/qwen3.7-plus
awkweave-0005107
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
hana 24 0 alice 2 16 chen 30 28 bruno 9 22 farah 24 22 kim 23 2 farah 7 3
alice 0.12 chen 1.07 bruno 0.41 farah 1.09 kim 11.50 farah 2.33
farah 22 0 gus 24 4 dina 28 11 ivan 29 5 farah 6 18 gus 17 6 dina 12 8 ivan 23 20
gus 6.00 dina 2.55 ivan 5.80 farah 0.33 gus 2.83 dina 1.50 ivan 1.15
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005107-p1
For every row where the third column is not zero, display the first column followed by 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}
hana 24 0 alice 2 16 chen 30 28 bruno 9 22 farah 24 22 kim 23 2 farah 7 3
alice 0.12 chen 1.07 bruno 0.41 farah 1.09 kim 11.50 farah 2.33
farah 22 0 gus 24 4 dina 28 11 ivan 29 5 farah 6 18 gus 17 6 dina 12 8 ivan 23 20
gus 6.00 dina 2.55 ivan 5.80 farah 0.33 gus 2.83 dina 1.50 ivan 1.15
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005107
qwen/qwen3.7-plus
awkweave-0005108
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 cobalt 16 ivan amber 25 eli grove 16 alice birch 4 jules amber 25 jules birch 24 ivan indigo 8 gus delta 30 alice fable 13
gus delta 30 ivan amber 25 jules amber 25
chen amber 5 kim cobalt 18 gus grove 5 dina harbor 13 farah fable 24 bruno harbor 18 lina delta 27
lina delta 27 farah fable 24 kim cobalt 18
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005108-p1
Output 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]}
gus cobalt 16 ivan amber 25 eli grove 16 alice birch 4 jules amber 25 jules birch 24 ivan indigo 8 gus delta 30 alice fable 13
gus delta 30 ivan amber 25 jules amber 25
chen amber 5 kim cobalt 18 gus grove 5 dina harbor 13 farah fable 24 bruno harbor 18 lina delta 27
lina delta 27 farah fable 24 kim cobalt 18
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005108
qwen/qwen3.7-plus
awkweave-0005109
Select the 4th and 1st fields in that order.
{print $4, $1}
fable cobalt delta eli fable indigo juniper lina ember fable fable gus delta amber ember farah harbor grove birch ivan delta cobalt cobalt chen ember indigo ember alice
eli fable lina fable gus ember farah delta ivan harbor chen delta alice ember
cobalt juniper juniper hana cobalt harbor delta kim ember birch delta alice cobalt grove indigo jules indigo delta juniper jules juniper cobalt cobalt farah
hana cobalt kim cobalt alice ember jules cobalt jules indigo farah juniper
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005109-p1
Extract and display the fourth field followed by the first field.
{print $4, $1}
fable cobalt delta eli fable indigo juniper lina ember fable fable gus delta amber ember farah harbor grove birch ivan delta cobalt cobalt chen ember indigo ember alice
eli fable lina fable gus ember farah delta ivan harbor chen delta alice ember
cobalt juniper juniper hana cobalt harbor delta kim ember birch delta alice cobalt grove indigo jules indigo delta juniper jules juniper cobalt cobalt farah
hana cobalt kim cobalt alice ember jules cobalt jules indigo farah juniper
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005109
qwen/qwen3.7-plus
awkweave-0005110
Print the last field of every input line.
{print $NF}
chen closed 87 chen alice closed 66 gus bruno active 13 dina gus ready 91 eli hana failed 14 chen farah closed 111 hana farah pending 3 eli
chen gus dina eli chen hana eli
lina active 53 farah bruno paused 35 ivan alice pending 99 hana farah failed 104 lina hana failed 9 hana ivan pending 0 jules bruno failed 2 alice
farah ivan hana lina hana jules alice
last_field
1
train
original-grammar
CC-BY-4.0
null
null