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-0021051
The first row is a header. Print display_name for data rows whose score is greater than 15.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>15{print $h["display_name"]}
record_id display_name score state r001 lina 16 paused r002 farah 8 pending r003 bruno 19 pending r004 ivan 1 failed r005 hana 25 ready r006 eli 22 active
lina bruno hana eli
record_id display_name score state r001 farah 7 closed r002 alice 14 ready r003 hana 24 closed r004 chen 25 ready r005 ivan 1 active r006 ivan 10 active r007 lina 21 failed r008 kim 3 paused r009 ivan 13 closed
hana chen lina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021051-p1
Ignore the header row and print the display_name for records where the score exceeds 15.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>15{print $h["display_name"]}
record_id display_name score state r001 lina 16 paused r002 farah 8 pending r003 bruno 19 pending r004 ivan 1 failed r005 hana 25 ready r006 eli 22 active
lina bruno hana eli
record_id display_name score state r001 farah 7 closed r002 alice 14 ready r003 hana 24 closed r004 chen 25 ready r005 ivan 1 active r006 ivan 10 active r007 lina 21 failed r008 kim 3 paused r009 ivan 13 closed
hana chen lina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021051
qwen/qwen3.7-plus
awkweave-0021052
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
kim 30 active chen 9 closed alice 24 closed hana 22 failed hana 9 ready hana 18 ready
kim chen alice hana hana hana
alice 22 paused ivan 24 active farah 1 pending ivan 2 active eli 8 paused kim 10 closed bruno 13 paused
alice ivan farah ivan eli kim bruno
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021052-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
kim 30 active chen 9 closed alice 24 closed hana 22 failed hana 9 ready hana 18 ready
kim chen alice hana hana hana
alice 22 paused ivan 24 active farah 1 pending ivan 2 active eli 8 paused kim 10 closed bruno 13 paused
alice ivan farah ivan eli kim bruno
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0021052
qwen/qwen3.7-plus
awkweave-0021053
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 13.
BEGIN{FS=OFS=","}$2>13{print $1}
hana,23,failed hana,9,closed eli,9,paused hana,17,pending dina,6,pending eli,5,active gus,18,active lina,6,ready ivan,11,failed dina,9,paused
hana hana gus
chen,15,ready farah,22,paused dina,4,pending gus,9,active lina,10,pending eli,3,ready dina,1,paused eli,16,failed
chen farah eli
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021053-p1
For comma-separated data without quoted fields, print column 1 if column 2 is greater than 13.
BEGIN{FS=OFS=","}$2>13{print $1}
hana,23,failed hana,9,closed eli,9,paused hana,17,pending dina,6,pending eli,5,active gus,18,active lina,6,ready ivan,11,failed dina,9,paused
hana hana gus
chen,15,ready farah,22,paused dina,4,pending gus,9,active lina,10,pending eli,3,ready dina,1,paused eli,16,failed
chen farah eli
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021053
qwen/qwen3.7-plus
awkweave-0021054
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
farah birch 120 hana cobalt 101 lina indigo 3 ivan amber 119 kim juniper 69 dina indigo 53 jules fable 74
farah birch 120 hana cobalt 101 lina indigo 3 ivan amber 119 kim juniper 69 dina indigo 53 jules fable 74
gus ember 50 farah harbor 118 lina fable 2 gus birch 59 hana amber 36 eli birch 117 ivan cobalt 107 dina juniper 8 lina cobalt 44
gus ember 50 farah harbor 118 lina fable 2 gus birch 59 hana amber 36 eli birch 117 ivan cobalt 107 dina juniper 8 lina cobalt 44
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021054-p1
Remove leading and trailing whitespace and replace internal whitespace sequences with a single space.
{$1=$1;print}
farah birch 120 hana cobalt 101 lina indigo 3 ivan amber 119 kim juniper 69 dina indigo 53 jules fable 74
farah birch 120 hana cobalt 101 lina indigo 3 ivan amber 119 kim juniper 69 dina indigo 53 jules fable 74
gus ember 50 farah harbor 118 lina fable 2 gus birch 59 hana amber 36 eli birch 117 ivan cobalt 107 dina juniper 8 lina cobalt 44
gus ember 50 farah harbor 118 lina fable 2 gus birch 59 hana amber 36 eli birch 117 ivan cobalt 107 dina juniper 8 lina cobalt 44
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021054
qwen/qwen3.7-plus
awkweave-0021055
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
hana fable 109 ready gus indigo 74 paused kim juniper 83 closed gus grove 7 paused alice harbor 13 paused dina amber 93 ready
alice harbor 13 paused
lina grove 9 paused jules delta 95 ready chen birch 106 failed dina delta 27 pending farah grove 95 closed dina amber 37 failed farah delta 48 active
chen birch 106 failed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021055-p1
Output the longest line from the input; if multiple lines share the maximum length, select the first one.
{if(length($0)>length(best))best=$0}END{print best}
hana fable 109 ready gus indigo 74 paused kim juniper 83 closed gus grove 7 paused alice harbor 13 paused dina amber 93 ready
alice harbor 13 paused
lina grove 9 paused jules delta 95 ready chen birch 106 failed dina delta 27 pending farah grove 95 closed dina amber 37 failed farah delta 48 active
chen birch 106 failed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021055
qwen/qwen3.7-plus
awkweave-0021056
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
bruno 96 chen 51 hana 87 hana 57 farah 73 chen 104 eli 8 bruno 5 chen 76 eli 71
chen 51 hana 57 chen 104 bruno 5 eli 71
ivan 37 dina 46 jules 4 eli 113 farah 81 farah 2 eli 40 farah 54
dina 46 eli 113 farah 2 farah 54
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021056-p1
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
bruno 96 chen 51 hana 87 hana 57 farah 73 chen 104 eli 8 bruno 5 chen 76 eli 71
chen 51 hana 57 chen 104 bruno 5 eli 71
ivan 37 dina 46 jules 4 eli 113 farah 81 farah 2 eli 40 farah 54
dina 46 eli 113 farah 2 farah 54
every_nth
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0021056
qwen/qwen3.7-plus
awkweave-0021057
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta cobalt 64 delta grove 67 delta amber 89 delta amber 110 gamma fable 22 gamma amber 83 alpha indigo 69 alpha amber 43 gamma birch 4 delta amber 67
4
beta harbor 119 beta indigo 113 beta harbor 12 alpha indigo 99 alpha juniper 92 delta ember 57 alpha indigo 32
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021057-p1
Calculate and print the total number of unique values found in column 1.
{if(!seen[$1]++)n++}END{print n+0}
beta cobalt 64 delta grove 67 delta amber 89 delta amber 110 gamma fable 22 gamma amber 83 alpha indigo 69 alpha amber 43 gamma birch 4 delta amber 67
4
beta harbor 119 beta indigo 113 beta harbor 12 alpha indigo 99 alpha juniper 92 delta ember 57 alpha indigo 32
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021057
qwen/qwen3.7-plus
awkweave-0021058
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 22 0 lina 23 13 farah 7 10 ivan 19 30 bruno 13 3 chen 29 27 farah 3 24 chen 9 12 hana 3 18
lina 1.77 farah 0.70 ivan 0.63 bruno 4.33 chen 1.07 farah 0.12 chen 0.75 hana 0.17
chen 3 0 bruno 9 12 farah 3 20 dina 23 15 chen 14 20 farah 24 17
bruno 0.75 farah 0.15 dina 1.53 chen 0.70 farah 1.41
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021058-p1
For each row where column 3 is non-zero, print column 1 and the result of column 2 divided by column 3, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 22 0 lina 23 13 farah 7 10 ivan 19 30 bruno 13 3 chen 29 27 farah 3 24 chen 9 12 hana 3 18
lina 1.77 farah 0.70 ivan 0.63 bruno 4.33 chen 1.07 farah 0.12 chen 0.75 hana 0.17
chen 3 0 bruno 9 12 farah 3 20 dina 23 15 chen 14 20 farah 24 17
bruno 0.75 farah 0.15 dina 1.53 chen 0.70 farah 1.41
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021058
qwen/qwen3.7-plus
awkweave-0021059
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]}
jules cobalt 8 kim juniper 2 chen harbor 19 chen fable 15 farah indigo 21 kim amber 30 jules fable 15 chen birch 17 eli juniper 12 gus fable 27
kim amber 30 gus fable 27 farah indigo 21
lina ember 18 alice juniper 26 farah delta 7 gus harbor 7 farah juniper 3 eli ember 22 hana delta 6 alice amber 3 jules delta 15 ivan juniper 29
ivan juniper 29 alice juniper 26 eli ember 22
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021059-p1
Output the top three records with the highest numeric values in column 3, sorted in descending order; preserve original 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]}
jules cobalt 8 kim juniper 2 chen harbor 19 chen fable 15 farah indigo 21 kim amber 30 jules fable 15 chen birch 17 eli juniper 12 gus fable 27
kim amber 30 gus fable 27 farah indigo 21
lina ember 18 alice juniper 26 farah delta 7 gus harbor 7 farah juniper 3 eli ember 22 hana delta 6 alice amber 3 jules delta 15 ivan juniper 29
ivan juniper 29 alice juniper 26 eli ember 22
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021059
qwen/qwen3.7-plus
awkweave-0021060
Select the 2nd and 1st fields in that order.
{print $2, $1}
paused 15 fable juniper ready 92 cobalt amber pending 67 cobalt cobalt paused 31 cobalt ember pending 3 birch birch paused 12 juniper ember
15 paused 92 ready 67 pending 31 paused 3 pending 12 paused
paused 45 grove birch closed 87 cobalt indigo closed 106 indigo juniper paused 3 birch birch paused 87 delta harbor active 36 amber fable
45 paused 87 closed 106 closed 3 paused 87 paused 36 active
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021060-p1
Output the second field followed by the first field.
{print $2, $1}
paused 15 fable juniper ready 92 cobalt amber pending 67 cobalt cobalt paused 31 cobalt ember pending 3 birch birch paused 12 juniper ember
15 paused 92 ready 67 pending 31 paused 3 pending 12 paused
paused 45 grove birch closed 87 cobalt indigo closed 106 indigo juniper paused 3 birch birch paused 87 delta harbor active 36 amber fable
45 paused 87 closed 106 closed 3 paused 87 paused 36 active
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021060
qwen/qwen3.7-plus
awkweave-0021061
Print the last field of every input line.
{print $NF}
active 80 failed juniper ready 78 ready fable ready 88 paused ember ready 80 active birch pending 74 paused indigo active 20 failed ember closed 118 ready ember pending 97 pending grove ready 55 paused delta pending 114 paused juniper
juniper fable ember birch indigo ember ember grove delta juniper
pending 115 failed ember paused 70 failed birch failed 35 ready fable closed 103 failed indigo active 5 pending harbor paused 82 active indigo
ember birch fable indigo harbor indigo
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021061-p1
Display the final field from each input line.
{print $NF}
active 80 failed juniper ready 78 ready fable ready 88 paused ember ready 80 active birch pending 74 paused indigo active 20 failed ember closed 118 ready ember pending 97 pending grove ready 55 paused delta pending 114 paused juniper
juniper fable ember birch indigo ember ember grove delta juniper
pending 115 failed ember paused 70 failed birch failed 35 ready fable closed 103 failed indigo active 5 pending harbor paused 82 active indigo
ember birch fable indigo harbor indigo
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021061
qwen/qwen3.7-plus
awkweave-0021062
Print the complete records where column 2 is at least 51.
$2 >= 51
ember 57 fable farah delta 7 harbor hana cobalt 119 ember ivan harbor 20 harbor gus juniper 34 harbor bruno ember 42 fable eli juniper 25 juniper hana cobalt 102 juniper farah amber 5 amber chen
ember 57 fable farah cobalt 119 ember ivan cobalt 102 juniper farah
indigo 31 delta chen ember 37 ember hana harbor 72 birch bruno grove 48 amber gus harbor 51 juniper kim harbor 74 fable gus cobalt 33 ember kim birch 53 birch eli grove 23 ember chen indigo 70 grove dina
harbor 72 birch bruno harbor 51 juniper kim harbor 74 fable gus birch 53 birch eli indigo 70 grove dina
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021062-p1
Show full records where the value in the second column is 51 or greater.
$2 >= 51
ember 57 fable farah delta 7 harbor hana cobalt 119 ember ivan harbor 20 harbor gus juniper 34 harbor bruno ember 42 fable eli juniper 25 juniper hana cobalt 102 juniper farah amber 5 amber chen
ember 57 fable farah cobalt 119 ember ivan cobalt 102 juniper farah
indigo 31 delta chen ember 37 ember hana harbor 72 birch bruno grove 48 amber gus harbor 51 juniper kim harbor 74 fable gus cobalt 33 ember kim birch 53 birch eli grove 23 ember chen indigo 70 grove dina
harbor 72 birch bruno harbor 51 juniper kim harbor 74 fable gus birch 53 birch eli indigo 70 grove dina
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021062
qwen/qwen3.7-plus
awkweave-0021063
Show whole lines whose 3rd field is between 7 and 22, inclusive.
$3 >= 7 && $3 <= 22
harbor paused 16 amber indigo ready 4 harbor amber ready 25 birch delta ready 25 juniper amber paused 5 juniper amber ready 27 delta harbor pending 21 birch juniper active 10 grove juniper closed 18 delta
harbor paused 16 amber harbor pending 21 birch juniper active 10 grove juniper closed 18 delta
amber paused 27 ember harbor failed 25 juniper delta failed 4 ember birch paused 19 cobalt ember active 21 grove ember pending 15 grove delta closed 18 indigo ember active 17 delta amber paused 24 delta juniper pending 13 juniper
birch paused 19 cobalt ember active 21 grove ember pending 15 grove delta closed 18 indigo ember active 17 delta juniper pending 13 juniper
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021063-p1
Print entire lines where the third field falls within the range of 7 to 22, inclusive.
$3 >= 7 && $3 <= 22
harbor paused 16 amber indigo ready 4 harbor amber ready 25 birch delta ready 25 juniper amber paused 5 juniper amber ready 27 delta harbor pending 21 birch juniper active 10 grove juniper closed 18 delta
harbor paused 16 amber harbor pending 21 birch juniper active 10 grove juniper closed 18 delta
amber paused 27 ember harbor failed 25 juniper delta failed 4 ember birch paused 19 cobalt ember active 21 grove ember pending 15 grove delta closed 18 indigo ember active 17 delta amber paused 24 delta juniper pending 13 juniper
birch paused 19 cobalt ember active 21 grove ember pending 15 grove delta closed 18 indigo ember active 17 delta juniper pending 13 juniper
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021063
qwen/qwen3.7-plus
awkweave-0021064
Print column 3 only for rows where column 2 is exactly closed.
$2 == "closed"{print $3}
47 ready dina grove 75 paused bruno fable 103 paused kim amber 110 paused bruno fable 94 pending dina harbor 17 pending eli grove 82 paused farah amber 27 closed chen juniper 24 failed bruno fable 109 closed farah delta
chen farah
104 paused dina delta 37 ready kim harbor 47 paused farah ember 0 pending farah ember 19 closed alice grove 118 ready eli indigo 108 active alice harbor 17 paused lina cobalt 18 failed jules indigo
alice
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021064-p1
Output only the third column for rows where the second column matches 'closed' exactly.
$2 == "closed"{print $3}
47 ready dina grove 75 paused bruno fable 103 paused kim amber 110 paused bruno fable 94 pending dina harbor 17 pending eli grove 82 paused farah amber 27 closed chen juniper 24 failed bruno fable 109 closed farah delta
chen farah
104 paused dina delta 37 ready kim harbor 47 paused farah ember 0 pending farah ember 19 closed alice grove 118 ready eli indigo 108 active alice harbor 17 paused lina cobalt 18 failed jules indigo
alice
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021064
qwen/qwen3.7-plus
awkweave-0021065
Print all fields from lines where field 3 begins with ERROR.
$3 ~ /^ERROR/
30 cobalt DEBUG 4 delta DEBUG 15 grove DEBUG 95 cobalt ERROR 11 fable INFO 112 indigo DEBUG 111 juniper INFO 1 harbor WARN 45 grove ERROR 120 indigo INFO
95 cobalt ERROR 45 grove ERROR
93 delta DEBUG 103 amber INFO 29 grove ERROR 63 delta ERROR 72 fable ERROR 15 juniper INFO 70 ember WARN 73 grove DEBUG 48 juniper DEBUG
29 grove ERROR 63 delta ERROR 72 fable ERROR
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021065-p1
Print all fields from lines where the third field starts with 'ERROR'.
$3 ~ /^ERROR/
30 cobalt DEBUG 4 delta DEBUG 15 grove DEBUG 95 cobalt ERROR 11 fable INFO 112 indigo DEBUG 111 juniper INFO 1 harbor WARN 45 grove ERROR 120 indigo INFO
95 cobalt ERROR 45 grove ERROR
93 delta DEBUG 103 amber INFO 29 grove ERROR 63 delta ERROR 72 fable ERROR 15 juniper INFO 70 ember WARN 73 grove DEBUG 48 juniper DEBUG
29 grove ERROR 63 delta ERROR 72 fable ERROR
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021065
qwen/qwen3.7-plus
awkweave-0021066
Print every line except those containing the exact text fable.
$0 !~ /fable/
fable 80 paused fable 71 pending cobalt 42 failed indigo 73 pending birch 57 paused birch 17 pending fable 999 active
cobalt 42 failed indigo 73 pending birch 57 paused birch 17 pending
grove 35 ready ember 112 paused delta 9 active indigo 64 pending fable 111 paused harbor 66 closed birch 58 paused grove 37 pending birch 107 failed fable 999 active
grove 35 ready ember 112 paused delta 9 active indigo 64 pending harbor 66 closed birch 58 paused grove 37 pending birch 107 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021066-p1
Output every line that does not contain the exact string 'fable'.
$0 !~ /fable/
fable 80 paused fable 71 pending cobalt 42 failed indigo 73 pending birch 57 paused birch 17 pending fable 999 active
cobalt 42 failed indigo 73 pending birch 57 paused birch 17 pending
grove 35 ready ember 112 paused delta 9 active indigo 64 pending fable 111 paused harbor 66 closed birch 58 paused grove 37 pending birch 107 failed fable 999 active
grove 35 ready ember 112 paused delta 9 active indigo 64 pending harbor 66 closed birch 58 paused grove 37 pending birch 107 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021066
qwen/qwen3.7-plus
awkweave-0021067
Print lines 3 through 4, including both endpoints.
NR >= 3 && NR <= 4
hana fable 93 lina birch 80 bruno ember 9 jules ember 21 dina amber 38 eli birch 113 eli grove 20
bruno ember 9 jules ember 21
farah indigo 106 kim delta 68 dina juniper 38 lina fable 32 eli juniper 108 bruno amber 92 hana delta 0
dina juniper 38 lina fable 32
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021067-p1
Print lines 3 and 4, including both.
NR >= 3 && NR <= 4
hana fable 93 lina birch 80 bruno ember 9 jules ember 21 dina amber 38 eli birch 113 eli grove 20
bruno ember 9 jules ember 21
farah indigo 106 kim delta 68 dina juniper 38 lina fable 32 eli juniper 108 bruno amber 92 hana delta 0
dina juniper 38 lina fable 32
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021067
qwen/qwen3.7-plus
awkweave-0021068
Output only the first 4 records.
NR <= 4
bruno 113 cobalt eli 93 birch gus 108 harbor jules 31 juniper chen 42 juniper bruno 30 amber alice 88 harbor farah 91 grove
bruno 113 cobalt eli 93 birch gus 108 harbor jules 31 juniper
chen 47 indigo farah 38 cobalt hana 77 amber bruno 33 birch eli 13 amber hana 73 delta hana 18 indigo farah 84 grove chen 54 delta alice 70 harbor
chen 47 indigo farah 38 cobalt hana 77 amber bruno 33 birch
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021068-p1
Display only the first four records.
NR <= 4
bruno 113 cobalt eli 93 birch gus 108 harbor jules 31 juniper chen 42 juniper bruno 30 amber alice 88 harbor farah 91 grove
bruno 113 cobalt eli 93 birch gus 108 harbor jules 31 juniper
chen 47 indigo farah 38 cobalt hana 77 amber bruno 33 birch eli 13 amber hana 73 delta hana 18 indigo farah 84 grove chen 54 delta alice 70 harbor
chen 47 indigo farah 38 cobalt hana 77 amber bruno 33 birch
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021068
qwen/qwen3.7-plus
awkweave-0021069
Skip the first line and print every remaining line unchanged.
NR > 1
lina 48 juniper lina 102 indigo eli 0 ember alice 104 fable dina 9 cobalt gus 42 amber hana 57 ember farah 36 fable bruno 10 delta jules 18 birch
lina 102 indigo eli 0 ember alice 104 fable dina 9 cobalt gus 42 amber hana 57 ember farah 36 fable bruno 10 delta jules 18 birch
jules 13 fable hana 57 harbor hana 11 harbor chen 73 harbor alice 95 birch farah 55 harbor
hana 57 harbor hana 11 harbor chen 73 harbor alice 95 birch farah 55 harbor
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021069-p1
Ignore the first line and print all subsequent lines as they are.
NR > 1
lina 48 juniper lina 102 indigo eli 0 ember alice 104 fable dina 9 cobalt gus 42 amber hana 57 ember farah 36 fable bruno 10 delta jules 18 birch
lina 102 indigo eli 0 ember alice 104 fable dina 9 cobalt gus 42 amber hana 57 ember farah 36 fable bruno 10 delta jules 18 birch
jules 13 fable hana 57 harbor hana 11 harbor chen 73 harbor alice 95 birch farah 55 harbor
hana 57 harbor hana 11 harbor chen 73 harbor alice 95 birch farah 55 harbor
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021069
qwen/qwen3.7-plus
awkweave-0021070
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
gus ready 56 farah active 88 alice closed 21 lina failed 84 jules ready 95 kim ready 80
0
eli paused 77 alice failed 120 ivan ready 57 kim active 50 farah paused 113 eli pending 2
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021070-p1
Count the number of records with 'pending' in the second column; output 0 if none exist.
$2 == "pending"{n++}END{print n+0}
gus ready 56 farah active 88 alice closed 21 lina failed 84 jules ready 95 kim ready 80
0
eli paused 77 alice failed 120 ivan ready 57 kim active 50 farah paused 113 eli pending 2
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021070
qwen/qwen3.7-plus
awkweave-0021071
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
grove 2 alice indigo 11 chen indigo 7 eli ember 18 gus fable 17 bruno delta 16 eli indigo 26 chen indigo 13 farah
110
delta 8 kim harbor 16 eli amber 10 eli birch 19 lina fable 24 ivan amber 8 ivan grove 26 farah grove 9 farah
120
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021071-p1
Compute and display the sum of integer values in the second column.
{s+=$2}END{print s+0}
grove 2 alice indigo 11 chen indigo 7 eli ember 18 gus fable 17 bruno delta 16 eli indigo 26 chen indigo 13 farah
110
delta 8 kim harbor 16 eli amber 10 eli birch 19 lina fable 24 ivan amber 8 ivan grove 26 farah grove 9 farah
120
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021071
qwen/qwen3.7-plus
awkweave-0021072
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
lina amber 6 jules harbor 23 ivan juniper 3 chen grove 12 bruno grove 8 bruno birch 12
10.67
bruno cobalt 2 jules birch 8 lina indigo 13 dina grove 21 jules juniper 14 hana grove 27 gus cobalt 10
13.57
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021072-p1
Output the average of the third column, formatted to two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
lina amber 6 jules harbor 23 ivan juniper 3 chen grove 12 bruno grove 8 bruno birch 12
10.67
bruno cobalt 2 jules birch 8 lina indigo 13 dina grove 21 jules juniper 14 hana grove 27 gus cobalt 10
13.57
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021072
qwen/qwen3.7-plus
awkweave-0021073
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
ivan 26 ember eli 18 fable hana 16 cobalt eli 13 ember farah 2 delta dina 24 grove gus 19 ember dina 23 juniper
2
alice 30 juniper dina 9 harbor hana 30 birch alice 13 delta ivan 16 indigo farah 13 indigo bruno 18 grove dina 10 juniper
9
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021073-p1
Identify and display the minimum number found in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
ivan 26 ember eli 18 fable hana 16 cobalt eli 13 ember farah 2 delta dina 24 grove gus 19 ember dina 23 juniper
2
alice 30 juniper dina 9 harbor hana 30 birch alice 13 delta ivan 16 indigo farah 13 indigo bruno 18 grove dina 10 juniper
9
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021073
qwen/qwen3.7-plus
awkweave-0021074
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
ember 28 jules delta 18 hana indigo 14 chen cobalt 13 jules delta 9 gus delta 8 lina
28
fable 29 lina birch 12 bruno cobalt 6 gus delta 29 kim cobalt 25 gus amber 11 ivan
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021074-p1
Identify and display the maximum number found in the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
ember 28 jules delta 18 hana indigo 14 chen cobalt 13 jules delta 9 gus delta 8 lina
28
fable 29 lina birch 12 bruno cobalt 6 gus delta 29 kim cobalt 25 gus amber 11 ivan
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021074
qwen/qwen3.7-plus
awkweave-0021075
Count all input records and print the total.
END{print NR}
gus 84 gus 53 hana 8 hana 78 lina 32 eli 17 jules 53
7
ivan 59 jules 88 bruno 67 kim 118 chen 24 farah 1 kim 36 chen 100 chen 75
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021075-p1
Calculate and output the total number of input lines.
END{print NR}
gus 84 gus 53 hana 8 hana 78 lina 32 eli 17 jules 53
7
ivan 59 jules 88 bruno 67 kim 118 chen 24 farah 1 kim 36 chen 100 chen 75
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021075
qwen/qwen3.7-plus
awkweave-0021076
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
jules birch 104 eli ember 7 bruno amber 49 chen amber 103 jules cobalt 8 alice delta 105 alice cobalt 105 eli ember 7 chen ember 68
jules birch 104 eli ember 7 bruno amber 49 chen amber 103 jules cobalt 8 alice delta 105 alice cobalt 105 chen ember 68
hana amber 74 jules indigo 1 alice harbor 31 bruno birch 15 chen delta 94 gus fable 11 gus indigo 73 alice harbor 31 lina juniper 28 farah fable 3
hana amber 74 jules indigo 1 alice harbor 31 bruno birch 15 chen delta 94 gus fable 11 gus indigo 73 lina juniper 28 farah fable 3
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021076-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
jules birch 104 eli ember 7 bruno amber 49 chen amber 103 jules cobalt 8 alice delta 105 alice cobalt 105 eli ember 7 chen ember 68
jules birch 104 eli ember 7 bruno amber 49 chen amber 103 jules cobalt 8 alice delta 105 alice cobalt 105 chen ember 68
hana amber 74 jules indigo 1 alice harbor 31 bruno birch 15 chen delta 94 gus fable 11 gus indigo 73 alice harbor 31 lina juniper 28 farah fable 3
hana amber 74 jules indigo 1 alice harbor 31 bruno birch 15 chen delta 94 gus fable 11 gus indigo 73 lina juniper 28 farah fable 3
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021076
qwen/qwen3.7-plus
awkweave-0021077
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
bruno cobalt 19 eli cobalt 120 alice birch 113 bruno juniper 80 kim juniper 88 chen cobalt 109 eli harbor 81 alice delta 96 ivan juniper 8
bruno cobalt 19 alice birch 113 bruno juniper 80 eli harbor 81 alice delta 96
gus amber 67 jules cobalt 95 alice ember 63 eli cobalt 106 eli cobalt 38 kim fable 79
gus amber 67 jules cobalt 95 alice ember 63 kim fable 79
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021077-p1
Retain only the initial line for every unique value in the second column, keeping the original order.
!seen[$2]++
bruno cobalt 19 eli cobalt 120 alice birch 113 bruno juniper 80 kim juniper 88 chen cobalt 109 eli harbor 81 alice delta 96 ivan juniper 8
bruno cobalt 19 alice birch 113 bruno juniper 80 eli harbor 81 alice delta 96
gus amber 67 jules cobalt 95 alice ember 63 eli cobalt 106 eli cobalt 38 kim fable 79
gus amber 67 jules cobalt 95 alice ember 63 kim fable 79
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021077
qwen/qwen3.7-plus
awkweave-0021078
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
jules 4 birch eli 26 cobalt alice 15 juniper bruno 22 grove lina 26 fable ivan 1 amber lina 18 fable
jules 4 eli 30 alice 45 bruno 67 lina 93 ivan 94 lina 112
hana 22 birch ivan 1 harbor eli 26 fable ivan 10 cobalt chen 16 indigo hana 20 grove bruno 29 birch
hana 22 ivan 23 eli 49 ivan 59 chen 75 hana 95 bruno 124
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021078-p1
For each entry, output the first column and the cumulative total of the second column, separated by a space.
{s+=$2;print $1,s}
jules 4 birch eli 26 cobalt alice 15 juniper bruno 22 grove lina 26 fable ivan 1 amber lina 18 fable
jules 4 eli 30 alice 45 bruno 67 lina 93 ivan 94 lina 112
hana 22 birch ivan 1 harbor eli 26 fable ivan 10 cobalt chen 16 indigo hana 20 grove bruno 29 birch
hana 22 ivan 23 eli 49 ivan 59 chen 75 hana 95 bruno 124
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021078
qwen/qwen3.7-plus
awkweave-0021079
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
farah 8 28 grove ivan 1 5 fable gus 21 14 harbor hana 2 4 birch hana 25 2 delta chen 19 6 amber chen 29 28 birch bruno 30 28 indigo dina 1 21 grove
farah 36 ivan 6 gus 35 hana 6 hana 27 chen 25 chen 57 bruno 58 dina 22
lina 22 28 cobalt ivan 19 2 harbor alice 15 29 juniper gus 18 4 harbor bruno 9 19 fable dina 23 2 amber ivan 3 22 indigo
lina 50 ivan 21 alice 44 gus 22 bruno 28 dina 25 ivan 25
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021079-p1
For each row, output the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
farah 8 28 grove ivan 1 5 fable gus 21 14 harbor hana 2 4 birch hana 25 2 delta chen 19 6 amber chen 29 28 birch bruno 30 28 indigo dina 1 21 grove
farah 36 ivan 6 gus 35 hana 6 hana 27 chen 25 chen 57 bruno 58 dina 22
lina 22 28 cobalt ivan 19 2 harbor alice 15 29 juniper gus 18 4 harbor bruno 9 19 fable dina 23 2 amber ivan 3 22 indigo
lina 50 ivan 21 alice 44 gus 22 bruno 28 dina 25 ivan 25
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021079
qwen/qwen3.7-plus
awkweave-0021080
Print column 1 and pass when column 2 is at least 23; otherwise print fail.
{print $1,($2>=23?"pass":"fail")}
chen 1 hana 26 hana 17 eli 2 alice 22 kim 26 dina 18 eli 11
chen fail hana pass hana fail eli fail alice fail kim pass dina fail eli fail
kim 20 chen 9 hana 30 eli 24 chen 30 bruno 8 lina 4
kim fail chen fail hana pass eli pass chen pass bruno fail lina fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021080-p1
Output the first column along with 'pass' if the second column is 23 or greater, otherwise output 'fail'.
{print $1,($2>=23?"pass":"fail")}
chen 1 hana 26 hana 17 eli 2 alice 22 kim 26 dina 18 eli 11
chen fail hana pass hana fail eli fail alice fail kim pass dina fail eli fail
kim 20 chen 9 hana 30 eli 24 chen 30 bruno 8 lina 4
kim fail chen fail hana pass eli pass chen pass bruno fail lina fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021080
qwen/qwen3.7-plus
awkweave-0021081
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
dina indigo 105 dina ember 103 gus delta 4 chen birch 26 lina cobalt 34 dina indigo 50 alice fable 30 bruno ember 13 ivan grove 15
INDIGO EMBER DELTA BIRCH COBALT INDIGO FABLE EMBER GROVE
hana grove 29 hana cobalt 74 hana cobalt 60 ivan amber 70 kim birch 57 jules juniper 2 kim ember 32 dina fable 111 bruno indigo 103
GROVE COBALT COBALT AMBER BIRCH JUNIPER EMBER FABLE INDIGO
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021081-p1
Transform the second column to uppercase and display only that column.
{print toupper($2)}
dina indigo 105 dina ember 103 gus delta 4 chen birch 26 lina cobalt 34 dina indigo 50 alice fable 30 bruno ember 13 ivan grove 15
INDIGO EMBER DELTA BIRCH COBALT INDIGO FABLE EMBER GROVE
hana grove 29 hana cobalt 74 hana cobalt 60 ivan amber 70 kim birch 57 jules juniper 2 kim ember 32 dina fable 111 bruno indigo 103
GROVE COBALT COBALT AMBER BIRCH JUNIPER EMBER FABLE INDIGO
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021081
qwen/qwen3.7-plus
awkweave-0021082
From column 1, print 3 characters starting at character 2.
{print substr($1,2,3)}
juniper 30 ember 39 birch 83 juniper 101 amber 63 indigo 12 juniper 116
uni mbe irc uni mbe ndi uni
delta 93 juniper 79 cobalt 106 indigo 69 delta 4 indigo 3 amber 75
elt uni oba ndi elt ndi mbe
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021082-p1
Extract and print a 3-character substring from the first column, starting at position 2.
{print substr($1,2,3)}
juniper 30 ember 39 birch 83 juniper 101 amber 63 indigo 12 juniper 116
uni mbe irc uni mbe ndi uni
delta 93 juniper 79 cobalt 106 indigo 69 delta 4 indigo 3 amber 75
elt uni oba ndi elt ndi mbe
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021082
qwen/qwen3.7-plus
awkweave-0021083
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
juniper_amber 114 fable_delta 106 grove_harbor 77 juniper_harbor 37 harbor_amber 41 indigo_delta 106
juniper amber fable delta grove harbor juniper harbor harbor amber indigo delta
delta_juniper 104 grove_birch 56 birch_harbor 53 birch_amber 20 indigo_juniper 66 ember_birch 30 fable_birch 106 harbor_indigo 27
delta juniper grove birch birch harbor birch amber indigo juniper ember birch fable birch harbor indigo
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021083-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
juniper_amber 114 fable_delta 106 grove_harbor 77 juniper_harbor 37 harbor_amber 41 indigo_delta 106
juniper amber fable delta grove harbor juniper harbor harbor amber indigo delta
delta_juniper 104 grove_birch 56 birch_harbor 53 birch_amber 20 indigo_juniper 66 ember_birch 30 fable_birch 106 harbor_indigo 27
delta juniper grove birch birch harbor birch amber indigo juniper ember birch fable birch harbor indigo
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021083
qwen/qwen3.7-plus
awkweave-0021084
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 66 pending farah harbor 80 closed jules grove 29 pending jules indigo 83 paused ivan indigo 6 ready bruno harbor 46 ready
pending 66 juniper gus closed 80 harbor farah pending 29 grove jules paused 83 indigo jules ready 6 indigo ivan ready 46 harbor bruno
lina delta 44 closed jules birch 17 failed farah fable 3 closed chen delta 97 closed chen delta 60 ready bruno juniper 57 active ivan grove 51 pending dina birch 114 ready gus grove 40 paused
closed 44 delta lina failed 17 birch jules closed 3 fable farah closed 97 delta chen ready 60 delta chen active 57 juniper bruno pending 51 grove ivan ready 114 birch dina paused 40 grove gus
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021084-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 juniper 66 pending farah harbor 80 closed jules grove 29 pending jules indigo 83 paused ivan indigo 6 ready bruno harbor 46 ready
pending 66 juniper gus closed 80 harbor farah pending 29 grove jules paused 83 indigo jules ready 6 indigo ivan ready 46 harbor bruno
lina delta 44 closed jules birch 17 failed farah fable 3 closed chen delta 97 closed chen delta 60 ready bruno juniper 57 active ivan grove 51 pending dina birch 114 ready gus grove 40 paused
closed 44 delta lina failed 17 birch jules closed 3 fable farah closed 97 delta chen ready 60 delta chen active 57 juniper bruno pending 51 grove ivan ready 114 birch dina paused 40 grove gus
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021084
qwen/qwen3.7-plus
awkweave-0021085
Print the number of whitespace-separated fields on each line.
{print NF}
kim ember 75 failed farah grove 9 ready gus juniper 72 failed hana birch 91 ready farah juniper 13 paused eli ember 84 pending chen delta 48 ready gus grove 54 active
4 4 4 4 4 4 4 4
dina birch 50 paused alice fable 49 closed eli juniper 51 failed chen fable 43 failed dina birch 40 ready gus juniper 51 ready jules amber 56 failed hana delta 11 paused eli juniper 40 active
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021085-p1
Display the count of whitespace-delimited fields for every line.
{print NF}
kim ember 75 failed farah grove 9 ready gus juniper 72 failed hana birch 91 ready farah juniper 13 paused eli ember 84 pending chen delta 48 ready gus grove 54 active
4 4 4 4 4 4 4 4
dina birch 50 paused alice fable 49 closed eli juniper 51 failed chen fable 43 failed dina birch 40 ready gus juniper 51 ready jules amber 56 failed hana delta 11 paused eli juniper 40 active
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021085
qwen/qwen3.7-plus
awkweave-0021086
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
ivan beta 107 kim beta 0 jules gamma 55 bruno gamma 90 gus beta 91 jules delta 45 eli gamma 50
beta 3 gamma 3 delta 1
lina gamma 44 kim beta 61 lina gamma 36 farah delta 86 hana alpha 69 bruno gamma 80 farah beta 4
gamma 3 beta 2 delta 1 alpha 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021086-p1
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
ivan beta 107 kim beta 0 jules gamma 55 bruno gamma 90 gus beta 91 jules delta 45 eli gamma 50
beta 3 gamma 3 delta 1
lina gamma 44 kim beta 61 lina gamma 36 farah delta 86 hana alpha 69 bruno gamma 80 farah beta 4
gamma 3 beta 2 delta 1 alpha 1
count_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0021086
qwen/qwen3.7-plus
awkweave-0021087
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
lina gamma 29 hana gamma 29 eli alpha 4 dina beta 14 ivan gamma 12 farah delta 6 eli alpha 13 ivan gamma 1 chen alpha 14
gamma 71 alpha 31 beta 14 delta 6
alice delta 21 alice gamma 1 gus beta 7 alice gamma 25 farah beta 14 ivan alpha 13 farah beta 5 hana delta 20 jules delta 28 bruno alpha 1
delta 69 gamma 26 beta 26 alpha 14
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021087-p1
Calculate the sum of column 3 for each group in column 2, listing groups in the order they 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]]}
lina gamma 29 hana gamma 29 eli alpha 4 dina beta 14 ivan gamma 12 farah delta 6 eli alpha 13 ivan gamma 1 chen alpha 14
gamma 71 alpha 31 beta 14 delta 6
alice delta 21 alice gamma 1 gus beta 7 alice gamma 25 farah beta 14 ivan alpha 13 farah beta 5 hana delta 20 jules delta 28 bruno alpha 1
delta 69 gamma 26 beta 26 alpha 14
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021087
qwen/qwen3.7-plus
awkweave-0021088
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma ember 65 gamma fable 54 alpha delta 71 gamma amber 13 beta juniper 40 alpha delta 109 delta fable 113 beta fable 50
gamma 3 alpha 2 beta 2
gamma indigo 55 delta indigo 38 beta birch 0 alpha juniper 118 delta harbor 65 beta harbor 31 alpha harbor 114
delta 2 beta 2 alpha 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021088-p1
List each duplicate value from column 1 along 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]]}
gamma ember 65 gamma fable 54 alpha delta 71 gamma amber 13 beta juniper 40 alpha delta 109 delta fable 113 beta fable 50
gamma 3 alpha 2 beta 2
gamma indigo 55 delta indigo 38 beta birch 0 alpha juniper 118 delta harbor 65 beta harbor 31 alpha harbor 114
delta 2 beta 2 alpha 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021088
qwen/qwen3.7-plus
awkweave-0021089
The first row is a header. Print the score column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
display_name region score note r001 farah 2 active r002 lina 2 pending r003 kim 17 closed r004 gus 7 paused r005 kim 27 active r006 farah 4 active r007 ivan 11 active
2 2 17 7 27 4 11
display_name region score note r001 alice 17 active r002 alice 15 closed r003 lina 20 paused r004 alice 20 pending r005 bruno 18 closed r006 eli 4 closed r007 gus 30 pending r008 alice 13 paused r009 hana 18 paused
17 15 20 20 18 4 30 13 18
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021089-p1
Skip the header row and print the score column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
display_name region score note r001 farah 2 active r002 lina 2 pending r003 kim 17 closed r004 gus 7 paused r005 kim 27 active r006 farah 4 active r007 ivan 11 active
2 2 17 7 27 4 11
display_name region score note r001 alice 17 active r002 alice 15 closed r003 lina 20 paused r004 alice 20 pending r005 bruno 18 closed r006 eli 4 closed r007 gus 30 pending r008 alice 13 paused r009 hana 18 paused
17 15 20 20 18 4 30 13 18
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021089
qwen/qwen3.7-plus
awkweave-0021100
Print the last field of every input line.
{print $NF}
49 lina farah paused failed fable 111 farah kim pending pending grove 67 kim farah pending ready delta 37 bruno dina closed active indigo 100 hana chen paused failed grove 42 alice hana ready failed indigo 51 hana hana paused pending delta
fable grove delta indigo grove indigo delta
107 alice kim pending failed juniper 59 alice jules failed paused indigo 114 alice eli ready ready grove 12 alice gus ready closed cobalt 93 jules lina failed pending grove 108 gus farah closed closed amber 18 alice dina closed ready birch 54 lina bruno pending pending harbor 0 bruno bruno closed pending harbor
juniper indigo grove cobalt grove amber birch harbor harbor
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021100-p1
Output the final field from each input line.
{print $NF}
49 lina farah paused failed fable 111 farah kim pending pending grove 67 kim farah pending ready delta 37 bruno dina closed active indigo 100 hana chen paused failed grove 42 alice hana ready failed indigo 51 hana hana paused pending delta
fable grove delta indigo grove indigo delta
107 alice kim pending failed juniper 59 alice jules failed paused indigo 114 alice eli ready ready grove 12 alice gus ready closed cobalt 93 jules lina failed pending grove 108 gus farah closed closed amber 18 alice dina closed ready birch 54 lina bruno pending pending harbor 0 bruno bruno closed pending harbor
juniper indigo grove cobalt grove amber birch harbor harbor
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021100
qwen/qwen3.7-plus
awkweave-0021101
Print the complete records where column 3 is at most 37.
$3 <= 37
fable paused 3 ready fable pending 118 failed fable paused 28 failed cobalt ready 98 paused juniper failed 84 paused fable failed 98 active ember active 103 failed delta closed 111 pending
fable paused 3 ready fable paused 28 failed
birch failed 52 paused birch ready 118 active juniper paused 50 failed ember active 93 failed grove paused 30 ready juniper pending 94 paused harbor paused 0 active
grove paused 30 ready harbor paused 0 active
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021101-p1
Print entire records where the value in column 3 is less than or equal to 37.
$3 <= 37
fable paused 3 ready fable pending 118 failed fable paused 28 failed cobalt ready 98 paused juniper failed 84 paused fable failed 98 active ember active 103 failed delta closed 111 pending
fable paused 3 ready fable paused 28 failed
birch failed 52 paused birch ready 118 active juniper paused 50 failed ember active 93 failed grove paused 30 ready juniper pending 94 paused harbor paused 0 active
grove paused 30 ready harbor paused 0 active
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021101
qwen/qwen3.7-plus
awkweave-0021102
Show whole lines whose 3rd field is between 7 and 27, inclusive.
$3 >= 7 && $3 <= 27
ready cobalt 20 paused ready delta 19 failed closed amber 28 failed pending harbor 17 ready failed ember 5 failed paused ember 4 paused paused indigo 13 pending paused indigo 27 pending
ready cobalt 20 paused ready delta 19 failed pending harbor 17 ready paused indigo 13 pending paused indigo 27 pending
paused juniper 8 failed paused amber 2 pending pending cobalt 10 ready paused grove 30 pending ready fable 25 pending pending delta 22 failed pending cobalt 24 closed
paused juniper 8 failed pending cobalt 10 ready ready fable 25 pending pending delta 22 failed pending cobalt 24 closed
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021102-p1
Display full lines where the third field falls within the inclusive range of 7 to 27.
$3 >= 7 && $3 <= 27
ready cobalt 20 paused ready delta 19 failed closed amber 28 failed pending harbor 17 ready failed ember 5 failed paused ember 4 paused paused indigo 13 pending paused indigo 27 pending
ready cobalt 20 paused ready delta 19 failed pending harbor 17 ready paused indigo 13 pending paused indigo 27 pending
paused juniper 8 failed paused amber 2 pending pending cobalt 10 ready paused grove 30 pending ready fable 25 pending pending delta 22 failed pending cobalt 24 closed
paused juniper 8 failed pending cobalt 10 ready ready fable 25 pending pending delta 22 failed pending cobalt 24 closed
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021102
qwen/qwen3.7-plus
awkweave-0021103
Print column 2 only for rows where column 1 is exactly closed.
$1 == "closed"{print $2}
pending kim delta 49 paused kim birch 16 paused gus juniper 49 pending lina delta 31 paused ivan ember 51 failed farah harbor 61 paused eli cobalt 113 closed farah ember 88
farah
active lina ember 49 pending lina harbor 75 pending hana ember 77 failed farah grove 9 failed gus fable 4 active hana indigo 107 failed bruno amber 47 paused eli grove 97 pending dina harbor 1
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021103-p1
Output only column 2 for rows where column 1 matches 'closed' exactly.
$1 == "closed"{print $2}
pending kim delta 49 paused kim birch 16 paused gus juniper 49 pending lina delta 31 paused ivan ember 51 failed farah harbor 61 paused eli cobalt 113 closed farah ember 88
farah
active lina ember 49 pending lina harbor 75 pending hana ember 77 failed farah grove 9 failed gus fable 4 active hana indigo 107 failed bruno amber 47 paused eli grove 97 pending dina harbor 1
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021103
qwen/qwen3.7-plus
awkweave-0021104
Print all fields from lines where field 3 begins with WARN.
$3 ~ /^WARN/
47 fable ERROR 18 grove INFO 70 fable INFO 68 amber INFO 95 ember WARN 98 grove ERROR 2 delta ERROR 102 juniper WARN
95 ember WARN 102 juniper WARN
47 harbor INFO 67 amber ERROR 5 ember INFO 84 indigo ERROR 20 ember WARN 13 grove DEBUG 91 cobalt WARN 80 cobalt WARN 94 harbor DEBUG 90 ember ERROR
20 ember WARN 91 cobalt WARN 80 cobalt WARN
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021104-p1
Print all fields from lines where the third field starts with 'WARN'.
$3 ~ /^WARN/
47 fable ERROR 18 grove INFO 70 fable INFO 68 amber INFO 95 ember WARN 98 grove ERROR 2 delta ERROR 102 juniper WARN
95 ember WARN 102 juniper WARN
47 harbor INFO 67 amber ERROR 5 ember INFO 84 indigo ERROR 20 ember WARN 13 grove DEBUG 91 cobalt WARN 80 cobalt WARN 94 harbor DEBUG 90 ember ERROR
20 ember WARN 91 cobalt WARN 80 cobalt WARN
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021104
qwen/qwen3.7-plus
awkweave-0021105
Print every line except those containing the exact text indigo.
$0 !~ /indigo/
birch 108 active birch 85 pending harbor 37 failed cobalt 65 failed amber 83 failed harbor 53 active indigo 999 active
birch 108 active birch 85 pending harbor 37 failed cobalt 65 failed amber 83 failed harbor 53 active
fable 116 pending ember 24 pending birch 42 pending indigo 37 pending birch 96 pending fable 39 paused cobalt 56 paused indigo 999 active
fable 116 pending ember 24 pending birch 42 pending birch 96 pending fable 39 paused cobalt 56 paused
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021105-p1
Print every line that does not contain the exact string 'indigo'.
$0 !~ /indigo/
birch 108 active birch 85 pending harbor 37 failed cobalt 65 failed amber 83 failed harbor 53 active indigo 999 active
birch 108 active birch 85 pending harbor 37 failed cobalt 65 failed amber 83 failed harbor 53 active
fable 116 pending ember 24 pending birch 42 pending indigo 37 pending birch 96 pending fable 39 paused cobalt 56 paused indigo 999 active
fable 116 pending ember 24 pending birch 42 pending birch 96 pending fable 39 paused cobalt 56 paused
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021105
qwen/qwen3.7-plus
awkweave-0021106
Print lines 3 through 4, including both endpoints.
NR >= 3 && NR <= 4
hana ember 109 farah amber 47 bruno cobalt 11 hana fable 46 lina birch 59 jules birch 117 chen fable 60
bruno cobalt 11 hana fable 46
farah juniper 99 alice ember 15 lina harbor 77 alice indigo 85 gus harbor 78 gus grove 59 alice cobalt 77
lina harbor 77 alice indigo 85
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021106-p1
Display lines 3 to 4, inclusive.
NR >= 3 && NR <= 4
hana ember 109 farah amber 47 bruno cobalt 11 hana fable 46 lina birch 59 jules birch 117 chen fable 60
bruno cobalt 11 hana fable 46
farah juniper 99 alice ember 15 lina harbor 77 alice indigo 85 gus harbor 78 gus grove 59 alice cobalt 77
lina harbor 77 alice indigo 85
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021106
qwen/qwen3.7-plus
awkweave-0021107
Output only the first 3 records.
NR <= 3
ivan 95 amber eli 93 harbor dina 114 grove lina 91 indigo hana 29 indigo gus 42 amber ivan 118 cobalt
ivan 95 amber eli 93 harbor dina 114 grove
alice 95 cobalt ivan 11 cobalt bruno 18 fable eli 93 indigo kim 55 amber hana 81 delta farah 93 ember dina 78 indigo kim 106 juniper bruno 24 juniper
alice 95 cobalt ivan 11 cobalt bruno 18 fable
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021107-p1
Output just the initial 3 records.
NR <= 3
ivan 95 amber eli 93 harbor dina 114 grove lina 91 indigo hana 29 indigo gus 42 amber ivan 118 cobalt
ivan 95 amber eli 93 harbor dina 114 grove
alice 95 cobalt ivan 11 cobalt bruno 18 fable eli 93 indigo kim 55 amber hana 81 delta farah 93 ember dina 78 indigo kim 106 juniper bruno 24 juniper
alice 95 cobalt ivan 11 cobalt bruno 18 fable
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021107
qwen/qwen3.7-plus
awkweave-0021108
Skip the first line and print every remaining line unchanged.
NR > 1
gus 48 grove gus 69 juniper eli 64 amber dina 114 indigo dina 89 indigo bruno 80 birch alice 25 juniper
gus 69 juniper eli 64 amber dina 114 indigo dina 89 indigo bruno 80 birch alice 25 juniper
kim 60 amber alice 119 indigo hana 35 amber alice 28 grove bruno 60 grove ivan 83 harbor ivan 84 amber
alice 119 indigo hana 35 amber alice 28 grove bruno 60 grove ivan 83 harbor ivan 84 amber
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021108-p1
Omit the first line and output all subsequent lines as they are.
NR > 1
gus 48 grove gus 69 juniper eli 64 amber dina 114 indigo dina 89 indigo bruno 80 birch alice 25 juniper
gus 69 juniper eli 64 amber dina 114 indigo dina 89 indigo bruno 80 birch alice 25 juniper
kim 60 amber alice 119 indigo hana 35 amber alice 28 grove bruno 60 grove ivan 83 harbor ivan 84 amber
alice 119 indigo hana 35 amber alice 28 grove bruno 60 grove ivan 83 harbor ivan 84 amber
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021108
qwen/qwen3.7-plus
awkweave-0021109
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
chen paused 13 chen failed 84 dina failed 112 eli pending 55 ivan paused 79 alice paused 12 eli paused 21
2
eli ready 111 kim closed 114 lina ready 90 eli failed 68 hana ready 80 alice pending 120 eli failed 89 chen pending 57 ivan active 43
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021109-p1
Tally the records with 'failed' in column 2; output 0 if the count is zero.
$2 == "failed"{n++}END{print n+0}
chen paused 13 chen failed 84 dina failed 112 eli pending 55 ivan paused 79 alice paused 12 eli paused 21
2
eli ready 111 kim closed 114 lina ready 90 eli failed 68 hana ready 80 alice pending 120 eli failed 89 chen pending 57 ivan active 43
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021109
qwen/qwen3.7-plus
awkweave-0021110
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
indigo 1 bruno birch 14 eli juniper 27 ivan indigo 6 chen grove 8 alice birch 25 alice delta 9 bruno delta 29 ivan juniper 20 jules
139
juniper 1 farah birch 22 jules grove 26 chen birch 2 lina cobalt 24 dina amber 21 hana
96
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021110-p1
Compute and display the total sum of integer values in column 2.
{s+=$2}END{print s+0}
indigo 1 bruno birch 14 eli juniper 27 ivan indigo 6 chen grove 8 alice birch 25 alice delta 9 bruno delta 29 ivan juniper 20 jules
139
juniper 1 farah birch 22 jules grove 26 chen birch 2 lina cobalt 24 dina amber 21 hana
96
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021110
qwen/qwen3.7-plus