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-0002720-p1
Treating the first line as a header, extract and print the values from the state column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
display_name score state region r001 dina 25 failed r002 jules 8 paused r003 farah 13 paused r004 chen 28 pending r005 bruno 29 pending r006 eli 28 failed r007 chen 3 paused r008 chen 26 closed r009 alice 23 ready r010 hana 9 paused
25 8 13 28 29 28 3 26 23 9
display_name score state region r001 alice 26 pending r002 hana 3 failed r003 alice 30 active r004 lina 15 ready r005 farah 10 closed r006 jules 13 failed r007 jules 1 ready r008 dina 19 ready r009 alice 11 paused
26 3 30 15 10 13 1 19 11
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002720
qwen/qwen3.7-plus
awkweave-0002721
The first row is a header. Print display_name for data rows whose score is greater than 11.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>11{print $h["display_name"]}
record_id display_name score state r001 chen 24 active r002 eli 8 closed r003 hana 17 paused r004 eli 20 failed r005 kim 12 closed r006 hana 22 paused r007 dina 5 failed r008 dina 19 paused r009 kim 17 active
chen hana eli kim hana dina kim
record_id display_name score state r001 alice 22 active r002 farah 13 closed r003 eli 9 closed r004 jules 9 failed r005 hana 27 active r006 dina 22 ready r007 gus 29 pending r008 dina 28 paused
alice farah hana dina gus dina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002721-p1
With the first row serving as a header, output the display_name field for any data row where the score value is strictly greater than 11.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>11{print $h["display_name"]}
record_id display_name score state r001 chen 24 active r002 eli 8 closed r003 hana 17 paused r004 eli 20 failed r005 kim 12 closed r006 hana 22 paused r007 dina 5 failed r008 dina 19 paused r009 kim 17 active
chen hana eli kim hana dina kim
record_id display_name score state r001 alice 22 active r002 farah 13 closed r003 eli 9 closed r004 jules 9 failed r005 hana 27 active r006 dina 22 ready r007 gus 29 pending r008 dina 28 paused
alice farah hana dina gus dina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002721
qwen/qwen3.7-plus
awkweave-0002722
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
farah 8 paused jules 19 paused chen 1 failed hana 30 failed lina 17 failed farah 12 ready bruno 8 pending
8 19 1 30 17 12 8
hana 7 active gus 8 pending gus 30 paused lina 16 pending jules 18 pending eli 6 failed
7 8 30 16 18 6
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002722-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
farah 8 paused jules 19 paused chen 1 failed hana 30 failed lina 17 failed farah 12 ready bruno 8 pending
8 19 1 30 17 12 8
hana 7 active gus 8 pending gus 30 paused lina 16 pending jules 18 pending eli 6 failed
7 8 30 16 18 6
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0002722
qwen/qwen3.7-plus
awkweave-0002723
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 12.
BEGIN{FS=OFS=","}$2>12{print $1}
dina,9,pending gus,18,closed eli,23,failed kim,6,paused gus,20,paused chen,28,paused bruno,27,active hana,3,active dina,23,pending chen,4,failed
gus eli gus chen bruno dina
hana,4,pending jules,28,active gus,26,pending eli,5,paused dina,8,active chen,7,closed farah,9,closed
jules gus
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002723-p1
Process simple comma-separated values without quoted fields, and print the first column only when the value in the second column is greater than 12.
BEGIN{FS=OFS=","}$2>12{print $1}
dina,9,pending gus,18,closed eli,23,failed kim,6,paused gus,20,paused chen,28,paused bruno,27,active hana,3,active dina,23,pending chen,4,failed
gus eli gus chen bruno dina
hana,4,pending jules,28,active gus,26,pending eli,5,paused dina,8,active chen,7,closed farah,9,closed
jules gus
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002723
qwen/qwen3.7-plus
awkweave-0002724
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina grove 73 farah grove 72 farah ember 107 ivan harbor 16 hana amber 5 alice indigo 101 hana harbor 8 bruno delta 100 alice grove 98 hana ember 13
lina grove 73 farah grove 72 farah ember 107 ivan harbor 16 hana amber 5 alice indigo 101 hana harbor 8 bruno delta 100 alice grove 98 hana ember 13
bruno amber 110 bruno delta 95 lina juniper 14 bruno juniper 1 farah harbor 10 jules cobalt 89 alice grove 9
bruno amber 110 bruno delta 95 lina juniper 14 bruno juniper 1 farah harbor 10 jules cobalt 89 alice grove 9
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002724-p1
Remove leading and trailing whitespace from the text, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
lina grove 73 farah grove 72 farah ember 107 ivan harbor 16 hana amber 5 alice indigo 101 hana harbor 8 bruno delta 100 alice grove 98 hana ember 13
lina grove 73 farah grove 72 farah ember 107 ivan harbor 16 hana amber 5 alice indigo 101 hana harbor 8 bruno delta 100 alice grove 98 hana ember 13
bruno amber 110 bruno delta 95 lina juniper 14 bruno juniper 1 farah harbor 10 jules cobalt 89 alice grove 9
bruno amber 110 bruno delta 95 lina juniper 14 bruno juniper 1 farah harbor 10 jules cobalt 89 alice grove 9
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002724
qwen/qwen3.7-plus
awkweave-0002725
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
gus harbor 88 failed farah fable 96 paused farah fable 27 active hana grove 35 paused kim birch 97 pending jules delta 104 active
jules delta 104 active
lina birch 53 closed alice delta 52 pending dina harbor 98 failed kim indigo 15 ready ivan grove 42 paused farah juniper 19 pending gus cobalt 34 paused lina indigo 0 paused
farah juniper 19 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002725-p1
Identify and output the longest line from the input; if multiple lines share the maximum length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
gus harbor 88 failed farah fable 96 paused farah fable 27 active hana grove 35 paused kim birch 97 pending jules delta 104 active
jules delta 104 active
lina birch 53 closed alice delta 52 pending dina harbor 98 failed kim indigo 15 ready ivan grove 42 paused farah juniper 19 pending gus cobalt 34 paused lina indigo 0 paused
farah juniper 19 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002725
qwen/qwen3.7-plus
awkweave-0002726
Print every 4th line starting at line 3 (then line 7, and so on).
NR%4==3
farah 80 lina 51 lina 22 kim 53 jules 61 eli 79 ivan 38 ivan 20
lina 22 ivan 38
eli 7 hana 85 chen 92 eli 44 eli 54 eli 68 ivan 118 chen 73
chen 92 ivan 118
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002726-p1
Output every fourth line of the input, beginning with line 3 (i.e., lines 3, 7, 11, etc.).
NR%4==3
farah 80 lina 51 lina 22 kim 53 jules 61 eli 79 ivan 38 ivan 20
lina 22 ivan 38
eli 7 hana 85 chen 92 eli 44 eli 54 eli 68 ivan 118 chen 73
chen 92 ivan 118
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002726
qwen/qwen3.7-plus
awkweave-0002727
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta ember 88 beta delta 30 delta ember 33 beta delta 35 alpha cobalt 91 gamma birch 108
4
beta delta 31 delta ember 108 gamma grove 51 gamma grove 9 alpha birch 68 gamma cobalt 67 gamma delta 19
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002727-p1
Determine the number of unique values present in column 1 and print only this total count.
{if(!seen[$1]++)n++}END{print n+0}
beta ember 88 beta delta 30 delta ember 33 beta delta 35 alpha cobalt 91 gamma birch 108
4
beta delta 31 delta ember 108 gamma grove 51 gamma grove 9 alpha birch 68 gamma cobalt 67 gamma delta 19
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002727
qwen/qwen3.7-plus
awkweave-0002728
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}
kim 25 0 chen 29 7 eli 26 26 hana 26 14 kim 6 15 bruno 4 23 jules 19 12
chen 4.14 eli 1.00 hana 1.86 kim 0.40 bruno 0.17 jules 1.58
farah 19 0 jules 19 14 chen 20 16 ivan 2 2 bruno 3 16 gus 7 16 jules 6 26
jules 1.36 chen 1.25 ivan 1.00 bruno 0.19 gus 0.44 jules 0.23
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002728-p1
For each row, output column 1 and the result of dividing column 2 by column 3 formatted to two decimal places, excluding any rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
kim 25 0 chen 29 7 eli 26 26 hana 26 14 kim 6 15 bruno 4 23 jules 19 12
chen 4.14 eli 1.00 hana 1.86 kim 0.40 bruno 0.17 jules 1.58
farah 19 0 jules 19 14 chen 20 16 ivan 2 2 bruno 3 16 gus 7 16 jules 6 26
jules 1.36 chen 1.25 ivan 1.00 bruno 0.19 gus 0.44 jules 0.23
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002728
qwen/qwen3.7-plus
awkweave-0002729
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
farah indigo 29 eli grove 5 eli amber 3 ivan harbor 29 ivan indigo 17 kim harbor 6
farah indigo 29 ivan harbor 29 ivan indigo 17
farah grove 1 hana indigo 22 gus grove 17 ivan cobalt 26 alice cobalt 9 chen indigo 17 eli juniper 10 gus grove 25
ivan cobalt 26 gus grove 25 hana indigo 22
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002729-p1
Output the three full records with the highest numeric values in column 3, sorted in descending order; preserve the original input order for any tied values.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
farah indigo 29 eli grove 5 eli amber 3 ivan harbor 29 ivan indigo 17 kim harbor 6
farah indigo 29 ivan harbor 29 ivan indigo 17
farah grove 1 hana indigo 22 gus grove 17 ivan cobalt 26 alice cobalt 9 chen indigo 17 eli juniper 10 gus grove 25
ivan cobalt 26 gus grove 25 hana indigo 22
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002729
qwen/qwen3.7-plus
awkweave-0002730
For each line, output fields 4 and 2, in that order.
{print $4, $2}
lina farah ivan active grove jules farah kim ready indigo chen gus dina pending birch farah gus chen closed birch lina eli hana ready indigo hana lina dina closed cobalt chen kim bruno pending delta alice chen hana paused indigo
active farah ready farah pending gus closed gus ready eli closed lina pending kim paused chen
lina lina eli active delta gus farah lina paused indigo dina alice lina pending cobalt alice jules farah active indigo eli eli gus pending birch bruno gus kim closed ember bruno alice bruno ready amber kim farah ivan failed cobalt hana jules eli closed delta
active lina paused farah pending alice active jules pending eli closed gus ready alice failed farah closed jules
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002730-p1
For every line, display the fourth field followed by the second field.
{print $4, $2}
lina farah ivan active grove jules farah kim ready indigo chen gus dina pending birch farah gus chen closed birch lina eli hana ready indigo hana lina dina closed cobalt chen kim bruno pending delta alice chen hana paused indigo
active farah ready farah pending gus closed gus ready eli closed lina pending kim paused chen
lina lina eli active delta gus farah lina paused indigo dina alice lina pending cobalt alice jules farah active indigo eli eli gus pending birch bruno gus kim closed ember bruno alice bruno ready amber kim farah ivan failed cobalt hana jules eli closed delta
active lina paused farah pending alice active jules pending eli closed gus ready alice failed farah closed jules
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002730
qwen/qwen3.7-plus
awkweave-0002731
Print the last field of every input line.
{print $NF}
juniper 42 alice harbor ember 104 eli cobalt cobalt 97 jules ember delta 68 jules indigo cobalt 114 hana indigo harbor 20 farah indigo
harbor cobalt ember indigo indigo indigo
juniper 61 jules delta juniper 77 hana fable fable 25 kim amber fable 102 gus cobalt ember 23 jules birch juniper 10 chen indigo
delta fable amber cobalt birch indigo
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002731-p1
Output the final field from each input line.
{print $NF}
juniper 42 alice harbor ember 104 eli cobalt cobalt 97 jules ember delta 68 jules indigo cobalt 114 hana indigo harbor 20 farah indigo
harbor cobalt ember indigo indigo indigo
juniper 61 jules delta juniper 77 hana fable fable 25 kim amber fable 102 gus cobalt ember 23 jules birch juniper 10 chen indigo
delta fable amber cobalt birch indigo
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002731
qwen/qwen3.7-plus
awkweave-0002732
Print the complete records where column 2 is less than 73.
$2 < 73
lina 51 ready fable bruno alice 120 active amber lina farah 37 ready delta lina eli 69 closed harbor lina hana 63 closed fable chen lina 32 failed harbor chen lina 55 ready fable ivan
lina 51 ready fable bruno farah 37 ready delta lina eli 69 closed harbor lina hana 63 closed fable chen lina 32 failed harbor chen lina 55 ready fable ivan
dina 3 pending ember hana ivan 111 pending harbor bruno alice 78 active cobalt chen chen 89 closed amber bruno kim 105 paused grove chen farah 57 paused ember lina
dina 3 pending ember hana farah 57 paused ember lina
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002732-p1
Print full records where the value in the second column is strictly less than 73.
$2 < 73
lina 51 ready fable bruno alice 120 active amber lina farah 37 ready delta lina eli 69 closed harbor lina hana 63 closed fable chen lina 32 failed harbor chen lina 55 ready fable ivan
lina 51 ready fable bruno farah 37 ready delta lina eli 69 closed harbor lina hana 63 closed fable chen lina 32 failed harbor chen lina 55 ready fable ivan
dina 3 pending ember hana ivan 111 pending harbor bruno alice 78 active cobalt chen chen 89 closed amber bruno kim 105 paused grove chen farah 57 paused ember lina
dina 3 pending ember hana farah 57 paused ember lina
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002732
qwen/qwen3.7-plus
awkweave-0002733
Show whole lines whose 3rd field is between 10 and 29, inclusive.
$3 >= 10 && $3 <= 29
lina active 12 ready jules pending 20 failed hana ready 12 active chen paused 29 ready eli active 27 active eli failed 18 failed
lina active 12 ready jules pending 20 failed hana ready 12 active chen paused 29 ready eli active 27 active eli failed 18 failed
gus failed 22 active farah active 16 ready eli paused 18 pending chen active 3 closed alice closed 26 failed gus ready 5 pending
gus failed 22 active farah active 16 ready eli paused 18 pending alice closed 26 failed
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002733-p1
Display entire lines where the third field falls within the inclusive range of 10 to 29.
$3 >= 10 && $3 <= 29
lina active 12 ready jules pending 20 failed hana ready 12 active chen paused 29 ready eli active 27 active eli failed 18 failed
lina active 12 ready jules pending 20 failed hana ready 12 active chen paused 29 ready eli active 27 active eli failed 18 failed
gus failed 22 active farah active 16 ready eli paused 18 pending chen active 3 closed alice closed 26 failed gus ready 5 pending
gus failed 22 active farah active 16 ready eli paused 18 pending alice closed 26 failed
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002733
qwen/qwen3.7-plus
awkweave-0002734
Print column 3 only for rows where column 2 is exactly closed.
$2 == "closed"{print $3}
ember failed jules 60 harbor active lina 41 grove failed bruno 29 delta paused alice 53 amber paused dina 44 birch failed lina 88 birch closed alice 48 juniper ready lina 17
alice
fable failed kim 29 cobalt active eli 22 amber ready alice 116 ember paused ivan 15 harbor active alice 107 ember failed dina 46 indigo ready bruno 10
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002734-p1
Output only the third column for rows where the second column equals closed.
$2 == "closed"{print $3}
ember failed jules 60 harbor active lina 41 grove failed bruno 29 delta paused alice 53 amber paused dina 44 birch failed lina 88 birch closed alice 48 juniper ready lina 17
alice
fable failed kim 29 cobalt active eli 22 amber ready alice 116 ember paused ivan 15 harbor active alice 107 ember failed dina 46 indigo ready bruno 10
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002734
qwen/qwen3.7-plus
awkweave-0002735
Print all fields from lines where field 1 begins with WARN.
$1 ~ /^WARN/
INFO harbor 73 WARN harbor 5 WARN amber 79 INFO birch 25 ERROR harbor 9 DEBUG amber 61 WARN amber 90 ERROR amber 36
WARN harbor 5 WARN amber 79 WARN amber 90
DEBUG cobalt 111 ERROR birch 40 WARN indigo 23 ERROR cobalt 115 ERROR juniper 25 ERROR fable 98 DEBUG harbor 15 ERROR delta 116
WARN indigo 23
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002735-p1
Print all fields from lines where the first field starts with WARN.
$1 ~ /^WARN/
INFO harbor 73 WARN harbor 5 WARN amber 79 INFO birch 25 ERROR harbor 9 DEBUG amber 61 WARN amber 90 ERROR amber 36
WARN harbor 5 WARN amber 79 WARN amber 90
DEBUG cobalt 111 ERROR birch 40 WARN indigo 23 ERROR cobalt 115 ERROR juniper 25 ERROR fable 98 DEBUG harbor 15 ERROR delta 116
WARN indigo 23
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002735
qwen/qwen3.7-plus
awkweave-0002736
Print every line except those containing the exact text ember.
$0 !~ /ember/
delta 64 pending juniper 105 failed indigo 62 pending cobalt 38 ready birch 35 pending indigo 23 closed ember 999 active
delta 64 pending juniper 105 failed indigo 62 pending cobalt 38 ready birch 35 pending indigo 23 closed
ember 25 active birch 83 active birch 72 active indigo 0 failed juniper 6 pending indigo 47 ready harbor 17 paused fable 76 pending harbor 38 pending ember 999 active
birch 83 active birch 72 active indigo 0 failed juniper 6 pending indigo 47 ready harbor 17 paused fable 76 pending harbor 38 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002736-p1
Output every line that does not contain the exact string ember.
$0 !~ /ember/
delta 64 pending juniper 105 failed indigo 62 pending cobalt 38 ready birch 35 pending indigo 23 closed ember 999 active
delta 64 pending juniper 105 failed indigo 62 pending cobalt 38 ready birch 35 pending indigo 23 closed
ember 25 active birch 83 active birch 72 active indigo 0 failed juniper 6 pending indigo 47 ready harbor 17 paused fable 76 pending harbor 38 pending ember 999 active
birch 83 active birch 72 active indigo 0 failed juniper 6 pending indigo 47 ready harbor 17 paused fable 76 pending harbor 38 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002736
qwen/qwen3.7-plus
awkweave-0002737
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
jules delta 73 dina delta 73 ivan birch 106 hana amber 44 alice cobalt 73 eli amber 28
dina delta 73 ivan birch 106
hana fable 49 jules amber 84 eli grove 60 hana harbor 8 kim indigo 25 hana grove 23 jules grove 87
jules amber 84 eli grove 60
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002737-p1
Print lines 2 through 3, inclusive.
NR >= 2 && NR <= 3
jules delta 73 dina delta 73 ivan birch 106 hana amber 44 alice cobalt 73 eli amber 28
dina delta 73 ivan birch 106
hana fable 49 jules amber 84 eli grove 60 hana harbor 8 kim indigo 25 hana grove 23 jules grove 87
jules amber 84 eli grove 60
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002737
qwen/qwen3.7-plus
awkweave-0002738
Output only the first 2 records.
NR <= 2
lina 77 cobalt chen 97 ember dina 40 harbor gus 7 amber eli 36 amber alice 9 cobalt hana 2 birch farah 54 grove
lina 77 cobalt chen 97 ember
gus 1 ember kim 41 amber bruno 64 indigo kim 33 ember bruno 9 harbor eli 102 birch kim 22 ember
gus 1 ember kim 41 amber
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002738-p1
Output only the first 2 records.
NR <= 2
lina 77 cobalt chen 97 ember dina 40 harbor gus 7 amber eli 36 amber alice 9 cobalt hana 2 birch farah 54 grove
lina 77 cobalt chen 97 ember
gus 1 ember kim 41 amber bruno 64 indigo kim 33 ember bruno 9 harbor eli 102 birch kim 22 ember
gus 1 ember kim 41 amber
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0002738
qwen/qwen3.7-plus
awkweave-0002739
Skip the first line and print every remaining line unchanged.
NR > 1
ivan 8 juniper hana 105 juniper hana 90 juniper ivan 85 harbor alice 39 juniper ivan 99 harbor jules 27 delta
hana 105 juniper hana 90 juniper ivan 85 harbor alice 39 juniper ivan 99 harbor jules 27 delta
ivan 8 cobalt farah 91 ember chen 120 indigo lina 30 juniper kim 99 indigo chen 104 ember ivan 64 fable ivan 24 delta eli 28 birch ivan 109 ember
farah 91 ember chen 120 indigo lina 30 juniper kim 99 indigo chen 104 ember ivan 64 fable ivan 24 delta eli 28 birch ivan 109 ember
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002739-p1
Ignore the first line and print all subsequent lines exactly as they appear.
NR > 1
ivan 8 juniper hana 105 juniper hana 90 juniper ivan 85 harbor alice 39 juniper ivan 99 harbor jules 27 delta
hana 105 juniper hana 90 juniper ivan 85 harbor alice 39 juniper ivan 99 harbor jules 27 delta
ivan 8 cobalt farah 91 ember chen 120 indigo lina 30 juniper kim 99 indigo chen 104 ember ivan 64 fable ivan 24 delta eli 28 birch ivan 109 ember
farah 91 ember chen 120 indigo lina 30 juniper kim 99 indigo chen 104 ember ivan 64 fable ivan 24 delta eli 28 birch ivan 109 ember
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002739
qwen/qwen3.7-plus
awkweave-0002740
Count how many records have paused in column 2. Print 0 if there are none.
$2 == "paused"{n++}END{print n+0}
alice pending 93 dina closed 120 lina ready 73 ivan active 50 dina ready 105 chen pending 43
0
farah closed 55 kim ready 42 chen ready 109 farah closed 92 alice failed 40 kim paused 45 hana active 8 bruno pending 116
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002740-p1
Count the number of records where the second column is paused; output 0 if no such records exist.
$2 == "paused"{n++}END{print n+0}
alice pending 93 dina closed 120 lina ready 73 ivan active 50 dina ready 105 chen pending 43
0
farah closed 55 kim ready 42 chen ready 109 farah closed 92 alice failed 40 kim paused 45 hana active 8 bruno pending 116
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002740
qwen/qwen3.7-plus
awkweave-0002741
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
ivan cobalt 9 bruno harbor 22 gus birch 24 ivan amber 12 alice fable 17 dina juniper 22 alice ember 5
111
farah grove 1 jules indigo 30 lina ember 15 chen grove 24 gus amber 8 gus birch 27
105
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002741-p1
Compute and print the total sum of integer values found in the third column.
{s+=$3}END{print s+0}
ivan cobalt 9 bruno harbor 22 gus birch 24 ivan amber 12 alice fable 17 dina juniper 22 alice ember 5
111
farah grove 1 jules indigo 30 lina ember 15 chen grove 24 gus amber 8 gus birch 27
105
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002741
qwen/qwen3.7-plus
awkweave-0002742
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
21 bruno juniper 2 alice juniper 5 kim cobalt 17 ivan ember 22 hana cobalt 4 eli cobalt 17 kim ember 5 kim delta 11 lina grove
11.56
10 bruno ember 19 alice ember 17 ivan cobalt 15 kim indigo 8 kim amber 22 jules birch 6 bruno fable 10 gus birch 10 hana ember
13.00
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002742-p1
Output the average of the values in column 1, formatted to two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
21 bruno juniper 2 alice juniper 5 kim cobalt 17 ivan ember 22 hana cobalt 4 eli cobalt 17 kim ember 5 kim delta 11 lina grove
11.56
10 bruno ember 19 alice ember 17 ivan cobalt 15 kim indigo 8 kim amber 22 jules birch 6 bruno fable 10 gus birch 10 hana ember
13.00
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002742
qwen/qwen3.7-plus
awkweave-0002743
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
grove 4 chen cobalt 28 eli grove 24 eli fable 2 eli fable 11 dina harbor 21 chen
2
indigo 27 lina amber 17 alice juniper 4 ivan juniper 7 bruno harbor 30 alice fable 26 hana indigo 27 ivan cobalt 25 lina juniper 10 eli indigo 6 gus
4
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002743-p1
Identify and display the minimum number found in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
grove 4 chen cobalt 28 eli grove 24 eli fable 2 eli fable 11 dina harbor 21 chen
2
indigo 27 lina amber 17 alice juniper 4 ivan juniper 7 bruno harbor 30 alice fable 26 hana indigo 27 ivan cobalt 25 lina juniper 10 eli indigo 6 gus
4
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002743
qwen/qwen3.7-plus
awkweave-0002744
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
farah 27 grove chen 30 grove hana 6 indigo chen 17 cobalt ivan 27 delta jules 10 indigo alice 24 birch dina 6 cobalt kim 20 ember
30
chen 19 cobalt dina 19 cobalt dina 4 birch alice 12 fable eli 3 harbor kim 7 delta
19
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002744-p1
Identify and display the maximum number found in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
farah 27 grove chen 30 grove hana 6 indigo chen 17 cobalt ivan 27 delta jules 10 indigo alice 24 birch dina 6 cobalt kim 20 ember
30
chen 19 cobalt dina 19 cobalt dina 4 birch alice 12 fable eli 3 harbor kim 7 delta
19
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002744
qwen/qwen3.7-plus
awkweave-0002745
Count all input records and print the total.
END{print NR}
kim 102 kim 38 dina 25 farah 100 alice 94 eli 84 gus 84 alice 117 eli 35 hana 4
10
kim 8 hana 52 hana 69 bruno 36 lina 32 bruno 45
6
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002745-p1
Calculate and output the total number of input lines.
END{print NR}
kim 102 kim 38 dina 25 farah 100 alice 94 eli 84 gus 84 alice 117 eli 35 hana 4
10
kim 8 hana 52 hana 69 bruno 36 lina 32 bruno 45
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002745
qwen/qwen3.7-plus
awkweave-0002746
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
gus indigo 90 lina harbor 53 lina harbor 53 gus birch 40 lina ember 36 ivan cobalt 107 kim indigo 6
gus indigo 90 lina harbor 53 gus birch 40 lina ember 36 ivan cobalt 107 kim indigo 6
hana delta 18 chen fable 94 bruno delta 7 farah delta 95 eli birch 27 chen harbor 118 bruno harbor 42 farah delta 95 lina birch 90
hana delta 18 chen fable 94 bruno delta 7 farah delta 95 eli birch 27 chen harbor 118 bruno harbor 42 lina birch 90
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002746-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
gus indigo 90 lina harbor 53 lina harbor 53 gus birch 40 lina ember 36 ivan cobalt 107 kim indigo 6
gus indigo 90 lina harbor 53 gus birch 40 lina ember 36 ivan cobalt 107 kim indigo 6
hana delta 18 chen fable 94 bruno delta 7 farah delta 95 eli birch 27 chen harbor 118 bruno harbor 42 farah delta 95 lina birch 90
hana delta 18 chen fable 94 bruno delta 7 farah delta 95 eli birch 27 chen harbor 118 bruno harbor 42 lina birch 90
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002746
qwen/qwen3.7-plus
awkweave-0002747
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
lina birch 8 dina grove 79 chen indigo 97 ivan fable 111 lina delta 30 lina amber 20 jules juniper 69
lina birch 8 dina grove 79 chen indigo 97 ivan fable 111 lina delta 30 lina amber 20 jules juniper 69
lina cobalt 3 dina juniper 34 gus indigo 14 chen fable 18 jules birch 38 gus indigo 8 bruno cobalt 46 dina grove 117 chen amber 34 ivan ember 59
lina cobalt 3 dina juniper 34 gus indigo 14 chen fable 18 jules birch 38 gus indigo 8 bruno cobalt 46 dina grove 117 ivan ember 59
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002747-p1
Retain only the initial line for every unique value in column 3, keeping the original order.
!seen[$3]++
lina birch 8 dina grove 79 chen indigo 97 ivan fable 111 lina delta 30 lina amber 20 jules juniper 69
lina birch 8 dina grove 79 chen indigo 97 ivan fable 111 lina delta 30 lina amber 20 jules juniper 69
lina cobalt 3 dina juniper 34 gus indigo 14 chen fable 18 jules birch 38 gus indigo 8 bruno cobalt 46 dina grove 117 chen amber 34 ivan ember 59
lina cobalt 3 dina juniper 34 gus indigo 14 chen fable 18 jules birch 38 gus indigo 8 bruno cobalt 46 dina grove 117 ivan ember 59
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002747
qwen/qwen3.7-plus
awkweave-0002748
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
jules 22 delta dina 10 cobalt eli 11 fable kim 20 juniper kim 3 delta hana 2 fable dina 5 amber
jules 22 dina 32 eli 43 kim 63 kim 66 hana 68 dina 73
eli 21 amber chen 12 cobalt hana 10 amber ivan 15 grove hana 12 birch jules 25 juniper chen 2 cobalt alice 13 delta
eli 21 chen 33 hana 43 ivan 58 hana 70 jules 95 chen 97 alice 110
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002748-p1
For each entry, output column 1 alongside the cumulative total of column 2, using a space as the delimiter.
{s+=$2;print $1,s}
jules 22 delta dina 10 cobalt eli 11 fable kim 20 juniper kim 3 delta hana 2 fable dina 5 amber
jules 22 dina 32 eli 43 kim 63 kim 66 hana 68 dina 73
eli 21 amber chen 12 cobalt hana 10 amber ivan 15 grove hana 12 birch jules 25 juniper chen 2 cobalt alice 13 delta
eli 21 chen 33 hana 43 ivan 58 hana 70 jules 95 chen 97 alice 110
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002748
qwen/qwen3.7-plus
awkweave-0002749
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
alice 1 14 grove gus 11 3 amber gus 17 26 harbor lina 22 6 delta dina 12 10 indigo eli 5 26 birch jules 1 1 delta gus 25 22 grove lina 25 13 cobalt
alice 15 gus 14 gus 43 lina 28 dina 22 eli 31 jules 2 gus 47 lina 38
lina 10 2 juniper bruno 7 8 harbor lina 3 16 juniper jules 30 27 cobalt dina 17 27 juniper bruno 25 28 cobalt dina 18 25 harbor gus 24 3 delta lina 6 9 fable
lina 12 bruno 15 lina 19 jules 57 dina 44 bruno 53 dina 43 gus 27 lina 15
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002749-p1
For each row, output field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
alice 1 14 grove gus 11 3 amber gus 17 26 harbor lina 22 6 delta dina 12 10 indigo eli 5 26 birch jules 1 1 delta gus 25 22 grove lina 25 13 cobalt
alice 15 gus 14 gus 43 lina 28 dina 22 eli 31 jules 2 gus 47 lina 38
lina 10 2 juniper bruno 7 8 harbor lina 3 16 juniper jules 30 27 cobalt dina 17 27 juniper bruno 25 28 cobalt dina 18 25 harbor gus 24 3 delta lina 6 9 fable
lina 12 bruno 15 lina 19 jules 57 dina 44 bruno 53 dina 43 gus 27 lina 15
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002749
qwen/qwen3.7-plus
awkweave-0002750
Print column 1 and pass when column 2 is at least 21; otherwise print fail.
{print $1,($2>=21?"pass":"fail")}
kim 18 farah 25 alice 1 farah 24 jules 17 lina 26 gus 13 farah 13
kim fail farah pass alice fail farah pass jules fail lina pass gus fail farah fail
eli 3 eli 26 jules 10 dina 4 jules 22 farah 26
eli fail eli pass jules fail dina fail jules pass farah pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002750-p1
Output column 1 along with 'pass' if column 2 is greater than or equal to 21, otherwise output 'fail'.
{print $1,($2>=21?"pass":"fail")}
kim 18 farah 25 alice 1 farah 24 jules 17 lina 26 gus 13 farah 13
kim fail farah pass alice fail farah pass jules fail lina pass gus fail farah fail
eli 3 eli 26 jules 10 dina 4 jules 22 farah 26
eli fail eli pass jules fail dina fail jules pass farah pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002750
qwen/qwen3.7-plus
awkweave-0002751
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
dina delta 80 ivan ember 100 gus cobalt 14 alice amber 37 chen indigo 12 eli juniper 52 jules delta 118 dina cobalt 26 gus amber 106
DELTA EMBER COBALT AMBER INDIGO JUNIPER DELTA COBALT AMBER
chen indigo 116 jules cobalt 51 kim delta 112 kim birch 15 chen fable 78 lina birch 40 farah grove 59 chen fable 10 gus ember 60 farah harbor 103
INDIGO COBALT DELTA BIRCH FABLE BIRCH GROVE FABLE EMBER HARBOR
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002751-p1
Transform column 2 to uppercase and output only that column.
{print toupper($2)}
dina delta 80 ivan ember 100 gus cobalt 14 alice amber 37 chen indigo 12 eli juniper 52 jules delta 118 dina cobalt 26 gus amber 106
DELTA EMBER COBALT AMBER INDIGO JUNIPER DELTA COBALT AMBER
chen indigo 116 jules cobalt 51 kim delta 112 kim birch 15 chen fable 78 lina birch 40 farah grove 59 chen fable 10 gus ember 60 farah harbor 103
INDIGO COBALT DELTA BIRCH FABLE BIRCH GROVE FABLE EMBER HARBOR
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002751
qwen/qwen3.7-plus
awkweave-0002752
From column 1, print 2 characters starting at character 2.
{print substr($1,2,2)}
birch 99 amber 47 delta 28 cobalt 56 fable 109 juniper 56 amber 5 indigo 9 delta 63
ir mb el ob ab un mb nd el
indigo 82 juniper 3 amber 41 grove 69 delta 43 juniper 86 harbor 30
nd un mb ro el un ar
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002752-p1
Extract and print a substring of length 2 from column 1, beginning at index 2.
{print substr($1,2,2)}
birch 99 amber 47 delta 28 cobalt 56 fable 109 juniper 56 amber 5 indigo 9 delta 63
ir mb el ob ab un mb nd el
indigo 82 juniper 3 amber 41 grove 69 delta 43 juniper 86 harbor 30
nd un mb ro el un ar
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002752
qwen/qwen3.7-plus
awkweave-0002753
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
birch_ember 102 fable_harbor 48 amber_fable 114 fable_juniper 111 amber_ember 74 harbor_fable 98 grove_harbor 75
birch ember fable harbor amber fable fable juniper amber ember harbor fable grove harbor
birch_fable 117 amber_delta 111 juniper_birch 48 harbor_cobalt 44 cobalt_delta 30 grove_amber 12 juniper_indigo 16 indigo_ember 82 ember_ember 31
birch fable amber delta juniper birch harbor cobalt cobalt delta grove amber juniper indigo indigo ember ember ember
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002753-p1
Substitute all underscores in column 1 with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
birch_ember 102 fable_harbor 48 amber_fable 114 fable_juniper 111 amber_ember 74 harbor_fable 98 grove_harbor 75
birch ember fable harbor amber fable fable juniper amber ember harbor fable grove harbor
birch_fable 117 amber_delta 111 juniper_birch 48 harbor_cobalt 44 cobalt_delta 30 grove_amber 12 juniper_indigo 16 indigo_ember 82 ember_ember 31
birch fable amber delta juniper birch harbor cobalt cobalt delta grove amber juniper indigo indigo ember ember ember
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002753
qwen/qwen3.7-plus
awkweave-0002754
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)}
jules ember 93 closed lina harbor 1 failed bruno juniper 11 active kim grove 44 paused chen ember 95 active jules birch 98 closed eli delta 27 paused bruno indigo 90 pending eli fable 100 pending
closed 93 ember jules failed 1 harbor lina active 11 juniper bruno paused 44 grove kim active 95 ember chen closed 98 birch jules paused 27 delta eli pending 90 indigo bruno pending 100 fable eli
gus harbor 31 failed dina indigo 92 ready chen fable 79 closed ivan fable 20 paused lina indigo 51 paused chen birch 53 pending
failed 31 harbor gus ready 92 indigo dina closed 79 fable chen paused 20 fable ivan paused 51 indigo lina pending 53 birch chen
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002754-p1
Reverse the field order on each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
jules ember 93 closed lina harbor 1 failed bruno juniper 11 active kim grove 44 paused chen ember 95 active jules birch 98 closed eli delta 27 paused bruno indigo 90 pending eli fable 100 pending
closed 93 ember jules failed 1 harbor lina active 11 juniper bruno paused 44 grove kim active 95 ember chen closed 98 birch jules paused 27 delta eli pending 90 indigo bruno pending 100 fable eli
gus harbor 31 failed dina indigo 92 ready chen fable 79 closed ivan fable 20 paused lina indigo 51 paused chen birch 53 pending
failed 31 harbor gus ready 92 indigo dina closed 79 fable chen paused 20 fable ivan paused 51 indigo lina pending 53 birch chen
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002754
qwen/qwen3.7-plus
awkweave-0002755
Print the number of whitespace-separated fields on each line.
{print NF}
ivan indigo 81 active chen amber 109 ready farah amber 83 closed chen amber 105 active gus indigo 105 ready eli delta 29 paused hana fable 28 closed farah juniper 46 paused kim harbor 82 ready
4 4 4 4 4 4 4 4 4
jules indigo 16 failed jules harbor 95 active farah indigo 43 ready eli grove 108 active lina fable 70 closed alice cobalt 25 closed ivan delta 41 active gus grove 21 closed farah birch 84 ready
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002755-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
ivan indigo 81 active chen amber 109 ready farah amber 83 closed chen amber 105 active gus indigo 105 ready eli delta 29 paused hana fable 28 closed farah juniper 46 paused kim harbor 82 ready
4 4 4 4 4 4 4 4 4
jules indigo 16 failed jules harbor 95 active farah indigo 43 ready eli grove 108 active lina fable 70 closed alice cobalt 25 closed ivan delta 41 active gus grove 21 closed farah birch 84 ready
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002755
qwen/qwen3.7-plus
awkweave-0002756
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
jules beta 23 alice alpha 105 dina alpha 46 chen delta 105 chen beta 87 chen delta 10 hana beta 105 gus gamma 69
beta 3 alpha 2 delta 2 gamma 1
alice alpha 79 lina alpha 2 chen beta 76 hana delta 99 dina delta 117 kim delta 44 bruno alpha 28 ivan beta 27 jules alpha 35 ivan beta 76
alpha 4 beta 3 delta 3
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002756-p1
Tally records by the value in column 2, then print 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]]}
jules beta 23 alice alpha 105 dina alpha 46 chen delta 105 chen beta 87 chen delta 10 hana beta 105 gus gamma 69
beta 3 alpha 2 delta 2 gamma 1
alice alpha 79 lina alpha 2 chen beta 76 hana delta 99 dina delta 117 kim delta 44 bruno alpha 28 ivan beta 27 jules alpha 35 ivan beta 76
alpha 4 beta 3 delta 3
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002756
qwen/qwen3.7-plus
awkweave-0002757
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]]}
farah gamma 7 gus alpha 17 farah alpha 15 dina delta 19 ivan beta 1 lina alpha 6 bruno alpha 15 lina delta 3 ivan beta 23 lina delta 24
gamma 7 alpha 53 delta 46 beta 24
alice beta 2 chen gamma 15 eli gamma 13 lina beta 15 chen delta 30 farah gamma 6 farah beta 22
beta 39 gamma 34 delta 30
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002757-p1
Calculate the sum of column 3 for each unique value in column 2, displaying the results 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]]}
farah gamma 7 gus alpha 17 farah alpha 15 dina delta 19 ivan beta 1 lina alpha 6 bruno alpha 15 lina delta 3 ivan beta 23 lina delta 24
gamma 7 alpha 53 delta 46 beta 24
alice beta 2 chen gamma 15 eli gamma 13 lina beta 15 chen delta 30 farah gamma 6 farah beta 22
beta 39 gamma 34 delta 30
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002757
qwen/qwen3.7-plus
awkweave-0002758
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]]}
alpha fable 11 delta delta 118 beta ember 4 beta ember 108 gamma fable 85 alpha cobalt 15 alpha fable 91 alpha harbor 14 beta grove 45
alpha 4 beta 3
alpha indigo 19 gamma harbor 56 alpha juniper 27 beta ember 4 delta cobalt 35 beta amber 7 alpha cobalt 26 delta indigo 35
alpha 3 beta 2 delta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002758-p1
List each duplicate value from column 1 alongside its occurrence count, 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]]}
alpha fable 11 delta delta 118 beta ember 4 beta ember 108 gamma fable 85 alpha cobalt 15 alpha fable 91 alpha harbor 14 beta grove 45
alpha 4 beta 3
alpha indigo 19 gamma harbor 56 alpha juniper 27 beta ember 4 delta cobalt 35 beta amber 7 alpha cobalt 26 delta indigo 35
alpha 3 beta 2 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002758
qwen/qwen3.7-plus
awkweave-0002759
The first row is a header. Print the state column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
note display_name region state r001 ivan 27 failed r002 eli 16 closed r003 jules 30 active r004 dina 6 ready r005 eli 10 active r006 dina 17 closed r007 jules 9 ready
failed closed active ready active closed ready
note display_name region state r001 ivan 25 paused r002 hana 8 active r003 bruno 21 paused r004 alice 15 pending r005 jules 14 failed r006 lina 25 active r007 alice 16 ready
paused active paused pending failed active ready
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002759-p1
Skip the header row and output the state column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
note display_name region state r001 ivan 27 failed r002 eli 16 closed r003 jules 30 active r004 dina 6 ready r005 eli 10 active r006 dina 17 closed r007 jules 9 ready
failed closed active ready active closed ready
note display_name region state r001 ivan 25 paused r002 hana 8 active r003 bruno 21 paused r004 alice 15 pending r005 jules 14 failed r006 lina 25 active r007 alice 16 ready
paused active paused pending failed active ready
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002759
qwen/qwen3.7-plus
awkweave-0002760
The first row is a header. Print display_name for data rows whose score is greater than 18.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]}
record_id display_name score state r001 hana 28 paused r002 bruno 12 closed r003 eli 4 closed r004 chen 29 failed r005 dina 23 paused r006 bruno 9 failed r007 jules 23 pending r008 farah 29 closed r009 farah 12 pending
hana chen dina jules farah
record_id display_name score state r001 lina 9 closed r002 dina 5 pending r003 hana 25 pending r004 chen 17 ready r005 eli 14 failed r006 farah 20 pending r007 alice 18 failed r008 ivan 14 pending r009 eli 14 paused r010 farah 18 active
hana farah
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002760-p1
Ignoring the header, print the display_name for rows where the score is greater than 18.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]}
record_id display_name score state r001 hana 28 paused r002 bruno 12 closed r003 eli 4 closed r004 chen 29 failed r005 dina 23 paused r006 bruno 9 failed r007 jules 23 pending r008 farah 29 closed r009 farah 12 pending
hana chen dina jules farah
record_id display_name score state r001 lina 9 closed r002 dina 5 pending r003 hana 25 pending r004 chen 17 ready r005 eli 14 failed r006 farah 20 pending r007 alice 18 failed r008 ivan 14 pending r009 eli 14 paused r010 farah 18 active
hana farah
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002760
qwen/qwen3.7-plus
awkweave-0002761
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
dina 20 pending hana 20 failed alice 14 closed hana 11 active jules 14 closed alice 25 pending chen 11 closed dina 8 ready jules 8 paused lina 26 pending
dina hana alice hana jules alice chen dina jules lina
ivan 24 active jules 22 ready farah 12 active chen 30 ready alice 28 pending alice 20 active
ivan jules farah chen alice alice
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002761-p1
Given tab-separated input, output the first column of every record.
BEGIN{FS=OFS="\t"}{print $1}
dina 20 pending hana 20 failed alice 14 closed hana 11 active jules 14 closed alice 25 pending chen 11 closed dina 8 ready jules 8 paused lina 26 pending
dina hana alice hana jules alice chen dina jules lina
ivan 24 active jules 22 ready farah 12 active chen 30 ready alice 28 pending alice 20 active
ivan jules farah chen alice alice
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002761
qwen/qwen3.7-plus
awkweave-0002762
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 8.
BEGIN{FS=OFS=","}$2>8{print $1}
ivan,12,closed kim,9,closed eli,30,ready ivan,6,failed chen,27,ready kim,4,ready
ivan kim eli chen
alice,9,active chen,3,active bruno,29,pending bruno,29,active lina,21,closed eli,5,ready dina,27,ready lina,9,failed bruno,9,closed ivan,25,closed
alice bruno bruno lina dina lina bruno ivan
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002762-p1
For simple comma-separated data without quoted commas, print the first column if the second column is greater than 8.
BEGIN{FS=OFS=","}$2>8{print $1}
ivan,12,closed kim,9,closed eli,30,ready ivan,6,failed chen,27,ready kim,4,ready
ivan kim eli chen
alice,9,active chen,3,active bruno,29,pending bruno,29,active lina,21,closed eli,5,ready dina,27,ready lina,9,failed bruno,9,closed ivan,25,closed
alice bruno bruno lina dina lina bruno ivan
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002762
qwen/qwen3.7-plus
awkweave-0002763
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
dina fable 31 chen harbor 118 gus fable 114 ivan fable 97 farah ember 23 chen birch 11 gus ember 51 kim juniper 114
dina fable 31 chen harbor 118 gus fable 114 ivan fable 97 farah ember 23 chen birch 11 gus ember 51 kim juniper 114
ivan amber 43 hana birch 92 alice birch 5 dina amber 81 ivan harbor 111 jules ember 4 kim harbor 69
ivan amber 43 hana birch 92 alice birch 5 dina amber 81 ivan harbor 111 jules ember 4 kim harbor 69
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002763-p1
Remove leading and trailing whitespace and replace internal whitespace sequences with a single space.
{$1=$1;print}
dina fable 31 chen harbor 118 gus fable 114 ivan fable 97 farah ember 23 chen birch 11 gus ember 51 kim juniper 114
dina fable 31 chen harbor 118 gus fable 114 ivan fable 97 farah ember 23 chen birch 11 gus ember 51 kim juniper 114
ivan amber 43 hana birch 92 alice birch 5 dina amber 81 ivan harbor 111 jules ember 4 kim harbor 69
ivan amber 43 hana birch 92 alice birch 5 dina amber 81 ivan harbor 111 jules ember 4 kim harbor 69
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002763
qwen/qwen3.7-plus
awkweave-0002764
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
dina delta 56 active jules fable 77 ready ivan ember 78 active alice fable 93 active chen juniper 63 active ivan grove 8 closed alice birch 61 ready
chen juniper 63 active
chen ember 53 ready dina ember 115 failed chen cobalt 55 paused gus amber 45 paused kim birch 75 closed eli juniper 32 paused
dina ember 115 failed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002764-p1
Identify and print the longest line from the input; if there is a tie, select the first one.
{if(length($0)>length(best))best=$0}END{print best}
dina delta 56 active jules fable 77 ready ivan ember 78 active alice fable 93 active chen juniper 63 active ivan grove 8 closed alice birch 61 ready
chen juniper 63 active
chen ember 53 ready dina ember 115 failed chen cobalt 55 paused gus amber 45 paused kim birch 75 closed eli juniper 32 paused
dina ember 115 failed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002764
qwen/qwen3.7-plus
awkweave-0002765
Print every 3rd line starting at line 1 (then line 4, and so on).
NR%3==1
ivan 56 gus 49 kim 106 ivan 12 ivan 67 dina 81 dina 62 hana 93 ivan 40
ivan 56 ivan 12 dina 62
dina 45 chen 72 bruno 57 lina 52 farah 43 ivan 41
dina 45 lina 52
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002765-p1
Output every third line, beginning with line 1 (i.e., lines 1, 4, 7, etc.).
NR%3==1
ivan 56 gus 49 kim 106 ivan 12 ivan 67 dina 81 dina 62 hana 93 ivan 40
ivan 56 ivan 12 dina 62
dina 45 chen 72 bruno 57 lina 52 farah 43 ivan 41
dina 45 lina 52
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002765
qwen/qwen3.7-plus
awkweave-0002766
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha indigo 7 alpha birch 52 beta cobalt 48 beta grove 51 gamma fable 9 beta grove 6
5
alpha juniper 115 gamma juniper 94 beta amber 24 alpha grove 15 delta indigo 12 delta amber 21 beta indigo 70 beta amber 64 delta grove 24 beta amber 67
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002766-p1
Calculate the number of unique entries in the second column and output just that total.
{if(!seen[$2]++)n++}END{print n+0}
alpha indigo 7 alpha birch 52 beta cobalt 48 beta grove 51 gamma fable 9 beta grove 6
5
alpha juniper 115 gamma juniper 94 beta amber 24 alpha grove 15 delta indigo 12 delta amber 21 beta indigo 70 beta amber 64 delta grove 24 beta amber 67
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002766
qwen/qwen3.7-plus
awkweave-0002767
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}
bruno 5 0 ivan 6 14 ivan 16 9 farah 18 26 farah 25 4 gus 28 7 gus 6 8 jules 11 30
ivan 0.43 ivan 1.78 farah 0.69 farah 6.25 gus 4.00 gus 0.75 jules 0.37
eli 28 0 jules 28 12 eli 23 10 hana 12 6 gus 6 13 ivan 22 5 ivan 30 26 alice 30 2
jules 2.33 eli 2.30 hana 2.00 gus 0.46 ivan 4.40 ivan 1.15 alice 15.00
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002767-p1
For every row where the third column is not zero, display the first column and the result of dividing the second column by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
bruno 5 0 ivan 6 14 ivan 16 9 farah 18 26 farah 25 4 gus 28 7 gus 6 8 jules 11 30
ivan 0.43 ivan 1.78 farah 0.69 farah 6.25 gus 4.00 gus 0.75 jules 0.37
eli 28 0 jules 28 12 eli 23 10 hana 12 6 gus 6 13 ivan 22 5 ivan 30 26 alice 30 2
jules 2.33 eli 2.30 hana 2.00 gus 0.46 ivan 4.40 ivan 1.15 alice 15.00
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002767
qwen/qwen3.7-plus
awkweave-0002768
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]}
chen birch 19 jules cobalt 3 ivan grove 27 bruno amber 9 kim juniper 17 chen amber 18 hana cobalt 27 chen delta 15
ivan grove 27 hana cobalt 27 chen birch 19
alice amber 8 eli amber 22 hana ember 6 bruno harbor 26 chen harbor 30 ivan harbor 29 kim harbor 7
chen harbor 30 ivan harbor 29 bruno harbor 26
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002768-p1
Output the three full records with the largest numeric values in column 3, sorted in descending order; keep the original input sequence 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]}
chen birch 19 jules cobalt 3 ivan grove 27 bruno amber 9 kim juniper 17 chen amber 18 hana cobalt 27 chen delta 15
ivan grove 27 hana cobalt 27 chen birch 19
alice amber 8 eli amber 22 hana ember 6 bruno harbor 26 chen harbor 30 ivan harbor 29 kim harbor 7
chen harbor 30 ivan harbor 29 bruno harbor 26
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002768
qwen/qwen3.7-plus
awkweave-0002769
Print column 3 followed by column 1 for every record.
{print $3, $1}
jules paused birch indigo juniper eli active amber grove birch gus ready harbor cobalt birch dina ready birch birch grove lina failed juniper grove delta lina failed delta indigo indigo chen failed harbor cobalt juniper kim ready fable juniper ember alice ready amber birch ember
birch jules amber eli harbor gus birch dina juniper lina delta lina harbor chen fable kim amber alice
hana failed birch cobalt grove hana failed juniper birch ember eli ready birch ember juniper chen pending delta delta birch chen active amber birch birch kim active fable delta juniper dina active fable birch ember ivan closed ember juniper harbor lina failed delta delta grove ivan failed indigo birch fable
birch hana juniper hana birch eli delta chen amber chen fable kim fable dina ember ivan delta lina indigo ivan
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002769-p1
Display the third column followed by the first column for each record.
{print $3, $1}
jules paused birch indigo juniper eli active amber grove birch gus ready harbor cobalt birch dina ready birch birch grove lina failed juniper grove delta lina failed delta indigo indigo chen failed harbor cobalt juniper kim ready fable juniper ember alice ready amber birch ember
birch jules amber eli harbor gus birch dina juniper lina delta lina harbor chen fable kim amber alice
hana failed birch cobalt grove hana failed juniper birch ember eli ready birch ember juniper chen pending delta delta birch chen active amber birch birch kim active fable delta juniper dina active fable birch ember ivan closed ember juniper harbor lina failed delta delta grove ivan failed indigo birch fable
birch hana juniper hana birch eli delta chen amber chen fable kim fable dina ember ivan delta lina indigo ivan
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002769
qwen/qwen3.7-plus
awkweave-0002770
Print the last field of every input line.
{print $NF}
61 juniper 76 birch kim 60 106 birch 69 juniper jules 105 58 birch 112 fable bruno 14 26 ember 98 indigo jules 120 56 fable 28 harbor lina 83 53 cobalt 63 juniper lina 31
60 105 14 120 83 31
48 ember 71 delta lina 64 2 delta 109 cobalt bruno 16 111 delta 42 indigo bruno 80 119 cobalt 16 amber hana 49 63 ember 93 grove kim 2 112 juniper 38 ember kim 106 83 harbor 50 birch chen 27
64 16 80 49 2 106 27
last_field
1
train
original-grammar
CC-BY-4.0
null
null