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-0006380-p1
Substitute all underscores in the first column with spaces and display the result.
{gsub(/_/," ",$1);print $1}
juniper_fable 44 delta_ember 42 cobalt_indigo 94 amber_juniper 77 ember_fable 35 indigo_delta 35 ember_delta 23 delta_grove 29
juniper fable delta ember cobalt indigo amber juniper ember fable indigo delta ember delta delta grove
juniper_amber 116 harbor_harbor 106 fable_cobalt 32 fable_indigo 59 amber_ember 14 harbor_cobalt 27
juniper amber harbor harbor fable cobalt fable indigo amber ember harbor cobalt
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006380
qwen/qwen3.7-plus
awkweave-0006381
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)}
farah delta 18 closed jules grove 31 paused chen harbor 83 ready dina cobalt 91 pending gus birch 63 failed jules fable 10 ready
closed 18 delta farah paused 31 grove jules ready 83 harbor chen pending 91 cobalt dina failed 63 birch gus ready 10 fable jules
eli indigo 15 active dina grove 105 closed jules harbor 78 paused alice harbor 74 failed ivan ember 67 ready bruno indigo 100 failed lina fable 116 ready
active 15 indigo eli closed 105 grove dina paused 78 harbor jules failed 74 harbor alice ready 67 ember ivan failed 100 indigo bruno ready 116 fable lina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006381-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)}
farah delta 18 closed jules grove 31 paused chen harbor 83 ready dina cobalt 91 pending gus birch 63 failed jules fable 10 ready
closed 18 delta farah paused 31 grove jules ready 83 harbor chen pending 91 cobalt dina failed 63 birch gus ready 10 fable jules
eli indigo 15 active dina grove 105 closed jules harbor 78 paused alice harbor 74 failed ivan ember 67 ready bruno indigo 100 failed lina fable 116 ready
active 15 indigo eli closed 105 grove dina paused 78 harbor jules failed 74 harbor alice ready 67 ember ivan failed 100 indigo bruno ready 116 fable lina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006381
qwen/qwen3.7-plus
awkweave-0006382
Print the number of whitespace-separated fields on each line.
{print NF}
bruno grove 32 active jules birch 114 ready gus ember 12 active jules harbor 101 failed eli grove 111 active hana fable 39 active dina grove 58 ready farah birch 36 closed dina harbor 1 failed hana juniper 86 failed
4 4 4 4 4 4 4 4 4 4
gus grove 113 pending hana birch 104 ready kim ember 85 pending jules harbor 29 ready ivan fable 109 closed bruno fable 89 failed bruno amber 114 active chen birch 45 closed alice cobalt 86 active
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006382-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
bruno grove 32 active jules birch 114 ready gus ember 12 active jules harbor 101 failed eli grove 111 active hana fable 39 active dina grove 58 ready farah birch 36 closed dina harbor 1 failed hana juniper 86 failed
4 4 4 4 4 4 4 4 4 4
gus grove 113 pending hana birch 104 ready kim ember 85 pending jules harbor 29 ready ivan fable 109 closed bruno fable 89 failed bruno amber 114 active chen birch 45 closed alice cobalt 86 active
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006382
qwen/qwen3.7-plus
awkweave-0006383
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]]}
bruno gamma 98 farah gamma 60 alice gamma 110 chen beta 102 lina gamma 97 kim delta 25 alice gamma 4 farah gamma 8
gamma 6 beta 1 delta 1
eli gamma 92 lina delta 11 eli gamma 33 ivan alpha 119 jules beta 118 farah beta 48 eli delta 47 jules beta 42 jules delta 60 bruno beta 4
gamma 2 delta 3 alpha 1 beta 4
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006383-p1
Tally the records for each unique value in column 2, then print each value alongside 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]]}
bruno gamma 98 farah gamma 60 alice gamma 110 chen beta 102 lina gamma 97 kim delta 25 alice gamma 4 farah gamma 8
gamma 6 beta 1 delta 1
eli gamma 92 lina delta 11 eli gamma 33 ivan alpha 119 jules beta 118 farah beta 48 eli delta 47 jules beta 42 jules delta 60 bruno beta 4
gamma 2 delta 3 alpha 1 beta 4
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006383
qwen/qwen3.7-plus
awkweave-0006384
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
alice alpha 11 dina beta 10 alice beta 29 farah beta 1 chen gamma 17 ivan gamma 16
alpha 11 beta 40 gamma 33
alice gamma 12 jules beta 18 chen alpha 2 chen beta 24 ivan beta 13 eli gamma 6 lina beta 26
gamma 18 beta 81 alpha 2
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006384-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]]}
alice alpha 11 dina beta 10 alice beta 29 farah beta 1 chen gamma 17 ivan gamma 16
alpha 11 beta 40 gamma 33
alice gamma 12 jules beta 18 chen alpha 2 chen beta 24 ivan beta 13 eli gamma 6 lina beta 26
gamma 18 beta 81 alpha 2
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0006384
qwen/qwen3.7-plus
awkweave-0006385
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 cobalt 98 delta fable 33 beta juniper 6 delta harbor 29 beta cobalt 61 beta cobalt 84 delta ember 15 beta juniper 62
delta 3 beta 4
alpha ember 28 gamma birch 69 delta ember 92 beta fable 90 beta ember 56 beta amber 54
beta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006385-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 cobalt 98 delta fable 33 beta juniper 6 delta harbor 29 beta cobalt 61 beta cobalt 84 delta ember 15 beta juniper 62
delta 3 beta 4
alpha ember 28 gamma birch 69 delta ember 92 beta fable 90 beta ember 56 beta amber 54
beta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006385
qwen/qwen3.7-plus
awkweave-0006386
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"]}
note record_id state region r001 chen 18 pending r002 lina 4 failed r003 eli 29 failed r004 alice 10 pending r005 jules 15 active r006 ivan 22 active r007 gus 22 failed r008 chen 2 active r009 hana 28 ready
pending failed failed pending active active failed active ready
note record_id state region r001 eli 11 active r002 bruno 3 pending r003 eli 23 ready r004 ivan 27 paused r005 lina 17 ready r006 eli 23 closed r007 chen 20 failed r008 alice 27 pending r009 kim 4 active r010 gus 24 active
active pending ready paused ready closed failed pending active active
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006386-p1
Treating the first line as a header, output the region column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
note record_id state region r001 chen 18 pending r002 lina 4 failed r003 eli 29 failed r004 alice 10 pending r005 jules 15 active r006 ivan 22 active r007 gus 22 failed r008 chen 2 active r009 hana 28 ready
pending failed failed pending active active failed active ready
note record_id state region r001 eli 11 active r002 bruno 3 pending r003 eli 23 ready r004 ivan 27 paused r005 lina 17 ready r006 eli 23 closed r007 chen 20 failed r008 alice 27 pending r009 kim 4 active r010 gus 24 active
active pending ready paused ready closed failed pending active active
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006386
qwen/qwen3.7-plus
awkweave-0006387
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 bruno 26 active r002 lina 23 ready r003 lina 12 ready r004 bruno 3 ready r005 eli 30 paused r006 farah 10 pending
bruno lina lina eli
record_id display_name score state r001 ivan 2 ready r002 bruno 6 paused r003 ivan 22 ready r004 chen 21 pending r005 lina 26 failed r006 hana 27 closed
ivan chen lina hana
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006387-p1
With the first row as a header, print the display_name for data rows where the 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 bruno 26 active r002 lina 23 ready r003 lina 12 ready r004 bruno 3 ready r005 eli 30 paused r006 farah 10 pending
bruno lina lina eli
record_id display_name score state r001 ivan 2 ready r002 bruno 6 paused r003 ivan 22 ready r004 chen 21 pending r005 lina 26 failed r006 hana 27 closed
ivan chen lina hana
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006387
qwen/qwen3.7-plus
awkweave-0006388
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
gus 16 active ivan 22 failed bruno 2 active alice 13 closed kim 22 paused ivan 19 failed ivan 10 ready chen 11 failed
active failed active closed paused failed ready failed
chen 9 pending hana 4 paused alice 24 paused ivan 9 ready hana 17 closed dina 23 closed
pending paused paused ready closed closed
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006388-p1
Given tab-separated input, extract and print the third column from every record.
BEGIN{FS=OFS="\t"}{print $3}
gus 16 active ivan 22 failed bruno 2 active alice 13 closed kim 22 paused ivan 19 failed ivan 10 ready chen 11 failed
active failed active closed paused failed ready failed
chen 9 pending hana 4 paused alice 24 paused ivan 9 ready hana 17 closed dina 23 closed
pending paused paused ready closed closed
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006388
qwen/qwen3.7-plus
awkweave-0006389
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}
farah,1,failed farah,11,pending eli,1,pending bruno,10,active ivan,17,failed jules,27,active alice,30,failed alice,9,failed
ivan jules alice
dina,13,active alice,21,ready jules,20,pending lina,5,pending hana,7,failed chen,15,ready kim,11,paused
alice jules
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006389-p1
For simple comma-separated input without quoted commas, print the first column if the second column value is greater than 16.
BEGIN{FS=OFS=","}$2>16{print $1}
farah,1,failed farah,11,pending eli,1,pending bruno,10,active ivan,17,failed jules,27,active alice,30,failed alice,9,failed
ivan jules alice
dina,13,active alice,21,ready jules,20,pending lina,5,pending hana,7,failed chen,15,ready kim,11,paused
alice jules
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006389
qwen/qwen3.7-plus
awkweave-0006400
Print column 3 only for rows where column 2 is exactly failed.
$2 == "failed"{print $3}
48 ready jules harbor 17 pending kim juniper 26 failed eli indigo 111 paused gus harbor 15 closed bruno grove 63 failed dina delta 78 paused chen grove 69 closed dina amber 59 pending ivan fable
eli dina
57 failed kim amber 6 pending bruno delta 22 paused alice indigo 112 closed bruno grove 14 closed gus fable 11 failed kim cobalt 113 active gus delta 49 active ivan harbor 77 failed ivan fable 30 active jules harbor
kim kim ivan
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006400-p1
Output the third column exclusively for rows where the second column matches 'failed' exactly.
$2 == "failed"{print $3}
48 ready jules harbor 17 pending kim juniper 26 failed eli indigo 111 paused gus harbor 15 closed bruno grove 63 failed dina delta 78 paused chen grove 69 closed dina amber 59 pending ivan fable
eli dina
57 failed kim amber 6 pending bruno delta 22 paused alice indigo 112 closed bruno grove 14 closed gus fable 11 failed kim cobalt 113 active gus delta 49 active ivan harbor 77 failed ivan fable 30 active jules harbor
kim kim ivan
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006400
qwen/qwen3.7-plus
awkweave-0006401
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
birch ERROR 106 indigo ERROR 54 indigo DEBUG 44 amber ERROR 18 ember ERROR 96 grove ERROR 5 indigo DEBUG 14 grove WARN 18
birch ERROR 106 indigo ERROR 54 amber ERROR 18 ember ERROR 96 grove ERROR 5
harbor WARN 34 fable WARN 68 grove WARN 28 harbor ERROR 114 fable DEBUG 37 fable ERROR 116
harbor ERROR 114 fable ERROR 116
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006401-p1
Display all fields from lines where the second field starts with 'ERROR'.
$2 ~ /^ERROR/
birch ERROR 106 indigo ERROR 54 indigo DEBUG 44 amber ERROR 18 ember ERROR 96 grove ERROR 5 indigo DEBUG 14 grove WARN 18
birch ERROR 106 indigo ERROR 54 amber ERROR 18 ember ERROR 96 grove ERROR 5
harbor WARN 34 fable WARN 68 grove WARN 28 harbor ERROR 114 fable DEBUG 37 fable ERROR 116
harbor ERROR 114 fable ERROR 116
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006401
qwen/qwen3.7-plus
awkweave-0006402
Print every line except those containing the exact text fable.
$0 !~ /fable/
juniper 40 failed cobalt 85 pending fable 10 paused amber 68 pending juniper 30 active grove 23 active fable 999 active
juniper 40 failed cobalt 85 pending amber 68 pending juniper 30 active grove 23 active
indigo 16 closed cobalt 76 ready amber 60 active ember 14 active cobalt 109 ready cobalt 96 pending fable 999 active
indigo 16 closed cobalt 76 ready amber 60 active ember 14 active cobalt 109 ready cobalt 96 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006402-p1
Print every line that does not contain the exact string 'fable'.
$0 !~ /fable/
juniper 40 failed cobalt 85 pending fable 10 paused amber 68 pending juniper 30 active grove 23 active fable 999 active
juniper 40 failed cobalt 85 pending amber 68 pending juniper 30 active grove 23 active
indigo 16 closed cobalt 76 ready amber 60 active ember 14 active cobalt 109 ready cobalt 96 pending fable 999 active
indigo 16 closed cobalt 76 ready amber 60 active ember 14 active cobalt 109 ready cobalt 96 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006402
qwen/qwen3.7-plus
awkweave-0006403
Print lines 4 through 6, including both endpoints.
NR >= 4 && NR <= 6
bruno juniper 18 chen delta 64 chen grove 44 kim fable 91 farah grove 39 alice amber 22 eli fable 93
kim fable 91 farah grove 39 alice amber 22
lina fable 41 ivan cobalt 30 gus delta 43 lina grove 8 hana harbor 83 dina grove 17 farah harbor 95
lina grove 8 hana harbor 83 dina grove 17
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006403-p1
Output lines 4 to 6, inclusive of both endpoints.
NR >= 4 && NR <= 6
bruno juniper 18 chen delta 64 chen grove 44 kim fable 91 farah grove 39 alice amber 22 eli fable 93
kim fable 91 farah grove 39 alice amber 22
lina fable 41 ivan cobalt 30 gus delta 43 lina grove 8 hana harbor 83 dina grove 17 farah harbor 95
lina grove 8 hana harbor 83 dina grove 17
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006403
qwen/qwen3.7-plus
awkweave-0006404
Output only the first 5 records.
NR <= 5
alice 102 indigo farah 109 harbor bruno 40 cobalt dina 36 grove kim 99 ember lina 15 juniper
alice 102 indigo farah 109 harbor bruno 40 cobalt dina 36 grove kim 99 ember
jules 45 fable gus 56 harbor chen 116 indigo farah 60 juniper hana 4 juniper eli 86 delta kim 106 cobalt gus 81 amber chen 64 grove
jules 45 fable gus 56 harbor chen 116 indigo farah 60 juniper hana 4 juniper
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006404-p1
Display only the first 5 records.
NR <= 5
alice 102 indigo farah 109 harbor bruno 40 cobalt dina 36 grove kim 99 ember lina 15 juniper
alice 102 indigo farah 109 harbor bruno 40 cobalt dina 36 grove kim 99 ember
jules 45 fable gus 56 harbor chen 116 indigo farah 60 juniper hana 4 juniper eli 86 delta kim 106 cobalt gus 81 amber chen 64 grove
jules 45 fable gus 56 harbor chen 116 indigo farah 60 juniper hana 4 juniper
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006404
qwen/qwen3.7-plus
awkweave-0006405
Skip the first line and print every remaining line unchanged.
NR > 1
lina 34 cobalt chen 106 indigo eli 97 grove gus 70 ember jules 105 grove kim 0 ember gus 88 fable hana 91 ember chen 107 fable hana 116 harbor
chen 106 indigo eli 97 grove gus 70 ember jules 105 grove kim 0 ember gus 88 fable hana 91 ember chen 107 fable hana 116 harbor
gus 16 indigo bruno 40 indigo chen 102 fable eli 15 harbor gus 85 amber kim 112 amber dina 63 juniper gus 75 delta
bruno 40 indigo chen 102 fable eli 15 harbor gus 85 amber kim 112 amber dina 63 juniper gus 75 delta
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006405-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
lina 34 cobalt chen 106 indigo eli 97 grove gus 70 ember jules 105 grove kim 0 ember gus 88 fable hana 91 ember chen 107 fable hana 116 harbor
chen 106 indigo eli 97 grove gus 70 ember jules 105 grove kim 0 ember gus 88 fable hana 91 ember chen 107 fable hana 116 harbor
gus 16 indigo bruno 40 indigo chen 102 fable eli 15 harbor gus 85 amber kim 112 amber dina 63 juniper gus 75 delta
bruno 40 indigo chen 102 fable eli 15 harbor gus 85 amber kim 112 amber dina 63 juniper gus 75 delta
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006405
qwen/qwen3.7-plus
awkweave-0006406
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
gus closed 29 dina pending 67 alice active 42 lina active 82 chen pending 45 eli pending 51 lina ready 89 chen failed 2 kim paused 48 alice active 33
1
dina pending 58 hana paused 82 kim pending 59 ivan failed 59 hana active 67 bruno pending 63 lina closed 73 alice ready 48 kim failed 1 chen closed 73
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006406-p1
Count the number of records with 'closed' in column 2, printing 0 if none exist.
$2 == "closed"{n++}END{print n+0}
gus closed 29 dina pending 67 alice active 42 lina active 82 chen pending 45 eli pending 51 lina ready 89 chen failed 2 kim paused 48 alice active 33
1
dina pending 58 hana paused 82 kim pending 59 ivan failed 59 hana active 67 bruno pending 63 lina closed 73 alice ready 48 kim failed 1 chen closed 73
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006406
qwen/qwen3.7-plus
awkweave-0006407
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
1 amber chen 12 cobalt kim 1 grove bruno 24 juniper alice 7 amber bruno 2 amber dina 17 ember hana 20 indigo eli 24 cobalt bruno
108
13 delta alice 10 harbor eli 7 grove chen 6 amber farah 28 amber lina 20 delta eli 24 grove jules 11 harbor farah 2 delta jules
121
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006407-p1
Compute and display the sum of integer values in column 1.
{s+=$1}END{print s+0}
1 amber chen 12 cobalt kim 1 grove bruno 24 juniper alice 7 amber bruno 2 amber dina 17 ember hana 20 indigo eli 24 cobalt bruno
108
13 delta alice 10 harbor eli 7 grove chen 6 amber farah 28 amber lina 20 delta eli 24 grove jules 11 harbor farah 2 delta jules
121
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006407
qwen/qwen3.7-plus
awkweave-0006408
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
8 hana juniper 18 jules cobalt 4 alice birch 27 farah grove 17 ivan harbor 13 alice juniper 12 hana indigo
14.14
15 bruno harbor 2 dina harbor 21 hana grove 6 bruno harbor 30 lina indigo 22 eli cobalt 15 farah harbor
15.86
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006408-p1
Calculate the average of column 1 and print it rounded to two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
8 hana juniper 18 jules cobalt 4 alice birch 27 farah grove 17 ivan harbor 13 alice juniper 12 hana indigo
14.14
15 bruno harbor 2 dina harbor 21 hana grove 6 bruno harbor 30 lina indigo 22 eli cobalt 15 farah harbor
15.86
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006408
qwen/qwen3.7-plus
awkweave-0006409
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
10 bruno fable 13 alice fable 16 eli fable 22 chen juniper 8 dina fable 7 eli indigo 18 kim harbor 28 dina cobalt 30 farah harbor
7
16 hana amber 5 bruno fable 3 kim fable 25 bruno delta 15 chen amber 15 hana birch
3
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006409-p1
Identify and output the minimum numeric value found in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
10 bruno fable 13 alice fable 16 eli fable 22 chen juniper 8 dina fable 7 eli indigo 18 kim harbor 28 dina cobalt 30 farah harbor
7
16 hana amber 5 bruno fable 3 kim fable 25 bruno delta 15 chen amber 15 hana birch
3
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006409
qwen/qwen3.7-plus
awkweave-0006410
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
indigo farah 22 harbor eli 20 juniper bruno 17 cobalt gus 23 ember gus 15 fable farah 17
23
amber kim 26 cobalt kim 8 grove jules 2 birch bruno 26 amber jules 18 cobalt alice 15 juniper lina 27 birch gus 25 amber bruno 11 ember lina 15
27
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006410-p1
Identify and output the maximum numeric value found in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
indigo farah 22 harbor eli 20 juniper bruno 17 cobalt gus 23 ember gus 15 fable farah 17
23
amber kim 26 cobalt kim 8 grove jules 2 birch bruno 26 amber jules 18 cobalt alice 15 juniper lina 27 birch gus 25 amber bruno 11 ember lina 15
27
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006410
qwen/qwen3.7-plus
awkweave-0006411
Count all input records and print the total.
END{print NR}
ivan 88 dina 109 jules 78 eli 59 hana 59 bruno 85
6
chen 57 dina 31 jules 47 kim 3 alice 43 gus 119 alice 90 dina 104
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006411-p1
Count the total number of input records and print the result.
END{print NR}
ivan 88 dina 109 jules 78 eli 59 hana 59 bruno 85
6
chen 57 dina 31 jules 47 kim 3 alice 43 gus 119 alice 90 dina 104
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006411
qwen/qwen3.7-plus
awkweave-0006412
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
jules ember 80 hana indigo 106 dina indigo 45 bruno fable 118 bruno fable 118 kim ember 78 jules birch 22
jules ember 80 hana indigo 106 dina indigo 45 bruno fable 118 kim ember 78 jules birch 22
hana fable 47 farah ember 24 jules amber 11 lina grove 57 lina fable 78 jules amber 11 eli cobalt 32
hana fable 47 farah ember 24 jules amber 11 lina grove 57 lina fable 78 eli cobalt 32
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006412-p1
Eliminate exact duplicate lines while maintaining the original sequence and keeping the first instance of each line.
!seen[$0]++
jules ember 80 hana indigo 106 dina indigo 45 bruno fable 118 bruno fable 118 kim ember 78 jules birch 22
jules ember 80 hana indigo 106 dina indigo 45 bruno fable 118 kim ember 78 jules birch 22
hana fable 47 farah ember 24 jules amber 11 lina grove 57 lina fable 78 jules amber 11 eli cobalt 32
hana fable 47 farah ember 24 jules amber 11 lina grove 57 lina fable 78 eli cobalt 32
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006412
qwen/qwen3.7-plus
awkweave-0006413
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
farah ember 7 bruno indigo 118 hana ember 84 jules indigo 115 ivan fable 105 alice birch 21 hana amber 84 jules grove 69 lina indigo 49 ivan indigo 99
farah ember 7 bruno indigo 118 ivan fable 105 alice birch 21 hana amber 84 jules grove 69
alice grove 72 lina harbor 120 lina delta 3 bruno cobalt 49 farah juniper 70 alice cobalt 81 eli grove 43 lina ember 51 gus delta 107 eli juniper 22
alice grove 72 lina harbor 120 lina delta 3 bruno cobalt 49 farah juniper 70 lina ember 51
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006413-p1
Retain only the initial line for every unique value found in the second column, ensuring the original input order is preserved.
!seen[$2]++
farah ember 7 bruno indigo 118 hana ember 84 jules indigo 115 ivan fable 105 alice birch 21 hana amber 84 jules grove 69 lina indigo 49 ivan indigo 99
farah ember 7 bruno indigo 118 ivan fable 105 alice birch 21 hana amber 84 jules grove 69
alice grove 72 lina harbor 120 lina delta 3 bruno cobalt 49 farah juniper 70 alice cobalt 81 eli grove 43 lina ember 51 gus delta 107 eli juniper 22
alice grove 72 lina harbor 120 lina delta 3 bruno cobalt 49 farah juniper 70 lina ember 51
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006413
qwen/qwen3.7-plus
awkweave-0006414
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
bruno 1 amber jules 29 cobalt jules 30 harbor chen 11 delta alice 13 delta lina 10 amber gus 10 birch ivan 20 birch eli 27 fable
bruno 1 jules 30 jules 60 chen 71 alice 84 lina 94 gus 104 ivan 124 eli 151
eli 30 cobalt hana 18 amber hana 19 cobalt ivan 23 harbor kim 12 juniper farah 29 grove ivan 12 harbor alice 15 grove
eli 30 hana 48 hana 67 ivan 90 kim 102 farah 131 ivan 143 alice 158
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006414-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}
bruno 1 amber jules 29 cobalt jules 30 harbor chen 11 delta alice 13 delta lina 10 amber gus 10 birch ivan 20 birch eli 27 fable
bruno 1 jules 30 jules 60 chen 71 alice 84 lina 94 gus 104 ivan 124 eli 151
eli 30 cobalt hana 18 amber hana 19 cobalt ivan 23 harbor kim 12 juniper farah 29 grove ivan 12 harbor alice 15 grove
eli 30 hana 48 hana 67 ivan 90 kim 102 farah 131 ivan 143 alice 158
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006414
qwen/qwen3.7-plus
awkweave-0006415
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
hana 6 10 harbor hana 11 10 juniper alice 21 9 fable eli 29 15 birch gus 17 3 juniper jules 11 20 birch jules 18 26 delta kim 23 23 cobalt alice 21 11 grove
hana 16 hana 21 alice 30 eli 44 gus 20 jules 31 jules 44 kim 46 alice 32
alice 30 25 grove hana 23 7 ember alice 19 1 fable ivan 16 5 grove dina 15 2 grove ivan 30 8 grove kim 30 26 harbor
alice 55 hana 30 alice 20 ivan 21 dina 17 ivan 38 kim 56
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006415-p1
For each row, display the first field followed by the combined total of the second and third fields.
{print $1,$2+$3}
hana 6 10 harbor hana 11 10 juniper alice 21 9 fable eli 29 15 birch gus 17 3 juniper jules 11 20 birch jules 18 26 delta kim 23 23 cobalt alice 21 11 grove
hana 16 hana 21 alice 30 eli 44 gus 20 jules 31 jules 44 kim 46 alice 32
alice 30 25 grove hana 23 7 ember alice 19 1 fable ivan 16 5 grove dina 15 2 grove ivan 30 8 grove kim 30 26 harbor
alice 55 hana 30 alice 20 ivan 21 dina 17 ivan 38 kim 56
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006415
qwen/qwen3.7-plus
awkweave-0006416
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
jules 2 chen 6 dina 21 bruno 8 gus 12 farah 21 eli 30
jules fail chen fail dina fail bruno fail gus fail farah fail eli pass
alice 25 ivan 7 lina 17 chen 8 chen 11 gus 6
alice pass ivan fail lina fail chen fail chen fail gus fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006416-p1
Output the first column along with 'pass' if the second column is 25 or greater; otherwise, output 'fail'.
{print $1,($2>=25?"pass":"fail")}
jules 2 chen 6 dina 21 bruno 8 gus 12 farah 21 eli 30
jules fail chen fail dina fail bruno fail gus fail farah fail eli pass
alice 25 ivan 7 lina 17 chen 8 chen 11 gus 6
alice pass ivan fail lina fail chen fail chen fail gus fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006416
qwen/qwen3.7-plus
awkweave-0006417
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
farah fable 55 eli juniper 65 jules delta 15 gus amber 91 kim ember 58 eli harbor 81 kim ember 84 hana grove 63
FABLE JUNIPER DELTA AMBER EMBER HARBOR EMBER GROVE
chen juniper 14 hana ember 35 chen cobalt 14 hana cobalt 90 lina cobalt 19 eli ember 101 dina cobalt 91 alice harbor 21 chen amber 99 lina amber 69
JUNIPER EMBER COBALT COBALT COBALT EMBER COBALT HARBOR AMBER AMBER
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006417-p1
Transform the second column to uppercase letters and display only that modified column.
{print toupper($2)}
farah fable 55 eli juniper 65 jules delta 15 gus amber 91 kim ember 58 eli harbor 81 kim ember 84 hana grove 63
FABLE JUNIPER DELTA AMBER EMBER HARBOR EMBER GROVE
chen juniper 14 hana ember 35 chen cobalt 14 hana cobalt 90 lina cobalt 19 eli ember 101 dina cobalt 91 alice harbor 21 chen amber 99 lina amber 69
JUNIPER EMBER COBALT COBALT COBALT EMBER COBALT HARBOR AMBER AMBER
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006417
qwen/qwen3.7-plus
awkweave-0006418
From column 1, print 2 characters starting at character 2.
{print substr($1,2,2)}
cobalt 74 indigo 83 indigo 95 fable 45 birch 39 juniper 16 delta 73
ob nd nd ab ir un el
grove 5 delta 50 cobalt 105 grove 77 birch 89 harbor 22 indigo 0 harbor 7 amber 7 harbor 22
ro el ob ro ir ar nd ar mb ar
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006418-p1
Extract and print a substring of 2 characters from the first column, beginning at the second character position.
{print substr($1,2,2)}
cobalt 74 indigo 83 indigo 95 fable 45 birch 39 juniper 16 delta 73
ob nd nd ab ir un el
grove 5 delta 50 cobalt 105 grove 77 birch 89 harbor 22 indigo 0 harbor 7 amber 7 harbor 22
ro el ob ro ir ar nd ar mb ar
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006418
qwen/qwen3.7-plus
awkweave-0006419
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
harbor_indigo 65 delta_ember 87 juniper_grove 116 grove_indigo 23 harbor_ember 105 indigo_fable 56
harbor indigo delta ember juniper grove grove indigo harbor ember indigo fable
harbor_cobalt 97 juniper_indigo 26 delta_amber 70 fable_birch 20 amber_cobalt 25 amber_ember 106
harbor cobalt juniper indigo delta amber fable birch amber cobalt amber ember
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006419-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
harbor_indigo 65 delta_ember 87 juniper_grove 116 grove_indigo 23 harbor_ember 105 indigo_fable 56
harbor indigo delta ember juniper grove grove indigo harbor ember indigo fable
harbor_cobalt 97 juniper_indigo 26 delta_amber 70 fable_birch 20 amber_cobalt 25 amber_ember 106
harbor cobalt juniper indigo delta amber fable birch amber cobalt amber ember
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006419
qwen/qwen3.7-plus
awkweave-0006420
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)}
farah delta 46 ready kim delta 113 active ivan delta 12 pending ivan fable 79 ready hana indigo 79 paused kim juniper 90 paused lina amber 32 closed bruno grove 88 paused lina juniper 39 paused eli birch 73 paused
ready 46 delta farah active 113 delta kim pending 12 delta ivan ready 79 fable ivan paused 79 indigo hana paused 90 juniper kim closed 32 amber lina paused 88 grove bruno paused 39 juniper lina paused 73 birch eli
chen grove 61 pending kim harbor 48 paused eli delta 102 closed hana delta 62 paused dina ember 30 pending chen ember 52 paused
pending 61 grove chen paused 48 harbor kim closed 102 delta eli paused 62 delta hana pending 30 ember dina paused 52 ember chen
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006420-p1
Invert the sequence of fields for every line and print all fields in this reversed order.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
farah delta 46 ready kim delta 113 active ivan delta 12 pending ivan fable 79 ready hana indigo 79 paused kim juniper 90 paused lina amber 32 closed bruno grove 88 paused lina juniper 39 paused eli birch 73 paused
ready 46 delta farah active 113 delta kim pending 12 delta ivan ready 79 fable ivan paused 79 indigo hana paused 90 juniper kim closed 32 amber lina paused 88 grove bruno paused 39 juniper lina paused 73 birch eli
chen grove 61 pending kim harbor 48 paused eli delta 102 closed hana delta 62 paused dina ember 30 pending chen ember 52 paused
pending 61 grove chen paused 48 harbor kim closed 102 delta eli paused 62 delta hana pending 30 ember dina paused 52 ember chen
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006420
qwen/qwen3.7-plus
awkweave-0006421
Print the number of whitespace-separated fields on each line.
{print NF}
ivan amber 2 active hana juniper 41 ready gus harbor 16 failed bruno cobalt 21 closed eli juniper 85 closed hana juniper 19 paused chen amber 4 closed
4 4 4 4 4 4 4
gus harbor 90 pending dina indigo 58 active farah birch 88 ready hana birch 103 active hana cobalt 74 closed gus amber 29 pending dina ember 42 pending kim harbor 35 active alice birch 97 pending farah cobalt 24 failed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006421-p1
Display the count of whitespace-delimited fields present on each line.
{print NF}
ivan amber 2 active hana juniper 41 ready gus harbor 16 failed bruno cobalt 21 closed eli juniper 85 closed hana juniper 19 paused chen amber 4 closed
4 4 4 4 4 4 4
gus harbor 90 pending dina indigo 58 active farah birch 88 ready hana birch 103 active hana cobalt 74 closed gus amber 29 pending dina ember 42 pending kim harbor 35 active alice birch 97 pending farah cobalt 24 failed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006421
qwen/qwen3.7-plus
awkweave-0006422
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]]}
eli beta 83 dina alpha 109 jules delta 83 eli delta 6 bruno alpha 42 hana gamma 24 ivan delta 58 eli gamma 98
beta 1 alpha 2 delta 3 gamma 2
gus alpha 80 hana delta 99 ivan delta 97 kim gamma 35 eli beta 93 lina delta 79 dina beta 103
alpha 1 delta 3 gamma 1 beta 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006422-p1
Tally the number of records for each distinct value in the second column, printing each value and its corresponding 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]]}
eli beta 83 dina alpha 109 jules delta 83 eli delta 6 bruno alpha 42 hana gamma 24 ivan delta 58 eli gamma 98
beta 1 alpha 2 delta 3 gamma 2
gus alpha 80 hana delta 99 ivan delta 97 kim gamma 35 eli beta 93 lina delta 79 dina beta 103
alpha 1 delta 3 gamma 1 beta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006422
qwen/qwen3.7-plus
awkweave-0006423
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 beta 17 lina alpha 24 alice alpha 3 alice beta 11 kim gamma 28 alice delta 28 farah alpha 20 bruno beta 4
beta 32 alpha 47 gamma 28 delta 28
dina beta 14 lina delta 17 alice alpha 6 dina gamma 7 farah alpha 20 alice gamma 22 gus gamma 8 ivan alpha 27 eli beta 2
beta 16 delta 17 alpha 53 gamma 37
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006423-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]]}
lina beta 17 lina alpha 24 alice alpha 3 alice beta 11 kim gamma 28 alice delta 28 farah alpha 20 bruno beta 4
beta 32 alpha 47 gamma 28 delta 28
dina beta 14 lina delta 17 alice alpha 6 dina gamma 7 farah alpha 20 alice gamma 22 gus gamma 8 ivan alpha 27 eli beta 2
beta 16 delta 17 alpha 53 gamma 37
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0006423
qwen/qwen3.7-plus
awkweave-0006424
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 cobalt 28 delta birch 38 gamma birch 16 alpha cobalt 7 delta juniper 21 delta fable 37 beta amber 35 beta amber 55 gamma fable 92
alpha 2 delta 3 gamma 2 beta 2
gamma fable 101 delta juniper 11 delta juniper 18 gamma fable 78 beta fable 98 gamma harbor 33
gamma 3 delta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006424-p1
List each unique value from the first column alongside its frequency, ordered by when it first appears.
{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 cobalt 28 delta birch 38 gamma birch 16 alpha cobalt 7 delta juniper 21 delta fable 37 beta amber 35 beta amber 55 gamma fable 92
alpha 2 delta 3 gamma 2 beta 2
gamma fable 101 delta juniper 11 delta juniper 18 gamma fable 78 beta fable 98 gamma harbor 33
gamma 3 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006424
qwen/qwen3.7-plus
awkweave-0006425
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"]}
score state display_name region r001 hana 13 ready r002 bruno 12 pending r003 bruno 27 ready r004 farah 10 active r005 alice 9 ready r006 alice 2 ready r007 hana 7 paused r008 chen 27 closed r009 chen 10 ready
ready pending ready active ready ready paused closed ready
score state display_name region r001 farah 25 pending r002 eli 20 failed r003 chen 8 ready r004 chen 25 pending r005 kim 22 paused r006 lina 11 failed r007 alice 2 closed
pending failed ready pending paused failed closed
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006425-p1
Skip the header row and output the region field for all remaining records.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
score state display_name region r001 hana 13 ready r002 bruno 12 pending r003 bruno 27 ready r004 farah 10 active r005 alice 9 ready r006 alice 2 ready r007 hana 7 paused r008 chen 27 closed r009 chen 10 ready
ready pending ready active ready ready paused closed ready
score state display_name region r001 farah 25 pending r002 eli 20 failed r003 chen 8 ready r004 chen 25 pending r005 kim 22 paused r006 lina 11 failed r007 alice 2 closed
pending failed ready pending paused failed closed
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006425
qwen/qwen3.7-plus
awkweave-0006426
The first row is a header. Print display_name for data rows whose score is greater than 22.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]}
record_id display_name score state r001 alice 17 closed r002 chen 10 failed r003 hana 22 active r004 jules 2 ready r005 alice 2 paused r006 ivan 23 failed r007 farah 7 pending r008 lina 20 active r009 gus 30 active r010 chen 27 active
ivan gus chen
record_id display_name score state r001 kim 26 failed r002 alice 21 paused r003 jules 2 paused r004 farah 5 ready r005 lina 22 failed r006 bruno 2 closed
kim
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006426-p1
Ignoring the header, display the display_name for any row where the score is strictly greater than 22.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]}
record_id display_name score state r001 alice 17 closed r002 chen 10 failed r003 hana 22 active r004 jules 2 ready r005 alice 2 paused r006 ivan 23 failed r007 farah 7 pending r008 lina 20 active r009 gus 30 active r010 chen 27 active
ivan gus chen
record_id display_name score state r001 kim 26 failed r002 alice 21 paused r003 jules 2 paused r004 farah 5 ready r005 lina 22 failed r006 bruno 2 closed
kim
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006426
qwen/qwen3.7-plus
awkweave-0006427
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
kim 21 active lina 9 paused bruno 7 paused hana 6 paused jules 22 paused farah 30 active ivan 21 failed hana 17 ready ivan 7 paused bruno 12 paused
active paused paused paused paused active failed ready paused paused
jules 20 ready ivan 10 failed dina 10 pending bruno 19 ready bruno 14 paused eli 30 pending jules 7 ready
ready failed pending ready paused pending ready
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006427-p1
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
kim 21 active lina 9 paused bruno 7 paused hana 6 paused jules 22 paused farah 30 active ivan 21 failed hana 17 ready ivan 7 paused bruno 12 paused
active paused paused paused paused active failed ready paused paused
jules 20 ready ivan 10 failed dina 10 pending bruno 19 ready bruno 14 paused eli 30 pending jules 7 ready
ready failed pending ready paused pending ready
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0006427
qwen/qwen3.7-plus
awkweave-0006428
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 12.
BEGIN{FS=OFS=","}$2>12{print $1}
lina,20,active ivan,23,ready hana,8,closed dina,4,failed eli,5,ready dina,9,active
lina ivan
alice,18,failed gus,26,closed gus,24,closed eli,9,active alice,24,pending jules,23,ready farah,3,paused gus,13,active jules,26,paused alice,18,pending
alice gus gus alice jules gus jules alice
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006428-p1
For this unquoted CSV data, output the first column only if the second column's value is greater than 12.
BEGIN{FS=OFS=","}$2>12{print $1}
lina,20,active ivan,23,ready hana,8,closed dina,4,failed eli,5,ready dina,9,active
lina ivan
alice,18,failed gus,26,closed gus,24,closed eli,9,active alice,24,pending jules,23,ready farah,3,paused gus,13,active jules,26,paused alice,18,pending
alice gus gus alice jules gus jules alice
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006428
qwen/qwen3.7-plus
awkweave-0006429
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
chen ember 33 chen amber 78 lina grove 87 eli ember 71 dina cobalt 21 farah indigo 34 ivan delta 13 chen harbor 72
chen ember 33 chen amber 78 lina grove 87 eli ember 71 dina cobalt 21 farah indigo 34 ivan delta 13 chen harbor 72
bruno cobalt 73 chen fable 75 dina harbor 36 gus juniper 40 jules birch 79 ivan indigo 32 gus juniper 45 bruno cobalt 116 kim delta 59
bruno cobalt 73 chen fable 75 dina harbor 36 gus juniper 40 jules birch 79 ivan indigo 32 gus juniper 45 bruno cobalt 116 kim delta 59
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006429-p1
Remove leading and trailing spaces from each line and replace sequences of internal whitespace with a single space.
{$1=$1;print}
chen ember 33 chen amber 78 lina grove 87 eli ember 71 dina cobalt 21 farah indigo 34 ivan delta 13 chen harbor 72
chen ember 33 chen amber 78 lina grove 87 eli ember 71 dina cobalt 21 farah indigo 34 ivan delta 13 chen harbor 72
bruno cobalt 73 chen fable 75 dina harbor 36 gus juniper 40 jules birch 79 ivan indigo 32 gus juniper 45 bruno cobalt 116 kim delta 59
bruno cobalt 73 chen fable 75 dina harbor 36 gus juniper 40 jules birch 79 ivan indigo 32 gus juniper 45 bruno cobalt 116 kim delta 59
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006429
qwen/qwen3.7-plus
awkweave-0006430
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah birch 114 pending chen birch 102 pending farah amber 82 ready kim grove 48 ready gus juniper 47 pending chen cobalt 32 closed alice birch 5 closed ivan indigo 23 pending jules juniper 43 paused bruno birch 112 ready
farah birch 114 pending
gus amber 26 ready kim ember 37 failed hana ember 46 closed gus juniper 5 pending chen indigo 117 paused farah birch 93 ready eli indigo 80 closed bruno amber 84 failed bruno juniper 8 pending hana amber 43 ready
bruno juniper 8 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006430-p1
Output the longest line from the input; if multiple lines share the maximum length, select the first one.
{if(length($0)>length(best))best=$0}END{print best}
farah birch 114 pending chen birch 102 pending farah amber 82 ready kim grove 48 ready gus juniper 47 pending chen cobalt 32 closed alice birch 5 closed ivan indigo 23 pending jules juniper 43 paused bruno birch 112 ready
farah birch 114 pending
gus amber 26 ready kim ember 37 failed hana ember 46 closed gus juniper 5 pending chen indigo 117 paused farah birch 93 ready eli indigo 80 closed bruno amber 84 failed bruno juniper 8 pending hana amber 43 ready
bruno juniper 8 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006430
qwen/qwen3.7-plus
awkweave-0006431
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
hana 42 lina 77 gus 46 ivan 14 farah 82 kim 113 ivan 72 jules 50
hana 42 gus 46 farah 82 ivan 72
lina 95 chen 32 dina 25 bruno 86 jules 98 eli 20
lina 95 dina 25 jules 98
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006431-p1
Print lines 1, 3, 5, and so on (every odd-numbered line).
NR%2==1
hana 42 lina 77 gus 46 ivan 14 farah 82 kim 113 ivan 72 jules 50
hana 42 gus 46 farah 82 ivan 72
lina 95 chen 32 dina 25 bruno 86 jules 98 eli 20
lina 95 dina 25 jules 98
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006431
qwen/qwen3.7-plus
awkweave-0006432
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha ember 62 delta harbor 5 alpha amber 89 alpha indigo 88 alpha amber 82 beta juniper 66 gamma grove 89 delta ember 119 alpha fable 65 gamma ember 60
7
gamma harbor 28 alpha delta 106 beta indigo 12 gamma harbor 103 delta ember 94 alpha amber 42 beta cobalt 34 beta harbor 52
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006432-p1
Calculate and print only the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
alpha ember 62 delta harbor 5 alpha amber 89 alpha indigo 88 alpha amber 82 beta juniper 66 gamma grove 89 delta ember 119 alpha fable 65 gamma ember 60
7
gamma harbor 28 alpha delta 106 beta indigo 12 gamma harbor 103 delta ember 94 alpha amber 42 beta cobalt 34 beta harbor 52
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006432
qwen/qwen3.7-plus
awkweave-0006433
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 1 0 farah 30 1 bruno 16 9 kim 23 17 lina 13 10 eli 25 24 hana 2 19 alice 9 23 ivan 17 20
farah 30.00 bruno 1.78 kim 1.35 lina 1.30 eli 1.04 hana 0.11 alice 0.39 ivan 0.85
dina 13 0 ivan 3 28 jules 22 30 kim 13 21 hana 7 9 jules 11 24
ivan 0.11 jules 0.73 kim 0.62 hana 0.78 jules 0.46
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006433-p1
For each row where the third column is non-zero, print the first column and the result of dividing the second column by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
dina 1 0 farah 30 1 bruno 16 9 kim 23 17 lina 13 10 eli 25 24 hana 2 19 alice 9 23 ivan 17 20
farah 30.00 bruno 1.78 kim 1.35 lina 1.30 eli 1.04 hana 0.11 alice 0.39 ivan 0.85
dina 13 0 ivan 3 28 jules 22 30 kim 13 21 hana 7 9 jules 11 24
ivan 0.11 jules 0.73 kim 0.62 hana 0.78 jules 0.46
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006433
qwen/qwen3.7-plus
awkweave-0006434
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 27 chen birch 3 ivan indigo 3 alice delta 30 jules juniper 7 eli birch 27 kim birch 15 bruno indigo 10
alice delta 30 gus delta 27 eli birch 27
chen cobalt 7 lina fable 11 dina juniper 12 jules fable 3 lina harbor 17 alice fable 19 farah fable 17 gus harbor 30 gus amber 11
gus harbor 30 alice fable 19 lina harbor 17
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006434-p1
Output the top three rows based on the numeric value 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]}
gus delta 27 chen birch 3 ivan indigo 3 alice delta 30 jules juniper 7 eli birch 27 kim birch 15 bruno indigo 10
alice delta 30 gus delta 27 eli birch 27
chen cobalt 7 lina fable 11 dina juniper 12 jules fable 3 lina harbor 17 alice fable 19 farah fable 17 gus harbor 30 gus amber 11
gus harbor 30 alice fable 19 lina harbor 17
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006434
qwen/qwen3.7-plus
awkweave-0006435
Select the 4th and 2nd fields in that order.
{print $4, $2}
52 kim grove bruno 95 73 bruno delta chen 34 91 jules harbor ivan 70 22 bruno birch eli 32 53 bruno indigo bruno 27 87 kim juniper farah 29 0 kim amber dina 96 38 ivan cobalt bruno 105 66 alice cobalt jules 42
bruno kim chen bruno ivan jules eli bruno bruno bruno farah kim dina kim bruno ivan jules alice
64 gus ember kim 98 40 chen delta gus 113 120 bruno harbor alice 51 75 chen amber kim 84 90 lina amber dina 99 108 hana fable farah 56 86 lina amber gus 31 57 bruno juniper jules 3 102 eli fable ivan 78 35 alice amber gus 84
kim gus gus chen alice bruno kim chen dina lina farah hana gus lina jules bruno ivan eli gus alice
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006435-p1
Rearrange the fields to show the 4th field followed by the 2nd field.
{print $4, $2}
52 kim grove bruno 95 73 bruno delta chen 34 91 jules harbor ivan 70 22 bruno birch eli 32 53 bruno indigo bruno 27 87 kim juniper farah 29 0 kim amber dina 96 38 ivan cobalt bruno 105 66 alice cobalt jules 42
bruno kim chen bruno ivan jules eli bruno bruno bruno farah kim dina kim bruno ivan jules alice
64 gus ember kim 98 40 chen delta gus 113 120 bruno harbor alice 51 75 chen amber kim 84 90 lina amber dina 99 108 hana fable farah 56 86 lina amber gus 31 57 bruno juniper jules 3 102 eli fable ivan 78 35 alice amber gus 84
kim gus gus chen alice bruno kim chen dina lina farah hana gus lina jules bruno ivan eli gus alice
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006435
qwen/qwen3.7-plus
awkweave-0006436
Print the last field of every input line.
{print $NF}
pending amber paused 17 amber ember paused indigo pending 39 amber harbor ready fable ready 93 amber juniper active indigo pending 23 delta delta active indigo closed 73 cobalt juniper closed birch failed 99 delta delta closed grove pending 81 delta ember paused fable paused 9 fable fable failed harbor active 99 fable ...
ember harbor juniper delta juniper delta ember fable delta indigo
ready birch ready 39 juniper harbor closed indigo closed 51 grove grove closed delta failed 26 ember grove failed birch ready 44 cobalt juniper paused fable pending 15 amber delta ready grove paused 32 amber fable
harbor grove grove juniper delta fable
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006436-p1
Output the final field from each input line.
{print $NF}
pending amber paused 17 amber ember paused indigo pending 39 amber harbor ready fable ready 93 amber juniper active indigo pending 23 delta delta active indigo closed 73 cobalt juniper closed birch failed 99 delta delta closed grove pending 81 delta ember paused fable paused 9 fable fable failed harbor active 99 fable ...
ember harbor juniper delta juniper delta ember fable delta indigo
ready birch ready 39 juniper harbor closed indigo closed 51 grove grove closed delta failed 26 ember grove failed birch ready 44 cobalt juniper paused fable pending 15 amber delta ready grove paused 32 amber fable
harbor grove grove juniper delta fable
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006436
qwen/qwen3.7-plus
awkweave-0006437
Print the complete records where column 3 is at least 60.
$3 >= 60
alice failed 85 pending ivan dina closed 115 paused alice eli ready 31 closed lina jules pending 43 closed chen gus active 114 pending farah farah ready 120 failed chen bruno paused 25 failed eli
alice failed 85 pending ivan dina closed 115 paused alice gus active 114 pending farah farah ready 120 failed chen
chen pending 25 paused hana dina paused 112 pending ivan bruno pending 14 active gus alice failed 61 pending farah alice failed 24 active lina bruno paused 87 paused bruno chen closed 63 pending kim
dina paused 112 pending ivan alice failed 61 pending farah bruno paused 87 paused bruno chen closed 63 pending kim
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006437-p1
Display full records where the value in the third column is greater than or equal to 60.
$3 >= 60
alice failed 85 pending ivan dina closed 115 paused alice eli ready 31 closed lina jules pending 43 closed chen gus active 114 pending farah farah ready 120 failed chen bruno paused 25 failed eli
alice failed 85 pending ivan dina closed 115 paused alice gus active 114 pending farah farah ready 120 failed chen
chen pending 25 paused hana dina paused 112 pending ivan bruno pending 14 active gus alice failed 61 pending farah alice failed 24 active lina bruno paused 87 paused bruno chen closed 63 pending kim
dina paused 112 pending ivan alice failed 61 pending farah bruno paused 87 paused bruno chen closed 63 pending kim
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006437
qwen/qwen3.7-plus
awkweave-0006438
Show whole lines whose 2nd field is between 4 and 28, inclusive.
$2 >= 4 && $2 <= 28
birch 4 pending amber indigo 19 pending fable grove 11 ready cobalt ember 5 ready ember indigo 15 failed indigo birch 5 paused cobalt
birch 4 pending amber indigo 19 pending fable grove 11 ready cobalt ember 5 ready ember indigo 15 failed indigo birch 5 paused cobalt
fable 4 paused grove cobalt 24 pending birch grove 6 pending harbor grove 20 paused indigo cobalt 2 failed amber harbor 13 paused harbor birch 16 paused ember cobalt 28 closed juniper
fable 4 paused grove cobalt 24 pending birch grove 6 pending harbor grove 20 paused indigo harbor 13 paused harbor birch 16 paused ember cobalt 28 closed juniper
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006438-p1
Show entire lines where the second field falls within the inclusive range of 4 to 28.
$2 >= 4 && $2 <= 28
birch 4 pending amber indigo 19 pending fable grove 11 ready cobalt ember 5 ready ember indigo 15 failed indigo birch 5 paused cobalt
birch 4 pending amber indigo 19 pending fable grove 11 ready cobalt ember 5 ready ember indigo 15 failed indigo birch 5 paused cobalt
fable 4 paused grove cobalt 24 pending birch grove 6 pending harbor grove 20 paused indigo cobalt 2 failed amber harbor 13 paused harbor birch 16 paused ember cobalt 28 closed juniper
fable 4 paused grove cobalt 24 pending birch grove 6 pending harbor grove 20 paused indigo harbor 13 paused harbor birch 16 paused ember cobalt 28 closed juniper
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006438
qwen/qwen3.7-plus
awkweave-0006439
Print column 3 only for rows where column 1 is exactly active.
$1 == "active"{print $3}
pending 85 farah delta failed 99 ivan birch paused 78 ivan fable closed 16 kim cobalt failed 31 bruno indigo active 41 bruno harbor active 50 ivan fable
bruno ivan
active 51 gus birch closed 8 kim delta active 58 farah delta paused 9 ivan delta ready 50 farah ember paused 11 kim grove pending 16 kim fable active 49 bruno juniper
gus farah bruno
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006439-p1
Extract and print only the third column for rows where the first column matches 'active' exactly.
$1 == "active"{print $3}
pending 85 farah delta failed 99 ivan birch paused 78 ivan fable closed 16 kim cobalt failed 31 bruno indigo active 41 bruno harbor active 50 ivan fable
bruno ivan
active 51 gus birch closed 8 kim delta active 58 farah delta paused 9 ivan delta ready 50 farah ember paused 11 kim grove pending 16 kim fable active 49 bruno juniper
gus farah bruno
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006439
qwen/qwen3.7-plus
awkweave-0006440
Print all fields from lines where field 3 begins with WARN.
$3 ~ /^WARN/
7 harbor WARN 31 ember DEBUG 79 amber INFO 99 cobalt DEBUG 120 fable INFO 79 cobalt ERROR 77 juniper INFO
7 harbor WARN
1 juniper INFO 82 grove INFO 83 harbor DEBUG 14 juniper INFO 61 amber WARN 28 cobalt WARN 19 grove ERROR 12 harbor INFO
61 amber WARN 28 cobalt WARN
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null