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-0016160-p1
Identify and print the maximum numeric value present in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
15 cobalt bruno 25 ember chen 11 birch kim 6 cobalt dina 15 cobalt lina 5 delta ivan 9 ember hana
25
26 delta bruno 4 cobalt hana 3 cobalt farah 28 birch farah 26 fable hana 25 delta chen 9 cobalt bruno 22 amber farah 18 amber lina
28
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016160
qwen/qwen3.7-plus
awkweave-0016161
Count all input records and print the total.
END{print NR}
bruno 29 lina 87 ivan 41 ivan 102 lina 71 gus 23 dina 49
7
alice 71 eli 118 alice 53 kim 58 kim 86 ivan 26
6
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016161-p1
Count the total number of input records and print the result.
END{print NR}
bruno 29 lina 87 ivan 41 ivan 102 lina 71 gus 23 dina 49
7
alice 71 eli 118 alice 53 kim 58 kim 86 ivan 26
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016161
qwen/qwen3.7-plus
awkweave-0016162
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
farah cobalt 89 eli ember 46 bruno fable 110 farah cobalt 89 lina ember 116 alice juniper 54 dina fable 57
farah cobalt 89 eli ember 46 bruno fable 110 lina ember 116 alice juniper 54 dina fable 57
lina harbor 102 ivan harbor 72 jules amber 107 jules ember 88 jules ember 88 bruno amber 120 jules indigo 111 dina cobalt 68
lina harbor 102 ivan harbor 72 jules amber 107 jules ember 88 bruno amber 120 jules indigo 111 dina cobalt 68
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016162-p1
Eliminate exact duplicate lines while maintaining the original order and keeping the first instance of each.
!seen[$0]++
farah cobalt 89 eli ember 46 bruno fable 110 farah cobalt 89 lina ember 116 alice juniper 54 dina fable 57
farah cobalt 89 eli ember 46 bruno fable 110 lina ember 116 alice juniper 54 dina fable 57
lina harbor 102 ivan harbor 72 jules amber 107 jules ember 88 jules ember 88 bruno amber 120 jules indigo 111 dina cobalt 68
lina harbor 102 ivan harbor 72 jules amber 107 jules ember 88 bruno amber 120 jules indigo 111 dina cobalt 68
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016162
qwen/qwen3.7-plus
awkweave-0016163
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
ivan harbor 2 alice amber 65 dina amber 96 ivan grove 8 eli ember 17 alice fable 96 hana fable 51 gus fable 10 eli birch 10
ivan harbor 2 alice amber 65 dina amber 96 ivan grove 8 eli ember 17 hana fable 51 gus fable 10
hana ember 22 hana fable 50 hana juniper 33 hana cobalt 33 hana indigo 76 chen birch 95
hana ember 22 hana fable 50 hana juniper 33 hana indigo 76 chen birch 95
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016163-p1
Retain only the first occurrence for each unique value in column 3, preserving the original sequence.
!seen[$3]++
ivan harbor 2 alice amber 65 dina amber 96 ivan grove 8 eli ember 17 alice fable 96 hana fable 51 gus fable 10 eli birch 10
ivan harbor 2 alice amber 65 dina amber 96 ivan grove 8 eli ember 17 hana fable 51 gus fable 10
hana ember 22 hana fable 50 hana juniper 33 hana cobalt 33 hana indigo 76 chen birch 95
hana ember 22 hana fable 50 hana juniper 33 hana indigo 76 chen birch 95
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016163
qwen/qwen3.7-plus
awkweave-0016164
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
dina 7 fable bruno 29 amber kim 12 ember lina 5 ember bruno 28 indigo bruno 7 birch gus 25 indigo eli 24 indigo
dina 7 bruno 36 kim 48 lina 53 bruno 81 bruno 88 gus 113 eli 137
alice 11 grove hana 1 amber ivan 12 birch jules 24 grove alice 30 juniper chen 27 birch chen 9 grove kim 17 fable chen 7 ember chen 15 fable
alice 11 hana 12 ivan 24 jules 48 alice 78 chen 105 chen 114 kim 131 chen 138 chen 153
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016164-p1
For each entry, output column 1 alongside the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
dina 7 fable bruno 29 amber kim 12 ember lina 5 ember bruno 28 indigo bruno 7 birch gus 25 indigo eli 24 indigo
dina 7 bruno 36 kim 48 lina 53 bruno 81 bruno 88 gus 113 eli 137
alice 11 grove hana 1 amber ivan 12 birch jules 24 grove alice 30 juniper chen 27 birch chen 9 grove kim 17 fable chen 7 ember chen 15 fable
alice 11 hana 12 ivan 24 jules 48 alice 78 chen 105 chen 114 kim 131 chen 138 chen 153
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016164
qwen/qwen3.7-plus
awkweave-0016165
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
gus 12 18 cobalt jules 12 5 ember dina 27 22 ember lina 16 9 juniper jules 15 30 juniper dina 14 14 amber
gus 30 jules 17 dina 49 lina 25 jules 45 dina 28
lina 5 4 delta lina 15 8 fable eli 30 29 harbor kim 1 18 amber chen 10 12 grove eli 21 12 indigo lina 21 30 juniper alice 3 26 birch gus 3 7 cobalt
lina 9 lina 23 eli 59 kim 19 chen 22 eli 33 lina 51 alice 29 gus 10
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016165-p1
For each row, output field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
gus 12 18 cobalt jules 12 5 ember dina 27 22 ember lina 16 9 juniper jules 15 30 juniper dina 14 14 amber
gus 30 jules 17 dina 49 lina 25 jules 45 dina 28
lina 5 4 delta lina 15 8 fable eli 30 29 harbor kim 1 18 amber chen 10 12 grove eli 21 12 indigo lina 21 30 juniper alice 3 26 birch gus 3 7 cobalt
lina 9 lina 23 eli 59 kim 19 chen 22 eli 33 lina 51 alice 29 gus 10
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016165
qwen/qwen3.7-plus
awkweave-0016166
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
lina 17 hana 10 eli 12 bruno 5 farah 27 farah 18 gus 15 chen 29
lina fail hana fail eli fail bruno fail farah pass farah fail gus fail chen pass
lina 6 kim 3 ivan 26 farah 20 farah 30 alice 9
lina fail kim fail ivan pass farah fail farah pass alice fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016166-p1
Output the value in column 1, followed by 'pass' if column 2 is greater than or equal to 25, or 'fail' otherwise.
{print $1,($2>=25?"pass":"fail")}
lina 17 hana 10 eli 12 bruno 5 farah 27 farah 18 gus 15 chen 29
lina fail hana fail eli fail bruno fail farah pass farah fail gus fail chen pass
lina 6 kim 3 ivan 26 farah 20 farah 30 alice 9
lina fail kim fail ivan pass farah fail farah pass alice fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016166
qwen/qwen3.7-plus
awkweave-0016167
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
hana birch 45 jules ember 105 gus cobalt 78 bruno indigo 2 bruno indigo 69 lina fable 7 ivan cobalt 109 eli cobalt 13 alice fable 96 bruno fable 88
HANA JULES GUS BRUNO BRUNO LINA IVAN ELI ALICE BRUNO
dina indigo 41 jules juniper 61 alice ember 96 bruno fable 54 gus delta 10 farah birch 75 chen ember 65 jules juniper 93 jules harbor 86
DINA JULES ALICE BRUNO GUS FARAH CHEN JULES JULES
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016167-p1
Transform column 1 to uppercase and output only that modified column.
{print toupper($1)}
hana birch 45 jules ember 105 gus cobalt 78 bruno indigo 2 bruno indigo 69 lina fable 7 ivan cobalt 109 eli cobalt 13 alice fable 96 bruno fable 88
HANA JULES GUS BRUNO BRUNO LINA IVAN ELI ALICE BRUNO
dina indigo 41 jules juniper 61 alice ember 96 bruno fable 54 gus delta 10 farah birch 75 chen ember 65 jules juniper 93 jules harbor 86
DINA JULES ALICE BRUNO GUS FARAH CHEN JULES JULES
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016167
qwen/qwen3.7-plus
awkweave-0016168
From column 1, print 2 characters starting at character 1.
{print substr($1,1,2)}
fable 80 harbor 70 juniper 59 delta 87 ember 17 fable 24 harbor 48 juniper 61
fa ha ju de em fa ha ju
cobalt 40 birch 11 cobalt 67 delta 85 amber 118 delta 65 juniper 25 indigo 32
co bi co de am de ju in
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016168-p1
Extract and print a substring of length 2 from column 1, starting at index 1.
{print substr($1,1,2)}
fable 80 harbor 70 juniper 59 delta 87 ember 17 fable 24 harbor 48 juniper 61
fa ha ju de em fa ha ju
cobalt 40 birch 11 cobalt 67 delta 85 amber 118 delta 65 juniper 25 indigo 32
co bi co de am de ju in
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016168
qwen/qwen3.7-plus
awkweave-0016169
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
birch_birch 102 juniper_harbor 53 indigo_birch 7 cobalt_grove 2 juniper_harbor 16 birch_juniper 113 grove_ember 9 harbor_amber 0
birch birch juniper harbor indigo birch cobalt grove juniper harbor birch juniper grove ember harbor amber
ember_fable 8 harbor_ember 70 ember_juniper 38 ember_harbor 88 cobalt_fable 21 birch_cobalt 57
ember fable harbor ember ember juniper ember harbor cobalt fable birch cobalt
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016169-p1
Substitute all underscores in column 1 with spaces and display the results.
{gsub(/_/," ",$1);print $1}
birch_birch 102 juniper_harbor 53 indigo_birch 7 cobalt_grove 2 juniper_harbor 16 birch_juniper 113 grove_ember 9 harbor_amber 0
birch birch juniper harbor indigo birch cobalt grove juniper harbor birch juniper grove ember harbor amber
ember_fable 8 harbor_ember 70 ember_juniper 38 ember_harbor 88 cobalt_fable 21 birch_cobalt 57
ember fable harbor ember ember juniper ember harbor cobalt fable birch cobalt
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016169
qwen/qwen3.7-plus
awkweave-0016170
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)}
chen fable 105 closed eli fable 76 failed gus indigo 114 failed kim cobalt 30 closed gus grove 60 closed lina juniper 36 paused hana indigo 24 pending jules fable 82 ready kim indigo 34 pending
closed 105 fable chen failed 76 fable eli failed 114 indigo gus closed 30 cobalt kim closed 60 grove gus paused 36 juniper lina pending 24 indigo hana ready 82 fable jules pending 34 indigo kim
bruno fable 119 failed dina ember 33 paused ivan harbor 107 ready ivan juniper 50 active farah delta 25 paused kim cobalt 12 paused chen cobalt 16 pending ivan fable 6 closed alice birch 7 active jules grove 103 closed
failed 119 fable bruno paused 33 ember dina ready 107 harbor ivan active 50 juniper ivan paused 25 delta farah paused 12 cobalt kim pending 16 cobalt chen closed 6 fable ivan active 7 birch alice closed 103 grove jules
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016170-p1
Reverse the sequence of fields for each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
chen fable 105 closed eli fable 76 failed gus indigo 114 failed kim cobalt 30 closed gus grove 60 closed lina juniper 36 paused hana indigo 24 pending jules fable 82 ready kim indigo 34 pending
closed 105 fable chen failed 76 fable eli failed 114 indigo gus closed 30 cobalt kim closed 60 grove gus paused 36 juniper lina pending 24 indigo hana ready 82 fable jules pending 34 indigo kim
bruno fable 119 failed dina ember 33 paused ivan harbor 107 ready ivan juniper 50 active farah delta 25 paused kim cobalt 12 paused chen cobalt 16 pending ivan fable 6 closed alice birch 7 active jules grove 103 closed
failed 119 fable bruno paused 33 ember dina ready 107 harbor ivan active 50 juniper ivan paused 25 delta farah paused 12 cobalt kim pending 16 cobalt chen closed 6 fable ivan active 7 birch alice closed 103 grove jules
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016170
qwen/qwen3.7-plus
awkweave-0016171
Print the number of whitespace-separated fields on each line.
{print NF}
chen delta 87 paused eli ember 17 pending kim grove 64 closed dina cobalt 110 paused bruno harbor 1 pending chen juniper 48 pending
4 4 4 4 4 4
eli birch 13 ready gus amber 11 ready ivan delta 41 failed lina cobalt 29 closed chen grove 85 paused gus fable 46 pending farah indigo 69 ready lina ember 100 paused farah birch 6 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016171-p1
Output the count of whitespace-delimited fields present on each line.
{print NF}
chen delta 87 paused eli ember 17 pending kim grove 64 closed dina cobalt 110 paused bruno harbor 1 pending chen juniper 48 pending
4 4 4 4 4 4
eli birch 13 ready gus amber 11 ready ivan delta 41 failed lina cobalt 29 closed chen grove 85 paused gus fable 46 pending farah indigo 69 ready lina ember 100 paused farah birch 6 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016171
qwen/qwen3.7-plus
awkweave-0016172
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]]}
jules beta 41 hana beta 39 jules delta 24 alice gamma 71 hana alpha 66 kim alpha 49 chen gamma 103
beta 2 delta 1 gamma 2 alpha 2
gus beta 36 dina delta 73 farah beta 3 eli delta 65 alice alpha 25 farah delta 61
beta 2 delta 3 alpha 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016172-p1
Tally the occurrences of each unique value in column 2 and print each value alongside its count, maintaining the 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]]}
jules beta 41 hana beta 39 jules delta 24 alice gamma 71 hana alpha 66 kim alpha 49 chen gamma 103
beta 2 delta 1 gamma 2 alpha 2
gus beta 36 dina delta 73 farah beta 3 eli delta 65 alice alpha 25 farah delta 61
beta 2 delta 3 alpha 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016172
qwen/qwen3.7-plus
awkweave-0016173
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]]}
eli delta 11 jules alpha 14 bruno alpha 25 chen delta 15 dina beta 23 lina gamma 10
delta 26 alpha 39 beta 23 gamma 10
gus delta 23 ivan delta 27 ivan delta 26 farah delta 4 gus beta 7 chen alpha 11
delta 80 beta 7 alpha 11
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016173-p1
Calculate the sum of column 3 grouped by column 2 values, displaying the results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
eli delta 11 jules alpha 14 bruno alpha 25 chen delta 15 dina beta 23 lina gamma 10
delta 26 alpha 39 beta 23 gamma 10
gus delta 23 ivan delta 27 ivan delta 26 farah delta 4 gus beta 7 chen alpha 11
delta 80 beta 7 alpha 11
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016173
qwen/qwen3.7-plus
awkweave-0016174
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]]}
beta birch 67 gamma indigo 35 beta amber 67 delta fable 26 alpha juniper 76 alpha cobalt 21 beta delta 67 beta cobalt 20
beta 4 alpha 2
gamma ember 61 delta indigo 116 beta indigo 48 alpha birch 102 gamma delta 23 beta indigo 106 beta harbor 61
gamma 2 beta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016174-p1
Identify duplicate values in column 1 and print each repeated value with its frequency, ordered by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta birch 67 gamma indigo 35 beta amber 67 delta fable 26 alpha juniper 76 alpha cobalt 21 beta delta 67 beta cobalt 20
beta 4 alpha 2
gamma ember 61 delta indigo 116 beta indigo 48 alpha birch 102 gamma delta 23 beta indigo 106 beta harbor 61
gamma 2 beta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016174
qwen/qwen3.7-plus
awkweave-0016175
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 state record_id region r001 eli 11 closed r002 kim 22 active r003 chen 12 closed r004 dina 2 closed r005 alice 9 pending r006 farah 6 active r007 farah 28 active r008 gus 9 closed
closed active closed closed pending active active closed
note state record_id region r001 jules 13 ready r002 lina 10 ready r003 ivan 2 failed r004 gus 11 closed r005 dina 14 failed r006 eli 8 failed
ready ready failed closed failed failed
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016175-p1
Skip the header row and output the 'region' column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
note state record_id region r001 eli 11 closed r002 kim 22 active r003 chen 12 closed r004 dina 2 closed r005 alice 9 pending r006 farah 6 active r007 farah 28 active r008 gus 9 closed
closed active closed closed pending active active closed
note state record_id region r001 jules 13 ready r002 lina 10 ready r003 ivan 2 failed r004 gus 11 closed r005 dina 14 failed r006 eli 8 failed
ready ready failed closed failed failed
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016175
qwen/qwen3.7-plus
awkweave-0016176
The first row is a header. Print display_name for data rows whose score is greater than 22.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]}
record_id display_name score state r001 bruno 29 ready r002 dina 28 failed r003 hana 25 ready r004 eli 24 paused r005 gus 9 pending r006 kim 6 active r007 dina 22 ready
bruno dina hana eli
record_id display_name score state r001 hana 17 pending r002 bruno 7 failed r003 ivan 28 failed r004 ivan 30 pending r005 jules 10 active r006 alice 4 pending r007 bruno 23 ready r008 lina 25 failed
ivan ivan bruno lina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016176-p1
Ignoring the header row, output the 'display_name' column for records where the 'score' exceeds 22.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]}
record_id display_name score state r001 bruno 29 ready r002 dina 28 failed r003 hana 25 ready r004 eli 24 paused r005 gus 9 pending r006 kim 6 active r007 dina 22 ready
bruno dina hana eli
record_id display_name score state r001 hana 17 pending r002 bruno 7 failed r003 ivan 28 failed r004 ivan 30 pending r005 jules 10 active r006 alice 4 pending r007 bruno 23 ready r008 lina 25 failed
ivan ivan bruno lina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016176
qwen/qwen3.7-plus
awkweave-0016177
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
chen 11 failed jules 12 failed farah 26 closed gus 8 active lina 23 failed lina 30 failed dina 18 ready dina 22 active alice 24 closed
11 12 26 8 23 30 18 22 24
alice 3 active jules 10 paused bruno 9 closed kim 5 active gus 20 active farah 9 closed gus 2 active ivan 4 ready farah 23 ready lina 19 pending
3 10 9 5 20 9 2 4 23 19
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016177-p1
Given tab-separated input, extract and print the second column from every record.
BEGIN{FS=OFS="\t"}{print $2}
chen 11 failed jules 12 failed farah 26 closed gus 8 active lina 23 failed lina 30 failed dina 18 ready dina 22 active alice 24 closed
11 12 26 8 23 30 18 22 24
alice 3 active jules 10 paused bruno 9 closed kim 5 active gus 20 active farah 9 closed gus 2 active ivan 4 ready farah 23 ready lina 19 pending
3 10 9 5 20 9 2 4 23 19
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016177
qwen/qwen3.7-plus
awkweave-0016178
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 17.
BEGIN{FS=OFS=","}$2>17{print $1}
lina,12,active farah,30,paused ivan,15,closed alice,12,pending kim,12,failed chen,3,active lina,25,pending
farah lina
ivan,18,ready alice,15,failed eli,2,paused farah,12,closed bruno,29,ready jules,21,closed dina,13,closed bruno,8,failed
ivan bruno jules
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016178-p1
Given simple comma-separated input without quoted commas, output the first field whenever the second field is greater than 17.
BEGIN{FS=OFS=","}$2>17{print $1}
lina,12,active farah,30,paused ivan,15,closed alice,12,pending kim,12,failed chen,3,active lina,25,pending
farah lina
ivan,18,ready alice,15,failed eli,2,paused farah,12,closed bruno,29,ready jules,21,closed dina,13,closed bruno,8,failed
ivan bruno jules
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016178
qwen/qwen3.7-plus
awkweave-0016179
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
alice fable 12 farah fable 20 eli grove 107 chen ember 22 eli delta 25 gus birch 87 jules delta 7 alice grove 54 farah delta 2 alice ember 85
alice fable 12 farah fable 20 eli grove 107 chen ember 22 eli delta 25 gus birch 87 jules delta 7 alice grove 54 farah delta 2 alice ember 85
chen birch 57 farah indigo 101 alice cobalt 19 farah birch 5 gus grove 60 lina grove 7 bruno indigo 30 lina juniper 107
chen birch 57 farah indigo 101 alice cobalt 19 farah birch 5 gus grove 60 lina grove 7 bruno indigo 30 lina juniper 107
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016179-p1
Remove leading and trailing whitespace from each line and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
alice fable 12 farah fable 20 eli grove 107 chen ember 22 eli delta 25 gus birch 87 jules delta 7 alice grove 54 farah delta 2 alice ember 85
alice fable 12 farah fable 20 eli grove 107 chen ember 22 eli delta 25 gus birch 87 jules delta 7 alice grove 54 farah delta 2 alice ember 85
chen birch 57 farah indigo 101 alice cobalt 19 farah birch 5 gus grove 60 lina grove 7 bruno indigo 30 lina juniper 107
chen birch 57 farah indigo 101 alice cobalt 19 farah birch 5 gus grove 60 lina grove 7 bruno indigo 30 lina juniper 107
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016179
qwen/qwen3.7-plus
awkweave-0016180
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
lina delta 47 paused farah ember 51 closed chen cobalt 104 paused farah birch 97 closed gus birch 62 closed gus fable 14 active kim grove 90 ready chen harbor 111 paused eli delta 9 paused bruno delta 2 closed
chen cobalt 104 paused
alice birch 45 paused ivan indigo 44 failed bruno grove 2 ready eli indigo 76 active lina harbor 107 pending jules harbor 16 active dina indigo 80 active bruno juniper 101 paused chen delta 87 closed
bruno juniper 101 paused
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016180-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}
lina delta 47 paused farah ember 51 closed chen cobalt 104 paused farah birch 97 closed gus birch 62 closed gus fable 14 active kim grove 90 ready chen harbor 111 paused eli delta 9 paused bruno delta 2 closed
chen cobalt 104 paused
alice birch 45 paused ivan indigo 44 failed bruno grove 2 ready eli indigo 76 active lina harbor 107 pending jules harbor 16 active dina indigo 80 active bruno juniper 101 paused chen delta 87 closed
bruno juniper 101 paused
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016180
qwen/qwen3.7-plus
awkweave-0016181
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
gus 78 hana 52 lina 81 hana 39 hana 26 bruno 37 jules 5
hana 52 hana 39 bruno 37
gus 35 jules 64 dina 25 jules 3 bruno 32 gus 32 kim 90 hana 56 chen 94 gus 93
jules 64 jules 3 gus 32 hana 56 gus 93
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016181-p1
Output every even-numbered line, starting with line 2 (i.e., lines 2, 4, 6, etc.).
NR%2==0
gus 78 hana 52 lina 81 hana 39 hana 26 bruno 37 jules 5
hana 52 hana 39 bruno 37
gus 35 jules 64 dina 25 jules 3 bruno 32 gus 32 kim 90 hana 56 chen 94 gus 93
jules 64 jules 3 gus 32 hana 56 gus 93
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016181
qwen/qwen3.7-plus
awkweave-0016182
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
delta ember 73 gamma amber 74 delta grove 75 delta cobalt 25 beta indigo 8 delta harbor 36 beta harbor 24 beta cobalt 22 gamma ember 46
3
alpha ember 7 delta juniper 88 gamma birch 27 beta indigo 40 delta amber 90 beta delta 10 gamma birch 54 delta birch 114
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016182-p1
Calculate the number of unique values present in the first column and output only this total count.
{if(!seen[$1]++)n++}END{print n+0}
delta ember 73 gamma amber 74 delta grove 75 delta cobalt 25 beta indigo 8 delta harbor 36 beta harbor 24 beta cobalt 22 gamma ember 46
3
alpha ember 7 delta juniper 88 gamma birch 27 beta indigo 40 delta amber 90 beta delta 10 gamma birch 54 delta birch 114
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016182
qwen/qwen3.7-plus
awkweave-0016183
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}
gus 1 0 alice 7 10 farah 19 20 jules 27 7 eli 29 7 hana 13 6
alice 0.70 farah 0.95 jules 3.86 eli 4.14 hana 2.17
farah 19 0 eli 12 13 alice 9 18 gus 29 29 farah 18 25 ivan 20 30 alice 3 22
eli 0.92 alice 0.50 gus 1.00 farah 0.72 ivan 0.67 alice 0.14
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016183-p1
For each row where the third column is non-zero, output 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}
gus 1 0 alice 7 10 farah 19 20 jules 27 7 eli 29 7 hana 13 6
alice 0.70 farah 0.95 jules 3.86 eli 4.14 hana 2.17
farah 19 0 eli 12 13 alice 9 18 gus 29 29 farah 18 25 ivan 20 30 alice 3 22
eli 0.92 alice 0.50 gus 1.00 farah 0.72 ivan 0.67 alice 0.14
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016183
qwen/qwen3.7-plus
awkweave-0016184
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
kim delta 15 gus delta 1 kim cobalt 1 dina harbor 15 dina harbor 6 gus delta 8 bruno indigo 4 farah grove 8 gus cobalt 20
gus cobalt 20 kim delta 15 dina harbor 15
ivan juniper 25 alice grove 6 dina harbor 8 lina delta 7 chen grove 2 hana fable 11
ivan juniper 25 hana fable 11 dina harbor 8
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016184-p1
Output the three records with the highest numeric values in the third column, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
kim delta 15 gus delta 1 kim cobalt 1 dina harbor 15 dina harbor 6 gus delta 8 bruno indigo 4 farah grove 8 gus cobalt 20
gus cobalt 20 kim delta 15 dina harbor 15
ivan juniper 25 alice grove 6 dina harbor 8 lina delta 7 chen grove 2 hana fable 11
ivan juniper 25 hana fable 11 dina harbor 8
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016184
qwen/qwen3.7-plus
awkweave-0016185
Print column 4 followed by column 1 for every record.
{print $4, $1}
89 pending 102 ember 67 closed 39 harbor 50 ready 33 ember 42 failed 76 juniper 55 active 1 juniper 98 failed 18 amber 49 active 98 harbor 8 failed 55 grove 112 paused 101 birch
ember 89 harbor 67 ember 50 juniper 42 juniper 55 amber 98 harbor 49 grove 8 birch 112
6 pending 110 juniper 9 failed 46 delta 61 paused 64 cobalt 86 ready 15 birch 111 failed 77 amber 85 closed 41 amber
juniper 6 delta 9 cobalt 61 birch 86 amber 111 amber 85
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016185-p1
For every record, output the fourth field followed by the first field.
{print $4, $1}
89 pending 102 ember 67 closed 39 harbor 50 ready 33 ember 42 failed 76 juniper 55 active 1 juniper 98 failed 18 amber 49 active 98 harbor 8 failed 55 grove 112 paused 101 birch
ember 89 harbor 67 ember 50 juniper 42 juniper 55 amber 98 harbor 49 grove 8 birch 112
6 pending 110 juniper 9 failed 46 delta 61 paused 64 cobalt 86 ready 15 birch 111 failed 77 amber 85 closed 41 amber
juniper 6 delta 9 cobalt 61 birch 86 amber 111 amber 85
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016185
qwen/qwen3.7-plus
awkweave-0016186
Print the last field of every input line.
{print $NF}
fable harbor 108 40 109 failed 94 cobalt delta 92 115 5 ready 75 indigo delta 75 12 37 pending 65 cobalt grove 90 40 115 closed 47 amber delta 102 44 61 pending 106 juniper cobalt 84 55 120 closed 113 harbor cobalt 108 68 70 pending 82
94 75 65 47 106 113 82
indigo fable 116 110 105 closed 12 birch ember 46 47 36 closed 104 amber grove 108 102 81 active 104 delta delta 0 103 59 failed 5 fable delta 90 83 35 pending 76 amber fable 81 98 97 ready 113 ember cobalt 40 49 70 closed 70
12 104 104 5 76 113 70
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016186-p1
Output the final field from each line of input.
{print $NF}
fable harbor 108 40 109 failed 94 cobalt delta 92 115 5 ready 75 indigo delta 75 12 37 pending 65 cobalt grove 90 40 115 closed 47 amber delta 102 44 61 pending 106 juniper cobalt 84 55 120 closed 113 harbor cobalt 108 68 70 pending 82
94 75 65 47 106 113 82
indigo fable 116 110 105 closed 12 birch ember 46 47 36 closed 104 amber grove 108 102 81 active 104 delta delta 0 103 59 failed 5 fable delta 90 83 35 pending 76 amber fable 81 98 97 ready 113 ember cobalt 40 49 70 closed 70
12 104 104 5 76 113 70
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016186
qwen/qwen3.7-plus
awkweave-0016187
Print the complete records where column 2 is at least 44.
$2 >= 44
amber 90 ember juniper 71 fable delta 0 cobalt indigo 53 juniper grove 88 indigo juniper 1 cobalt birch 44 fable juniper 55 harbor cobalt 20 birch ember 112 juniper
amber 90 ember juniper 71 fable indigo 53 juniper grove 88 indigo birch 44 fable juniper 55 harbor ember 112 juniper
birch 17 ember cobalt 94 ember indigo 111 harbor cobalt 15 birch cobalt 106 delta fable 66 birch harbor 28 ember fable 102 delta harbor 19 ember
cobalt 94 ember indigo 111 harbor cobalt 106 delta fable 66 birch fable 102 delta
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016187-p1
Output the full records for which the value in the second column is greater than or equal to 44.
$2 >= 44
amber 90 ember juniper 71 fable delta 0 cobalt indigo 53 juniper grove 88 indigo juniper 1 cobalt birch 44 fable juniper 55 harbor cobalt 20 birch ember 112 juniper
amber 90 ember juniper 71 fable indigo 53 juniper grove 88 indigo birch 44 fable juniper 55 harbor ember 112 juniper
birch 17 ember cobalt 94 ember indigo 111 harbor cobalt 15 birch cobalt 106 delta fable 66 birch harbor 28 ember fable 102 delta harbor 19 ember
cobalt 94 ember indigo 111 harbor cobalt 106 delta fable 66 birch fable 102 delta
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016187
qwen/qwen3.7-plus
awkweave-0016188
Show whole lines whose 1st field is between 7 and 19, inclusive.
$1 >= 7 && $1 <= 19
26 closed paused cobalt 8 closed ready amber 3 failed pending grove 14 pending paused birch 10 closed paused delta 2 closed ready ember 10 pending pending ember 15 ready paused harbor
8 closed ready amber 14 pending paused birch 10 closed paused delta 10 pending pending ember 15 ready paused harbor
3 ready closed amber 5 ready paused cobalt 29 paused paused indigo 1 paused pending fable 7 paused closed fable 17 failed pending cobalt 19 paused ready ember 6 failed closed grove
7 paused closed fable 17 failed pending cobalt 19 paused ready ember
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016188-p1
Display entire lines where the first field falls within the inclusive range of 7 to 19.
$1 >= 7 && $1 <= 19
26 closed paused cobalt 8 closed ready amber 3 failed pending grove 14 pending paused birch 10 closed paused delta 2 closed ready ember 10 pending pending ember 15 ready paused harbor
8 closed ready amber 14 pending paused birch 10 closed paused delta 10 pending pending ember 15 ready paused harbor
3 ready closed amber 5 ready paused cobalt 29 paused paused indigo 1 paused pending fable 7 paused closed fable 17 failed pending cobalt 19 paused ready ember 6 failed closed grove
7 paused closed fable 17 failed pending cobalt 19 paused ready ember
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016188
qwen/qwen3.7-plus
awkweave-0016189
Print column 3 only for rows where column 2 is exactly paused.
$2 == "paused"{print $3}
27 ready jules grove 63 failed alice juniper 41 paused kim ember 8 pending dina delta 41 paused eli ember 77 failed farah amber 80 pending ivan amber 61 ready alice indigo
kim eli
69 pending farah juniper 112 active lina ember 10 ready lina fable 53 failed hana ember 82 ready hana indigo 51 closed jules amber 23 active gus harbor 45 ready eli harbor
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016189-p1
Output the third column only for those rows where the second column contains the exact string 'paused'.
$2 == "paused"{print $3}
27 ready jules grove 63 failed alice juniper 41 paused kim ember 8 pending dina delta 41 paused eli ember 77 failed farah amber 80 pending ivan amber 61 ready alice indigo
kim eli
69 pending farah juniper 112 active lina ember 10 ready lina fable 53 failed hana ember 82 ready hana indigo 51 closed jules amber 23 active gus harbor 45 ready eli harbor
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016189
qwen/qwen3.7-plus
awkweave-0016200
Count all input records and print the total.
END{print NR}
farah 90 chen 4 alice 110 ivan 31 hana 50 hana 112 chen 37 farah 44 bruno 64 gus 114
10
jules 20 jules 2 eli 60 lina 66 gus 81 alice 37 lina 99 kim 17
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016200-p1
Calculate and output the total number of input records.
END{print NR}
farah 90 chen 4 alice 110 ivan 31 hana 50 hana 112 chen 37 farah 44 bruno 64 gus 114
10
jules 20 jules 2 eli 60 lina 66 gus 81 alice 37 lina 99 kim 17
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016200
qwen/qwen3.7-plus
awkweave-0016201
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
farah cobalt 76 bruno amber 82 lina fable 20 lina fable 20 farah ember 98 farah delta 18 chen cobalt 116 dina cobalt 114
farah cobalt 76 bruno amber 82 lina fable 20 farah ember 98 farah delta 18 chen cobalt 116 dina cobalt 114
kim harbor 118 chen juniper 20 kim cobalt 66 dina birch 44 jules birch 61 kim cobalt 66 hana birch 18
kim harbor 118 chen juniper 20 kim cobalt 66 dina birch 44 jules birch 61 hana birch 18
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016201-p1
Eliminate exact duplicate lines while maintaining the original sequence and keeping the first instance of each.
!seen[$0]++
farah cobalt 76 bruno amber 82 lina fable 20 lina fable 20 farah ember 98 farah delta 18 chen cobalt 116 dina cobalt 114
farah cobalt 76 bruno amber 82 lina fable 20 farah ember 98 farah delta 18 chen cobalt 116 dina cobalt 114
kim harbor 118 chen juniper 20 kim cobalt 66 dina birch 44 jules birch 61 kim cobalt 66 hana birch 18
kim harbor 118 chen juniper 20 kim cobalt 66 dina birch 44 jules birch 61 hana birch 18
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016201
qwen/qwen3.7-plus
awkweave-0016202
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
chen indigo 79 chen cobalt 25 chen cobalt 91 bruno amber 22 kim amber 27 bruno juniper 35 jules birch 58 farah indigo 0 lina amber 77
chen indigo 79 chen cobalt 25 chen cobalt 91 bruno amber 22 kim amber 27 bruno juniper 35 jules birch 58 farah indigo 0 lina amber 77
alice grove 79 hana indigo 76 bruno birch 102 gus fable 113 eli grove 88 kim cobalt 3
alice grove 79 hana indigo 76 bruno birch 102 gus fable 113 eli grove 88 kim cobalt 3
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016202-p1
Retain only the initial line for every unique value found in column 3, ensuring the original input order is preserved.
!seen[$3]++
chen indigo 79 chen cobalt 25 chen cobalt 91 bruno amber 22 kim amber 27 bruno juniper 35 jules birch 58 farah indigo 0 lina amber 77
chen indigo 79 chen cobalt 25 chen cobalt 91 bruno amber 22 kim amber 27 bruno juniper 35 jules birch 58 farah indigo 0 lina amber 77
alice grove 79 hana indigo 76 bruno birch 102 gus fable 113 eli grove 88 kim cobalt 3
alice grove 79 hana indigo 76 bruno birch 102 gus fable 113 eli grove 88 kim cobalt 3
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016202
qwen/qwen3.7-plus
awkweave-0016203
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
farah 30 harbor kim 5 grove farah 17 indigo jules 12 fable farah 9 cobalt lina 7 fable
farah 30 kim 35 farah 52 jules 64 farah 73 lina 80
hana 9 fable jules 20 harbor hana 8 cobalt kim 9 juniper kim 23 fable dina 22 fable kim 15 harbor
hana 9 jules 29 hana 37 kim 46 kim 69 dina 91 kim 106
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016203-p1
Output column 1 alongside the cumulative sum of column 2 for each record, using a space as the delimiter.
{s+=$2;print $1,s}
farah 30 harbor kim 5 grove farah 17 indigo jules 12 fable farah 9 cobalt lina 7 fable
farah 30 kim 35 farah 52 jules 64 farah 73 lina 80
hana 9 fable jules 20 harbor hana 8 cobalt kim 9 juniper kim 23 fable dina 22 fable kim 15 harbor
hana 9 jules 29 hana 37 kim 46 kim 69 dina 91 kim 106
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016203
qwen/qwen3.7-plus
awkweave-0016204
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
hana 4 26 indigo bruno 4 23 fable dina 11 26 juniper jules 23 10 juniper lina 9 17 juniper farah 9 5 indigo bruno 4 17 harbor
hana 30 bruno 27 dina 37 jules 33 lina 26 farah 14 bruno 21
eli 3 1 harbor dina 11 16 amber eli 3 9 indigo gus 7 16 harbor hana 18 27 grove gus 15 21 delta
eli 4 dina 27 eli 12 gus 23 hana 45 gus 36
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016204-p1
For each row, display field 1 followed by the total of fields 2 and 3.
{print $1,$2+$3}
hana 4 26 indigo bruno 4 23 fable dina 11 26 juniper jules 23 10 juniper lina 9 17 juniper farah 9 5 indigo bruno 4 17 harbor
hana 30 bruno 27 dina 37 jules 33 lina 26 farah 14 bruno 21
eli 3 1 harbor dina 11 16 amber eli 3 9 indigo gus 7 16 harbor hana 18 27 grove gus 15 21 delta
eli 4 dina 27 eli 12 gus 23 hana 45 gus 36
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016204
qwen/qwen3.7-plus
awkweave-0016205
Print column 1 and pass when column 2 is at least 27; otherwise print fail.
{print $1,($2>=27?"pass":"fail")}
dina 7 gus 12 kim 25 farah 18 jules 1 hana 6 bruno 26 dina 12
dina fail gus fail kim fail farah fail jules fail hana fail bruno fail dina fail
dina 18 chen 4 bruno 25 bruno 4 jules 24 bruno 8 alice 10 eli 12 hana 2 kim 27
dina fail chen fail bruno fail bruno fail jules fail bruno fail alice fail eli fail hana fail kim pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016205-p1
Output column 1 along with 'pass' if column 2 is 27 or greater; otherwise, output 'fail'.
{print $1,($2>=27?"pass":"fail")}
dina 7 gus 12 kim 25 farah 18 jules 1 hana 6 bruno 26 dina 12
dina fail gus fail kim fail farah fail jules fail hana fail bruno fail dina fail
dina 18 chen 4 bruno 25 bruno 4 jules 24 bruno 8 alice 10 eli 12 hana 2 kim 27
dina fail chen fail bruno fail bruno fail jules fail bruno fail alice fail eli fail hana fail kim pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016205
qwen/qwen3.7-plus
awkweave-0016206
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
chen amber 97 jules birch 66 alice amber 108 hana indigo 36 jules birch 106 dina indigo 22 gus cobalt 74 jules ember 107
AMBER BIRCH AMBER INDIGO BIRCH INDIGO COBALT EMBER
gus ember 72 gus juniper 19 jules harbor 71 gus delta 50 dina birch 88 kim harbor 70
EMBER JUNIPER HARBOR DELTA BIRCH HARBOR
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016206-p1
Transform column 2 to uppercase letters and print only that modified column.
{print toupper($2)}
chen amber 97 jules birch 66 alice amber 108 hana indigo 36 jules birch 106 dina indigo 22 gus cobalt 74 jules ember 107
AMBER BIRCH AMBER INDIGO BIRCH INDIGO COBALT EMBER
gus ember 72 gus juniper 19 jules harbor 71 gus delta 50 dina birch 88 kim harbor 70
EMBER JUNIPER HARBOR DELTA BIRCH HARBOR
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016206
qwen/qwen3.7-plus
awkweave-0016207
From column 1, print 3 characters starting at character 3.
{print substr($1,3,3)}
juniper 36 delta 41 juniper 52 ember 85 fable 84 birch 113 fable 89 juniper 57 amber 56 juniper 48
nip lta nip ber ble rch ble nip ber nip
amber 76 indigo 3 indigo 108 indigo 11 indigo 81 delta 5
ber dig dig dig dig lta
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016207-p1
Extract and print a substring of 3 characters from column 1, beginning at the third character position.
{print substr($1,3,3)}
juniper 36 delta 41 juniper 52 ember 85 fable 84 birch 113 fable 89 juniper 57 amber 56 juniper 48
nip lta nip ber ble rch ble nip ber nip
amber 76 indigo 3 indigo 108 indigo 11 indigo 81 delta 5
ber dig dig dig dig lta
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016207
qwen/qwen3.7-plus
awkweave-0016208
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
grove_harbor 8 juniper_birch 87 birch_delta 15 indigo_fable 77 fable_juniper 114 birch_indigo 116 amber_birch 110 delta_cobalt 42 amber_birch 54 harbor_harbor 62
grove harbor juniper birch birch delta indigo fable fable juniper birch indigo amber birch delta cobalt amber birch harbor harbor
fable_delta 82 fable_juniper 88 juniper_grove 17 ember_ember 105 harbor_delta 79 ember_indigo 109 grove_harbor 11
fable delta fable juniper juniper grove ember ember harbor delta ember indigo grove harbor
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016208-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
grove_harbor 8 juniper_birch 87 birch_delta 15 indigo_fable 77 fable_juniper 114 birch_indigo 116 amber_birch 110 delta_cobalt 42 amber_birch 54 harbor_harbor 62
grove harbor juniper birch birch delta indigo fable fable juniper birch indigo amber birch delta cobalt amber birch harbor harbor
fable_delta 82 fable_juniper 88 juniper_grove 17 ember_ember 105 harbor_delta 79 ember_indigo 109 grove_harbor 11
fable delta fable juniper juniper grove ember ember harbor delta ember indigo grove harbor
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016208
qwen/qwen3.7-plus
awkweave-0016209
Reverse the order of fields on every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
gus juniper 99 active gus fable 70 pending lina cobalt 38 failed lina ember 19 closed dina birch 110 ready hana juniper 62 closed jules harbor 8 ready hana cobalt 86 pending chen delta 6 active dina grove 1 closed
active 99 juniper gus pending 70 fable gus failed 38 cobalt lina closed 19 ember lina ready 110 birch dina closed 62 juniper hana ready 8 harbor jules pending 86 cobalt hana active 6 delta chen closed 1 grove dina
kim amber 62 ready dina indigo 40 paused alice amber 94 active gus ember 106 ready jules cobalt 42 failed lina fable 23 paused jules harbor 20 pending gus delta 48 closed
ready 62 amber kim paused 40 indigo dina active 94 amber alice ready 106 ember gus failed 42 cobalt jules paused 23 fable lina pending 20 harbor jules closed 48 delta gus
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016209-p1
Reverse the sequence of fields for every line and print all fields in the new order.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
gus juniper 99 active gus fable 70 pending lina cobalt 38 failed lina ember 19 closed dina birch 110 ready hana juniper 62 closed jules harbor 8 ready hana cobalt 86 pending chen delta 6 active dina grove 1 closed
active 99 juniper gus pending 70 fable gus failed 38 cobalt lina closed 19 ember lina ready 110 birch dina closed 62 juniper hana ready 8 harbor jules pending 86 cobalt hana active 6 delta chen closed 1 grove dina
kim amber 62 ready dina indigo 40 paused alice amber 94 active gus ember 106 ready jules cobalt 42 failed lina fable 23 paused jules harbor 20 pending gus delta 48 closed
ready 62 amber kim paused 40 indigo dina active 94 amber alice ready 106 ember gus failed 42 cobalt jules paused 23 fable lina pending 20 harbor jules closed 48 delta gus
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016209
qwen/qwen3.7-plus
awkweave-0016210
Print the number of whitespace-separated fields on each line.
{print NF}
eli amber 65 paused lina indigo 25 ready hana delta 40 ready chen fable 14 failed chen amber 46 failed eli fable 28 failed dina ember 119 failed eli harbor 41 ready dina fable 102 paused lina amber 108 pending
4 4 4 4 4 4 4 4 4 4
jules ember 77 closed farah birch 49 failed lina birch 83 closed farah grove 3 ready chen delta 99 ready kim grove 99 ready jules juniper 51 closed bruno birch 2 active lina cobalt 99 active
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016210-p1
Display the count of whitespace-delimited fields present on each line.
{print NF}
eli amber 65 paused lina indigo 25 ready hana delta 40 ready chen fable 14 failed chen amber 46 failed eli fable 28 failed dina ember 119 failed eli harbor 41 ready dina fable 102 paused lina amber 108 pending
4 4 4 4 4 4 4 4 4 4
jules ember 77 closed farah birch 49 failed lina birch 83 closed farah grove 3 ready chen delta 99 ready kim grove 99 ready jules juniper 51 closed bruno birch 2 active lina cobalt 99 active
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016210
qwen/qwen3.7-plus
awkweave-0016211
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]]}
jules beta 98 alice gamma 55 farah beta 65 bruno beta 119 farah beta 14 hana gamma 61 ivan alpha 83 farah alpha 52 eli beta 33
beta 5 gamma 2 alpha 2
dina delta 18 eli delta 72 farah delta 115 bruno gamma 115 jules alpha 37 alice delta 11
delta 4 gamma 1 alpha 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016211-p1
Tally the number of records for each distinct value in column 2, then print each value and its corresponding count in the order they first appeared.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
jules beta 98 alice gamma 55 farah beta 65 bruno beta 119 farah beta 14 hana gamma 61 ivan alpha 83 farah alpha 52 eli beta 33
beta 5 gamma 2 alpha 2
dina delta 18 eli delta 72 farah delta 115 bruno gamma 115 jules alpha 37 alice delta 11
delta 4 gamma 1 alpha 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016211
qwen/qwen3.7-plus
awkweave-0016212
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 gamma 18 lina gamma 11 ivan alpha 11 bruno beta 21 dina alpha 19 jules gamma 10 kim beta 14 ivan alpha 7 ivan delta 26
gamma 39 alpha 37 beta 35 delta 26
lina beta 5 chen gamma 3 farah delta 28 ivan alpha 14 bruno delta 27 alice delta 20 bruno beta 6 hana alpha 18 ivan beta 23
beta 34 gamma 3 delta 75 alpha 32
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016212-p1
Group by the values in column 2 and calculate the sum of column 3 for each group, listing the results in the order the groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
alice gamma 18 lina gamma 11 ivan alpha 11 bruno beta 21 dina alpha 19 jules gamma 10 kim beta 14 ivan alpha 7 ivan delta 26
gamma 39 alpha 37 beta 35 delta 26
lina beta 5 chen gamma 3 farah delta 28 ivan alpha 14 bruno delta 27 alice delta 20 bruno beta 6 hana alpha 18 ivan beta 23
beta 34 gamma 3 delta 75 alpha 32
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016212
qwen/qwen3.7-plus
awkweave-0016213
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]]}
beta delta 108 gamma fable 45 beta harbor 48 delta birch 3 alpha ember 107 beta delta 7
beta 3
beta indigo 101 alpha fable 80 gamma cobalt 77 delta juniper 22 alpha harbor 94 delta cobalt 71 alpha delta 34
alpha 3 delta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016213-p1
Identify duplicate entries in column 1 and output each unique repeated value alongside its frequency, maintaining the order of their 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]]}
beta delta 108 gamma fable 45 beta harbor 48 delta birch 3 alpha ember 107 beta delta 7
beta 3
beta indigo 101 alpha fable 80 gamma cobalt 77 delta juniper 22 alpha harbor 94 delta cobalt 71 alpha delta 34
alpha 3 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016213
qwen/qwen3.7-plus
awkweave-0016214
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"]}
record_id score region display_name r001 kim 14 paused r002 farah 13 active r003 eli 6 ready r004 lina 2 ready r005 ivan 26 paused r006 hana 27 active r007 ivan 23 active r008 kim 24 pending
kim farah eli lina ivan hana ivan kim
record_id score region display_name r001 dina 1 paused r002 bruno 14 pending r003 gus 17 pending r004 eli 17 closed r005 farah 17 closed r006 gus 13 failed r007 lina 15 active r008 lina 3 pending r009 alice 5 ready r010 hana 13 active
dina bruno gus eli farah gus lina lina alice hana
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016214-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"]}
record_id score region display_name r001 kim 14 paused r002 farah 13 active r003 eli 6 ready r004 lina 2 ready r005 ivan 26 paused r006 hana 27 active r007 ivan 23 active r008 kim 24 pending
kim farah eli lina ivan hana ivan kim
record_id score region display_name r001 dina 1 paused r002 bruno 14 pending r003 gus 17 pending r004 eli 17 closed r005 farah 17 closed r006 gus 13 failed r007 lina 15 active r008 lina 3 pending r009 alice 5 ready r010 hana 13 active
dina bruno gus eli farah gus lina lina alice hana
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016214
qwen/qwen3.7-plus
awkweave-0016215
The first row is a header. Print display_name for data rows whose score is greater than 21.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>21{print $h["display_name"]}
record_id display_name score state r001 kim 4 closed r002 chen 22 active r003 farah 2 paused r004 farah 26 pending r005 hana 25 pending r006 lina 30 closed r007 jules 29 paused r008 eli 19 failed r009 farah 18 failed
chen farah hana lina jules
record_id display_name score state r001 eli 28 pending r002 kim 6 ready r003 chen 27 paused r004 farah 27 ready r005 gus 26 ready r006 chen 22 failed r007 kim 23 closed r008 dina 9 paused r009 dina 16 pending r010 lina 25 closed
eli chen farah gus chen kim lina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016215-p1
Ignoring the header row, display the display_name field for any record where the score exceeds 21.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>21{print $h["display_name"]}
record_id display_name score state r001 kim 4 closed r002 chen 22 active r003 farah 2 paused r004 farah 26 pending r005 hana 25 pending r006 lina 30 closed r007 jules 29 paused r008 eli 19 failed r009 farah 18 failed
chen farah hana lina jules
record_id display_name score state r001 eli 28 pending r002 kim 6 ready r003 chen 27 paused r004 farah 27 ready r005 gus 26 ready r006 chen 22 failed r007 kim 23 closed r008 dina 9 paused r009 dina 16 pending r010 lina 25 closed
eli chen farah gus chen kim lina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016215
qwen/qwen3.7-plus
awkweave-0016216
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
lina 25 pending kim 7 failed dina 6 failed bruno 9 closed lina 10 active gus 30 ready
lina kim dina bruno lina gus
hana 6 pending dina 27 pending chen 17 ready eli 27 pending jules 29 pending chen 16 failed
hana dina chen eli jules chen
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016216-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
lina 25 pending kim 7 failed dina 6 failed bruno 9 closed lina 10 active gus 30 ready
lina kim dina bruno lina gus
hana 6 pending dina 27 pending chen 17 ready eli 27 pending jules 29 pending chen 16 failed
hana dina chen eli jules chen
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0016216
qwen/qwen3.7-plus
awkweave-0016217
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 8.
BEGIN{FS=OFS=","}$2>8{print $1}
farah,5,ready farah,2,closed gus,10,active eli,21,failed chen,3,active gus,27,pending gus,30,closed gus,12,paused lina,9,closed ivan,30,failed
gus eli gus gus gus lina ivan
ivan,6,failed ivan,18,ready eli,24,paused ivan,8,pending eli,25,failed kim,9,closed
ivan eli eli kim
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016217-p1
Process simple comma-separated values without quoted fields, printing the first column only when the value in the second column is greater than 8.
BEGIN{FS=OFS=","}$2>8{print $1}
farah,5,ready farah,2,closed gus,10,active eli,21,failed chen,3,active gus,27,pending gus,30,closed gus,12,paused lina,9,closed ivan,30,failed
gus eli gus gus gus lina ivan
ivan,6,failed ivan,18,ready eli,24,paused ivan,8,pending eli,25,failed kim,9,closed
ivan eli eli kim
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016217
qwen/qwen3.7-plus
awkweave-0016218
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
gus delta 36 ivan juniper 77 hana cobalt 31 alice indigo 73 jules harbor 86 ivan harbor 16 alice harbor 16 kim grove 63
gus delta 36 ivan juniper 77 hana cobalt 31 alice indigo 73 jules harbor 86 ivan harbor 16 alice harbor 16 kim grove 63
dina fable 11 alice amber 81 lina juniper 88 hana harbor 30 eli grove 110 hana juniper 92
dina fable 11 alice amber 81 lina juniper 88 hana harbor 30 eli grove 110 hana juniper 92
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016218-p1
Remove leading and trailing whitespace from the text and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
gus delta 36 ivan juniper 77 hana cobalt 31 alice indigo 73 jules harbor 86 ivan harbor 16 alice harbor 16 kim grove 63
gus delta 36 ivan juniper 77 hana cobalt 31 alice indigo 73 jules harbor 86 ivan harbor 16 alice harbor 16 kim grove 63
dina fable 11 alice amber 81 lina juniper 88 hana harbor 30 eli grove 110 hana juniper 92
dina fable 11 alice amber 81 lina juniper 88 hana harbor 30 eli grove 110 hana juniper 92
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016218
qwen/qwen3.7-plus
awkweave-0016219
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
kim amber 30 failed ivan birch 112 ready alice ember 114 closed bruno ember 43 pending jules juniper 38 paused alice cobalt 6 ready ivan grove 50 ready dina indigo 30 failed
jules juniper 38 paused
kim ember 100 failed chen indigo 4 ready hana harbor 24 pending chen ember 73 paused gus cobalt 42 ready ivan indigo 94 paused chen ember 102 closed
hana harbor 24 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016219-p1
Output the longest line from the input; if multiple lines share the maximum length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
kim amber 30 failed ivan birch 112 ready alice ember 114 closed bruno ember 43 pending jules juniper 38 paused alice cobalt 6 ready ivan grove 50 ready dina indigo 30 failed
jules juniper 38 paused
kim ember 100 failed chen indigo 4 ready hana harbor 24 pending chen ember 73 paused gus cobalt 42 ready ivan indigo 94 paused chen ember 102 closed
hana harbor 24 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016219
qwen/qwen3.7-plus
awkweave-0016220
Print every 3rd line starting at line 3 (then line 6, and so on).
NR%3==0
alice 67 bruno 94 eli 21 ivan 55 eli 29 dina 120 eli 30 ivan 107
eli 21 dina 120
eli 116 jules 97 eli 115 bruno 24 chen 10 dina 47 farah 39 dina 83 eli 42 alice 38
eli 115 dina 47 eli 42
every_nth
1
train
original-grammar
CC-BY-4.0
null
null