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-0035831-p1
Treating the first line as a header, output the values from the record_id column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
display_name state note record_id r001 jules 26 pending r002 hana 16 paused r003 jules 5 paused r004 eli 29 paused r005 ivan 13 closed r006 dina 15 pending
pending paused paused paused closed pending
display_name state note record_id r001 dina 24 active r002 chen 1 closed r003 lina 18 active r004 gus 4 paused r005 chen 28 closed r006 farah 23 pending r007 farah 9 ready
active closed active paused closed pending ready
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035831
qwen/qwen3.7-plus
awkweave-0035832
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 dina 24 active r002 gus 7 closed r003 kim 23 paused r004 alice 5 closed r005 chen 29 closed r006 jules 23 failed r007 alice 27 paused r008 lina 19 ready r009 kim 25 closed r010 kim 17 pending
dina kim chen jules alice lina kim
record_id display_name score state r001 hana 11 closed r002 hana 17 failed r003 farah 12 pending r004 chen 12 failed r005 gus 16 ready r006 alice 3 failed r007 kim 19 active
kim
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035832-p1
Ignoring the header row, print the display_name field for records where the score is strictly 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 dina 24 active r002 gus 7 closed r003 kim 23 paused r004 alice 5 closed r005 chen 29 closed r006 jules 23 failed r007 alice 27 paused r008 lina 19 ready r009 kim 25 closed r010 kim 17 pending
dina kim chen jules alice lina kim
record_id display_name score state r001 hana 11 closed r002 hana 17 failed r003 farah 12 pending r004 chen 12 failed r005 gus 16 ready r006 alice 3 failed r007 kim 19 active
kim
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035832
qwen/qwen3.7-plus
awkweave-0035833
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
bruno 15 failed farah 10 active jules 30 paused gus 6 closed dina 1 active jules 21 pending lina 25 closed lina 10 failed
bruno farah jules gus dina jules lina lina
eli 2 paused jules 20 active dina 11 closed ivan 16 active hana 4 failed farah 1 ready chen 16 paused chen 3 failed
eli jules dina ivan hana farah chen chen
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035833-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
bruno 15 failed farah 10 active jules 30 paused gus 6 closed dina 1 active jules 21 pending lina 25 closed lina 10 failed
bruno farah jules gus dina jules lina lina
eli 2 paused jules 20 active dina 11 closed ivan 16 active hana 4 failed farah 1 ready chen 16 paused chen 3 failed
eli jules dina ivan hana farah chen chen
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0035833
qwen/qwen3.7-plus
awkweave-0035834
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 23.
BEGIN{FS=OFS=","}$2>23{print $1}
eli,8,pending hana,27,active lina,29,pending eli,26,active chen,7,pending jules,24,closed bruno,8,failed kim,29,pending
hana lina eli jules kim
chen,7,closed bruno,20,closed kim,29,failed ivan,22,active farah,30,pending jules,22,paused ivan,12,ready alice,15,ready chen,29,active eli,13,active
kim farah chen
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035834-p1
For simple comma-separated input without quoted commas, print the first column if the second column value is greater than 23.
BEGIN{FS=OFS=","}$2>23{print $1}
eli,8,pending hana,27,active lina,29,pending eli,26,active chen,7,pending jules,24,closed bruno,8,failed kim,29,pending
hana lina eli jules kim
chen,7,closed bruno,20,closed kim,29,failed ivan,22,active farah,30,pending jules,22,paused ivan,12,ready alice,15,ready chen,29,active eli,13,active
kim farah chen
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035834
qwen/qwen3.7-plus
awkweave-0035835
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
eli indigo 5 eli birch 120 farah amber 6 lina grove 116 alice juniper 70 eli birch 6 gus indigo 118 hana delta 15 alice juniper 56
eli indigo 5 eli birch 120 farah amber 6 lina grove 116 alice juniper 70 eli birch 6 gus indigo 118 hana delta 15 alice juniper 56
farah fable 66 alice cobalt 49 bruno birch 64 ivan harbor 1 eli ember 89 eli amber 26 hana amber 54
farah fable 66 alice cobalt 49 bruno birch 64 ivan harbor 1 eli ember 89 eli amber 26 hana amber 54
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035835-p1
Remove leading and trailing whitespace and replace any internal sequences of whitespace with a single space.
{$1=$1;print}
eli indigo 5 eli birch 120 farah amber 6 lina grove 116 alice juniper 70 eli birch 6 gus indigo 118 hana delta 15 alice juniper 56
eli indigo 5 eli birch 120 farah amber 6 lina grove 116 alice juniper 70 eli birch 6 gus indigo 118 hana delta 15 alice juniper 56
farah fable 66 alice cobalt 49 bruno birch 64 ivan harbor 1 eli ember 89 eli amber 26 hana amber 54
farah fable 66 alice cobalt 49 bruno birch 64 ivan harbor 1 eli ember 89 eli amber 26 hana amber 54
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035835
qwen/qwen3.7-plus
awkweave-0035836
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
dina grove 72 ready chen cobalt 101 failed alice birch 61 paused ivan indigo 63 paused chen amber 65 closed kim ember 33 active farah amber 85 closed eli indigo 43 pending dina harbor 60 pending
chen cobalt 101 failed
jules ember 109 failed hana fable 8 ready kim indigo 82 closed ivan harbor 92 pending alice cobalt 95 closed jules amber 116 pending bruno harbor 112 pending
bruno harbor 112 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035836-p1
Output the longest line from the input, selecting the first one encountered if there is a tie in length.
{if(length($0)>length(best))best=$0}END{print best}
dina grove 72 ready chen cobalt 101 failed alice birch 61 paused ivan indigo 63 paused chen amber 65 closed kim ember 33 active farah amber 85 closed eli indigo 43 pending dina harbor 60 pending
chen cobalt 101 failed
jules ember 109 failed hana fable 8 ready kim indigo 82 closed ivan harbor 92 pending alice cobalt 95 closed jules amber 116 pending bruno harbor 112 pending
bruno harbor 112 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035836
qwen/qwen3.7-plus
awkweave-0035837
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
gus 20 jules 76 hana 115 ivan 11 gus 107 kim 97 jules 100 kim 52 farah 101 dina 99
jules 76 ivan 11 kim 97 kim 52 dina 99
lina 13 alice 91 alice 46 jules 10 ivan 38 ivan 4 jules 18 eli 57 dina 22
alice 91 jules 10 ivan 4 eli 57
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035837-p1
Display every second line of the input, beginning with line 2 (i.e., lines 2, 4, 6, etc.).
NR%2==0
gus 20 jules 76 hana 115 ivan 11 gus 107 kim 97 jules 100 kim 52 farah 101 dina 99
jules 76 ivan 11 kim 97 kim 52 dina 99
lina 13 alice 91 alice 46 jules 10 ivan 38 ivan 4 jules 18 eli 57 dina 22
alice 91 jules 10 ivan 4 eli 57
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035837
qwen/qwen3.7-plus
awkweave-0035838
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
gamma amber 56 delta amber 85 beta amber 42 beta harbor 84 beta indigo 44 alpha delta 100 gamma juniper 113 gamma indigo 23 alpha harbor 70 delta indigo 102
5
gamma indigo 101 delta grove 90 beta indigo 13 alpha birch 92 beta harbor 39 alpha fable 111 beta grove 111
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035838-p1
Calculate and print only the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
gamma amber 56 delta amber 85 beta amber 42 beta harbor 84 beta indigo 44 alpha delta 100 gamma juniper 113 gamma indigo 23 alpha harbor 70 delta indigo 102
5
gamma indigo 101 delta grove 90 beta indigo 13 alpha birch 92 beta harbor 39 alpha fable 111 beta grove 111
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035838
qwen/qwen3.7-plus
awkweave-0035839
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}
eli 7 0 chen 7 11 lina 25 18 eli 26 12 jules 7 21 bruno 4 9 lina 24 14
chen 0.64 lina 1.39 eli 2.17 jules 0.33 bruno 0.44 lina 1.71
dina 4 0 alice 30 29 dina 11 21 alice 9 8 gus 10 27 farah 2 26 lina 8 16 dina 10 2 gus 15 21
alice 1.03 dina 0.52 alice 1.12 gus 0.37 farah 0.08 lina 0.50 dina 5.00 gus 0.71
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035839-p1
For each row where the third column is not zero, output the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
eli 7 0 chen 7 11 lina 25 18 eli 26 12 jules 7 21 bruno 4 9 lina 24 14
chen 0.64 lina 1.39 eli 2.17 jules 0.33 bruno 0.44 lina 1.71
dina 4 0 alice 30 29 dina 11 21 alice 9 8 gus 10 27 farah 2 26 lina 8 16 dina 10 2 gus 15 21
alice 1.03 dina 0.52 alice 1.12 gus 0.37 farah 0.08 lina 0.50 dina 5.00 gus 0.71
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035839
qwen/qwen3.7-plus
awkweave-0035840
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 harbor 27 alice delta 5 gus harbor 23 kim ember 6 chen amber 23 gus grove 4 bruno fable 27
kim harbor 27 bruno fable 27 gus harbor 23
kim juniper 16 eli juniper 15 jules indigo 30 gus ember 11 gus birch 17 bruno harbor 7 hana cobalt 6
jules indigo 30 gus birch 17 kim juniper 16
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035840-p1
Output the top 3 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 harbor 27 alice delta 5 gus harbor 23 kim ember 6 chen amber 23 gus grove 4 bruno fable 27
kim harbor 27 bruno fable 27 gus harbor 23
kim juniper 16 eli juniper 15 jules indigo 30 gus ember 11 gus birch 17 bruno harbor 7 hana cobalt 6
jules indigo 30 gus birch 17 kim juniper 16
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035840
qwen/qwen3.7-plus
awkweave-0035841
Print column 3 followed by column 1 for every record.
{print $3, $1}
farah 90 harbor ready 74 farah 47 grove ready 67 chen 107 delta pending 57 farah 92 cobalt paused 37 ivan 77 cobalt failed 83 lina 29 cobalt paused 8 eli 117 harbor closed 35 hana 24 indigo active 93 eli 46 grove paused 117
harbor farah grove farah delta chen cobalt farah cobalt ivan cobalt lina harbor eli indigo hana grove eli
alice 19 amber active 38 jules 116 birch ready 18 kim 65 amber closed 67 bruno 97 juniper failed 88 hana 29 birch active 50 ivan 90 cobalt paused 50 bruno 82 grove pending 90
amber alice birch jules amber kim juniper bruno birch hana cobalt ivan grove bruno
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035841-p1
For every record, print the value from column 3 followed by the value from column 1.
{print $3, $1}
farah 90 harbor ready 74 farah 47 grove ready 67 chen 107 delta pending 57 farah 92 cobalt paused 37 ivan 77 cobalt failed 83 lina 29 cobalt paused 8 eli 117 harbor closed 35 hana 24 indigo active 93 eli 46 grove paused 117
harbor farah grove farah delta chen cobalt farah cobalt ivan cobalt lina harbor eli indigo hana grove eli
alice 19 amber active 38 jules 116 birch ready 18 kim 65 amber closed 67 bruno 97 juniper failed 88 hana 29 birch active 50 ivan 90 cobalt paused 50 bruno 82 grove pending 90
amber alice birch jules amber kim juniper bruno birch hana cobalt ivan grove bruno
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035841
qwen/qwen3.7-plus
awkweave-0035842
Print the last field of every input line.
{print $NF}
24 pending bruno pending 117 alice delta 20 ready hana closed 60 farah delta 8 active ivan closed 31 kim cobalt 90 failed kim active 84 bruno harbor 22 pending gus paused 45 farah indigo 50 failed dina failed 5 kim delta 103 ready alice failed 9 kim harbor 54 failed kim ready 32 dina grove 57 ready alice closed 117 kim...
delta delta cobalt harbor indigo delta harbor grove grove amber
39 pending eli closed 2 gus indigo 35 paused kim pending 33 gus harbor 98 ready bruno closed 54 lina delta 40 pending bruno pending 59 bruno amber 8 ready alice closed 95 lina indigo 103 paused dina ready 84 gus fable
indigo harbor delta amber indigo fable
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035842-p1
Print the final field of each input line.
{print $NF}
24 pending bruno pending 117 alice delta 20 ready hana closed 60 farah delta 8 active ivan closed 31 kim cobalt 90 failed kim active 84 bruno harbor 22 pending gus paused 45 farah indigo 50 failed dina failed 5 kim delta 103 ready alice failed 9 kim harbor 54 failed kim ready 32 dina grove 57 ready alice closed 117 kim...
delta delta cobalt harbor indigo delta harbor grove grove amber
39 pending eli closed 2 gus indigo 35 paused kim pending 33 gus harbor 98 ready bruno closed 54 lina delta 40 pending bruno pending 59 bruno amber 8 ready alice closed 95 lina indigo 103 paused dina ready 84 gus fable
indigo harbor delta amber indigo fable
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035842
qwen/qwen3.7-plus
awkweave-0035843
Print the complete records where column 1 is less than 33.
$1 < 33
15 chen delta paused 108 jules amber failed 3 hana harbor active 12 dina birch active 23 jules juniper pending 48 chen fable closed 89 farah birch paused 88 lina indigo paused
15 chen delta paused 3 hana harbor active 12 dina birch active 23 jules juniper pending
86 alice delta failed 68 hana birch closed 90 hana delta pending 102 kim delta active 56 eli indigo closed 52 dina grove paused 82 hana juniper active 103 ivan indigo paused 29 gus delta paused
29 gus delta paused
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035843-p1
Output the full records for which the value in column 1 is strictly less than 33.
$1 < 33
15 chen delta paused 108 jules amber failed 3 hana harbor active 12 dina birch active 23 jules juniper pending 48 chen fable closed 89 farah birch paused 88 lina indigo paused
15 chen delta paused 3 hana harbor active 12 dina birch active 23 jules juniper pending
86 alice delta failed 68 hana birch closed 90 hana delta pending 102 kim delta active 56 eli indigo closed 52 dina grove paused 82 hana juniper active 103 ivan indigo paused 29 gus delta paused
29 gus delta paused
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035843
qwen/qwen3.7-plus
awkweave-0035844
Show whole lines whose 3rd field is between 11 and 18, inclusive.
$3 >= 11 && $3 <= 18
closed birch 15 jules pending grove 7 ivan failed birch 9 chen active grove 7 alice failed juniper 23 hana paused harbor 8 jules
closed birch 15 jules
closed ember 1 gus closed amber 10 alice ready grove 9 dina paused grove 20 chen closed grove 28 kim failed indigo 17 hana
failed indigo 17 hana
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035844-p1
Display entire lines where the third field has a value between 11 and 18, inclusive.
$3 >= 11 && $3 <= 18
closed birch 15 jules pending grove 7 ivan failed birch 9 chen active grove 7 alice failed juniper 23 hana paused harbor 8 jules
closed birch 15 jules
closed ember 1 gus closed amber 10 alice ready grove 9 dina paused grove 20 chen closed grove 28 kim failed indigo 17 hana
failed indigo 17 hana
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035844
qwen/qwen3.7-plus
awkweave-0035845
Print column 4 only for rows where column 2 is exactly closed.
$2 == "closed"{print $4}
102 closed indigo gus 113 closed cobalt ivan 104 pending harbor kim 8 ready fable alice 111 closed amber kim 61 ready fable chen 21 ready grove gus
gus ivan kim
83 pending delta chen 76 ready amber ivan 90 active harbor dina 66 paused indigo eli 65 ready cobalt gus 99 paused amber hana 41 closed fable jules
jules
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035845-p1
Print only the fourth column for rows where the second column contains exactly the text 'closed'.
$2 == "closed"{print $4}
102 closed indigo gus 113 closed cobalt ivan 104 pending harbor kim 8 ready fable alice 111 closed amber kim 61 ready fable chen 21 ready grove gus
gus ivan kim
83 pending delta chen 76 ready amber ivan 90 active harbor dina 66 paused indigo eli 65 ready cobalt gus 99 paused amber hana 41 closed fable jules
jules
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035845
qwen/qwen3.7-plus
awkweave-0035846
Print all fields from lines where field 2 begins with WARN.
$2 ~ /^WARN/
92 WARN juniper 93 INFO fable 78 INFO fable 119 WARN delta 110 WARN cobalt 48 DEBUG delta 62 DEBUG ember
92 WARN juniper 119 WARN delta 110 WARN cobalt
49 ERROR grove 63 WARN birch 77 WARN grove 76 ERROR amber 112 ERROR juniper 91 ERROR birch 93 ERROR ember 62 DEBUG delta
63 WARN birch 77 WARN grove
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035846-p1
Print all fields from any line where the second field starts with the string 'WARN'.
$2 ~ /^WARN/
92 WARN juniper 93 INFO fable 78 INFO fable 119 WARN delta 110 WARN cobalt 48 DEBUG delta 62 DEBUG ember
92 WARN juniper 119 WARN delta 110 WARN cobalt
49 ERROR grove 63 WARN birch 77 WARN grove 76 ERROR amber 112 ERROR juniper 91 ERROR birch 93 ERROR ember 62 DEBUG delta
63 WARN birch 77 WARN grove
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035846
qwen/qwen3.7-plus
awkweave-0035847
Print every line except those containing the exact text delta.
$0 !~ /delta/
grove 53 active harbor 52 paused amber 97 active ember 44 closed birch 107 ready ember 106 ready delta 999 active
grove 53 active harbor 52 paused amber 97 active ember 44 closed birch 107 ready ember 106 ready
cobalt 68 closed amber 78 closed grove 116 ready cobalt 70 paused birch 28 failed birch 31 paused delta 91 active birch 13 active juniper 95 ready delta 999 active
cobalt 68 closed amber 78 closed grove 116 ready cobalt 70 paused birch 28 failed birch 31 paused birch 13 active juniper 95 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035847-p1
Output every line except those that contain the exact substring 'delta'.
$0 !~ /delta/
grove 53 active harbor 52 paused amber 97 active ember 44 closed birch 107 ready ember 106 ready delta 999 active
grove 53 active harbor 52 paused amber 97 active ember 44 closed birch 107 ready ember 106 ready
cobalt 68 closed amber 78 closed grove 116 ready cobalt 70 paused birch 28 failed birch 31 paused delta 91 active birch 13 active juniper 95 ready delta 999 active
cobalt 68 closed amber 78 closed grove 116 ready cobalt 70 paused birch 28 failed birch 31 paused birch 13 active juniper 95 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035847
qwen/qwen3.7-plus
awkweave-0035848
Print lines 3 through 6, including both endpoints.
NR >= 3 && NR <= 6
alice birch 94 jules cobalt 15 bruno delta 93 ivan cobalt 93 chen indigo 117 ivan ember 70 alice harbor 20 ivan birch 54 dina delta 104
bruno delta 93 ivan cobalt 93 chen indigo 117 ivan ember 70
alice harbor 66 kim cobalt 74 ivan juniper 83 kim delta 81 eli fable 45 ivan fable 11 ivan grove 66
ivan juniper 83 kim delta 81 eli fable 45 ivan fable 11
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035848-p1
Display lines 3 to 6, inclusive.
NR >= 3 && NR <= 6
alice birch 94 jules cobalt 15 bruno delta 93 ivan cobalt 93 chen indigo 117 ivan ember 70 alice harbor 20 ivan birch 54 dina delta 104
bruno delta 93 ivan cobalt 93 chen indigo 117 ivan ember 70
alice harbor 66 kim cobalt 74 ivan juniper 83 kim delta 81 eli fable 45 ivan fable 11 ivan grove 66
ivan juniper 83 kim delta 81 eli fable 45 ivan fable 11
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035848
qwen/qwen3.7-plus
awkweave-0035849
Output only the first 2 records.
NR <= 2
lina 43 ember dina 73 juniper lina 67 grove lina 113 juniper lina 63 harbor dina 116 delta
lina 43 ember dina 73 juniper
eli 82 ember hana 101 grove bruno 85 indigo kim 102 grove gus 108 birch ivan 114 grove jules 4 fable ivan 78 juniper hana 7 juniper
eli 82 ember hana 101 grove
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035849-p1
Output just the initial 2 records.
NR <= 2
lina 43 ember dina 73 juniper lina 67 grove lina 113 juniper lina 63 harbor dina 116 delta
lina 43 ember dina 73 juniper
eli 82 ember hana 101 grove bruno 85 indigo kim 102 grove gus 108 birch ivan 114 grove jules 4 fable ivan 78 juniper hana 7 juniper
eli 82 ember hana 101 grove
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035849
qwen/qwen3.7-plus
awkweave-0035850
Skip the first line and print every remaining line unchanged.
NR > 1
ivan 50 grove farah 53 amber chen 33 ember farah 39 juniper gus 11 birch kim 28 delta bruno 109 cobalt eli 34 cobalt
farah 53 amber chen 33 ember farah 39 juniper gus 11 birch kim 28 delta bruno 109 cobalt eli 34 cobalt
lina 26 delta bruno 24 cobalt chen 10 harbor hana 59 harbor chen 97 ember gus 56 ember dina 70 juniper gus 85 indigo alice 0 birch
bruno 24 cobalt chen 10 harbor hana 59 harbor chen 97 ember gus 56 ember dina 70 juniper gus 85 indigo alice 0 birch
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035850-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
ivan 50 grove farah 53 amber chen 33 ember farah 39 juniper gus 11 birch kim 28 delta bruno 109 cobalt eli 34 cobalt
farah 53 amber chen 33 ember farah 39 juniper gus 11 birch kim 28 delta bruno 109 cobalt eli 34 cobalt
lina 26 delta bruno 24 cobalt chen 10 harbor hana 59 harbor chen 97 ember gus 56 ember dina 70 juniper gus 85 indigo alice 0 birch
bruno 24 cobalt chen 10 harbor hana 59 harbor chen 97 ember gus 56 ember dina 70 juniper gus 85 indigo alice 0 birch
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035850
qwen/qwen3.7-plus
awkweave-0035851
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
farah paused 55 alice closed 51 gus active 109 farah ready 39 hana paused 120 jules active 114 bruno active 44
3
bruno paused 30 lina paused 40 bruno closed 116 eli closed 80 farah failed 26 chen failed 58 eli pending 91 kim paused 29 gus ready 52
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035851-p1
Count records where column 2 is 'active'; output 0 if none match.
$2 == "active"{n++}END{print n+0}
farah paused 55 alice closed 51 gus active 109 farah ready 39 hana paused 120 jules active 114 bruno active 44
3
bruno paused 30 lina paused 40 bruno closed 116 eli closed 80 farah failed 26 chen failed 58 eli pending 91 kim paused 29 gus ready 52
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035851
qwen/qwen3.7-plus
awkweave-0035852
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
ivan 28 amber farah 7 cobalt bruno 30 juniper dina 26 birch eli 28 indigo alice 29 indigo ivan 3 indigo jules 16 harbor bruno 17 cobalt
184
eli 3 ember dina 30 birch kim 21 cobalt chen 30 birch jules 12 grove hana 18 grove ivan 7 grove lina 2 juniper eli 26 fable lina 21 amber
170
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035852-p1
Compute and display the total sum of integer values in column 2.
{s+=$2}END{print s+0}
ivan 28 amber farah 7 cobalt bruno 30 juniper dina 26 birch eli 28 indigo alice 29 indigo ivan 3 indigo jules 16 harbor bruno 17 cobalt
184
eli 3 ember dina 30 birch kim 21 cobalt chen 30 birch jules 12 grove hana 18 grove ivan 7 grove lina 2 juniper eli 26 fable lina 21 amber
170
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035852
qwen/qwen3.7-plus
awkweave-0035853
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
13 grove ivan 9 juniper eli 1 indigo bruno 15 grove kim 30 grove bruno 28 cobalt jules 9 cobalt hana 4 delta gus 3 delta gus 14 amber dina
12.60
28 juniper chen 21 birch jules 26 amber eli 27 delta lina 22 ember lina 24 cobalt bruno 13 ember kim 8 ember chen
21.12
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035853-p1
Print the average of column 1, formatted to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
13 grove ivan 9 juniper eli 1 indigo bruno 15 grove kim 30 grove bruno 28 cobalt jules 9 cobalt hana 4 delta gus 3 delta gus 14 amber dina
12.60
28 juniper chen 21 birch jules 26 amber eli 27 delta lina 22 ember lina 24 cobalt bruno 13 ember kim 8 ember chen
21.12
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035853
qwen/qwen3.7-plus
awkweave-0035854
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
amber chen 2 ember ivan 20 birch dina 19 harbor gus 10 amber hana 21 amber bruno 26 birch dina 13 ember eli 12 delta hana 20
2
amber farah 8 birch kim 18 indigo jules 15 indigo chen 9 cobalt gus 8 harbor farah 16
8
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035854-p1
Identify and output the minimum numeric value found in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
amber chen 2 ember ivan 20 birch dina 19 harbor gus 10 amber hana 21 amber bruno 26 birch dina 13 ember eli 12 delta hana 20
2
amber farah 8 birch kim 18 indigo jules 15 indigo chen 9 cobalt gus 8 harbor farah 16
8
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035854
qwen/qwen3.7-plus
awkweave-0035855
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
lina 9 amber gus 12 amber kim 11 ember alice 23 grove farah 20 cobalt ivan 19 juniper farah 19 birch eli 13 juniper
23
alice 2 amber dina 18 delta alice 18 grove lina 16 cobalt chen 21 delta gus 30 delta gus 2 birch kim 2 birch dina 4 ember kim 13 indigo
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035855-p1
Identify and output the maximum numeric value found in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
lina 9 amber gus 12 amber kim 11 ember alice 23 grove farah 20 cobalt ivan 19 juniper farah 19 birch eli 13 juniper
23
alice 2 amber dina 18 delta alice 18 grove lina 16 cobalt chen 21 delta gus 30 delta gus 2 birch kim 2 birch dina 4 ember kim 13 indigo
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035855
qwen/qwen3.7-plus
awkweave-0035856
Count all input records and print the total.
END{print NR}
jules 33 eli 70 ivan 103 alice 42 eli 54 lina 87 bruno 74
7
ivan 24 eli 0 kim 119 eli 34 ivan 54 chen 43 hana 66 farah 72
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035856-p1
Count the total number of input records and print the result.
END{print NR}
jules 33 eli 70 ivan 103 alice 42 eli 54 lina 87 bruno 74
7
ivan 24 eli 0 kim 119 eli 34 ivan 54 chen 43 hana 66 farah 72
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035856
qwen/qwen3.7-plus
awkweave-0035857
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
bruno amber 92 jules fable 23 dina birch 104 bruno cobalt 93 dina juniper 120 lina harbor 86 bruno cobalt 93
bruno amber 92 jules fable 23 dina birch 104 bruno cobalt 93 dina juniper 120 lina harbor 86
alice grove 70 bruno juniper 73 eli indigo 89 alice grove 70 dina harbor 30 farah juniper 61 lina harbor 19
alice grove 70 bruno juniper 73 eli indigo 89 dina harbor 30 farah juniper 61 lina harbor 19
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035857-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining original order.
!seen[$0]++
bruno amber 92 jules fable 23 dina birch 104 bruno cobalt 93 dina juniper 120 lina harbor 86 bruno cobalt 93
bruno amber 92 jules fable 23 dina birch 104 bruno cobalt 93 dina juniper 120 lina harbor 86
alice grove 70 bruno juniper 73 eli indigo 89 alice grove 70 dina harbor 30 farah juniper 61 lina harbor 19
alice grove 70 bruno juniper 73 eli indigo 89 dina harbor 30 farah juniper 61 lina harbor 19
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035857
qwen/qwen3.7-plus
awkweave-0035858
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
alice grove 110 lina cobalt 29 gus juniper 77 jules indigo 48 kim juniper 118 hana harbor 8 dina juniper 23
alice grove 110 lina cobalt 29 gus juniper 77 jules indigo 48 hana harbor 8
farah birch 118 chen fable 35 jules ember 4 gus grove 2 bruno fable 98 bruno birch 8 kim cobalt 41 jules ember 17
farah birch 118 chen fable 35 jules ember 4 gus grove 2 kim cobalt 41
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035858-p1
Retain only the first occurrence for each unique value in column 2, preserving input order.
!seen[$2]++
alice grove 110 lina cobalt 29 gus juniper 77 jules indigo 48 kim juniper 118 hana harbor 8 dina juniper 23
alice grove 110 lina cobalt 29 gus juniper 77 jules indigo 48 hana harbor 8
farah birch 118 chen fable 35 jules ember 4 gus grove 2 bruno fable 98 bruno birch 8 kim cobalt 41 jules ember 17
farah birch 118 chen fable 35 jules ember 4 gus grove 2 kim cobalt 41
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035858
qwen/qwen3.7-plus
awkweave-0035859
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
jules 29 fable ivan 29 ember gus 8 birch gus 28 amber hana 19 birch jules 14 cobalt kim 24 delta alice 25 ember
jules 29 ivan 58 gus 66 gus 94 hana 113 jules 127 kim 151 alice 176
farah 14 juniper ivan 11 grove farah 7 grove bruno 16 harbor bruno 17 delta bruno 21 grove alice 26 juniper gus 17 cobalt dina 4 ember hana 22 harbor
farah 14 ivan 25 farah 32 bruno 48 bruno 65 bruno 86 alice 112 gus 129 dina 133 hana 155
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035859-p1
For every record, output column 1 followed by the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
jules 29 fable ivan 29 ember gus 8 birch gus 28 amber hana 19 birch jules 14 cobalt kim 24 delta alice 25 ember
jules 29 ivan 58 gus 66 gus 94 hana 113 jules 127 kim 151 alice 176
farah 14 juniper ivan 11 grove farah 7 grove bruno 16 harbor bruno 17 delta bruno 21 grove alice 26 juniper gus 17 cobalt dina 4 ember hana 22 harbor
farah 14 ivan 25 farah 32 bruno 48 bruno 65 bruno 86 alice 112 gus 129 dina 133 hana 155
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035859
qwen/qwen3.7-plus
awkweave-0035860
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 30 21 delta eli 20 8 birch alice 30 6 amber chen 8 4 harbor bruno 14 8 birch eli 10 4 delta kim 1 29 juniper gus 23 5 ember gus 16 19 indigo eli 12 24 delta
bruno 51 eli 28 alice 36 chen 12 bruno 22 eli 14 kim 30 gus 28 gus 35 eli 36
chen 15 9 harbor eli 8 10 amber kim 1 15 ember ivan 8 27 indigo jules 12 3 indigo bruno 19 23 delta farah 23 20 cobalt chen 8 5 juniper
chen 24 eli 18 kim 16 ivan 35 jules 15 bruno 42 farah 43 chen 13
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035860-p1
Output the first field and the total of the second and third fields for each line.
{print $1,$2+$3}
bruno 30 21 delta eli 20 8 birch alice 30 6 amber chen 8 4 harbor bruno 14 8 birch eli 10 4 delta kim 1 29 juniper gus 23 5 ember gus 16 19 indigo eli 12 24 delta
bruno 51 eli 28 alice 36 chen 12 bruno 22 eli 14 kim 30 gus 28 gus 35 eli 36
chen 15 9 harbor eli 8 10 amber kim 1 15 ember ivan 8 27 indigo jules 12 3 indigo bruno 19 23 delta farah 23 20 cobalt chen 8 5 juniper
chen 24 eli 18 kim 16 ivan 35 jules 15 bruno 42 farah 43 chen 13
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035860
qwen/qwen3.7-plus
awkweave-0035861
Print column 1 and pass when column 2 is at least 26; otherwise print fail.
{print $1,($2>=26?"pass":"fail")}
dina 18 alice 24 gus 12 chen 23 gus 13 lina 27 bruno 16
dina fail alice fail gus fail chen fail gus fail lina pass bruno fail
eli 22 alice 6 jules 16 chen 4 chen 25 alice 12
eli fail alice fail jules fail chen fail chen fail alice fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035861-p1
Display the first column; if the second column is 26 or higher, output 'pass', else output 'fail'.
{print $1,($2>=26?"pass":"fail")}
dina 18 alice 24 gus 12 chen 23 gus 13 lina 27 bruno 16
dina fail alice fail gus fail chen fail gus fail lina pass bruno fail
eli 22 alice 6 jules 16 chen 4 chen 25 alice 12
eli fail alice fail jules fail chen fail chen fail alice fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035861
qwen/qwen3.7-plus
awkweave-0035862
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
hana fable 83 lina cobalt 109 dina juniper 17 bruno amber 75 alice harbor 22 ivan indigo 94 farah ember 3 kim harbor 13
HANA LINA DINA BRUNO ALICE IVAN FARAH KIM
chen amber 52 dina amber 68 bruno delta 8 farah juniper 56 farah grove 97 ivan harbor 99 kim cobalt 95 gus fable 97 ivan fable 100
CHEN DINA BRUNO FARAH FARAH IVAN KIM GUS IVAN
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035862-p1
Transform the first column to uppercase and output only that column.
{print toupper($1)}
hana fable 83 lina cobalt 109 dina juniper 17 bruno amber 75 alice harbor 22 ivan indigo 94 farah ember 3 kim harbor 13
HANA LINA DINA BRUNO ALICE IVAN FARAH KIM
chen amber 52 dina amber 68 bruno delta 8 farah juniper 56 farah grove 97 ivan harbor 99 kim cobalt 95 gus fable 97 ivan fable 100
CHEN DINA BRUNO FARAH FARAH IVAN KIM GUS IVAN
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035862
qwen/qwen3.7-plus
awkweave-0035863
From column 1, print 3 characters starting at character 3.
{print substr($1,3,3)}
cobalt 11 delta 12 delta 67 fable 120 grove 34 birch 18 birch 69 ember 19
bal lta lta ble ove rch rch ber
juniper 32 juniper 117 ember 20 juniper 13 juniper 72 cobalt 81 ember 91 harbor 61 indigo 27 cobalt 111
nip nip ber nip nip bal ber rbo dig bal
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035863-p1
Extract and print a 3-character substring from the first column, starting at position 3.
{print substr($1,3,3)}
cobalt 11 delta 12 delta 67 fable 120 grove 34 birch 18 birch 69 ember 19
bal lta lta ble ove rch rch ber
juniper 32 juniper 117 ember 20 juniper 13 juniper 72 cobalt 81 ember 91 harbor 61 indigo 27 cobalt 111
nip nip ber nip nip bal ber rbo dig bal
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035863
qwen/qwen3.7-plus
awkweave-0035864
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
indigo_amber 27 grove_indigo 16 delta_harbor 97 indigo_birch 99 birch_fable 16 ember_juniper 1 cobalt_birch 93 delta_delta 35 juniper_fable 118
indigo amber grove indigo delta harbor indigo birch birch fable ember juniper cobalt birch delta delta juniper fable
birch_juniper 109 cobalt_grove 22 fable_birch 77 cobalt_harbor 38 fable_delta 72 delta_indigo 57 grove_birch 92
birch juniper cobalt grove fable birch cobalt harbor fable delta delta indigo grove birch
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035864-p1
Substitute all underscores with spaces in the first column and print the results.
{gsub(/_/," ",$1);print $1}
indigo_amber 27 grove_indigo 16 delta_harbor 97 indigo_birch 99 birch_fable 16 ember_juniper 1 cobalt_birch 93 delta_delta 35 juniper_fable 118
indigo amber grove indigo delta harbor indigo birch birch fable ember juniper cobalt birch delta delta juniper fable
birch_juniper 109 cobalt_grove 22 fable_birch 77 cobalt_harbor 38 fable_delta 72 delta_indigo 57 grove_birch 92
birch juniper cobalt grove fable birch cobalt harbor fable delta delta indigo grove birch
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035864
qwen/qwen3.7-plus
awkweave-0035865
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)}
hana cobalt 82 pending lina grove 62 active ivan indigo 82 ready kim birch 99 ready hana fable 12 pending ivan delta 5 failed ivan indigo 12 pending bruno juniper 38 ready kim amber 104 failed chen amber 105 active
pending 82 cobalt hana active 62 grove lina ready 82 indigo ivan ready 99 birch kim pending 12 fable hana failed 5 delta ivan pending 12 indigo ivan ready 38 juniper bruno failed 104 amber kim active 105 amber chen
bruno juniper 13 active eli juniper 84 closed ivan cobalt 107 pending lina cobalt 62 paused chen harbor 52 paused farah ember 66 closed hana grove 107 pending
active 13 juniper bruno closed 84 juniper eli pending 107 cobalt ivan paused 62 cobalt lina paused 52 harbor chen closed 66 ember farah pending 107 grove hana
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035865-p1
Reverse the sequence of fields in each line and print every field.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
hana cobalt 82 pending lina grove 62 active ivan indigo 82 ready kim birch 99 ready hana fable 12 pending ivan delta 5 failed ivan indigo 12 pending bruno juniper 38 ready kim amber 104 failed chen amber 105 active
pending 82 cobalt hana active 62 grove lina ready 82 indigo ivan ready 99 birch kim pending 12 fable hana failed 5 delta ivan pending 12 indigo ivan ready 38 juniper bruno failed 104 amber kim active 105 amber chen
bruno juniper 13 active eli juniper 84 closed ivan cobalt 107 pending lina cobalt 62 paused chen harbor 52 paused farah ember 66 closed hana grove 107 pending
active 13 juniper bruno closed 84 juniper eli pending 107 cobalt ivan paused 62 cobalt lina paused 52 harbor chen closed 66 ember farah pending 107 grove hana
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035865
qwen/qwen3.7-plus
awkweave-0035866
Print the number of whitespace-separated fields on each line.
{print NF}
kim fable 41 ready farah fable 80 pending kim ember 87 failed chen birch 93 closed eli juniper 19 failed hana harbor 64 failed jules delta 59 active alice ember 36 pending dina grove 80 paused hana grove 93 pending
4 4 4 4 4 4 4 4 4 4
hana amber 95 closed jules ember 90 pending hana fable 14 failed chen delta 92 failed lina delta 52 closed chen harbor 75 paused jules cobalt 63 paused hana juniper 83 ready eli fable 41 paused alice juniper 15 closed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035866-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
kim fable 41 ready farah fable 80 pending kim ember 87 failed chen birch 93 closed eli juniper 19 failed hana harbor 64 failed jules delta 59 active alice ember 36 pending dina grove 80 paused hana grove 93 pending
4 4 4 4 4 4 4 4 4 4
hana amber 95 closed jules ember 90 pending hana fable 14 failed chen delta 92 failed lina delta 52 closed chen harbor 75 paused jules cobalt 63 paused hana juniper 83 ready eli fable 41 paused alice juniper 15 closed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035866
qwen/qwen3.7-plus
awkweave-0035867
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]]}
farah beta 76 gus beta 81 lina gamma 12 eli alpha 59 jules beta 90 alice delta 120
beta 3 gamma 1 alpha 1 delta 1
dina delta 102 bruno gamma 69 jules beta 78 chen gamma 34 jules gamma 61 lina gamma 94 kim beta 4
delta 1 gamma 4 beta 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035867-p1
Tally records by the value in the second column, printing each value and its count 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]]}
farah beta 76 gus beta 81 lina gamma 12 eli alpha 59 jules beta 90 alice delta 120
beta 3 gamma 1 alpha 1 delta 1
dina delta 102 bruno gamma 69 jules beta 78 chen gamma 34 jules gamma 61 lina gamma 94 kim beta 4
delta 1 gamma 4 beta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035867
qwen/qwen3.7-plus
awkweave-0035868
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]]}
dina delta 3 ivan delta 8 alice alpha 8 farah beta 28 dina alpha 3 jules gamma 27 alice alpha 8 alice alpha 29 ivan gamma 7 gus gamma 23
delta 11 alpha 48 beta 28 gamma 57
dina beta 2 ivan delta 16 lina alpha 24 kim gamma 13 farah gamma 16 lina beta 27 ivan beta 21 farah alpha 5 chen alpha 16 alice delta 13
beta 50 delta 29 alpha 45 gamma 29
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035868-p1
Calculate the sum of the third column for each group in the second column, displaying groups by 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]]}
dina delta 3 ivan delta 8 alice alpha 8 farah beta 28 dina alpha 3 jules gamma 27 alice alpha 8 alice alpha 29 ivan gamma 7 gus gamma 23
delta 11 alpha 48 beta 28 gamma 57
dina beta 2 ivan delta 16 lina alpha 24 kim gamma 13 farah gamma 16 lina beta 27 ivan beta 21 farah alpha 5 chen alpha 16 alice delta 13
beta 50 delta 29 alpha 45 gamma 29
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035868
qwen/qwen3.7-plus
awkweave-0035869
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 26 gamma indigo 111 delta delta 20 gamma harbor 57 delta amber 84 alpha ember 110
gamma 2 delta 2
beta juniper 32 beta delta 36 gamma cobalt 118 delta ember 35 beta amber 51 alpha juniper 29
beta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035869-p1
List each duplicate value from the first column along with its frequency, ordered by first occurrence.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta delta 26 gamma indigo 111 delta delta 20 gamma harbor 57 delta amber 84 alpha ember 110
gamma 2 delta 2
beta juniper 32 beta delta 36 gamma cobalt 118 delta ember 35 beta amber 51 alpha juniper 29
beta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035869
qwen/qwen3.7-plus
awkweave-0035870
The first row is a header. Print the note column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
region score note record_id r001 farah 20 closed r002 bruno 8 paused r003 hana 18 active r004 jules 18 active r005 gus 30 ready r006 farah 6 closed
20 8 18 18 30 6
region score note record_id r001 eli 6 closed r002 alice 26 pending r003 gus 4 failed r004 bruno 28 paused r005 bruno 4 failed r006 bruno 26 failed
6 26 4 28 4 26
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035870-p1
Skip the header row and print the 'note' column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
region score note record_id r001 farah 20 closed r002 bruno 8 paused r003 hana 18 active r004 jules 18 active r005 gus 30 ready r006 farah 6 closed
20 8 18 18 30 6
region score note record_id r001 eli 6 closed r002 alice 26 pending r003 gus 4 failed r004 bruno 28 paused r005 bruno 4 failed r006 bruno 26 failed
6 26 4 28 4 26
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035870
qwen/qwen3.7-plus
awkweave-0035871
The first row is a header. Print display_name for data rows whose score is greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 eli 29 ready r002 lina 6 active r003 jules 22 active r004 kim 19 ready r005 bruno 4 paused r006 bruno 12 paused r007 lina 18 active r008 alice 9 paused r009 hana 15 failed r010 alice 27 failed
eli jules kim lina alice
record_id display_name score state r001 dina 1 failed r002 chen 8 pending r003 farah 22 closed r004 farah 19 closed r005 eli 8 ready r006 kim 27 pending r007 chen 22 failed r008 dina 2 active r009 kim 1 closed
farah farah kim chen
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035871-p1
Ignore the header row and print the 'display_name' column for rows where 'score' exceeds 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 eli 29 ready r002 lina 6 active r003 jules 22 active r004 kim 19 ready r005 bruno 4 paused r006 bruno 12 paused r007 lina 18 active r008 alice 9 paused r009 hana 15 failed r010 alice 27 failed
eli jules kim lina alice
record_id display_name score state r001 dina 1 failed r002 chen 8 pending r003 farah 22 closed r004 farah 19 closed r005 eli 8 ready r006 kim 27 pending r007 chen 22 failed r008 dina 2 active r009 kim 1 closed
farah farah kim chen
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035871
qwen/qwen3.7-plus
awkweave-0035872
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
bruno 2 failed hana 3 active dina 5 pending lina 6 closed lina 21 active chen 22 failed alice 2 closed kim 20 closed
2 3 5 6 21 22 2 20
alice 11 closed lina 6 failed kim 20 paused bruno 19 paused farah 29 active dina 5 paused bruno 8 ready alice 10 ready
11 6 20 19 29 5 8 10
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035872-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
bruno 2 failed hana 3 active dina 5 pending lina 6 closed lina 21 active chen 22 failed alice 2 closed kim 20 closed
2 3 5 6 21 22 2 20
alice 11 closed lina 6 failed kim 20 paused bruno 19 paused farah 29 active dina 5 paused bruno 8 ready alice 10 ready
11 6 20 19 29 5 8 10
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0035872
qwen/qwen3.7-plus
awkweave-0035873
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 16.
BEGIN{FS=OFS=","}$2>16{print $1}
gus,23,active ivan,24,active bruno,2,closed gus,11,paused gus,24,ready alice,4,paused farah,6,closed
gus ivan gus
kim,2,ready lina,14,failed dina,3,closed kim,11,closed hana,18,failed alice,2,ready kim,24,closed
hana kim
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035873-p1
Output the first field of comma-separated records where the second field is strictly greater than 16.
BEGIN{FS=OFS=","}$2>16{print $1}
gus,23,active ivan,24,active bruno,2,closed gus,11,paused gus,24,ready alice,4,paused farah,6,closed
gus ivan gus
kim,2,ready lina,14,failed dina,3,closed kim,11,closed hana,18,failed alice,2,ready kim,24,closed
hana kim
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035873
qwen/qwen3.7-plus
awkweave-0035874
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina birch 73 eli harbor 60 chen fable 65 bruno harbor 64 bruno juniper 44 eli amber 18 bruno amber 22 gus ember 92 bruno harbor 99 hana ember 56
lina birch 73 eli harbor 60 chen fable 65 bruno harbor 64 bruno juniper 44 eli amber 18 bruno amber 22 gus ember 92 bruno harbor 99 hana ember 56
alice birch 53 jules amber 4 kim grove 56 lina amber 38 farah juniper 70 lina indigo 28 farah ember 65 bruno harbor 98 bruno ember 15
alice birch 53 jules amber 4 kim grove 56 lina amber 38 farah juniper 70 lina indigo 28 farah ember 65 bruno harbor 98 bruno ember 15
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035874-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
lina birch 73 eli harbor 60 chen fable 65 bruno harbor 64 bruno juniper 44 eli amber 18 bruno amber 22 gus ember 92 bruno harbor 99 hana ember 56
lina birch 73 eli harbor 60 chen fable 65 bruno harbor 64 bruno juniper 44 eli amber 18 bruno amber 22 gus ember 92 bruno harbor 99 hana ember 56
alice birch 53 jules amber 4 kim grove 56 lina amber 38 farah juniper 70 lina indigo 28 farah ember 65 bruno harbor 98 bruno ember 15
alice birch 53 jules amber 4 kim grove 56 lina amber 38 farah juniper 70 lina indigo 28 farah ember 65 bruno harbor 98 bruno ember 15
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035874
qwen/qwen3.7-plus
awkweave-0035875
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
chen ember 26 active ivan harbor 3 ready chen juniper 21 failed gus grove 99 failed bruno grove 117 closed alice juniper 120 active gus grove 24 active
alice juniper 120 active
gus ember 55 pending kim cobalt 83 active alice fable 92 pending bruno birch 44 active hana ember 16 closed eli fable 19 failed chen delta 45 ready
alice fable 92 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035875-p1
Identify and print the longest line from the input; if multiple lines share the maximum length, select the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
chen ember 26 active ivan harbor 3 ready chen juniper 21 failed gus grove 99 failed bruno grove 117 closed alice juniper 120 active gus grove 24 active
alice juniper 120 active
gus ember 55 pending kim cobalt 83 active alice fable 92 pending bruno birch 44 active hana ember 16 closed eli fable 19 failed chen delta 45 ready
alice fable 92 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035875
qwen/qwen3.7-plus
awkweave-0035876
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
gus 85 bruno 85 ivan 55 chen 19 eli 72 eli 83 eli 97 dina 77
bruno 85 chen 19 eli 83 dina 77
lina 83 hana 2 hana 69 ivan 22 alice 72 jules 48 hana 108 gus 49
hana 2 ivan 22 jules 48 gus 49
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035876-p1
Print every even-numbered line, starting with line 2 (i.e., lines 2, 4, 6, ...).
NR%2==0
gus 85 bruno 85 ivan 55 chen 19 eli 72 eli 83 eli 97 dina 77
bruno 85 chen 19 eli 83 dina 77
lina 83 hana 2 hana 69 ivan 22 alice 72 jules 48 hana 108 gus 49
hana 2 ivan 22 jules 48 gus 49
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035876
qwen/qwen3.7-plus
awkweave-0035877
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta harbor 70 beta juniper 77 beta harbor 86 gamma indigo 105 delta juniper 4 beta juniper 60 alpha birch 10 alpha grove 58 beta grove 10
5
gamma grove 67 alpha birch 5 gamma cobalt 17 beta harbor 49 beta harbor 25 beta ember 32 delta harbor 97 beta fable 30 beta ember 40 alpha indigo 5
7
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035877-p1
Calculate and output only the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
beta harbor 70 beta juniper 77 beta harbor 86 gamma indigo 105 delta juniper 4 beta juniper 60 alpha birch 10 alpha grove 58 beta grove 10
5
gamma grove 67 alpha birch 5 gamma cobalt 17 beta harbor 49 beta harbor 25 beta ember 32 delta harbor 97 beta fable 30 beta ember 40 alpha indigo 5
7
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035877
qwen/qwen3.7-plus
awkweave-0035878
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 5 0 kim 28 22 hana 16 26 farah 21 30 jules 5 16 lina 5 25 gus 23 2 kim 15 10
kim 1.27 hana 0.62 farah 0.70 jules 0.31 lina 0.20 gus 11.50 kim 1.50
lina 1 0 alice 26 16 alice 11 13 jules 8 25 hana 30 28 gus 30 3 gus 15 26 dina 26 19 chen 20 27
alice 1.62 alice 0.85 jules 0.32 hana 1.07 gus 10.00 gus 0.58 dina 1.37 chen 0.74
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035878-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}
gus 5 0 kim 28 22 hana 16 26 farah 21 30 jules 5 16 lina 5 25 gus 23 2 kim 15 10
kim 1.27 hana 0.62 farah 0.70 jules 0.31 lina 0.20 gus 11.50 kim 1.50
lina 1 0 alice 26 16 alice 11 13 jules 8 25 hana 30 28 gus 30 3 gus 15 26 dina 26 19 chen 20 27
alice 1.62 alice 0.85 jules 0.32 hana 1.07 gus 10.00 gus 0.58 dina 1.37 chen 0.74
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035878
qwen/qwen3.7-plus
awkweave-0035879
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]}
alice fable 28 jules cobalt 23 bruno juniper 21 kim birch 20 dina grove 12 alice harbor 22
alice fable 28 jules cobalt 23 alice harbor 22
jules grove 11 alice amber 11 hana fable 27 farah fable 17 chen amber 20 bruno ember 23 ivan indigo 6 kim cobalt 5 dina grove 26 kim indigo 19
hana fable 27 dina grove 26 bruno ember 23
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035879-p1
Display the top 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]}
alice fable 28 jules cobalt 23 bruno juniper 21 kim birch 20 dina grove 12 alice harbor 22
alice fable 28 jules cobalt 23 alice harbor 22
jules grove 11 alice amber 11 hana fable 27 farah fable 17 chen amber 20 bruno ember 23 ivan indigo 6 kim cobalt 5 dina grove 26 kim indigo 19
hana fable 27 dina grove 26 bruno ember 23
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035879
qwen/qwen3.7-plus
awkweave-0035880
For each line, output fields 2 and 1, in that order.
{print $2, $1}
chen paused 29 pending 13 bruno alice paused 15 pending 13 ivan kim pending 86 paused 74 gus bruno failed 75 active 101 dina jules paused 1 closed 1 farah farah paused 4 active 75 lina hana active 39 closed 73 dina
paused chen paused alice pending kim failed bruno paused jules paused farah active hana
ivan pending 0 ready 57 chen dina closed 120 active 1 eli alice closed 95 active 82 bruno alice paused 79 ready 78 ivan alice closed 66 failed 105 lina eli ready 16 paused 31 farah gus closed 120 failed 47 lina farah pending 11 pending 73 jules eli active 71 active 83 dina
pending ivan closed dina closed alice paused alice closed alice ready eli closed gus pending farah active eli
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0035880-p1
Output the second and first fields of each line, swapping their original order.
{print $2, $1}
chen paused 29 pending 13 bruno alice paused 15 pending 13 ivan kim pending 86 paused 74 gus bruno failed 75 active 101 dina jules paused 1 closed 1 farah farah paused 4 active 75 lina hana active 39 closed 73 dina
paused chen paused alice pending kim failed bruno paused jules paused farah active hana
ivan pending 0 ready 57 chen dina closed 120 active 1 eli alice closed 95 active 82 bruno alice paused 79 ready 78 ivan alice closed 66 failed 105 lina eli ready 16 paused 31 farah gus closed 120 failed 47 lina farah pending 11 pending 73 jules eli active 71 active 83 dina
pending ivan closed dina closed alice paused alice closed alice ready eli closed gus pending farah active eli
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0035880
qwen/qwen3.7-plus
awkweave-0035881
Print the last field of every input line.
{print $NF}
59 gus chen failed 74 ivan kim closed 72 ivan ivan ready 68 jules gus pending 78 eli farah closed 21 hana alice closed 14 ivan kim paused 50 dina ivan paused 77 alice hana closed 100 alice farah active
failed closed ready pending closed closed paused paused closed active
69 hana dina pending 90 farah dina ready 109 gus kim paused 92 kim alice closed 41 eli gus paused 80 farah jules closed 45 gus hana failed 97 ivan jules failed
pending ready paused closed paused closed failed failed
last_field
1
train
original-grammar
CC-BY-4.0
null
null