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-0032111-p1
Identify and print the maximum numeric value present in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
29 dina delta 26 alice cobalt 11 kim juniper 4 jules indigo 15 dina birch 20 bruno ember 21 hana cobalt 14 jules delta 22 farah amber 17 hana grove
29
4 jules delta 4 chen indigo 30 jules cobalt 21 ivan fable 16 kim juniper 14 dina indigo 10 hana delta 22 dina indigo
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032111
qwen/qwen3.7-plus
awkweave-0032112
Count all input records and print the total.
END{print NR}
farah 59 ivan 24 jules 27 hana 27 bruno 86 alice 64 eli 53 chen 57 gus 52 jules 0
10
farah 81 eli 36 hana 43 lina 36 eli 77 alice 57 farah 44
7
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032112-p1
Count the total number of input records and display the result.
END{print NR}
farah 59 ivan 24 jules 27 hana 27 bruno 86 alice 64 eli 53 chen 57 gus 52 jules 0
10
farah 81 eli 36 hana 43 lina 36 eli 77 alice 57 farah 44
7
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032112
qwen/qwen3.7-plus
awkweave-0032113
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
chen grove 73 bruno amber 18 alice fable 109 bruno delta 26 farah grove 117 bruno delta 26 jules harbor 86 lina harbor 118 kim grove 57
chen grove 73 bruno amber 18 alice fable 109 bruno delta 26 farah grove 117 jules harbor 86 lina harbor 118 kim grove 57
alice fable 88 farah amber 82 ivan grove 90 kim fable 107 kim grove 6 eli indigo 12 bruno birch 14 bruno harbor 103 kim fable 107 farah birch 77 gus harbor 66
alice fable 88 farah amber 82 ivan grove 90 kim fable 107 kim grove 6 eli indigo 12 bruno birch 14 bruno harbor 103 farah birch 77 gus harbor 66
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032113-p1
Eliminate exact duplicate lines while maintaining the original order and keeping the first instance of each.
!seen[$0]++
chen grove 73 bruno amber 18 alice fable 109 bruno delta 26 farah grove 117 bruno delta 26 jules harbor 86 lina harbor 118 kim grove 57
chen grove 73 bruno amber 18 alice fable 109 bruno delta 26 farah grove 117 jules harbor 86 lina harbor 118 kim grove 57
alice fable 88 farah amber 82 ivan grove 90 kim fable 107 kim grove 6 eli indigo 12 bruno birch 14 bruno harbor 103 kim fable 107 farah birch 77 gus harbor 66
alice fable 88 farah amber 82 ivan grove 90 kim fable 107 kim grove 6 eli indigo 12 bruno birch 14 bruno harbor 103 farah birch 77 gus harbor 66
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032113
qwen/qwen3.7-plus
awkweave-0032114
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
jules delta 108 eli delta 48 chen amber 51 dina birch 33 chen birch 19 alice juniper 73 lina birch 114
jules delta 108 eli delta 48 chen amber 51 dina birch 33 chen birch 19 alice juniper 73 lina birch 114
farah juniper 59 bruno cobalt 49 farah fable 56 dina indigo 86 dina juniper 33 lina harbor 92
farah juniper 59 bruno cobalt 49 farah fable 56 dina indigo 86 dina juniper 33 lina harbor 92
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032114-p1
Retain only the first occurrence for every unique value in column 3, preserving the original input sequence.
!seen[$3]++
jules delta 108 eli delta 48 chen amber 51 dina birch 33 chen birch 19 alice juniper 73 lina birch 114
jules delta 108 eli delta 48 chen amber 51 dina birch 33 chen birch 19 alice juniper 73 lina birch 114
farah juniper 59 bruno cobalt 49 farah fable 56 dina indigo 86 dina juniper 33 lina harbor 92
farah juniper 59 bruno cobalt 49 farah fable 56 dina indigo 86 dina juniper 33 lina harbor 92
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032114
qwen/qwen3.7-plus
awkweave-0032115
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
hana 27 harbor dina 10 ember ivan 12 birch jules 25 fable hana 26 indigo gus 30 indigo hana 7 fable chen 29 fable
hana 27 dina 37 ivan 49 jules 74 hana 100 gus 130 hana 137 chen 166
jules 8 amber dina 24 grove chen 10 fable jules 27 delta chen 24 harbor dina 3 birch farah 20 birch chen 15 grove dina 1 juniper
jules 8 dina 32 chen 42 jules 69 chen 93 dina 96 farah 116 chen 131 dina 132
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032115-p1
For each entry, output the first column and the cumulative sum of the second column, separated by a space.
{s+=$2;print $1,s}
hana 27 harbor dina 10 ember ivan 12 birch jules 25 fable hana 26 indigo gus 30 indigo hana 7 fable chen 29 fable
hana 27 dina 37 ivan 49 jules 74 hana 100 gus 130 hana 137 chen 166
jules 8 amber dina 24 grove chen 10 fable jules 27 delta chen 24 harbor dina 3 birch farah 20 birch chen 15 grove dina 1 juniper
jules 8 dina 32 chen 42 jules 69 chen 93 dina 96 farah 116 chen 131 dina 132
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032115
qwen/qwen3.7-plus
awkweave-0032116
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
kim 30 17 grove dina 25 8 fable farah 27 30 cobalt gus 25 27 amber kim 1 19 fable farah 5 8 harbor jules 26 10 amber farah 20 29 delta chen 17 27 grove
kim 47 dina 33 farah 57 gus 52 kim 20 farah 13 jules 36 farah 49 chen 44
jules 23 2 ember kim 20 1 delta farah 3 28 grove dina 27 12 ember eli 11 19 cobalt lina 18 18 cobalt chen 2 26 delta eli 8 7 cobalt lina 30 6 birch dina 5 22 grove
jules 25 kim 21 farah 31 dina 39 eli 30 lina 36 chen 28 eli 15 lina 36 dina 27
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032116-p1
For each row, output the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
kim 30 17 grove dina 25 8 fable farah 27 30 cobalt gus 25 27 amber kim 1 19 fable farah 5 8 harbor jules 26 10 amber farah 20 29 delta chen 17 27 grove
kim 47 dina 33 farah 57 gus 52 kim 20 farah 13 jules 36 farah 49 chen 44
jules 23 2 ember kim 20 1 delta farah 3 28 grove dina 27 12 ember eli 11 19 cobalt lina 18 18 cobalt chen 2 26 delta eli 8 7 cobalt lina 30 6 birch dina 5 22 grove
jules 25 kim 21 farah 31 dina 39 eli 30 lina 36 chen 28 eli 15 lina 36 dina 27
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032116
qwen/qwen3.7-plus
awkweave-0032117
Print column 1 and pass when column 2 is at least 26; otherwise print fail.
{print $1,($2>=26?"pass":"fail")}
lina 9 bruno 25 alice 17 jules 21 kim 15 alice 10 farah 5
lina fail bruno fail alice fail jules fail kim fail alice fail farah fail
lina 19 jules 19 gus 10 alice 28 gus 16 eli 19 dina 17
lina fail jules fail gus fail alice pass gus fail eli fail dina fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032117-p1
Output the first column along with 'pass' if the second column is 26 or greater, otherwise output 'fail'.
{print $1,($2>=26?"pass":"fail")}
lina 9 bruno 25 alice 17 jules 21 kim 15 alice 10 farah 5
lina fail bruno fail alice fail jules fail kim fail alice fail farah fail
lina 19 jules 19 gus 10 alice 28 gus 16 eli 19 dina 17
lina fail jules fail gus fail alice pass gus fail eli fail dina fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032117
qwen/qwen3.7-plus
awkweave-0032118
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
farah delta 94 ivan birch 56 alice grove 90 bruno grove 10 jules fable 7 bruno grove 70 chen indigo 82 alice birch 63 dina birch 107
FARAH IVAN ALICE BRUNO JULES BRUNO CHEN ALICE DINA
farah grove 101 alice ember 34 ivan grove 48 eli grove 16 chen indigo 54 lina grove 10 hana juniper 30 ivan amber 25 alice grove 28
FARAH ALICE IVAN ELI CHEN LINA HANA IVAN ALICE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032118-p1
Transform the first column to uppercase and output only that column.
{print toupper($1)}
farah delta 94 ivan birch 56 alice grove 90 bruno grove 10 jules fable 7 bruno grove 70 chen indigo 82 alice birch 63 dina birch 107
FARAH IVAN ALICE BRUNO JULES BRUNO CHEN ALICE DINA
farah grove 101 alice ember 34 ivan grove 48 eli grove 16 chen indigo 54 lina grove 10 hana juniper 30 ivan amber 25 alice grove 28
FARAH ALICE IVAN ELI CHEN LINA HANA IVAN ALICE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032118
qwen/qwen3.7-plus
awkweave-0032119
From column 1, print 4 characters starting at character 1.
{print substr($1,1,4)}
birch 0 grove 1 ember 80 juniper 4 ember 111 indigo 28 juniper 107 amber 102
birc grov embe juni embe indi juni ambe
cobalt 69 fable 45 amber 15 juniper 107 grove 16 ember 69
coba fabl ambe juni grov embe
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032119-p1
Extract and display the first 4 characters from column 1.
{print substr($1,1,4)}
birch 0 grove 1 ember 80 juniper 4 ember 111 indigo 28 juniper 107 amber 102
birc grov embe juni embe indi juni ambe
cobalt 69 fable 45 amber 15 juniper 107 grove 16 ember 69
coba fabl ambe juni grov embe
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032119
qwen/qwen3.7-plus
awkweave-0032120
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
indigo_cobalt 57 harbor_indigo 99 juniper_grove 117 ember_cobalt 114 juniper_fable 73 fable_harbor 97 grove_harbor 15 cobalt_amber 42 grove_grove 76 fable_indigo 120
indigo cobalt harbor indigo juniper grove ember cobalt juniper fable fable harbor grove harbor cobalt amber grove grove fable indigo
ember_grove 16 amber_fable 87 cobalt_juniper 20 birch_ember 68 juniper_delta 29 fable_grove 82
ember grove amber fable cobalt juniper birch ember juniper delta fable grove
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032120-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
indigo_cobalt 57 harbor_indigo 99 juniper_grove 117 ember_cobalt 114 juniper_fable 73 fable_harbor 97 grove_harbor 15 cobalt_amber 42 grove_grove 76 fable_indigo 120
indigo cobalt harbor indigo juniper grove ember cobalt juniper fable fable harbor grove harbor cobalt amber grove grove fable indigo
ember_grove 16 amber_fable 87 cobalt_juniper 20 birch_ember 68 juniper_delta 29 fable_grove 82
ember grove amber fable cobalt juniper birch ember juniper delta fable grove
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032120
qwen/qwen3.7-plus
awkweave-0032121
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)}
gus harbor 22 failed hana fable 32 paused lina harbor 120 pending dina delta 90 paused lina harbor 37 failed hana birch 10 failed
failed 22 harbor gus paused 32 fable hana pending 120 harbor lina paused 90 delta dina failed 37 harbor lina failed 10 birch hana
eli grove 45 pending chen fable 4 closed farah harbor 23 failed bruno cobalt 73 closed bruno birch 109 failed dina birch 76 closed jules grove 51 pending jules delta 88 pending bruno ember 94 paused alice indigo 72 failed
pending 45 grove eli closed 4 fable chen failed 23 harbor farah closed 73 cobalt bruno failed 109 birch bruno closed 76 birch dina pending 51 grove jules pending 88 delta jules paused 94 ember bruno failed 72 indigo alice
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032121-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)}
gus harbor 22 failed hana fable 32 paused lina harbor 120 pending dina delta 90 paused lina harbor 37 failed hana birch 10 failed
failed 22 harbor gus paused 32 fable hana pending 120 harbor lina paused 90 delta dina failed 37 harbor lina failed 10 birch hana
eli grove 45 pending chen fable 4 closed farah harbor 23 failed bruno cobalt 73 closed bruno birch 109 failed dina birch 76 closed jules grove 51 pending jules delta 88 pending bruno ember 94 paused alice indigo 72 failed
pending 45 grove eli closed 4 fable chen failed 23 harbor farah closed 73 cobalt bruno failed 109 birch bruno closed 76 birch dina pending 51 grove jules pending 88 delta jules paused 94 ember bruno failed 72 indigo alice
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032121
qwen/qwen3.7-plus
awkweave-0032122
Print the number of whitespace-separated fields on each line.
{print NF}
eli cobalt 99 closed alice grove 24 closed gus cobalt 49 closed ivan juniper 57 ready alice grove 82 closed hana juniper 37 failed
4 4 4 4 4 4
jules indigo 45 paused kim fable 12 failed hana amber 95 pending gus birch 7 ready eli indigo 16 active jules harbor 52 pending gus indigo 32 failed
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032122-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
eli cobalt 99 closed alice grove 24 closed gus cobalt 49 closed ivan juniper 57 ready alice grove 82 closed hana juniper 37 failed
4 4 4 4 4 4
jules indigo 45 paused kim fable 12 failed hana amber 95 pending gus birch 7 ready eli indigo 16 active jules harbor 52 pending gus indigo 32 failed
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032122
qwen/qwen3.7-plus
awkweave-0032123
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
lina gamma 69 lina delta 103 dina delta 79 alice alpha 84 farah gamma 26 alice beta 117 eli alpha 111
gamma 2 delta 2 alpha 2 beta 1
alice gamma 58 eli gamma 44 chen alpha 70 dina alpha 33 alice beta 78 ivan delta 68 farah alpha 48 chen delta 14
gamma 2 alpha 3 beta 1 delta 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032123-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]]}
lina gamma 69 lina delta 103 dina delta 79 alice alpha 84 farah gamma 26 alice beta 117 eli alpha 111
gamma 2 delta 2 alpha 2 beta 1
alice gamma 58 eli gamma 44 chen alpha 70 dina alpha 33 alice beta 78 ivan delta 68 farah alpha 48 chen delta 14
gamma 2 alpha 3 beta 1 delta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032123
qwen/qwen3.7-plus
awkweave-0032124
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
jules gamma 10 dina alpha 5 chen beta 21 gus gamma 19 bruno beta 10 dina beta 3 bruno gamma 27 dina beta 23
gamma 56 alpha 5 beta 57
gus beta 14 bruno gamma 11 hana beta 20 jules gamma 13 gus delta 28 gus delta 28
beta 34 gamma 24 delta 56
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032124-p1
Calculate the sum of column 3 grouped by column 2 categories, displaying the results in the order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
jules gamma 10 dina alpha 5 chen beta 21 gus gamma 19 bruno beta 10 dina beta 3 bruno gamma 27 dina beta 23
gamma 56 alpha 5 beta 57
gus beta 14 bruno gamma 11 hana beta 20 jules gamma 13 gus delta 28 gus delta 28
beta 34 gamma 24 delta 56
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032124
qwen/qwen3.7-plus
awkweave-0032125
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma fable 48 gamma grove 57 gamma fable 61 delta cobalt 70 alpha fable 40 alpha grove 65 delta fable 72 beta grove 53 delta indigo 103
gamma 3 delta 3 alpha 2
gamma indigo 58 alpha grove 79 beta grove 86 delta birch 44 alpha harbor 42 beta grove 41 gamma birch 14
gamma 2 alpha 2 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032125-p1
List each duplicate value from column 1 along with its occurrence count, ordered by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma fable 48 gamma grove 57 gamma fable 61 delta cobalt 70 alpha fable 40 alpha grove 65 delta fable 72 beta grove 53 delta indigo 103
gamma 3 delta 3 alpha 2
gamma indigo 58 alpha grove 79 beta grove 86 delta birch 44 alpha harbor 42 beta grove 41 gamma birch 14
gamma 2 alpha 2 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032125
qwen/qwen3.7-plus
awkweave-0032126
The first row is a header. Print the state column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
display_name record_id note state r001 kim 6 pending r002 jules 3 closed r003 alice 19 pending r004 lina 22 closed r005 gus 11 closed r006 dina 18 paused r007 lina 16 closed r008 eli 13 active
pending closed pending closed closed paused closed active
display_name record_id note state r001 kim 9 active r002 dina 2 active r003 hana 10 closed r004 kim 15 failed r005 gus 23 paused r006 eli 4 paused r007 jules 17 pending r008 kim 12 failed
active active closed failed paused paused pending failed
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032126-p1
Skip the header row and print the state column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
display_name record_id note state r001 kim 6 pending r002 jules 3 closed r003 alice 19 pending r004 lina 22 closed r005 gus 11 closed r006 dina 18 paused r007 lina 16 closed r008 eli 13 active
pending closed pending closed closed paused closed active
display_name record_id note state r001 kim 9 active r002 dina 2 active r003 hana 10 closed r004 kim 15 failed r005 gus 23 paused r006 eli 4 paused r007 jules 17 pending r008 kim 12 failed
active active closed failed paused paused pending failed
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032126
qwen/qwen3.7-plus
awkweave-0032127
The first row is a header. Print display_name for data rows whose score is greater than 23.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>23{print $h["display_name"]}
record_id display_name score state r001 hana 21 active r002 bruno 21 pending r003 ivan 25 ready r004 jules 7 pending r005 kim 2 active r006 farah 13 failed r007 lina 5 active r008 alice 24 failed
ivan alice
record_id display_name score state r001 alice 18 paused r002 farah 25 active r003 eli 11 closed r004 dina 26 ready r005 ivan 12 active r006 ivan 5 failed r007 jules 9 pending
farah dina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032127-p1
Ignoring the header, output the display_name for rows where the score is greater than 23.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>23{print $h["display_name"]}
record_id display_name score state r001 hana 21 active r002 bruno 21 pending r003 ivan 25 ready r004 jules 7 pending r005 kim 2 active r006 farah 13 failed r007 lina 5 active r008 alice 24 failed
ivan alice
record_id display_name score state r001 alice 18 paused r002 farah 25 active r003 eli 11 closed r004 dina 26 ready r005 ivan 12 active r006 ivan 5 failed r007 jules 9 pending
farah dina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032127
qwen/qwen3.7-plus
awkweave-0032128
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
gus 21 ready chen 3 ready bruno 1 active farah 16 pending dina 28 active hana 19 failed gus 12 paused dina 23 closed farah 1 failed jules 27 active
gus chen bruno farah dina hana gus dina farah jules
eli 27 paused eli 7 paused hana 24 active gus 9 closed farah 13 pending bruno 8 pending farah 29 ready
eli eli hana gus farah bruno farah
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032128-p1
Given tab-separated input, extract and print the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
gus 21 ready chen 3 ready bruno 1 active farah 16 pending dina 28 active hana 19 failed gus 12 paused dina 23 closed farah 1 failed jules 27 active
gus chen bruno farah dina hana gus dina farah jules
eli 27 paused eli 7 paused hana 24 active gus 9 closed farah 13 pending bruno 8 pending farah 29 ready
eli eli hana gus farah bruno farah
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032128
qwen/qwen3.7-plus
awkweave-0032129
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 15.
BEGIN{FS=OFS=","}$2>15{print $1}
dina,13,pending chen,6,closed dina,25,paused bruno,27,ready jules,5,closed jules,22,paused chen,23,closed lina,9,pending ivan,30,pending
dina bruno jules chen ivan
ivan,7,ready bruno,24,closed eli,4,failed jules,10,active hana,19,pending hana,9,failed bruno,3,active
bruno hana
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032129-p1
For simple comma-separated data without quoted commas, print column 1 if the value in column 2 is greater than 15.
BEGIN{FS=OFS=","}$2>15{print $1}
dina,13,pending chen,6,closed dina,25,paused bruno,27,ready jules,5,closed jules,22,paused chen,23,closed lina,9,pending ivan,30,pending
dina bruno jules chen ivan
ivan,7,ready bruno,24,closed eli,4,failed jules,10,active hana,19,pending hana,9,failed bruno,3,active
bruno hana
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032129
qwen/qwen3.7-plus
awkweave-0032130
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
alice harbor 41 bruno cobalt 0 eli amber 116 ivan indigo 95 dina ember 67 jules ember 71 alice amber 99
alice harbor 41 bruno cobalt 0 eli amber 116 ivan indigo 95 dina ember 67 jules ember 71 alice amber 99
gus harbor 45 hana grove 79 bruno grove 75 kim birch 81 chen fable 108 dina amber 34 farah amber 37 gus grove 105 eli delta 75 alice cobalt 61
gus harbor 45 hana grove 79 bruno grove 75 kim birch 81 chen fable 108 dina amber 34 farah amber 37 gus grove 105 eli delta 75 alice cobalt 61
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032130-p1
Strip leading and trailing whitespace, then replace runs of internal whitespace with a single space.
{$1=$1;print}
alice harbor 41 bruno cobalt 0 eli amber 116 ivan indigo 95 dina ember 67 jules ember 71 alice amber 99
alice harbor 41 bruno cobalt 0 eli amber 116 ivan indigo 95 dina ember 67 jules ember 71 alice amber 99
gus harbor 45 hana grove 79 bruno grove 75 kim birch 81 chen fable 108 dina amber 34 farah amber 37 gus grove 105 eli delta 75 alice cobalt 61
gus harbor 45 hana grove 79 bruno grove 75 kim birch 81 chen fable 108 dina amber 34 farah amber 37 gus grove 105 eli delta 75 alice cobalt 61
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032130
qwen/qwen3.7-plus
awkweave-0032131
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan cobalt 57 paused chen juniper 84 active lina birch 117 closed eli fable 108 failed dina ember 111 failed hana delta 82 paused eli juniper 67 closed farah grove 92 ready
chen juniper 84 active
farah indigo 110 paused farah juniper 54 paused farah indigo 81 active alice amber 8 ready lina indigo 8 ready farah fable 26 closed
farah indigo 110 paused
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032131-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}
ivan cobalt 57 paused chen juniper 84 active lina birch 117 closed eli fable 108 failed dina ember 111 failed hana delta 82 paused eli juniper 67 closed farah grove 92 ready
chen juniper 84 active
farah indigo 110 paused farah juniper 54 paused farah indigo 81 active alice amber 8 ready lina indigo 8 ready farah fable 26 closed
farah indigo 110 paused
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032131
qwen/qwen3.7-plus
awkweave-0032132
Print every 4th line starting at line 4 (then line 8, and so on).
NR%4==0
lina 29 bruno 23 alice 25 chen 44 kim 105 jules 85 gus 91 hana 9 eli 76 ivan 24
chen 44 hana 9
alice 53 bruno 69 farah 79 jules 30 hana 107 gus 108 chen 88
jules 30
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032132-p1
Print every fourth line beginning with line 4 (i.e., lines 4, 8, 12, etc.).
NR%4==0
lina 29 bruno 23 alice 25 chen 44 kim 105 jules 85 gus 91 hana 9 eli 76 ivan 24
chen 44 hana 9
alice 53 bruno 69 farah 79 jules 30 hana 107 gus 108 chen 88
jules 30
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032132
qwen/qwen3.7-plus
awkweave-0032133
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
delta fable 110 gamma delta 106 alpha cobalt 4 alpha fable 33 alpha fable 88 delta indigo 111 gamma ember 93
3
delta harbor 91 delta juniper 96 beta amber 67 alpha cobalt 77 delta amber 41 alpha harbor 51 gamma cobalt 57
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032133-p1
Calculate the number of unique values in the first column and output only that total count.
{if(!seen[$1]++)n++}END{print n+0}
delta fable 110 gamma delta 106 alpha cobalt 4 alpha fable 33 alpha fable 88 delta indigo 111 gamma ember 93
3
delta harbor 91 delta juniper 96 beta amber 67 alpha cobalt 77 delta amber 41 alpha harbor 51 gamma cobalt 57
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032133
qwen/qwen3.7-plus
awkweave-0032134
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
kim 5 0 gus 23 7 alice 25 26 chen 5 19 lina 18 2 lina 30 13 farah 21 28
gus 3.29 alice 0.96 chen 0.26 lina 9.00 lina 2.31 farah 0.75
hana 29 0 hana 24 23 gus 2 16 lina 7 9 ivan 7 23 dina 12 4 chen 11 6 kim 6 16 gus 20 29 chen 15 14
hana 1.04 gus 0.12 lina 0.78 ivan 0.30 dina 3.00 chen 1.83 kim 0.38 gus 0.69 chen 1.07
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032134-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, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
kim 5 0 gus 23 7 alice 25 26 chen 5 19 lina 18 2 lina 30 13 farah 21 28
gus 3.29 alice 0.96 chen 0.26 lina 9.00 lina 2.31 farah 0.75
hana 29 0 hana 24 23 gus 2 16 lina 7 9 ivan 7 23 dina 12 4 chen 11 6 kim 6 16 gus 20 29 chen 15 14
hana 1.04 gus 0.12 lina 0.78 ivan 0.30 dina 3.00 chen 1.83 kim 0.38 gus 0.69 chen 1.07
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032134
qwen/qwen3.7-plus
awkweave-0032135
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]}
kim grove 9 bruno ember 11 jules grove 17 chen ember 6 alice delta 28 gus harbor 11 alice cobalt 12 bruno delta 11 gus cobalt 13 bruno amber 1
alice delta 28 jules grove 17 gus cobalt 13
dina amber 26 jules harbor 19 hana indigo 15 hana juniper 7 eli cobalt 1 bruno indigo 15 dina delta 30
dina delta 30 dina amber 26 jules harbor 19
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032135-p1
Display 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]}
kim grove 9 bruno ember 11 jules grove 17 chen ember 6 alice delta 28 gus harbor 11 alice cobalt 12 bruno delta 11 gus cobalt 13 bruno amber 1
alice delta 28 jules grove 17 gus cobalt 13
dina amber 26 jules harbor 19 hana indigo 15 hana juniper 7 eli cobalt 1 bruno indigo 15 dina delta 30
dina delta 30 dina amber 26 jules harbor 19
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032135
qwen/qwen3.7-plus
awkweave-0032136
Print column 5 followed by column 1 for every record.
{print $5, $1}
110 ready 99 110 fable 24 92 active 98 119 cobalt 66 18 pending 61 34 harbor 96 39 paused 61 52 birch 88 54 failed 104 44 juniper 11 53 paused 87 118 juniper 2
fable 110 cobalt 92 harbor 18 birch 39 juniper 54 juniper 53
28 closed 73 45 cobalt 92 79 failed 103 21 delta 117 66 active 95 37 fable 42 32 pending 109 79 fable 107 91 active 28 33 amber 73 116 failed 23 58 birch 3 85 ready 78 18 grove 79 76 failed 94 78 birch 65 4 pending 51 87 grove 30 50 pending 27 67 fable 49
cobalt 28 delta 79 fable 66 fable 32 amber 91 birch 116 grove 85 birch 76 grove 4 fable 50
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032136-p1
Output the fifth column followed by the first column for every record.
{print $5, $1}
110 ready 99 110 fable 24 92 active 98 119 cobalt 66 18 pending 61 34 harbor 96 39 paused 61 52 birch 88 54 failed 104 44 juniper 11 53 paused 87 118 juniper 2
fable 110 cobalt 92 harbor 18 birch 39 juniper 54 juniper 53
28 closed 73 45 cobalt 92 79 failed 103 21 delta 117 66 active 95 37 fable 42 32 pending 109 79 fable 107 91 active 28 33 amber 73 116 failed 23 58 birch 3 85 ready 78 18 grove 79 76 failed 94 78 birch 65 4 pending 51 87 grove 30 50 pending 27 67 fable 49
cobalt 28 delta 79 fable 66 fable 32 amber 91 birch 116 grove 85 birch 76 grove 4 fable 50
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032136
qwen/qwen3.7-plus
awkweave-0032137
Print the last field of every input line.
{print $NF}
indigo gus ready cobalt bruno pending amber bruno closed grove eli active indigo lina ready indigo lina active
ready pending closed active ready active
amber ivan failed amber gus paused ember chen closed juniper hana ready juniper kim pending birch hana paused juniper eli failed
failed paused closed ready pending paused failed
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032137-p1
Print the final field of each input line.
{print $NF}
indigo gus ready cobalt bruno pending amber bruno closed grove eli active indigo lina ready indigo lina active
ready pending closed active ready active
amber ivan failed amber gus paused ember chen closed juniper hana ready juniper kim pending birch hana paused juniper eli failed
failed paused closed ready pending paused failed
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032137
qwen/qwen3.7-plus
awkweave-0032138
Print the complete records where column 1 is greater than 43.
$1 > 43
10 paused active hana 84 closed paused eli 36 failed failed dina 52 paused ready ivan 59 ready paused ivan 92 failed ready alice
84 closed paused eli 52 paused ready ivan 59 ready paused ivan 92 failed ready alice
103 closed pending alice 111 pending failed kim 32 paused ready kim 62 ready ready gus 4 pending failed farah 53 closed pending chen 102 pending pending chen 4 pending active bruno 5 ready active farah
103 closed pending alice 111 pending failed kim 62 ready ready gus 53 closed pending chen 102 pending pending chen
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032138-p1
Output full records where the value in the first column exceeds 43.
$1 > 43
10 paused active hana 84 closed paused eli 36 failed failed dina 52 paused ready ivan 59 ready paused ivan 92 failed ready alice
84 closed paused eli 52 paused ready ivan 59 ready paused ivan 92 failed ready alice
103 closed pending alice 111 pending failed kim 32 paused ready kim 62 ready ready gus 4 pending failed farah 53 closed pending chen 102 pending pending chen 4 pending active bruno 5 ready active farah
103 closed pending alice 111 pending failed kim 62 ready ready gus 53 closed pending chen 102 pending pending chen
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032138
qwen/qwen3.7-plus
awkweave-0032139
Show whole lines whose 3rd field is between 3 and 19, inclusive.
$3 >= 3 && $3 <= 19
paused ember 1 closed active amber 24 active paused ember 3 closed ready harbor 19 closed pending harbor 20 pending pending indigo 14 pending
paused ember 3 closed ready harbor 19 closed pending indigo 14 pending
paused birch 17 closed pending delta 28 failed paused cobalt 25 failed ready amber 22 active pending harbor 26 ready paused grove 10 ready failed delta 5 pending
paused birch 17 closed paused grove 10 ready failed delta 5 pending
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032139-p1
Display entire lines where the third field falls within the inclusive range of 3 to 19.
$3 >= 3 && $3 <= 19
paused ember 1 closed active amber 24 active paused ember 3 closed ready harbor 19 closed pending harbor 20 pending pending indigo 14 pending
paused ember 3 closed ready harbor 19 closed pending indigo 14 pending
paused birch 17 closed pending delta 28 failed paused cobalt 25 failed ready amber 22 active pending harbor 26 ready paused grove 10 ready failed delta 5 pending
paused birch 17 closed paused grove 10 ready failed delta 5 pending
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032139
qwen/qwen3.7-plus
awkweave-0032140
Print column 4 only for rows where column 2 is exactly paused.
$2 == "paused"{print $4}
59 paused cobalt hana 0 pending indigo lina 15 failed ember gus 58 closed grove lina 64 active cobalt lina 71 closed juniper ivan 76 active birch jules
hana
81 failed indigo chen 48 closed birch bruno 85 active amber eli 31 paused ember ivan 13 ready indigo gus 0 active amber kim
ivan
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032140-p1
Print only the fourth column for rows where the second column is exactly 'paused'.
$2 == "paused"{print $4}
59 paused cobalt hana 0 pending indigo lina 15 failed ember gus 58 closed grove lina 64 active cobalt lina 71 closed juniper ivan 76 active birch jules
hana
81 failed indigo chen 48 closed birch bruno 85 active amber eli 31 paused ember ivan 13 ready indigo gus 0 active amber kim
ivan
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032140
qwen/qwen3.7-plus
awkweave-0032141
Print all fields from lines where field 3 begins with WARN.
$3 ~ /^WARN/
birch 46 INFO grove 72 ERROR cobalt 43 DEBUG juniper 52 ERROR ember 1 DEBUG amber 17 WARN harbor 7 ERROR harbor 84 INFO harbor 111 INFO birch 40 ERROR
amber 17 WARN
delta 16 ERROR juniper 14 DEBUG indigo 38 INFO harbor 60 DEBUG delta 114 INFO delta 101 INFO ember 70 ERROR amber 110 DEBUG
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032141-p1
Output all fields from lines where the third field starts with the string 'WARN'.
$3 ~ /^WARN/
birch 46 INFO grove 72 ERROR cobalt 43 DEBUG juniper 52 ERROR ember 1 DEBUG amber 17 WARN harbor 7 ERROR harbor 84 INFO harbor 111 INFO birch 40 ERROR
amber 17 WARN
delta 16 ERROR juniper 14 DEBUG indigo 38 INFO harbor 60 DEBUG delta 114 INFO delta 101 INFO ember 70 ERROR amber 110 DEBUG
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032141
qwen/qwen3.7-plus
awkweave-0032142
Print every line except those containing the exact text fable.
$0 !~ /fable/
grove 77 ready ember 3 paused harbor 25 ready juniper 34 failed fable 75 failed amber 53 pending ember 7 ready harbor 69 failed amber 93 ready fable 999 active
grove 77 ready ember 3 paused harbor 25 ready juniper 34 failed amber 53 pending ember 7 ready harbor 69 failed amber 93 ready
juniper 115 ready harbor 110 closed harbor 107 active amber 68 active delta 114 failed cobalt 34 active indigo 77 active ember 79 failed delta 17 active fable 999 active
juniper 115 ready harbor 110 closed harbor 107 active amber 68 active delta 114 failed cobalt 34 active indigo 77 active ember 79 failed delta 17 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032142-p1
Output all lines that do not contain the exact string fable.
$0 !~ /fable/
grove 77 ready ember 3 paused harbor 25 ready juniper 34 failed fable 75 failed amber 53 pending ember 7 ready harbor 69 failed amber 93 ready fable 999 active
grove 77 ready ember 3 paused harbor 25 ready juniper 34 failed amber 53 pending ember 7 ready harbor 69 failed amber 93 ready
juniper 115 ready harbor 110 closed harbor 107 active amber 68 active delta 114 failed cobalt 34 active indigo 77 active ember 79 failed delta 17 active fable 999 active
juniper 115 ready harbor 110 closed harbor 107 active amber 68 active delta 114 failed cobalt 34 active indigo 77 active ember 79 failed delta 17 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032142
qwen/qwen3.7-plus
awkweave-0032143
Print lines 4 through 5, including both endpoints.
NR >= 4 && NR <= 5
gus juniper 39 dina amber 74 farah juniper 112 alice juniper 112 hana juniper 45 jules juniper 39 gus cobalt 8 kim ember 78 eli ember 27 dina juniper 18
alice juniper 112 hana juniper 45
farah birch 40 gus cobalt 76 jules juniper 8 ivan ember 34 hana harbor 6 eli cobalt 28
ivan ember 34 hana harbor 6
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032143-p1
Display lines 4 to 5, inclusive of both line numbers.
NR >= 4 && NR <= 5
gus juniper 39 dina amber 74 farah juniper 112 alice juniper 112 hana juniper 45 jules juniper 39 gus cobalt 8 kim ember 78 eli ember 27 dina juniper 18
alice juniper 112 hana juniper 45
farah birch 40 gus cobalt 76 jules juniper 8 ivan ember 34 hana harbor 6 eli cobalt 28
ivan ember 34 hana harbor 6
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032143
qwen/qwen3.7-plus
awkweave-0032144
Output only the first 2 records.
NR <= 2
jules 105 grove farah 106 fable bruno 27 amber alice 112 delta eli 62 amber eli 63 harbor farah 49 indigo farah 14 juniper hana 27 delta gus 102 juniper
jules 105 grove farah 106 fable
lina 36 birch alice 1 ember ivan 9 indigo lina 69 ember kim 63 juniper gus 78 indigo dina 61 birch chen 108 cobalt dina 23 amber
lina 36 birch alice 1 ember
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032144-p1
Show only the initial 2 records.
NR <= 2
jules 105 grove farah 106 fable bruno 27 amber alice 112 delta eli 62 amber eli 63 harbor farah 49 indigo farah 14 juniper hana 27 delta gus 102 juniper
jules 105 grove farah 106 fable
lina 36 birch alice 1 ember ivan 9 indigo lina 69 ember kim 63 juniper gus 78 indigo dina 61 birch chen 108 cobalt dina 23 amber
lina 36 birch alice 1 ember
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032144
qwen/qwen3.7-plus
awkweave-0032145
Skip the first line and print every remaining line unchanged.
NR > 1
hana 46 fable kim 8 harbor eli 37 amber lina 2 amber ivan 84 amber dina 18 birch eli 7 grove
kim 8 harbor eli 37 amber lina 2 amber ivan 84 amber dina 18 birch eli 7 grove
dina 117 cobalt lina 15 harbor ivan 111 harbor kim 109 grove lina 56 amber eli 78 fable chen 66 cobalt kim 91 ember gus 102 cobalt
lina 15 harbor ivan 111 harbor kim 109 grove lina 56 amber eli 78 fable chen 66 cobalt kim 91 ember gus 102 cobalt
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032145-p1
Omit the first line and output the rest of the lines as they are.
NR > 1
hana 46 fable kim 8 harbor eli 37 amber lina 2 amber ivan 84 amber dina 18 birch eli 7 grove
kim 8 harbor eli 37 amber lina 2 amber ivan 84 amber dina 18 birch eli 7 grove
dina 117 cobalt lina 15 harbor ivan 111 harbor kim 109 grove lina 56 amber eli 78 fable chen 66 cobalt kim 91 ember gus 102 cobalt
lina 15 harbor ivan 111 harbor kim 109 grove lina 56 amber eli 78 fable chen 66 cobalt kim 91 ember gus 102 cobalt
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032145
qwen/qwen3.7-plus
awkweave-0032146
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
ivan pending 53 dina failed 89 bruno paused 15 jules ready 55 jules paused 96 lina failed 22 kim active 47 farah ready 34
1
lina pending 67 alice ready 12 farah active 59 bruno paused 96 bruno ready 114 bruno pending 54 eli closed 102 ivan active 1 eli active 75
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032146-p1
Count the number of records where column 2 is pending. If none exist, print 0.
$2 == "pending"{n++}END{print n+0}
ivan pending 53 dina failed 89 bruno paused 15 jules ready 55 jules paused 96 lina failed 22 kim active 47 farah ready 34
1
lina pending 67 alice ready 12 farah active 59 bruno paused 96 bruno ready 114 bruno pending 54 eli closed 102 ivan active 1 eli active 75
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032146
qwen/qwen3.7-plus
awkweave-0032147
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
amber hana 26 ember hana 30 harbor hana 15 amber farah 7 harbor bruno 2 indigo dina 14 cobalt farah 22 grove kim 21 juniper alice 10
147
birch hana 21 amber hana 5 amber jules 16 grove farah 6 grove bruno 4 amber ivan 18 ember dina 7 cobalt hana 27 indigo ivan 11 delta chen 24
139
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032147-p1
Compute and display the total sum of integer values found in column 3.
{s+=$3}END{print s+0}
amber hana 26 ember hana 30 harbor hana 15 amber farah 7 harbor bruno 2 indigo dina 14 cobalt farah 22 grove kim 21 juniper alice 10
147
birch hana 21 amber hana 5 amber jules 16 grove farah 6 grove bruno 4 amber ivan 18 ember dina 7 cobalt hana 27 indigo ivan 11 delta chen 24
139
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032147
qwen/qwen3.7-plus
awkweave-0032148
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
alice 10 birch farah 17 delta dina 10 cobalt jules 1 indigo alice 1 cobalt chen 7 cobalt kim 18 cobalt
9.14
alice 6 juniper jules 19 cobalt kim 2 cobalt gus 23 ember ivan 27 harbor bruno 1 birch dina 9 grove
12.43
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032148-p1
Print the average of column 2, formatted to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
alice 10 birch farah 17 delta dina 10 cobalt jules 1 indigo alice 1 cobalt chen 7 cobalt kim 18 cobalt
9.14
alice 6 juniper jules 19 cobalt kim 2 cobalt gus 23 ember ivan 27 harbor bruno 1 birch dina 9 grove
12.43
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032148
qwen/qwen3.7-plus
awkweave-0032149
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
cobalt 4 gus delta 4 kim ember 8 ivan harbor 3 hana indigo 5 bruno fable 16 bruno ember 15 hana
3
cobalt 18 dina birch 22 eli juniper 15 kim harbor 1 dina grove 9 gus birch 10 bruno cobalt 22 chen
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032149-p1
Identify and output the minimum numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
cobalt 4 gus delta 4 kim ember 8 ivan harbor 3 hana indigo 5 bruno fable 16 bruno ember 15 hana
3
cobalt 18 dina birch 22 eli juniper 15 kim harbor 1 dina grove 9 gus birch 10 bruno cobalt 22 chen
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032149
qwen/qwen3.7-plus
awkweave-0032150
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
4 grove dina 4 grove alice 25 birch gus 16 harbor kim 28 amber farah 30 cobalt kim 27 cobalt lina
30
3 indigo gus 12 delta hana 12 delta alice 4 harbor lina 1 birch farah 15 delta jules 21 cobalt dina 9 indigo lina 24 juniper dina
24
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032150-p1
Identify and output the maximum numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
4 grove dina 4 grove alice 25 birch gus 16 harbor kim 28 amber farah 30 cobalt kim 27 cobalt lina
30
3 indigo gus 12 delta hana 12 delta alice 4 harbor lina 1 birch farah 15 delta jules 21 cobalt dina 9 indigo lina 24 juniper dina
24
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032150
qwen/qwen3.7-plus
awkweave-0032151
Count all input records and print the total.
END{print NR}
farah 31 lina 10 chen 15 hana 22 gus 113 chen 55 chen 88
7
gus 42 jules 114 kim 79 jules 105 gus 43 jules 17 farah 67
7
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032151-p1
Count the total number of input records and print the result.
END{print NR}
farah 31 lina 10 chen 15 hana 22 gus 113 chen 55 chen 88
7
gus 42 jules 114 kim 79 jules 105 gus 43 jules 17 farah 67
7
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032151
qwen/qwen3.7-plus
awkweave-0032152
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
chen cobalt 20 lina harbor 115 farah cobalt 3 farah birch 47 bruno grove 97 jules fable 119 hana ember 46 farah cobalt 3 hana fable 90 dina cobalt 16 dina ember 30
chen cobalt 20 lina harbor 115 farah cobalt 3 farah birch 47 bruno grove 97 jules fable 119 hana ember 46 hana fable 90 dina cobalt 16 dina ember 30
eli juniper 33 jules ember 107 eli juniper 33 farah delta 80 hana delta 87 gus juniper 43 alice cobalt 106 jules indigo 23
eli juniper 33 jules ember 107 farah delta 80 hana delta 87 gus juniper 43 alice cobalt 106 jules indigo 23
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032152-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
chen cobalt 20 lina harbor 115 farah cobalt 3 farah birch 47 bruno grove 97 jules fable 119 hana ember 46 farah cobalt 3 hana fable 90 dina cobalt 16 dina ember 30
chen cobalt 20 lina harbor 115 farah cobalt 3 farah birch 47 bruno grove 97 jules fable 119 hana ember 46 hana fable 90 dina cobalt 16 dina ember 30
eli juniper 33 jules ember 107 eli juniper 33 farah delta 80 hana delta 87 gus juniper 43 alice cobalt 106 jules indigo 23
eli juniper 33 jules ember 107 farah delta 80 hana delta 87 gus juniper 43 alice cobalt 106 jules indigo 23
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032152
qwen/qwen3.7-plus
awkweave-0032153
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
farah indigo 29 farah fable 56 chen grove 71 dina ember 22 dina birch 97 chen cobalt 26 dina delta 57
farah indigo 29 farah fable 56 chen grove 71 dina ember 22 dina birch 97 chen cobalt 26 dina delta 57
eli amber 71 hana harbor 7 jules amber 101 dina amber 18 lina delta 118 lina ember 11 chen fable 1 ivan indigo 64 alice birch 114 jules harbor 47
eli amber 71 hana harbor 7 lina delta 118 lina ember 11 chen fable 1 ivan indigo 64 alice birch 114
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032153-p1
Retain only the first occurrence for each unique value in column 2, keeping the original input order.
!seen[$2]++
farah indigo 29 farah fable 56 chen grove 71 dina ember 22 dina birch 97 chen cobalt 26 dina delta 57
farah indigo 29 farah fable 56 chen grove 71 dina ember 22 dina birch 97 chen cobalt 26 dina delta 57
eli amber 71 hana harbor 7 jules amber 101 dina amber 18 lina delta 118 lina ember 11 chen fable 1 ivan indigo 64 alice birch 114 jules harbor 47
eli amber 71 hana harbor 7 lina delta 118 lina ember 11 chen fable 1 ivan indigo 64 alice birch 114
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032153
qwen/qwen3.7-plus
awkweave-0032154
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
jules 20 cobalt alice 23 delta hana 17 harbor ivan 29 ember jules 2 cobalt chen 19 harbor gus 25 ember kim 8 delta lina 15 harbor jules 30 delta
jules 20 alice 43 hana 60 ivan 89 jules 91 chen 110 gus 135 kim 143 lina 158 jules 188
gus 2 grove jules 22 delta bruno 28 indigo ivan 7 juniper kim 25 indigo gus 25 birch farah 27 delta farah 13 indigo gus 16 cobalt
gus 2 jules 24 bruno 52 ivan 59 kim 84 gus 109 farah 136 farah 149 gus 165
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032154-p1
Output the first column and the cumulative total of the second column for every record, separated by a space.
{s+=$2;print $1,s}
jules 20 cobalt alice 23 delta hana 17 harbor ivan 29 ember jules 2 cobalt chen 19 harbor gus 25 ember kim 8 delta lina 15 harbor jules 30 delta
jules 20 alice 43 hana 60 ivan 89 jules 91 chen 110 gus 135 kim 143 lina 158 jules 188
gus 2 grove jules 22 delta bruno 28 indigo ivan 7 juniper kim 25 indigo gus 25 birch farah 27 delta farah 13 indigo gus 16 cobalt
gus 2 jules 24 bruno 52 ivan 59 kim 84 gus 109 farah 136 farah 149 gus 165
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032154
qwen/qwen3.7-plus
awkweave-0032155
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
farah 29 12 amber gus 6 27 amber alice 12 3 harbor alice 9 5 amber ivan 16 22 delta hana 11 22 grove alice 9 20 birch
farah 41 gus 33 alice 15 alice 14 ivan 38 hana 33 alice 29
ivan 6 4 harbor jules 20 4 birch bruno 11 28 harbor ivan 5 25 ember eli 27 13 amber bruno 15 23 grove gus 27 9 juniper gus 22 25 cobalt
ivan 10 jules 24 bruno 39 ivan 30 eli 40 bruno 38 gus 36 gus 47
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032155-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
farah 29 12 amber gus 6 27 amber alice 12 3 harbor alice 9 5 amber ivan 16 22 delta hana 11 22 grove alice 9 20 birch
farah 41 gus 33 alice 15 alice 14 ivan 38 hana 33 alice 29
ivan 6 4 harbor jules 20 4 birch bruno 11 28 harbor ivan 5 25 ember eli 27 13 amber bruno 15 23 grove gus 27 9 juniper gus 22 25 cobalt
ivan 10 jules 24 bruno 39 ivan 30 eli 40 bruno 38 gus 36 gus 47
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032155
qwen/qwen3.7-plus
awkweave-0032156
Print column 1 and pass when column 2 is at least 20; otherwise print fail.
{print $1,($2>=20?"pass":"fail")}
jules 5 hana 12 ivan 20 hana 2 bruno 5 hana 27
jules fail hana fail ivan pass hana fail bruno fail hana pass
eli 19 hana 10 farah 12 farah 22 jules 15 ivan 25
eli fail hana fail farah fail farah pass jules fail ivan pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032156-p1
Display the first column along with 'pass' if the second column is 20 or greater, otherwise display 'fail'.
{print $1,($2>=20?"pass":"fail")}
jules 5 hana 12 ivan 20 hana 2 bruno 5 hana 27
jules fail hana fail ivan pass hana fail bruno fail hana pass
eli 19 hana 10 farah 12 farah 22 jules 15 ivan 25
eli fail hana fail farah fail farah pass jules fail ivan pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032156
qwen/qwen3.7-plus
awkweave-0032157
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
bruno grove 50 dina harbor 28 chen cobalt 118 alice ember 74 ivan cobalt 2 bruno indigo 94 ivan harbor 63 jules juniper 61 hana delta 119 alice cobalt 113
GROVE HARBOR COBALT EMBER COBALT INDIGO HARBOR JUNIPER DELTA COBALT
bruno amber 65 hana delta 66 dina birch 71 kim fable 79 lina juniper 32 kim harbor 22 bruno delta 107 chen birch 46 kim delta 80 eli cobalt 62
AMBER DELTA BIRCH FABLE JUNIPER HARBOR DELTA BIRCH DELTA COBALT
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032157-p1
Transform the second column to uppercase and output only that column.
{print toupper($2)}
bruno grove 50 dina harbor 28 chen cobalt 118 alice ember 74 ivan cobalt 2 bruno indigo 94 ivan harbor 63 jules juniper 61 hana delta 119 alice cobalt 113
GROVE HARBOR COBALT EMBER COBALT INDIGO HARBOR JUNIPER DELTA COBALT
bruno amber 65 hana delta 66 dina birch 71 kim fable 79 lina juniper 32 kim harbor 22 bruno delta 107 chen birch 46 kim delta 80 eli cobalt 62
AMBER DELTA BIRCH FABLE JUNIPER HARBOR DELTA BIRCH DELTA COBALT
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032157
qwen/qwen3.7-plus
awkweave-0032158
From column 1, print 3 characters starting at character 2.
{print substr($1,2,3)}
amber 3 amber 87 fable 2 grove 74 grove 109 delta 60 grove 71
mbe mbe abl rov rov elt rov
fable 75 grove 23 harbor 90 juniper 116 juniper 89 delta 78 fable 72 harbor 13 grove 45
abl rov arb uni uni elt abl arb rov
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032158-p1
Extract and print a 3-character substring from the first column, starting at the second character.
{print substr($1,2,3)}
amber 3 amber 87 fable 2 grove 74 grove 109 delta 60 grove 71
mbe mbe abl rov rov elt rov
fable 75 grove 23 harbor 90 juniper 116 juniper 89 delta 78 fable 72 harbor 13 grove 45
abl rov arb uni uni elt abl arb rov
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032158
qwen/qwen3.7-plus
awkweave-0032159
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
grove_fable 13 juniper_amber 24 fable_ember 56 indigo_cobalt 53 birch_cobalt 10 birch_birch 96 fable_juniper 15 birch_ember 20
grove fable juniper amber fable ember indigo cobalt birch cobalt birch birch fable juniper birch ember
harbor_juniper 1 fable_cobalt 35 harbor_ember 49 amber_birch 59 cobalt_indigo 32 harbor_indigo 72 fable_grove 105 ember_grove 25 ember_delta 85
harbor juniper fable cobalt harbor ember amber birch cobalt indigo harbor indigo fable grove ember grove ember delta
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032159-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
grove_fable 13 juniper_amber 24 fable_ember 56 indigo_cobalt 53 birch_cobalt 10 birch_birch 96 fable_juniper 15 birch_ember 20
grove fable juniper amber fable ember indigo cobalt birch cobalt birch birch fable juniper birch ember
harbor_juniper 1 fable_cobalt 35 harbor_ember 49 amber_birch 59 cobalt_indigo 32 harbor_indigo 72 fable_grove 105 ember_grove 25 ember_delta 85
harbor juniper fable cobalt harbor ember amber birch cobalt indigo harbor indigo fable grove ember grove ember delta
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032159
qwen/qwen3.7-plus
awkweave-0032160
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)}
gus ember 19 failed farah grove 34 ready bruno juniper 64 closed farah juniper 5 active eli amber 5 pending alice grove 106 failed hana indigo 21 pending eli harbor 16 ready chen cobalt 112 failed gus fable 12 closed
failed 19 ember gus ready 34 grove farah closed 64 juniper bruno active 5 juniper farah pending 5 amber eli failed 106 grove alice pending 21 indigo hana ready 16 harbor eli failed 112 cobalt chen closed 12 fable gus
ivan grove 44 closed jules indigo 45 closed chen cobalt 36 paused ivan fable 6 failed ivan fable 76 pending chen delta 66 active farah cobalt 11 pending
closed 44 grove ivan closed 45 indigo jules paused 36 cobalt chen failed 6 fable ivan pending 76 fable ivan active 66 delta chen pending 11 cobalt farah
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032160-p1
Reverse the sequence of fields for each line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
gus ember 19 failed farah grove 34 ready bruno juniper 64 closed farah juniper 5 active eli amber 5 pending alice grove 106 failed hana indigo 21 pending eli harbor 16 ready chen cobalt 112 failed gus fable 12 closed
failed 19 ember gus ready 34 grove farah closed 64 juniper bruno active 5 juniper farah pending 5 amber eli failed 106 grove alice pending 21 indigo hana ready 16 harbor eli failed 112 cobalt chen closed 12 fable gus
ivan grove 44 closed jules indigo 45 closed chen cobalt 36 paused ivan fable 6 failed ivan fable 76 pending chen delta 66 active farah cobalt 11 pending
closed 44 grove ivan closed 45 indigo jules paused 36 cobalt chen failed 6 fable ivan pending 76 fable ivan active 66 delta chen pending 11 cobalt farah
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032160
qwen/qwen3.7-plus
awkweave-0032161
Print the number of whitespace-separated fields on each line.
{print NF}
alice birch 82 closed lina birch 30 closed hana ember 11 paused eli juniper 57 active jules harbor 51 closed dina indigo 38 closed alice juniper 67 closed dina harbor 49 paused jules indigo 100 ready jules ember 75 closed
4 4 4 4 4 4 4 4 4 4
hana indigo 60 active bruno juniper 50 paused eli birch 103 failed jules grove 104 active bruno birch 95 closed lina fable 36 paused lina birch 119 ready ivan cobalt 113 failed farah amber 23 ready
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null