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-0021501
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
indigo 5 gus juniper 7 jules amber 16 dina birch 29 hana amber 28 bruno delta 23 bruno
18.00
ember 20 farah birch 11 lina birch 15 eli ember 24 jules ember 2 jules harbor 2 jules harbor 28 eli indigo 18 kim delta 10 jules
14.44
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021501-p1
Calculate the average of the values in the second column and print it rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
indigo 5 gus juniper 7 jules amber 16 dina birch 29 hana amber 28 bruno delta 23 bruno
18.00
ember 20 farah birch 11 lina birch 15 eli ember 24 jules ember 2 jules harbor 2 jules harbor 28 eli indigo 18 kim delta 10 jules
14.44
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021501
qwen/qwen3.7-plus
awkweave-0021502
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
ivan 11 indigo dina 12 grove lina 25 birch farah 18 fable jules 2 indigo lina 2 indigo lina 19 ember eli 12 harbor kim 4 amber
2
gus 12 cobalt lina 1 birch lina 20 delta lina 19 juniper ivan 1 juniper eli 3 juniper
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021502-p1
Identify and print the minimum numeric value found in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
ivan 11 indigo dina 12 grove lina 25 birch farah 18 fable jules 2 indigo lina 2 indigo lina 19 ember eli 12 harbor kim 4 amber
2
gus 12 cobalt lina 1 birch lina 20 delta lina 19 juniper ivan 1 juniper eli 3 juniper
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021502
qwen/qwen3.7-plus
awkweave-0021503
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
15 delta eli 28 harbor ivan 8 birch chen 1 ember eli 16 cobalt jules 7 juniper kim 23 indigo gus 11 ember eli 30 harbor bruno 6 amber bruno
30
4 indigo gus 21 indigo lina 3 harbor alice 14 delta jules 12 amber farah 7 cobalt gus 9 juniper farah 16 cobalt kim
21
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021503-p1
Identify and print the maximum numeric value found in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
15 delta eli 28 harbor ivan 8 birch chen 1 ember eli 16 cobalt jules 7 juniper kim 23 indigo gus 11 ember eli 30 harbor bruno 6 amber bruno
30
4 indigo gus 21 indigo lina 3 harbor alice 14 delta jules 12 amber farah 7 cobalt gus 9 juniper farah 16 cobalt kim
21
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021503
qwen/qwen3.7-plus
awkweave-0021504
Count all input records and print the total.
END{print NR}
lina 46 kim 93 lina 43 bruno 40 chen 92 dina 92 eli 97 dina 36 alice 98 dina 43
10
ivan 87 dina 75 chen 84 hana 54 lina 56 lina 112 kim 107 dina 76 ivan 95 lina 55
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021504-p1
Count the total number of input records and print the final count.
END{print NR}
lina 46 kim 93 lina 43 bruno 40 chen 92 dina 92 eli 97 dina 36 alice 98 dina 43
10
ivan 87 dina 75 chen 84 hana 54 lina 56 lina 112 kim 107 dina 76 ivan 95 lina 55
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021504
qwen/qwen3.7-plus
awkweave-0021505
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
ivan juniper 53 lina fable 0 kim fable 96 ivan cobalt 75 gus birch 90 ivan delta 26 kim fable 96 dina fable 100 chen ember 97 lina ember 82 kim amber 5
ivan juniper 53 lina fable 0 kim fable 96 ivan cobalt 75 gus birch 90 ivan delta 26 dina fable 100 chen ember 97 lina ember 82 kim amber 5
dina ember 40 ivan fable 88 eli fable 69 ivan fable 88 alice grove 77 farah indigo 54 kim fable 113 alice harbor 43 kim cobalt 24 chen delta 27 ivan amber 60
dina ember 40 ivan fable 88 eli fable 69 alice grove 77 farah indigo 54 kim fable 113 alice harbor 43 kim cobalt 24 chen delta 27 ivan amber 60
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021505-p1
Eliminate exact duplicate lines while keeping the first occurrence of each line and maintaining the original order.
!seen[$0]++
ivan juniper 53 lina fable 0 kim fable 96 ivan cobalt 75 gus birch 90 ivan delta 26 kim fable 96 dina fable 100 chen ember 97 lina ember 82 kim amber 5
ivan juniper 53 lina fable 0 kim fable 96 ivan cobalt 75 gus birch 90 ivan delta 26 dina fable 100 chen ember 97 lina ember 82 kim amber 5
dina ember 40 ivan fable 88 eli fable 69 ivan fable 88 alice grove 77 farah indigo 54 kim fable 113 alice harbor 43 kim cobalt 24 chen delta 27 ivan amber 60
dina ember 40 ivan fable 88 eli fable 69 alice grove 77 farah indigo 54 kim fable 113 alice harbor 43 kim cobalt 24 chen delta 27 ivan amber 60
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021505
qwen/qwen3.7-plus
awkweave-0021506
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
farah ember 83 eli amber 90 lina grove 115 kim ember 94 farah ember 3 kim juniper 76 bruno harbor 90 bruno amber 66 alice juniper 51 kim amber 68
farah ember 83 eli amber 90 lina grove 115 kim juniper 76 bruno harbor 90
lina indigo 70 lina indigo 103 kim delta 69 eli ember 48 alice delta 16 chen birch 2 eli cobalt 40 eli ember 16 chen amber 105 gus indigo 89
lina indigo 70 kim delta 69 eli ember 48 chen birch 2 eli cobalt 40 chen amber 105
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021506-p1
Retain only the initial line for every unique entry in the second column, maintaining the original sequence.
!seen[$2]++
farah ember 83 eli amber 90 lina grove 115 kim ember 94 farah ember 3 kim juniper 76 bruno harbor 90 bruno amber 66 alice juniper 51 kim amber 68
farah ember 83 eli amber 90 lina grove 115 kim juniper 76 bruno harbor 90
lina indigo 70 lina indigo 103 kim delta 69 eli ember 48 alice delta 16 chen birch 2 eli cobalt 40 eli ember 16 chen amber 105 gus indigo 89
lina indigo 70 kim delta 69 eli ember 48 chen birch 2 eli cobalt 40 chen amber 105
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021506
qwen/qwen3.7-plus
awkweave-0021507
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
bruno 15 ember lina 2 amber eli 4 amber dina 27 birch gus 16 juniper bruno 19 indigo jules 17 fable
bruno 15 lina 17 eli 21 dina 48 gus 64 bruno 83 jules 100
dina 4 grove alice 24 cobalt farah 23 fable dina 27 fable farah 16 indigo dina 6 amber
dina 4 alice 28 farah 51 dina 78 farah 94 dina 100
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021507-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 15 ember lina 2 amber eli 4 amber dina 27 birch gus 16 juniper bruno 19 indigo jules 17 fable
bruno 15 lina 17 eli 21 dina 48 gus 64 bruno 83 jules 100
dina 4 grove alice 24 cobalt farah 23 fable dina 27 fable farah 16 indigo dina 6 amber
dina 4 alice 28 farah 51 dina 78 farah 94 dina 100
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021507
qwen/qwen3.7-plus
awkweave-0021508
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
eli 16 14 indigo lina 7 21 cobalt alice 14 19 indigo farah 30 25 ember farah 21 25 grove bruno 5 29 delta bruno 17 19 juniper ivan 4 8 ember kim 12 21 grove
eli 30 lina 28 alice 33 farah 55 farah 46 bruno 34 bruno 36 ivan 12 kim 33
dina 6 13 ember chen 6 20 indigo hana 21 11 juniper farah 7 9 ember kim 22 8 ember chen 3 27 juniper
dina 19 chen 26 hana 32 farah 16 kim 30 chen 30
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021508-p1
For each row, display the first field followed by the total of the second and third fields.
{print $1,$2+$3}
eli 16 14 indigo lina 7 21 cobalt alice 14 19 indigo farah 30 25 ember farah 21 25 grove bruno 5 29 delta bruno 17 19 juniper ivan 4 8 ember kim 12 21 grove
eli 30 lina 28 alice 33 farah 55 farah 46 bruno 34 bruno 36 ivan 12 kim 33
dina 6 13 ember chen 6 20 indigo hana 21 11 juniper farah 7 9 ember kim 22 8 ember chen 3 27 juniper
dina 19 chen 26 hana 32 farah 16 kim 30 chen 30
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021508
qwen/qwen3.7-plus
awkweave-0021509
Print column 1 and pass when column 2 is at least 27; otherwise print fail.
{print $1,($2>=27?"pass":"fail")}
jules 17 gus 24 lina 1 hana 12 jules 26 jules 11 ivan 22 bruno 3
jules fail gus fail lina fail hana fail jules fail jules fail ivan fail bruno fail
dina 2 ivan 30 alice 3 chen 3 eli 23 kim 22 jules 14 lina 4 hana 5
dina fail ivan pass alice fail chen fail eli fail kim fail jules fail lina fail hana fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021509-p1
Output the first column; if the second column is 27 or greater, append 'pass', otherwise append 'fail'.
{print $1,($2>=27?"pass":"fail")}
jules 17 gus 24 lina 1 hana 12 jules 26 jules 11 ivan 22 bruno 3
jules fail gus fail lina fail hana fail jules fail jules fail ivan fail bruno fail
dina 2 ivan 30 alice 3 chen 3 eli 23 kim 22 jules 14 lina 4 hana 5
dina fail ivan pass alice fail chen fail eli fail kim fail jules fail lina fail hana fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021509
qwen/qwen3.7-plus
awkweave-0021510
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
eli indigo 120 ivan cobalt 70 bruno cobalt 27 hana cobalt 74 gus ember 17 dina indigo 8 bruno birch 52
INDIGO COBALT COBALT COBALT EMBER INDIGO BIRCH
kim delta 98 farah fable 67 lina birch 110 alice delta 29 alice amber 37 bruno indigo 92 eli harbor 12 hana birch 44 gus juniper 21 gus fable 78
DELTA FABLE BIRCH DELTA AMBER INDIGO HARBOR BIRCH JUNIPER FABLE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021510-p1
Transform the second column to uppercase letters and output only this modified column.
{print toupper($2)}
eli indigo 120 ivan cobalt 70 bruno cobalt 27 hana cobalt 74 gus ember 17 dina indigo 8 bruno birch 52
INDIGO COBALT COBALT COBALT EMBER INDIGO BIRCH
kim delta 98 farah fable 67 lina birch 110 alice delta 29 alice amber 37 bruno indigo 92 eli harbor 12 hana birch 44 gus juniper 21 gus fable 78
DELTA FABLE BIRCH DELTA AMBER INDIGO HARBOR BIRCH JUNIPER FABLE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021510
qwen/qwen3.7-plus
awkweave-0021511
From column 1, print 4 characters starting at character 1.
{print substr($1,1,4)}
ember 42 cobalt 101 fable 9 indigo 86 cobalt 44 delta 88 birch 0
embe coba fabl indi coba delt birc
cobalt 95 fable 65 juniper 77 harbor 66 grove 78 birch 114 cobalt 67 ember 42 harbor 40 delta 76
coba fabl juni harb grov birc coba embe harb delt
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021511-p1
Extract and print the first 4 characters from the first column, starting at position 1.
{print substr($1,1,4)}
ember 42 cobalt 101 fable 9 indigo 86 cobalt 44 delta 88 birch 0
embe coba fabl indi coba delt birc
cobalt 95 fable 65 juniper 77 harbor 66 grove 78 birch 114 cobalt 67 ember 42 harbor 40 delta 76
coba fabl juni harb grov birc coba embe harb delt
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021511
qwen/qwen3.7-plus
awkweave-0021512
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
ember_birch 14 amber_ember 1 cobalt_ember 23 harbor_indigo 47 ember_cobalt 87 harbor_birch 69 harbor_ember 5
ember birch amber ember cobalt ember harbor indigo ember cobalt harbor birch harbor ember
birch_indigo 11 juniper_cobalt 40 ember_harbor 105 indigo_fable 42 fable_birch 8 ember_ember 105 harbor_fable 91
birch indigo juniper cobalt ember harbor indigo fable fable birch ember ember harbor fable
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021512-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
ember_birch 14 amber_ember 1 cobalt_ember 23 harbor_indigo 47 ember_cobalt 87 harbor_birch 69 harbor_ember 5
ember birch amber ember cobalt ember harbor indigo ember cobalt harbor birch harbor ember
birch_indigo 11 juniper_cobalt 40 ember_harbor 105 indigo_fable 42 fable_birch 8 ember_ember 105 harbor_fable 91
birch indigo juniper cobalt ember harbor indigo fable fable birch ember ember harbor fable
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021512
qwen/qwen3.7-plus
awkweave-0021513
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)}
ivan amber 93 closed dina birch 65 closed eli juniper 58 paused hana indigo 40 active hana amber 69 pending jules cobalt 111 paused ivan ember 32 ready lina birch 34 ready
closed 93 amber ivan closed 65 birch dina paused 58 juniper eli active 40 indigo hana pending 69 amber hana paused 111 cobalt jules ready 32 ember ivan ready 34 birch lina
kim fable 7 ready kim delta 12 closed lina cobalt 54 pending dina amber 5 ready jules harbor 98 paused gus indigo 107 paused dina indigo 104 active gus fable 79 failed lina juniper 58 failed ivan juniper 105 paused
ready 7 fable kim closed 12 delta kim pending 54 cobalt lina ready 5 amber dina paused 98 harbor jules paused 107 indigo gus active 104 indigo dina failed 79 fable gus failed 58 juniper lina paused 105 juniper ivan
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021513-p1
Invert the sequence of fields for every line and display all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
ivan amber 93 closed dina birch 65 closed eli juniper 58 paused hana indigo 40 active hana amber 69 pending jules cobalt 111 paused ivan ember 32 ready lina birch 34 ready
closed 93 amber ivan closed 65 birch dina paused 58 juniper eli active 40 indigo hana pending 69 amber hana paused 111 cobalt jules ready 32 ember ivan ready 34 birch lina
kim fable 7 ready kim delta 12 closed lina cobalt 54 pending dina amber 5 ready jules harbor 98 paused gus indigo 107 paused dina indigo 104 active gus fable 79 failed lina juniper 58 failed ivan juniper 105 paused
ready 7 fable kim closed 12 delta kim pending 54 cobalt lina ready 5 amber dina paused 98 harbor jules paused 107 indigo gus active 104 indigo dina failed 79 fable gus failed 58 juniper lina paused 105 juniper ivan
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021513
qwen/qwen3.7-plus
awkweave-0021514
Print the number of whitespace-separated fields on each line.
{print NF}
jules birch 24 active jules indigo 82 failed chen amber 64 ready alice cobalt 15 active eli ember 52 ready hana birch 45 pending
4 4 4 4 4 4
bruno birch 71 failed jules delta 112 pending kim cobalt 30 active chen harbor 77 closed dina amber 83 paused alice indigo 102 paused kim amber 92 ready eli fable 10 closed hana delta 103 pending jules grove 53 paused
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021514-p1
Display the count of whitespace-delimited fields present on each line.
{print NF}
jules birch 24 active jules indigo 82 failed chen amber 64 ready alice cobalt 15 active eli ember 52 ready hana birch 45 pending
4 4 4 4 4 4
bruno birch 71 failed jules delta 112 pending kim cobalt 30 active chen harbor 77 closed dina amber 83 paused alice indigo 102 paused kim amber 92 ready eli fable 10 closed hana delta 103 pending jules grove 53 paused
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021514
qwen/qwen3.7-plus
awkweave-0021515
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
ivan delta 65 bruno delta 88 gus beta 86 gus gamma 81 alice delta 109 hana alpha 15
delta 3 beta 1 gamma 1 alpha 1
chen delta 116 dina delta 20 eli alpha 41 bruno delta 54 jules alpha 97 lina gamma 44 kim gamma 104 jules beta 105 ivan delta 105
delta 4 alpha 2 gamma 2 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021515-p1
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
ivan delta 65 bruno delta 88 gus beta 86 gus gamma 81 alice delta 109 hana alpha 15
delta 3 beta 1 gamma 1 alpha 1
chen delta 116 dina delta 20 eli alpha 41 bruno delta 54 jules alpha 97 lina gamma 44 kim gamma 104 jules beta 105 ivan delta 105
delta 4 alpha 2 gamma 2 beta 1
count_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0021515
qwen/qwen3.7-plus
awkweave-0021516
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 12 dina beta 2 bruno beta 30 lina alpha 25 hana alpha 1 farah alpha 27
beta 44 alpha 53
kim alpha 18 alice alpha 29 lina delta 12 ivan gamma 8 eli delta 18 jules alpha 27 hana delta 4 chen delta 7 gus beta 24 dina gamma 27
alpha 74 delta 41 gamma 35 beta 24
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021516-p1
Calculate the sum of the third column for each group defined by the second column, presenting the results 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 12 dina beta 2 bruno beta 30 lina alpha 25 hana alpha 1 farah alpha 27
beta 44 alpha 53
kim alpha 18 alice alpha 29 lina delta 12 ivan gamma 8 eli delta 18 jules alpha 27 hana delta 4 chen delta 7 gus beta 24 dina gamma 27
alpha 74 delta 41 gamma 35 beta 24
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021516
qwen/qwen3.7-plus
awkweave-0021517
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 indigo 104 alpha birch 77 gamma grove 25 delta juniper 3 gamma cobalt 84 delta delta 15
gamma 3 delta 2
gamma delta 47 gamma grove 84 alpha fable 27 gamma indigo 2 beta grove 99 delta ember 76 delta juniper 58
gamma 3 delta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021517-p1
List each duplicate value from the first column along with its frequency, sorted by the order of 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 indigo 104 alpha birch 77 gamma grove 25 delta juniper 3 gamma cobalt 84 delta delta 15
gamma 3 delta 2
gamma delta 47 gamma grove 84 alpha fable 27 gamma indigo 2 beta grove 99 delta ember 76 delta juniper 58
gamma 3 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021517
qwen/qwen3.7-plus
awkweave-0021518
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"]}
record_id note region state r001 farah 27 closed r002 alice 2 paused r003 gus 21 failed r004 alice 28 closed r005 lina 6 closed r006 gus 17 active r007 chen 1 closed r008 dina 21 pending
27 2 21 28 6 17 1 21
record_id note region state r001 farah 27 paused r002 farah 2 active r003 gus 24 ready r004 dina 28 pending r005 kim 18 ready r006 lina 22 ready r007 ivan 23 ready r008 gus 7 closed r009 jules 25 closed
27 2 24 28 18 22 23 7 25
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021518-p1
Skip the header row and output the 'region' column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
record_id note region state r001 farah 27 closed r002 alice 2 paused r003 gus 21 failed r004 alice 28 closed r005 lina 6 closed r006 gus 17 active r007 chen 1 closed r008 dina 21 pending
27 2 21 28 6 17 1 21
record_id note region state r001 farah 27 paused r002 farah 2 active r003 gus 24 ready r004 dina 28 pending r005 kim 18 ready r006 lina 22 ready r007 ivan 23 ready r008 gus 7 closed r009 jules 25 closed
27 2 24 28 18 22 23 7 25
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021518
qwen/qwen3.7-plus
awkweave-0021519
The first row is a header. Print display_name for data rows whose score is greater than 13.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>13{print $h["display_name"]}
record_id display_name score state r001 kim 23 closed r002 kim 19 pending r003 ivan 23 paused r004 lina 11 paused r005 ivan 17 pending r006 hana 6 paused r007 farah 9 active
kim kim ivan ivan
record_id display_name score state r001 ivan 2 pending r002 alice 16 active r003 bruno 3 failed r004 farah 13 failed r005 bruno 24 paused r006 lina 20 closed r007 chen 23 ready r008 kim 30 pending r009 chen 26 pending r010 jules 17 closed
alice bruno lina chen kim chen jules
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021519-p1
Ignoring the header, display the 'display_name' field for records where the 'score' is strictly greater than 13.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>13{print $h["display_name"]}
record_id display_name score state r001 kim 23 closed r002 kim 19 pending r003 ivan 23 paused r004 lina 11 paused r005 ivan 17 pending r006 hana 6 paused r007 farah 9 active
kim kim ivan ivan
record_id display_name score state r001 ivan 2 pending r002 alice 16 active r003 bruno 3 failed r004 farah 13 failed r005 bruno 24 paused r006 lina 20 closed r007 chen 23 ready r008 kim 30 pending r009 chen 26 pending r010 jules 17 closed
alice bruno lina chen kim chen jules
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021519
qwen/qwen3.7-plus
awkweave-0021520
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
gus 20 pending ivan 1 pending alice 1 active kim 21 closed bruno 25 closed gus 16 active bruno 21 pending farah 17 active jules 25 failed ivan 23 failed
pending pending active closed closed active pending active failed failed
jules 28 failed kim 5 failed eli 5 failed hana 27 pending ivan 9 pending eli 26 pending ivan 9 failed
failed failed failed pending pending pending failed
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021520-p1
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
gus 20 pending ivan 1 pending alice 1 active kim 21 closed bruno 25 closed gus 16 active bruno 21 pending farah 17 active jules 25 failed ivan 23 failed
pending pending active closed closed active pending active failed failed
jules 28 failed kim 5 failed eli 5 failed hana 27 pending ivan 9 pending eli 26 pending ivan 9 failed
failed failed failed pending pending pending failed
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0021520
qwen/qwen3.7-plus
awkweave-0021521
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 18.
BEGIN{FS=OFS=","}$2>18{print $1}
dina,14,paused bruno,27,active lina,3,paused chen,12,closed dina,10,failed alice,21,failed jules,26,paused dina,3,closed
bruno alice jules
farah,28,closed bruno,11,failed chen,2,failed eli,28,pending bruno,12,active chen,22,paused gus,7,failed
farah eli chen
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021521-p1
For simple CSV input without quoted commas, output the first column only if the second column value is greater than 18.
BEGIN{FS=OFS=","}$2>18{print $1}
dina,14,paused bruno,27,active lina,3,paused chen,12,closed dina,10,failed alice,21,failed jules,26,paused dina,3,closed
bruno alice jules
farah,28,closed bruno,11,failed chen,2,failed eli,28,pending bruno,12,active chen,22,paused gus,7,failed
farah eli chen
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021521
qwen/qwen3.7-plus
awkweave-0021522
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
jules juniper 16 kim delta 28 lina harbor 77 chen cobalt 7 chen delta 69 jules juniper 44 dina ember 40
jules juniper 16 kim delta 28 lina harbor 77 chen cobalt 7 chen delta 69 jules juniper 44 dina ember 40
alice amber 95 alice harbor 98 eli ember 50 bruno ember 58 lina cobalt 85 ivan grove 82
alice amber 95 alice harbor 98 eli ember 50 bruno ember 58 lina cobalt 85 ivan grove 82
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021522-p1
Remove leading and trailing whitespace, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
jules juniper 16 kim delta 28 lina harbor 77 chen cobalt 7 chen delta 69 jules juniper 44 dina ember 40
jules juniper 16 kim delta 28 lina harbor 77 chen cobalt 7 chen delta 69 jules juniper 44 dina ember 40
alice amber 95 alice harbor 98 eli ember 50 bruno ember 58 lina cobalt 85 ivan grove 82
alice amber 95 alice harbor 98 eli ember 50 bruno ember 58 lina cobalt 85 ivan grove 82
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021522
qwen/qwen3.7-plus
awkweave-0021523
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
dina indigo 90 active dina ember 106 ready eli ember 31 failed eli delta 74 paused hana amber 19 paused gus ember 88 failed
dina indigo 90 active
dina grove 55 closed chen harbor 36 closed chen fable 76 active dina amber 81 paused hana grove 110 paused hana fable 34 active ivan ember 29 active
chen harbor 36 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021523-p1
Identify and output the longest line from the input; in case of a tie in length, select the line that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
dina indigo 90 active dina ember 106 ready eli ember 31 failed eli delta 74 paused hana amber 19 paused gus ember 88 failed
dina indigo 90 active
dina grove 55 closed chen harbor 36 closed chen fable 76 active dina amber 81 paused hana grove 110 paused hana fable 34 active ivan ember 29 active
chen harbor 36 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021523
qwen/qwen3.7-plus
awkweave-0021524
Print every 3rd line starting at line 1 (then line 4, and so on).
NR%3==1
ivan 79 gus 47 lina 25 bruno 46 farah 40 kim 108 bruno 6 eli 48
ivan 79 bruno 46 bruno 6
hana 41 jules 40 kim 89 gus 104 kim 33 hana 86 kim 14 lina 46
hana 41 gus 104 kim 14
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021524-p1
Output every third line beginning with the first line (i.e., lines 1, 4, 7, etc.).
NR%3==1
ivan 79 gus 47 lina 25 bruno 46 farah 40 kim 108 bruno 6 eli 48
ivan 79 bruno 46 bruno 6
hana 41 jules 40 kim 89 gus 104 kim 33 hana 86 kim 14 lina 46
hana 41 gus 104 kim 14
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021524
qwen/qwen3.7-plus
awkweave-0021525
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
delta fable 68 beta ember 78 gamma grove 89 beta cobalt 76 alpha cobalt 23 gamma birch 27 gamma harbor 99 gamma cobalt 29
6
delta ember 39 beta birch 54 gamma grove 46 gamma amber 101 alpha juniper 36 gamma delta 61 gamma cobalt 112 alpha fable 50
8
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021525-p1
Calculate the number of unique values in the second column and print only this total count.
{if(!seen[$2]++)n++}END{print n+0}
delta fable 68 beta ember 78 gamma grove 89 beta cobalt 76 alpha cobalt 23 gamma birch 27 gamma harbor 99 gamma cobalt 29
6
delta ember 39 beta birch 54 gamma grove 46 gamma amber 101 alpha juniper 36 gamma delta 61 gamma cobalt 112 alpha fable 50
8
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021525
qwen/qwen3.7-plus
awkweave-0021526
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
dina 6 0 ivan 6 6 alice 20 28 gus 28 25 lina 16 21 gus 2 16
ivan 1.00 alice 0.71 gus 1.12 lina 0.76 gus 0.12
kim 8 0 jules 29 7 lina 28 10 eli 1 11 bruno 22 28 farah 9 6 dina 16 15 kim 18 19 farah 11 16
jules 4.14 lina 2.80 eli 0.09 bruno 0.79 farah 1.50 dina 1.07 kim 0.95 farah 0.69
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021526-p1
For each row, output the first column and the result of dividing the second column by the third column formatted to two decimal places, omitting any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
dina 6 0 ivan 6 6 alice 20 28 gus 28 25 lina 16 21 gus 2 16
ivan 1.00 alice 0.71 gus 1.12 lina 0.76 gus 0.12
kim 8 0 jules 29 7 lina 28 10 eli 1 11 bruno 22 28 farah 9 6 dina 16 15 kim 18 19 farah 11 16
jules 4.14 lina 2.80 eli 0.09 bruno 0.79 farah 1.50 dina 1.07 kim 0.95 farah 0.69
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021526
qwen/qwen3.7-plus
awkweave-0021527
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]}
farah cobalt 29 lina birch 8 ivan grove 26 alice birch 11 kim birch 24 alice indigo 29 hana indigo 2 bruno cobalt 29 farah juniper 13 hana grove 13
farah cobalt 29 alice indigo 29 bruno cobalt 29
kim cobalt 1 bruno ember 9 gus ember 26 eli juniper 4 chen amber 8 alice delta 1 gus grove 13 kim harbor 16 lina delta 7
gus ember 26 kim harbor 16 gus grove 13
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021527-p1
Output the top three full records based on 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]}
farah cobalt 29 lina birch 8 ivan grove 26 alice birch 11 kim birch 24 alice indigo 29 hana indigo 2 bruno cobalt 29 farah juniper 13 hana grove 13
farah cobalt 29 alice indigo 29 bruno cobalt 29
kim cobalt 1 bruno ember 9 gus ember 26 eli juniper 4 chen amber 8 alice delta 1 gus grove 13 kim harbor 16 lina delta 7
gus ember 26 kim harbor 16 gus grove 13
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021527
qwen/qwen3.7-plus
awkweave-0021528
Select the 4th and 3rd fields in that order.
{print $4, $3}
gus juniper 3 gus lina cobalt 95 kim lina juniper 33 jules eli juniper 94 dina jules ember 21 dina kim fable 62 gus dina indigo 73 farah
gus 3 kim 95 jules 33 dina 94 dina 21 gus 62 farah 73
farah birch 109 jules hana fable 73 ivan ivan fable 59 chen gus birch 3 hana farah harbor 5 bruno dina ember 77 dina dina harbor 27 lina
jules 109 ivan 73 chen 59 hana 3 bruno 5 dina 77 lina 27
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021528-p1
Extract and print the fourth field followed by the third field, in that specific order.
{print $4, $3}
gus juniper 3 gus lina cobalt 95 kim lina juniper 33 jules eli juniper 94 dina jules ember 21 dina kim fable 62 gus dina indigo 73 farah
gus 3 kim 95 jules 33 dina 94 dina 21 gus 62 farah 73
farah birch 109 jules hana fable 73 ivan ivan fable 59 chen gus birch 3 hana farah harbor 5 bruno dina ember 77 dina dina harbor 27 lina
jules 109 ivan 73 chen 59 hana 3 bruno 5 dina 77 lina 27
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021528
qwen/qwen3.7-plus
awkweave-0021529
Print the last field of every input line.
{print $NF}
ready 50 harbor kim active 30 fable eli closed 83 amber dina paused 106 fable gus failed 74 ember gus active 95 juniper gus paused 31 grove eli
kim eli dina gus gus gus eli
ready 98 amber eli failed 33 fable bruno paused 5 birch ivan active 20 fable dina ready 84 ember ivan failed 26 delta alice closed 108 amber kim failed 28 grove farah ready 30 juniper eli
eli bruno ivan dina ivan alice kim farah eli
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021529-p1
Print the final field from every line of the input.
{print $NF}
ready 50 harbor kim active 30 fable eli closed 83 amber dina paused 106 fable gus failed 74 ember gus active 95 juniper gus paused 31 grove eli
kim eli dina gus gus gus eli
ready 98 amber eli failed 33 fable bruno paused 5 birch ivan active 20 fable dina ready 84 ember ivan failed 26 delta alice closed 108 amber kim failed 28 grove farah ready 30 juniper eli
eli bruno ivan dina ivan alice kim farah eli
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021529
qwen/qwen3.7-plus
awkweave-0021530
Print the complete records where column 2 is at most 24.
$2 <= 24
failed 2 paused closed 22 pending ready 71 active paused 12 failed paused 27 paused closed 78 closed ready 58 ready failed 85 ready closed 32 ready
failed 2 paused closed 22 pending paused 12 failed
failed 99 active pending 36 paused pending 115 paused failed 96 pending closed 73 ready failed 78 pending paused 11 closed active 4 active ready 88 active failed 104 paused
paused 11 closed active 4 active
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021530-p1
Display full records where the value in the second column is less than or equal to 24.
$2 <= 24
failed 2 paused closed 22 pending ready 71 active paused 12 failed paused 27 paused closed 78 closed ready 58 ready failed 85 ready closed 32 ready
failed 2 paused closed 22 pending paused 12 failed
failed 99 active pending 36 paused pending 115 paused failed 96 pending closed 73 ready failed 78 pending paused 11 closed active 4 active ready 88 active failed 104 paused
paused 11 closed active 4 active
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021530
qwen/qwen3.7-plus
awkweave-0021531
Show whole lines whose 1st field is between 7 and 28, inclusive.
$1 >= 7 && $1 <= 28
6 failed ember amber 24 paused cobalt amber 7 active harbor grove 19 paused juniper harbor 1 paused fable delta 21 pending indigo amber 28 closed indigo birch 2 ready cobalt ember 29 ready amber indigo 17 pending harbor amber
24 paused cobalt amber 7 active harbor grove 19 paused juniper harbor 21 pending indigo amber 28 closed indigo birch 17 pending harbor amber
11 closed indigo indigo 17 closed ember juniper 30 failed juniper juniper 28 active delta harbor 8 pending birch ember 30 closed amber amber 18 ready cobalt grove 6 closed harbor delta 28 paused cobalt ember 27 paused ember birch
11 closed indigo indigo 17 closed ember juniper 28 active delta harbor 8 pending birch ember 18 ready cobalt grove 28 paused cobalt ember 27 paused ember birch
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021531-p1
Output entire lines where the first field falls within the inclusive range of 7 to 28.
$1 >= 7 && $1 <= 28
6 failed ember amber 24 paused cobalt amber 7 active harbor grove 19 paused juniper harbor 1 paused fable delta 21 pending indigo amber 28 closed indigo birch 2 ready cobalt ember 29 ready amber indigo 17 pending harbor amber
24 paused cobalt amber 7 active harbor grove 19 paused juniper harbor 21 pending indigo amber 28 closed indigo birch 17 pending harbor amber
11 closed indigo indigo 17 closed ember juniper 30 failed juniper juniper 28 active delta harbor 8 pending birch ember 30 closed amber amber 18 ready cobalt grove 6 closed harbor delta 28 paused cobalt ember 27 paused ember birch
11 closed indigo indigo 17 closed ember juniper 28 active delta harbor 8 pending birch ember 18 ready cobalt grove 28 paused cobalt ember 27 paused ember birch
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021531
qwen/qwen3.7-plus
awkweave-0021532
Print column 2 only for rows where column 3 is exactly paused.
$3 == "paused"{print $2}
2 jules failed harbor 51 eli pending fable 113 alice failed grove 114 bruno pending delta 17 gus paused ember 77 chen ready ember 101 lina closed fable
gus
11 dina active cobalt 61 eli active harbor 51 eli closed juniper 51 jules closed birch 17 lina closed delta 27 eli failed grove 71 ivan pending fable 60 jules ready delta
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021532-p1
Extract and print only the second column for rows where the third column equals paused.
$3 == "paused"{print $2}
2 jules failed harbor 51 eli pending fable 113 alice failed grove 114 bruno pending delta 17 gus paused ember 77 chen ready ember 101 lina closed fable
gus
11 dina active cobalt 61 eli active harbor 51 eli closed juniper 51 jules closed birch 17 lina closed delta 27 eli failed grove 71 ivan pending fable 60 jules ready delta
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021532
qwen/qwen3.7-plus
awkweave-0021533
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
DEBUG ember 113 WARN indigo 53 INFO amber 51 ERROR ember 1 DEBUG cobalt 80 DEBUG amber 19 ERROR fable 79
ERROR ember 1 ERROR fable 79
ERROR delta 106 DEBUG birch 102 ERROR harbor 117 ERROR delta 62 WARN cobalt 100 INFO delta 15 ERROR harbor 23
ERROR delta 106 ERROR harbor 117 ERROR delta 62 ERROR harbor 23
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021533-p1
Print all fields from lines where the first field starts with the string ERROR.
$1 ~ /^ERROR/
DEBUG ember 113 WARN indigo 53 INFO amber 51 ERROR ember 1 DEBUG cobalt 80 DEBUG amber 19 ERROR fable 79
ERROR ember 1 ERROR fable 79
ERROR delta 106 DEBUG birch 102 ERROR harbor 117 ERROR delta 62 WARN cobalt 100 INFO delta 15 ERROR harbor 23
ERROR delta 106 ERROR harbor 117 ERROR delta 62 ERROR harbor 23
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021533
qwen/qwen3.7-plus
awkweave-0021534
Print every line except those containing the exact text amber.
$0 !~ /amber/
grove 13 closed juniper 83 ready cobalt 18 pending juniper 36 active ember 58 paused harbor 81 closed cobalt 13 failed harbor 84 ready amber 999 active
grove 13 closed juniper 83 ready cobalt 18 pending juniper 36 active ember 58 paused harbor 81 closed cobalt 13 failed harbor 84 ready
grove 53 ready grove 11 closed ember 0 paused delta 75 paused cobalt 80 paused birch 60 paused juniper 28 pending grove 2 paused harbor 38 ready amber 999 active
grove 53 ready grove 11 closed ember 0 paused delta 75 paused cobalt 80 paused birch 60 paused juniper 28 pending grove 2 paused harbor 38 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021534-p1
Output every line that does not contain the exact substring amber.
$0 !~ /amber/
grove 13 closed juniper 83 ready cobalt 18 pending juniper 36 active ember 58 paused harbor 81 closed cobalt 13 failed harbor 84 ready amber 999 active
grove 13 closed juniper 83 ready cobalt 18 pending juniper 36 active ember 58 paused harbor 81 closed cobalt 13 failed harbor 84 ready
grove 53 ready grove 11 closed ember 0 paused delta 75 paused cobalt 80 paused birch 60 paused juniper 28 pending grove 2 paused harbor 38 ready amber 999 active
grove 53 ready grove 11 closed ember 0 paused delta 75 paused cobalt 80 paused birch 60 paused juniper 28 pending grove 2 paused harbor 38 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021534
qwen/qwen3.7-plus
awkweave-0021535
Print lines 3 through 6, including both endpoints.
NR >= 3 && NR <= 6
gus indigo 84 farah juniper 15 gus delta 115 alice indigo 106 ivan grove 17 alice amber 73 dina ember 22 bruno juniper 88 eli juniper 99
gus delta 115 alice indigo 106 ivan grove 17 alice amber 73
gus ember 37 jules grove 10 lina grove 106 farah grove 47 farah harbor 86 kim amber 44
lina grove 106 farah grove 47 farah harbor 86 kim amber 44
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021535-p1
Print lines numbered 3 through 6, inclusive of both endpoints.
NR >= 3 && NR <= 6
gus indigo 84 farah juniper 15 gus delta 115 alice indigo 106 ivan grove 17 alice amber 73 dina ember 22 bruno juniper 88 eli juniper 99
gus delta 115 alice indigo 106 ivan grove 17 alice amber 73
gus ember 37 jules grove 10 lina grove 106 farah grove 47 farah harbor 86 kim amber 44
lina grove 106 farah grove 47 farah harbor 86 kim amber 44
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021535
qwen/qwen3.7-plus
awkweave-0021536
Output only the first 5 records.
NR <= 5
hana 14 indigo lina 47 amber jules 98 ember dina 43 birch alice 97 harbor hana 98 grove bruno 5 indigo gus 93 birch jules 112 birch
hana 14 indigo lina 47 amber jules 98 ember dina 43 birch alice 97 harbor
dina 111 harbor bruno 2 amber bruno 25 fable dina 4 amber chen 45 indigo farah 32 grove ivan 91 fable
dina 111 harbor bruno 2 amber bruno 25 fable dina 4 amber chen 45 indigo
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021536-p1
Display only the first 5 records from the input.
NR <= 5
hana 14 indigo lina 47 amber jules 98 ember dina 43 birch alice 97 harbor hana 98 grove bruno 5 indigo gus 93 birch jules 112 birch
hana 14 indigo lina 47 amber jules 98 ember dina 43 birch alice 97 harbor
dina 111 harbor bruno 2 amber bruno 25 fable dina 4 amber chen 45 indigo farah 32 grove ivan 91 fable
dina 111 harbor bruno 2 amber bruno 25 fable dina 4 amber chen 45 indigo
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021536
qwen/qwen3.7-plus
awkweave-0021537
Skip the first line and print every remaining line unchanged.
NR > 1
lina 32 fable alice 86 harbor dina 89 delta hana 22 birch bruno 19 delta eli 31 amber bruno 62 amber gus 82 harbor
alice 86 harbor dina 89 delta hana 22 birch bruno 19 delta eli 31 amber bruno 62 amber gus 82 harbor
eli 57 harbor chen 119 ember alice 33 delta farah 110 birch hana 116 ember lina 73 amber
chen 119 ember alice 33 delta farah 110 birch hana 116 ember lina 73 amber
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021537-p1
Ignore the first line and output all subsequent lines without modification.
NR > 1
lina 32 fable alice 86 harbor dina 89 delta hana 22 birch bruno 19 delta eli 31 amber bruno 62 amber gus 82 harbor
alice 86 harbor dina 89 delta hana 22 birch bruno 19 delta eli 31 amber bruno 62 amber gus 82 harbor
eli 57 harbor chen 119 ember alice 33 delta farah 110 birch hana 116 ember lina 73 amber
chen 119 ember alice 33 delta farah 110 birch hana 116 ember lina 73 amber
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021537
qwen/qwen3.7-plus
awkweave-0021538
Count how many records have ready in column 2. Print 0 if there are none.
$2 == "ready"{n++}END{print n+0}
chen closed 96 dina pending 86 chen active 32 ivan closed 88 ivan closed 94 farah active 13 farah paused 106 alice active 48
0
lina closed 82 chen ready 62 chen paused 26 dina closed 75 chen paused 87 eli active 20 ivan active 7
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021538-p1
Count the number of records containing ready in the second column; output 0 if the count is zero.
$2 == "ready"{n++}END{print n+0}
chen closed 96 dina pending 86 chen active 32 ivan closed 88 ivan closed 94 farah active 13 farah paused 106 alice active 48
0
lina closed 82 chen ready 62 chen paused 26 dina closed 75 chen paused 87 eli active 20 ivan active 7
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021538
qwen/qwen3.7-plus
awkweave-0021539
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
eli ember 7 dina cobalt 10 gus delta 23 dina birch 8 hana cobalt 1 eli delta 8
57
jules juniper 15 hana harbor 23 eli indigo 28 bruno amber 22 kim cobalt 28 jules grove 10 dina cobalt 6
132
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021539-p1
Compute and display the sum of all integer values found in the third column.
{s+=$3}END{print s+0}
eli ember 7 dina cobalt 10 gus delta 23 dina birch 8 hana cobalt 1 eli delta 8
57
jules juniper 15 hana harbor 23 eli indigo 28 bruno amber 22 kim cobalt 28 jules grove 10 dina cobalt 6
132
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021539
qwen/qwen3.7-plus
awkweave-0021540
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
hana harbor 21 eli grove 2 lina fable 1 farah birch 24 chen cobalt 8 kim delta 6 gus grove 16 chen harbor 15 dina cobalt 12
11.67
eli amber 22 bruno amber 9 hana juniper 3 lina grove 26 jules indigo 19 eli juniper 1 eli harbor 17 farah cobalt 3
12.50
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021540-p1
Calculate the average of the values in the third column and print it rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
hana harbor 21 eli grove 2 lina fable 1 farah birch 24 chen cobalt 8 kim delta 6 gus grove 16 chen harbor 15 dina cobalt 12
11.67
eli amber 22 bruno amber 9 hana juniper 3 lina grove 26 jules indigo 19 eli juniper 1 eli harbor 17 farah cobalt 3
12.50
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021540
qwen/qwen3.7-plus
awkweave-0021541
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
ember ivan 28 birch dina 10 fable dina 2 cobalt alice 10 cobalt gus 12 grove jules 3 fable jules 5 birch hana 27
2
fable bruno 3 juniper bruno 29 birch dina 12 fable eli 7 indigo farah 3 indigo bruno 9 indigo kim 2 amber lina 28
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021541-p1
Identify and print the minimum numeric value present in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
ember ivan 28 birch dina 10 fable dina 2 cobalt alice 10 cobalt gus 12 grove jules 3 fable jules 5 birch hana 27
2
fable bruno 3 juniper bruno 29 birch dina 12 fable eli 7 indigo farah 3 indigo bruno 9 indigo kim 2 amber lina 28
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021541
qwen/qwen3.7-plus
awkweave-0021542
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
alice 24 amber lina 12 fable eli 10 harbor jules 29 indigo eli 10 ember kim 2 juniper alice 13 indigo
29
farah 15 juniper hana 14 indigo dina 3 harbor hana 30 birch bruno 18 birch farah 20 ember
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021542-p1
Identify and output the maximum number found in the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
alice 24 amber lina 12 fable eli 10 harbor jules 29 indigo eli 10 ember kim 2 juniper alice 13 indigo
29
farah 15 juniper hana 14 indigo dina 3 harbor hana 30 birch bruno 18 birch farah 20 ember
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021542
qwen/qwen3.7-plus
awkweave-0021543
Count all input records and print the total.
END{print NR}
chen 56 kim 67 lina 23 lina 62 alice 8 hana 114 ivan 79 hana 3
8
chen 86 dina 94 eli 75 hana 1 gus 50 hana 44 ivan 25 farah 119
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021543-p1
Calculate the total number of input records and display the count.
END{print NR}
chen 56 kim 67 lina 23 lina 62 alice 8 hana 114 ivan 79 hana 3
8
chen 86 dina 94 eli 75 hana 1 gus 50 hana 44 ivan 25 farah 119
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021543
qwen/qwen3.7-plus
awkweave-0021544
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
chen ember 42 hana harbor 71 kim amber 72 hana harbor 71 dina juniper 95 jules indigo 97 ivan harbor 85 farah grove 84 eli delta 102
chen ember 42 hana harbor 71 kim amber 72 dina juniper 95 jules indigo 97 ivan harbor 85 farah grove 84 eli delta 102
dina grove 101 gus cobalt 100 kim cobalt 33 gus cobalt 100 dina ember 96 eli juniper 5 ivan delta 119 hana birch 92 bruno juniper 41
dina grove 101 gus cobalt 100 kim cobalt 33 dina ember 96 eli juniper 5 ivan delta 119 hana birch 92 bruno juniper 41
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021544-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
chen ember 42 hana harbor 71 kim amber 72 hana harbor 71 dina juniper 95 jules indigo 97 ivan harbor 85 farah grove 84 eli delta 102
chen ember 42 hana harbor 71 kim amber 72 dina juniper 95 jules indigo 97 ivan harbor 85 farah grove 84 eli delta 102
dina grove 101 gus cobalt 100 kim cobalt 33 gus cobalt 100 dina ember 96 eli juniper 5 ivan delta 119 hana birch 92 bruno juniper 41
dina grove 101 gus cobalt 100 kim cobalt 33 dina ember 96 eli juniper 5 ivan delta 119 hana birch 92 bruno juniper 41
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021544
qwen/qwen3.7-plus
awkweave-0021545
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
lina indigo 35 lina ember 45 farah indigo 15 kim cobalt 86 alice cobalt 26 chen harbor 59 eli grove 87 lina amber 94
lina indigo 35 lina ember 45 kim cobalt 86 chen harbor 59 eli grove 87 lina amber 94
lina birch 109 hana fable 63 dina fable 45 dina birch 78 jules grove 91 jules cobalt 32 gus juniper 29 hana cobalt 72
lina birch 109 hana fable 63 jules grove 91 jules cobalt 32 gus juniper 29
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021545-p1
Retain only the initial line for every unique value in the second column, keeping the input order intact.
!seen[$2]++
lina indigo 35 lina ember 45 farah indigo 15 kim cobalt 86 alice cobalt 26 chen harbor 59 eli grove 87 lina amber 94
lina indigo 35 lina ember 45 kim cobalt 86 chen harbor 59 eli grove 87 lina amber 94
lina birch 109 hana fable 63 dina fable 45 dina birch 78 jules grove 91 jules cobalt 32 gus juniper 29 hana cobalt 72
lina birch 109 hana fable 63 jules grove 91 jules cobalt 32 gus juniper 29
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021545
qwen/qwen3.7-plus
awkweave-0021546
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
kim 1 juniper jules 30 grove dina 27 fable chen 27 fable ivan 25 juniper kim 27 indigo kim 27 ember lina 11 cobalt ivan 16 birch
kim 1 jules 31 dina 58 chen 85 ivan 110 kim 137 kim 164 lina 175 ivan 191
chen 5 indigo kim 18 amber jules 8 cobalt hana 19 amber farah 17 harbor jules 22 harbor jules 16 fable
chen 5 kim 23 jules 31 hana 50 farah 67 jules 89 jules 105
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021546-p1
Output the first column alongside the cumulative sum of the second column for each record, using a space as the delimiter.
{s+=$2;print $1,s}
kim 1 juniper jules 30 grove dina 27 fable chen 27 fable ivan 25 juniper kim 27 indigo kim 27 ember lina 11 cobalt ivan 16 birch
kim 1 jules 31 dina 58 chen 85 ivan 110 kim 137 kim 164 lina 175 ivan 191
chen 5 indigo kim 18 amber jules 8 cobalt hana 19 amber farah 17 harbor jules 22 harbor jules 16 fable
chen 5 kim 23 jules 31 hana 50 farah 67 jules 89 jules 105
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021546
qwen/qwen3.7-plus
awkweave-0021547
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
lina 1 9 amber bruno 30 25 indigo chen 17 23 delta hana 19 7 fable ivan 23 12 cobalt farah 29 9 birch lina 7 7 fable dina 16 3 ember dina 8 26 birch
lina 10 bruno 55 chen 40 hana 26 ivan 35 farah 38 lina 14 dina 19 dina 34
kim 25 11 delta chen 5 12 grove eli 4 16 amber gus 5 25 delta ivan 18 15 fable ivan 23 2 delta chen 30 24 grove chen 17 22 ember
kim 36 chen 17 eli 20 gus 30 ivan 33 ivan 25 chen 54 chen 39
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021547-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
lina 1 9 amber bruno 30 25 indigo chen 17 23 delta hana 19 7 fable ivan 23 12 cobalt farah 29 9 birch lina 7 7 fable dina 16 3 ember dina 8 26 birch
lina 10 bruno 55 chen 40 hana 26 ivan 35 farah 38 lina 14 dina 19 dina 34
kim 25 11 delta chen 5 12 grove eli 4 16 amber gus 5 25 delta ivan 18 15 fable ivan 23 2 delta chen 30 24 grove chen 17 22 ember
kim 36 chen 17 eli 20 gus 30 ivan 33 ivan 25 chen 54 chen 39
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021547
qwen/qwen3.7-plus
awkweave-0021548
Print column 1 and pass when column 2 is at least 26; otherwise print fail.
{print $1,($2>=26?"pass":"fail")}
hana 29 kim 18 hana 22 ivan 16 eli 20 gus 18 lina 12
hana pass kim fail hana fail ivan fail eli fail gus fail lina fail
kim 15 alice 6 dina 1 alice 25 kim 27 gus 4
kim fail alice fail dina fail alice fail kim pass gus fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021548-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")}
hana 29 kim 18 hana 22 ivan 16 eli 20 gus 18 lina 12
hana pass kim fail hana fail ivan fail eli fail gus fail lina fail
kim 15 alice 6 dina 1 alice 25 kim 27 gus 4
kim fail alice fail dina fail alice fail kim pass gus fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021548
qwen/qwen3.7-plus
awkweave-0021549
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
lina amber 87 hana grove 72 eli juniper 86 eli cobalt 37 hana grove 73 lina grove 0 kim juniper 71
AMBER GROVE JUNIPER COBALT GROVE GROVE JUNIPER
ivan birch 92 farah harbor 15 ivan birch 16 eli harbor 107 ivan birch 13 dina grove 67 gus delta 108
BIRCH HARBOR BIRCH HARBOR BIRCH GROVE DELTA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021549-p1
Transform the second column to uppercase letters and print only that column.
{print toupper($2)}
lina amber 87 hana grove 72 eli juniper 86 eli cobalt 37 hana grove 73 lina grove 0 kim juniper 71
AMBER GROVE JUNIPER COBALT GROVE GROVE JUNIPER
ivan birch 92 farah harbor 15 ivan birch 16 eli harbor 107 ivan birch 13 dina grove 67 gus delta 108
BIRCH HARBOR BIRCH HARBOR BIRCH GROVE DELTA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021549
qwen/qwen3.7-plus
awkweave-0021550
From column 1, print 3 characters starting at character 1.
{print substr($1,1,3)}
cobalt 1 ember 87 grove 86 delta 112 delta 53 indigo 102
cob emb gro del del ind
juniper 90 indigo 102 fable 78 juniper 72 cobalt 69 juniper 41 juniper 54
jun ind fab jun cob jun jun
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021550-p1
Extract and print the first three characters from the first column, starting at position 1.
{print substr($1,1,3)}
cobalt 1 ember 87 grove 86 delta 112 delta 53 indigo 102
cob emb gro del del ind
juniper 90 indigo 102 fable 78 juniper 72 cobalt 69 juniper 41 juniper 54
jun ind fab jun cob jun jun
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021550
qwen/qwen3.7-plus