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-0038001-p1
Calculate the total number of input records and display the count.
END{print NR}
alice 119 eli 47 eli 12 hana 101 farah 67 eli 85 eli 87 farah 103
8
eli 3 jules 99 bruno 64 dina 38 jules 35 jules 34 jules 27 dina 76 hana 115 dina 73
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038001
qwen/qwen3.7-plus
awkweave-0038002
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
farah ember 99 alice juniper 80 eli ember 107 dina grove 101 alice juniper 80 lina birch 35 jules cobalt 41 gus delta 79 eli ember 57 ivan harbor 67 kim delta 84
farah ember 99 alice juniper 80 eli ember 107 dina grove 101 lina birch 35 jules cobalt 41 gus delta 79 eli ember 57 ivan harbor 67 kim delta 84
lina juniper 23 ivan birch 50 dina amber 46 kim indigo 55 hana cobalt 69 eli amber 25 dina harbor 79 gus ember 18 kim indigo 55 jules ember 104
lina juniper 23 ivan birch 50 dina amber 46 kim indigo 55 hana cobalt 69 eli amber 25 dina harbor 79 gus ember 18 jules ember 104
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038002-p1
Eliminate duplicate lines by keeping only the first instance of each, maintaining the original sequence.
!seen[$0]++
farah ember 99 alice juniper 80 eli ember 107 dina grove 101 alice juniper 80 lina birch 35 jules cobalt 41 gus delta 79 eli ember 57 ivan harbor 67 kim delta 84
farah ember 99 alice juniper 80 eli ember 107 dina grove 101 lina birch 35 jules cobalt 41 gus delta 79 eli ember 57 ivan harbor 67 kim delta 84
lina juniper 23 ivan birch 50 dina amber 46 kim indigo 55 hana cobalt 69 eli amber 25 dina harbor 79 gus ember 18 kim indigo 55 jules ember 104
lina juniper 23 ivan birch 50 dina amber 46 kim indigo 55 hana cobalt 69 eli amber 25 dina harbor 79 gus ember 18 jules ember 104
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038002
qwen/qwen3.7-plus
awkweave-0038003
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
lina amber 28 lina harbor 68 jules cobalt 42 dina delta 73 dina amber 62 jules indigo 13 alice amber 113 jules fable 11 dina amber 46
lina amber 28 jules cobalt 42 dina delta 73 alice amber 113
alice harbor 65 ivan harbor 116 jules grove 107 bruno fable 30 hana harbor 38 chen indigo 70
alice harbor 65 ivan harbor 116 jules grove 107 bruno fable 30 hana harbor 38 chen indigo 70
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038003-p1
Retain solely the initial line for every unique value in the first column, keeping the input order intact.
!seen[$1]++
lina amber 28 lina harbor 68 jules cobalt 42 dina delta 73 dina amber 62 jules indigo 13 alice amber 113 jules fable 11 dina amber 46
lina amber 28 jules cobalt 42 dina delta 73 alice amber 113
alice harbor 65 ivan harbor 116 jules grove 107 bruno fable 30 hana harbor 38 chen indigo 70
alice harbor 65 ivan harbor 116 jules grove 107 bruno fable 30 hana harbor 38 chen indigo 70
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038003
qwen/qwen3.7-plus
awkweave-0038004
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
lina 9 amber bruno 25 indigo eli 7 juniper hana 27 grove gus 18 fable farah 20 indigo
lina 9 bruno 34 eli 41 hana 68 gus 86 farah 106
hana 19 grove ivan 6 grove jules 25 amber alice 2 delta eli 23 birch hana 10 amber gus 19 ember jules 13 harbor chen 1 indigo farah 24 fable
hana 19 ivan 25 jules 50 alice 52 eli 75 hana 85 gus 104 jules 117 chen 118 farah 142
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038004-p1
Output the first column alongside the cumulative sum of the second column for each record, separated by a space.
{s+=$2;print $1,s}
lina 9 amber bruno 25 indigo eli 7 juniper hana 27 grove gus 18 fable farah 20 indigo
lina 9 bruno 34 eli 41 hana 68 gus 86 farah 106
hana 19 grove ivan 6 grove jules 25 amber alice 2 delta eli 23 birch hana 10 amber gus 19 ember jules 13 harbor chen 1 indigo farah 24 fable
hana 19 ivan 25 jules 50 alice 52 eli 75 hana 85 gus 104 jules 117 chen 118 farah 142
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038004
qwen/qwen3.7-plus
awkweave-0038005
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 19 28 harbor chen 8 16 harbor bruno 23 12 delta kim 9 19 grove jules 20 5 delta bruno 5 23 birch chen 6 23 harbor chen 2 20 fable gus 12 5 grove
bruno 47 chen 24 bruno 35 kim 28 jules 25 bruno 28 chen 29 chen 22 gus 17
eli 29 29 harbor hana 9 30 indigo chen 8 26 harbor kim 6 14 birch eli 21 25 ember gus 9 17 harbor gus 3 17 fable
eli 58 hana 39 chen 34 kim 20 eli 46 gus 26 gus 20
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038005-p1
For each row, display the first field followed by the total of the second and third fields.
{print $1,$2+$3}
bruno 19 28 harbor chen 8 16 harbor bruno 23 12 delta kim 9 19 grove jules 20 5 delta bruno 5 23 birch chen 6 23 harbor chen 2 20 fable gus 12 5 grove
bruno 47 chen 24 bruno 35 kim 28 jules 25 bruno 28 chen 29 chen 22 gus 17
eli 29 29 harbor hana 9 30 indigo chen 8 26 harbor kim 6 14 birch eli 21 25 ember gus 9 17 harbor gus 3 17 fable
eli 58 hana 39 chen 34 kim 20 eli 46 gus 26 gus 20
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038005
qwen/qwen3.7-plus
awkweave-0038006
Print column 1 and pass when column 2 is at least 22; otherwise print fail.
{print $1,($2>=22?"pass":"fail")}
ivan 24 bruno 7 bruno 16 alice 18 alice 25 hana 12
ivan pass bruno fail bruno fail alice fail alice pass hana fail
jules 13 lina 3 jules 3 bruno 5 eli 14 dina 29 dina 1
jules fail lina fail jules fail bruno fail eli fail dina pass dina fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038006-p1
Output the first column along with 'pass' if the second column is 22 or greater; otherwise, output 'fail'.
{print $1,($2>=22?"pass":"fail")}
ivan 24 bruno 7 bruno 16 alice 18 alice 25 hana 12
ivan pass bruno fail bruno fail alice fail alice pass hana fail
jules 13 lina 3 jules 3 bruno 5 eli 14 dina 29 dina 1
jules fail lina fail jules fail bruno fail eli fail dina pass dina fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038006
qwen/qwen3.7-plus
awkweave-0038007
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
alice delta 24 hana juniper 47 bruno birch 114 bruno juniper 27 farah ember 51 dina delta 92 ivan juniper 84
DELTA JUNIPER BIRCH JUNIPER EMBER DELTA JUNIPER
ivan harbor 50 hana fable 66 jules fable 120 jules delta 7 farah cobalt 17 dina ember 69 hana ember 70 eli delta 32
HARBOR FABLE FABLE DELTA COBALT EMBER EMBER DELTA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038007-p1
Transform the second column to uppercase letters and print only that column.
{print toupper($2)}
alice delta 24 hana juniper 47 bruno birch 114 bruno juniper 27 farah ember 51 dina delta 92 ivan juniper 84
DELTA JUNIPER BIRCH JUNIPER EMBER DELTA JUNIPER
ivan harbor 50 hana fable 66 jules fable 120 jules delta 7 farah cobalt 17 dina ember 69 hana ember 70 eli delta 32
HARBOR FABLE FABLE DELTA COBALT EMBER EMBER DELTA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038007
qwen/qwen3.7-plus
awkweave-0038008
From column 1, print 2 characters starting at character 1.
{print substr($1,1,2)}
delta 79 amber 87 ember 58 indigo 86 harbor 108 indigo 7 cobalt 89 harbor 64 grove 97
de am em in ha in co ha gr
harbor 17 delta 59 birch 41 fable 101 grove 15 juniper 37
ha de bi fa gr ju
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038008-p1
Extract and print the first two characters from the first column.
{print substr($1,1,2)}
delta 79 amber 87 ember 58 indigo 86 harbor 108 indigo 7 cobalt 89 harbor 64 grove 97
de am em in ha in co ha gr
harbor 17 delta 59 birch 41 fable 101 grove 15 juniper 37
ha de bi fa gr ju
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038008
qwen/qwen3.7-plus
awkweave-0038009
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
ember_indigo 99 delta_ember 12 ember_delta 37 cobalt_grove 11 juniper_indigo 18 ember_amber 53 ember_delta 40
ember indigo delta ember ember delta cobalt grove juniper indigo ember amber ember delta
delta_juniper 71 amber_ember 62 juniper_fable 50 juniper_cobalt 92 ember_cobalt 45 fable_ember 74 fable_grove 89 juniper_indigo 69 birch_indigo 101
delta juniper amber ember juniper fable juniper cobalt ember cobalt fable ember fable grove juniper indigo birch indigo
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038009-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
ember_indigo 99 delta_ember 12 ember_delta 37 cobalt_grove 11 juniper_indigo 18 ember_amber 53 ember_delta 40
ember indigo delta ember ember delta cobalt grove juniper indigo ember amber ember delta
delta_juniper 71 amber_ember 62 juniper_fable 50 juniper_cobalt 92 ember_cobalt 45 fable_ember 74 fable_grove 89 juniper_indigo 69 birch_indigo 101
delta juniper amber ember juniper fable juniper cobalt ember cobalt fable ember fable grove juniper indigo birch indigo
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038009
qwen/qwen3.7-plus
awkweave-0038010
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 50 active ivan grove 43 ready kim amber 102 active lina ember 18 closed lina fable 92 ready kim ember 15 closed kim indigo 63 closed
active 50 delta alice ready 43 grove ivan active 102 amber kim closed 18 ember lina ready 92 fable lina closed 15 ember kim closed 63 indigo kim
eli cobalt 63 ready ivan indigo 23 closed chen indigo 54 pending farah fable 91 failed hana juniper 53 pending gus indigo 20 pending bruno delta 61 failed
ready 63 cobalt eli closed 23 indigo ivan pending 54 indigo chen failed 91 fable farah pending 53 juniper hana pending 20 indigo gus failed 61 delta bruno
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038010-p1
Invert the sequence of fields for every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
alice delta 50 active ivan grove 43 ready kim amber 102 active lina ember 18 closed lina fable 92 ready kim ember 15 closed kim indigo 63 closed
active 50 delta alice ready 43 grove ivan active 102 amber kim closed 18 ember lina ready 92 fable lina closed 15 ember kim closed 63 indigo kim
eli cobalt 63 ready ivan indigo 23 closed chen indigo 54 pending farah fable 91 failed hana juniper 53 pending gus indigo 20 pending bruno delta 61 failed
ready 63 cobalt eli closed 23 indigo ivan pending 54 indigo chen failed 91 fable farah pending 53 juniper hana pending 20 indigo gus failed 61 delta bruno
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038010
qwen/qwen3.7-plus
awkweave-0038011
Print the number of whitespace-separated fields on each line.
{print NF}
hana cobalt 101 failed ivan grove 99 paused ivan birch 61 closed chen ember 52 pending kim ember 64 active bruno indigo 97 ready farah fable 112 failed lina grove 100 pending lina grove 118 closed
4 4 4 4 4 4 4 4 4
chen fable 65 closed kim amber 12 ready hana cobalt 89 ready gus birch 36 active alice cobalt 27 closed gus birch 33 active eli grove 55 active hana fable 78 closed chen delta 75 active jules grove 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-0038011-p1
Display the count of whitespace-delimited fields for each line.
{print NF}
hana cobalt 101 failed ivan grove 99 paused ivan birch 61 closed chen ember 52 pending kim ember 64 active bruno indigo 97 ready farah fable 112 failed lina grove 100 pending lina grove 118 closed
4 4 4 4 4 4 4 4 4
chen fable 65 closed kim amber 12 ready hana cobalt 89 ready gus birch 36 active alice cobalt 27 closed gus birch 33 active eli grove 55 active hana fable 78 closed chen delta 75 active jules grove 46 ready
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038011
qwen/qwen3.7-plus
awkweave-0038012
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
bruno alpha 34 farah alpha 20 alice beta 24 ivan delta 103 hana alpha 2 eli alpha 13 lina beta 4 kim gamma 52 dina beta 84
alpha 4 beta 3 delta 1 gamma 1
hana gamma 68 kim beta 49 ivan beta 52 ivan delta 54 chen delta 103 kim alpha 21 lina alpha 106 gus alpha 14
gamma 1 beta 2 delta 2 alpha 3
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038012-p1
Tally the occurrences of each unique value in column 2 and output the value alongside its count, maintaining the order in which they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
bruno alpha 34 farah alpha 20 alice beta 24 ivan delta 103 hana alpha 2 eli alpha 13 lina beta 4 kim gamma 52 dina beta 84
alpha 4 beta 3 delta 1 gamma 1
hana gamma 68 kim beta 49 ivan beta 52 ivan delta 54 chen delta 103 kim alpha 21 lina alpha 106 gus alpha 14
gamma 1 beta 2 delta 2 alpha 3
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038012
qwen/qwen3.7-plus
awkweave-0038013
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
alice delta 11 bruno alpha 7 bruno alpha 29 dina beta 28 lina delta 19 ivan beta 24 chen beta 13 farah beta 12 bruno gamma 10
delta 30 alpha 36 beta 77 gamma 10
farah delta 15 eli delta 22 jules alpha 11 chen gamma 24 ivan gamma 5 farah beta 17 hana gamma 20 kim gamma 11
delta 37 alpha 11 gamma 60 beta 17
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038013-p1
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
alice delta 11 bruno alpha 7 bruno alpha 29 dina beta 28 lina delta 19 ivan beta 24 chen beta 13 farah beta 12 bruno gamma 10
delta 30 alpha 36 beta 77 gamma 10
farah delta 15 eli delta 22 jules alpha 11 chen gamma 24 ivan gamma 5 farah beta 17 hana gamma 20 kim gamma 11
delta 37 alpha 11 gamma 60 beta 17
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0038013
qwen/qwen3.7-plus
awkweave-0038014
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 82 beta indigo 9 delta grove 21 beta delta 59 beta fable 37 gamma indigo 63 beta ember 0 gamma harbor 59
gamma 3 beta 4
alpha grove 76 gamma grove 102 alpha juniper 69 gamma fable 42 gamma birch 51 gamma fable 31 beta indigo 8 delta delta 47
alpha 2 gamma 4
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038014-p1
Identify duplicate entries in column 1 and output each repeated value with its total frequency, sorted by the order of first occurrence.
{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 82 beta indigo 9 delta grove 21 beta delta 59 beta fable 37 gamma indigo 63 beta ember 0 gamma harbor 59
gamma 3 beta 4
alpha grove 76 gamma grove 102 alpha juniper 69 gamma fable 42 gamma birch 51 gamma fable 31 beta indigo 8 delta delta 47
alpha 2 gamma 4
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038014
qwen/qwen3.7-plus
awkweave-0038015
The first row is a header. Print the region column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
note record_id region display_name r001 gus 8 failed r002 ivan 26 paused r003 farah 30 pending r004 chen 25 ready r005 bruno 29 active r006 kim 18 paused r007 alice 11 active r008 bruno 10 failed
8 26 30 25 29 18 11 10
note record_id region display_name r001 jules 7 failed r002 lina 12 closed r003 eli 8 closed r004 kim 8 paused r005 kim 26 closed r006 jules 18 paused
7 12 8 8 26 18
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038015-p1
Assuming the first line is a header, extract and print the region column from all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
note record_id region display_name r001 gus 8 failed r002 ivan 26 paused r003 farah 30 pending r004 chen 25 ready r005 bruno 29 active r006 kim 18 paused r007 alice 11 active r008 bruno 10 failed
8 26 30 25 29 18 11 10
note record_id region display_name r001 jules 7 failed r002 lina 12 closed r003 eli 8 closed r004 kim 8 paused r005 kim 26 closed r006 jules 18 paused
7 12 8 8 26 18
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038015
qwen/qwen3.7-plus
awkweave-0038016
The first row is a header. Print display_name for data rows whose score is greater than 17.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>17{print $h["display_name"]}
record_id display_name score state r001 hana 17 pending r002 eli 2 pending r003 jules 28 ready r004 kim 7 ready r005 lina 2 failed r006 farah 19 paused r007 jules 15 failed r008 kim 1 paused r009 eli 28 active
jules farah eli
record_id display_name score state r001 alice 23 active r002 chen 30 failed r003 farah 23 ready r004 jules 10 ready r005 eli 25 failed r006 eli 18 paused r007 ivan 22 failed r008 hana 30 closed r009 kim 4 ready r010 alice 13 paused
alice chen farah eli eli ivan hana
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038016-p1
With the first row treated as a header, output the display_name field for any data row where the score exceeds 17.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>17{print $h["display_name"]}
record_id display_name score state r001 hana 17 pending r002 eli 2 pending r003 jules 28 ready r004 kim 7 ready r005 lina 2 failed r006 farah 19 paused r007 jules 15 failed r008 kim 1 paused r009 eli 28 active
jules farah eli
record_id display_name score state r001 alice 23 active r002 chen 30 failed r003 farah 23 ready r004 jules 10 ready r005 eli 25 failed r006 eli 18 paused r007 ivan 22 failed r008 hana 30 closed r009 kim 4 ready r010 alice 13 paused
alice chen farah eli eli ivan hana
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038016
qwen/qwen3.7-plus
awkweave-0038017
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
lina 1 ready eli 21 paused lina 23 paused gus 12 failed gus 21 ready farah 8 active chen 5 active chen 20 ready alice 20 pending
lina eli lina gus gus farah chen chen alice
kim 6 paused bruno 26 paused kim 14 closed alice 14 active lina 14 failed dina 26 active kim 2 active
kim bruno kim alice lina dina kim
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038017-p1
Given tab-separated input, extract and print the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
lina 1 ready eli 21 paused lina 23 paused gus 12 failed gus 21 ready farah 8 active chen 5 active chen 20 ready alice 20 pending
lina eli lina gus gus farah chen chen alice
kim 6 paused bruno 26 paused kim 14 closed alice 14 active lina 14 failed dina 26 active kim 2 active
kim bruno kim alice lina dina kim
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038017
qwen/qwen3.7-plus
awkweave-0038018
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 24.
BEGIN{FS=OFS=","}$2>24{print $1}
ivan,17,ready farah,25,pending kim,5,pending alice,17,paused jules,19,ready lina,24,pending hana,28,paused
farah hana
alice,18,pending jules,1,active ivan,18,ready farah,8,active gus,11,paused alice,22,active eli,19,paused dina,10,closed
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038018-p1
For simple comma-separated data without quoted commas, print the first column only if the second column value is greater than 24.
BEGIN{FS=OFS=","}$2>24{print $1}
ivan,17,ready farah,25,pending kim,5,pending alice,17,paused jules,19,ready lina,24,pending hana,28,paused
farah hana
alice,18,pending jules,1,active ivan,18,ready farah,8,active gus,11,paused alice,22,active eli,19,paused dina,10,closed
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038018
qwen/qwen3.7-plus
awkweave-0038019
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
chen cobalt 46 chen cobalt 11 hana grove 74 gus delta 6 dina harbor 12 hana indigo 13 eli birch 68 gus juniper 55 gus fable 15 hana juniper 18
chen cobalt 46 chen cobalt 11 hana grove 74 gus delta 6 dina harbor 12 hana indigo 13 eli birch 68 gus juniper 55 gus fable 15 hana juniper 18
hana grove 38 ivan juniper 40 farah cobalt 68 gus grove 17 ivan cobalt 44 hana fable 33 alice harbor 36 jules delta 106
hana grove 38 ivan juniper 40 farah cobalt 68 gus grove 17 ivan cobalt 44 hana fable 33 alice harbor 36 jules delta 106
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038019-p1
Remove leading and trailing whitespace from the text and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
chen cobalt 46 chen cobalt 11 hana grove 74 gus delta 6 dina harbor 12 hana indigo 13 eli birch 68 gus juniper 55 gus fable 15 hana juniper 18
chen cobalt 46 chen cobalt 11 hana grove 74 gus delta 6 dina harbor 12 hana indigo 13 eli birch 68 gus juniper 55 gus fable 15 hana juniper 18
hana grove 38 ivan juniper 40 farah cobalt 68 gus grove 17 ivan cobalt 44 hana fable 33 alice harbor 36 jules delta 106
hana grove 38 ivan juniper 40 farah cobalt 68 gus grove 17 ivan cobalt 44 hana fable 33 alice harbor 36 jules delta 106
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038019
qwen/qwen3.7-plus
awkweave-0038020
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
eli grove 104 active dina fable 113 active ivan juniper 50 active dina delta 27 closed eli cobalt 69 active gus cobalt 14 paused farah birch 39 ready
ivan juniper 50 active
dina ember 35 failed farah cobalt 106 ready ivan juniper 21 pending chen grove 34 ready hana grove 59 active bruno birch 18 failed jules delta 58 ready gus ember 14 closed farah harbor 75 paused
ivan juniper 21 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038020-p1
Identify and output the longest line from the input; in the event of a tie in length, select the line that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
eli grove 104 active dina fable 113 active ivan juniper 50 active dina delta 27 closed eli cobalt 69 active gus cobalt 14 paused farah birch 39 ready
ivan juniper 50 active
dina ember 35 failed farah cobalt 106 ready ivan juniper 21 pending chen grove 34 ready hana grove 59 active bruno birch 18 failed jules delta 58 ready gus ember 14 closed farah harbor 75 paused
ivan juniper 21 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038020
qwen/qwen3.7-plus
awkweave-0038021
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
kim 93 farah 96 gus 84 farah 103 hana 105 ivan 93 lina 78
farah 96 hana 105
dina 97 gus 113 ivan 16 chen 52 farah 6 chen 38 dina 43 gus 75 dina 17 eli 15
gus 113 farah 6 gus 75
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038021-p1
Output every third line of the input, beginning with line 2 (i.e., lines 2, 5, 8, etc.).
NR%3==2
kim 93 farah 96 gus 84 farah 103 hana 105 ivan 93 lina 78
farah 96 hana 105
dina 97 gus 113 ivan 16 chen 52 farah 6 chen 38 dina 43 gus 75 dina 17 eli 15
gus 113 farah 6 gus 75
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038021
qwen/qwen3.7-plus
awkweave-0038022
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
delta delta 42 delta indigo 30 delta indigo 45 beta juniper 99 gamma grove 102 alpha juniper 21 alpha amber 86 beta fable 32 gamma grove 107 gamma indigo 94
6
alpha indigo 65 gamma amber 56 delta ember 69 beta cobalt 82 beta harbor 8 alpha indigo 4 delta cobalt 111 alpha indigo 58 delta ember 76
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038022-p1
Determine the number of unique values present in column 2 and print only this total count.
{if(!seen[$2]++)n++}END{print n+0}
delta delta 42 delta indigo 30 delta indigo 45 beta juniper 99 gamma grove 102 alpha juniper 21 alpha amber 86 beta fable 32 gamma grove 107 gamma indigo 94
6
alpha indigo 65 gamma amber 56 delta ember 69 beta cobalt 82 beta harbor 8 alpha indigo 4 delta cobalt 111 alpha indigo 58 delta ember 76
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038022
qwen/qwen3.7-plus
awkweave-0038023
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}
farah 14 0 hana 8 10 alice 12 15 alice 25 20 eli 24 26 farah 22 15 dina 6 13
hana 0.80 alice 0.80 alice 1.25 eli 0.92 farah 1.47 dina 0.46
alice 21 0 bruno 19 14 hana 14 19 jules 24 16 alice 26 7 dina 6 1 farah 21 19 kim 10 13
bruno 1.36 hana 0.74 jules 1.50 alice 3.71 dina 6.00 farah 1.11 kim 0.77
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038023-p1
For each row, output column 1 and the result of dividing column 2 by column 3 formatted to two decimal places, excluding any rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
farah 14 0 hana 8 10 alice 12 15 alice 25 20 eli 24 26 farah 22 15 dina 6 13
hana 0.80 alice 0.80 alice 1.25 eli 0.92 farah 1.47 dina 0.46
alice 21 0 bruno 19 14 hana 14 19 jules 24 16 alice 26 7 dina 6 1 farah 21 19 kim 10 13
bruno 1.36 hana 0.74 jules 1.50 alice 3.71 dina 6.00 farah 1.11 kim 0.77
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038023
qwen/qwen3.7-plus
awkweave-0038024
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 harbor 27 farah birch 15 lina juniper 16 bruno cobalt 22 jules birch 8 bruno indigo 28 lina cobalt 11
bruno indigo 28 farah harbor 27 bruno cobalt 22
alice grove 10 bruno harbor 29 kim ember 30 eli indigo 26 chen amber 4 bruno birch 17 bruno birch 28 eli cobalt 6 gus harbor 21
kim ember 30 bruno harbor 29 bruno birch 28
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038024-p1
Output the top 3 records based on descending numeric values in column 3, maintaining original 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 harbor 27 farah birch 15 lina juniper 16 bruno cobalt 22 jules birch 8 bruno indigo 28 lina cobalt 11
bruno indigo 28 farah harbor 27 bruno cobalt 22
alice grove 10 bruno harbor 29 kim ember 30 eli indigo 26 chen amber 4 bruno birch 17 bruno birch 28 eli cobalt 6 gus harbor 21
kim ember 30 bruno harbor 29 bruno birch 28
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038024
qwen/qwen3.7-plus
awkweave-0038025
For each line, output fields 4 and 1, in that order.
{print $4, $1}
ember dina 58 chen cobalt farah 63 dina harbor ivan 42 dina indigo kim 13 ivan ember farah 87 farah indigo hana 47 gus harbor bruno 119 eli juniper bruno 109 bruno
chen ember dina cobalt dina harbor ivan indigo farah ember gus indigo eli harbor bruno juniper
delta jules 24 ivan amber eli 84 dina cobalt bruno 120 dina amber bruno 45 eli fable alice 58 lina fable ivan 28 chen juniper bruno 34 farah fable chen 87 kim ember chen 71 gus
ivan delta dina amber dina cobalt eli amber lina fable chen fable farah juniper kim fable gus ember
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038025-p1
For every line, display field 4 followed by field 1.
{print $4, $1}
ember dina 58 chen cobalt farah 63 dina harbor ivan 42 dina indigo kim 13 ivan ember farah 87 farah indigo hana 47 gus harbor bruno 119 eli juniper bruno 109 bruno
chen ember dina cobalt dina harbor ivan indigo farah ember gus indigo eli harbor bruno juniper
delta jules 24 ivan amber eli 84 dina cobalt bruno 120 dina amber bruno 45 eli fable alice 58 lina fable ivan 28 chen juniper bruno 34 farah fable chen 87 kim ember chen 71 gus
ivan delta dina amber dina cobalt eli amber lina fable chen fable farah juniper kim fable gus ember
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038025
qwen/qwen3.7-plus
awkweave-0038026
Print the last field of every input line.
{print $NF}
active 6 ready 8 lina 94 paused 94 closed 40 eli 119 paused 83 ready 61 kim 86 failed 105 failed 53 jules 108 closed 84 failed 92 bruno 108 active 117 pending 1 eli 107 failed 80 closed 6 gus 108 pending 41 ready 57 hana 119 closed 40 failed 1 kim 119 ready 12 failed 61 eli 93
94 119 86 108 108 107 108 119 119 93
failed 46 active 1 alice 78 failed 37 active 113 chen 100 ready 8 closed 3 farah 102 failed 16 closed 50 gus 56 pending 102 closed 16 farah 24 failed 45 pending 87 kim 34 paused 110 pending 113 lina 15
78 100 102 56 24 34 15
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038026-p1
Print the final field from each input line.
{print $NF}
active 6 ready 8 lina 94 paused 94 closed 40 eli 119 paused 83 ready 61 kim 86 failed 105 failed 53 jules 108 closed 84 failed 92 bruno 108 active 117 pending 1 eli 107 failed 80 closed 6 gus 108 pending 41 ready 57 hana 119 closed 40 failed 1 kim 119 ready 12 failed 61 eli 93
94 119 86 108 108 107 108 119 119 93
failed 46 active 1 alice 78 failed 37 active 113 chen 100 ready 8 closed 3 farah 102 failed 16 closed 50 gus 56 pending 102 closed 16 farah 24 failed 45 pending 87 kim 34 paused 110 pending 113 lina 15
78 100 102 56 24 34 15
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038026
qwen/qwen3.7-plus
awkweave-0038027
Print the complete records where column 3 is at most 48.
$3 <= 48
grove pending 120 active birch paused 37 pending delta closed 109 pending indigo closed 4 closed fable ready 117 failed harbor paused 56 ready amber ready 60 pending birch closed 56 pending juniper pending 88 active birch paused 27 paused
birch paused 37 pending indigo closed 4 closed birch paused 27 paused
delta closed 89 closed ember paused 36 closed birch closed 118 failed delta closed 82 ready birch failed 89 active fable ready 0 closed harbor ready 12 active fable failed 108 ready
ember paused 36 closed fable ready 0 closed harbor ready 12 active
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038027-p1
Display full records where the value in column 3 is less than or equal to 48.
$3 <= 48
grove pending 120 active birch paused 37 pending delta closed 109 pending indigo closed 4 closed fable ready 117 failed harbor paused 56 ready amber ready 60 pending birch closed 56 pending juniper pending 88 active birch paused 27 paused
birch paused 37 pending indigo closed 4 closed birch paused 27 paused
delta closed 89 closed ember paused 36 closed birch closed 118 failed delta closed 82 ready birch failed 89 active fable ready 0 closed harbor ready 12 active fable failed 108 ready
ember paused 36 closed fable ready 0 closed harbor ready 12 active
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038027
qwen/qwen3.7-plus
awkweave-0038028
Show whole lines whose 3rd field is between 3 and 29, inclusive.
$3 >= 3 && $3 <= 29
active bruno 15 kim failed ivan 4 lina paused hana 21 gus closed dina 21 jules closed hana 22 jules failed jules 2 jules closed hana 24 ivan closed ivan 13 lina
active bruno 15 kim failed ivan 4 lina paused hana 21 gus closed dina 21 jules closed hana 22 jules closed hana 24 ivan closed ivan 13 lina
ready chen 10 alice pending ivan 2 jules ready eli 6 hana closed farah 24 lina ready gus 29 chen ready ivan 23 bruno pending jules 29 farah failed dina 13 ivan ready gus 30 kim
ready chen 10 alice ready eli 6 hana closed farah 24 lina ready gus 29 chen ready ivan 23 bruno pending jules 29 farah failed dina 13 ivan
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038028-p1
Show entire lines where the third field falls within the inclusive range of 3 to 29.
$3 >= 3 && $3 <= 29
active bruno 15 kim failed ivan 4 lina paused hana 21 gus closed dina 21 jules closed hana 22 jules failed jules 2 jules closed hana 24 ivan closed ivan 13 lina
active bruno 15 kim failed ivan 4 lina paused hana 21 gus closed dina 21 jules closed hana 22 jules closed hana 24 ivan closed ivan 13 lina
ready chen 10 alice pending ivan 2 jules ready eli 6 hana closed farah 24 lina ready gus 29 chen ready ivan 23 bruno pending jules 29 farah failed dina 13 ivan ready gus 30 kim
ready chen 10 alice ready eli 6 hana closed farah 24 lina ready gus 29 chen ready ivan 23 bruno pending jules 29 farah failed dina 13 ivan
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038028
qwen/qwen3.7-plus
awkweave-0038029
Print column 1 only for rows where column 3 is exactly ready.
$3 == "ready"{print $1}
bruno fable ready 43 lina delta failed 57 hana cobalt ready 1 kim juniper pending 55 farah delta paused 99 alice grove paused 32 chen harbor ready 63 gus ember closed 101 eli indigo ready 55 farah cobalt paused 48
bruno hana chen eli
eli harbor failed 5 farah ember closed 41 bruno harbor failed 4 eli indigo pending 49 alice birch ready 106 kim indigo closed 70 dina grove failed 70 jules juniper paused 111 jules harbor ready 13 ivan delta paused 16
alice jules
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038029-p1
Output only column 1 for rows where column 3 equals ready.
$3 == "ready"{print $1}
bruno fable ready 43 lina delta failed 57 hana cobalt ready 1 kim juniper pending 55 farah delta paused 99 alice grove paused 32 chen harbor ready 63 gus ember closed 101 eli indigo ready 55 farah cobalt paused 48
bruno hana chen eli
eli harbor failed 5 farah ember closed 41 bruno harbor failed 4 eli indigo pending 49 alice birch ready 106 kim indigo closed 70 dina grove failed 70 jules juniper paused 111 jules harbor ready 13 ivan delta paused 16
alice jules
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038029
qwen/qwen3.7-plus
awkweave-0038030
Print all fields from lines where field 3 begins with INFO.
$3 ~ /^INFO/
fable 52 INFO ember 76 DEBUG harbor 117 ERROR indigo 56 INFO delta 93 DEBUG fable 2 ERROR birch 43 INFO juniper 101 WARN delta 112 WARN
fable 52 INFO indigo 56 INFO birch 43 INFO
amber 119 INFO juniper 55 ERROR cobalt 39 ERROR delta 41 INFO indigo 37 INFO harbor 95 ERROR cobalt 11 INFO ember 92 ERROR harbor 63 DEBUG indigo 33 WARN
amber 119 INFO delta 41 INFO indigo 37 INFO cobalt 11 INFO
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038030-p1
Print all fields for lines where the third field starts with INFO.
$3 ~ /^INFO/
fable 52 INFO ember 76 DEBUG harbor 117 ERROR indigo 56 INFO delta 93 DEBUG fable 2 ERROR birch 43 INFO juniper 101 WARN delta 112 WARN
fable 52 INFO indigo 56 INFO birch 43 INFO
amber 119 INFO juniper 55 ERROR cobalt 39 ERROR delta 41 INFO indigo 37 INFO harbor 95 ERROR cobalt 11 INFO ember 92 ERROR harbor 63 DEBUG indigo 33 WARN
amber 119 INFO delta 41 INFO indigo 37 INFO cobalt 11 INFO
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038030
qwen/qwen3.7-plus
awkweave-0038031
Print every line except those containing the exact text birch.
$0 !~ /birch/
harbor 68 pending juniper 10 active ember 28 paused indigo 116 paused grove 76 closed birch 111 failed grove 82 pending birch 999 active
harbor 68 pending juniper 10 active ember 28 paused indigo 116 paused grove 76 closed grove 82 pending
ember 2 paused harbor 115 closed grove 19 paused indigo 63 pending amber 61 paused ember 11 paused cobalt 69 paused birch 3 failed birch 999 active
ember 2 paused harbor 115 closed grove 19 paused indigo 63 pending amber 61 paused ember 11 paused cobalt 69 paused
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038031-p1
Print all lines that do not contain the exact string birch.
$0 !~ /birch/
harbor 68 pending juniper 10 active ember 28 paused indigo 116 paused grove 76 closed birch 111 failed grove 82 pending birch 999 active
harbor 68 pending juniper 10 active ember 28 paused indigo 116 paused grove 76 closed grove 82 pending
ember 2 paused harbor 115 closed grove 19 paused indigo 63 pending amber 61 paused ember 11 paused cobalt 69 paused birch 3 failed birch 999 active
ember 2 paused harbor 115 closed grove 19 paused indigo 63 pending amber 61 paused ember 11 paused cobalt 69 paused
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038031
qwen/qwen3.7-plus
awkweave-0038032
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
lina amber 109 alice ember 42 gus indigo 71 gus birch 119 bruno birch 42 chen ember 98 bruno harbor 95 lina indigo 65 alice harbor 56
gus birch 119 bruno birch 42 chen ember 98 bruno harbor 95
hana cobalt 8 dina grove 6 lina ember 86 chen juniper 7 ivan cobalt 120 gus birch 42 alice cobalt 59 dina cobalt 86
chen juniper 7 ivan cobalt 120 gus birch 42 alice cobalt 59
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038032-p1
Output lines 4 to 7, inclusive.
NR >= 4 && NR <= 7
lina amber 109 alice ember 42 gus indigo 71 gus birch 119 bruno birch 42 chen ember 98 bruno harbor 95 lina indigo 65 alice harbor 56
gus birch 119 bruno birch 42 chen ember 98 bruno harbor 95
hana cobalt 8 dina grove 6 lina ember 86 chen juniper 7 ivan cobalt 120 gus birch 42 alice cobalt 59 dina cobalt 86
chen juniper 7 ivan cobalt 120 gus birch 42 alice cobalt 59
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038032
qwen/qwen3.7-plus
awkweave-0038033
Output only the first 3 records.
NR <= 3
bruno 50 harbor hana 96 grove lina 105 cobalt eli 25 amber gus 45 birch alice 51 fable gus 105 juniper
bruno 50 harbor hana 96 grove lina 105 cobalt
kim 115 amber alice 30 delta kim 17 birch chen 73 indigo chen 69 amber alice 41 harbor farah 31 cobalt bruno 34 harbor farah 55 juniper gus 91 fable
kim 115 amber alice 30 delta kim 17 birch
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038033-p1
Display only the first 3 records.
NR <= 3
bruno 50 harbor hana 96 grove lina 105 cobalt eli 25 amber gus 45 birch alice 51 fable gus 105 juniper
bruno 50 harbor hana 96 grove lina 105 cobalt
kim 115 amber alice 30 delta kim 17 birch chen 73 indigo chen 69 amber alice 41 harbor farah 31 cobalt bruno 34 harbor farah 55 juniper gus 91 fable
kim 115 amber alice 30 delta kim 17 birch
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038033
qwen/qwen3.7-plus
awkweave-0038034
Skip the first line and print every remaining line unchanged.
NR > 1
lina 69 delta farah 5 birch dina 44 birch lina 19 harbor dina 109 indigo jules 96 amber chen 59 harbor kim 60 birch
farah 5 birch dina 44 birch lina 19 harbor dina 109 indigo jules 96 amber chen 59 harbor kim 60 birch
dina 13 indigo lina 14 delta bruno 51 amber lina 8 grove farah 105 harbor jules 52 juniper hana 75 juniper
lina 14 delta bruno 51 amber lina 8 grove farah 105 harbor jules 52 juniper hana 75 juniper
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038034-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
lina 69 delta farah 5 birch dina 44 birch lina 19 harbor dina 109 indigo jules 96 amber chen 59 harbor kim 60 birch
farah 5 birch dina 44 birch lina 19 harbor dina 109 indigo jules 96 amber chen 59 harbor kim 60 birch
dina 13 indigo lina 14 delta bruno 51 amber lina 8 grove farah 105 harbor jules 52 juniper hana 75 juniper
lina 14 delta bruno 51 amber lina 8 grove farah 105 harbor jules 52 juniper hana 75 juniper
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038034
qwen/qwen3.7-plus
awkweave-0038035
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
farah active 101 dina failed 31 dina closed 120 bruno ready 54 eli closed 102 eli closed 87 eli active 27 dina failed 20
2
lina paused 90 lina ready 57 chen paused 102 jules ready 98 gus paused 58 eli failed 108
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038035-p1
Count the number of records with active in column 2, outputting 0 if none exist.
$2 == "active"{n++}END{print n+0}
farah active 101 dina failed 31 dina closed 120 bruno ready 54 eli closed 102 eli closed 87 eli active 27 dina failed 20
2
lina paused 90 lina ready 57 chen paused 102 jules ready 98 gus paused 58 eli failed 108
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038035
qwen/qwen3.7-plus
awkweave-0038036
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
9 ember farah 10 indigo alice 12 birch dina 14 fable bruno 16 juniper gus 20 fable bruno 13 grove alice
94
17 birch gus 27 cobalt kim 1 grove eli 26 ember eli 28 harbor jules 19 indigo eli 13 cobalt dina 23 cobalt jules 6 birch bruno 2 birch ivan
162
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038036-p1
Compute the total of all integer values found in the first column and display the result.
{s+=$1}END{print s+0}
9 ember farah 10 indigo alice 12 birch dina 14 fable bruno 16 juniper gus 20 fable bruno 13 grove alice
94
17 birch gus 27 cobalt kim 1 grove eli 26 ember eli 28 harbor jules 19 indigo eli 13 cobalt dina 23 cobalt jules 6 birch bruno 2 birch ivan
162
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038036
qwen/qwen3.7-plus
awkweave-0038037
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
grove 17 alice cobalt 21 ivan juniper 6 eli cobalt 8 alice cobalt 30 gus delta 13 chen harbor 23 farah juniper 29 eli birch 24 lina
19.00
cobalt 10 dina ember 8 bruno fable 23 alice birch 10 lina fable 16 gus grove 5 alice amber 24 alice ember 30 kim juniper 24 farah
16.67
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038037-p1
Output the average of the values in the second column, formatted to two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
grove 17 alice cobalt 21 ivan juniper 6 eli cobalt 8 alice cobalt 30 gus delta 13 chen harbor 23 farah juniper 29 eli birch 24 lina
19.00
cobalt 10 dina ember 8 bruno fable 23 alice birch 10 lina fable 16 gus grove 5 alice amber 24 alice ember 30 kim juniper 24 farah
16.67
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038037
qwen/qwen3.7-plus
awkweave-0038038
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
ivan ember 12 lina ember 12 eli ember 16 bruno ember 24 jules juniper 11 hana ember 3 eli juniper 7
3
eli fable 15 dina delta 3 hana amber 8 gus delta 27 farah amber 23 ivan fable 8 chen cobalt 28
3
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038038-p1
Identify and display the minimum numeric value present in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
ivan ember 12 lina ember 12 eli ember 16 bruno ember 24 jules juniper 11 hana ember 3 eli juniper 7
3
eli fable 15 dina delta 3 hana amber 8 gus delta 27 farah amber 23 ivan fable 8 chen cobalt 28
3
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038038
qwen/qwen3.7-plus
awkweave-0038039
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
9 delta ivan 14 delta eli 7 cobalt farah 25 harbor jules 1 grove chen 20 fable chen
25
29 fable kim 10 ember hana 2 fable bruno 2 ember ivan 26 juniper kim 7 cobalt dina
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038039-p1
Determine and output the maximum numeric value located in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
9 delta ivan 14 delta eli 7 cobalt farah 25 harbor jules 1 grove chen 20 fable chen
25
29 fable kim 10 ember hana 2 fable bruno 2 ember ivan 26 juniper kim 7 cobalt dina
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038039
qwen/qwen3.7-plus
awkweave-0038040
Count all input records and print the total.
END{print NR}
hana 112 lina 86 eli 94 bruno 49 ivan 11 kim 110 hana 92 farah 22 hana 9 chen 93
10
kim 57 hana 32 alice 90 dina 4 farah 52 bruno 85 alice 8 jules 26 gus 35
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038040-p1
Count the total number of input records and print that count.
END{print NR}
hana 112 lina 86 eli 94 bruno 49 ivan 11 kim 110 hana 92 farah 22 hana 9 chen 93
10
kim 57 hana 32 alice 90 dina 4 farah 52 bruno 85 alice 8 jules 26 gus 35
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038040
qwen/qwen3.7-plus
awkweave-0038041
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
ivan ember 54 chen harbor 7 ivan ember 54 ivan birch 108 dina grove 75 ivan harbor 116 bruno grove 44 bruno fable 66 hana birch 50
ivan ember 54 chen harbor 7 ivan birch 108 dina grove 75 ivan harbor 116 bruno grove 44 bruno fable 66 hana birch 50
eli fable 82 ivan harbor 101 eli juniper 59 chen indigo 80 hana harbor 94 hana harbor 94 kim cobalt 116 bruno fable 72 farah birch 49 dina indigo 109
eli fable 82 ivan harbor 101 eli juniper 59 chen indigo 80 hana harbor 94 kim cobalt 116 bruno fable 72 farah birch 49 dina indigo 109
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038041-p1
Eliminate duplicate lines while keeping the first instance of each and maintaining the original sequence.
!seen[$0]++
ivan ember 54 chen harbor 7 ivan ember 54 ivan birch 108 dina grove 75 ivan harbor 116 bruno grove 44 bruno fable 66 hana birch 50
ivan ember 54 chen harbor 7 ivan birch 108 dina grove 75 ivan harbor 116 bruno grove 44 bruno fable 66 hana birch 50
eli fable 82 ivan harbor 101 eli juniper 59 chen indigo 80 hana harbor 94 hana harbor 94 kim cobalt 116 bruno fable 72 farah birch 49 dina indigo 109
eli fable 82 ivan harbor 101 eli juniper 59 chen indigo 80 hana harbor 94 kim cobalt 116 bruno fable 72 farah birch 49 dina indigo 109
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038041
qwen/qwen3.7-plus
awkweave-0038042
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
hana harbor 36 chen indigo 4 hana birch 68 bruno juniper 70 ivan fable 50 kim fable 24
hana harbor 36 chen indigo 4 hana birch 68 bruno juniper 70 ivan fable 50
ivan grove 113 lina cobalt 17 eli indigo 36 eli indigo 102 lina amber 29 chen amber 44
ivan grove 113 lina cobalt 17 eli indigo 36 lina amber 29
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038042-p1
Retain only the initial line for every unique value in the second column, keeping the original order.
!seen[$2]++
hana harbor 36 chen indigo 4 hana birch 68 bruno juniper 70 ivan fable 50 kim fable 24
hana harbor 36 chen indigo 4 hana birch 68 bruno juniper 70 ivan fable 50
ivan grove 113 lina cobalt 17 eli indigo 36 eli indigo 102 lina amber 29 chen amber 44
ivan grove 113 lina cobalt 17 eli indigo 36 lina amber 29
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038042
qwen/qwen3.7-plus
awkweave-0038043
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
gus 7 indigo ivan 16 ember jules 15 harbor gus 25 juniper chen 5 indigo farah 4 amber alice 13 juniper
gus 7 ivan 23 jules 38 gus 63 chen 68 farah 72 alice 85
farah 24 amber gus 16 ember ivan 11 amber bruno 8 grove lina 26 juniper lina 27 ember
farah 24 gus 40 ivan 51 bruno 59 lina 85 lina 112
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038043-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}
gus 7 indigo ivan 16 ember jules 15 harbor gus 25 juniper chen 5 indigo farah 4 amber alice 13 juniper
gus 7 ivan 23 jules 38 gus 63 chen 68 farah 72 alice 85
farah 24 amber gus 16 ember ivan 11 amber bruno 8 grove lina 26 juniper lina 27 ember
farah 24 gus 40 ivan 51 bruno 59 lina 85 lina 112
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038043
qwen/qwen3.7-plus
awkweave-0038044
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
chen 18 11 birch farah 17 3 indigo hana 26 30 delta farah 25 27 indigo alice 1 2 grove lina 27 30 indigo chen 16 30 amber lina 10 29 grove
chen 29 farah 20 hana 56 farah 52 alice 3 lina 57 chen 46 lina 39
alice 3 22 amber bruno 7 8 cobalt chen 25 20 amber gus 15 11 fable farah 1 24 juniper chen 27 22 birch
alice 25 bruno 15 chen 45 gus 26 farah 25 chen 49
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038044-p1
Display the first field followed by the sum of the second and third fields for each row.
{print $1,$2+$3}
chen 18 11 birch farah 17 3 indigo hana 26 30 delta farah 25 27 indigo alice 1 2 grove lina 27 30 indigo chen 16 30 amber lina 10 29 grove
chen 29 farah 20 hana 56 farah 52 alice 3 lina 57 chen 46 lina 39
alice 3 22 amber bruno 7 8 cobalt chen 25 20 amber gus 15 11 fable farah 1 24 juniper chen 27 22 birch
alice 25 bruno 15 chen 45 gus 26 farah 25 chen 49
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038044
qwen/qwen3.7-plus
awkweave-0038045
Print column 1 and pass when column 2 is at least 22; otherwise print fail.
{print $1,($2>=22?"pass":"fail")}
bruno 21 dina 20 farah 14 eli 30 kim 27 hana 18 dina 10 lina 19 chen 3 chen 9
bruno fail dina fail farah fail eli pass kim pass hana fail dina fail lina fail chen fail chen fail
gus 16 farah 11 bruno 24 dina 27 ivan 8 eli 1 jules 7 dina 14 jules 13
gus fail farah fail bruno pass dina pass ivan fail eli fail jules fail dina fail jules fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038045-p1
Print the first column along with 'pass' if the second column is 22 or greater, otherwise print 'fail'.
{print $1,($2>=22?"pass":"fail")}
bruno 21 dina 20 farah 14 eli 30 kim 27 hana 18 dina 10 lina 19 chen 3 chen 9
bruno fail dina fail farah fail eli pass kim pass hana fail dina fail lina fail chen fail chen fail
gus 16 farah 11 bruno 24 dina 27 ivan 8 eli 1 jules 7 dina 14 jules 13
gus fail farah fail bruno pass dina pass ivan fail eli fail jules fail dina fail jules fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038045
qwen/qwen3.7-plus
awkweave-0038046
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
gus harbor 68 alice amber 12 chen cobalt 36 hana delta 52 ivan grove 58 jules ember 43 hana birch 36 ivan delta 77 jules harbor 115 gus amber 102
GUS ALICE CHEN HANA IVAN JULES HANA IVAN JULES GUS
farah amber 33 bruno indigo 82 chen amber 49 bruno juniper 34 chen ember 56 dina birch 60 bruno ember 99 kim delta 94 gus birch 68 ivan birch 100
FARAH BRUNO CHEN BRUNO CHEN DINA BRUNO KIM GUS IVAN
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038046-p1
Transform the first column to uppercase letters and output only that column.
{print toupper($1)}
gus harbor 68 alice amber 12 chen cobalt 36 hana delta 52 ivan grove 58 jules ember 43 hana birch 36 ivan delta 77 jules harbor 115 gus amber 102
GUS ALICE CHEN HANA IVAN JULES HANA IVAN JULES GUS
farah amber 33 bruno indigo 82 chen amber 49 bruno juniper 34 chen ember 56 dina birch 60 bruno ember 99 kim delta 94 gus birch 68 ivan birch 100
FARAH BRUNO CHEN BRUNO CHEN DINA BRUNO KIM GUS IVAN
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038046
qwen/qwen3.7-plus
awkweave-0038047
From column 1, print 2 characters starting at character 3.
{print substr($1,3,2)}
birch 3 harbor 68 ember 101 birch 108 delta 120 grove 38 juniper 108 harbor 63 amber 105 indigo 49
rc rb be rc lt ov ni rb be di
grove 24 amber 29 cobalt 59 delta 2 cobalt 98 indigo 35 ember 28 fable 102 cobalt 106
ov be ba lt ba di be bl ba
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038047-p1
Extract and print a substring of length 2 from the first column, starting at the third character.
{print substr($1,3,2)}
birch 3 harbor 68 ember 101 birch 108 delta 120 grove 38 juniper 108 harbor 63 amber 105 indigo 49
rc rb be rc lt ov ni rb be di
grove 24 amber 29 cobalt 59 delta 2 cobalt 98 indigo 35 ember 28 fable 102 cobalt 106
ov be ba lt ba di be bl ba
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038047
qwen/qwen3.7-plus
awkweave-0038048
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
indigo_harbor 34 birch_delta 32 harbor_birch 33 fable_indigo 45 cobalt_delta 72 grove_ember 34 grove_delta 116 harbor_juniper 73
indigo harbor birch delta harbor birch fable indigo cobalt delta grove ember grove delta harbor juniper
amber_indigo 53 ember_amber 18 amber_harbor 85 grove_birch 22 birch_fable 81 harbor_fable 38 delta_delta 71 ember_birch 88 delta_grove 46
amber indigo ember amber amber harbor grove birch birch fable harbor fable delta delta ember birch delta grove
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038048-p1
Substitute all underscores with spaces in the first column and output the modified values.
{gsub(/_/," ",$1);print $1}
indigo_harbor 34 birch_delta 32 harbor_birch 33 fable_indigo 45 cobalt_delta 72 grove_ember 34 grove_delta 116 harbor_juniper 73
indigo harbor birch delta harbor birch fable indigo cobalt delta grove ember grove delta harbor juniper
amber_indigo 53 ember_amber 18 amber_harbor 85 grove_birch 22 birch_fable 81 harbor_fable 38 delta_delta 71 ember_birch 88 delta_grove 46
amber indigo ember amber amber harbor grove birch birch fable harbor fable delta delta ember birch delta grove
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038048
qwen/qwen3.7-plus
awkweave-0038049
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 juniper 52 active hana juniper 23 ready ivan grove 89 paused gus amber 101 ready gus birch 114 ready jules birch 52 pending bruno grove 53 ready jules juniper 47 pending farah juniper 3 failed lina amber 104 failed
active 52 juniper dina ready 23 juniper hana paused 89 grove ivan ready 101 amber gus ready 114 birch gus pending 52 birch jules ready 53 grove bruno pending 47 juniper jules failed 3 juniper farah failed 104 amber lina
alice fable 79 closed lina birch 15 active chen juniper 80 paused dina harbor 120 paused dina fable 5 active farah harbor 56 failed dina indigo 87 pending
closed 79 fable alice active 15 birch lina paused 80 juniper chen paused 120 harbor dina active 5 fable dina failed 56 harbor farah pending 87 indigo dina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038049-p1
Reverse the sequence of fields for each line and display every field.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
dina juniper 52 active hana juniper 23 ready ivan grove 89 paused gus amber 101 ready gus birch 114 ready jules birch 52 pending bruno grove 53 ready jules juniper 47 pending farah juniper 3 failed lina amber 104 failed
active 52 juniper dina ready 23 juniper hana paused 89 grove ivan ready 101 amber gus ready 114 birch gus pending 52 birch jules ready 53 grove bruno pending 47 juniper jules failed 3 juniper farah failed 104 amber lina
alice fable 79 closed lina birch 15 active chen juniper 80 paused dina harbor 120 paused dina fable 5 active farah harbor 56 failed dina indigo 87 pending
closed 79 fable alice active 15 birch lina paused 80 juniper chen paused 120 harbor dina active 5 fable dina failed 56 harbor farah pending 87 indigo dina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038049
qwen/qwen3.7-plus
awkweave-0038050
Print the number of whitespace-separated fields on each line.
{print NF}
hana grove 96 ready hana juniper 102 paused alice indigo 35 closed lina cobalt 69 paused dina delta 14 closed jules indigo 53 pending ivan grove 20 ready farah delta 58 failed kim juniper 73 paused
4 4 4 4 4 4 4 4 4
bruno fable 111 paused lina birch 44 ready kim fable 4 pending chen amber 100 failed gus harbor 39 paused alice ember 4 closed
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0038050-p1
Output the count of whitespace-delimited fields present on each line.
{print NF}
hana grove 96 ready hana juniper 102 paused alice indigo 35 closed lina cobalt 69 paused dina delta 14 closed jules indigo 53 pending ivan grove 20 ready farah delta 58 failed kim juniper 73 paused
4 4 4 4 4 4 4 4 4
bruno fable 111 paused lina birch 44 ready kim fable 4 pending chen amber 100 failed gus harbor 39 paused alice ember 4 closed
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0038050
qwen/qwen3.7-plus
awkweave-0038051
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
lina gamma 34 chen delta 36 lina beta 116 jules delta 110 alice alpha 97 alice delta 79 chen gamma 50 gus gamma 60 dina gamma 50
gamma 4 delta 3 beta 1 alpha 1
gus delta 120 ivan alpha 33 gus gamma 77 lina delta 85 hana gamma 45 chen beta 15 dina gamma 39 lina delta 89
delta 3 alpha 1 gamma 3 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null