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-0007000-p1
Output the first field and the total of the second and third fields for each row.
{print $1,$2+$3}
chen 3 29 cobalt eli 24 21 fable alice 2 9 grove eli 8 18 birch alice 5 19 delta eli 7 19 juniper gus 23 19 indigo jules 20 7 indigo bruno 21 18 birch
chen 32 eli 45 alice 11 eli 26 alice 24 eli 26 gus 42 jules 27 bruno 39
dina 18 20 amber bruno 15 29 harbor gus 12 29 ember kim 19 29 fable hana 26 12 ember chen 10 10 indigo lina 1 4 amber alice 11 20 cobalt
dina 38 bruno 44 gus 41 kim 48 hana 38 chen 20 lina 5 alice 31
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007000
qwen/qwen3.7-plus
awkweave-0007001
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
hana 4 farah 21 chen 29 ivan 26 bruno 29 kim 20
hana fail farah fail chen pass ivan pass bruno pass kim fail
ivan 3 hana 30 bruno 25 chen 20 dina 19 bruno 25 jules 19
ivan fail hana pass bruno pass chen fail dina fail bruno pass jules fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007001-p1
Display the first column; if the second column is 25 or higher, output 'pass', otherwise output 'fail'.
{print $1,($2>=25?"pass":"fail")}
hana 4 farah 21 chen 29 ivan 26 bruno 29 kim 20
hana fail farah fail chen pass ivan pass bruno pass kim fail
ivan 3 hana 30 bruno 25 chen 20 dina 19 bruno 25 jules 19
ivan fail hana pass bruno pass chen fail dina fail bruno pass jules fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007001
qwen/qwen3.7-plus
awkweave-0007002
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
bruno fable 73 farah ember 94 hana harbor 102 chen delta 27 eli birch 28 jules grove 81 hana harbor 12 jules juniper 95 gus cobalt 103
BRUNO FARAH HANA CHEN ELI JULES HANA JULES GUS
gus delta 20 dina ember 13 ivan juniper 77 jules fable 55 lina cobalt 12 hana fable 104
GUS DINA IVAN JULES LINA HANA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007002-p1
Transform the first column to uppercase and output only that column.
{print toupper($1)}
bruno fable 73 farah ember 94 hana harbor 102 chen delta 27 eli birch 28 jules grove 81 hana harbor 12 jules juniper 95 gus cobalt 103
BRUNO FARAH HANA CHEN ELI JULES HANA JULES GUS
gus delta 20 dina ember 13 ivan juniper 77 jules fable 55 lina cobalt 12 hana fable 104
GUS DINA IVAN JULES LINA HANA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007002
qwen/qwen3.7-plus
awkweave-0007003
From column 1, print 2 characters starting at character 1.
{print substr($1,1,2)}
harbor 52 juniper 94 fable 49 grove 76 birch 107 birch 95 indigo 10 delta 73 amber 46
ha ju fa gr bi bi in de am
indigo 35 fable 41 amber 42 fable 18 indigo 73 indigo 54 birch 103 birch 25
in fa am fa in in bi bi
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007003-p1
Extract and print the first 2 characters from the first column.
{print substr($1,1,2)}
harbor 52 juniper 94 fable 49 grove 76 birch 107 birch 95 indigo 10 delta 73 amber 46
ha ju fa gr bi bi in de am
indigo 35 fable 41 amber 42 fable 18 indigo 73 indigo 54 birch 103 birch 25
in fa am fa in in bi bi
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007003
qwen/qwen3.7-plus
awkweave-0007004
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
fable_indigo 31 juniper_ember 19 grove_delta 24 amber_ember 56 ember_birch 90 grove_juniper 93 juniper_delta 85 indigo_cobalt 62 grove_indigo 25
fable indigo juniper ember grove delta amber ember ember birch grove juniper juniper delta indigo cobalt grove indigo
juniper_grove 72 birch_indigo 120 ember_cobalt 107 ember_ember 7 harbor_birch 104 cobalt_amber 7 cobalt_grove 101 cobalt_delta 20 ember_indigo 92 indigo_amber 9
juniper grove birch indigo ember cobalt ember ember harbor birch cobalt amber cobalt grove cobalt delta ember indigo indigo amber
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007004-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
fable_indigo 31 juniper_ember 19 grove_delta 24 amber_ember 56 ember_birch 90 grove_juniper 93 juniper_delta 85 indigo_cobalt 62 grove_indigo 25
fable indigo juniper ember grove delta amber ember ember birch grove juniper juniper delta indigo cobalt grove indigo
juniper_grove 72 birch_indigo 120 ember_cobalt 107 ember_ember 7 harbor_birch 104 cobalt_amber 7 cobalt_grove 101 cobalt_delta 20 ember_indigo 92 indigo_amber 9
juniper grove birch indigo ember cobalt ember ember harbor birch cobalt amber cobalt grove cobalt delta ember indigo indigo amber
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007004
qwen/qwen3.7-plus
awkweave-0007005
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 amber 93 active kim harbor 67 paused kim indigo 7 pending hana harbor 59 failed chen birch 63 pending farah birch 62 pending ivan amber 52 pending
active 93 amber lina paused 67 harbor kim pending 7 indigo kim failed 59 harbor hana pending 63 birch chen pending 62 birch farah pending 52 amber ivan
gus juniper 87 paused dina ember 72 failed kim harbor 113 active kim ember 17 failed lina indigo 117 pending farah ember 47 closed jules amber 110 paused dina fable 67 pending
paused 87 juniper gus failed 72 ember dina active 113 harbor kim failed 17 ember kim pending 117 indigo lina closed 47 ember farah paused 110 amber jules pending 67 fable dina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007005-p1
Reverse the sequence of fields on each line and print all of them.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
lina amber 93 active kim harbor 67 paused kim indigo 7 pending hana harbor 59 failed chen birch 63 pending farah birch 62 pending ivan amber 52 pending
active 93 amber lina paused 67 harbor kim pending 7 indigo kim failed 59 harbor hana pending 63 birch chen pending 62 birch farah pending 52 amber ivan
gus juniper 87 paused dina ember 72 failed kim harbor 113 active kim ember 17 failed lina indigo 117 pending farah ember 47 closed jules amber 110 paused dina fable 67 pending
paused 87 juniper gus failed 72 ember dina active 113 harbor kim failed 17 ember kim pending 117 indigo lina closed 47 ember farah paused 110 amber jules pending 67 fable dina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007005
qwen/qwen3.7-plus
awkweave-0007006
Print the number of whitespace-separated fields on each line.
{print NF}
ivan cobalt 63 active farah indigo 55 active ivan grove 99 failed dina cobalt 100 failed hana birch 71 active gus cobalt 45 closed farah amber 83 paused jules amber 113 ready lina harbor 31 closed
4 4 4 4 4 4 4 4 4
dina harbor 110 active eli cobalt 24 closed ivan cobalt 83 active hana grove 60 closed eli juniper 12 failed farah fable 5 ready chen grove 74 pending
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007006-p1
Print the count of whitespace-delimited fields for every line.
{print NF}
ivan cobalt 63 active farah indigo 55 active ivan grove 99 failed dina cobalt 100 failed hana birch 71 active gus cobalt 45 closed farah amber 83 paused jules amber 113 ready lina harbor 31 closed
4 4 4 4 4 4 4 4 4
dina harbor 110 active eli cobalt 24 closed ivan cobalt 83 active hana grove 60 closed eli juniper 12 failed farah fable 5 ready chen grove 74 pending
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007006
qwen/qwen3.7-plus
awkweave-0007007
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]]}
ivan delta 120 dina alpha 52 lina alpha 37 eli alpha 107 bruno alpha 108 alice alpha 66 lina beta 96
delta 1 alpha 5 beta 1
jules delta 85 dina alpha 101 farah delta 35 hana delta 118 alice beta 52 bruno delta 2 dina gamma 100 kim alpha 42 lina beta 9
delta 4 alpha 2 beta 2 gamma 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007007-p1
Tally the number of records for each unique value in the second column, printing each value and 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]]}
ivan delta 120 dina alpha 52 lina alpha 37 eli alpha 107 bruno alpha 108 alice alpha 66 lina beta 96
delta 1 alpha 5 beta 1
jules delta 85 dina alpha 101 farah delta 35 hana delta 118 alice beta 52 bruno delta 2 dina gamma 100 kim alpha 42 lina beta 9
delta 4 alpha 2 beta 2 gamma 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007007
qwen/qwen3.7-plus
awkweave-0007008
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]]}
lina alpha 1 eli alpha 11 ivan gamma 19 eli beta 9 dina beta 26 lina beta 29 lina delta 1 jules gamma 16 eli gamma 28
alpha 12 gamma 63 beta 64 delta 1
chen gamma 17 hana beta 30 hana delta 16 dina alpha 27 lina beta 19 lina gamma 27 chen delta 2 hana alpha 25
gamma 44 beta 49 delta 18 alpha 52
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007008-p1
Calculate the sum of the third column for each group defined by the second column, outputting 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]]}
lina alpha 1 eli alpha 11 ivan gamma 19 eli beta 9 dina beta 26 lina beta 29 lina delta 1 jules gamma 16 eli gamma 28
alpha 12 gamma 63 beta 64 delta 1
chen gamma 17 hana beta 30 hana delta 16 dina alpha 27 lina beta 19 lina gamma 27 chen delta 2 hana alpha 25
gamma 44 beta 49 delta 18 alpha 52
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007008
qwen/qwen3.7-plus
awkweave-0007009
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta fable 32 gamma birch 47 beta amber 22 delta indigo 51 alpha harbor 88 alpha delta 26 delta cobalt 23
beta 2 delta 2 alpha 2
alpha cobalt 40 delta amber 29 beta amber 110 alpha delta 30 gamma birch 115 alpha harbor 41
alpha 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007009-p1
List each duplicate value from the first column 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]]}
beta fable 32 gamma birch 47 beta amber 22 delta indigo 51 alpha harbor 88 alpha delta 26 delta cobalt 23
beta 2 delta 2 alpha 2
alpha cobalt 40 delta amber 29 beta amber 110 alpha delta 30 gamma birch 115 alpha harbor 41
alpha 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007009
qwen/qwen3.7-plus
awkweave-0007010
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"]}
score note record_id state r001 eli 14 ready r002 chen 19 closed r003 eli 11 paused r004 chen 26 active r005 jules 13 failed r006 chen 13 pending r007 farah 18 paused
14 19 11 26 13 13 18
score note record_id state r001 eli 11 ready r002 farah 6 closed r003 chen 9 failed r004 lina 17 failed r005 alice 11 pending r006 chen 20 failed r007 chen 8 failed r008 ivan 11 failed r009 hana 6 pending r010 chen 6 failed
11 6 9 17 11 20 8 11 6 6
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007010-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"]}
score note record_id state r001 eli 14 ready r002 chen 19 closed r003 eli 11 paused r004 chen 26 active r005 jules 13 failed r006 chen 13 pending r007 farah 18 paused
14 19 11 26 13 13 18
score note record_id state r001 eli 11 ready r002 farah 6 closed r003 chen 9 failed r004 lina 17 failed r005 alice 11 pending r006 chen 20 failed r007 chen 8 failed r008 ivan 11 failed r009 hana 6 pending r010 chen 6 failed
11 6 9 17 11 20 8 11 6 6
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007010
qwen/qwen3.7-plus
awkweave-0007011
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 dina 3 closed r002 gus 1 failed r003 alice 26 active r004 dina 16 failed r005 jules 23 pending r006 chen 6 closed r007 hana 12 closed r008 hana 10 active r009 farah 29 pending
alice jules farah
record_id display_name score state r001 lina 10 ready r002 farah 17 paused r003 gus 14 pending r004 alice 18 ready r005 gus 9 pending r006 gus 26 paused
alice gus
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007011-p1
With the first row as a header, print the display_name for data rows where the score exceeds 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 dina 3 closed r002 gus 1 failed r003 alice 26 active r004 dina 16 failed r005 jules 23 pending r006 chen 6 closed r007 hana 12 closed r008 hana 10 active r009 farah 29 pending
alice jules farah
record_id display_name score state r001 lina 10 ready r002 farah 17 paused r003 gus 14 pending r004 alice 18 ready r005 gus 9 pending r006 gus 26 paused
alice gus
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007011
qwen/qwen3.7-plus
awkweave-0007012
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
gus 8 active gus 13 paused dina 30 paused eli 29 active bruno 30 ready bruno 8 pending hana 30 paused lina 4 failed kim 10 failed bruno 29 paused
active paused paused active ready pending paused failed failed paused
eli 25 failed chen 26 ready hana 19 closed hana 12 paused dina 1 ready bruno 28 paused jules 2 closed chen 20 closed
failed ready closed paused ready paused closed closed
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007012-p1
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
gus 8 active gus 13 paused dina 30 paused eli 29 active bruno 30 ready bruno 8 pending hana 30 paused lina 4 failed kim 10 failed bruno 29 paused
active paused paused active ready pending paused failed failed paused
eli 25 failed chen 26 ready hana 19 closed hana 12 paused dina 1 ready bruno 28 paused jules 2 closed chen 20 closed
failed ready closed paused ready paused closed closed
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0007012
qwen/qwen3.7-plus
awkweave-0007013
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 16.
BEGIN{FS=OFS=","}$2>16{print $1}
eli,8,paused jules,27,paused dina,4,active kim,27,paused dina,12,closed jules,7,failed ivan,14,failed eli,18,closed hana,5,failed
jules kim eli
gus,30,active gus,25,active jules,13,paused farah,7,pending ivan,11,paused farah,24,failed bruno,8,ready alice,10,failed
gus gus farah
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007013-p1
Output the first field of comma-separated rows where the second field is greater than 16, assuming no quoted commas exist.
BEGIN{FS=OFS=","}$2>16{print $1}
eli,8,paused jules,27,paused dina,4,active kim,27,paused dina,12,closed jules,7,failed ivan,14,failed eli,18,closed hana,5,failed
jules kim eli
gus,30,active gus,25,active jules,13,paused farah,7,pending ivan,11,paused farah,24,failed bruno,8,ready alice,10,failed
gus gus farah
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007013
qwen/qwen3.7-plus
awkweave-0007014
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
farah cobalt 15 alice juniper 7 gus amber 64 chen amber 4 dina fable 120 ivan grove 35 kim amber 90 kim grove 61
farah cobalt 15 alice juniper 7 gus amber 64 chen amber 4 dina fable 120 ivan grove 35 kim amber 90 kim grove 61
ivan birch 116 jules fable 28 bruno amber 28 chen grove 15 ivan indigo 113 alice fable 16 bruno juniper 116 gus cobalt 90 chen grove 95
ivan birch 116 jules fable 28 bruno amber 28 chen grove 15 ivan indigo 113 alice fable 16 bruno juniper 116 gus cobalt 90 chen grove 95
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007014-p1
Remove leading and trailing whitespace, then replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
farah cobalt 15 alice juniper 7 gus amber 64 chen amber 4 dina fable 120 ivan grove 35 kim amber 90 kim grove 61
farah cobalt 15 alice juniper 7 gus amber 64 chen amber 4 dina fable 120 ivan grove 35 kim amber 90 kim grove 61
ivan birch 116 jules fable 28 bruno amber 28 chen grove 15 ivan indigo 113 alice fable 16 bruno juniper 116 gus cobalt 90 chen grove 95
ivan birch 116 jules fable 28 bruno amber 28 chen grove 15 ivan indigo 113 alice fable 16 bruno juniper 116 gus cobalt 90 chen grove 95
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007014
qwen/qwen3.7-plus
awkweave-0007015
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
hana birch 18 ready chen cobalt 117 paused lina amber 57 ready dina fable 106 pending alice amber 26 closed bruno juniper 34 closed
bruno juniper 34 closed
hana grove 28 ready dina cobalt 104 active alice fable 94 closed eli delta 18 pending eli ember 6 paused alice juniper 16 pending chen indigo 97 failed gus cobalt 11 active ivan indigo 65 closed
alice juniper 16 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007015-p1
Identify and output the longest line in the input; if multiple lines share the maximum length, select the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
hana birch 18 ready chen cobalt 117 paused lina amber 57 ready dina fable 106 pending alice amber 26 closed bruno juniper 34 closed
bruno juniper 34 closed
hana grove 28 ready dina cobalt 104 active alice fable 94 closed eli delta 18 pending eli ember 6 paused alice juniper 16 pending chen indigo 97 failed gus cobalt 11 active ivan indigo 65 closed
alice juniper 16 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007015
qwen/qwen3.7-plus
awkweave-0007016
Print every 4th line starting at line 2 (then line 6, and so on).
NR%4==2
bruno 36 farah 120 hana 95 eli 55 farah 49 dina 71 bruno 101
farah 120 dina 71
chen 46 bruno 106 jules 68 eli 61 farah 48 ivan 94 alice 10
bruno 106 ivan 94
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007016-p1
Print every fourth line beginning with line 2 (i.e., lines 2, 6, 10, etc.).
NR%4==2
bruno 36 farah 120 hana 95 eli 55 farah 49 dina 71 bruno 101
farah 120 dina 71
chen 46 bruno 106 jules 68 eli 61 farah 48 ivan 94 alice 10
bruno 106 ivan 94
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007016
qwen/qwen3.7-plus
awkweave-0007017
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
delta birch 95 beta fable 34 delta cobalt 7 gamma indigo 52 beta indigo 56 alpha juniper 101
4
gamma ember 26 delta fable 71 delta amber 3 beta juniper 86 gamma birch 80 beta fable 53 gamma juniper 54 gamma juniper 6
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007017-p1
Calculate and output only the total number of unique values found in the first column.
{if(!seen[$1]++)n++}END{print n+0}
delta birch 95 beta fable 34 delta cobalt 7 gamma indigo 52 beta indigo 56 alpha juniper 101
4
gamma ember 26 delta fable 71 delta amber 3 beta juniper 86 gamma birch 80 beta fable 53 gamma juniper 54 gamma juniper 6
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007017
qwen/qwen3.7-plus
awkweave-0007018
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}
dina 6 0 bruno 24 22 chen 2 29 hana 26 3 ivan 3 25 eli 13 3 ivan 11 3
bruno 1.09 chen 0.07 hana 8.67 ivan 0.12 eli 4.33 ivan 3.67
lina 4 0 chen 26 29 jules 9 9 farah 15 28 chen 22 6 ivan 11 29 alice 22 6 lina 11 20 alice 17 26 jules 21 29
chen 0.90 jules 1.00 farah 0.54 chen 3.67 ivan 0.38 alice 3.67 lina 0.55 alice 0.65 jules 0.72
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007018-p1
For each row where the third column is non-zero, output the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
dina 6 0 bruno 24 22 chen 2 29 hana 26 3 ivan 3 25 eli 13 3 ivan 11 3
bruno 1.09 chen 0.07 hana 8.67 ivan 0.12 eli 4.33 ivan 3.67
lina 4 0 chen 26 29 jules 9 9 farah 15 28 chen 22 6 ivan 11 29 alice 22 6 lina 11 20 alice 17 26 jules 21 29
chen 0.90 jules 1.00 farah 0.54 chen 3.67 ivan 0.38 alice 3.67 lina 0.55 alice 0.65 jules 0.72
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007018
qwen/qwen3.7-plus
awkweave-0007019
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]}
chen fable 18 alice juniper 21 gus indigo 24 bruno juniper 18 chen indigo 6 alice amber 25
alice amber 25 gus indigo 24 alice juniper 21
lina grove 19 dina indigo 23 kim indigo 24 farah cobalt 5 ivan harbor 15 farah indigo 9 eli fable 17 lina juniper 12 dina indigo 2 eli birch 26
eli birch 26 kim indigo 24 dina indigo 23
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007019-p1
Output the three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
chen fable 18 alice juniper 21 gus indigo 24 bruno juniper 18 chen indigo 6 alice amber 25
alice amber 25 gus indigo 24 alice juniper 21
lina grove 19 dina indigo 23 kim indigo 24 farah cobalt 5 ivan harbor 15 farah indigo 9 eli fable 17 lina juniper 12 dina indigo 2 eli birch 26
eli birch 26 kim indigo 24 dina indigo 23
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007019
qwen/qwen3.7-plus
awkweave-0007020
Print column 2 followed by column 1 for every record.
{print $2, $1}
closed failed 60 47 closed active paused 49 58 ready ready closed 40 31 failed pending paused 81 6 closed active closed 33 74 closed pending closed 39 98 closed ready paused 11 22 paused
failed closed paused active closed ready paused pending closed active closed pending paused ready
pending ready 18 74 active active closed 15 33 closed failed closed 18 86 ready ready paused 92 89 closed ready failed 75 112 ready pending closed 97 36 paused failed closed 100 50 pending active closed 59 61 closed failed closed 56 31 active
ready pending closed active closed failed paused ready failed ready closed pending closed failed closed active closed failed
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007020-p1
Swap the first two columns for every record, printing column 2 followed by column 1.
{print $2, $1}
closed failed 60 47 closed active paused 49 58 ready ready closed 40 31 failed pending paused 81 6 closed active closed 33 74 closed pending closed 39 98 closed ready paused 11 22 paused
failed closed paused active closed ready paused pending closed active closed pending paused ready
pending ready 18 74 active active closed 15 33 closed failed closed 18 86 ready ready paused 92 89 closed ready failed 75 112 ready pending closed 97 36 paused failed closed 100 50 pending active closed 59 61 closed failed closed 56 31 active
ready pending closed active closed failed paused ready failed ready closed pending closed failed closed active closed failed
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007020
qwen/qwen3.7-plus
awkweave-0007021
Print the last field of every input line.
{print $NF}
active active 93 failed 83 55 harbor failed active 22 closed 62 93 delta ready failed 13 paused 77 108 grove active ready 68 failed 111 18 fable closed paused 101 active 42 116 amber pending active 51 active 56 80 cobalt failed failed 84 closed 77 50 birch
harbor delta grove fable amber cobalt birch
ready active 6 paused 50 93 cobalt active pending 2 active 39 22 juniper active paused 39 closed 87 65 delta pending failed 114 failed 61 70 cobalt ready failed 11 failed 56 57 cobalt active failed 17 active 52 9 harbor closed ready 80 paused 69 48 indigo
cobalt juniper delta cobalt cobalt harbor indigo
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007021-p1
Display the final field of every line in the input.
{print $NF}
active active 93 failed 83 55 harbor failed active 22 closed 62 93 delta ready failed 13 paused 77 108 grove active ready 68 failed 111 18 fable closed paused 101 active 42 116 amber pending active 51 active 56 80 cobalt failed failed 84 closed 77 50 birch
harbor delta grove fable amber cobalt birch
ready active 6 paused 50 93 cobalt active pending 2 active 39 22 juniper active paused 39 closed 87 65 delta pending failed 114 failed 61 70 cobalt ready failed 11 failed 56 57 cobalt active failed 17 active 52 9 harbor closed ready 80 paused 69 48 indigo
cobalt juniper delta cobalt cobalt harbor indigo
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007021
qwen/qwen3.7-plus
awkweave-0007022
Print the complete records where column 1 is at least 38.
$1 >= 38
36 ready amber 26 failed indigo 116 paused indigo 25 failed juniper 49 active cobalt 84 ready birch 73 paused indigo 3 active ember
116 paused indigo 49 active cobalt 84 ready birch 73 paused indigo
50 paused fable 106 closed cobalt 50 failed amber 94 pending cobalt 22 failed ember 110 pending juniper 120 failed delta 64 ready ember 16 closed birch
50 paused fable 106 closed cobalt 50 failed amber 94 pending cobalt 110 pending juniper 120 failed delta 64 ready ember
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007022-p1
Output entire records where the value in the first column is 38 or higher.
$1 >= 38
36 ready amber 26 failed indigo 116 paused indigo 25 failed juniper 49 active cobalt 84 ready birch 73 paused indigo 3 active ember
116 paused indigo 49 active cobalt 84 ready birch 73 paused indigo
50 paused fable 106 closed cobalt 50 failed amber 94 pending cobalt 22 failed ember 110 pending juniper 120 failed delta 64 ready ember 16 closed birch
50 paused fable 106 closed cobalt 50 failed amber 94 pending cobalt 110 pending juniper 120 failed delta 64 ready ember
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007022
qwen/qwen3.7-plus
awkweave-0007023
Show whole lines whose 2nd field is between 3 and 22, inclusive.
$2 >= 3 && $2 <= 22
ember 28 juniper chen ember 20 birch ivan amber 20 cobalt dina indigo 6 grove eli cobalt 2 birch lina birch 11 grove hana amber 17 indigo kim delta 26 indigo lina ember 7 juniper alice
ember 20 birch ivan amber 20 cobalt dina indigo 6 grove eli birch 11 grove hana amber 17 indigo kim ember 7 juniper alice
juniper 11 harbor hana juniper 5 ember lina grove 10 grove jules cobalt 10 amber gus indigo 21 delta kim ember 23 delta gus
juniper 11 harbor hana juniper 5 ember lina grove 10 grove jules cobalt 10 amber gus indigo 21 delta kim
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007023-p1
Print full lines where the second field falls within the inclusive range of 3 to 22.
$2 >= 3 && $2 <= 22
ember 28 juniper chen ember 20 birch ivan amber 20 cobalt dina indigo 6 grove eli cobalt 2 birch lina birch 11 grove hana amber 17 indigo kim delta 26 indigo lina ember 7 juniper alice
ember 20 birch ivan amber 20 cobalt dina indigo 6 grove eli birch 11 grove hana amber 17 indigo kim ember 7 juniper alice
juniper 11 harbor hana juniper 5 ember lina grove 10 grove jules cobalt 10 amber gus indigo 21 delta kim ember 23 delta gus
juniper 11 harbor hana juniper 5 ember lina grove 10 grove jules cobalt 10 amber gus indigo 21 delta kim
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007023
qwen/qwen3.7-plus
awkweave-0007024
Print column 1 only for rows where column 3 is exactly paused.
$3 == "paused"{print $1}
hana harbor ready 63 ivan cobalt active 32 eli indigo paused 116 lina indigo closed 49 chen ember paused 104 jules birch paused 16 jules birch paused 30 hana juniper active 24 farah juniper paused 111 bruno amber paused 93
eli chen jules jules farah bruno
lina grove ready 92 lina harbor active 106 lina ember ready 76 gus cobalt paused 109 hana ember pending 38 alice juniper closed 47 gus birch pending 18 eli ember paused 49 bruno grove closed 75 farah amber active 60
gus eli
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007024-p1
Output the first column exclusively for rows where the third column matches 'paused' exactly.
$3 == "paused"{print $1}
hana harbor ready 63 ivan cobalt active 32 eli indigo paused 116 lina indigo closed 49 chen ember paused 104 jules birch paused 16 jules birch paused 30 hana juniper active 24 farah juniper paused 111 bruno amber paused 93
eli chen jules jules farah bruno
lina grove ready 92 lina harbor active 106 lina ember ready 76 gus cobalt paused 109 hana ember pending 38 alice juniper closed 47 gus birch pending 18 eli ember paused 49 bruno grove closed 75 farah amber active 60
gus eli
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007024
qwen/qwen3.7-plus
awkweave-0007025
Print all fields from lines where field 3 begins with WARN.
$3 ~ /^WARN/
70 fable WARN 66 indigo ERROR 5 grove ERROR 32 juniper ERROR 39 fable INFO 113 delta INFO 49 juniper INFO 96 indigo INFO 23 indigo INFO
70 fable WARN
107 birch ERROR 102 cobalt ERROR 76 grove ERROR 99 grove ERROR 69 fable ERROR 57 ember INFO 93 indigo WARN
93 indigo WARN
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007025-p1
Display all fields from lines where the third field starts with 'WARN'.
$3 ~ /^WARN/
70 fable WARN 66 indigo ERROR 5 grove ERROR 32 juniper ERROR 39 fable INFO 113 delta INFO 49 juniper INFO 96 indigo INFO 23 indigo INFO
70 fable WARN
107 birch ERROR 102 cobalt ERROR 76 grove ERROR 99 grove ERROR 69 fable ERROR 57 ember INFO 93 indigo WARN
93 indigo WARN
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007025
qwen/qwen3.7-plus
awkweave-0007026
Print every line except those containing the exact text indigo.
$0 !~ /indigo/
fable 83 ready delta 116 active delta 64 active cobalt 99 pending delta 37 closed juniper 93 ready indigo 999 active
fable 83 ready delta 116 active delta 64 active cobalt 99 pending delta 37 closed juniper 93 ready
indigo 0 paused birch 76 failed juniper 108 failed cobalt 42 paused grove 91 paused amber 115 active grove 114 closed fable 30 paused amber 108 active indigo 90 failed indigo 999 active
birch 76 failed juniper 108 failed cobalt 42 paused grove 91 paused amber 115 active grove 114 closed fable 30 paused amber 108 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007026-p1
Print every line that does not contain the exact string 'indigo'.
$0 !~ /indigo/
fable 83 ready delta 116 active delta 64 active cobalt 99 pending delta 37 closed juniper 93 ready indigo 999 active
fable 83 ready delta 116 active delta 64 active cobalt 99 pending delta 37 closed juniper 93 ready
indigo 0 paused birch 76 failed juniper 108 failed cobalt 42 paused grove 91 paused amber 115 active grove 114 closed fable 30 paused amber 108 active indigo 90 failed indigo 999 active
birch 76 failed juniper 108 failed cobalt 42 paused grove 91 paused amber 115 active grove 114 closed fable 30 paused amber 108 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007026
qwen/qwen3.7-plus
awkweave-0007027
Print lines 4 through 5, including both endpoints.
NR >= 4 && NR <= 5
chen ember 17 chen fable 62 hana grove 22 dina birch 102 dina juniper 52 farah delta 48
dina birch 102 dina juniper 52
farah fable 19 kim juniper 24 bruno juniper 103 bruno juniper 69 gus grove 3 lina delta 98 kim indigo 95 jules harbor 65 chen birch 83 alice cobalt 69
bruno juniper 69 gus grove 3
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007027-p1
Output lines 4 to 5, inclusive of both endpoints.
NR >= 4 && NR <= 5
chen ember 17 chen fable 62 hana grove 22 dina birch 102 dina juniper 52 farah delta 48
dina birch 102 dina juniper 52
farah fable 19 kim juniper 24 bruno juniper 103 bruno juniper 69 gus grove 3 lina delta 98 kim indigo 95 jules harbor 65 chen birch 83 alice cobalt 69
bruno juniper 69 gus grove 3
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007027
qwen/qwen3.7-plus
awkweave-0007028
Output only the first 3 records.
NR <= 3
dina 92 fable chen 119 cobalt ivan 21 fable alice 64 amber gus 29 harbor kim 12 indigo hana 72 cobalt jules 67 grove ivan 58 birch hana 100 amber
dina 92 fable chen 119 cobalt ivan 21 fable
kim 101 grove bruno 50 amber dina 20 fable jules 87 fable lina 32 amber jules 120 indigo gus 58 cobalt alice 2 amber
kim 101 grove bruno 50 amber dina 20 fable
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007028-p1
Show only the initial 3 records.
NR <= 3
dina 92 fable chen 119 cobalt ivan 21 fable alice 64 amber gus 29 harbor kim 12 indigo hana 72 cobalt jules 67 grove ivan 58 birch hana 100 amber
dina 92 fable chen 119 cobalt ivan 21 fable
kim 101 grove bruno 50 amber dina 20 fable jules 87 fable lina 32 amber jules 120 indigo gus 58 cobalt alice 2 amber
kim 101 grove bruno 50 amber dina 20 fable
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007028
qwen/qwen3.7-plus
awkweave-0007029
Skip the first line and print every remaining line unchanged.
NR > 1
hana 83 indigo chen 44 juniper lina 12 amber chen 78 fable dina 2 indigo hana 92 ember kim 42 grove chen 75 indigo gus 116 cobalt
chen 44 juniper lina 12 amber chen 78 fable dina 2 indigo hana 92 ember kim 42 grove chen 75 indigo gus 116 cobalt
farah 5 amber farah 25 birch chen 41 delta alice 81 fable ivan 64 delta chen 49 ember kim 7 grove alice 15 juniper kim 106 amber chen 60 juniper
farah 25 birch chen 41 delta alice 81 fable ivan 64 delta chen 49 ember kim 7 grove alice 15 juniper kim 106 amber chen 60 juniper
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007029-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
hana 83 indigo chen 44 juniper lina 12 amber chen 78 fable dina 2 indigo hana 92 ember kim 42 grove chen 75 indigo gus 116 cobalt
chen 44 juniper lina 12 amber chen 78 fable dina 2 indigo hana 92 ember kim 42 grove chen 75 indigo gus 116 cobalt
farah 5 amber farah 25 birch chen 41 delta alice 81 fable ivan 64 delta chen 49 ember kim 7 grove alice 15 juniper kim 106 amber chen 60 juniper
farah 25 birch chen 41 delta alice 81 fable ivan 64 delta chen 49 ember kim 7 grove alice 15 juniper kim 106 amber chen 60 juniper
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007029
qwen/qwen3.7-plus
awkweave-0007030
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
lina closed 51 jules ready 6 jules failed 34 chen failed 78 bruno paused 81 kim closed 65 farah ready 29 chen pending 52
0
bruno ready 81 lina ready 23 bruno paused 77 hana active 0 lina paused 11 chen active 73 gus active 104 alice failed 3
3
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007030-p1
Count the number of records with 'active' in the second column; output 0 if none exist.
$2 == "active"{n++}END{print n+0}
lina closed 51 jules ready 6 jules failed 34 chen failed 78 bruno paused 81 kim closed 65 farah ready 29 chen pending 52
0
bruno ready 81 lina ready 23 bruno paused 77 hana active 0 lina paused 11 chen active 73 gus active 104 alice failed 3
3
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007030
qwen/qwen3.7-plus
awkweave-0007031
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
25 cobalt bruno 6 fable jules 13 ember alice 18 indigo bruno 7 indigo hana 3 cobalt farah 18 amber ivan
90
29 juniper farah 12 harbor hana 8 juniper kim 1 delta dina 11 juniper jules 12 cobalt kim 21 cobalt bruno 2 juniper alice 24 amber jules 14 ember farah
134
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007031-p1
Compute and display the sum of integer values in the first column.
{s+=$1}END{print s+0}
25 cobalt bruno 6 fable jules 13 ember alice 18 indigo bruno 7 indigo hana 3 cobalt farah 18 amber ivan
90
29 juniper farah 12 harbor hana 8 juniper kim 1 delta dina 11 juniper jules 12 cobalt kim 21 cobalt bruno 2 juniper alice 24 amber jules 14 ember farah
134
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007031
qwen/qwen3.7-plus
awkweave-0007032
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
ember 13 ivan cobalt 28 alice fable 12 chen juniper 11 bruno fable 26 eli juniper 9 hana amber 30 farah harbor 25 chen
19.25
harbor 28 bruno ember 11 alice fable 29 alice juniper 26 lina harbor 11 bruno juniper 18 ivan harbor 14 alice
19.57
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007032-p1
Print the average of the second column, rounded to precisely two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
ember 13 ivan cobalt 28 alice fable 12 chen juniper 11 bruno fable 26 eli juniper 9 hana amber 30 farah harbor 25 chen
19.25
harbor 28 bruno ember 11 alice fable 29 alice juniper 26 lina harbor 11 bruno juniper 18 ivan harbor 14 alice
19.57
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007032
qwen/qwen3.7-plus
awkweave-0007033
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
juniper alice 6 cobalt dina 11 cobalt gus 30 harbor farah 12 indigo eli 28 cobalt hana 13
6
fable ivan 19 cobalt ivan 12 amber lina 1 cobalt alice 14 delta chen 26 amber dina 11
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007033-p1
Identify and output the minimum numeric value found in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
juniper alice 6 cobalt dina 11 cobalt gus 30 harbor farah 12 indigo eli 28 cobalt hana 13
6
fable ivan 19 cobalt ivan 12 amber lina 1 cobalt alice 14 delta chen 26 amber dina 11
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007033
qwen/qwen3.7-plus
awkweave-0007034
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
delta 11 hana birch 14 hana amber 8 farah juniper 21 chen juniper 18 kim indigo 3 bruno birch 27 dina grove 21 alice
27
ember 16 dina birch 10 hana birch 2 hana amber 10 lina delta 6 kim harbor 30 chen birch 25 lina grove 1 alice
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007034-p1
Identify and output the maximum numeric value found in the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
delta 11 hana birch 14 hana amber 8 farah juniper 21 chen juniper 18 kim indigo 3 bruno birch 27 dina grove 21 alice
27
ember 16 dina birch 10 hana birch 2 hana amber 10 lina delta 6 kim harbor 30 chen birch 25 lina grove 1 alice
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007034
qwen/qwen3.7-plus
awkweave-0007035
Count all input records and print the total.
END{print NR}
jules 21 ivan 66 gus 19 farah 6 chen 76 bruno 10 gus 22 chen 53 alice 78
9
lina 7 bruno 41 eli 17 bruno 74 kim 38 gus 76 eli 34 ivan 82 kim 80 eli 17
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007035-p1
Count the total number of input records and print the result.
END{print NR}
jules 21 ivan 66 gus 19 farah 6 chen 76 bruno 10 gus 22 chen 53 alice 78
9
lina 7 bruno 41 eli 17 bruno 74 kim 38 gus 76 eli 34 ivan 82 kim 80 eli 17
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007035
qwen/qwen3.7-plus
awkweave-0007036
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
ivan ember 91 eli delta 118 dina harbor 91 eli birch 22 alice amber 39 dina harbor 91 lina ember 54
ivan ember 91 eli delta 118 dina harbor 91 eli birch 22 alice amber 39 lina ember 54
kim indigo 119 lina delta 35 kim birch 57 ivan amber 72 chen grove 39 kim birch 0 jules cobalt 43 chen grove 111 bruno grove 88 kim birch 0 lina fable 13
kim indigo 119 lina delta 35 kim birch 57 ivan amber 72 chen grove 39 kim birch 0 jules cobalt 43 chen grove 111 bruno grove 88 lina fable 13
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007036-p1
Eliminate duplicate lines by keeping the first instance of each and maintaining the original sequence.
!seen[$0]++
ivan ember 91 eli delta 118 dina harbor 91 eli birch 22 alice amber 39 dina harbor 91 lina ember 54
ivan ember 91 eli delta 118 dina harbor 91 eli birch 22 alice amber 39 lina ember 54
kim indigo 119 lina delta 35 kim birch 57 ivan amber 72 chen grove 39 kim birch 0 jules cobalt 43 chen grove 111 bruno grove 88 kim birch 0 lina fable 13
kim indigo 119 lina delta 35 kim birch 57 ivan amber 72 chen grove 39 kim birch 0 jules cobalt 43 chen grove 111 bruno grove 88 lina fable 13
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007036
qwen/qwen3.7-plus
awkweave-0007037
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
alice indigo 119 gus cobalt 0 gus delta 76 bruno fable 47 alice delta 80 lina fable 43 gus ember 1 lina birch 34 alice fable 32 dina birch 117
alice indigo 119 gus cobalt 0 gus delta 76 bruno fable 47 gus ember 1 lina birch 34
eli cobalt 91 chen amber 103 farah fable 74 jules amber 33 jules indigo 50 farah birch 32 eli ember 43
eli cobalt 91 chen amber 103 farah fable 74 jules indigo 50 farah birch 32 eli ember 43
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007037-p1
Retain only the initial row for every unique value found in the second column, ensuring the input order is preserved.
!seen[$2]++
alice indigo 119 gus cobalt 0 gus delta 76 bruno fable 47 alice delta 80 lina fable 43 gus ember 1 lina birch 34 alice fable 32 dina birch 117
alice indigo 119 gus cobalt 0 gus delta 76 bruno fable 47 gus ember 1 lina birch 34
eli cobalt 91 chen amber 103 farah fable 74 jules amber 33 jules indigo 50 farah birch 32 eli ember 43
eli cobalt 91 chen amber 103 farah fable 74 jules indigo 50 farah birch 32 eli ember 43
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007037
qwen/qwen3.7-plus
awkweave-0007038
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
gus 2 amber dina 19 grove farah 14 harbor gus 3 harbor bruno 22 grove hana 27 delta gus 25 harbor gus 13 fable eli 12 delta
gus 2 dina 21 farah 35 gus 38 bruno 60 hana 87 gus 112 gus 125 eli 137
chen 1 fable chen 4 birch farah 18 ember dina 15 harbor eli 24 harbor dina 14 indigo dina 28 juniper hana 12 juniper
chen 1 chen 5 farah 23 dina 38 eli 62 dina 76 dina 104 hana 116
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007038-p1
Output the first column alongside the cumulative total of the second column for each record, using a space as the delimiter.
{s+=$2;print $1,s}
gus 2 amber dina 19 grove farah 14 harbor gus 3 harbor bruno 22 grove hana 27 delta gus 25 harbor gus 13 fable eli 12 delta
gus 2 dina 21 farah 35 gus 38 bruno 60 hana 87 gus 112 gus 125 eli 137
chen 1 fable chen 4 birch farah 18 ember dina 15 harbor eli 24 harbor dina 14 indigo dina 28 juniper hana 12 juniper
chen 1 chen 5 farah 23 dina 38 eli 62 dina 76 dina 104 hana 116
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007038
qwen/qwen3.7-plus
awkweave-0007039
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
gus 10 27 cobalt ivan 2 1 harbor kim 29 22 birch eli 29 4 fable lina 16 4 fable dina 21 16 juniper jules 29 25 ember jules 12 21 fable chen 22 7 birch gus 16 6 fable
gus 37 ivan 3 kim 51 eli 33 lina 20 dina 37 jules 54 jules 33 chen 29 gus 22
eli 21 17 fable chen 10 28 juniper hana 9 28 harbor bruno 18 29 ember lina 8 18 cobalt chen 15 29 cobalt jules 23 23 grove alice 21 2 birch kim 15 19 juniper eli 24 12 birch
eli 38 chen 38 hana 37 bruno 47 lina 26 chen 44 jules 46 alice 23 kim 34 eli 36
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007039-p1
For each line, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
gus 10 27 cobalt ivan 2 1 harbor kim 29 22 birch eli 29 4 fable lina 16 4 fable dina 21 16 juniper jules 29 25 ember jules 12 21 fable chen 22 7 birch gus 16 6 fable
gus 37 ivan 3 kim 51 eli 33 lina 20 dina 37 jules 54 jules 33 chen 29 gus 22
eli 21 17 fable chen 10 28 juniper hana 9 28 harbor bruno 18 29 ember lina 8 18 cobalt chen 15 29 cobalt jules 23 23 grove alice 21 2 birch kim 15 19 juniper eli 24 12 birch
eli 38 chen 38 hana 37 bruno 47 lina 26 chen 44 jules 46 alice 23 kim 34 eli 36
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007039
qwen/qwen3.7-plus
awkweave-0007040
Print column 1 and pass when column 2 is at least 24; otherwise print fail.
{print $1,($2>=24?"pass":"fail")}
gus 3 dina 23 alice 6 lina 13 dina 20 ivan 1 chen 17 dina 13 farah 25 lina 10
gus fail dina fail alice fail lina fail dina fail ivan fail chen fail dina fail farah pass lina fail
lina 15 alice 3 chen 25 chen 27 jules 13 kim 18 alice 11 ivan 30
lina fail alice fail chen pass chen pass jules fail kim fail alice fail ivan pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007040-p1
Output the first column; if the second column is 24 or greater, append 'pass', otherwise append 'fail'.
{print $1,($2>=24?"pass":"fail")}
gus 3 dina 23 alice 6 lina 13 dina 20 ivan 1 chen 17 dina 13 farah 25 lina 10
gus fail dina fail alice fail lina fail dina fail ivan fail chen fail dina fail farah pass lina fail
lina 15 alice 3 chen 25 chen 27 jules 13 kim 18 alice 11 ivan 30
lina fail alice fail chen pass chen pass jules fail kim fail alice fail ivan pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007040
qwen/qwen3.7-plus
awkweave-0007041
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
hana indigo 34 jules cobalt 62 kim fable 19 farah fable 62 jules cobalt 91 jules ember 91 gus delta 42
INDIGO COBALT FABLE FABLE COBALT EMBER DELTA
alice harbor 64 dina grove 6 ivan harbor 0 alice delta 37 bruno birch 113 ivan cobalt 113 eli cobalt 60 kim indigo 23 bruno indigo 43 eli juniper 102
HARBOR GROVE HARBOR DELTA BIRCH COBALT COBALT INDIGO INDIGO JUNIPER
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007041-p1
Transform the second column to uppercase and output only that modified column.
{print toupper($2)}
hana indigo 34 jules cobalt 62 kim fable 19 farah fable 62 jules cobalt 91 jules ember 91 gus delta 42
INDIGO COBALT FABLE FABLE COBALT EMBER DELTA
alice harbor 64 dina grove 6 ivan harbor 0 alice delta 37 bruno birch 113 ivan cobalt 113 eli cobalt 60 kim indigo 23 bruno indigo 43 eli juniper 102
HARBOR GROVE HARBOR DELTA BIRCH COBALT COBALT INDIGO INDIGO JUNIPER
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007041
qwen/qwen3.7-plus
awkweave-0007042
From column 1, print 4 characters starting at character 3.
{print substr($1,3,4)}
cobalt 47 harbor 69 juniper 66 delta 110 cobalt 92 indigo 17 indigo 109
balt rbor nipe lta balt digo digo
fable 35 cobalt 56 grove 24 ember 35 harbor 5 grove 0 indigo 58 juniper 39 cobalt 12
ble balt ove ber rbor ove digo nipe balt
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007042-p1
Extract and print a substring of 4 characters from the first column, beginning at the third character position.
{print substr($1,3,4)}
cobalt 47 harbor 69 juniper 66 delta 110 cobalt 92 indigo 17 indigo 109
balt rbor nipe lta balt digo digo
fable 35 cobalt 56 grove 24 ember 35 harbor 5 grove 0 indigo 58 juniper 39 cobalt 12
ble balt ove ber rbor ove digo nipe balt
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007042
qwen/qwen3.7-plus
awkweave-0007043
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
delta_amber 107 ember_birch 0 cobalt_amber 98 grove_juniper 87 indigo_fable 55 ember_juniper 29 juniper_amber 120 fable_delta 40
delta amber ember birch cobalt amber grove juniper indigo fable ember juniper juniper amber fable delta
ember_birch 25 harbor_birch 115 juniper_indigo 50 birch_birch 98 fable_harbor 108 harbor_fable 37 harbor_ember 88 juniper_grove 63 harbor_birch 87
ember birch harbor birch juniper indigo birch birch fable harbor harbor fable harbor ember juniper grove harbor birch
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007043-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
delta_amber 107 ember_birch 0 cobalt_amber 98 grove_juniper 87 indigo_fable 55 ember_juniper 29 juniper_amber 120 fable_delta 40
delta amber ember birch cobalt amber grove juniper indigo fable ember juniper juniper amber fable delta
ember_birch 25 harbor_birch 115 juniper_indigo 50 birch_birch 98 fable_harbor 108 harbor_fable 37 harbor_ember 88 juniper_grove 63 harbor_birch 87
ember birch harbor birch juniper indigo birch birch fable harbor harbor fable harbor ember juniper grove harbor birch
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007043
qwen/qwen3.7-plus
awkweave-0007044
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)}
bruno grove 113 ready alice cobalt 4 pending jules birch 65 failed alice harbor 42 active jules amber 106 closed kim grove 53 failed kim delta 77 active dina grove 12 pending
ready 113 grove bruno pending 4 cobalt alice failed 65 birch jules active 42 harbor alice closed 106 amber jules failed 53 grove kim active 77 delta kim pending 12 grove dina
eli fable 48 paused chen fable 22 ready gus fable 65 paused chen cobalt 83 failed bruno juniper 57 ready lina cobalt 55 closed alice amber 63 paused alice fable 87 active jules juniper 0 failed chen birch 33 closed
paused 48 fable eli ready 22 fable chen paused 65 fable gus failed 83 cobalt chen ready 57 juniper bruno closed 55 cobalt lina paused 63 amber alice active 87 fable alice failed 0 juniper jules closed 33 birch chen
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007044-p1
Reverse the sequence of all fields in each line and print the result.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
bruno grove 113 ready alice cobalt 4 pending jules birch 65 failed alice harbor 42 active jules amber 106 closed kim grove 53 failed kim delta 77 active dina grove 12 pending
ready 113 grove bruno pending 4 cobalt alice failed 65 birch jules active 42 harbor alice closed 106 amber jules failed 53 grove kim active 77 delta kim pending 12 grove dina
eli fable 48 paused chen fable 22 ready gus fable 65 paused chen cobalt 83 failed bruno juniper 57 ready lina cobalt 55 closed alice amber 63 paused alice fable 87 active jules juniper 0 failed chen birch 33 closed
paused 48 fable eli ready 22 fable chen paused 65 fable gus failed 83 cobalt chen ready 57 juniper bruno closed 55 cobalt lina paused 63 amber alice active 87 fable alice failed 0 juniper jules closed 33 birch chen
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007044
qwen/qwen3.7-plus
awkweave-0007045
Print the number of whitespace-separated fields on each line.
{print NF}
ivan amber 6 pending chen cobalt 8 active gus delta 15 paused alice ember 56 pending lina indigo 67 active lina grove 94 ready lina ember 65 active ivan grove 79 failed
4 4 4 4 4 4 4 4
lina grove 5 ready ivan birch 34 closed alice delta 113 paused eli amber 77 closed ivan grove 18 closed kim indigo 89 failed gus harbor 25 closed
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007045-p1
Display the count of whitespace-delimited fields present on each line.
{print NF}
ivan amber 6 pending chen cobalt 8 active gus delta 15 paused alice ember 56 pending lina indigo 67 active lina grove 94 ready lina ember 65 active ivan grove 79 failed
4 4 4 4 4 4 4 4
lina grove 5 ready ivan birch 34 closed alice delta 113 paused eli amber 77 closed ivan grove 18 closed kim indigo 89 failed gus harbor 25 closed
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007045
qwen/qwen3.7-plus
awkweave-0007046
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]]}
alice alpha 42 alice beta 65 dina alpha 79 bruno delta 30 bruno delta 69 ivan alpha 82 farah alpha 113
alpha 4 beta 1 delta 2
farah gamma 73 ivan beta 47 jules beta 1 ivan beta 47 lina alpha 29 gus beta 4
gamma 1 beta 4 alpha 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007046-p1
Tally the number of records for each distinct value in the second column and print the value with its count, ordered by first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
alice alpha 42 alice beta 65 dina alpha 79 bruno delta 30 bruno delta 69 ivan alpha 82 farah alpha 113
alpha 4 beta 1 delta 2
farah gamma 73 ivan beta 47 jules beta 1 ivan beta 47 lina alpha 29 gus beta 4
gamma 1 beta 4 alpha 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007046
qwen/qwen3.7-plus
awkweave-0007047
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]]}
farah gamma 24 lina beta 23 kim delta 6 kim alpha 17 farah beta 21 ivan gamma 3 dina beta 25 chen beta 19
gamma 27 beta 88 delta 6 alpha 17
chen alpha 5 lina gamma 22 alice delta 15 jules beta 8 kim beta 25 farah beta 24 gus gamma 19
alpha 5 gamma 41 delta 15 beta 57
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007047-p1
Calculate the sum of the third column for each group defined by the second column, printing the results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
farah gamma 24 lina beta 23 kim delta 6 kim alpha 17 farah beta 21 ivan gamma 3 dina beta 25 chen beta 19
gamma 27 beta 88 delta 6 alpha 17
chen alpha 5 lina gamma 22 alice delta 15 jules beta 8 kim beta 25 farah beta 24 gus gamma 19
alpha 5 gamma 41 delta 15 beta 57
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007047
qwen/qwen3.7-plus
awkweave-0007048
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta cobalt 104 beta ember 44 alpha ember 38 delta grove 110 gamma grove 50 delta harbor 90 alpha indigo 61 delta amber 49
beta 2 alpha 2 delta 3
delta amber 57 alpha fable 24 alpha ember 18 beta birch 43 gamma delta 112 beta grove 70 alpha amber 49 beta harbor 95
alpha 3 beta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007048-p1
List each unique value from the first column alongside its frequency count, ordered by the sequence of their first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta cobalt 104 beta ember 44 alpha ember 38 delta grove 110 gamma grove 50 delta harbor 90 alpha indigo 61 delta amber 49
beta 2 alpha 2 delta 3
delta amber 57 alpha fable 24 alpha ember 18 beta birch 43 gamma delta 112 beta grove 70 alpha amber 49 beta harbor 95
alpha 3 beta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007048
qwen/qwen3.7-plus
awkweave-0007049
The first row is a header. Print the region column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
state display_name region record_id r001 jules 28 failed r002 jules 5 failed r003 bruno 3 closed r004 dina 9 pending r005 alice 21 paused r006 eli 15 paused r007 eli 19 active r008 gus 23 pending r009 eli 15 failed
28 5 3 9 21 15 19 23 15
state display_name region record_id r001 farah 24 failed r002 alice 27 active r003 ivan 3 pending r004 ivan 24 paused r005 kim 13 active r006 farah 6 ready r007 jules 12 paused r008 farah 18 ready
24 27 3 24 13 6 12 18
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007049-p1
Treat the initial row as a header and output the 'region' field for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
state display_name region record_id r001 jules 28 failed r002 jules 5 failed r003 bruno 3 closed r004 dina 9 pending r005 alice 21 paused r006 eli 15 paused r007 eli 19 active r008 gus 23 pending r009 eli 15 failed
28 5 3 9 21 15 19 23 15
state display_name region record_id r001 farah 24 failed r002 alice 27 active r003 ivan 3 pending r004 ivan 24 paused r005 kim 13 active r006 farah 6 ready r007 jules 12 paused r008 farah 18 ready
24 27 3 24 13 6 12 18
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007049
qwen/qwen3.7-plus
awkweave-0007050
The first row is a header. Print display_name for data rows whose score is greater than 10.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>10{print $h["display_name"]}
record_id display_name score state r001 farah 16 failed r002 lina 18 paused r003 lina 12 failed r004 gus 2 paused r005 ivan 22 paused r006 dina 27 ready r007 ivan 4 failed r008 alice 29 paused r009 gus 15 closed
farah lina lina ivan dina alice gus
record_id display_name score state r001 gus 29 ready r002 gus 9 pending r003 dina 22 failed r004 gus 26 ready r005 alice 7 failed r006 hana 6 failed r007 alice 17 paused r008 jules 4 failed
gus dina gus alice
header_filter
2
train
original-grammar
CC-BY-4.0
null
null