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-0052883
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
kim cobalt 18 alice cobalt 19 bruno fable 1 dina juniper 3 lina indigo 4 jules indigo 10 ivan amber 28 dina indigo 7 dina fable 15 gus harbor 23
ivan amber 28 gus harbor 23 alice cobalt 19
gus fable 13 bruno birch 5 gus harbor 6 chen birch 25 gus delta 16 lina ember 15 jules cobalt 29 gus fable 13 alice amber 25 bruno harbor 11
jules cobalt 29 chen birch 25 alice amber 25
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052883-p1
Select 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]}
kim cobalt 18 alice cobalt 19 bruno fable 1 dina juniper 3 lina indigo 4 jules indigo 10 ivan amber 28 dina indigo 7 dina fable 15 gus harbor 23
ivan amber 28 gus harbor 23 alice cobalt 19
gus fable 13 bruno birch 5 gus harbor 6 chen birch 25 gus delta 16 lina ember 15 jules cobalt 29 gus fable 13 alice amber 25 bruno harbor 11
jules cobalt 29 chen birch 25 alice amber 25
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052883
qwen/qwen3.7-plus
awkweave-0052884
Print column 2 followed by column 1 for every record.
{print $2, $1}
failed 98 20 alice active 12 76 kim closed 56 43 dina ready 21 10 chen ready 4 90 eli closed 95 114 gus ready 73 34 ivan failed 66 45 kim active 95 107 ivan
98 failed 12 active 56 closed 21 ready 4 ready 95 closed 73 ready 66 failed 95 active
pending 113 40 dina ready 36 1 kim closed 73 114 hana active 22 103 kim ready 9 84 ivan active 119 2 alice ready 49 90 gus ready 38 79 chen paused 1 36 gus
113 pending 36 ready 73 closed 22 active 9 ready 119 active 49 ready 38 ready 1 paused
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052884-p1
Output the second column then the first column for each record.
{print $2, $1}
failed 98 20 alice active 12 76 kim closed 56 43 dina ready 21 10 chen ready 4 90 eli closed 95 114 gus ready 73 34 ivan failed 66 45 kim active 95 107 ivan
98 failed 12 active 56 closed 21 ready 4 ready 95 closed 73 ready 66 failed 95 active
pending 113 40 dina ready 36 1 kim closed 73 114 hana active 22 103 kim ready 9 84 ivan active 119 2 alice ready 49 90 gus ready 38 79 chen paused 1 36 gus
113 pending 36 ready 73 closed 22 active 9 ready 119 active 49 ready 38 ready 1 paused
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052884
qwen/qwen3.7-plus
awkweave-0052885
Print the last field of every input line.
{print $NF}
delta 11 hana cobalt 39 gus cobalt 4 ivan fable 21 eli ember 25 bruno indigo 41 alice
hana gus ivan eli bruno alice
ember 84 bruno cobalt 40 jules harbor 72 dina juniper 67 kim indigo 71 alice amber 97 gus birch 7 kim
bruno jules dina kim alice gus kim
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052885-p1
Display the final field of every input line.
{print $NF}
delta 11 hana cobalt 39 gus cobalt 4 ivan fable 21 eli ember 25 bruno indigo 41 alice
hana gus ivan eli bruno alice
ember 84 bruno cobalt 40 jules harbor 72 dina juniper 67 kim indigo 71 alice amber 97 gus birch 7 kim
bruno jules dina kim alice gus kim
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052885
qwen/qwen3.7-plus
awkweave-0052886
Print the complete records where column 1 is greater than 52.
$1 > 52
40 gus alice 91 bruno dina 36 alice farah 77 kim bruno 22 bruno bruno 56 dina alice
91 bruno dina 77 kim bruno 56 dina alice
6 dina bruno 61 farah ivan 105 chen dina 39 bruno dina 61 chen farah 78 kim kim 30 eli hana 98 eli hana 94 alice kim 21 jules kim
61 farah ivan 105 chen dina 61 chen farah 78 kim kim 98 eli hana 94 alice kim
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052886-p1
Print full records where the value in the first column exceeds 52.
$1 > 52
40 gus alice 91 bruno dina 36 alice farah 77 kim bruno 22 bruno bruno 56 dina alice
91 bruno dina 77 kim bruno 56 dina alice
6 dina bruno 61 farah ivan 105 chen dina 39 bruno dina 61 chen farah 78 kim kim 30 eli hana 98 eli hana 94 alice kim 21 jules kim
61 farah ivan 105 chen dina 61 chen farah 78 kim kim 98 eli hana 94 alice kim
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052886
qwen/qwen3.7-plus
awkweave-0052887
Show whole lines whose 1st field is between 10 and 21, inclusive.
$1 >= 10 && $1 <= 21
6 harbor closed ember 17 birch failed indigo 2 amber pending fable 13 juniper failed cobalt 10 fable paused fable 6 juniper failed fable 5 juniper active ember 12 birch pending juniper 12 grove pending fable
17 birch failed indigo 13 juniper failed cobalt 10 fable paused fable 12 birch pending juniper 12 grove pending fable
10 indigo active birch 6 harbor active juniper 3 grove active grove 22 grove closed cobalt 27 grove ready delta 8 fable failed fable 15 delta closed birch
10 indigo active birch 15 delta closed birch
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052887-p1
Show entire lines where the first field falls within the inclusive range of 10 to 21.
$1 >= 10 && $1 <= 21
6 harbor closed ember 17 birch failed indigo 2 amber pending fable 13 juniper failed cobalt 10 fable paused fable 6 juniper failed fable 5 juniper active ember 12 birch pending juniper 12 grove pending fable
17 birch failed indigo 13 juniper failed cobalt 10 fable paused fable 12 birch pending juniper 12 grove pending fable
10 indigo active birch 6 harbor active juniper 3 grove active grove 22 grove closed cobalt 27 grove ready delta 8 fable failed fable 15 delta closed birch
10 indigo active birch 15 delta closed birch
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052887
qwen/qwen3.7-plus
awkweave-0052888
Print column 2 only for rows where column 3 is exactly pending.
$3 == "pending"{print $2}
amber eli pending 116 grove chen paused 31 harbor bruno closed 60 grove hana failed 8 harbor hana active 46 grove ivan pending 79 juniper farah closed 55 ember lina failed 56 delta dina failed 34 harbor kim paused 47
eli ivan
indigo gus failed 44 amber lina closed 19 grove lina pending 73 cobalt eli active 79 birch alice paused 105 cobalt ivan paused 39 ember alice failed 46 amber chen ready 72 amber eli closed 115
lina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052888-p1
Output only the second column for rows where the third column equals pending.
$3 == "pending"{print $2}
amber eli pending 116 grove chen paused 31 harbor bruno closed 60 grove hana failed 8 harbor hana active 46 grove ivan pending 79 juniper farah closed 55 ember lina failed 56 delta dina failed 34 harbor kim paused 47
eli ivan
indigo gus failed 44 amber lina closed 19 grove lina pending 73 cobalt eli active 79 birch alice paused 105 cobalt ivan paused 39 ember alice failed 46 amber chen ready 72 amber eli closed 115
lina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052888
qwen/qwen3.7-plus
awkweave-0052889
Print all fields from lines where field 1 begins with INFO.
$1 ~ /^INFO/
WARN 23 indigo ERROR 29 delta INFO 31 delta ERROR 74 ember INFO 72 birch INFO 24 ember WARN 44 harbor ERROR 76 harbor
INFO 31 delta INFO 72 birch INFO 24 ember
DEBUG 27 birch ERROR 1 delta WARN 77 birch INFO 8 grove DEBUG 57 birch DEBUG 61 amber
INFO 8 grove
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052889-p1
Print all fields from lines where the first field starts with INFO.
$1 ~ /^INFO/
WARN 23 indigo ERROR 29 delta INFO 31 delta ERROR 74 ember INFO 72 birch INFO 24 ember WARN 44 harbor ERROR 76 harbor
INFO 31 delta INFO 72 birch INFO 24 ember
DEBUG 27 birch ERROR 1 delta WARN 77 birch INFO 8 grove DEBUG 57 birch DEBUG 61 amber
INFO 8 grove
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052889
qwen/qwen3.7-plus
awkweave-0052900
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
ivan amber 13 ivan harbor 82 ivan grove 102 hana fable 10 kim amber 73 farah delta 33 hana fable 10
ivan amber 13 ivan harbor 82 ivan grove 102 hana fable 10 kim amber 73 farah delta 33
gus amber 23 bruno fable 26 farah amber 59 gus amber 23 hana fable 11 alice delta 117 gus harbor 25 hana birch 1 ivan indigo 35 eli delta 21
gus amber 23 bruno fable 26 farah amber 59 hana fable 11 alice delta 117 gus harbor 25 hana birch 1 ivan indigo 35 eli delta 21
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052900-p1
Eliminate exact duplicate lines while keeping the first occurrence and maintaining original order.
!seen[$0]++
ivan amber 13 ivan harbor 82 ivan grove 102 hana fable 10 kim amber 73 farah delta 33 hana fable 10
ivan amber 13 ivan harbor 82 ivan grove 102 hana fable 10 kim amber 73 farah delta 33
gus amber 23 bruno fable 26 farah amber 59 gus amber 23 hana fable 11 alice delta 117 gus harbor 25 hana birch 1 ivan indigo 35 eli delta 21
gus amber 23 bruno fable 26 farah amber 59 hana fable 11 alice delta 117 gus harbor 25 hana birch 1 ivan indigo 35 eli delta 21
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052900
qwen/qwen3.7-plus
awkweave-0052901
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
hana delta 20 eli cobalt 20 dina cobalt 92 hana birch 62 farah birch 120 eli birch 34 alice cobalt 2
hana delta 20 dina cobalt 92 hana birch 62 farah birch 120 eli birch 34 alice cobalt 2
eli juniper 91 kim fable 5 ivan juniper 38 dina grove 0 jules birch 50 bruno grove 12 alice birch 68
eli juniper 91 kim fable 5 ivan juniper 38 dina grove 0 jules birch 50 bruno grove 12 alice birch 68
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052901-p1
Retain only the first line for each unique value in column 3, preserving the input sequence.
!seen[$3]++
hana delta 20 eli cobalt 20 dina cobalt 92 hana birch 62 farah birch 120 eli birch 34 alice cobalt 2
hana delta 20 dina cobalt 92 hana birch 62 farah birch 120 eli birch 34 alice cobalt 2
eli juniper 91 kim fable 5 ivan juniper 38 dina grove 0 jules birch 50 bruno grove 12 alice birch 68
eli juniper 91 kim fable 5 ivan juniper 38 dina grove 0 jules birch 50 bruno grove 12 alice birch 68
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052901
qwen/qwen3.7-plus
awkweave-0052902
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
kim 11 harbor gus 2 indigo gus 24 ember hana 25 harbor farah 21 juniper hana 22 harbor alice 5 indigo jules 9 indigo bruno 12 harbor
kim 11 gus 13 gus 37 hana 62 farah 83 hana 105 alice 110 jules 119 bruno 131
dina 19 juniper gus 15 delta chen 18 harbor chen 2 harbor dina 14 grove lina 10 fable farah 24 ember jules 1 fable
dina 19 gus 34 chen 52 chen 54 dina 68 lina 78 farah 102 jules 103
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052902-p1
For each record, output column 1 and the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
kim 11 harbor gus 2 indigo gus 24 ember hana 25 harbor farah 21 juniper hana 22 harbor alice 5 indigo jules 9 indigo bruno 12 harbor
kim 11 gus 13 gus 37 hana 62 farah 83 hana 105 alice 110 jules 119 bruno 131
dina 19 juniper gus 15 delta chen 18 harbor chen 2 harbor dina 14 grove lina 10 fable farah 24 ember jules 1 fable
dina 19 gus 34 chen 52 chen 54 dina 68 lina 78 farah 102 jules 103
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052902
qwen/qwen3.7-plus
awkweave-0052903
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
alice 7 4 fable lina 4 28 harbor alice 10 3 juniper kim 20 17 amber chen 14 25 indigo eli 23 3 delta lina 24 20 birch gus 21 15 indigo
alice 11 lina 32 alice 13 kim 37 chen 39 eli 26 lina 44 gus 36
lina 1 19 harbor hana 14 29 delta dina 28 20 delta farah 14 1 birch hana 8 23 birch alice 13 28 grove lina 19 30 amber
lina 20 hana 43 dina 48 farah 15 hana 31 alice 41 lina 49
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052903-p1
For every row, print field 1 followed by the total of fields 2 and 3.
{print $1,$2+$3}
alice 7 4 fable lina 4 28 harbor alice 10 3 juniper kim 20 17 amber chen 14 25 indigo eli 23 3 delta lina 24 20 birch gus 21 15 indigo
alice 11 lina 32 alice 13 kim 37 chen 39 eli 26 lina 44 gus 36
lina 1 19 harbor hana 14 29 delta dina 28 20 delta farah 14 1 birch hana 8 23 birch alice 13 28 grove lina 19 30 amber
lina 20 hana 43 dina 48 farah 15 hana 31 alice 41 lina 49
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052903
qwen/qwen3.7-plus
awkweave-0052904
Print column 1 and pass when column 2 is at least 24; otherwise print fail.
{print $1,($2>=24?"pass":"fail")}
chen 26 hana 3 alice 28 alice 24 alice 23 hana 2
chen pass hana fail alice pass alice pass alice fail hana fail
eli 3 ivan 15 farah 25 eli 24 lina 28 dina 12 bruno 2 ivan 2 farah 23 hana 24
eli fail ivan fail farah pass eli pass lina pass dina fail bruno fail ivan fail farah fail hana pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052904-p1
Print column 1 and pass if column 2 is 24 or greater; otherwise, print fail.
{print $1,($2>=24?"pass":"fail")}
chen 26 hana 3 alice 28 alice 24 alice 23 hana 2
chen pass hana fail alice pass alice pass alice fail hana fail
eli 3 ivan 15 farah 25 eli 24 lina 28 dina 12 bruno 2 ivan 2 farah 23 hana 24
eli fail ivan fail farah pass eli pass lina pass dina fail bruno fail ivan fail farah fail hana pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052904
qwen/qwen3.7-plus
awkweave-0052905
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
bruno cobalt 2 hana ember 35 bruno cobalt 50 ivan birch 21 hana delta 120 dina cobalt 108
BRUNO HANA BRUNO IVAN HANA DINA
alice fable 113 kim cobalt 70 dina fable 69 chen fable 46 eli ember 96 chen delta 76 dina harbor 114 hana ember 65 hana cobalt 12
ALICE KIM DINA CHEN ELI CHEN DINA HANA HANA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052905-p1
Transform column 1 to uppercase and display only that column.
{print toupper($1)}
bruno cobalt 2 hana ember 35 bruno cobalt 50 ivan birch 21 hana delta 120 dina cobalt 108
BRUNO HANA BRUNO IVAN HANA DINA
alice fable 113 kim cobalt 70 dina fable 69 chen fable 46 eli ember 96 chen delta 76 dina harbor 114 hana ember 65 hana cobalt 12
ALICE KIM DINA CHEN ELI CHEN DINA HANA HANA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052905
qwen/qwen3.7-plus
awkweave-0052906
From column 1, print 4 characters starting at character 2.
{print substr($1,2,4)}
delta 78 juniper 33 amber 78 juniper 79 harbor 32 amber 52 birch 117
elta unip mber unip arbo mber irch
cobalt 119 harbor 11 birch 63 grove 48 fable 63 grove 2 birch 45 fable 118 juniper 54
obal arbo irch rove able rove irch able unip
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052906-p1
Extract a 4-character substring from the first column, beginning at the second character.
{print substr($1,2,4)}
delta 78 juniper 33 amber 78 juniper 79 harbor 32 amber 52 birch 117
elta unip mber unip arbo mber irch
cobalt 119 harbor 11 birch 63 grove 48 fable 63 grove 2 birch 45 fable 118 juniper 54
obal arbo irch rove able rove irch able unip
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052906
qwen/qwen3.7-plus
awkweave-0052907
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
cobalt_grove 2 delta_indigo 87 fable_indigo 30 fable_birch 4 ember_fable 109 birch_cobalt 26
cobalt grove delta indigo fable indigo fable birch ember fable birch cobalt
cobalt_indigo 107 harbor_delta 74 delta_birch 80 cobalt_fable 49 harbor_birch 51 indigo_indigo 105 indigo_fable 97
cobalt indigo harbor delta delta birch cobalt fable harbor birch indigo indigo indigo fable
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052907-p1
Substitute all underscores with spaces in the first column and output the modified values.
{gsub(/_/," ",$1);print $1}
cobalt_grove 2 delta_indigo 87 fable_indigo 30 fable_birch 4 ember_fable 109 birch_cobalt 26
cobalt grove delta indigo fable indigo fable birch ember fable birch cobalt
cobalt_indigo 107 harbor_delta 74 delta_birch 80 cobalt_fable 49 harbor_birch 51 indigo_indigo 105 indigo_fable 97
cobalt indigo harbor delta delta birch cobalt fable harbor birch indigo indigo indigo fable
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052907
qwen/qwen3.7-plus
awkweave-0052908
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)}
farah harbor 112 ready alice ember 53 paused lina juniper 115 paused eli fable 68 closed dina juniper 94 closed bruno juniper 31 active dina ember 9 failed
ready 112 harbor farah paused 53 ember alice paused 115 juniper lina closed 68 fable eli closed 94 juniper dina active 31 juniper bruno failed 9 ember dina
lina amber 94 closed alice birch 113 ready kim amber 2 failed gus cobalt 83 failed jules fable 109 closed eli cobalt 15 closed bruno cobalt 32 pending
closed 94 amber lina ready 113 birch alice failed 2 amber kim failed 83 cobalt gus closed 109 fable jules closed 15 cobalt eli pending 32 cobalt bruno
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052908-p1
Reverse the sequence of fields for every line and display all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
farah harbor 112 ready alice ember 53 paused lina juniper 115 paused eli fable 68 closed dina juniper 94 closed bruno juniper 31 active dina ember 9 failed
ready 112 harbor farah paused 53 ember alice paused 115 juniper lina closed 68 fable eli closed 94 juniper dina active 31 juniper bruno failed 9 ember dina
lina amber 94 closed alice birch 113 ready kim amber 2 failed gus cobalt 83 failed jules fable 109 closed eli cobalt 15 closed bruno cobalt 32 pending
closed 94 amber lina ready 113 birch alice failed 2 amber kim failed 83 cobalt gus closed 109 fable jules closed 15 cobalt eli pending 32 cobalt bruno
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052908
qwen/qwen3.7-plus
awkweave-0052909
Print the number of whitespace-separated fields on each line.
{print NF}
jules birch 29 paused chen grove 34 closed bruno cobalt 1 pending gus indigo 51 paused alice juniper 113 pending kim grove 49 closed eli indigo 64 paused hana delta 35 pending hana grove 30 closed
4 4 4 4 4 4 4 4 4
chen delta 91 paused alice grove 19 failed bruno birch 39 active gus fable 115 ready chen delta 89 pending ivan amber 73 ready
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052909-p1
Output the count of whitespace-delimited fields found on each line.
{print NF}
jules birch 29 paused chen grove 34 closed bruno cobalt 1 pending gus indigo 51 paused alice juniper 113 pending kim grove 49 closed eli indigo 64 paused hana delta 35 pending hana grove 30 closed
4 4 4 4 4 4 4 4 4
chen delta 91 paused alice grove 19 failed bruno birch 39 active gus fable 115 ready chen delta 89 pending ivan amber 73 ready
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052909
qwen/qwen3.7-plus
awkweave-0052910
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]]}
gus delta 38 gus gamma 7 dina gamma 87 dina beta 15 eli alpha 82 alice gamma 111 chen beta 116
delta 1 gamma 3 beta 2 alpha 1
ivan alpha 104 alice gamma 17 chen delta 8 lina beta 26 bruno delta 104 eli beta 71 ivan alpha 106 dina delta 87
alpha 2 gamma 1 delta 3 beta 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052910-p1
Tally the records for each unique value in the second column, listing each value and its total in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
gus delta 38 gus gamma 7 dina gamma 87 dina beta 15 eli alpha 82 alice gamma 111 chen beta 116
delta 1 gamma 3 beta 2 alpha 1
ivan alpha 104 alice gamma 17 chen delta 8 lina beta 26 bruno delta 104 eli beta 71 ivan alpha 106 dina delta 87
alpha 2 gamma 1 delta 3 beta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052910
qwen/qwen3.7-plus
awkweave-0052911
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 beta 2 chen beta 9 alice gamma 12 chen alpha 1 hana delta 12 alice beta 21
beta 32 gamma 12 alpha 1 delta 12
gus gamma 20 kim beta 19 chen alpha 26 bruno delta 15 hana beta 9 gus beta 3 kim delta 23 kim beta 21 bruno delta 11
gamma 20 beta 52 alpha 26 delta 49
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052911-p1
Calculate the sum of the third column grouped by the second column's categories, displaying results in the order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
gus beta 2 chen beta 9 alice gamma 12 chen alpha 1 hana delta 12 alice beta 21
beta 32 gamma 12 alpha 1 delta 12
gus gamma 20 kim beta 19 chen alpha 26 bruno delta 15 hana beta 9 gus beta 3 kim delta 23 kim beta 21 bruno delta 11
gamma 20 beta 52 alpha 26 delta 49
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052911
qwen/qwen3.7-plus
awkweave-0052912
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta delta 4 gamma juniper 99 gamma fable 66 gamma juniper 51 delta grove 10 beta juniper 66 gamma delta 26 delta cobalt 33 gamma juniper 100 beta birch 102
beta 3 gamma 5 delta 2
gamma ember 53 gamma fable 46 gamma ember 44 beta indigo 118 beta birch 88 delta harbor 10 gamma amber 85
gamma 4 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052912-p1
List each duplicate value from the first column along with its frequency, sorted by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta delta 4 gamma juniper 99 gamma fable 66 gamma juniper 51 delta grove 10 beta juniper 66 gamma delta 26 delta cobalt 33 gamma juniper 100 beta birch 102
beta 3 gamma 5 delta 2
gamma ember 53 gamma fable 46 gamma ember 44 beta indigo 118 beta birch 88 delta harbor 10 gamma amber 85
gamma 4 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052912
qwen/qwen3.7-plus
awkweave-0052913
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 note region score r001 kim 4 pending r002 bruno 25 ready r003 jules 16 active r004 dina 30 ready r005 alice 16 ready r006 bruno 21 pending r007 alice 26 failed
pending ready active ready ready pending failed
display_name note region score r001 jules 16 ready r002 kim 14 closed r003 alice 10 paused r004 dina 30 active r005 jules 2 failed r006 gus 18 ready
ready closed paused active failed ready
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052913-p1
Treating the first line as a header, output the values from the score column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
display_name note region score r001 kim 4 pending r002 bruno 25 ready r003 jules 16 active r004 dina 30 ready r005 alice 16 ready r006 bruno 21 pending r007 alice 26 failed
pending ready active ready ready pending failed
display_name note region score r001 jules 16 ready r002 kim 14 closed r003 alice 10 paused r004 dina 30 active r005 jules 2 failed r006 gus 18 ready
ready closed paused active failed ready
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052913
qwen/qwen3.7-plus
awkweave-0052914
The first row is a header. Print display_name for data rows whose score is greater than 17.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>17{print $h["display_name"]}
record_id display_name score state r001 bruno 7 paused r002 kim 1 pending r003 bruno 4 active r004 bruno 8 active r005 kim 18 paused r006 chen 14 failed r007 lina 21 pending
kim lina
record_id display_name score state r001 ivan 15 paused r002 farah 23 failed r003 farah 3 pending r004 eli 11 failed r005 eli 3 closed r006 lina 27 active
farah lina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052914-p1
With the first row as a header, print the display_name field for data rows where the score exceeds 17.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>17{print $h["display_name"]}
record_id display_name score state r001 bruno 7 paused r002 kim 1 pending r003 bruno 4 active r004 bruno 8 active r005 kim 18 paused r006 chen 14 failed r007 lina 21 pending
kim lina
record_id display_name score state r001 ivan 15 paused r002 farah 23 failed r003 farah 3 pending r004 eli 11 failed r005 eli 3 closed r006 lina 27 active
farah lina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052914
qwen/qwen3.7-plus
awkweave-0052915
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 6 failed kim 27 active alice 24 active dina 2 paused jules 25 closed chen 2 ready
6 27 24 2 25 2
jules 5 failed bruno 13 ready kim 1 paused lina 15 failed kim 13 active gus 24 paused alice 20 paused bruno 22 ready
5 13 1 15 13 24 20 22
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052915-p1
Given tab-separated input, output the second column for every record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 6 failed kim 27 active alice 24 active dina 2 paused jules 25 closed chen 2 ready
6 27 24 2 25 2
jules 5 failed bruno 13 ready kim 1 paused lina 15 failed kim 13 active gus 24 paused alice 20 paused bruno 22 ready
5 13 1 15 13 24 20 22
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052915
qwen/qwen3.7-plus
awkweave-0052916
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 21.
BEGIN{FS=OFS=","}$2>21{print $1}
alice,5,ready kim,24,paused eli,13,active ivan,7,paused dina,5,failed chen,7,paused jules,2,active chen,10,active farah,10,paused kim,30,pending
kim kim
farah,4,active gus,5,ready bruno,13,pending dina,7,active gus,6,paused gus,10,ready
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052916-p1
For simple comma-separated input without quoted commas, print the first column if the second column's value is greater than 21.
BEGIN{FS=OFS=","}$2>21{print $1}
alice,5,ready kim,24,paused eli,13,active ivan,7,paused dina,5,failed chen,7,paused jules,2,active chen,10,active farah,10,paused kim,30,pending
kim kim
farah,4,active gus,5,ready bruno,13,pending dina,7,active gus,6,paused gus,10,ready
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052916
qwen/qwen3.7-plus
awkweave-0052917
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina harbor 4 dina harbor 115 eli ember 43 bruno delta 76 alice birch 32 farah harbor 102 ivan delta 0 chen juniper 4 ivan indigo 105
lina harbor 4 dina harbor 115 eli ember 43 bruno delta 76 alice birch 32 farah harbor 102 ivan delta 0 chen juniper 4 ivan indigo 105
alice ember 39 bruno harbor 67 jules juniper 84 eli cobalt 64 bruno birch 51 ivan birch 66 ivan indigo 48
alice ember 39 bruno harbor 67 jules juniper 84 eli cobalt 64 bruno birch 51 ivan birch 66 ivan indigo 48
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052917-p1
Remove leading and trailing whitespace and replace any internal whitespace sequences with a single space.
{$1=$1;print}
lina harbor 4 dina harbor 115 eli ember 43 bruno delta 76 alice birch 32 farah harbor 102 ivan delta 0 chen juniper 4 ivan indigo 105
lina harbor 4 dina harbor 115 eli ember 43 bruno delta 76 alice birch 32 farah harbor 102 ivan delta 0 chen juniper 4 ivan indigo 105
alice ember 39 bruno harbor 67 jules juniper 84 eli cobalt 64 bruno birch 51 ivan birch 66 ivan indigo 48
alice ember 39 bruno harbor 67 jules juniper 84 eli cobalt 64 bruno birch 51 ivan birch 66 ivan indigo 48
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052917
qwen/qwen3.7-plus
awkweave-0052918
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
alice indigo 112 ready ivan amber 116 failed kim cobalt 1 ready eli grove 86 ready farah harbor 54 ready bruno birch 108 paused bruno ember 37 closed ivan fable 5 pending lina amber 39 failed
alice indigo 112 ready
farah fable 90 active ivan amber 113 active ivan ember 88 pending farah cobalt 21 ready lina delta 63 pending bruno indigo 44 failed
bruno indigo 44 failed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052918-p1
Output the longest line from the input, selecting the first occurrence if multiple lines share the maximum length.
{if(length($0)>length(best))best=$0}END{print best}
alice indigo 112 ready ivan amber 116 failed kim cobalt 1 ready eli grove 86 ready farah harbor 54 ready bruno birch 108 paused bruno ember 37 closed ivan fable 5 pending lina amber 39 failed
alice indigo 112 ready
farah fable 90 active ivan amber 113 active ivan ember 88 pending farah cobalt 21 ready lina delta 63 pending bruno indigo 44 failed
bruno indigo 44 failed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052918
qwen/qwen3.7-plus
awkweave-0052919
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
alice 0 gus 37 bruno 97 ivan 8 jules 24 chen 68 alice 1
alice 0 bruno 97 jules 24 alice 1
eli 71 chen 54 chen 86 kim 26 eli 17 lina 99 gus 27 hana 100 hana 95
eli 71 chen 86 eli 17 gus 27 hana 95
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052919-p1
Print lines 1, 3, 5, and so on, effectively outputting every second line starting from the first.
NR%2==1
alice 0 gus 37 bruno 97 ivan 8 jules 24 chen 68 alice 1
alice 0 bruno 97 jules 24 alice 1
eli 71 chen 54 chen 86 kim 26 eli 17 lina 99 gus 27 hana 100 hana 95
eli 71 chen 86 eli 17 gus 27 hana 95
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052919
qwen/qwen3.7-plus
awkweave-0052920
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
delta fable 28 gamma indigo 84 alpha amber 110 delta juniper 107 gamma ember 76 alpha delta 82 beta indigo 53
4
gamma delta 82 delta birch 14 delta delta 27 beta birch 110 alpha delta 34 gamma harbor 11 gamma harbor 82
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052920-p1
Calculate and display only the total number of unique values found in the first column.
{if(!seen[$1]++)n++}END{print n+0}
delta fable 28 gamma indigo 84 alpha amber 110 delta juniper 107 gamma ember 76 alpha delta 82 beta indigo 53
4
gamma delta 82 delta birch 14 delta delta 27 beta birch 110 alpha delta 34 gamma harbor 11 gamma harbor 82
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052920
qwen/qwen3.7-plus
awkweave-0052921
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 26 0 chen 26 9 ivan 16 23 bruno 20 10 alice 10 7 dina 5 24 eli 21 10 gus 10 24
chen 2.89 ivan 0.70 bruno 2.00 alice 1.43 dina 0.21 eli 2.10 gus 0.42
ivan 3 0 alice 12 30 alice 1 22 ivan 25 7 eli 12 8 ivan 17 20 ivan 8 21 dina 5 19 dina 10 26 ivan 4 14
alice 0.40 alice 0.05 ivan 3.57 eli 1.50 ivan 0.85 ivan 0.38 dina 0.26 dina 0.38 ivan 0.29
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052921-p1
For each row where the third column is non-zero, print the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 26 0 chen 26 9 ivan 16 23 bruno 20 10 alice 10 7 dina 5 24 eli 21 10 gus 10 24
chen 2.89 ivan 0.70 bruno 2.00 alice 1.43 dina 0.21 eli 2.10 gus 0.42
ivan 3 0 alice 12 30 alice 1 22 ivan 25 7 eli 12 8 ivan 17 20 ivan 8 21 dina 5 19 dina 10 26 ivan 4 14
alice 0.40 alice 0.05 ivan 3.57 eli 1.50 ivan 0.85 ivan 0.38 dina 0.26 dina 0.38 ivan 0.29
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052921
qwen/qwen3.7-plus
awkweave-0052922
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]}
dina ember 10 farah fable 11 alice indigo 16 ivan harbor 25 jules harbor 28 eli fable 7 eli delta 8 dina grove 25
jules harbor 28 ivan harbor 25 dina grove 25
hana fable 25 bruno fable 19 farah ember 2 lina fable 26 lina juniper 2 hana amber 1
lina fable 26 hana fable 25 bruno fable 19
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052922-p1
Display the full records corresponding to the three largest 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]}
dina ember 10 farah fable 11 alice indigo 16 ivan harbor 25 jules harbor 28 eli fable 7 eli delta 8 dina grove 25
jules harbor 28 ivan harbor 25 dina grove 25
hana fable 25 bruno fable 19 farah ember 2 lina fable 26 lina juniper 2 hana amber 1
lina fable 26 hana fable 25 bruno fable 19
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052922
qwen/qwen3.7-plus
awkweave-0052923
For each line, output fields 4 and 2, in that order.
{print $4, $2}
active 86 farah 108 failed 34 lina 9 paused 33 gus 90 paused 19 alice 31 ready 80 kim 101 ready 76 bruno 89 active 85 alice 58 closed 102 ivan 30 paused 25 jules 15 active 120 alice 104
108 86 9 34 90 33 31 19 101 80 89 76 58 85 30 102 15 25 104 120
failed 35 jules 67 failed 95 alice 90 failed 79 jules 84 closed 32 eli 8 failed 74 bruno 111 paused 45 alice 8 active 90 eli 63 failed 94 farah 61 active 27 ivan 0
67 35 90 95 84 79 8 32 111 74 8 45 63 90 61 94 0 27
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052923-p1
Output the fourth field followed by the second field for every line.
{print $4, $2}
active 86 farah 108 failed 34 lina 9 paused 33 gus 90 paused 19 alice 31 ready 80 kim 101 ready 76 bruno 89 active 85 alice 58 closed 102 ivan 30 paused 25 jules 15 active 120 alice 104
108 86 9 34 90 33 31 19 101 80 89 76 58 85 30 102 15 25 104 120
failed 35 jules 67 failed 95 alice 90 failed 79 jules 84 closed 32 eli 8 failed 74 bruno 111 paused 45 alice 8 active 90 eli 63 failed 94 farah 61 active 27 ivan 0
67 35 90 95 84 79 8 32 111 74 8 45 63 90 61 94 0 27
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052923
qwen/qwen3.7-plus
awkweave-0052924
Print the last field of every input line.
{print $NF}
failed hana lina indigo ember failed dina eli amber birch closed jules gus fable birch pending kim hana fable ember closed bruno kim juniper birch closed farah eli ember juniper paused gus jules grove fable active farah ivan grove juniper paused ivan dina fable indigo
ember birch birch ember birch juniper fable juniper indigo
ready jules hana delta juniper pending lina kim delta harbor failed chen kim birch fable paused lina farah grove ember paused dina ivan birch ember active kim dina delta fable pending alice eli harbor grove
juniper harbor fable ember ember fable grove
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052924-p1
Print the final field from each input line.
{print $NF}
failed hana lina indigo ember failed dina eli amber birch closed jules gus fable birch pending kim hana fable ember closed bruno kim juniper birch closed farah eli ember juniper paused gus jules grove fable active farah ivan grove juniper paused ivan dina fable indigo
ember birch birch ember birch juniper fable juniper indigo
ready jules hana delta juniper pending lina kim delta harbor failed chen kim birch fable paused lina farah grove ember paused dina ivan birch ember active kim dina delta fable pending alice eli harbor grove
juniper harbor fable ember ember fable grove
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052924
qwen/qwen3.7-plus
awkweave-0052925
Print the complete records where column 1 is at least 70.
$1 >= 70
7 harbor amber alice 84 amber indigo chen 69 juniper harbor alice 52 grove birch dina 49 delta grove lina 0 cobalt birch ivan 88 fable birch lina 48 fable birch hana 60 grove indigo dina 72 fable fable lina
84 amber indigo chen 88 fable birch lina 72 fable fable lina
68 harbor ember eli 36 ember delta eli 37 grove birch bruno 5 amber birch chen 87 harbor indigo eli 57 cobalt ember ivan
87 harbor indigo eli
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052925-p1
Output the entire record for any line where the value in the first column is 70 or greater.
$1 >= 70
7 harbor amber alice 84 amber indigo chen 69 juniper harbor alice 52 grove birch dina 49 delta grove lina 0 cobalt birch ivan 88 fable birch lina 48 fable birch hana 60 grove indigo dina 72 fable fable lina
84 amber indigo chen 88 fable birch lina 72 fable fable lina
68 harbor ember eli 36 ember delta eli 37 grove birch bruno 5 amber birch chen 87 harbor indigo eli 57 cobalt ember ivan
87 harbor indigo eli
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052925
qwen/qwen3.7-plus
awkweave-0052926
Show whole lines whose 2nd field is between 9 and 20, inclusive.
$2 >= 9 && $2 <= 20
dina 4 paused ready dina 30 paused paused jules 29 active closed kim 1 failed paused hana 30 failed pending hana 17 active active ivan 14 closed paused ivan 4 pending pending hana 9 paused ready jules 19 ready paused
hana 17 active active ivan 14 closed paused hana 9 paused ready jules 19 ready paused
jules 6 active failed hana 22 paused failed chen 9 pending pending jules 15 closed pending gus 18 ready pending gus 20 pending active ivan 29 active pending
chen 9 pending pending jules 15 closed pending gus 18 ready pending gus 20 pending active
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052926-p1
Display complete lines where the second field falls within the inclusive range of 9 to 20.
$2 >= 9 && $2 <= 20
dina 4 paused ready dina 30 paused paused jules 29 active closed kim 1 failed paused hana 30 failed pending hana 17 active active ivan 14 closed paused ivan 4 pending pending hana 9 paused ready jules 19 ready paused
hana 17 active active ivan 14 closed paused hana 9 paused ready jules 19 ready paused
jules 6 active failed hana 22 paused failed chen 9 pending pending jules 15 closed pending gus 18 ready pending gus 20 pending active ivan 29 active pending
chen 9 pending pending jules 15 closed pending gus 18 ready pending gus 20 pending active
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052926
qwen/qwen3.7-plus
awkweave-0052927
Print column 3 only for rows where column 1 is exactly active.
$1 == "active"{print $3}
pending ember jules 18 ready ember chen 119 paused ember kim 60 ready harbor ivan 34 closed juniper farah 65 paused fable eli 10 pending harbor chen 37 active grove hana 93 closed cobalt eli 25
hana
ready birch hana 17 pending cobalt alice 21 failed grove eli 52 active amber alice 66 ready fable kim 81 active birch dina 68 ready fable kim 110
alice dina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052927-p1
Print only the third column for rows where the first column contains exactly the string 'active'.
$1 == "active"{print $3}
pending ember jules 18 ready ember chen 119 paused ember kim 60 ready harbor ivan 34 closed juniper farah 65 paused fable eli 10 pending harbor chen 37 active grove hana 93 closed cobalt eli 25
hana
ready birch hana 17 pending cobalt alice 21 failed grove eli 52 active amber alice 66 ready fable kim 81 active birch dina 68 ready fable kim 110
alice dina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052927
qwen/qwen3.7-plus
awkweave-0052928
Print all fields from lines where field 3 begins with INFO.
$3 ~ /^INFO/
indigo 19 WARN indigo 45 DEBUG grove 116 INFO harbor 34 DEBUG amber 12 ERROR birch 28 WARN ember 77 ERROR birch 50 DEBUG birch 70 ERROR
grove 116 INFO
juniper 87 INFO ember 15 DEBUG cobalt 48 DEBUG indigo 67 INFO birch 105 WARN cobalt 28 WARN harbor 107 INFO delta 102 WARN
juniper 87 INFO indigo 67 INFO harbor 107 INFO
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052928-p1
Output the full lines where the third field starts with the prefix 'INFO'.
$3 ~ /^INFO/
indigo 19 WARN indigo 45 DEBUG grove 116 INFO harbor 34 DEBUG amber 12 ERROR birch 28 WARN ember 77 ERROR birch 50 DEBUG birch 70 ERROR
grove 116 INFO
juniper 87 INFO ember 15 DEBUG cobalt 48 DEBUG indigo 67 INFO birch 105 WARN cobalt 28 WARN harbor 107 INFO delta 102 WARN
juniper 87 INFO indigo 67 INFO harbor 107 INFO
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052928
qwen/qwen3.7-plus
awkweave-0052929
Print every line except those containing the exact text delta.
$0 !~ /delta/
harbor 50 closed amber 48 paused cobalt 84 closed juniper 119 active birch 109 failed amber 120 failed delta 104 failed indigo 88 closed delta 999 active
harbor 50 closed amber 48 paused cobalt 84 closed juniper 119 active birch 109 failed amber 120 failed indigo 88 closed
harbor 90 active indigo 2 active juniper 75 active harbor 50 closed delta 93 failed indigo 78 closed delta 29 closed amber 94 closed amber 28 paused delta 999 active
harbor 90 active indigo 2 active juniper 75 active harbor 50 closed indigo 78 closed amber 94 closed amber 28 paused
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052929-p1
Print all lines that do not contain the exact string 'delta'.
$0 !~ /delta/
harbor 50 closed amber 48 paused cobalt 84 closed juniper 119 active birch 109 failed amber 120 failed delta 104 failed indigo 88 closed delta 999 active
harbor 50 closed amber 48 paused cobalt 84 closed juniper 119 active birch 109 failed amber 120 failed indigo 88 closed
harbor 90 active indigo 2 active juniper 75 active harbor 50 closed delta 93 failed indigo 78 closed delta 29 closed amber 94 closed amber 28 paused delta 999 active
harbor 90 active indigo 2 active juniper 75 active harbor 50 closed indigo 78 closed amber 94 closed amber 28 paused
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052929
qwen/qwen3.7-plus
awkweave-0052930
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
farah fable 81 eli juniper 30 alice ember 76 farah juniper 59 lina birch 50 ivan amber 83 hana delta 56 gus harbor 12 chen birch 85
farah juniper 59 lina birch 50 ivan amber 83 hana delta 56
eli delta 47 ivan cobalt 14 dina delta 80 lina fable 4 gus harbor 68 dina harbor 19 eli harbor 100 eli cobalt 102 chen harbor 51
lina fable 4 gus harbor 68 dina harbor 19 eli harbor 100
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052930-p1
Display lines 4 to 7, inclusive.
NR >= 4 && NR <= 7
farah fable 81 eli juniper 30 alice ember 76 farah juniper 59 lina birch 50 ivan amber 83 hana delta 56 gus harbor 12 chen birch 85
farah juniper 59 lina birch 50 ivan amber 83 hana delta 56
eli delta 47 ivan cobalt 14 dina delta 80 lina fable 4 gus harbor 68 dina harbor 19 eli harbor 100 eli cobalt 102 chen harbor 51
lina fable 4 gus harbor 68 dina harbor 19 eli harbor 100
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052930
qwen/qwen3.7-plus
awkweave-0052931
Output only the first 3 records.
NR <= 3
chen 70 juniper gus 50 juniper kim 90 fable jules 90 harbor gus 7 amber eli 118 juniper lina 29 juniper
chen 70 juniper gus 50 juniper kim 90 fable
jules 6 juniper hana 74 cobalt chen 7 cobalt bruno 52 delta gus 46 ember hana 54 birch dina 17 harbor lina 34 grove alice 103 grove
jules 6 juniper hana 74 cobalt chen 7 cobalt
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052931-p1
Output just the initial 3 records.
NR <= 3
chen 70 juniper gus 50 juniper kim 90 fable jules 90 harbor gus 7 amber eli 118 juniper lina 29 juniper
chen 70 juniper gus 50 juniper kim 90 fable
jules 6 juniper hana 74 cobalt chen 7 cobalt bruno 52 delta gus 46 ember hana 54 birch dina 17 harbor lina 34 grove alice 103 grove
jules 6 juniper hana 74 cobalt chen 7 cobalt
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052931
qwen/qwen3.7-plus
awkweave-0052932
Skip the first line and print every remaining line unchanged.
NR > 1
hana 66 birch lina 1 amber hana 29 fable farah 73 grove dina 112 indigo ivan 110 birch jules 95 ember lina 20 harbor
lina 1 amber hana 29 fable farah 73 grove dina 112 indigo ivan 110 birch jules 95 ember lina 20 harbor
hana 82 cobalt kim 68 delta kim 86 delta lina 12 amber chen 110 grove hana 59 amber eli 71 amber jules 22 harbor dina 108 delta
kim 68 delta kim 86 delta lina 12 amber chen 110 grove hana 59 amber eli 71 amber jules 22 harbor dina 108 delta
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052932-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
hana 66 birch lina 1 amber hana 29 fable farah 73 grove dina 112 indigo ivan 110 birch jules 95 ember lina 20 harbor
lina 1 amber hana 29 fable farah 73 grove dina 112 indigo ivan 110 birch jules 95 ember lina 20 harbor
hana 82 cobalt kim 68 delta kim 86 delta lina 12 amber chen 110 grove hana 59 amber eli 71 amber jules 22 harbor dina 108 delta
kim 68 delta kim 86 delta lina 12 amber chen 110 grove hana 59 amber eli 71 amber jules 22 harbor dina 108 delta
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052932
qwen/qwen3.7-plus
awkweave-0052933
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
chen pending 114 bruno failed 2 jules paused 24 chen paused 21 lina failed 114 bruno pending 17
0
dina ready 71 alice failed 8 ivan closed 33 kim paused 70 dina active 30 jules active 26 hana active 27 ivan paused 112 jules paused 45
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052933-p1
Tally the records where column 2 is 'closed' and print the count; output 0 if none match.
$2 == "closed"{n++}END{print n+0}
chen pending 114 bruno failed 2 jules paused 24 chen paused 21 lina failed 114 bruno pending 17
0
dina ready 71 alice failed 8 ivan closed 33 kim paused 70 dina active 30 jules active 26 hana active 27 ivan paused 112 jules paused 45
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052933
qwen/qwen3.7-plus
awkweave-0052934
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
amber 7 alice harbor 7 jules juniper 21 dina harbor 1 farah birch 2 kim birch 24 alice amber 3 farah cobalt 8 farah
73
grove 23 gus delta 6 ivan birch 9 bruno ember 22 dina ember 27 kim fable 4 dina grove 15 alice amber 14 jules amber 27 ivan harbor 2 bruno
149
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052934-p1
Compute and display the total sum of integer values in column 2.
{s+=$2}END{print s+0}
amber 7 alice harbor 7 jules juniper 21 dina harbor 1 farah birch 2 kim birch 24 alice amber 3 farah cobalt 8 farah
73
grove 23 gus delta 6 ivan birch 9 bruno ember 22 dina ember 27 kim fable 4 dina grove 15 alice amber 14 jules amber 27 ivan harbor 2 bruno
149
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052934
qwen/qwen3.7-plus
awkweave-0052935
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
juniper gus 12 indigo eli 6 juniper ivan 9 indigo hana 17 birch gus 26 delta hana 8 birch gus 27
15.00
amber lina 8 birch alice 27 grove eli 7 harbor farah 1 delta farah 12 juniper lina 17 delta jules 13 harbor lina 28
14.12
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052935-p1
Print the average of column 3, formatted to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
juniper gus 12 indigo eli 6 juniper ivan 9 indigo hana 17 birch gus 26 delta hana 8 birch gus 27
15.00
amber lina 8 birch alice 27 grove eli 7 harbor farah 1 delta farah 12 juniper lina 17 delta jules 13 harbor lina 28
14.12
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052935
qwen/qwen3.7-plus
awkweave-0052936
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
9 harbor gus 23 birch alice 30 indigo chen 17 delta bruno 29 cobalt kim 25 fable ivan 8 harbor lina 29 delta dina 9 grove lina
8
18 delta lina 6 ember chen 23 juniper ivan 24 indigo chen 7 birch hana 28 ember eli 13 cobalt gus 21 ember gus
6
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052936-p1
Identify and output the minimum numeric value found in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
9 harbor gus 23 birch alice 30 indigo chen 17 delta bruno 29 cobalt kim 25 fable ivan 8 harbor lina 29 delta dina 9 grove lina
8
18 delta lina 6 ember chen 23 juniper ivan 24 indigo chen 7 birch hana 28 ember eli 13 cobalt gus 21 ember gus
6
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052936
qwen/qwen3.7-plus
awkweave-0052937
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
kim 20 harbor kim 27 grove ivan 9 fable alice 21 indigo bruno 26 juniper eli 7 amber
27
bruno 6 harbor ivan 6 cobalt farah 26 grove chen 2 ember dina 30 birch alice 4 grove dina 20 birch lina 11 cobalt
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052937-p1
Identify and output the maximum numeric value found in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
kim 20 harbor kim 27 grove ivan 9 fable alice 21 indigo bruno 26 juniper eli 7 amber
27
bruno 6 harbor ivan 6 cobalt farah 26 grove chen 2 ember dina 30 birch alice 4 grove dina 20 birch lina 11 cobalt
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052937
qwen/qwen3.7-plus
awkweave-0052938
Count all input records and print the total.
END{print NR}
lina 53 farah 89 ivan 16 gus 22 hana 20 ivan 79 ivan 19 bruno 42 jules 85 jules 57
10
farah 28 jules 71 alice 119 ivan 94 lina 27 lina 78 gus 0 kim 26
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052938-p1
Count the total number of input records and print the result.
END{print NR}
lina 53 farah 89 ivan 16 gus 22 hana 20 ivan 79 ivan 19 bruno 42 jules 85 jules 57
10
farah 28 jules 71 alice 119 ivan 94 lina 27 lina 78 gus 0 kim 26
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052938
qwen/qwen3.7-plus
awkweave-0052939
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
kim fable 93 kim fable 93 eli ember 49 gus grove 39 dina amber 38 lina delta 33 dina birch 79
kim fable 93 eli ember 49 gus grove 39 dina amber 38 lina delta 33 dina birch 79
lina harbor 102 farah indigo 88 alice delta 95 alice delta 95 farah indigo 85 jules harbor 14 jules birch 75 alice indigo 67 farah fable 65 ivan ember 65 eli harbor 24
lina harbor 102 farah indigo 88 alice delta 95 farah indigo 85 jules harbor 14 jules birch 75 alice indigo 67 farah fable 65 ivan ember 65 eli harbor 24
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052939-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
kim fable 93 kim fable 93 eli ember 49 gus grove 39 dina amber 38 lina delta 33 dina birch 79
kim fable 93 eli ember 49 gus grove 39 dina amber 38 lina delta 33 dina birch 79
lina harbor 102 farah indigo 88 alice delta 95 alice delta 95 farah indigo 85 jules harbor 14 jules birch 75 alice indigo 67 farah fable 65 ivan ember 65 eli harbor 24
lina harbor 102 farah indigo 88 alice delta 95 farah indigo 85 jules harbor 14 jules birch 75 alice indigo 67 farah fable 65 ivan ember 65 eli harbor 24
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052939
qwen/qwen3.7-plus
awkweave-0052940
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
eli birch 75 ivan birch 26 farah amber 115 bruno fable 61 ivan amber 48 dina ember 0 chen birch 89 bruno fable 84 eli fable 14 kim indigo 32
eli birch 75 ivan birch 26 farah amber 115 bruno fable 61 ivan amber 48 dina ember 0 chen birch 89 bruno fable 84 eli fable 14 kim indigo 32
dina indigo 116 eli fable 26 eli amber 0 hana birch 116 hana ember 83 hana cobalt 54 bruno delta 11 hana birch 44 hana amber 9 hana cobalt 76
dina indigo 116 eli fable 26 eli amber 0 hana ember 83 hana cobalt 54 bruno delta 11 hana birch 44 hana amber 9 hana cobalt 76
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052940-p1
Retain only the first occurrence for each unique value in column 3, preserving the input order.
!seen[$3]++
eli birch 75 ivan birch 26 farah amber 115 bruno fable 61 ivan amber 48 dina ember 0 chen birch 89 bruno fable 84 eli fable 14 kim indigo 32
eli birch 75 ivan birch 26 farah amber 115 bruno fable 61 ivan amber 48 dina ember 0 chen birch 89 bruno fable 84 eli fable 14 kim indigo 32
dina indigo 116 eli fable 26 eli amber 0 hana birch 116 hana ember 83 hana cobalt 54 bruno delta 11 hana birch 44 hana amber 9 hana cobalt 76
dina indigo 116 eli fable 26 eli amber 0 hana ember 83 hana cobalt 54 bruno delta 11 hana birch 44 hana amber 9 hana cobalt 76
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052940
qwen/qwen3.7-plus
awkweave-0052941
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
dina 20 cobalt bruno 24 juniper gus 6 juniper farah 2 grove gus 19 juniper gus 15 ember bruno 7 delta
dina 20 bruno 44 gus 50 farah 52 gus 71 gus 86 bruno 93
hana 28 ember hana 21 juniper kim 18 birch eli 25 delta jules 15 harbor dina 21 fable
hana 28 hana 49 kim 67 eli 92 jules 107 dina 128
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052941-p1
For every record, output column 1 followed by the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
dina 20 cobalt bruno 24 juniper gus 6 juniper farah 2 grove gus 19 juniper gus 15 ember bruno 7 delta
dina 20 bruno 44 gus 50 farah 52 gus 71 gus 86 bruno 93
hana 28 ember hana 21 juniper kim 18 birch eli 25 delta jules 15 harbor dina 21 fable
hana 28 hana 49 kim 67 eli 92 jules 107 dina 128
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052941
qwen/qwen3.7-plus
awkweave-0052942
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
kim 14 9 amber eli 3 29 juniper kim 16 19 grove jules 14 7 birch farah 26 9 birch chen 17 25 amber eli 28 9 cobalt dina 23 6 ember dina 10 11 amber jules 2 11 harbor
kim 23 eli 32 kim 35 jules 21 farah 35 chen 42 eli 37 dina 29 dina 21 jules 13
alice 1 11 juniper chen 4 4 juniper eli 14 26 juniper alice 15 23 fable gus 4 25 grove gus 21 22 delta
alice 12 chen 8 eli 40 alice 38 gus 29 gus 43
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052942-p1
For each row, output the first field followed by the total of the second and third fields.
{print $1,$2+$3}
kim 14 9 amber eli 3 29 juniper kim 16 19 grove jules 14 7 birch farah 26 9 birch chen 17 25 amber eli 28 9 cobalt dina 23 6 ember dina 10 11 amber jules 2 11 harbor
kim 23 eli 32 kim 35 jules 21 farah 35 chen 42 eli 37 dina 29 dina 21 jules 13
alice 1 11 juniper chen 4 4 juniper eli 14 26 juniper alice 15 23 fable gus 4 25 grove gus 21 22 delta
alice 12 chen 8 eli 40 alice 38 gus 29 gus 43
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052942
qwen/qwen3.7-plus