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-0024001-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
lina cobalt 22 ivan cobalt 19 jules fable 19 farah cobalt 100 alice fable 65 jules fable 19 farah ember 108 alice harbor 11
lina cobalt 22 ivan cobalt 19 jules fable 19 farah cobalt 100 alice fable 65 farah ember 108 alice harbor 11
ivan cobalt 0 bruno harbor 22 bruno birch 90 farah cobalt 113 bruno harbor 22 kim grove 49 lina birch 83 bruno grove 95 lina delta 51 gus juniper 53 lina grove 64
ivan cobalt 0 bruno harbor 22 bruno birch 90 farah cobalt 113 kim grove 49 lina birch 83 bruno grove 95 lina delta 51 gus juniper 53 lina grove 64
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024001
qwen/qwen3.7-plus
awkweave-0024002
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
ivan ember 70 bruno ember 120 bruno juniper 79 ivan birch 104 farah amber 54 kim harbor 26
ivan ember 70 bruno ember 120 farah amber 54 kim harbor 26
farah cobalt 23 gus juniper 110 kim ember 14 bruno grove 53 chen cobalt 94 bruno ember 81 bruno grove 55 ivan grove 7 farah harbor 94
farah cobalt 23 gus juniper 110 kim ember 14 bruno grove 53 chen cobalt 94 ivan grove 7
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024002-p1
Retain only the initial line for every unique value in column 1, preserving the input order.
!seen[$1]++
ivan ember 70 bruno ember 120 bruno juniper 79 ivan birch 104 farah amber 54 kim harbor 26
ivan ember 70 bruno ember 120 farah amber 54 kim harbor 26
farah cobalt 23 gus juniper 110 kim ember 14 bruno grove 53 chen cobalt 94 bruno ember 81 bruno grove 55 ivan grove 7 farah harbor 94
farah cobalt 23 gus juniper 110 kim ember 14 bruno grove 53 chen cobalt 94 ivan grove 7
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024002
qwen/qwen3.7-plus
awkweave-0024003
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
farah 13 indigo hana 27 harbor eli 22 grove jules 29 fable bruno 19 ember farah 3 birch hana 1 fable kim 26 juniper
farah 13 hana 40 eli 62 jules 91 bruno 110 farah 113 hana 114 kim 140
hana 14 delta gus 25 juniper eli 8 cobalt lina 15 fable lina 30 ember lina 6 fable
hana 14 gus 39 eli 47 lina 62 lina 92 lina 98
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024003-p1
Output column 1 alongside the cumulative sum of column 2 for each record, separated by a space.
{s+=$2;print $1,s}
farah 13 indigo hana 27 harbor eli 22 grove jules 29 fable bruno 19 ember farah 3 birch hana 1 fable kim 26 juniper
farah 13 hana 40 eli 62 jules 91 bruno 110 farah 113 hana 114 kim 140
hana 14 delta gus 25 juniper eli 8 cobalt lina 15 fable lina 30 ember lina 6 fable
hana 14 gus 39 eli 47 lina 62 lina 92 lina 98
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024003
qwen/qwen3.7-plus
awkweave-0024004
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
jules 1 19 harbor gus 5 7 indigo gus 15 14 amber bruno 23 5 ember farah 5 19 harbor alice 22 15 birch alice 29 13 ember
jules 20 gus 12 gus 29 bruno 28 farah 24 alice 37 alice 42
ivan 4 14 juniper ivan 28 19 juniper chen 8 13 grove kim 17 10 fable bruno 6 20 harbor kim 11 3 fable chen 22 10 ember kim 6 3 delta eli 30 30 harbor
ivan 18 ivan 47 chen 21 kim 27 bruno 26 kim 14 chen 32 kim 9 eli 60
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024004-p1
For each row, display field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
jules 1 19 harbor gus 5 7 indigo gus 15 14 amber bruno 23 5 ember farah 5 19 harbor alice 22 15 birch alice 29 13 ember
jules 20 gus 12 gus 29 bruno 28 farah 24 alice 37 alice 42
ivan 4 14 juniper ivan 28 19 juniper chen 8 13 grove kim 17 10 fable bruno 6 20 harbor kim 11 3 fable chen 22 10 ember kim 6 3 delta eli 30 30 harbor
ivan 18 ivan 47 chen 21 kim 27 bruno 26 kim 14 chen 32 kim 9 eli 60
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024004
qwen/qwen3.7-plus
awkweave-0024005
Print column 1 and pass when column 2 is at least 27; otherwise print fail.
{print $1,($2>=27?"pass":"fail")}
jules 16 bruno 19 ivan 19 lina 1 eli 16 bruno 16 jules 24
jules fail bruno fail ivan fail lina fail eli fail bruno fail jules fail
jules 18 kim 7 bruno 3 dina 29 eli 2 chen 22 bruno 5 hana 6 chen 3 dina 21
jules fail kim fail bruno fail dina pass eli fail chen fail bruno fail hana fail chen fail dina fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024005-p1
Output column 1 and 'pass' if column 2 is greater than or equal to 27; otherwise, output 'fail'.
{print $1,($2>=27?"pass":"fail")}
jules 16 bruno 19 ivan 19 lina 1 eli 16 bruno 16 jules 24
jules fail bruno fail ivan fail lina fail eli fail bruno fail jules fail
jules 18 kim 7 bruno 3 dina 29 eli 2 chen 22 bruno 5 hana 6 chen 3 dina 21
jules fail kim fail bruno fail dina pass eli fail chen fail bruno fail hana fail chen fail dina fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024005
qwen/qwen3.7-plus
awkweave-0024006
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
ivan cobalt 50 jules indigo 111 alice ember 9 farah amber 116 eli delta 17 alice indigo 10 lina ember 59 lina indigo 75 gus cobalt 23 alice indigo 114
IVAN JULES ALICE FARAH ELI ALICE LINA LINA GUS ALICE
chen fable 65 chen amber 70 chen harbor 7 chen grove 112 kim fable 60 chen juniper 90 farah fable 41
CHEN CHEN CHEN CHEN KIM CHEN FARAH
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024006-p1
Transform column 1 to uppercase and print only that column.
{print toupper($1)}
ivan cobalt 50 jules indigo 111 alice ember 9 farah amber 116 eli delta 17 alice indigo 10 lina ember 59 lina indigo 75 gus cobalt 23 alice indigo 114
IVAN JULES ALICE FARAH ELI ALICE LINA LINA GUS ALICE
chen fable 65 chen amber 70 chen harbor 7 chen grove 112 kim fable 60 chen juniper 90 farah fable 41
CHEN CHEN CHEN CHEN KIM CHEN FARAH
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024006
qwen/qwen3.7-plus
awkweave-0024007
From column 1, print 3 characters starting at character 2.
{print substr($1,2,3)}
indigo 93 grove 40 delta 79 grove 51 birch 112 fable 72 juniper 97 cobalt 114 cobalt 81
ndi rov elt rov irc abl uni oba oba
cobalt 4 delta 76 harbor 51 indigo 46 fable 46 fable 89 harbor 98 ember 45 birch 114
oba elt arb ndi abl abl arb mbe irc
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024007-p1
Extract and print a 3-character substring from column 1, starting at the second character.
{print substr($1,2,3)}
indigo 93 grove 40 delta 79 grove 51 birch 112 fable 72 juniper 97 cobalt 114 cobalt 81
ndi rov elt rov irc abl uni oba oba
cobalt 4 delta 76 harbor 51 indigo 46 fable 46 fable 89 harbor 98 ember 45 birch 114
oba elt arb ndi abl abl arb mbe irc
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024007
qwen/qwen3.7-plus
awkweave-0024008
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
grove_indigo 28 indigo_delta 100 delta_fable 31 grove_cobalt 21 amber_cobalt 112 amber_indigo 79
grove indigo indigo delta delta fable grove cobalt amber cobalt amber indigo
fable_harbor 106 grove_ember 109 delta_delta 94 fable_grove 7 juniper_birch 57 delta_harbor 72 birch_indigo 63 indigo_amber 47 cobalt_fable 93
fable harbor grove ember delta delta fable grove juniper birch delta harbor birch indigo indigo amber cobalt fable
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024008-p1
Substitute all underscores in column 1 with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
grove_indigo 28 indigo_delta 100 delta_fable 31 grove_cobalt 21 amber_cobalt 112 amber_indigo 79
grove indigo indigo delta delta fable grove cobalt amber cobalt amber indigo
fable_harbor 106 grove_ember 109 delta_delta 94 fable_grove 7 juniper_birch 57 delta_harbor 72 birch_indigo 63 indigo_amber 47 cobalt_fable 93
fable harbor grove ember delta delta fable grove juniper birch delta harbor birch indigo indigo amber cobalt fable
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024008
qwen/qwen3.7-plus
awkweave-0024009
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)}
eli ember 113 closed eli birch 58 active alice harbor 37 active gus birch 61 pending chen cobalt 16 failed ivan birch 70 closed ivan juniper 6 failed lina ember 120 failed bruno delta 60 closed farah grove 65 failed
closed 113 ember eli active 58 birch eli active 37 harbor alice pending 61 birch gus failed 16 cobalt chen closed 70 birch ivan failed 6 juniper ivan failed 120 ember lina closed 60 delta bruno failed 65 grove farah
farah indigo 98 failed chen indigo 70 pending ivan ember 0 failed chen ember 90 failed hana birch 56 paused ivan amber 27 active
failed 98 indigo farah pending 70 indigo chen failed 0 ember ivan failed 90 ember chen paused 56 birch hana active 27 amber ivan
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024009-p1
Reverse the field order for every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
eli ember 113 closed eli birch 58 active alice harbor 37 active gus birch 61 pending chen cobalt 16 failed ivan birch 70 closed ivan juniper 6 failed lina ember 120 failed bruno delta 60 closed farah grove 65 failed
closed 113 ember eli active 58 birch eli active 37 harbor alice pending 61 birch gus failed 16 cobalt chen closed 70 birch ivan failed 6 juniper ivan failed 120 ember lina closed 60 delta bruno failed 65 grove farah
farah indigo 98 failed chen indigo 70 pending ivan ember 0 failed chen ember 90 failed hana birch 56 paused ivan amber 27 active
failed 98 indigo farah pending 70 indigo chen failed 0 ember ivan failed 90 ember chen paused 56 birch hana active 27 amber ivan
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024009
qwen/qwen3.7-plus
awkweave-0024010
Print the number of whitespace-separated fields on each line.
{print NF}
bruno harbor 109 active bruno amber 68 ready hana fable 23 closed farah indigo 108 failed lina indigo 93 active eli amber 25 paused
4 4 4 4 4 4
alice fable 10 paused eli grove 23 ready bruno birch 22 paused ivan birch 100 paused alice indigo 113 ready eli delta 54 active dina amber 94 failed bruno harbor 107 closed hana amber 82 paused
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024010-p1
Print the count of whitespace-delimited fields for each line.
{print NF}
bruno harbor 109 active bruno amber 68 ready hana fable 23 closed farah indigo 108 failed lina indigo 93 active eli amber 25 paused
4 4 4 4 4 4
alice fable 10 paused eli grove 23 ready bruno birch 22 paused ivan birch 100 paused alice indigo 113 ready eli delta 54 active dina amber 94 failed bruno harbor 107 closed hana amber 82 paused
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024010
qwen/qwen3.7-plus
awkweave-0024011
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 beta 77 kim delta 77 dina gamma 26 jules delta 61 alice delta 10 ivan delta 31 bruno gamma 106
beta 1 delta 4 gamma 2
alice beta 7 ivan alpha 116 ivan alpha 2 jules gamma 9 bruno gamma 49 jules delta 69 chen gamma 97 jules alpha 35
beta 1 alpha 3 gamma 3 delta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024011-p1
Tally records for each unique value in column 2 and print each value with its count, ordered by 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 beta 77 kim delta 77 dina gamma 26 jules delta 61 alice delta 10 ivan delta 31 bruno gamma 106
beta 1 delta 4 gamma 2
alice beta 7 ivan alpha 116 ivan alpha 2 jules gamma 9 bruno gamma 49 jules delta 69 chen gamma 97 jules alpha 35
beta 1 alpha 3 gamma 3 delta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024011
qwen/qwen3.7-plus
awkweave-0024012
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]]}
gus delta 7 alice alpha 4 jules gamma 12 jules alpha 7 dina alpha 4 bruno beta 30
delta 7 alpha 15 gamma 12 beta 30
jules beta 2 ivan delta 7 chen beta 20 eli delta 14 alice gamma 15 chen gamma 9
beta 22 delta 21 gamma 24
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024012-p1
Group by the values in column 2 and sum the corresponding values in column 3, outputting 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]]}
gus delta 7 alice alpha 4 jules gamma 12 jules alpha 7 dina alpha 4 bruno beta 30
delta 7 alpha 15 gamma 12 beta 30
jules beta 2 ivan delta 7 chen beta 20 eli delta 14 alice gamma 15 chen gamma 9
beta 22 delta 21 gamma 24
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024012
qwen/qwen3.7-plus
awkweave-0024013
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]]}
delta amber 7 beta delta 94 alpha juniper 87 alpha indigo 97 delta ember 14 alpha delta 106 alpha delta 55 delta fable 119 gamma ember 58 beta ember 35
delta 3 beta 2 alpha 4
alpha juniper 19 beta delta 1 alpha juniper 70 beta juniper 44 alpha cobalt 3 alpha harbor 47 beta grove 107
alpha 4 beta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024013-p1
Identify duplicate values in column 1, count their occurrences, and list them in the order of their 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]]}
delta amber 7 beta delta 94 alpha juniper 87 alpha indigo 97 delta ember 14 alpha delta 106 alpha delta 55 delta fable 119 gamma ember 58 beta ember 35
delta 3 beta 2 alpha 4
alpha juniper 19 beta delta 1 alpha juniper 70 beta juniper 44 alpha cobalt 3 alpha harbor 47 beta grove 107
alpha 4 beta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024013
qwen/qwen3.7-plus
awkweave-0024014
The first row is a header. Print the region column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
record_id score region state r001 eli 28 closed r002 gus 16 ready r003 kim 14 ready r004 chen 21 ready r005 jules 4 active r006 eli 29 pending r007 jules 19 failed r008 dina 8 paused r009 chen 24 pending r010 bruno 16 pending
28 16 14 21 4 29 19 8 24 16
record_id score region state r001 farah 20 ready r002 dina 24 pending r003 eli 17 paused r004 farah 21 ready r005 bruno 13 active r006 gus 14 failed r007 dina 27 active
20 24 17 21 13 14 27
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024014-p1
Treating the first line as a header, output the values from the region column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
record_id score region state r001 eli 28 closed r002 gus 16 ready r003 kim 14 ready r004 chen 21 ready r005 jules 4 active r006 eli 29 pending r007 jules 19 failed r008 dina 8 paused r009 chen 24 pending r010 bruno 16 pending
28 16 14 21 4 29 19 8 24 16
record_id score region state r001 farah 20 ready r002 dina 24 pending r003 eli 17 paused r004 farah 21 ready r005 bruno 13 active r006 gus 14 failed r007 dina 27 active
20 24 17 21 13 14 27
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024014
qwen/qwen3.7-plus
awkweave-0024015
The first row is a header. Print display_name for data rows whose score is greater than 12.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>12{print $h["display_name"]}
record_id display_name score state r001 gus 22 closed r002 alice 28 paused r003 hana 23 closed r004 kim 1 pending r005 eli 6 ready r006 dina 14 failed r007 bruno 16 paused r008 lina 5 failed r009 farah 29 pending r010 lina 23 active
gus alice hana dina bruno farah lina
record_id display_name score state r001 kim 4 closed r002 alice 26 pending r003 eli 17 closed r004 alice 26 closed r005 dina 4 active r006 ivan 18 paused r007 hana 3 active r008 hana 20 paused
alice eli alice ivan hana
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024015-p1
Ignoring the header row, print the display_name field for any record where the score exceeds 12.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>12{print $h["display_name"]}
record_id display_name score state r001 gus 22 closed r002 alice 28 paused r003 hana 23 closed r004 kim 1 pending r005 eli 6 ready r006 dina 14 failed r007 bruno 16 paused r008 lina 5 failed r009 farah 29 pending r010 lina 23 active
gus alice hana dina bruno farah lina
record_id display_name score state r001 kim 4 closed r002 alice 26 pending r003 eli 17 closed r004 alice 26 closed r005 dina 4 active r006 ivan 18 paused r007 hana 3 active r008 hana 20 paused
alice eli alice ivan hana
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024015
qwen/qwen3.7-plus
awkweave-0024016
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
lina 23 ready ivan 20 pending lina 5 closed eli 12 failed ivan 11 paused dina 23 ready eli 20 ready kim 12 failed jules 5 active
lina ivan lina eli ivan dina eli kim jules
hana 10 failed bruno 27 ready bruno 3 active ivan 15 paused chen 5 closed bruno 23 active eli 7 paused
hana bruno bruno ivan chen bruno eli
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024016-p1
Given tab-separated input, extract and print the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
lina 23 ready ivan 20 pending lina 5 closed eli 12 failed ivan 11 paused dina 23 ready eli 20 ready kim 12 failed jules 5 active
lina ivan lina eli ivan dina eli kim jules
hana 10 failed bruno 27 ready bruno 3 active ivan 15 paused chen 5 closed bruno 23 active eli 7 paused
hana bruno bruno ivan chen bruno eli
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024016
qwen/qwen3.7-plus
awkweave-0024017
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 10.
BEGIN{FS=OFS=","}$2>10{print $1}
hana,7,pending hana,12,paused alice,8,active dina,20,failed ivan,29,closed hana,16,closed jules,1,active gus,1,pending lina,4,pending
hana dina ivan hana
alice,1,failed lina,29,pending alice,30,active ivan,22,ready bruno,9,active kim,9,ready eli,26,active jules,16,ready alice,15,paused ivan,30,active
lina alice ivan eli jules alice ivan
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024017-p1
For simple comma-separated input without quoted commas, print the first column if the second column value is greater than 10.
BEGIN{FS=OFS=","}$2>10{print $1}
hana,7,pending hana,12,paused alice,8,active dina,20,failed ivan,29,closed hana,16,closed jules,1,active gus,1,pending lina,4,pending
hana dina ivan hana
alice,1,failed lina,29,pending alice,30,active ivan,22,ready bruno,9,active kim,9,ready eli,26,active jules,16,ready alice,15,paused ivan,30,active
lina alice ivan eli jules alice ivan
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024017
qwen/qwen3.7-plus
awkweave-0024018
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
farah harbor 18 dina fable 29 kim grove 87 jules grove 21 gus delta 5 kim birch 43 hana harbor 2 chen amber 53 gus amber 66
farah harbor 18 dina fable 29 kim grove 87 jules grove 21 gus delta 5 kim birch 43 hana harbor 2 chen amber 53 gus amber 66
gus harbor 89 ivan birch 103 lina birch 43 alice delta 50 dina harbor 85 eli harbor 13 dina indigo 13 farah birch 71
gus harbor 89 ivan birch 103 lina birch 43 alice delta 50 dina harbor 85 eli harbor 13 dina indigo 13 farah birch 71
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024018-p1
Remove leading and trailing whitespace from each line and replace sequences of internal whitespace with a single space.
{$1=$1;print}
farah harbor 18 dina fable 29 kim grove 87 jules grove 21 gus delta 5 kim birch 43 hana harbor 2 chen amber 53 gus amber 66
farah harbor 18 dina fable 29 kim grove 87 jules grove 21 gus delta 5 kim birch 43 hana harbor 2 chen amber 53 gus amber 66
gus harbor 89 ivan birch 103 lina birch 43 alice delta 50 dina harbor 85 eli harbor 13 dina indigo 13 farah birch 71
gus harbor 89 ivan birch 103 lina birch 43 alice delta 50 dina harbor 85 eli harbor 13 dina indigo 13 farah birch 71
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024018
qwen/qwen3.7-plus
awkweave-0024019
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
bruno fable 92 paused chen cobalt 66 pending dina indigo 32 ready bruno indigo 94 failed gus cobalt 76 paused eli ember 52 paused ivan juniper 11 failed lina delta 52 ready farah harbor 82 ready bruno fable 1 failed
chen cobalt 66 pending
jules harbor 56 paused hana indigo 10 pending kim indigo 8 pending ivan grove 68 closed kim harbor 91 closed chen birch 113 active jules grove 93 active
jules harbor 56 paused
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024019-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}
bruno fable 92 paused chen cobalt 66 pending dina indigo 32 ready bruno indigo 94 failed gus cobalt 76 paused eli ember 52 paused ivan juniper 11 failed lina delta 52 ready farah harbor 82 ready bruno fable 1 failed
chen cobalt 66 pending
jules harbor 56 paused hana indigo 10 pending kim indigo 8 pending ivan grove 68 closed kim harbor 91 closed chen birch 113 active jules grove 93 active
jules harbor 56 paused
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024019
qwen/qwen3.7-plus
awkweave-0024020
Print every 4th line starting at line 2 (then line 6, and so on).
NR%4==2
jules 35 gus 90 ivan 71 kim 82 hana 17 gus 89 hana 23 chen 81 dina 93 hana 90
gus 90 gus 89 hana 90
eli 59 ivan 50 hana 97 bruno 107 alice 15 hana 101 ivan 33 kim 69 chen 64 ivan 112
ivan 50 hana 101 ivan 112
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024020-p1
Print every 4th line beginning with line 2 (i.e., lines 2, 6, 10, etc.).
NR%4==2
jules 35 gus 90 ivan 71 kim 82 hana 17 gus 89 hana 23 chen 81 dina 93 hana 90
gus 90 gus 89 hana 90
eli 59 ivan 50 hana 97 bruno 107 alice 15 hana 101 ivan 33 kim 69 chen 64 ivan 112
ivan 50 hana 101 ivan 112
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024020
qwen/qwen3.7-plus
awkweave-0024021
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha delta 82 beta grove 10 alpha ember 76 delta delta 2 delta indigo 0 gamma grove 5 beta birch 89 alpha harbor 85 beta grove 87 delta fable 20
7
beta juniper 120 alpha amber 120 beta juniper 39 gamma birch 75 beta grove 33 gamma amber 80 beta fable 41 delta amber 46
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024021-p1
Calculate the number of unique values in column 2 and output only this total count.
{if(!seen[$2]++)n++}END{print n+0}
alpha delta 82 beta grove 10 alpha ember 76 delta delta 2 delta indigo 0 gamma grove 5 beta birch 89 alpha harbor 85 beta grove 87 delta fable 20
7
beta juniper 120 alpha amber 120 beta juniper 39 gamma birch 75 beta grove 33 gamma amber 80 beta fable 41 delta amber 46
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024021
qwen/qwen3.7-plus
awkweave-0024022
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 15 0 bruno 11 8 gus 1 21 chen 29 17 kim 2 18 chen 15 5 alice 6 2 gus 22 20
bruno 1.38 gus 0.05 chen 1.71 kim 0.11 chen 3.00 alice 3.00 gus 1.10
kim 25 0 dina 13 4 lina 24 5 chen 14 6 bruno 13 7 chen 23 14
dina 3.25 lina 4.80 chen 2.33 bruno 1.86 chen 1.64
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024022-p1
For each row where column 3 is not zero, print column 1 and the result of column 2 divided by column 3, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
farah 15 0 bruno 11 8 gus 1 21 chen 29 17 kim 2 18 chen 15 5 alice 6 2 gus 22 20
bruno 1.38 gus 0.05 chen 1.71 kim 0.11 chen 3.00 alice 3.00 gus 1.10
kim 25 0 dina 13 4 lina 24 5 chen 14 6 bruno 13 7 chen 23 14
dina 3.25 lina 4.80 chen 2.33 bruno 1.86 chen 1.64
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024022
qwen/qwen3.7-plus
awkweave-0024023
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]}
lina grove 30 bruno grove 12 lina amber 14 eli cobalt 19 bruno amber 10 alice juniper 11 hana delta 12 bruno cobalt 24
lina grove 30 bruno cobalt 24 eli cobalt 19
ivan birch 28 jules juniper 17 farah ember 14 ivan fable 16 chen fable 21 ivan juniper 5
ivan birch 28 chen fable 21 jules juniper 17
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024023-p1
Output the three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
lina grove 30 bruno grove 12 lina amber 14 eli cobalt 19 bruno amber 10 alice juniper 11 hana delta 12 bruno cobalt 24
lina grove 30 bruno cobalt 24 eli cobalt 19
ivan birch 28 jules juniper 17 farah ember 14 ivan fable 16 chen fable 21 ivan juniper 5
ivan birch 28 chen fable 21 jules juniper 17
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024023
qwen/qwen3.7-plus
awkweave-0024024
For each line, output fields 5 and 4, in that order.
{print $5, $4}
active alice delta 74 amber pending kim indigo 63 ember ready farah harbor 57 harbor ready jules juniper 12 juniper closed bruno indigo 63 juniper closed chen cobalt 72 delta ready alice harbor 108 delta
amber 74 ember 63 harbor 57 juniper 12 juniper 63 delta 72 delta 108
pending ivan birch 38 ember failed alice juniper 87 harbor failed farah harbor 65 grove failed chen ember 34 grove closed dina harbor 70 cobalt paused farah grove 74 juniper failed ivan indigo 13 fable
ember 38 harbor 87 grove 65 grove 34 cobalt 70 juniper 74 fable 13
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024024-p1
For every line, display the fifth field followed by the fourth field.
{print $5, $4}
active alice delta 74 amber pending kim indigo 63 ember ready farah harbor 57 harbor ready jules juniper 12 juniper closed bruno indigo 63 juniper closed chen cobalt 72 delta ready alice harbor 108 delta
amber 74 ember 63 harbor 57 juniper 12 juniper 63 delta 72 delta 108
pending ivan birch 38 ember failed alice juniper 87 harbor failed farah harbor 65 grove failed chen ember 34 grove closed dina harbor 70 cobalt paused farah grove 74 juniper failed ivan indigo 13 fable
ember 38 harbor 87 grove 65 grove 34 cobalt 70 juniper 74 fable 13
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024024
qwen/qwen3.7-plus
awkweave-0024025
Print the last field of every input line.
{print $NF}
kim 4 kim failed kim 77 65 jules 29 dina active bruno 79 95 gus 8 dina active chen 80 62 hana 88 hana failed dina 48 82 alice 115 jules paused eli 66 6 ivan 8 eli closed chen 66 32 hana 17 lina failed hana 38 66
65 95 62 82 6 32 66
gus 35 ivan active bruno 29 112 alice 28 dina pending kim 31 32 ivan 45 chen failed kim 80 103 eli 85 eli active alice 36 48 hana 56 ivan failed gus 30 80 gus 31 kim closed alice 112 72 alice 66 alice paused ivan 70 88 kim 8 dina closed hana 46 11 bruno 44 jules paused dina 99 23 hana 16 kim failed bruno 90 29
112 32 103 48 80 72 88 11 23 29
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024025-p1
Output the final field from each input line.
{print $NF}
kim 4 kim failed kim 77 65 jules 29 dina active bruno 79 95 gus 8 dina active chen 80 62 hana 88 hana failed dina 48 82 alice 115 jules paused eli 66 6 ivan 8 eli closed chen 66 32 hana 17 lina failed hana 38 66
65 95 62 82 6 32 66
gus 35 ivan active bruno 29 112 alice 28 dina pending kim 31 32 ivan 45 chen failed kim 80 103 eli 85 eli active alice 36 48 hana 56 ivan failed gus 30 80 gus 31 kim closed alice 112 72 alice 66 alice paused ivan 70 88 kim 8 dina closed hana 46 11 bruno 44 jules paused dina 99 23 hana 16 kim failed bruno 90 29
112 32 103 48 80 72 88 11 23 29
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024025
qwen/qwen3.7-plus
awkweave-0024026
Print the complete records where column 1 is greater than 63.
$1 > 63
40 eli paused 59 chen paused 52 bruno failed 36 gus closed 48 kim ready 66 kim pending 98 eli ready 111 chen pending 112 jules active 84 ivan failed
66 kim pending 98 eli ready 111 chen pending 112 jules active 84 ivan failed
6 ivan active 110 chen paused 87 lina ready 35 hana failed 2 alice ready 58 jules failed 84 lina active 69 kim pending 70 hana closed
110 chen paused 87 lina ready 84 lina active 69 kim pending 70 hana closed
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024026-p1
Show full records where the value in the first column exceeds 63.
$1 > 63
40 eli paused 59 chen paused 52 bruno failed 36 gus closed 48 kim ready 66 kim pending 98 eli ready 111 chen pending 112 jules active 84 ivan failed
66 kim pending 98 eli ready 111 chen pending 112 jules active 84 ivan failed
6 ivan active 110 chen paused 87 lina ready 35 hana failed 2 alice ready 58 jules failed 84 lina active 69 kim pending 70 hana closed
110 chen paused 87 lina ready 84 lina active 69 kim pending 70 hana closed
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024026
qwen/qwen3.7-plus
awkweave-0024027
Show whole lines whose 1st field is between 9 and 23, inclusive.
$1 >= 9 && $1 <= 23
28 failed closed grove 20 active ready harbor 30 pending paused juniper 1 failed active ember 18 failed closed cobalt 13 closed pending indigo 6 failed failed amber
20 active ready harbor 18 failed closed cobalt 13 closed pending indigo
14 paused closed harbor 15 ready failed delta 12 ready paused fable 21 paused pending juniper 24 ready pending indigo 1 closed ready indigo 13 failed closed ember 14 failed ready amber 6 paused ready grove 16 pending paused fable
14 paused closed harbor 15 ready failed delta 12 ready paused fable 21 paused pending juniper 13 failed closed ember 14 failed ready amber 16 pending paused fable
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024027-p1
Display entire lines where the first field falls within the inclusive range of 9 to 23.
$1 >= 9 && $1 <= 23
28 failed closed grove 20 active ready harbor 30 pending paused juniper 1 failed active ember 18 failed closed cobalt 13 closed pending indigo 6 failed failed amber
20 active ready harbor 18 failed closed cobalt 13 closed pending indigo
14 paused closed harbor 15 ready failed delta 12 ready paused fable 21 paused pending juniper 24 ready pending indigo 1 closed ready indigo 13 failed closed ember 14 failed ready amber 6 paused ready grove 16 pending paused fable
14 paused closed harbor 15 ready failed delta 12 ready paused fable 21 paused pending juniper 13 failed closed ember 14 failed ready amber 16 pending paused fable
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024027
qwen/qwen3.7-plus
awkweave-0024028
Print column 4 only for rows where column 3 is exactly active.
$3 == "active"{print $4}
fable 5 ready dina grove 15 active lina grove 1 failed chen birch 24 paused ivan indigo 80 failed kim cobalt 41 failed alice fable 50 pending kim harbor 35 pending dina
lina
amber 87 paused farah cobalt 12 failed gus harbor 112 pending kim grove 23 ready farah ember 25 failed dina juniper 96 paused hana
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024028-p1
Output only the fourth column for rows where the third column is exactly active.
$3 == "active"{print $4}
fable 5 ready dina grove 15 active lina grove 1 failed chen birch 24 paused ivan indigo 80 failed kim cobalt 41 failed alice fable 50 pending kim harbor 35 pending dina
lina
amber 87 paused farah cobalt 12 failed gus harbor 112 pending kim grove 23 ready farah ember 25 failed dina juniper 96 paused hana
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024028
qwen/qwen3.7-plus
awkweave-0024029
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
WARN harbor 72 INFO ember 90 INFO indigo 92 WARN delta 89 ERROR indigo 19 ERROR juniper 6
ERROR indigo 19 ERROR juniper 6
ERROR grove 31 DEBUG ember 48 ERROR grove 32 WARN ember 113 ERROR birch 31 WARN indigo 23 DEBUG amber 112
ERROR grove 31 ERROR grove 32 ERROR birch 31
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024029-p1
Print all fields from lines where the first field starts with ERROR.
$1 ~ /^ERROR/
WARN harbor 72 INFO ember 90 INFO indigo 92 WARN delta 89 ERROR indigo 19 ERROR juniper 6
ERROR indigo 19 ERROR juniper 6
ERROR grove 31 DEBUG ember 48 ERROR grove 32 WARN ember 113 ERROR birch 31 WARN indigo 23 DEBUG amber 112
ERROR grove 31 ERROR grove 32 ERROR birch 31
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024029
qwen/qwen3.7-plus
awkweave-0024030
Print every line except those containing the exact text cobalt.
$0 !~ /cobalt/
grove 115 pending ember 50 pending cobalt 106 ready juniper 16 paused amber 5 paused birch 5 closed birch 19 pending cobalt 35 paused amber 26 ready fable 31 failed cobalt 999 active
grove 115 pending ember 50 pending juniper 16 paused amber 5 paused birch 5 closed birch 19 pending amber 26 ready fable 31 failed
harbor 11 closed fable 19 pending ember 59 closed birch 0 closed ember 114 active juniper 2 paused fable 115 ready cobalt 999 active
harbor 11 closed fable 19 pending ember 59 closed birch 0 closed ember 114 active juniper 2 paused fable 115 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024030-p1
Output every line that does not contain the exact string cobalt.
$0 !~ /cobalt/
grove 115 pending ember 50 pending cobalt 106 ready juniper 16 paused amber 5 paused birch 5 closed birch 19 pending cobalt 35 paused amber 26 ready fable 31 failed cobalt 999 active
grove 115 pending ember 50 pending juniper 16 paused amber 5 paused birch 5 closed birch 19 pending amber 26 ready fable 31 failed
harbor 11 closed fable 19 pending ember 59 closed birch 0 closed ember 114 active juniper 2 paused fable 115 ready cobalt 999 active
harbor 11 closed fable 19 pending ember 59 closed birch 0 closed ember 114 active juniper 2 paused fable 115 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024030
qwen/qwen3.7-plus
awkweave-0024031
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
lina ember 54 dina cobalt 83 dina ember 83 eli juniper 4 kim indigo 101 farah birch 52 ivan delta 75 chen birch 35 dina ember 70
dina cobalt 83 dina ember 83
hana harbor 36 chen juniper 52 alice grove 24 bruno birch 37 hana fable 12 bruno amber 79
chen juniper 52 alice grove 24
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024031-p1
Print lines 2 through 3, inclusive.
NR >= 2 && NR <= 3
lina ember 54 dina cobalt 83 dina ember 83 eli juniper 4 kim indigo 101 farah birch 52 ivan delta 75 chen birch 35 dina ember 70
dina cobalt 83 dina ember 83
hana harbor 36 chen juniper 52 alice grove 24 bruno birch 37 hana fable 12 bruno amber 79
chen juniper 52 alice grove 24
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024031
qwen/qwen3.7-plus
awkweave-0024032
Output only the first 5 records.
NR <= 5
farah 86 amber ivan 12 indigo eli 33 birch chen 115 grove farah 59 harbor gus 2 fable jules 95 cobalt alice 66 grove chen 68 cobalt dina 59 delta
farah 86 amber ivan 12 indigo eli 33 birch chen 115 grove farah 59 harbor
jules 84 ember ivan 39 grove eli 104 ember chen 86 harbor kim 100 delta hana 29 delta alice 82 cobalt hana 50 juniper
jules 84 ember ivan 39 grove eli 104 ember chen 86 harbor kim 100 delta
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024032-p1
Output only the first 5 records.
NR <= 5
farah 86 amber ivan 12 indigo eli 33 birch chen 115 grove farah 59 harbor gus 2 fable jules 95 cobalt alice 66 grove chen 68 cobalt dina 59 delta
farah 86 amber ivan 12 indigo eli 33 birch chen 115 grove farah 59 harbor
jules 84 ember ivan 39 grove eli 104 ember chen 86 harbor kim 100 delta hana 29 delta alice 82 cobalt hana 50 juniper
jules 84 ember ivan 39 grove eli 104 ember chen 86 harbor kim 100 delta
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0024032
qwen/qwen3.7-plus
awkweave-0024033
Skip the first line and print every remaining line unchanged.
NR > 1
alice 91 fable eli 86 delta alice 5 grove jules 106 amber bruno 84 amber bruno 18 birch
eli 86 delta alice 5 grove jules 106 amber bruno 84 amber bruno 18 birch
ivan 19 indigo chen 54 cobalt ivan 35 amber gus 36 fable bruno 66 juniper ivan 60 cobalt dina 90 birch
chen 54 cobalt ivan 35 amber gus 36 fable bruno 66 juniper ivan 60 cobalt dina 90 birch
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024033-p1
Ignore the first line and print all subsequent lines as they are.
NR > 1
alice 91 fable eli 86 delta alice 5 grove jules 106 amber bruno 84 amber bruno 18 birch
eli 86 delta alice 5 grove jules 106 amber bruno 84 amber bruno 18 birch
ivan 19 indigo chen 54 cobalt ivan 35 amber gus 36 fable bruno 66 juniper ivan 60 cobalt dina 90 birch
chen 54 cobalt ivan 35 amber gus 36 fable bruno 66 juniper ivan 60 cobalt dina 90 birch
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024033
qwen/qwen3.7-plus
awkweave-0024034
Count how many records have ready in column 2. Print 0 if there are none.
$2 == "ready"{n++}END{print n+0}
ivan pending 49 eli pending 8 gus paused 65 chen failed 107 dina pending 114 ivan pending 13 chen paused 28 lina pending 106 gus paused 34
0
chen failed 65 alice active 25 hana failed 68 bruno pending 3 gus closed 60 eli ready 44 chen paused 42
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024034-p1
Count the number of records with ready in the second column, printing 0 if none exist.
$2 == "ready"{n++}END{print n+0}
ivan pending 49 eli pending 8 gus paused 65 chen failed 107 dina pending 114 ivan pending 13 chen paused 28 lina pending 106 gus paused 34
0
chen failed 65 alice active 25 hana failed 68 bruno pending 3 gus closed 60 eli ready 44 chen paused 42
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024034
qwen/qwen3.7-plus
awkweave-0024035
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
hana 21 birch ivan 26 amber kim 20 juniper alice 22 harbor kim 11 grove kim 22 cobalt alice 13 indigo kim 8 harbor
143
chen 3 amber dina 14 birch bruno 15 cobalt lina 26 amber chen 24 ember gus 13 amber kim 1 juniper kim 25 cobalt
121
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024035-p1
Compute and output the sum of integer values found in the second column.
{s+=$2}END{print s+0}
hana 21 birch ivan 26 amber kim 20 juniper alice 22 harbor kim 11 grove kim 22 cobalt alice 13 indigo kim 8 harbor
143
chen 3 amber dina 14 birch bruno 15 cobalt lina 26 amber chen 24 ember gus 13 amber kim 1 juniper kim 25 cobalt
121
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024035
qwen/qwen3.7-plus
awkweave-0024036
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
indigo 4 farah fable 17 kim delta 7 bruno fable 24 hana cobalt 11 dina delta 27 dina harbor 16 alice
15.14
juniper 7 gus ember 1 hana amber 11 jules fable 21 eli harbor 17 chen birch 3 lina
10.00
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024036-p1
Output the average of the second column, formatted to two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
indigo 4 farah fable 17 kim delta 7 bruno fable 24 hana cobalt 11 dina delta 27 dina harbor 16 alice
15.14
juniper 7 gus ember 1 hana amber 11 jules fable 21 eli harbor 17 chen birch 3 lina
10.00
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024036
qwen/qwen3.7-plus
awkweave-0024037
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
ivan 11 fable bruno 23 delta farah 25 birch farah 20 indigo jules 20 delta gus 14 grove chen 14 grove bruno 13 amber bruno 3 amber lina 21 indigo
3
jules 14 amber bruno 23 amber kim 9 indigo hana 9 cobalt gus 24 birch ivan 10 delta
9
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024037-p1
Identify and display the minimum number found in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
ivan 11 fable bruno 23 delta farah 25 birch farah 20 indigo jules 20 delta gus 14 grove chen 14 grove bruno 13 amber bruno 3 amber lina 21 indigo
3
jules 14 amber bruno 23 amber kim 9 indigo hana 9 cobalt gus 24 birch ivan 10 delta
9
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024037
qwen/qwen3.7-plus
awkweave-0024038
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
birch hana 2 cobalt kim 14 delta bruno 4 fable lina 22 amber farah 22 delta kim 27 grove farah 11 ember lina 21
27
amber hana 9 indigo jules 18 delta farah 12 birch alice 27 birch ivan 7 cobalt hana 12 birch bruno 16 amber lina 27
27
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024038-p1
Identify and display the maximum number found in the third column.
NR==1||$3>extreme{extreme=$3}END{print extreme}
birch hana 2 cobalt kim 14 delta bruno 4 fable lina 22 amber farah 22 delta kim 27 grove farah 11 ember lina 21
27
amber hana 9 indigo jules 18 delta farah 12 birch alice 27 birch ivan 7 cobalt hana 12 birch bruno 16 amber lina 27
27
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024038
qwen/qwen3.7-plus
awkweave-0024039
Count all input records and print the total.
END{print NR}
kim 13 eli 39 chen 7 eli 53 eli 20 alice 52 kim 52 dina 103
8
kim 82 farah 116 farah 118 lina 59 gus 8 alice 0 farah 93 dina 119 dina 18 jules 103
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024039-p1
Calculate and print the total number of input records.
END{print NR}
kim 13 eli 39 chen 7 eli 53 eli 20 alice 52 kim 52 dina 103
8
kim 82 farah 116 farah 118 lina 59 gus 8 alice 0 farah 93 dina 119 dina 18 jules 103
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024039
qwen/qwen3.7-plus
awkweave-0024040
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
lina amber 36 eli fable 78 gus birch 56 jules grove 20 dina amber 65 eli fable 78 dina grove 59 gus delta 5
lina amber 36 eli fable 78 gus birch 56 jules grove 20 dina amber 65 dina grove 59 gus delta 5
gus birch 2 alice cobalt 2 ivan grove 28 eli indigo 35 gus harbor 86 chen cobalt 74 bruno delta 40 farah grove 90 gus harbor 86
gus birch 2 alice cobalt 2 ivan grove 28 eli indigo 35 gus harbor 86 chen cobalt 74 bruno delta 40 farah grove 90
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024040-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
lina amber 36 eli fable 78 gus birch 56 jules grove 20 dina amber 65 eli fable 78 dina grove 59 gus delta 5
lina amber 36 eli fable 78 gus birch 56 jules grove 20 dina amber 65 dina grove 59 gus delta 5
gus birch 2 alice cobalt 2 ivan grove 28 eli indigo 35 gus harbor 86 chen cobalt 74 bruno delta 40 farah grove 90 gus harbor 86
gus birch 2 alice cobalt 2 ivan grove 28 eli indigo 35 gus harbor 86 chen cobalt 74 bruno delta 40 farah grove 90
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024040
qwen/qwen3.7-plus
awkweave-0024041
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
alice grove 86 alice delta 18 farah juniper 5 ivan delta 10 eli delta 69 chen grove 102 chen amber 90 chen birch 42 chen grove 48 hana grove 53
alice grove 86 farah juniper 5 ivan delta 10 eli delta 69 chen grove 102 hana grove 53
chen delta 116 kim cobalt 62 lina grove 104 jules delta 70 ivan harbor 97 kim juniper 22 farah grove 92 dina fable 4
chen delta 116 kim cobalt 62 lina grove 104 jules delta 70 ivan harbor 97 farah grove 92 dina fable 4
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024041-p1
Retain only the initial line for every unique value in the first column, keeping the original order.
!seen[$1]++
alice grove 86 alice delta 18 farah juniper 5 ivan delta 10 eli delta 69 chen grove 102 chen amber 90 chen birch 42 chen grove 48 hana grove 53
alice grove 86 farah juniper 5 ivan delta 10 eli delta 69 chen grove 102 hana grove 53
chen delta 116 kim cobalt 62 lina grove 104 jules delta 70 ivan harbor 97 kim juniper 22 farah grove 92 dina fable 4
chen delta 116 kim cobalt 62 lina grove 104 jules delta 70 ivan harbor 97 farah grove 92 dina fable 4
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024041
qwen/qwen3.7-plus
awkweave-0024042
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
dina 26 ember alice 13 delta lina 22 amber farah 28 birch eli 30 ember dina 24 juniper farah 30 cobalt farah 10 amber eli 3 indigo gus 5 cobalt
dina 26 alice 39 lina 61 farah 89 eli 119 dina 143 farah 173 farah 183 eli 186 gus 191
alice 11 birch lina 23 indigo ivan 26 amber alice 30 birch lina 30 fable farah 10 grove hana 30 harbor jules 22 delta dina 22 indigo kim 14 grove
alice 11 lina 34 ivan 60 alice 90 lina 120 farah 130 hana 160 jules 182 dina 204 kim 218
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024042-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}
dina 26 ember alice 13 delta lina 22 amber farah 28 birch eli 30 ember dina 24 juniper farah 30 cobalt farah 10 amber eli 3 indigo gus 5 cobalt
dina 26 alice 39 lina 61 farah 89 eli 119 dina 143 farah 173 farah 183 eli 186 gus 191
alice 11 birch lina 23 indigo ivan 26 amber alice 30 birch lina 30 fable farah 10 grove hana 30 harbor jules 22 delta dina 22 indigo kim 14 grove
alice 11 lina 34 ivan 60 alice 90 lina 120 farah 130 hana 160 jules 182 dina 204 kim 218
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024042
qwen/qwen3.7-plus
awkweave-0024043
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
farah 14 25 delta alice 7 8 cobalt bruno 6 8 fable chen 30 11 birch kim 24 24 fable chen 20 3 fable farah 24 24 ember hana 6 17 harbor
farah 39 alice 15 bruno 14 chen 41 kim 48 chen 23 farah 48 hana 23
farah 3 27 birch alice 20 7 delta dina 9 25 cobalt hana 17 23 indigo jules 10 12 ember hana 3 27 cobalt
farah 30 alice 27 dina 34 hana 40 jules 22 hana 30
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024043-p1
For each row, output the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
farah 14 25 delta alice 7 8 cobalt bruno 6 8 fable chen 30 11 birch kim 24 24 fable chen 20 3 fable farah 24 24 ember hana 6 17 harbor
farah 39 alice 15 bruno 14 chen 41 kim 48 chen 23 farah 48 hana 23
farah 3 27 birch alice 20 7 delta dina 9 25 cobalt hana 17 23 indigo jules 10 12 ember hana 3 27 cobalt
farah 30 alice 27 dina 34 hana 40 jules 22 hana 30
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024043
qwen/qwen3.7-plus
awkweave-0024044
Print column 1 and pass when column 2 is at least 26; otherwise print fail.
{print $1,($2>=26?"pass":"fail")}
gus 10 gus 29 eli 28 dina 4 lina 23 ivan 11 eli 7 lina 1 hana 21
gus fail gus pass eli pass dina fail lina fail ivan fail eli fail lina fail hana fail
jules 8 dina 25 farah 25 bruno 26 chen 4 kim 12 hana 15 eli 21
jules fail dina fail farah fail bruno pass chen fail kim fail hana fail eli fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024044-p1
Output the first column along with 'pass' if the second column is 26 or higher, otherwise output 'fail'.
{print $1,($2>=26?"pass":"fail")}
gus 10 gus 29 eli 28 dina 4 lina 23 ivan 11 eli 7 lina 1 hana 21
gus fail gus pass eli pass dina fail lina fail ivan fail eli fail lina fail hana fail
jules 8 dina 25 farah 25 bruno 26 chen 4 kim 12 hana 15 eli 21
jules fail dina fail farah fail bruno pass chen fail kim fail hana fail eli fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024044
qwen/qwen3.7-plus
awkweave-0024045
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
farah fable 116 chen indigo 41 eli birch 80 jules ember 100 kim fable 62 bruno grove 42 dina delta 28 kim amber 24 chen delta 64 chen juniper 14
FABLE INDIGO BIRCH EMBER FABLE GROVE DELTA AMBER DELTA JUNIPER
chen juniper 101 alice birch 66 kim fable 51 eli ember 111 eli harbor 16 alice birch 111 eli harbor 40 jules harbor 34 gus cobalt 59
JUNIPER BIRCH FABLE EMBER HARBOR BIRCH HARBOR HARBOR COBALT
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024045-p1
Transform the second column to uppercase and print only that column.
{print toupper($2)}
farah fable 116 chen indigo 41 eli birch 80 jules ember 100 kim fable 62 bruno grove 42 dina delta 28 kim amber 24 chen delta 64 chen juniper 14
FABLE INDIGO BIRCH EMBER FABLE GROVE DELTA AMBER DELTA JUNIPER
chen juniper 101 alice birch 66 kim fable 51 eli ember 111 eli harbor 16 alice birch 111 eli harbor 40 jules harbor 34 gus cobalt 59
JUNIPER BIRCH FABLE EMBER HARBOR BIRCH HARBOR HARBOR COBALT
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024045
qwen/qwen3.7-plus
awkweave-0024046
From column 1, print 3 characters starting at character 3.
{print substr($1,3,3)}
ember 22 harbor 47 delta 21 ember 1 harbor 2 fable 73 fable 96 indigo 36 ember 110 fable 44
ber rbo lta ber rbo ble ble dig ber ble
delta 11 indigo 3 amber 94 birch 62 grove 15 juniper 95 harbor 62 amber 4 indigo 92 ember 14
lta dig ber rch ove nip rbo ber dig ber
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024046-p1
Extract and print a 3-character substring from the first column, starting at the third character.
{print substr($1,3,3)}
ember 22 harbor 47 delta 21 ember 1 harbor 2 fable 73 fable 96 indigo 36 ember 110 fable 44
ber rbo lta ber rbo ble ble dig ber ble
delta 11 indigo 3 amber 94 birch 62 grove 15 juniper 95 harbor 62 amber 4 indigo 92 ember 14
lta dig ber rch ove nip rbo ber dig ber
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024046
qwen/qwen3.7-plus
awkweave-0024047
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
fable_birch 58 grove_harbor 114 birch_birch 95 ember_amber 0 birch_amber 18 birch_amber 109 delta_fable 98
fable birch grove harbor birch birch ember amber birch amber birch amber delta fable
cobalt_fable 97 juniper_harbor 90 grove_birch 110 birch_birch 93 juniper_harbor 79 ember_fable 57 harbor_amber 75
cobalt fable juniper harbor grove birch birch birch juniper harbor ember fable harbor amber
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024047-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
fable_birch 58 grove_harbor 114 birch_birch 95 ember_amber 0 birch_amber 18 birch_amber 109 delta_fable 98
fable birch grove harbor birch birch ember amber birch amber birch amber delta fable
cobalt_fable 97 juniper_harbor 90 grove_birch 110 birch_birch 93 juniper_harbor 79 ember_fable 57 harbor_amber 75
cobalt fable juniper harbor grove birch birch birch juniper harbor ember fable harbor amber
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024047
qwen/qwen3.7-plus
awkweave-0024048
Reverse the order of fields on every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
gus ember 86 closed jules juniper 9 active bruno cobalt 65 pending lina delta 96 pending bruno grove 66 pending farah delta 40 closed chen juniper 105 active farah fable 108 pending alice fable 39 paused
closed 86 ember gus active 9 juniper jules pending 65 cobalt bruno pending 96 delta lina pending 66 grove bruno closed 40 delta farah active 105 juniper chen pending 108 fable farah paused 39 fable alice
bruno cobalt 78 ready bruno grove 16 paused hana delta 107 pending eli cobalt 74 failed chen delta 60 active chen indigo 31 closed bruno juniper 67 active hana amber 72 failed
ready 78 cobalt bruno paused 16 grove bruno pending 107 delta hana failed 74 cobalt eli active 60 delta chen closed 31 indigo chen active 67 juniper bruno failed 72 amber hana
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024048-p1
Output all fields from each line in reverse order.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
gus ember 86 closed jules juniper 9 active bruno cobalt 65 pending lina delta 96 pending bruno grove 66 pending farah delta 40 closed chen juniper 105 active farah fable 108 pending alice fable 39 paused
closed 86 ember gus active 9 juniper jules pending 65 cobalt bruno pending 96 delta lina pending 66 grove bruno closed 40 delta farah active 105 juniper chen pending 108 fable farah paused 39 fable alice
bruno cobalt 78 ready bruno grove 16 paused hana delta 107 pending eli cobalt 74 failed chen delta 60 active chen indigo 31 closed bruno juniper 67 active hana amber 72 failed
ready 78 cobalt bruno paused 16 grove bruno pending 107 delta hana failed 74 cobalt eli active 60 delta chen closed 31 indigo chen active 67 juniper bruno failed 72 amber hana
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024048
qwen/qwen3.7-plus
awkweave-0024049
Print the number of whitespace-separated fields on each line.
{print NF}
gus indigo 99 ready gus fable 66 paused lina juniper 44 ready eli ember 69 ready eli delta 13 pending lina ember 71 failed chen delta 64 paused
4 4 4 4 4 4 4
eli amber 55 closed lina juniper 10 ready eli birch 85 pending kim birch 92 paused bruno amber 15 active dina delta 118 active
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024049-p1
Display the count of whitespace-delimited fields for every line.
{print NF}
gus indigo 99 ready gus fable 66 paused lina juniper 44 ready eli ember 69 ready eli delta 13 pending lina ember 71 failed chen delta 64 paused
4 4 4 4 4 4 4
eli amber 55 closed lina juniper 10 ready eli birch 85 pending kim birch 92 paused bruno amber 15 active dina delta 118 active
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0024049
qwen/qwen3.7-plus
awkweave-0024050
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]]}
chen gamma 73 jules gamma 81 ivan beta 73 chen delta 63 eli gamma 15 gus alpha 119 jules alpha 21 gus gamma 78
gamma 4 beta 1 delta 1 alpha 2
gus gamma 108 alice gamma 112 gus gamma 14 chen alpha 83 alice beta 16 hana beta 61 ivan alpha 19 eli gamma 41 alice beta 82
gamma 4 alpha 2 beta 3
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0024050-p1
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
chen gamma 73 jules gamma 81 ivan beta 73 chen delta 63 eli gamma 15 gus alpha 119 jules alpha 21 gus gamma 78
gamma 4 beta 1 delta 1 alpha 2
gus gamma 108 alice gamma 112 gus gamma 14 chen alpha 83 alice beta 16 hana beta 61 ivan alpha 19 eli gamma 41 alice beta 82
gamma 4 alpha 2 beta 3
count_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0024050
qwen/qwen3.7-plus
awkweave-0024051
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 gamma 18 alice beta 18 ivan alpha 11 chen beta 27 hana beta 21 bruno gamma 11 bruno gamma 21 bruno delta 22
gamma 50 beta 66 alpha 11 delta 22
gus delta 30 farah beta 10 chen alpha 3 ivan delta 21 hana delta 15 bruno gamma 24 ivan beta 25
delta 66 beta 35 alpha 3 gamma 24
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null