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-0037611-p1
Count the total number of input records and print the result.
END{print NR}
farah 26 dina 103 farah 81 eli 27 farah 20 gus 25 lina 59
7
bruno 91 gus 105 farah 53 gus 24 kim 22 eli 108
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037611
qwen/qwen3.7-plus
awkweave-0037612
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
hana indigo 116 alice amber 92 alice indigo 52 gus birch 85 hana fable 36 gus harbor 74 ivan ember 76 ivan amber 101 gus birch 85 ivan ember 63 bruno amber 105
hana indigo 116 alice amber 92 alice indigo 52 gus birch 85 hana fable 36 gus harbor 74 ivan ember 76 ivan amber 101 ivan ember 63 bruno amber 105
alice cobalt 71 eli birch 114 gus cobalt 23 alice cobalt 71 lina delta 12 farah fable 27 dina indigo 69 gus fable 23
alice cobalt 71 eli birch 114 gus cobalt 23 lina delta 12 farah fable 27 dina indigo 69 gus fable 23
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037612-p1
Eliminate duplicate lines by keeping the first instance and maintaining the original sequence.
!seen[$0]++
hana indigo 116 alice amber 92 alice indigo 52 gus birch 85 hana fable 36 gus harbor 74 ivan ember 76 ivan amber 101 gus birch 85 ivan ember 63 bruno amber 105
hana indigo 116 alice amber 92 alice indigo 52 gus birch 85 hana fable 36 gus harbor 74 ivan ember 76 ivan amber 101 ivan ember 63 bruno amber 105
alice cobalt 71 eli birch 114 gus cobalt 23 alice cobalt 71 lina delta 12 farah fable 27 dina indigo 69 gus fable 23
alice cobalt 71 eli birch 114 gus cobalt 23 lina delta 12 farah fable 27 dina indigo 69 gus fable 23
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037612
qwen/qwen3.7-plus
awkweave-0037613
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
hana cobalt 78 chen ember 3 jules grove 102 gus fable 77 alice grove 99 kim birch 44
hana cobalt 78 chen ember 3 jules grove 102 gus fable 77 alice grove 99 kim birch 44
ivan ember 80 gus ember 69 farah cobalt 8 gus grove 84 hana birch 53 farah fable 103 jules birch 60 lina delta 11 hana harbor 61
ivan ember 80 gus ember 69 farah cobalt 8 hana birch 53 jules birch 60 lina delta 11
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037613-p1
Retain only the initial line for every unique value in column 1, ensuring input order is preserved.
!seen[$1]++
hana cobalt 78 chen ember 3 jules grove 102 gus fable 77 alice grove 99 kim birch 44
hana cobalt 78 chen ember 3 jules grove 102 gus fable 77 alice grove 99 kim birch 44
ivan ember 80 gus ember 69 farah cobalt 8 gus grove 84 hana birch 53 farah fable 103 jules birch 60 lina delta 11 hana harbor 61
ivan ember 80 gus ember 69 farah cobalt 8 hana birch 53 jules birch 60 lina delta 11
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037613
qwen/qwen3.7-plus
awkweave-0037614
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
eli 7 birch ivan 12 harbor chen 6 birch chen 9 juniper jules 2 juniper dina 19 birch eli 7 grove kim 12 cobalt alice 14 delta
eli 7 ivan 19 chen 25 chen 34 jules 36 dina 55 eli 62 kim 74 alice 88
bruno 18 harbor lina 10 fable bruno 20 birch alice 16 juniper bruno 3 harbor lina 16 grove eli 15 indigo jules 24 indigo ivan 24 ember lina 5 cobalt
bruno 18 lina 28 bruno 48 alice 64 bruno 67 lina 83 eli 98 jules 122 ivan 146 lina 151
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037614-p1
Output column 1 alongside the cumulative total of column 2, using a space as the delimiter.
{s+=$2;print $1,s}
eli 7 birch ivan 12 harbor chen 6 birch chen 9 juniper jules 2 juniper dina 19 birch eli 7 grove kim 12 cobalt alice 14 delta
eli 7 ivan 19 chen 25 chen 34 jules 36 dina 55 eli 62 kim 74 alice 88
bruno 18 harbor lina 10 fable bruno 20 birch alice 16 juniper bruno 3 harbor lina 16 grove eli 15 indigo jules 24 indigo ivan 24 ember lina 5 cobalt
bruno 18 lina 28 bruno 48 alice 64 bruno 67 lina 83 eli 98 jules 122 ivan 146 lina 151
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037614
qwen/qwen3.7-plus
awkweave-0037615
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
farah 27 16 cobalt gus 10 4 cobalt eli 12 6 harbor chen 12 11 birch dina 12 29 grove alice 25 18 cobalt gus 28 18 indigo hana 7 27 indigo gus 7 1 indigo lina 26 4 juniper
farah 43 gus 14 eli 18 chen 23 dina 41 alice 43 gus 46 hana 34 gus 8 lina 30
lina 2 27 fable alice 28 27 fable kim 3 24 indigo hana 2 11 indigo jules 18 11 fable chen 27 7 harbor gus 20 23 birch kim 22 28 birch kim 18 6 cobalt
lina 29 alice 55 kim 27 hana 13 jules 29 chen 34 gus 43 kim 50 kim 24
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037615-p1
Display field 1 followed by the combined total of fields 2 and 3 for each row.
{print $1,$2+$3}
farah 27 16 cobalt gus 10 4 cobalt eli 12 6 harbor chen 12 11 birch dina 12 29 grove alice 25 18 cobalt gus 28 18 indigo hana 7 27 indigo gus 7 1 indigo lina 26 4 juniper
farah 43 gus 14 eli 18 chen 23 dina 41 alice 43 gus 46 hana 34 gus 8 lina 30
lina 2 27 fable alice 28 27 fable kim 3 24 indigo hana 2 11 indigo jules 18 11 fable chen 27 7 harbor gus 20 23 birch kim 22 28 birch kim 18 6 cobalt
lina 29 alice 55 kim 27 hana 13 jules 29 chen 34 gus 43 kim 50 kim 24
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037615
qwen/qwen3.7-plus
awkweave-0037616
Print column 1 and pass when column 2 is at least 21; otherwise print fail.
{print $1,($2>=21?"pass":"fail")}
gus 3 eli 11 lina 7 hana 27 gus 2 dina 6 hana 11 chen 14
gus fail eli fail lina fail hana pass gus fail dina fail hana fail chen fail
farah 15 alice 6 kim 15 lina 25 ivan 28 jules 2 farah 21 hana 22
farah fail alice fail kim fail lina pass ivan pass jules fail farah pass hana pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037616-p1
Show column 1 with 'pass' if column 2 is 21 or higher; otherwise, show 'fail'.
{print $1,($2>=21?"pass":"fail")}
gus 3 eli 11 lina 7 hana 27 gus 2 dina 6 hana 11 chen 14
gus fail eli fail lina fail hana pass gus fail dina fail hana fail chen fail
farah 15 alice 6 kim 15 lina 25 ivan 28 jules 2 farah 21 hana 22
farah fail alice fail kim fail lina pass ivan pass jules fail farah pass hana pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037616
qwen/qwen3.7-plus
awkweave-0037617
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
dina indigo 92 kim amber 57 kim indigo 50 kim birch 73 ivan cobalt 67 eli ember 50 jules cobalt 55 lina harbor 69 chen delta 0
INDIGO AMBER INDIGO BIRCH COBALT EMBER COBALT HARBOR DELTA
jules ember 9 jules birch 97 farah harbor 39 jules birch 84 jules harbor 10 farah juniper 61 ivan juniper 63 alice cobalt 42 ivan birch 50 gus indigo 107
EMBER BIRCH HARBOR BIRCH HARBOR JUNIPER JUNIPER COBALT BIRCH INDIGO
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037617-p1
Transform column 2 to uppercase letters and output exclusively that column.
{print toupper($2)}
dina indigo 92 kim amber 57 kim indigo 50 kim birch 73 ivan cobalt 67 eli ember 50 jules cobalt 55 lina harbor 69 chen delta 0
INDIGO AMBER INDIGO BIRCH COBALT EMBER COBALT HARBOR DELTA
jules ember 9 jules birch 97 farah harbor 39 jules birch 84 jules harbor 10 farah juniper 61 ivan juniper 63 alice cobalt 42 ivan birch 50 gus indigo 107
EMBER BIRCH HARBOR BIRCH HARBOR JUNIPER JUNIPER COBALT BIRCH INDIGO
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037617
qwen/qwen3.7-plus
awkweave-0037618
From column 1, print 2 characters starting at character 2.
{print substr($1,2,2)}
birch 45 fable 55 indigo 49 delta 73 amber 64 grove 24
ir ab nd el mb ro
harbor 53 birch 39 birch 46 amber 44 amber 34 juniper 51 cobalt 10 juniper 100 harbor 26 birch 35
ar ir ir mb mb un ob un ar ir
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037618-p1
Extract and print a 2-character substring from column 1, beginning at the second character.
{print substr($1,2,2)}
birch 45 fable 55 indigo 49 delta 73 amber 64 grove 24
ir ab nd el mb ro
harbor 53 birch 39 birch 46 amber 44 amber 34 juniper 51 cobalt 10 juniper 100 harbor 26 birch 35
ar ir ir mb mb un ob un ar ir
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037618
qwen/qwen3.7-plus
awkweave-0037619
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
harbor_indigo 98 amber_juniper 99 ember_ember 106 amber_juniper 25 grove_ember 17 indigo_grove 84 juniper_indigo 99 cobalt_juniper 94 juniper_amber 80 fable_ember 111
harbor indigo amber juniper ember ember amber juniper grove ember indigo grove juniper indigo cobalt juniper juniper amber fable ember
harbor_cobalt 64 amber_amber 74 indigo_grove 110 indigo_ember 80 delta_harbor 106 amber_ember 1 birch_juniper 59 juniper_juniper 102 birch_birch 60
harbor cobalt amber amber indigo grove indigo ember delta harbor amber ember birch juniper juniper juniper birch birch
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037619-p1
Substitute all underscores in column 1 with spaces and display the modified values.
{gsub(/_/," ",$1);print $1}
harbor_indigo 98 amber_juniper 99 ember_ember 106 amber_juniper 25 grove_ember 17 indigo_grove 84 juniper_indigo 99 cobalt_juniper 94 juniper_amber 80 fable_ember 111
harbor indigo amber juniper ember ember amber juniper grove ember indigo grove juniper indigo cobalt juniper juniper amber fable ember
harbor_cobalt 64 amber_amber 74 indigo_grove 110 indigo_ember 80 delta_harbor 106 amber_ember 1 birch_juniper 59 juniper_juniper 102 birch_birch 60
harbor cobalt amber amber indigo grove indigo ember delta harbor amber ember birch juniper juniper juniper birch birch
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037619
qwen/qwen3.7-plus
awkweave-0037620
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)}
alice delta 76 active kim ember 36 ready gus grove 77 failed alice cobalt 55 pending jules harbor 80 paused kim cobalt 83 closed hana delta 100 pending ivan fable 94 closed farah harbor 58 closed
active 76 delta alice ready 36 ember kim failed 77 grove gus pending 55 cobalt alice paused 80 harbor jules closed 83 cobalt kim pending 100 delta hana closed 94 fable ivan closed 58 harbor farah
ivan ember 117 active eli birch 101 ready jules ember 27 active dina amber 24 active lina cobalt 87 active eli juniper 55 paused ivan delta 83 ready
active 117 ember ivan ready 101 birch eli active 27 ember jules active 24 amber dina active 87 cobalt lina paused 55 juniper eli ready 83 delta ivan
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037620-p1
Invert the sequence of fields for every line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
alice delta 76 active kim ember 36 ready gus grove 77 failed alice cobalt 55 pending jules harbor 80 paused kim cobalt 83 closed hana delta 100 pending ivan fable 94 closed farah harbor 58 closed
active 76 delta alice ready 36 ember kim failed 77 grove gus pending 55 cobalt alice paused 80 harbor jules closed 83 cobalt kim pending 100 delta hana closed 94 fable ivan closed 58 harbor farah
ivan ember 117 active eli birch 101 ready jules ember 27 active dina amber 24 active lina cobalt 87 active eli juniper 55 paused ivan delta 83 ready
active 117 ember ivan ready 101 birch eli active 27 ember jules active 24 amber dina active 87 cobalt lina paused 55 juniper eli ready 83 delta ivan
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037620
qwen/qwen3.7-plus
awkweave-0037621
Print the number of whitespace-separated fields on each line.
{print NF}
dina harbor 103 closed eli indigo 8 failed ivan indigo 53 active dina harbor 73 paused dina harbor 70 failed alice birch 33 ready eli birch 82 paused jules cobalt 42 ready eli ember 65 pending
4 4 4 4 4 4 4 4 4
farah fable 71 ready jules birch 100 closed kim amber 80 closed farah indigo 85 closed gus delta 41 active jules cobalt 90 paused gus juniper 20 active chen fable 46 failed chen delta 5 failed jules amber 46 ready
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037621-p1
Output the count of whitespace-delimited fields present on each line.
{print NF}
dina harbor 103 closed eli indigo 8 failed ivan indigo 53 active dina harbor 73 paused dina harbor 70 failed alice birch 33 ready eli birch 82 paused jules cobalt 42 ready eli ember 65 pending
4 4 4 4 4 4 4 4 4
farah fable 71 ready jules birch 100 closed kim amber 80 closed farah indigo 85 closed gus delta 41 active jules cobalt 90 paused gus juniper 20 active chen fable 46 failed chen delta 5 failed jules amber 46 ready
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037621
qwen/qwen3.7-plus
awkweave-0037622
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
eli alpha 28 eli gamma 82 alice beta 19 farah gamma 24 jules delta 99 bruno alpha 18 hana alpha 48 alice alpha 14 kim gamma 87 farah delta 77
alpha 4 gamma 3 beta 1 delta 2
dina beta 54 dina delta 61 alice gamma 115 alice beta 26 chen gamma 46 farah delta 43 dina beta 104 dina delta 79
beta 3 delta 3 gamma 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037622-p1
Tally records for each distinct value in column 2, printing the value and its count in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
eli alpha 28 eli gamma 82 alice beta 19 farah gamma 24 jules delta 99 bruno alpha 18 hana alpha 48 alice alpha 14 kim gamma 87 farah delta 77
alpha 4 gamma 3 beta 1 delta 2
dina beta 54 dina delta 61 alice gamma 115 alice beta 26 chen gamma 46 farah delta 43 dina beta 104 dina delta 79
beta 3 delta 3 gamma 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037622
qwen/qwen3.7-plus
awkweave-0037623
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
ivan alpha 13 dina alpha 30 kim alpha 21 chen gamma 1 dina beta 13 bruno alpha 1 ivan gamma 16
alpha 65 gamma 17 beta 13
lina gamma 18 jules alpha 21 gus beta 16 hana beta 3 ivan gamma 25 eli alpha 23 eli alpha 23
gamma 43 alpha 67 beta 19
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037623-p1
Calculate the sum of column 3 grouped by categories in column 2, displaying 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]]}
ivan alpha 13 dina alpha 30 kim alpha 21 chen gamma 1 dina beta 13 bruno alpha 1 ivan gamma 16
alpha 65 gamma 17 beta 13
lina gamma 18 jules alpha 21 gus beta 16 hana beta 3 ivan gamma 25 eli alpha 23 eli alpha 23
gamma 43 alpha 67 beta 19
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037623
qwen/qwen3.7-plus
awkweave-0037624
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 delta 2 alpha delta 25 alpha ember 17 delta delta 44 beta delta 113 gamma grove 98 gamma indigo 109 alpha amber 89 gamma fable 106 delta grove 41
gamma 4 alpha 3 delta 2
gamma grove 95 alpha birch 94 alpha juniper 83 gamma amber 79 alpha ember 37 gamma juniper 100 alpha harbor 29 gamma indigo 22 alpha indigo 88 gamma birch 25
gamma 5 alpha 5
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037624-p1
List each unique value from the first column along with its frequency, ordered by when the value first appears.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma delta 2 alpha delta 25 alpha ember 17 delta delta 44 beta delta 113 gamma grove 98 gamma indigo 109 alpha amber 89 gamma fable 106 delta grove 41
gamma 4 alpha 3 delta 2
gamma grove 95 alpha birch 94 alpha juniper 83 gamma amber 79 alpha ember 37 gamma juniper 100 alpha harbor 29 gamma indigo 22 alpha indigo 88 gamma birch 25
gamma 5 alpha 5
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037624
qwen/qwen3.7-plus
awkweave-0037625
The first row is a header. Print the score column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
display_name state score region r001 chen 25 paused r002 hana 29 active r003 hana 29 paused r004 bruno 14 ready r005 hana 30 closed r006 gus 7 closed r007 dina 29 active
25 29 29 14 30 7 29
display_name state score region r001 alice 13 paused r002 alice 11 paused r003 ivan 19 active r004 gus 7 failed r005 bruno 20 ready r006 farah 26 paused r007 hana 21 active r008 eli 12 closed r009 gus 3 ready r010 hana 1 failed
13 11 19 7 20 26 21 12 3 1
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037625-p1
Treat the initial row as a header and output the values from the score column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
display_name state score region r001 chen 25 paused r002 hana 29 active r003 hana 29 paused r004 bruno 14 ready r005 hana 30 closed r006 gus 7 closed r007 dina 29 active
25 29 29 14 30 7 29
display_name state score region r001 alice 13 paused r002 alice 11 paused r003 ivan 19 active r004 gus 7 failed r005 bruno 20 ready r006 farah 26 paused r007 hana 21 active r008 eli 12 closed r009 gus 3 ready r010 hana 1 failed
13 11 19 7 20 26 21 12 3 1
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037625
qwen/qwen3.7-plus
awkweave-0037626
The first row is a header. Print display_name for data rows whose score is greater than 18.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]}
record_id display_name score state r001 lina 6 ready r002 eli 23 pending r003 lina 29 paused r004 kim 19 closed r005 hana 8 active r006 hana 20 active r007 gus 21 failed r008 ivan 29 ready r009 ivan 2 ready r010 jules 10 active
eli lina kim hana gus ivan
record_id display_name score state r001 hana 3 active r002 bruno 7 ready r003 farah 29 paused r004 dina 17 paused r005 lina 21 ready r006 kim 28 paused r007 alice 14 active r008 bruno 17 ready r009 bruno 12 active
farah lina kim
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037626-p1
Ignoring the header row, output the display_name field for any record where the score is strictly greater than 18.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]}
record_id display_name score state r001 lina 6 ready r002 eli 23 pending r003 lina 29 paused r004 kim 19 closed r005 hana 8 active r006 hana 20 active r007 gus 21 failed r008 ivan 29 ready r009 ivan 2 ready r010 jules 10 active
eli lina kim hana gus ivan
record_id display_name score state r001 hana 3 active r002 bruno 7 ready r003 farah 29 paused r004 dina 17 paused r005 lina 21 ready r006 kim 28 paused r007 alice 14 active r008 bruno 17 ready r009 bruno 12 active
farah lina kim
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037626
qwen/qwen3.7-plus
awkweave-0037627
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
eli 12 pending hana 29 active chen 5 failed eli 22 active farah 29 paused kim 4 ready hana 19 active chen 5 pending hana 22 ready eli 10 closed
pending active failed active paused ready active pending ready closed
alice 8 paused chen 24 failed eli 24 paused kim 27 pending chen 12 paused eli 14 pending
paused failed paused pending paused pending
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037627-p1
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
eli 12 pending hana 29 active chen 5 failed eli 22 active farah 29 paused kim 4 ready hana 19 active chen 5 pending hana 22 ready eli 10 closed
pending active failed active paused ready active pending ready closed
alice 8 paused chen 24 failed eli 24 paused kim 27 pending chen 12 paused eli 14 pending
paused failed paused pending paused pending
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0037627
qwen/qwen3.7-plus
awkweave-0037628
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 12.
BEGIN{FS=OFS=","}$2>12{print $1}
ivan,24,active dina,9,active dina,5,closed lina,29,pending eli,12,pending jules,11,pending eli,24,ready bruno,3,active
ivan lina eli
ivan,27,paused farah,17,active chen,11,closed jules,5,paused chen,9,active bruno,28,active gus,21,failed kim,20,ready
ivan farah bruno gus kim
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037628-p1
For simple CSV input without quoted commas, print the first field if the second field is greater than 12.
BEGIN{FS=OFS=","}$2>12{print $1}
ivan,24,active dina,9,active dina,5,closed lina,29,pending eli,12,pending jules,11,pending eli,24,ready bruno,3,active
ivan lina eli
ivan,27,paused farah,17,active chen,11,closed jules,5,paused chen,9,active bruno,28,active gus,21,failed kim,20,ready
ivan farah bruno gus kim
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037628
qwen/qwen3.7-plus
awkweave-0037629
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
chen cobalt 55 hana juniper 59 hana juniper 21 chen cobalt 73 alice grove 52 gus ember 69 farah amber 112 lina indigo 61
chen cobalt 55 hana juniper 59 hana juniper 21 chen cobalt 73 alice grove 52 gus ember 69 farah amber 112 lina indigo 61
eli harbor 6 gus grove 5 bruno amber 112 jules delta 0 chen fable 39 dina grove 37 lina ember 118 eli harbor 48 gus harbor 72
eli harbor 6 gus grove 5 bruno amber 112 jules delta 0 chen fable 39 dina grove 37 lina ember 118 eli harbor 48 gus harbor 72
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037629-p1
Remove leading and trailing whitespace from each line and replace sequences of internal whitespace with a single space.
{$1=$1;print}
chen cobalt 55 hana juniper 59 hana juniper 21 chen cobalt 73 alice grove 52 gus ember 69 farah amber 112 lina indigo 61
chen cobalt 55 hana juniper 59 hana juniper 21 chen cobalt 73 alice grove 52 gus ember 69 farah amber 112 lina indigo 61
eli harbor 6 gus grove 5 bruno amber 112 jules delta 0 chen fable 39 dina grove 37 lina ember 118 eli harbor 48 gus harbor 72
eli harbor 6 gus grove 5 bruno amber 112 jules delta 0 chen fable 39 dina grove 37 lina ember 118 eli harbor 48 gus harbor 72
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037629
qwen/qwen3.7-plus
awkweave-0037630
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
kim cobalt 118 ready eli juniper 91 closed bruno juniper 57 paused hana birch 3 paused dina birch 105 ready alice grove 78 ready alice juniper 103 pending kim juniper 31 active
alice juniper 103 pending
lina indigo 105 failed jules grove 55 ready ivan amber 40 paused alice grove 18 closed farah fable 78 paused alice birch 48 ready ivan delta 102 failed
lina indigo 105 failed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037630-p1
Identify and output the longest line in the input; if multiple lines share the maximum length, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
kim cobalt 118 ready eli juniper 91 closed bruno juniper 57 paused hana birch 3 paused dina birch 105 ready alice grove 78 ready alice juniper 103 pending kim juniper 31 active
alice juniper 103 pending
lina indigo 105 failed jules grove 55 ready ivan amber 40 paused alice grove 18 closed farah fable 78 paused alice birch 48 ready ivan delta 102 failed
lina indigo 105 failed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037630
qwen/qwen3.7-plus
awkweave-0037631
Print every 3rd line starting at line 1 (then line 4, and so on).
NR%3==1
kim 53 eli 46 dina 3 jules 100 ivan 30 alice 96 gus 92 lina 110 alice 27 alice 18
kim 53 jules 100 gus 92 alice 18
hana 9 ivan 34 ivan 42 dina 22 jules 92 jules 23 hana 92
hana 9 dina 22 hana 92
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037631-p1
Output every third line of the input, beginning with line 1 (i.e., lines 1, 4, 7, ...).
NR%3==1
kim 53 eli 46 dina 3 jules 100 ivan 30 alice 96 gus 92 lina 110 alice 27 alice 18
kim 53 jules 100 gus 92 alice 18
hana 9 ivan 34 ivan 42 dina 22 jules 92 jules 23 hana 92
hana 9 dina 22 hana 92
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037631
qwen/qwen3.7-plus
awkweave-0037632
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha ember 79 alpha birch 52 gamma delta 2 alpha fable 18 beta harbor 36 beta fable 33 gamma cobalt 67 beta cobalt 97
6
gamma cobalt 47 beta fable 115 gamma amber 82 gamma amber 36 beta indigo 79 delta harbor 77 gamma fable 81
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037632-p1
Calculate the number of unique entries in the second column and print only that total count.
{if(!seen[$2]++)n++}END{print n+0}
alpha ember 79 alpha birch 52 gamma delta 2 alpha fable 18 beta harbor 36 beta fable 33 gamma cobalt 67 beta cobalt 97
6
gamma cobalt 47 beta fable 115 gamma amber 82 gamma amber 36 beta indigo 79 delta harbor 77 gamma fable 81
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037632
qwen/qwen3.7-plus
awkweave-0037633
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}
ivan 14 0 dina 13 17 lina 28 14 kim 13 18 chen 20 26 eli 14 5 gus 21 15
dina 0.76 lina 2.00 kim 0.72 chen 0.77 eli 2.80 gus 1.40
chen 28 0 hana 7 19 chen 18 14 gus 16 25 eli 18 11 hana 23 13 kim 26 19 bruno 14 9 eli 15 10
hana 0.37 chen 1.29 gus 0.64 eli 1.64 hana 1.77 kim 1.37 bruno 1.56 eli 1.50
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037633-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}
ivan 14 0 dina 13 17 lina 28 14 kim 13 18 chen 20 26 eli 14 5 gus 21 15
dina 0.76 lina 2.00 kim 0.72 chen 0.77 eli 2.80 gus 1.40
chen 28 0 hana 7 19 chen 18 14 gus 16 25 eli 18 11 hana 23 13 kim 26 19 bruno 14 9 eli 15 10
hana 0.37 chen 1.29 gus 0.64 eli 1.64 hana 1.77 kim 1.37 bruno 1.56 eli 1.50
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037633
qwen/qwen3.7-plus
awkweave-0037634
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
chen indigo 25 gus amber 29 gus cobalt 29 dina harbor 9 lina birch 15 eli juniper 17
gus amber 29 gus cobalt 29 chen indigo 25
gus delta 9 chen cobalt 30 eli indigo 15 hana delta 23 hana delta 9 kim fable 20 bruno fable 21
chen cobalt 30 hana delta 23 bruno fable 21
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037634-p1
Output the top three 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]}
chen indigo 25 gus amber 29 gus cobalt 29 dina harbor 9 lina birch 15 eli juniper 17
gus amber 29 gus cobalt 29 chen indigo 25
gus delta 9 chen cobalt 30 eli indigo 15 hana delta 23 hana delta 9 kim fable 20 bruno fable 21
chen cobalt 30 hana delta 23 bruno fable 21
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037634
qwen/qwen3.7-plus
awkweave-0037635
For each line, output fields 5 and 1, in that order.
{print $5, $1}
birch 97 118 failed paused failed grove 111 25 failed failed active ember 21 55 failed active active delta 106 74 pending pending paused birch 104 78 paused closed closed delta 45 68 failed pending pending indigo 17 10 ready failed paused ember 36 65 closed active closed birch 48 86 pending closed ready
paused birch failed grove active ember pending delta closed birch pending delta failed indigo active ember closed birch
indigo 76 16 ready active ready fable 112 115 closed paused active birch 42 114 failed paused closed juniper 19 76 failed ready paused grove 42 45 ready paused paused amber 46 37 active ready ready delta 56 76 ready failed active
active indigo paused fable paused birch ready juniper paused grove ready amber failed delta
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037635-p1
For every line, print the fifth field followed by the first field.
{print $5, $1}
birch 97 118 failed paused failed grove 111 25 failed failed active ember 21 55 failed active active delta 106 74 pending pending paused birch 104 78 paused closed closed delta 45 68 failed pending pending indigo 17 10 ready failed paused ember 36 65 closed active closed birch 48 86 pending closed ready
paused birch failed grove active ember pending delta closed birch pending delta failed indigo active ember closed birch
indigo 76 16 ready active ready fable 112 115 closed paused active birch 42 114 failed paused closed juniper 19 76 failed ready paused grove 42 45 ready paused paused amber 46 37 active ready ready delta 56 76 ready failed active
active indigo paused fable paused birch ready juniper paused grove ready amber failed delta
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037635
qwen/qwen3.7-plus
awkweave-0037636
Print the last field of every input line.
{print $NF}
ready 26 ivan active 112 hana closed 96 jules closed 33 farah ready 115 alice pending 79 jules paused 32 chen
ivan hana jules farah alice jules chen
active 24 kim pending 84 dina active 92 jules closed 49 chen paused 1 hana closed 36 hana pending 3 farah
kim dina jules chen hana hana farah
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037636-p1
Output the final field from each input line.
{print $NF}
ready 26 ivan active 112 hana closed 96 jules closed 33 farah ready 115 alice pending 79 jules paused 32 chen
ivan hana jules farah alice jules chen
active 24 kim pending 84 dina active 92 jules closed 49 chen paused 1 hana closed 36 hana pending 3 farah
kim dina jules chen hana hana farah
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037636
qwen/qwen3.7-plus
awkweave-0037637
Print the complete records where column 2 is at most 25.
$2 <= 25
ready 102 delta ready paused failed 55 grove active closed paused 50 juniper pending active closed 8 juniper active paused active 103 delta closed failed ready 58 indigo paused failed
closed 8 juniper active paused
ready 31 cobalt failed closed pending 110 harbor failed closed closed 109 delta paused pending closed 100 cobalt closed pending failed 4 harbor active pending active 20 delta paused failed
failed 4 harbor active pending active 20 delta paused failed
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037637-p1
Display full records where the second column is less than or equal to 25.
$2 <= 25
ready 102 delta ready paused failed 55 grove active closed paused 50 juniper pending active closed 8 juniper active paused active 103 delta closed failed ready 58 indigo paused failed
closed 8 juniper active paused
ready 31 cobalt failed closed pending 110 harbor failed closed closed 109 delta paused pending closed 100 cobalt closed pending failed 4 harbor active pending active 20 delta paused failed
failed 4 harbor active pending active 20 delta paused failed
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037637
qwen/qwen3.7-plus
awkweave-0037638
Show whole lines whose 2nd field is between 5 and 28, inclusive.
$2 >= 5 && $2 <= 28
jules 5 ember closed alice 6 harbor ready alice 4 cobalt ready gus 17 harbor closed farah 19 birch failed lina 22 cobalt active gus 21 amber ready jules 24 harbor ready eli 5 ember active jules 23 birch pending
jules 5 ember closed alice 6 harbor ready gus 17 harbor closed farah 19 birch failed lina 22 cobalt active gus 21 amber ready jules 24 harbor ready eli 5 ember active jules 23 birch pending
bruno 22 cobalt active kim 2 birch ready chen 17 birch closed bruno 17 amber closed kim 28 grove closed chen 17 indigo pending kim 4 indigo ready
bruno 22 cobalt active chen 17 birch closed bruno 17 amber closed kim 28 grove closed chen 17 indigo pending
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037638-p1
Show entire lines where the second field falls within the inclusive range of 5 to 28.
$2 >= 5 && $2 <= 28
jules 5 ember closed alice 6 harbor ready alice 4 cobalt ready gus 17 harbor closed farah 19 birch failed lina 22 cobalt active gus 21 amber ready jules 24 harbor ready eli 5 ember active jules 23 birch pending
jules 5 ember closed alice 6 harbor ready gus 17 harbor closed farah 19 birch failed lina 22 cobalt active gus 21 amber ready jules 24 harbor ready eli 5 ember active jules 23 birch pending
bruno 22 cobalt active kim 2 birch ready chen 17 birch closed bruno 17 amber closed kim 28 grove closed chen 17 indigo pending kim 4 indigo ready
bruno 22 cobalt active chen 17 birch closed bruno 17 amber closed kim 28 grove closed chen 17 indigo pending
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037638
qwen/qwen3.7-plus
awkweave-0037639
Print column 1 only for rows where column 2 is exactly closed.
$2 == "closed"{print $1}
jules paused harbor 16 alice active grove 83 ivan active fable 107 chen pending grove 104 bruno closed fable 68 jules paused juniper 111 lina paused delta 105 dina ready grove 86 gus failed birch 21
bruno
dina active grove 70 jules closed cobalt 92 ivan ready ember 53 hana pending delta 108 farah ready birch 11 bruno closed indigo 99 lina ready amber 12
jules bruno
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037639-p1
Output only the first column for rows where the second column is exactly 'closed'.
$2 == "closed"{print $1}
jules paused harbor 16 alice active grove 83 ivan active fable 107 chen pending grove 104 bruno closed fable 68 jules paused juniper 111 lina paused delta 105 dina ready grove 86 gus failed birch 21
bruno
dina active grove 70 jules closed cobalt 92 ivan ready ember 53 hana pending delta 108 farah ready birch 11 bruno closed indigo 99 lina ready amber 12
jules bruno
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037639
qwen/qwen3.7-plus
awkweave-0037640
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
grove INFO 110 juniper WARN 116 amber WARN 91 harbor INFO 10 fable ERROR 29 delta ERROR 17 birch ERROR 88
fable ERROR 29 delta ERROR 17 birch ERROR 88
amber DEBUG 116 delta WARN 2 grove ERROR 27 cobalt DEBUG 30 birch WARN 72 grove ERROR 37 delta DEBUG 118 cobalt DEBUG 3
grove ERROR 27 grove ERROR 37
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037640-p1
Print all fields for lines where the second field starts with 'ERROR'.
$2 ~ /^ERROR/
grove INFO 110 juniper WARN 116 amber WARN 91 harbor INFO 10 fable ERROR 29 delta ERROR 17 birch ERROR 88
fable ERROR 29 delta ERROR 17 birch ERROR 88
amber DEBUG 116 delta WARN 2 grove ERROR 27 cobalt DEBUG 30 birch WARN 72 grove ERROR 37 delta DEBUG 118 cobalt DEBUG 3
grove ERROR 27 grove ERROR 37
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037640
qwen/qwen3.7-plus
awkweave-0037641
Print every line except those containing the exact text delta.
$0 !~ /delta/
indigo 55 active delta 113 ready birch 67 active cobalt 102 failed ember 29 active grove 91 paused juniper 75 active birch 46 failed delta 39 ready amber 26 ready delta 999 active
indigo 55 active birch 67 active cobalt 102 failed ember 29 active grove 91 paused juniper 75 active birch 46 failed amber 26 ready
ember 67 failed delta 31 ready indigo 66 closed birch 55 closed grove 94 failed juniper 34 closed fable 4 closed ember 7 closed harbor 18 pending fable 93 failed delta 999 active
ember 67 failed indigo 66 closed birch 55 closed grove 94 failed juniper 34 closed fable 4 closed ember 7 closed harbor 18 pending fable 93 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037641-p1
Print every line that does not contain the exact string 'delta'.
$0 !~ /delta/
indigo 55 active delta 113 ready birch 67 active cobalt 102 failed ember 29 active grove 91 paused juniper 75 active birch 46 failed delta 39 ready amber 26 ready delta 999 active
indigo 55 active birch 67 active cobalt 102 failed ember 29 active grove 91 paused juniper 75 active birch 46 failed amber 26 ready
ember 67 failed delta 31 ready indigo 66 closed birch 55 closed grove 94 failed juniper 34 closed fable 4 closed ember 7 closed harbor 18 pending fable 93 failed delta 999 active
ember 67 failed indigo 66 closed birch 55 closed grove 94 failed juniper 34 closed fable 4 closed ember 7 closed harbor 18 pending fable 93 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037641
qwen/qwen3.7-plus
awkweave-0037642
Print lines 3 through 6, including both endpoints.
NR >= 3 && NR <= 6
eli juniper 36 alice cobalt 35 jules ember 75 ivan indigo 13 gus harbor 52 dina juniper 64
jules ember 75 ivan indigo 13 gus harbor 52 dina juniper 64
dina grove 20 bruno juniper 67 gus fable 34 lina cobalt 67 gus ember 101 jules birch 30 alice amber 115 alice fable 113 bruno harbor 35
gus fable 34 lina cobalt 67 gus ember 101 jules birch 30
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037642-p1
Output lines 3 through 6, inclusive.
NR >= 3 && NR <= 6
eli juniper 36 alice cobalt 35 jules ember 75 ivan indigo 13 gus harbor 52 dina juniper 64
jules ember 75 ivan indigo 13 gus harbor 52 dina juniper 64
dina grove 20 bruno juniper 67 gus fable 34 lina cobalt 67 gus ember 101 jules birch 30 alice amber 115 alice fable 113 bruno harbor 35
gus fable 34 lina cobalt 67 gus ember 101 jules birch 30
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037642
qwen/qwen3.7-plus
awkweave-0037643
Output only the first 3 records.
NR <= 3
dina 26 delta alice 59 juniper lina 111 juniper chen 42 indigo gus 70 juniper farah 24 indigo eli 53 delta dina 83 birch jules 75 fable
dina 26 delta alice 59 juniper lina 111 juniper
lina 32 harbor gus 60 amber dina 61 fable gus 67 cobalt hana 23 ember farah 54 amber alice 49 birch ivan 112 grove alice 78 amber chen 68 fable
lina 32 harbor gus 60 amber dina 61 fable
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037643-p1
Display only the first 3 records.
NR <= 3
dina 26 delta alice 59 juniper lina 111 juniper chen 42 indigo gus 70 juniper farah 24 indigo eli 53 delta dina 83 birch jules 75 fable
dina 26 delta alice 59 juniper lina 111 juniper
lina 32 harbor gus 60 amber dina 61 fable gus 67 cobalt hana 23 ember farah 54 amber alice 49 birch ivan 112 grove alice 78 amber chen 68 fable
lina 32 harbor gus 60 amber dina 61 fable
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037643
qwen/qwen3.7-plus
awkweave-0037644
Skip the first line and print every remaining line unchanged.
NR > 1
gus 54 indigo kim 60 cobalt jules 58 fable kim 58 ember chen 33 grove hana 29 indigo kim 32 grove
kim 60 cobalt jules 58 fable kim 58 ember chen 33 grove hana 29 indigo kim 32 grove
jules 95 cobalt alice 111 ember bruno 48 delta jules 30 grove bruno 104 grove lina 21 grove chen 56 delta ivan 100 delta jules 48 fable
alice 111 ember bruno 48 delta jules 30 grove bruno 104 grove lina 21 grove chen 56 delta ivan 100 delta jules 48 fable
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037644-p1
Ignore the first line and print all subsequent lines as they are.
NR > 1
gus 54 indigo kim 60 cobalt jules 58 fable kim 58 ember chen 33 grove hana 29 indigo kim 32 grove
kim 60 cobalt jules 58 fable kim 58 ember chen 33 grove hana 29 indigo kim 32 grove
jules 95 cobalt alice 111 ember bruno 48 delta jules 30 grove bruno 104 grove lina 21 grove chen 56 delta ivan 100 delta jules 48 fable
alice 111 ember bruno 48 delta jules 30 grove bruno 104 grove lina 21 grove chen 56 delta ivan 100 delta jules 48 fable
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037644
qwen/qwen3.7-plus
awkweave-0037645
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
bruno failed 115 eli pending 43 eli active 2 bruno pending 64 alice failed 66 kim paused 103 eli pending 74 chen paused 103
1
hana ready 92 dina pending 23 gus active 111 eli ready 42 lina failed 67 eli closed 106 dina pending 111 dina closed 44
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037645-p1
Count the number of records with 'active' in the second column; output 0 if none exist.
$2 == "active"{n++}END{print n+0}
bruno failed 115 eli pending 43 eli active 2 bruno pending 64 alice failed 66 kim paused 103 eli pending 74 chen paused 103
1
hana ready 92 dina pending 23 gus active 111 eli ready 42 lina failed 67 eli closed 106 dina pending 111 dina closed 44
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037645
qwen/qwen3.7-plus
awkweave-0037646
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
eli indigo 20 chen juniper 22 ivan harbor 24 bruno amber 25 eli juniper 6 ivan delta 7
104
alice ember 22 chen amber 5 hana birch 13 kim grove 13 jules fable 12 eli cobalt 30 alice fable 12 lina indigo 16 dina amber 21 chen birch 27
171
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037646-p1
Compute and print the sum of integer values in the third column.
{s+=$3}END{print s+0}
eli indigo 20 chen juniper 22 ivan harbor 24 bruno amber 25 eli juniper 6 ivan delta 7
104
alice ember 22 chen amber 5 hana birch 13 kim grove 13 jules fable 12 eli cobalt 30 alice fable 12 lina indigo 16 dina amber 21 chen birch 27
171
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037646
qwen/qwen3.7-plus
awkweave-0037647
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
kim indigo 28 eli amber 10 farah delta 20 eli grove 23 chen juniper 7 lina fable 21
18.17
bruno birch 5 farah amber 26 chen indigo 22 lina cobalt 23 ivan juniper 28 dina ember 4 alice birch 27 chen cobalt 3 eli cobalt 22
17.78
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037647-p1
Print the average of the third column, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
kim indigo 28 eli amber 10 farah delta 20 eli grove 23 chen juniper 7 lina fable 21
18.17
bruno birch 5 farah amber 26 chen indigo 22 lina cobalt 23 ivan juniper 28 dina ember 4 alice birch 27 chen cobalt 3 eli cobalt 22
17.78
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037647
qwen/qwen3.7-plus
awkweave-0037648
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
6 jules birch 27 gus fable 9 jules indigo 1 jules ember 18 lina fable 13 lina amber
1
27 hana harbor 30 kim indigo 30 hana juniper 18 eli harbor 21 bruno grove 11 gus juniper 27 alice amber 11 eli delta
11
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037648-p1
Output the minimum number found in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
6 jules birch 27 gus fable 9 jules indigo 1 jules ember 18 lina fable 13 lina amber
1
27 hana harbor 30 kim indigo 30 hana juniper 18 eli harbor 21 bruno grove 11 gus juniper 27 alice amber 11 eli delta
11
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037648
qwen/qwen3.7-plus
awkweave-0037649
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
27 juniper ivan 29 grove gus 6 delta lina 17 juniper gus 2 indigo kim 1 indigo ivan 27 grove chen 28 amber dina
29
14 grove kim 13 juniper gus 22 birch eli 20 grove kim 30 grove bruno 23 delta dina 29 harbor lina 18 amber kim 6 amber eli
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037649-p1
Output the maximum number found in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
27 juniper ivan 29 grove gus 6 delta lina 17 juniper gus 2 indigo kim 1 indigo ivan 27 grove chen 28 amber dina
29
14 grove kim 13 juniper gus 22 birch eli 20 grove kim 30 grove bruno 23 delta dina 29 harbor lina 18 amber kim 6 amber eli
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037649
qwen/qwen3.7-plus
awkweave-0037650
Count all input records and print the total.
END{print NR}
jules 85 eli 72 jules 74 dina 18 gus 1 bruno 112 kim 31 hana 75 dina 35
9
farah 120 gus 118 kim 99 kim 38 bruno 104 gus 10 hana 81 bruno 49 lina 82 ivan 43
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037650-p1
Calculate and display the total number of input records.
END{print NR}
jules 85 eli 72 jules 74 dina 18 gus 1 bruno 112 kim 31 hana 75 dina 35
9
farah 120 gus 118 kim 99 kim 38 bruno 104 gus 10 hana 81 bruno 49 lina 82 ivan 43
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037650
qwen/qwen3.7-plus
awkweave-0037651
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
eli cobalt 27 dina amber 45 dina indigo 15 dina cobalt 35 gus indigo 88 alice amber 41 chen indigo 54 dina amber 45
eli cobalt 27 dina amber 45 dina indigo 15 dina cobalt 35 gus indigo 88 alice amber 41 chen indigo 54
dina harbor 94 farah amber 100 gus harbor 2 chen birch 10 kim juniper 16 gus indigo 117 eli fable 1 kim juniper 16 ivan delta 17 bruno amber 115
dina harbor 94 farah amber 100 gus harbor 2 chen birch 10 kim juniper 16 gus indigo 117 eli fable 1 ivan delta 17 bruno amber 115
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037651-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
eli cobalt 27 dina amber 45 dina indigo 15 dina cobalt 35 gus indigo 88 alice amber 41 chen indigo 54 dina amber 45
eli cobalt 27 dina amber 45 dina indigo 15 dina cobalt 35 gus indigo 88 alice amber 41 chen indigo 54
dina harbor 94 farah amber 100 gus harbor 2 chen birch 10 kim juniper 16 gus indigo 117 eli fable 1 kim juniper 16 ivan delta 17 bruno amber 115
dina harbor 94 farah amber 100 gus harbor 2 chen birch 10 kim juniper 16 gus indigo 117 eli fable 1 ivan delta 17 bruno amber 115
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037651
qwen/qwen3.7-plus
awkweave-0037652
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
farah indigo 48 dina delta 14 kim juniper 78 bruno delta 19 chen fable 34 hana delta 37 eli delta 67
farah indigo 48 dina delta 14 kim juniper 78 bruno delta 19 chen fable 34 hana delta 37 eli delta 67
hana amber 31 dina delta 22 dina indigo 116 jules juniper 31 alice grove 38 hana harbor 22 bruno indigo 99
hana amber 31 dina delta 22 dina indigo 116 alice grove 38 bruno indigo 99
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037652-p1
Retain only the initial line for every unique value in the third column, keeping the original order.
!seen[$3]++
farah indigo 48 dina delta 14 kim juniper 78 bruno delta 19 chen fable 34 hana delta 37 eli delta 67
farah indigo 48 dina delta 14 kim juniper 78 bruno delta 19 chen fable 34 hana delta 37 eli delta 67
hana amber 31 dina delta 22 dina indigo 116 jules juniper 31 alice grove 38 hana harbor 22 bruno indigo 99
hana amber 31 dina delta 22 dina indigo 116 alice grove 38 bruno indigo 99
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037652
qwen/qwen3.7-plus
awkweave-0037653
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
bruno 5 juniper eli 10 amber farah 12 juniper ivan 25 birch eli 5 juniper lina 26 juniper hana 28 grove jules 5 delta bruno 7 juniper
bruno 5 eli 15 farah 27 ivan 52 eli 57 lina 83 hana 111 jules 116 bruno 123
alice 18 grove gus 23 harbor alice 26 delta chen 27 grove gus 12 amber chen 10 indigo jules 22 harbor chen 17 birch jules 17 amber
alice 18 gus 41 alice 67 chen 94 gus 106 chen 116 jules 138 chen 155 jules 172
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037653-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}
bruno 5 juniper eli 10 amber farah 12 juniper ivan 25 birch eli 5 juniper lina 26 juniper hana 28 grove jules 5 delta bruno 7 juniper
bruno 5 eli 15 farah 27 ivan 52 eli 57 lina 83 hana 111 jules 116 bruno 123
alice 18 grove gus 23 harbor alice 26 delta chen 27 grove gus 12 amber chen 10 indigo jules 22 harbor chen 17 birch jules 17 amber
alice 18 gus 41 alice 67 chen 94 gus 106 chen 116 jules 138 chen 155 jules 172
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037653
qwen/qwen3.7-plus
awkweave-0037654
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
dina 23 17 harbor farah 23 15 delta farah 19 14 ember jules 11 8 ember gus 17 15 grove lina 21 23 ember lina 8 15 grove
dina 40 farah 38 farah 33 jules 19 gus 32 lina 44 lina 23
dina 4 19 indigo jules 30 24 ember bruno 5 16 cobalt jules 12 12 cobalt gus 12 17 fable gus 4 21 birch
dina 23 jules 54 bruno 21 jules 24 gus 29 gus 25
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037654-p1
Print the first field followed by the sum of the second and third fields for each row.
{print $1,$2+$3}
dina 23 17 harbor farah 23 15 delta farah 19 14 ember jules 11 8 ember gus 17 15 grove lina 21 23 ember lina 8 15 grove
dina 40 farah 38 farah 33 jules 19 gus 32 lina 44 lina 23
dina 4 19 indigo jules 30 24 ember bruno 5 16 cobalt jules 12 12 cobalt gus 12 17 fable gus 4 21 birch
dina 23 jules 54 bruno 21 jules 24 gus 29 gus 25
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037654
qwen/qwen3.7-plus
awkweave-0037655
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
chen 22 farah 29 dina 19 eli 8 hana 20 chen 11
chen fail farah pass dina fail eli fail hana fail chen fail
farah 1 lina 9 jules 9 kim 30 kim 28 chen 24 farah 12 alice 9 farah 13
farah fail lina fail jules fail kim pass kim pass chen fail farah fail alice fail farah fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037655-p1
Display the first column along with 'pass' if the second column is 25 or greater, otherwise display 'fail'.
{print $1,($2>=25?"pass":"fail")}
chen 22 farah 29 dina 19 eli 8 hana 20 chen 11
chen fail farah pass dina fail eli fail hana fail chen fail
farah 1 lina 9 jules 9 kim 30 kim 28 chen 24 farah 12 alice 9 farah 13
farah fail lina fail jules fail kim pass kim pass chen fail farah fail alice fail farah fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037655
qwen/qwen3.7-plus
awkweave-0037656
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
lina cobalt 41 dina cobalt 75 gus grove 97 hana grove 101 farah delta 58 lina birch 31 hana juniper 61 chen fable 51
LINA DINA GUS HANA FARAH LINA HANA CHEN
eli indigo 12 ivan fable 109 alice juniper 58 gus harbor 81 dina amber 62 hana delta 109 jules ember 114
ELI IVAN ALICE GUS DINA HANA JULES
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037656-p1
Transform the first column to uppercase and output only that column.
{print toupper($1)}
lina cobalt 41 dina cobalt 75 gus grove 97 hana grove 101 farah delta 58 lina birch 31 hana juniper 61 chen fable 51
LINA DINA GUS HANA FARAH LINA HANA CHEN
eli indigo 12 ivan fable 109 alice juniper 58 gus harbor 81 dina amber 62 hana delta 109 jules ember 114
ELI IVAN ALICE GUS DINA HANA JULES
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037656
qwen/qwen3.7-plus
awkweave-0037657
From column 1, print 3 characters starting at character 3.
{print substr($1,3,3)}
indigo 31 delta 81 harbor 83 delta 120 juniper 20 delta 1 indigo 3 juniper 51
dig lta rbo lta nip lta dig nip
harbor 31 amber 69 amber 85 ember 6 cobalt 89 ember 60 delta 16 fable 62 juniper 120 birch 62
rbo ber ber ber bal ber lta ble nip rch
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037657-p1
Extract and print a 3-character substring from the first column, starting at position 3.
{print substr($1,3,3)}
indigo 31 delta 81 harbor 83 delta 120 juniper 20 delta 1 indigo 3 juniper 51
dig lta rbo lta nip lta dig nip
harbor 31 amber 69 amber 85 ember 6 cobalt 89 ember 60 delta 16 fable 62 juniper 120 birch 62
rbo ber ber ber bal ber lta ble nip rch
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037657
qwen/qwen3.7-plus
awkweave-0037658
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
harbor_harbor 96 delta_indigo 33 ember_cobalt 78 ember_cobalt 21 amber_grove 117 amber_amber 75 delta_harbor 16 juniper_indigo 90 fable_fable 21
harbor harbor delta indigo ember cobalt ember cobalt amber grove amber amber delta harbor juniper indigo fable fable
birch_cobalt 51 ember_fable 66 delta_indigo 4 birch_ember 44 harbor_cobalt 63 delta_indigo 99
birch cobalt ember fable delta indigo birch ember harbor cobalt delta indigo
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037658-p1
Substitute all underscores in the first column with spaces and print the results.
{gsub(/_/," ",$1);print $1}
harbor_harbor 96 delta_indigo 33 ember_cobalt 78 ember_cobalt 21 amber_grove 117 amber_amber 75 delta_harbor 16 juniper_indigo 90 fable_fable 21
harbor harbor delta indigo ember cobalt ember cobalt amber grove amber amber delta harbor juniper indigo fable fable
birch_cobalt 51 ember_fable 66 delta_indigo 4 birch_ember 44 harbor_cobalt 63 delta_indigo 99
birch cobalt ember fable delta indigo birch ember harbor cobalt delta indigo
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037658
qwen/qwen3.7-plus
awkweave-0037659
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)}
dina amber 91 closed ivan juniper 18 active hana amber 94 pending chen grove 63 closed lina delta 116 pending ivan indigo 74 ready hana harbor 50 active jules ember 35 ready dina harbor 82 pending lina grove 27 ready
closed 91 amber dina active 18 juniper ivan pending 94 amber hana closed 63 grove chen pending 116 delta lina ready 74 indigo ivan active 50 harbor hana ready 35 ember jules pending 82 harbor dina ready 27 grove lina
hana grove 7 closed chen indigo 38 failed kim amber 108 pending farah indigo 61 paused alice harbor 43 pending farah delta 48 failed gus harbor 65 pending bruno cobalt 42 closed
closed 7 grove hana failed 38 indigo chen pending 108 amber kim paused 61 indigo farah pending 43 harbor alice failed 48 delta farah pending 65 harbor gus closed 42 cobalt bruno
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037659-p1
Reverse the field order for each line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
dina amber 91 closed ivan juniper 18 active hana amber 94 pending chen grove 63 closed lina delta 116 pending ivan indigo 74 ready hana harbor 50 active jules ember 35 ready dina harbor 82 pending lina grove 27 ready
closed 91 amber dina active 18 juniper ivan pending 94 amber hana closed 63 grove chen pending 116 delta lina ready 74 indigo ivan active 50 harbor hana ready 35 ember jules pending 82 harbor dina ready 27 grove lina
hana grove 7 closed chen indigo 38 failed kim amber 108 pending farah indigo 61 paused alice harbor 43 pending farah delta 48 failed gus harbor 65 pending bruno cobalt 42 closed
closed 7 grove hana failed 38 indigo chen pending 108 amber kim paused 61 indigo farah pending 43 harbor alice failed 48 delta farah pending 65 harbor gus closed 42 cobalt bruno
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037659
qwen/qwen3.7-plus
awkweave-0037660
Print the number of whitespace-separated fields on each line.
{print NF}
farah fable 48 failed dina fable 25 failed farah amber 115 closed dina amber 24 ready lina cobalt 26 paused lina fable 20 active jules amber 91 closed dina birch 114 paused lina indigo 53 active
4 4 4 4 4 4 4 4 4
ivan amber 39 closed kim indigo 42 ready dina grove 36 active farah fable 113 pending bruno harbor 93 paused hana harbor 67 failed farah cobalt 96 ready
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037660-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
farah fable 48 failed dina fable 25 failed farah amber 115 closed dina amber 24 ready lina cobalt 26 paused lina fable 20 active jules amber 91 closed dina birch 114 paused lina indigo 53 active
4 4 4 4 4 4 4 4 4
ivan amber 39 closed kim indigo 42 ready dina grove 36 active farah fable 113 pending bruno harbor 93 paused hana harbor 67 failed farah cobalt 96 ready
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037660
qwen/qwen3.7-plus
awkweave-0037661
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
eli beta 93 lina beta 52 farah alpha 103 kim gamma 79 eli alpha 82 ivan alpha 41 jules gamma 72 gus beta 115 farah gamma 87
beta 3 alpha 3 gamma 3
jules beta 120 farah gamma 27 eli gamma 61 gus beta 46 gus beta 10 kim gamma 37 ivan beta 9 lina delta 69
beta 4 gamma 3 delta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null