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-0015000-p1
Reverse the field order on each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
jules birch 79 paused ivan ember 1 pending kim ember 14 failed gus amber 20 closed alice delta 75 pending hana harbor 114 paused ivan grove 93 paused kim delta 3 closed
paused 79 birch jules pending 1 ember ivan failed 14 ember kim closed 20 amber gus pending 75 delta alice paused 114 harbor hana paused 93 grove ivan closed 3 delta kim
dina amber 4 failed hana ember 84 active chen fable 54 active ivan harbor 69 paused eli amber 42 closed kim indigo 39 ready gus harbor 34 ready jules delta 116 closed
failed 4 amber dina active 84 ember hana active 54 fable chen paused 69 harbor ivan closed 42 amber eli ready 39 indigo kim ready 34 harbor gus closed 116 delta jules
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015000
qwen/qwen3.7-plus
awkweave-0015001
Print the number of whitespace-separated fields on each line.
{print NF}
ivan amber 37 ready alice grove 33 active dina ember 39 ready bruno fable 25 closed alice delta 63 closed farah harbor 15 paused dina ember 12 pending farah fable 79 failed
4 4 4 4 4 4 4 4
alice harbor 79 failed kim harbor 29 pending farah indigo 38 closed gus harbor 116 failed lina cobalt 44 failed ivan ember 100 paused alice ember 84 closed
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015001-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
ivan amber 37 ready alice grove 33 active dina ember 39 ready bruno fable 25 closed alice delta 63 closed farah harbor 15 paused dina ember 12 pending farah fable 79 failed
4 4 4 4 4 4 4 4
alice harbor 79 failed kim harbor 29 pending farah indigo 38 closed gus harbor 116 failed lina cobalt 44 failed ivan ember 100 paused alice ember 84 closed
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015001
qwen/qwen3.7-plus
awkweave-0015002
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]]}
jules alpha 44 eli gamma 22 farah gamma 55 gus beta 83 eli gamma 108 gus alpha 8 alice gamma 62 gus delta 96 farah gamma 28
alpha 2 gamma 5 beta 1 delta 1
gus alpha 25 chen beta 61 alice alpha 43 bruno gamma 87 bruno beta 24 bruno beta 80 alice alpha 93 dina gamma 59 lina delta 95
alpha 3 beta 3 gamma 2 delta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015002-p1
Tally records by column 2 values and 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]]}
jules alpha 44 eli gamma 22 farah gamma 55 gus beta 83 eli gamma 108 gus alpha 8 alice gamma 62 gus delta 96 farah gamma 28
alpha 2 gamma 5 beta 1 delta 1
gus alpha 25 chen beta 61 alice alpha 43 bruno gamma 87 bruno beta 24 bruno beta 80 alice alpha 93 dina gamma 59 lina delta 95
alpha 3 beta 3 gamma 2 delta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015002
qwen/qwen3.7-plus
awkweave-0015003
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 gamma 5 chen alpha 21 chen delta 1 eli beta 2 bruno beta 15 ivan alpha 11
gamma 5 alpha 32 delta 1 beta 17
eli gamma 3 chen delta 15 hana gamma 4 dina beta 9 hana beta 11 hana gamma 5 kim gamma 1 jules gamma 1
gamma 14 delta 15 beta 20
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015003-p1
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 gamma 5 chen alpha 21 chen delta 1 eli beta 2 bruno beta 15 ivan alpha 11
gamma 5 alpha 32 delta 1 beta 17
eli gamma 3 chen delta 15 hana gamma 4 dina beta 9 hana beta 11 hana gamma 5 kim gamma 1 jules gamma 1
gamma 14 delta 15 beta 20
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0015003
qwen/qwen3.7-plus
awkweave-0015004
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 ember 61 alpha fable 35 gamma grove 100 alpha amber 103 gamma amber 15 delta harbor 31 gamma cobalt 13
delta 2 alpha 2 gamma 3
delta fable 98 gamma fable 50 delta harbor 28 alpha ember 4 gamma birch 38 alpha ember 98
delta 2 gamma 2 alpha 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015004-p1
List duplicate values from column 1 alongside their occurrence counts, sorted 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 ember 61 alpha fable 35 gamma grove 100 alpha amber 103 gamma amber 15 delta harbor 31 gamma cobalt 13
delta 2 alpha 2 gamma 3
delta fable 98 gamma fable 50 delta harbor 28 alpha ember 4 gamma birch 38 alpha ember 98
delta 2 gamma 2 alpha 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015004
qwen/qwen3.7-plus
awkweave-0015005
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"]}
display_name record_id state region r001 chen 2 active r002 bruno 8 pending r003 eli 12 ready r004 chen 24 closed r005 eli 4 paused r006 eli 19 ready r007 bruno 1 paused r008 dina 1 active
chen bruno eli chen eli eli bruno dina
display_name record_id state region r001 ivan 18 closed r002 farah 18 pending r003 alice 15 ready r004 gus 28 pending r005 lina 12 pending r006 dina 24 ready
ivan farah alice gus lina dina
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015005-p1
Treating the first row as a header, output 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"]}
display_name record_id state region r001 chen 2 active r002 bruno 8 pending r003 eli 12 ready r004 chen 24 closed r005 eli 4 paused r006 eli 19 ready r007 bruno 1 paused r008 dina 1 active
chen bruno eli chen eli eli bruno dina
display_name record_id state region r001 ivan 18 closed r002 farah 18 pending r003 alice 15 ready r004 gus 28 pending r005 lina 12 pending r006 dina 24 ready
ivan farah alice gus lina dina
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015005
qwen/qwen3.7-plus
awkweave-0015006
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 eli 17 ready r002 kim 12 active r003 hana 19 pending r004 bruno 10 ready r005 alice 6 active r006 ivan 11 paused
eli kim hana bruno ivan
record_id display_name score state r001 ivan 9 paused r002 chen 10 paused r003 dina 21 paused r004 bruno 16 closed r005 alice 2 closed r006 chen 29 pending r007 lina 16 closed
ivan chen dina bruno chen lina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015006-p1
With the first row as a header, print the display_name for data rows 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 eli 17 ready r002 kim 12 active r003 hana 19 pending r004 bruno 10 ready r005 alice 6 active r006 ivan 11 paused
eli kim hana bruno ivan
record_id display_name score state r001 ivan 9 paused r002 chen 10 paused r003 dina 21 paused r004 bruno 16 closed r005 alice 2 closed r006 chen 29 pending r007 lina 16 closed
ivan chen dina bruno chen lina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015006
qwen/qwen3.7-plus
awkweave-0015007
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
hana 5 active chen 22 active farah 14 ready jules 24 active ivan 21 ready chen 11 failed chen 11 closed chen 22 failed bruno 21 active eli 6 pending
5 22 14 24 21 11 11 22 21 6
farah 3 failed bruno 1 paused chen 13 ready eli 10 paused bruno 28 ready gus 10 active farah 23 ready chen 20 ready
3 1 13 10 28 10 23 20
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015007-p1
Given tab-separated input, extract and print the second column from every record.
BEGIN{FS=OFS="\t"}{print $2}
hana 5 active chen 22 active farah 14 ready jules 24 active ivan 21 ready chen 11 failed chen 11 closed chen 22 failed bruno 21 active eli 6 pending
5 22 14 24 21 11 11 22 21 6
farah 3 failed bruno 1 paused chen 13 ready eli 10 paused bruno 28 ready gus 10 active farah 23 ready chen 20 ready
3 1 13 10 28 10 23 20
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015007
qwen/qwen3.7-plus
awkweave-0015008
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 19.
BEGIN{FS=OFS=","}$2>19{print $1}
hana,13,paused kim,13,active chen,15,active ivan,10,ready bruno,13,active eli,12,closed hana,10,paused bruno,28,active jules,12,closed
bruno
kim,9,paused farah,3,closed dina,20,ready ivan,14,paused farah,7,paused ivan,29,active kim,28,failed hana,16,failed chen,26,pending
dina ivan kim chen
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015008-p1
For simple comma-separated input without quoted commas, print the first column if the second column is greater than 19.
BEGIN{FS=OFS=","}$2>19{print $1}
hana,13,paused kim,13,active chen,15,active ivan,10,ready bruno,13,active eli,12,closed hana,10,paused bruno,28,active jules,12,closed
bruno
kim,9,paused farah,3,closed dina,20,ready ivan,14,paused farah,7,paused ivan,29,active kim,28,failed hana,16,failed chen,26,pending
dina ivan kim chen
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015008
qwen/qwen3.7-plus
awkweave-0015009
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
hana fable 106 lina indigo 74 hana indigo 24 lina harbor 106 lina cobalt 6 hana grove 110 gus harbor 110 chen birch 113 kim fable 21
hana fable 106 lina indigo 74 hana indigo 24 lina harbor 106 lina cobalt 6 hana grove 110 gus harbor 110 chen birch 113 kim fable 21
eli fable 10 dina grove 2 farah birch 9 farah grove 2 gus delta 78 eli juniper 27
eli fable 10 dina grove 2 farah birch 9 farah grove 2 gus delta 78 eli juniper 27
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015009-p1
Remove leading and trailing whitespace and replace internal whitespace sequences with single spaces.
{$1=$1;print}
hana fable 106 lina indigo 74 hana indigo 24 lina harbor 106 lina cobalt 6 hana grove 110 gus harbor 110 chen birch 113 kim fable 21
hana fable 106 lina indigo 74 hana indigo 24 lina harbor 106 lina cobalt 6 hana grove 110 gus harbor 110 chen birch 113 kim fable 21
eli fable 10 dina grove 2 farah birch 9 farah grove 2 gus delta 78 eli juniper 27
eli fable 10 dina grove 2 farah birch 9 farah grove 2 gus delta 78 eli juniper 27
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015009
qwen/qwen3.7-plus
awkweave-0015010
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
gus amber 89 closed dina harbor 83 closed jules delta 39 paused ivan birch 115 pending bruno indigo 20 failed gus delta 83 ready
ivan birch 115 pending
farah amber 62 paused dina delta 89 closed farah harbor 75 pending eli cobalt 32 failed gus grove 113 pending gus amber 84 closed
farah harbor 75 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015010-p1
Identify and print the longest line from the input; if there is a tie, select the first one.
{if(length($0)>length(best))best=$0}END{print best}
gus amber 89 closed dina harbor 83 closed jules delta 39 paused ivan birch 115 pending bruno indigo 20 failed gus delta 83 ready
ivan birch 115 pending
farah amber 62 paused dina delta 89 closed farah harbor 75 pending eli cobalt 32 failed gus grove 113 pending gus amber 84 closed
farah harbor 75 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015010
qwen/qwen3.7-plus
awkweave-0015011
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
ivan 75 lina 38 chen 12 hana 26 alice 104 alice 56 alice 17
lina 38 alice 104
bruno 55 dina 117 gus 12 kim 35 ivan 68 kim 103
dina 117 ivan 68
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015011-p1
Print every third line beginning with line 2 (i.e., lines 2, 5, etc.).
NR%3==2
ivan 75 lina 38 chen 12 hana 26 alice 104 alice 56 alice 17
lina 38 alice 104
bruno 55 dina 117 gus 12 kim 35 ivan 68 kim 103
dina 117 ivan 68
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015011
qwen/qwen3.7-plus
awkweave-0015012
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
delta birch 92 gamma cobalt 20 alpha indigo 102 beta juniper 39 gamma cobalt 85 alpha cobalt 113 alpha birch 51 gamma birch 9 beta ember 111
5
gamma grove 19 delta fable 63 gamma fable 38 alpha harbor 59 gamma indigo 94 beta cobalt 49 alpha delta 29 alpha ember 69 alpha amber 46
8
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015012-p1
Calculate the number of unique entries in the second column and output just that total.
{if(!seen[$2]++)n++}END{print n+0}
delta birch 92 gamma cobalt 20 alpha indigo 102 beta juniper 39 gamma cobalt 85 alpha cobalt 113 alpha birch 51 gamma birch 9 beta ember 111
5
gamma grove 19 delta fable 63 gamma fable 38 alpha harbor 59 gamma indigo 94 beta cobalt 49 alpha delta 29 alpha ember 69 alpha amber 46
8
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015012
qwen/qwen3.7-plus
awkweave-0015013
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 9 0 gus 3 24 gus 27 25 chen 27 17 farah 9 30 alice 19 24
gus 0.12 gus 1.08 chen 1.59 farah 0.30 alice 0.79
bruno 25 0 lina 20 9 dina 5 30 chen 2 1 bruno 24 24 jules 21 26 bruno 22 14 lina 2 16 farah 30 8 jules 10 14
lina 2.22 dina 0.17 chen 2.00 bruno 1.00 jules 0.81 bruno 1.57 lina 0.12 farah 3.75 jules 0.71
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015013-p1
For every row where the third column is not zero, display the first column alongside the result of dividing the second column by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 9 0 gus 3 24 gus 27 25 chen 27 17 farah 9 30 alice 19 24
gus 0.12 gus 1.08 chen 1.59 farah 0.30 alice 0.79
bruno 25 0 lina 20 9 dina 5 30 chen 2 1 bruno 24 24 jules 21 26 bruno 22 14 lina 2 16 farah 30 8 jules 10 14
lina 2.22 dina 0.17 chen 2.00 bruno 1.00 jules 0.81 bruno 1.57 lina 0.12 farah 3.75 jules 0.71
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015013
qwen/qwen3.7-plus
awkweave-0015014
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 delta 6 chen delta 10 bruno juniper 11 bruno indigo 22 farah cobalt 21 chen cobalt 28 jules grove 20
chen cobalt 28 bruno indigo 22 farah cobalt 21
kim birch 30 farah indigo 28 lina birch 11 bruno grove 10 hana birch 27 alice birch 13 lina fable 26 lina indigo 12
kim birch 30 farah indigo 28 hana birch 27
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015014-p1
Retrieve the top three records with the largest numeric values in column 3, sorted in descending order; maintain the original input sequence 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]}
gus delta 6 chen delta 10 bruno juniper 11 bruno indigo 22 farah cobalt 21 chen cobalt 28 jules grove 20
chen cobalt 28 bruno indigo 22 farah cobalt 21
kim birch 30 farah indigo 28 lina birch 11 bruno grove 10 hana birch 27 alice birch 13 lina fable 26 lina indigo 12
kim birch 30 farah indigo 28 hana birch 27
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015014
qwen/qwen3.7-plus
awkweave-0015015
Select the 5th and 4th fields in that order.
{print $5, $4}
fable delta birch fable 93 grove grove fable grove 19 indigo birch fable harbor 15 fable amber harbor delta 87 grove juniper grove juniper 42 harbor ember cobalt amber 44 fable juniper juniper fable 74 cobalt juniper harbor juniper 69 birch fable cobalt juniper 79 birch ember amber delta 97
93 fable 19 grove 15 harbor 87 delta 42 juniper 44 amber 74 fable 69 juniper 79 juniper 97 delta
birch cobalt grove grove 36 harbor harbor birch delta 105 fable harbor indigo ember 50 birch grove grove grove 60 juniper juniper ember grove 12 amber cobalt indigo grove 6 cobalt indigo ember juniper 20 fable delta ember delta 90 harbor amber grove amber 23 delta ember delta birch 10
36 grove 105 delta 50 ember 60 grove 12 grove 6 grove 20 juniper 90 delta 23 amber 10 birch
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015015-p1
Extract and display the fifth field followed by the fourth field.
{print $5, $4}
fable delta birch fable 93 grove grove fable grove 19 indigo birch fable harbor 15 fable amber harbor delta 87 grove juniper grove juniper 42 harbor ember cobalt amber 44 fable juniper juniper fable 74 cobalt juniper harbor juniper 69 birch fable cobalt juniper 79 birch ember amber delta 97
93 fable 19 grove 15 harbor 87 delta 42 juniper 44 amber 74 fable 69 juniper 79 juniper 97 delta
birch cobalt grove grove 36 harbor harbor birch delta 105 fable harbor indigo ember 50 birch grove grove grove 60 juniper juniper ember grove 12 amber cobalt indigo grove 6 cobalt indigo ember juniper 20 fable delta ember delta 90 harbor amber grove amber 23 delta ember delta birch 10
36 grove 105 delta 50 ember 60 grove 12 grove 6 grove 20 juniper 90 delta 23 amber 10 birch
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015015
qwen/qwen3.7-plus
awkweave-0015016
Print the last field of every input line.
{print $NF}
kim birch chen amber juniper hana indigo hana grove indigo eli indigo hana juniper amber dina ember jules ember juniper chen amber jules grove ember jules harbor chen grove fable
juniper indigo amber juniper ember fable
eli indigo dina juniper harbor dina juniper alice fable indigo alice amber bruno grove amber kim cobalt dina birch cobalt ivan harbor dina grove grove jules delta lina ember amber chen amber jules grove delta ivan amber lina delta harbor hana cobalt bruno ember grove alice birch lina grove harbor
harbor indigo amber cobalt grove amber delta harbor grove harbor
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015016-p1
Output the final field from each line of input.
{print $NF}
kim birch chen amber juniper hana indigo hana grove indigo eli indigo hana juniper amber dina ember jules ember juniper chen amber jules grove ember jules harbor chen grove fable
juniper indigo amber juniper ember fable
eli indigo dina juniper harbor dina juniper alice fable indigo alice amber bruno grove amber kim cobalt dina birch cobalt ivan harbor dina grove grove jules delta lina ember amber chen amber jules grove delta ivan amber lina delta harbor hana cobalt bruno ember grove alice birch lina grove harbor
harbor indigo amber cobalt grove amber delta harbor grove harbor
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015016
qwen/qwen3.7-plus
awkweave-0015017
Print the complete records where column 2 is at most 67.
$2 <= 67
cobalt 69 cobalt birch grove 10 amber cobalt cobalt 2 fable delta indigo 119 birch fable juniper 102 cobalt juniper grove 103 indigo cobalt birch 120 cobalt harbor juniper 6 harbor cobalt fable 37 birch grove
grove 10 amber cobalt cobalt 2 fable delta juniper 6 harbor cobalt fable 37 birch grove
birch 82 amber harbor harbor 9 birch birch grove 32 harbor harbor grove 3 indigo juniper juniper 105 indigo cobalt amber 27 amber juniper
harbor 9 birch birch grove 32 harbor harbor grove 3 indigo juniper amber 27 amber juniper
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015017-p1
Display full rows where the value in the second column is less than or equal to 67.
$2 <= 67
cobalt 69 cobalt birch grove 10 amber cobalt cobalt 2 fable delta indigo 119 birch fable juniper 102 cobalt juniper grove 103 indigo cobalt birch 120 cobalt harbor juniper 6 harbor cobalt fable 37 birch grove
grove 10 amber cobalt cobalt 2 fable delta juniper 6 harbor cobalt fable 37 birch grove
birch 82 amber harbor harbor 9 birch birch grove 32 harbor harbor grove 3 indigo juniper juniper 105 indigo cobalt amber 27 amber juniper
harbor 9 birch birch grove 32 harbor harbor grove 3 indigo juniper amber 27 amber juniper
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015017
qwen/qwen3.7-plus
awkweave-0015018
Show whole lines whose 1st field is between 7 and 28, inclusive.
$1 >= 7 && $1 <= 28
28 pending jules harbor 26 pending bruno harbor 1 pending bruno grove 28 pending bruno harbor 1 failed jules grove 27 active gus indigo 6 paused kim birch
28 pending jules harbor 26 pending bruno harbor 28 pending bruno harbor 27 active gus indigo
11 pending kim delta 15 pending lina birch 15 paused farah cobalt 2 closed farah birch 19 paused eli grove 23 closed chen birch 19 ready dina indigo 30 closed dina fable 10 failed eli indigo
11 pending kim delta 15 pending lina birch 15 paused farah cobalt 19 paused eli grove 23 closed chen birch 19 ready dina indigo 10 failed eli indigo
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015018-p1
Print entire lines where the first field falls within the range of 7 to 28, inclusive.
$1 >= 7 && $1 <= 28
28 pending jules harbor 26 pending bruno harbor 1 pending bruno grove 28 pending bruno harbor 1 failed jules grove 27 active gus indigo 6 paused kim birch
28 pending jules harbor 26 pending bruno harbor 28 pending bruno harbor 27 active gus indigo
11 pending kim delta 15 pending lina birch 15 paused farah cobalt 2 closed farah birch 19 paused eli grove 23 closed chen birch 19 ready dina indigo 30 closed dina fable 10 failed eli indigo
11 pending kim delta 15 pending lina birch 15 paused farah cobalt 19 paused eli grove 23 closed chen birch 19 ready dina indigo 10 failed eli indigo
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015018
qwen/qwen3.7-plus
awkweave-0015019
Print column 4 only for rows where column 2 is exactly failed.
$2 == "failed"{print $4}
fable failed 69 kim fable closed 117 bruno juniper ready 54 kim birch failed 94 bruno fable failed 37 lina cobalt paused 120 kim indigo closed 42 alice fable closed 3 hana cobalt closed 32 alice
kim bruno lina
amber paused 15 bruno delta pending 58 hana amber paused 49 lina fable ready 26 alice grove active 27 ivan indigo paused 82 chen birch paused 97 alice indigo pending 115 jules grove paused 36 lina grove paused 19 gus
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015019-p1
Output only the fourth column for rows where the second column matches the string 'failed' exactly.
$2 == "failed"{print $4}
fable failed 69 kim fable closed 117 bruno juniper ready 54 kim birch failed 94 bruno fable failed 37 lina cobalt paused 120 kim indigo closed 42 alice fable closed 3 hana cobalt closed 32 alice
kim bruno lina
amber paused 15 bruno delta pending 58 hana amber paused 49 lina fable ready 26 alice grove active 27 ivan indigo paused 82 chen birch paused 97 alice indigo pending 115 jules grove paused 36 lina grove paused 19 gus
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015019
qwen/qwen3.7-plus
awkweave-0015020
Print all fields from lines where field 2 begins with WARN.
$2 ~ /^WARN/
indigo ERROR 86 ember INFO 38 juniper WARN 47 juniper ERROR 34 indigo WARN 117 amber INFO 33 indigo ERROR 37 delta DEBUG 36
juniper WARN 47 indigo WARN 117
grove INFO 71 harbor INFO 74 juniper WARN 115 ember INFO 55 birch DEBUG 116 grove WARN 63
juniper WARN 115 grove WARN 63
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015020-p1
Print all fields from any line where the second field starts with the prefix 'WARN'.
$2 ~ /^WARN/
indigo ERROR 86 ember INFO 38 juniper WARN 47 juniper ERROR 34 indigo WARN 117 amber INFO 33 indigo ERROR 37 delta DEBUG 36
juniper WARN 47 indigo WARN 117
grove INFO 71 harbor INFO 74 juniper WARN 115 ember INFO 55 birch DEBUG 116 grove WARN 63
juniper WARN 115 grove WARN 63
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015020
qwen/qwen3.7-plus
awkweave-0015021
Print every line except those containing the exact text indigo.
$0 !~ /indigo/
harbor 26 pending ember 62 paused harbor 4 failed delta 102 ready cobalt 14 pending amber 107 active amber 117 pending fable 78 failed indigo 999 active
harbor 26 pending ember 62 paused harbor 4 failed delta 102 ready cobalt 14 pending amber 107 active amber 117 pending fable 78 failed
harbor 59 paused harbor 68 ready harbor 40 ready indigo 97 closed ember 19 pending juniper 0 ready delta 78 pending ember 110 pending amber 105 paused harbor 9 ready indigo 999 active
harbor 59 paused harbor 68 ready harbor 40 ready ember 19 pending juniper 0 ready delta 78 pending ember 110 pending amber 105 paused harbor 9 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015021-p1
Output every line except those that contain the exact string 'indigo'.
$0 !~ /indigo/
harbor 26 pending ember 62 paused harbor 4 failed delta 102 ready cobalt 14 pending amber 107 active amber 117 pending fable 78 failed indigo 999 active
harbor 26 pending ember 62 paused harbor 4 failed delta 102 ready cobalt 14 pending amber 107 active amber 117 pending fable 78 failed
harbor 59 paused harbor 68 ready harbor 40 ready indigo 97 closed ember 19 pending juniper 0 ready delta 78 pending ember 110 pending amber 105 paused harbor 9 ready indigo 999 active
harbor 59 paused harbor 68 ready harbor 40 ready ember 19 pending juniper 0 ready delta 78 pending ember 110 pending amber 105 paused harbor 9 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015021
qwen/qwen3.7-plus
awkweave-0015022
Print lines 3 through 4, including both endpoints.
NR >= 3 && NR <= 4
chen amber 113 lina indigo 63 bruno indigo 55 gus fable 63 eli ember 60 kim grove 41 chen delta 80 bruno harbor 99
bruno indigo 55 gus fable 63
dina delta 80 gus grove 14 gus delta 52 jules juniper 17 hana grove 11 hana ember 8 lina grove 83 gus juniper 39 farah delta 19 chen ember 114
gus delta 52 jules juniper 17
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015022-p1
Print lines 3 and 4, including both endpoints.
NR >= 3 && NR <= 4
chen amber 113 lina indigo 63 bruno indigo 55 gus fable 63 eli ember 60 kim grove 41 chen delta 80 bruno harbor 99
bruno indigo 55 gus fable 63
dina delta 80 gus grove 14 gus delta 52 jules juniper 17 hana grove 11 hana ember 8 lina grove 83 gus juniper 39 farah delta 19 chen ember 114
gus delta 52 jules juniper 17
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015022
qwen/qwen3.7-plus
awkweave-0015023
Output only the first 5 records.
NR <= 5
kim 64 grove kim 32 birch hana 18 amber kim 109 birch ivan 88 cobalt alice 59 delta gus 33 indigo jules 25 birch chen 96 birch dina 9 cobalt
kim 64 grove kim 32 birch hana 18 amber kim 109 birch ivan 88 cobalt
chen 22 cobalt dina 1 juniper chen 18 grove gus 14 delta bruno 102 ember alice 53 grove gus 92 fable
chen 22 cobalt dina 1 juniper chen 18 grove gus 14 delta bruno 102 ember
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015023-p1
Display only the first 5 records from the input.
NR <= 5
kim 64 grove kim 32 birch hana 18 amber kim 109 birch ivan 88 cobalt alice 59 delta gus 33 indigo jules 25 birch chen 96 birch dina 9 cobalt
kim 64 grove kim 32 birch hana 18 amber kim 109 birch ivan 88 cobalt
chen 22 cobalt dina 1 juniper chen 18 grove gus 14 delta bruno 102 ember alice 53 grove gus 92 fable
chen 22 cobalt dina 1 juniper chen 18 grove gus 14 delta bruno 102 ember
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015023
qwen/qwen3.7-plus
awkweave-0015024
Skip the first line and print every remaining line unchanged.
NR > 1
farah 76 juniper gus 31 juniper ivan 53 grove hana 57 grove ivan 108 amber eli 26 indigo eli 6 ember jules 8 birch
gus 31 juniper ivan 53 grove hana 57 grove ivan 108 amber eli 26 indigo eli 6 ember jules 8 birch
bruno 80 indigo bruno 6 fable chen 5 cobalt hana 113 indigo eli 57 delta farah 75 fable farah 82 delta chen 54 fable lina 37 amber
bruno 6 fable chen 5 cobalt hana 113 indigo eli 57 delta farah 75 fable farah 82 delta chen 54 fable lina 37 amber
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015024-p1
Omit the initial line and output all subsequent lines exactly as they appear.
NR > 1
farah 76 juniper gus 31 juniper ivan 53 grove hana 57 grove ivan 108 amber eli 26 indigo eli 6 ember jules 8 birch
gus 31 juniper ivan 53 grove hana 57 grove ivan 108 amber eli 26 indigo eli 6 ember jules 8 birch
bruno 80 indigo bruno 6 fable chen 5 cobalt hana 113 indigo eli 57 delta farah 75 fable farah 82 delta chen 54 fable lina 37 amber
bruno 6 fable chen 5 cobalt hana 113 indigo eli 57 delta farah 75 fable farah 82 delta chen 54 fable lina 37 amber
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015024
qwen/qwen3.7-plus
awkweave-0015025
Count how many records have paused in column 2. Print 0 if there are none.
$2 == "paused"{n++}END{print n+0}
bruno failed 105 jules pending 92 farah ready 96 eli failed 35 eli ready 28 lina closed 11
0
dina ready 110 alice paused 109 eli failed 48 chen active 4 kim closed 30 eli pending 88 gus active 59 ivan ready 58 gus ready 111 ivan closed 59
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015025-p1
Tally the entries where column 2 contains 'paused' and display the count, defaulting to 0 if no matches are found.
$2 == "paused"{n++}END{print n+0}
bruno failed 105 jules pending 92 farah ready 96 eli failed 35 eli ready 28 lina closed 11
0
dina ready 110 alice paused 109 eli failed 48 chen active 4 kim closed 30 eli pending 88 gus active 59 ivan ready 58 gus ready 111 ivan closed 59
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015025
qwen/qwen3.7-plus
awkweave-0015026
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
chen 3 birch dina 25 birch alice 12 cobalt hana 6 amber lina 9 harbor alice 22 indigo lina 10 fable lina 17 indigo gus 9 cobalt ivan 22 cobalt
135
ivan 14 juniper eli 25 delta ivan 4 amber bruno 8 indigo jules 13 indigo gus 2 ember bruno 5 amber eli 24 delta eli 4 juniper alice 9 juniper
108
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015026-p1
Compute and output the total sum of integer values found in column 2.
{s+=$2}END{print s+0}
chen 3 birch dina 25 birch alice 12 cobalt hana 6 amber lina 9 harbor alice 22 indigo lina 10 fable lina 17 indigo gus 9 cobalt ivan 22 cobalt
135
ivan 14 juniper eli 25 delta ivan 4 amber bruno 8 indigo jules 13 indigo gus 2 ember bruno 5 amber eli 24 delta eli 4 juniper alice 9 juniper
108
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015026
qwen/qwen3.7-plus
awkweave-0015027
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
juniper 24 jules harbor 11 hana amber 15 alice delta 16 chen grove 21 alice cobalt 17 hana amber 30 bruno
19.14
indigo 5 bruno ember 17 alice amber 11 lina indigo 22 ivan juniper 8 ivan delta 7 jules
11.67
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015027-p1
Output the average of values in column 2, formatted to precisely two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
juniper 24 jules harbor 11 hana amber 15 alice delta 16 chen grove 21 alice cobalt 17 hana amber 30 bruno
19.14
indigo 5 bruno ember 17 alice amber 11 lina indigo 22 ivan juniper 8 ivan delta 7 jules
11.67
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015027
qwen/qwen3.7-plus
awkweave-0015028
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
jules 12 juniper kim 20 fable dina 13 birch lina 11 amber chen 24 juniper kim 16 ember
11
bruno 22 harbor jules 16 amber lina 18 delta lina 23 cobalt lina 20 harbor hana 25 juniper chen 30 fable jules 4 juniper gus 20 delta
4
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015028-p1
Identify and display the minimum numeric value present in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
jules 12 juniper kim 20 fable dina 13 birch lina 11 amber chen 24 juniper kim 16 ember
11
bruno 22 harbor jules 16 amber lina 18 delta lina 23 cobalt lina 20 harbor hana 25 juniper chen 30 fable jules 4 juniper gus 20 delta
4
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015028
qwen/qwen3.7-plus
awkweave-0015029
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
21 ember chen 9 ember hana 2 birch ivan 20 fable gus 22 juniper bruno 10 grove dina 20 ember lina 27 juniper jules 3 juniper bruno 1 delta chen
27
8 delta ivan 2 juniper jules 1 ember chen 3 cobalt gus 11 birch dina 4 harbor eli 4 juniper hana
11
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015029-p1
Identify and display the maximum numeric value present in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
21 ember chen 9 ember hana 2 birch ivan 20 fable gus 22 juniper bruno 10 grove dina 20 ember lina 27 juniper jules 3 juniper bruno 1 delta chen
27
8 delta ivan 2 juniper jules 1 ember chen 3 cobalt gus 11 birch dina 4 harbor eli 4 juniper hana
11
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015029
qwen/qwen3.7-plus
awkweave-0015030
Count all input records and print the total.
END{print NR}
gus 46 jules 67 dina 23 eli 69 bruno 43 eli 115 kim 8 gus 114
8
eli 120 dina 26 alice 72 hana 52 farah 22 bruno 22 gus 70 ivan 56
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015030-p1
Count the total number of input records and print the result.
END{print NR}
gus 46 jules 67 dina 23 eli 69 bruno 43 eli 115 kim 8 gus 114
8
eli 120 dina 26 alice 72 hana 52 farah 22 bruno 22 gus 70 ivan 56
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015030
qwen/qwen3.7-plus
awkweave-0015031
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
gus amber 1 ivan juniper 96 jules amber 120 hana birch 120 lina birch 8 gus harbor 69 jules amber 120 bruno grove 39 jules fable 91
gus amber 1 ivan juniper 96 jules amber 120 hana birch 120 lina birch 8 gus harbor 69 bruno grove 39 jules fable 91
jules indigo 100 bruno ember 70 chen amber 115 dina amber 47 gus delta 115 farah fable 75 dina amber 47 eli birch 19 ivan harbor 63 hana cobalt 10
jules indigo 100 bruno ember 70 chen amber 115 dina amber 47 gus delta 115 farah fable 75 eli birch 19 ivan harbor 63 hana cobalt 10
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015031-p1
Eliminate exact duplicate lines while maintaining the original order and keeping the first instance of each unique line.
!seen[$0]++
gus amber 1 ivan juniper 96 jules amber 120 hana birch 120 lina birch 8 gus harbor 69 jules amber 120 bruno grove 39 jules fable 91
gus amber 1 ivan juniper 96 jules amber 120 hana birch 120 lina birch 8 gus harbor 69 bruno grove 39 jules fable 91
jules indigo 100 bruno ember 70 chen amber 115 dina amber 47 gus delta 115 farah fable 75 dina amber 47 eli birch 19 ivan harbor 63 hana cobalt 10
jules indigo 100 bruno ember 70 chen amber 115 dina amber 47 gus delta 115 farah fable 75 eli birch 19 ivan harbor 63 hana cobalt 10
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015031
qwen/qwen3.7-plus
awkweave-0015032
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
chen harbor 94 chen harbor 46 dina grove 68 chen amber 91 kim birch 61 eli cobalt 113 eli fable 76 farah amber 30 gus indigo 0
chen harbor 94 dina grove 68 chen amber 91 kim birch 61 eli cobalt 113 eli fable 76 gus indigo 0
bruno ember 109 alice ember 82 hana harbor 34 gus birch 31 jules fable 90 ivan harbor 58
bruno ember 109 hana harbor 34 gus birch 31 jules fable 90
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015032-p1
Retain only the first occurrence for each unique value in column 2, preserving the original sequence of the input.
!seen[$2]++
chen harbor 94 chen harbor 46 dina grove 68 chen amber 91 kim birch 61 eli cobalt 113 eli fable 76 farah amber 30 gus indigo 0
chen harbor 94 dina grove 68 chen amber 91 kim birch 61 eli cobalt 113 eli fable 76 gus indigo 0
bruno ember 109 alice ember 82 hana harbor 34 gus birch 31 jules fable 90 ivan harbor 58
bruno ember 109 hana harbor 34 gus birch 31 jules fable 90
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015032
qwen/qwen3.7-plus
awkweave-0015033
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
chen 2 indigo lina 8 fable eli 11 cobalt jules 18 delta kim 4 amber hana 13 grove
chen 2 lina 10 eli 21 jules 39 kim 43 hana 56
gus 27 amber bruno 20 delta farah 8 juniper bruno 30 fable farah 24 fable lina 28 grove chen 22 delta chen 21 birch jules 29 harbor
gus 27 bruno 47 farah 55 bruno 85 farah 109 lina 137 chen 159 chen 180 jules 209
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015033-p1
For each record, output column 1 alongside the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
chen 2 indigo lina 8 fable eli 11 cobalt jules 18 delta kim 4 amber hana 13 grove
chen 2 lina 10 eli 21 jules 39 kim 43 hana 56
gus 27 amber bruno 20 delta farah 8 juniper bruno 30 fable farah 24 fable lina 28 grove chen 22 delta chen 21 birch jules 29 harbor
gus 27 bruno 47 farah 55 bruno 85 farah 109 lina 137 chen 159 chen 180 jules 209
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015033
qwen/qwen3.7-plus
awkweave-0015034
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
farah 1 8 amber alice 12 2 harbor ivan 3 1 juniper hana 25 11 harbor gus 2 13 birch jules 23 2 juniper
farah 9 alice 14 ivan 4 hana 36 gus 15 jules 25
bruno 18 15 fable jules 26 1 delta hana 9 12 ember ivan 5 5 cobalt chen 13 19 amber gus 9 6 ember
bruno 33 jules 27 hana 21 ivan 10 chen 32 gus 15
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015034-p1
Output field 1 followed by the sum of fields 2 and 3 for every row.
{print $1,$2+$3}
farah 1 8 amber alice 12 2 harbor ivan 3 1 juniper hana 25 11 harbor gus 2 13 birch jules 23 2 juniper
farah 9 alice 14 ivan 4 hana 36 gus 15 jules 25
bruno 18 15 fable jules 26 1 delta hana 9 12 ember ivan 5 5 cobalt chen 13 19 amber gus 9 6 ember
bruno 33 jules 27 hana 21 ivan 10 chen 32 gus 15
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015034
qwen/qwen3.7-plus
awkweave-0015035
Print column 1 and pass when column 2 is at least 24; otherwise print fail.
{print $1,($2>=24?"pass":"fail")}
alice 23 eli 21 hana 29 eli 9 bruno 18 alice 13 kim 18 eli 30 ivan 5
alice fail eli fail hana pass eli fail bruno fail alice fail kim fail eli pass ivan fail
farah 8 ivan 21 eli 4 dina 3 eli 30 alice 20 chen 8
farah fail ivan fail eli fail dina fail eli pass alice fail chen fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015035-p1
Print column 1 and output 'pass' if column 2 is greater than or equal to 24; otherwise, output 'fail'.
{print $1,($2>=24?"pass":"fail")}
alice 23 eli 21 hana 29 eli 9 bruno 18 alice 13 kim 18 eli 30 ivan 5
alice fail eli fail hana pass eli fail bruno fail alice fail kim fail eli pass ivan fail
farah 8 ivan 21 eli 4 dina 3 eli 30 alice 20 chen 8
farah fail ivan fail eli fail dina fail eli pass alice fail chen fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015035
qwen/qwen3.7-plus
awkweave-0015036
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
hana amber 55 eli cobalt 55 jules juniper 107 dina ember 14 eli delta 27 eli delta 70 ivan grove 48 jules indigo 11
AMBER COBALT JUNIPER EMBER DELTA DELTA GROVE INDIGO
dina harbor 8 hana indigo 57 ivan ember 23 jules harbor 59 bruno delta 46 dina fable 94 chen juniper 39 dina ember 50 jules birch 70
HARBOR INDIGO EMBER HARBOR DELTA FABLE JUNIPER EMBER BIRCH
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015036-p1
Transform the second column to uppercase and output only that column.
{print toupper($2)}
hana amber 55 eli cobalt 55 jules juniper 107 dina ember 14 eli delta 27 eli delta 70 ivan grove 48 jules indigo 11
AMBER COBALT JUNIPER EMBER DELTA DELTA GROVE INDIGO
dina harbor 8 hana indigo 57 ivan ember 23 jules harbor 59 bruno delta 46 dina fable 94 chen juniper 39 dina ember 50 jules birch 70
HARBOR INDIGO EMBER HARBOR DELTA FABLE JUNIPER EMBER BIRCH
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015036
qwen/qwen3.7-plus
awkweave-0015037
From column 1, print 4 characters starting at character 1.
{print substr($1,1,4)}
fable 49 juniper 96 indigo 119 ember 51 fable 42 grove 71 juniper 38 cobalt 1 delta 33 harbor 56
fabl juni indi embe fabl grov juni coba delt harb
juniper 11 harbor 2 grove 63 delta 8 amber 86 harbor 109 delta 88 juniper 16
juni harb grov delt ambe harb delt juni
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015037-p1
Extract and print the first 4 characters from the first column.
{print substr($1,1,4)}
fable 49 juniper 96 indigo 119 ember 51 fable 42 grove 71 juniper 38 cobalt 1 delta 33 harbor 56
fabl juni indi embe fabl grov juni coba delt harb
juniper 11 harbor 2 grove 63 delta 8 amber 86 harbor 109 delta 88 juniper 16
juni harb grov delt ambe harb delt juni
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015037
qwen/qwen3.7-plus
awkweave-0015038
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
ember_birch 61 amber_harbor 104 harbor_birch 40 cobalt_harbor 24 indigo_juniper 48 amber_cobalt 70
ember birch amber harbor harbor birch cobalt harbor indigo juniper amber cobalt
fable_fable 73 indigo_harbor 14 ember_delta 95 juniper_birch 95 juniper_fable 18 cobalt_fable 72 harbor_amber 45 juniper_ember 21 birch_juniper 55 ember_indigo 43
fable fable indigo harbor ember delta juniper birch juniper fable cobalt fable harbor amber juniper ember birch juniper ember indigo
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015038-p1
Substitute all underscores in the first column with spaces and display the results.
{gsub(/_/," ",$1);print $1}
ember_birch 61 amber_harbor 104 harbor_birch 40 cobalt_harbor 24 indigo_juniper 48 amber_cobalt 70
ember birch amber harbor harbor birch cobalt harbor indigo juniper amber cobalt
fable_fable 73 indigo_harbor 14 ember_delta 95 juniper_birch 95 juniper_fable 18 cobalt_fable 72 harbor_amber 45 juniper_ember 21 birch_juniper 55 ember_indigo 43
fable fable indigo harbor ember delta juniper birch juniper fable cobalt fable harbor amber juniper ember birch juniper ember indigo
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015038
qwen/qwen3.7-plus
awkweave-0015039
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)}
lina indigo 32 ready alice birch 93 ready kim delta 28 pending gus indigo 58 closed chen cobalt 52 failed hana ember 69 paused
ready 32 indigo lina ready 93 birch alice pending 28 delta kim closed 58 indigo gus failed 52 cobalt chen paused 69 ember hana
farah amber 56 pending lina fable 101 active gus cobalt 63 closed farah cobalt 99 failed ivan delta 82 closed gus amber 57 failed
pending 56 amber farah active 101 fable lina closed 63 cobalt gus failed 99 cobalt farah closed 82 delta ivan failed 57 amber gus
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015039-p1
Reverse the sequence of fields on each line and output all of them.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
lina indigo 32 ready alice birch 93 ready kim delta 28 pending gus indigo 58 closed chen cobalt 52 failed hana ember 69 paused
ready 32 indigo lina ready 93 birch alice pending 28 delta kim closed 58 indigo gus failed 52 cobalt chen paused 69 ember hana
farah amber 56 pending lina fable 101 active gus cobalt 63 closed farah cobalt 99 failed ivan delta 82 closed gus amber 57 failed
pending 56 amber farah active 101 fable lina closed 63 cobalt gus failed 99 cobalt farah closed 82 delta ivan failed 57 amber gus
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015039
qwen/qwen3.7-plus
awkweave-0015040
Print the number of whitespace-separated fields on each line.
{print NF}
alice juniper 4 active eli cobalt 13 closed ivan birch 8 pending alice harbor 21 paused jules ember 41 ready ivan birch 86 active
4 4 4 4 4 4
eli harbor 51 ready farah grove 23 failed ivan harbor 111 pending chen cobalt 40 active hana birch 116 failed farah harbor 58 failed
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015040-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
alice juniper 4 active eli cobalt 13 closed ivan birch 8 pending alice harbor 21 paused jules ember 41 ready ivan birch 86 active
4 4 4 4 4 4
eli harbor 51 ready farah grove 23 failed ivan harbor 111 pending chen cobalt 40 active hana birch 116 failed farah harbor 58 failed
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015040
qwen/qwen3.7-plus
awkweave-0015041
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]]}
lina alpha 19 dina delta 52 eli delta 26 chen gamma 82 hana gamma 56 hana beta 91 kim alpha 120
alpha 2 delta 2 gamma 2 beta 1
hana gamma 61 dina delta 72 jules alpha 104 gus beta 120 kim delta 18 chen beta 63 kim beta 70 lina beta 99 hana gamma 4 jules alpha 63
gamma 2 delta 2 alpha 2 beta 4
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015041-p1
Tally the occurrences of each value in column 2 and print the value alongside its count, maintaining the order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
lina alpha 19 dina delta 52 eli delta 26 chen gamma 82 hana gamma 56 hana beta 91 kim alpha 120
alpha 2 delta 2 gamma 2 beta 1
hana gamma 61 dina delta 72 jules alpha 104 gus beta 120 kim delta 18 chen beta 63 kim beta 70 lina beta 99 hana gamma 4 jules alpha 63
gamma 2 delta 2 alpha 2 beta 4
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015041
qwen/qwen3.7-plus
awkweave-0015042
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]]}
ivan alpha 12 chen beta 10 gus alpha 8 gus alpha 5 eli alpha 13 bruno alpha 4 lina alpha 18 kim delta 13 dina alpha 13
alpha 73 beta 10 delta 13
lina alpha 7 farah beta 27 ivan alpha 13 gus alpha 4 farah beta 27 dina alpha 12 bruno delta 3 bruno beta 18 dina delta 14 lina gamma 30
alpha 36 beta 72 delta 17 gamma 30
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015042-p1
Calculate the sum of column 3 grouped by column 2 categories, displaying the groups in the order they first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
ivan alpha 12 chen beta 10 gus alpha 8 gus alpha 5 eli alpha 13 bruno alpha 4 lina alpha 18 kim delta 13 dina alpha 13
alpha 73 beta 10 delta 13
lina alpha 7 farah beta 27 ivan alpha 13 gus alpha 4 farah beta 27 dina alpha 12 bruno delta 3 bruno beta 18 dina delta 14 lina gamma 30
alpha 36 beta 72 delta 17 gamma 30
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015042
qwen/qwen3.7-plus
awkweave-0015043
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]]}
alpha juniper 67 alpha delta 118 gamma cobalt 20 beta cobalt 112 delta fable 52 alpha ember 18 beta harbor 16
alpha 3 beta 2
beta delta 78 alpha cobalt 57 alpha indigo 74 alpha indigo 87 delta juniper 79 gamma delta 79 gamma fable 16
alpha 3 gamma 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015043-p1
List each duplicate value from column 1 along with its frequency, sorted 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]]}
alpha juniper 67 alpha delta 118 gamma cobalt 20 beta cobalt 112 delta fable 52 alpha ember 18 beta harbor 16
alpha 3 beta 2
beta delta 78 alpha cobalt 57 alpha indigo 74 alpha indigo 87 delta juniper 79 gamma delta 79 gamma fable 16
alpha 3 gamma 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015043
qwen/qwen3.7-plus
awkweave-0015044
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"]}
score display_name record_id region r001 farah 11 pending r002 hana 6 closed r003 gus 10 active r004 ivan 16 pending r005 lina 8 active r006 gus 26 paused
farah hana gus ivan lina gus
score display_name record_id region r001 hana 9 active r002 alice 12 active r003 hana 14 closed r004 farah 4 paused r005 alice 28 ready r006 kim 14 active
hana alice hana farah alice kim
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015044-p1
Treating the first row as a header, output the 'display_name' column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
score display_name record_id region r001 farah 11 pending r002 hana 6 closed r003 gus 10 active r004 ivan 16 pending r005 lina 8 active r006 gus 26 paused
farah hana gus ivan lina gus
score display_name record_id region r001 hana 9 active r002 alice 12 active r003 hana 14 closed r004 farah 4 paused r005 alice 28 ready r006 kim 14 active
hana alice hana farah alice kim
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015044
qwen/qwen3.7-plus
awkweave-0015045
The first row is a header. Print display_name for data rows whose score is greater than 17.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>17{print $h["display_name"]}
record_id display_name score state r001 ivan 3 pending r002 gus 28 active r003 dina 10 pending r004 hana 26 failed r005 alice 5 failed r006 jules 18 pending r007 chen 10 closed r008 dina 3 pending
gus hana jules
record_id display_name score state r001 hana 9 paused r002 dina 6 failed r003 kim 4 pending r004 chen 20 active r005 kim 22 ready r006 chen 6 closed r007 lina 18 pending r008 kim 4 failed r009 farah 6 paused
chen kim lina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015045-p1
With the first row as a header, output the 'display_name' for data rows where the 'score' is greater than 17.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>17{print $h["display_name"]}
record_id display_name score state r001 ivan 3 pending r002 gus 28 active r003 dina 10 pending r004 hana 26 failed r005 alice 5 failed r006 jules 18 pending r007 chen 10 closed r008 dina 3 pending
gus hana jules
record_id display_name score state r001 hana 9 paused r002 dina 6 failed r003 kim 4 pending r004 chen 20 active r005 kim 22 ready r006 chen 6 closed r007 lina 18 pending r008 kim 4 failed r009 farah 6 paused
chen kim lina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015045
qwen/qwen3.7-plus
awkweave-0015046
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
alice 10 ready kim 15 pending hana 4 ready chen 24 pending chen 2 ready eli 12 pending farah 28 ready chen 9 closed eli 29 ready
ready pending ready pending ready pending ready closed ready
gus 8 closed bruno 29 pending jules 19 active ivan 1 ready lina 16 failed hana 10 paused gus 10 ready
closed pending active ready failed paused ready
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015046-p1
Given tab-separated input, extract and print the third column from every record.
BEGIN{FS=OFS="\t"}{print $3}
alice 10 ready kim 15 pending hana 4 ready chen 24 pending chen 2 ready eli 12 pending farah 28 ready chen 9 closed eli 29 ready
ready pending ready pending ready pending ready closed ready
gus 8 closed bruno 29 pending jules 19 active ivan 1 ready lina 16 failed hana 10 paused gus 10 ready
closed pending active ready failed paused ready
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015046
qwen/qwen3.7-plus
awkweave-0015047
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 24.
BEGIN{FS=OFS=","}$2>24{print $1}
bruno,5,paused bruno,1,ready jules,15,paused gus,10,active kim,28,closed bruno,25,failed lina,10,closed eli,15,closed eli,17,paused kim,15,pending
kim bruno
bruno,2,paused eli,23,closed farah,18,closed lina,15,pending chen,5,pending dina,12,pending
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015047-p1
For simple comma-separated data without quoted commas, print the first column if the second column is greater than 24.
BEGIN{FS=OFS=","}$2>24{print $1}
bruno,5,paused bruno,1,ready jules,15,paused gus,10,active kim,28,closed bruno,25,failed lina,10,closed eli,15,closed eli,17,paused kim,15,pending
kim bruno
bruno,2,paused eli,23,closed farah,18,closed lina,15,pending chen,5,pending dina,12,pending
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015047
qwen/qwen3.7-plus
awkweave-0015048
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
ivan grove 40 hana cobalt 72 alice juniper 119 jules indigo 89 alice juniper 0 jules juniper 106 kim cobalt 39 bruno ember 57
ivan grove 40 hana cobalt 72 alice juniper 119 jules indigo 89 alice juniper 0 jules juniper 106 kim cobalt 39 bruno ember 57
ivan delta 77 alice birch 63 gus grove 119 bruno birch 96 alice ember 1 dina cobalt 60 farah grove 10
ivan delta 77 alice birch 63 gus grove 119 bruno birch 96 alice ember 1 dina cobalt 60 farah grove 10
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015048-p1
Strip leading and trailing whitespace, then replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
ivan grove 40 hana cobalt 72 alice juniper 119 jules indigo 89 alice juniper 0 jules juniper 106 kim cobalt 39 bruno ember 57
ivan grove 40 hana cobalt 72 alice juniper 119 jules indigo 89 alice juniper 0 jules juniper 106 kim cobalt 39 bruno ember 57
ivan delta 77 alice birch 63 gus grove 119 bruno birch 96 alice ember 1 dina cobalt 60 farah grove 10
ivan delta 77 alice birch 63 gus grove 119 bruno birch 96 alice ember 1 dina cobalt 60 farah grove 10
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015048
qwen/qwen3.7-plus
awkweave-0015049
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
gus harbor 96 paused dina delta 41 failed jules fable 81 closed hana delta 24 active bruno delta 78 failed farah harbor 7 failed
jules fable 81 closed
lina harbor 43 paused lina grove 57 active gus amber 51 pending eli birch 77 closed hana delta 21 failed gus amber 64 pending hana ember 66 failed
lina harbor 43 paused
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015049-p1
Identify and output the longest line from the input; if multiple lines share the maximum length, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
gus harbor 96 paused dina delta 41 failed jules fable 81 closed hana delta 24 active bruno delta 78 failed farah harbor 7 failed
jules fable 81 closed
lina harbor 43 paused lina grove 57 active gus amber 51 pending eli birch 77 closed hana delta 21 failed gus amber 64 pending hana ember 66 failed
lina harbor 43 paused
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015049
qwen/qwen3.7-plus
awkweave-0015050
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
jules 68 jules 119 lina 85 ivan 33 ivan 111 alice 119
jules 119 ivan 111
dina 15 jules 98 bruno 52 eli 98 ivan 31 hana 56
jules 98 ivan 31
every_nth
1
train
original-grammar
CC-BY-4.0
null
null