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-0042111-p1
Ignoring the header, print the display_name field for any row where the score is strictly greater than 24.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>24{print $h["display_name"]}
record_id display_name score state r001 kim 28 active r002 chen 18 failed r003 dina 17 paused r004 lina 9 paused r005 farah 4 active r006 farah 22 active r007 chen 23 ready r008 gus 21 ready r009 alice 13 failed
kim
record_id display_name score state r001 chen 6 pending r002 lina 27 active r003 farah 24 active r004 eli 30 failed r005 alice 14 failed r006 ivan 3 active r007 ivan 10 active r008 jules 25 pending r009 jules 1 paused r010 ivan 26 closed
lina eli jules ivan
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042111
qwen/qwen3.7-plus
awkweave-0042112
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
farah 14 paused chen 10 failed jules 21 paused hana 25 pending chen 20 closed chen 5 active bruno 14 active farah 24 ready farah 22 failed hana 14 active
paused failed paused pending closed active active ready failed active
kim 29 active ivan 7 closed kim 30 ready jules 24 failed farah 12 failed chen 2 active gus 10 pending dina 14 failed
active closed ready failed failed active pending failed
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042112-p1
Extract and print the third field from each tab-separated record.
BEGIN{FS=OFS="\t"}{print $3}
farah 14 paused chen 10 failed jules 21 paused hana 25 pending chen 20 closed chen 5 active bruno 14 active farah 24 ready farah 22 failed hana 14 active
paused failed paused pending closed active active ready failed active
kim 29 active ivan 7 closed kim 30 ready jules 24 failed farah 12 failed chen 2 active gus 10 pending dina 14 failed
active closed ready failed failed active pending failed
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042112
qwen/qwen3.7-plus
awkweave-0042113
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}
kim,7,paused dina,30,failed chen,2,failed ivan,4,closed lina,26,ready alice,27,ready farah,26,paused lina,27,pending jules,30,ready
dina lina alice farah lina jules
kim,6,pending ivan,3,paused chen,14,closed gus,12,pending dina,13,paused ivan,23,failed
ivan
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042113-p1
For comma-separated input without quoted commas, output the first field if the second field is greater than 16.
BEGIN{FS=OFS=","}$2>16{print $1}
kim,7,paused dina,30,failed chen,2,failed ivan,4,closed lina,26,ready alice,27,ready farah,26,paused lina,27,pending jules,30,ready
dina lina alice farah lina jules
kim,6,pending ivan,3,paused chen,14,closed gus,12,pending dina,13,paused ivan,23,failed
ivan
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042113
qwen/qwen3.7-plus
awkweave-0042114
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
farah cobalt 70 kim birch 104 jules grove 90 hana harbor 93 chen grove 42 kim amber 56 hana birch 38 kim juniper 13 gus delta 29 dina amber 85
farah cobalt 70 kim birch 104 jules grove 90 hana harbor 93 chen grove 42 kim amber 56 hana birch 38 kim juniper 13 gus delta 29 dina amber 85
farah indigo 28 bruno birch 90 chen juniper 20 bruno cobalt 9 gus grove 100 eli delta 9
farah indigo 28 bruno birch 90 chen juniper 20 bruno cobalt 9 gus grove 100 eli delta 9
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042114-p1
Remove leading and trailing spaces and replace sequences of internal whitespace with a single space.
{$1=$1;print}
farah cobalt 70 kim birch 104 jules grove 90 hana harbor 93 chen grove 42 kim amber 56 hana birch 38 kim juniper 13 gus delta 29 dina amber 85
farah cobalt 70 kim birch 104 jules grove 90 hana harbor 93 chen grove 42 kim amber 56 hana birch 38 kim juniper 13 gus delta 29 dina amber 85
farah indigo 28 bruno birch 90 chen juniper 20 bruno cobalt 9 gus grove 100 eli delta 9
farah indigo 28 bruno birch 90 chen juniper 20 bruno cobalt 9 gus grove 100 eli delta 9
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042114
qwen/qwen3.7-plus
awkweave-0042115
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
bruno indigo 1 failed kim ember 24 ready alice birch 14 pending ivan juniper 9 active lina fable 51 failed chen amber 106 pending dina juniper 3 closed
alice birch 14 pending
hana juniper 94 pending farah cobalt 23 active bruno delta 34 ready kim cobalt 16 pending dina indigo 39 paused ivan indigo 37 paused eli harbor 93 pending ivan harbor 113 active bruno fable 61 closed hana ember 36 active
hana juniper 94 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042115-p1
Identify and print the longest line from the input; if multiple lines share the maximum length, select the first one.
{if(length($0)>length(best))best=$0}END{print best}
bruno indigo 1 failed kim ember 24 ready alice birch 14 pending ivan juniper 9 active lina fable 51 failed chen amber 106 pending dina juniper 3 closed
alice birch 14 pending
hana juniper 94 pending farah cobalt 23 active bruno delta 34 ready kim cobalt 16 pending dina indigo 39 paused ivan indigo 37 paused eli harbor 93 pending ivan harbor 113 active bruno fable 61 closed hana ember 36 active
hana juniper 94 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042115
qwen/qwen3.7-plus
awkweave-0042116
Print every 3rd line starting at line 1 (then line 4, and so on).
NR%3==1
bruno 88 dina 78 gus 10 jules 82 jules 110 gus 75 hana 106 farah 112 farah 99 dina 91
bruno 88 jules 82 hana 106 dina 91
dina 106 bruno 80 lina 41 jules 79 bruno 16 eli 42 eli 31 farah 56
dina 106 jules 79 eli 31
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042116-p1
Print lines 1, 4, 7, and so on (every third line starting from the first).
NR%3==1
bruno 88 dina 78 gus 10 jules 82 jules 110 gus 75 hana 106 farah 112 farah 99 dina 91
bruno 88 jules 82 hana 106 dina 91
dina 106 bruno 80 lina 41 jules 79 bruno 16 eli 42 eli 31 farah 56
dina 106 jules 79 eli 31
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042116
qwen/qwen3.7-plus
awkweave-0042117
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
gamma harbor 46 beta indigo 25 alpha grove 8 delta grove 20 beta ember 73 alpha cobalt 1 gamma delta 99 beta juniper 118
4
delta juniper 1 alpha birch 52 beta juniper 119 alpha cobalt 45 alpha indigo 119 delta harbor 101
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042117-p1
Determine the number of unique values in the first column and output only that total count.
{if(!seen[$1]++)n++}END{print n+0}
gamma harbor 46 beta indigo 25 alpha grove 8 delta grove 20 beta ember 73 alpha cobalt 1 gamma delta 99 beta juniper 118
4
delta juniper 1 alpha birch 52 beta juniper 119 alpha cobalt 45 alpha indigo 119 delta harbor 101
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042117
qwen/qwen3.7-plus
awkweave-0042118
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
farah 20 0 jules 28 1 lina 11 22 dina 29 7 farah 26 9 lina 29 24 gus 7 15 ivan 7 14 kim 16 25 jules 4 12
jules 28.00 lina 0.50 dina 4.14 farah 2.89 lina 1.21 gus 0.47 ivan 0.50 kim 0.64 jules 0.33
alice 12 0 dina 26 28 eli 16 10 lina 1 3 kim 1 1 dina 4 13 alice 29 1
dina 0.93 eli 1.60 lina 0.33 kim 1.00 dina 0.31 alice 29.00
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042118-p1
For every row, output the first and second columns along with the result of dividing column 2 by column 3 formatted to two decimal places, omitting any rows where column 3 equals zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
farah 20 0 jules 28 1 lina 11 22 dina 29 7 farah 26 9 lina 29 24 gus 7 15 ivan 7 14 kim 16 25 jules 4 12
jules 28.00 lina 0.50 dina 4.14 farah 2.89 lina 1.21 gus 0.47 ivan 0.50 kim 0.64 jules 0.33
alice 12 0 dina 26 28 eli 16 10 lina 1 3 kim 1 1 dina 4 13 alice 29 1
dina 0.93 eli 1.60 lina 0.33 kim 1.00 dina 0.31 alice 29.00
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042118
qwen/qwen3.7-plus
awkweave-0042119
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]}
gus grove 26 kim grove 3 ivan birch 22 ivan amber 1 alice ember 9 eli grove 11
gus grove 26 ivan birch 22 eli grove 11
ivan indigo 15 eli delta 4 bruno ember 4 alice indigo 4 dina harbor 10 hana grove 8 lina fable 6 jules amber 15 eli juniper 6
ivan indigo 15 jules amber 15 dina harbor 10
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042119-p1
Display the three full records that have the largest numeric values in the third column, sorted in descending order, while maintaining 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]}
gus grove 26 kim grove 3 ivan birch 22 ivan amber 1 alice ember 9 eli grove 11
gus grove 26 ivan birch 22 eli grove 11
ivan indigo 15 eli delta 4 bruno ember 4 alice indigo 4 dina harbor 10 hana grove 8 lina fable 6 jules amber 15 eli juniper 6
ivan indigo 15 jules amber 15 dina harbor 10
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042119
qwen/qwen3.7-plus
awkweave-0042120
Select the 5th and 2nd fields in that order.
{print $5, $2}
23 ready chen 41 closed kim 37 pending jules 78 ready gus 56 closed hana 71 failed eli 27 active eli 106 pending eli 73 closed ivan 117 failed chen 53 closed gus 80 active kim
closed ready ready pending failed closed pending active failed closed active closed
5 pending chen 71 active ivan 42 paused lina 50 ready alice 33 closed dina 120 closed alice 71 ready dina 5 closed hana 11 pending ivan 14 failed gus 57 ready gus 4 paused hana 1 failed eli 110 paused kim 79 active eli 11 failed kim 76 closed ivan 44 failed ivan
active pending ready paused closed closed closed ready failed pending paused ready paused failed failed active failed closed
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042120-p1
Extract and display the fifth field followed by the second field, preserving this specific order.
{print $5, $2}
23 ready chen 41 closed kim 37 pending jules 78 ready gus 56 closed hana 71 failed eli 27 active eli 106 pending eli 73 closed ivan 117 failed chen 53 closed gus 80 active kim
closed ready ready pending failed closed pending active failed closed active closed
5 pending chen 71 active ivan 42 paused lina 50 ready alice 33 closed dina 120 closed alice 71 ready dina 5 closed hana 11 pending ivan 14 failed gus 57 ready gus 4 paused hana 1 failed eli 110 paused kim 79 active eli 11 failed kim 76 closed ivan 44 failed ivan
active pending ready paused closed closed closed ready failed pending paused ready paused failed failed active failed closed
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042120
qwen/qwen3.7-plus
awkweave-0042121
Print the last field of every input line.
{print $NF}
paused 110 alice ready 17 lina paused 2 dina failed 28 gus paused 82 eli closed 24 ivan paused 24 farah
alice lina dina gus eli ivan farah
failed 111 bruno ready 10 chen pending 38 hana pending 32 jules ready 76 alice failed 29 jules closed 52 hana
bruno chen hana jules alice jules hana
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042121-p1
Output the final field from each line of the input.
{print $NF}
paused 110 alice ready 17 lina paused 2 dina failed 28 gus paused 82 eli closed 24 ivan paused 24 farah
alice lina dina gus eli ivan farah
failed 111 bruno ready 10 chen pending 38 hana pending 32 jules ready 76 alice failed 29 jules closed 52 hana
bruno chen hana jules alice jules hana
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042121
qwen/qwen3.7-plus
awkweave-0042122
Print the complete records where column 1 is greater than 46.
$1 > 46
80 cobalt cobalt 95 amber amber 49 amber ember 85 birch indigo 120 juniper indigo 32 grove harbor 54 harbor indigo 4 juniper grove 39 amber juniper 37 indigo cobalt
80 cobalt cobalt 95 amber amber 49 amber ember 85 birch indigo 120 juniper indigo 54 harbor indigo
108 harbor indigo 15 delta juniper 18 amber grove 95 birch indigo 101 amber amber 120 amber fable
108 harbor indigo 95 birch indigo 101 amber amber 120 amber fable
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042122-p1
Print the entire records for which the value in the first column exceeds 46.
$1 > 46
80 cobalt cobalt 95 amber amber 49 amber ember 85 birch indigo 120 juniper indigo 32 grove harbor 54 harbor indigo 4 juniper grove 39 amber juniper 37 indigo cobalt
80 cobalt cobalt 95 amber amber 49 amber ember 85 birch indigo 120 juniper indigo 54 harbor indigo
108 harbor indigo 15 delta juniper 18 amber grove 95 birch indigo 101 amber amber 120 amber fable
108 harbor indigo 95 birch indigo 101 amber amber 120 amber fable
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042122
qwen/qwen3.7-plus
awkweave-0042123
Show whole lines whose 3rd field is between 4 and 19, inclusive.
$3 >= 4 && $3 <= 19
kim harbor 11 fable eli fable 5 cobalt farah birch 21 delta ivan birch 18 amber eli juniper 1 ember eli juniper 17 cobalt dina birch 3 amber alice juniper 20 indigo kim amber 29 indigo
kim harbor 11 fable eli fable 5 cobalt ivan birch 18 amber eli juniper 17 cobalt
bruno amber 24 indigo kim amber 13 indigo bruno juniper 7 ember kim ember 10 amber ivan birch 18 grove alice amber 6 grove
kim amber 13 indigo bruno juniper 7 ember kim ember 10 amber ivan birch 18 grove alice amber 6 grove
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042123-p1
Display complete lines where the value in the third field falls within the inclusive range of 4 to 19.
$3 >= 4 && $3 <= 19
kim harbor 11 fable eli fable 5 cobalt farah birch 21 delta ivan birch 18 amber eli juniper 1 ember eli juniper 17 cobalt dina birch 3 amber alice juniper 20 indigo kim amber 29 indigo
kim harbor 11 fable eli fable 5 cobalt ivan birch 18 amber eli juniper 17 cobalt
bruno amber 24 indigo kim amber 13 indigo bruno juniper 7 ember kim ember 10 amber ivan birch 18 grove alice amber 6 grove
kim amber 13 indigo bruno juniper 7 ember kim ember 10 amber ivan birch 18 grove alice amber 6 grove
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042123
qwen/qwen3.7-plus
awkweave-0042124
Print column 4 only for rows where column 2 is exactly active.
$2 == "active"{print $4}
83 closed delta lina 23 pending birch alice 84 paused cobalt kim 10 paused grove chen 95 failed birch bruno 107 failed cobalt hana 6 active amber chen 111 active delta chen
chen chen
1 paused fable hana 26 pending amber farah 40 paused birch farah 5 closed cobalt hana 45 ready ember ivan 45 pending grove farah 83 active harbor jules
jules
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042124-p1
Output only the fourth column for those rows where the second column contains exactly the value active.
$2 == "active"{print $4}
83 closed delta lina 23 pending birch alice 84 paused cobalt kim 10 paused grove chen 95 failed birch bruno 107 failed cobalt hana 6 active amber chen 111 active delta chen
chen chen
1 paused fable hana 26 pending amber farah 40 paused birch farah 5 closed cobalt hana 45 ready ember ivan 45 pending grove farah 83 active harbor jules
jules
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042124
qwen/qwen3.7-plus
awkweave-0042125
Print all fields from lines where field 3 begins with INFO.
$3 ~ /^INFO/
delta 50 ERROR fable 112 INFO harbor 101 DEBUG birch 109 INFO harbor 116 INFO fable 70 INFO birch 56 INFO harbor 30 ERROR
fable 112 INFO birch 109 INFO harbor 116 INFO fable 70 INFO birch 56 INFO
delta 85 ERROR juniper 95 INFO indigo 64 ERROR amber 7 INFO harbor 27 DEBUG birch 101 DEBUG birch 9 INFO harbor 45 WARN cobalt 18 DEBUG
juniper 95 INFO amber 7 INFO birch 9 INFO
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042125-p1
Print all fields from any line where the third field starts with the string INFO.
$3 ~ /^INFO/
delta 50 ERROR fable 112 INFO harbor 101 DEBUG birch 109 INFO harbor 116 INFO fable 70 INFO birch 56 INFO harbor 30 ERROR
fable 112 INFO birch 109 INFO harbor 116 INFO fable 70 INFO birch 56 INFO
delta 85 ERROR juniper 95 INFO indigo 64 ERROR amber 7 INFO harbor 27 DEBUG birch 101 DEBUG birch 9 INFO harbor 45 WARN cobalt 18 DEBUG
juniper 95 INFO amber 7 INFO birch 9 INFO
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042125
qwen/qwen3.7-plus
awkweave-0042126
Print every line except those containing the exact text delta.
$0 !~ /delta/
fable 19 closed amber 54 ready amber 17 failed fable 4 pending delta 74 ready grove 45 ready ember 13 active indigo 98 active amber 95 pending fable 31 paused delta 999 active
fable 19 closed amber 54 ready amber 17 failed fable 4 pending grove 45 ready ember 13 active indigo 98 active amber 95 pending fable 31 paused
indigo 98 failed ember 14 pending fable 11 paused birch 97 failed birch 72 pending ember 12 pending amber 104 closed birch 72 pending delta 999 active
indigo 98 failed ember 14 pending fable 11 paused birch 97 failed birch 72 pending ember 12 pending amber 104 closed birch 72 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042126-p1
Output every line except those that contain the exact string delta.
$0 !~ /delta/
fable 19 closed amber 54 ready amber 17 failed fable 4 pending delta 74 ready grove 45 ready ember 13 active indigo 98 active amber 95 pending fable 31 paused delta 999 active
fable 19 closed amber 54 ready amber 17 failed fable 4 pending grove 45 ready ember 13 active indigo 98 active amber 95 pending fable 31 paused
indigo 98 failed ember 14 pending fable 11 paused birch 97 failed birch 72 pending ember 12 pending amber 104 closed birch 72 pending delta 999 active
indigo 98 failed ember 14 pending fable 11 paused birch 97 failed birch 72 pending ember 12 pending amber 104 closed birch 72 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042126
qwen/qwen3.7-plus
awkweave-0042127
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
gus delta 2 dina ember 8 bruno harbor 37 hana cobalt 104 hana birch 14 dina birch 79 gus cobalt 80 dina delta 33 dina fable 36 gus grove 8
hana cobalt 104 hana birch 14 dina birch 79 gus cobalt 80
kim grove 108 ivan cobalt 56 chen grove 1 gus birch 14 jules grove 34 farah birch 39 hana juniper 63
gus birch 14 jules grove 34 farah birch 39 hana juniper 63
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042127-p1
Print lines 4 through 7, inclusive of both the starting and ending lines.
NR >= 4 && NR <= 7
gus delta 2 dina ember 8 bruno harbor 37 hana cobalt 104 hana birch 14 dina birch 79 gus cobalt 80 dina delta 33 dina fable 36 gus grove 8
hana cobalt 104 hana birch 14 dina birch 79 gus cobalt 80
kim grove 108 ivan cobalt 56 chen grove 1 gus birch 14 jules grove 34 farah birch 39 hana juniper 63
gus birch 14 jules grove 34 farah birch 39 hana juniper 63
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042127
qwen/qwen3.7-plus
awkweave-0042128
Output only the first 2 records.
NR <= 2
lina 66 juniper kim 104 fable gus 80 harbor alice 5 ember jules 30 indigo kim 10 cobalt chen 1 harbor bruno 39 cobalt lina 86 delta
lina 66 juniper kim 104 fable
gus 43 ember eli 46 juniper alice 60 delta dina 43 grove bruno 71 harbor dina 44 indigo jules 45 ember chen 42 harbor dina 103 ember
gus 43 ember eli 46 juniper
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042128-p1
Output only the first two records from the input.
NR <= 2
lina 66 juniper kim 104 fable gus 80 harbor alice 5 ember jules 30 indigo kim 10 cobalt chen 1 harbor bruno 39 cobalt lina 86 delta
lina 66 juniper kim 104 fable
gus 43 ember eli 46 juniper alice 60 delta dina 43 grove bruno 71 harbor dina 44 indigo jules 45 ember chen 42 harbor dina 103 ember
gus 43 ember eli 46 juniper
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042128
qwen/qwen3.7-plus
awkweave-0042129
Skip the first line and print every remaining line unchanged.
NR > 1
alice 11 ember chen 16 grove gus 104 harbor ivan 50 grove gus 59 fable ivan 67 harbor alice 116 amber hana 82 amber farah 75 indigo alice 79 indigo
chen 16 grove gus 104 harbor ivan 50 grove gus 59 fable ivan 67 harbor alice 116 amber hana 82 amber farah 75 indigo alice 79 indigo
farah 18 juniper chen 107 cobalt bruno 23 fable kim 87 delta lina 24 grove kim 102 amber jules 101 delta gus 120 juniper jules 22 fable ivan 11 harbor
chen 107 cobalt bruno 23 fable kim 87 delta lina 24 grove kim 102 amber jules 101 delta gus 120 juniper jules 22 fable ivan 11 harbor
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042129-p1
Ignore the first line and print all subsequent lines exactly as they appear.
NR > 1
alice 11 ember chen 16 grove gus 104 harbor ivan 50 grove gus 59 fable ivan 67 harbor alice 116 amber hana 82 amber farah 75 indigo alice 79 indigo
chen 16 grove gus 104 harbor ivan 50 grove gus 59 fable ivan 67 harbor alice 116 amber hana 82 amber farah 75 indigo alice 79 indigo
farah 18 juniper chen 107 cobalt bruno 23 fable kim 87 delta lina 24 grove kim 102 amber jules 101 delta gus 120 juniper jules 22 fable ivan 11 harbor
chen 107 cobalt bruno 23 fable kim 87 delta lina 24 grove kim 102 amber jules 101 delta gus 120 juniper jules 22 fable ivan 11 harbor
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042129
qwen/qwen3.7-plus
awkweave-0042130
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
jules active 65 kim paused 18 farah paused 84 gus paused 95 chen closed 56 eli active 102 chen paused 98 lina failed 101
1
dina ready 117 farah ready 47 farah failed 98 gus failed 87 dina paused 82 farah failed 5
3
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042130-p1
Determine the number of entries in column 2 that are marked as failed, outputting 0 if no such entries exist.
$2 == "failed"{n++}END{print n+0}
jules active 65 kim paused 18 farah paused 84 gus paused 95 chen closed 56 eli active 102 chen paused 98 lina failed 101
1
dina ready 117 farah ready 47 farah failed 98 gus failed 87 dina paused 82 farah failed 5
3
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042130
qwen/qwen3.7-plus
awkweave-0042131
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
25 chen fable 12 hana grove 1 farah indigo 27 kim grove 21 chen ember 22 lina amber 2 bruno fable
110
11 alice ember 18 farah indigo 10 bruno fable 17 dina birch 12 farah amber 29 ivan harbor 5 jules indigo 21 lina harbor 7 eli indigo 13 gus delta
143
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042131-p1
Compute the total sum of all integer values found in column 1 and display the result.
{s+=$1}END{print s+0}
25 chen fable 12 hana grove 1 farah indigo 27 kim grove 21 chen ember 22 lina amber 2 bruno fable
110
11 alice ember 18 farah indigo 10 bruno fable 17 dina birch 12 farah amber 29 ivan harbor 5 jules indigo 21 lina harbor 7 eli indigo 13 gus delta
143
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042131
qwen/qwen3.7-plus
awkweave-0042132
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
hana 30 grove gus 14 ember alice 3 fable alice 27 delta chen 18 ember ivan 2 harbor hana 8 harbor farah 29 ember
16.38
gus 6 juniper hana 4 birch eli 28 fable dina 26 grove chen 11 indigo gus 11 ember farah 26 juniper alice 22 grove gus 8 ember hana 23 birch
16.50
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042132-p1
Output the average value of column 2, ensuring the result is rounded to precisely two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
hana 30 grove gus 14 ember alice 3 fable alice 27 delta chen 18 ember ivan 2 harbor hana 8 harbor farah 29 ember
16.38
gus 6 juniper hana 4 birch eli 28 fable dina 26 grove chen 11 indigo gus 11 ember farah 26 juniper alice 22 grove gus 8 ember hana 23 birch
16.50
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042132
qwen/qwen3.7-plus
awkweave-0042133
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
farah 27 harbor ivan 6 amber gus 23 ember farah 22 ember farah 6 juniper farah 28 cobalt gus 12 fable
6
dina 4 amber eli 2 delta dina 3 delta gus 21 ember gus 13 juniper bruno 5 harbor bruno 1 indigo kim 27 amber farah 21 birch dina 1 amber
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042133-p1
Identify and display the minimum numeric value present in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
farah 27 harbor ivan 6 amber gus 23 ember farah 22 ember farah 6 juniper farah 28 cobalt gus 12 fable
6
dina 4 amber eli 2 delta dina 3 delta gus 21 ember gus 13 juniper bruno 5 harbor bruno 1 indigo kim 27 amber farah 21 birch dina 1 amber
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042133
qwen/qwen3.7-plus
awkweave-0042134
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
farah 17 grove chen 14 juniper gus 10 amber jules 3 fable chen 30 juniper gus 30 amber dina 13 grove lina 7 amber dina 25 fable
30
jules 14 indigo lina 15 grove gus 19 delta eli 13 ember hana 2 amber eli 29 delta hana 2 grove hana 6 fable ivan 30 cobalt
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042134-p1
Identify and display the maximum numeric value present in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
farah 17 grove chen 14 juniper gus 10 amber jules 3 fable chen 30 juniper gus 30 amber dina 13 grove lina 7 amber dina 25 fable
30
jules 14 indigo lina 15 grove gus 19 delta eli 13 ember hana 2 amber eli 29 delta hana 2 grove hana 6 fable ivan 30 cobalt
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042134
qwen/qwen3.7-plus
awkweave-0042135
Count all input records and print the total.
END{print NR}
alice 15 dina 28 farah 47 dina 100 ivan 102 alice 6
6
chen 46 kim 23 chen 4 alice 31 chen 90 farah 117
6
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042135-p1
Count the total number of input records and print this count.
END{print NR}
alice 15 dina 28 farah 47 dina 100 ivan 102 alice 6
6
chen 46 kim 23 chen 4 alice 31 chen 90 farah 117
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042135
qwen/qwen3.7-plus
awkweave-0042136
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
hana ember 11 jules indigo 119 ivan amber 65 hana amber 105 jules indigo 119 dina juniper 57 lina harbor 102 jules harbor 78 eli delta 98 dina juniper 92 dina delta 119
hana ember 11 jules indigo 119 ivan amber 65 hana amber 105 dina juniper 57 lina harbor 102 jules harbor 78 eli delta 98 dina juniper 92 dina delta 119
lina harbor 120 bruno delta 59 hana grove 81 hana delta 9 chen indigo 7 hana delta 9 bruno harbor 85 kim cobalt 11
lina harbor 120 bruno delta 59 hana grove 81 hana delta 9 chen indigo 7 bruno harbor 85 kim cobalt 11
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042136-p1
Eliminate exact duplicate lines from the input, keeping only the first instance of each line while maintaining the original sequence.
!seen[$0]++
hana ember 11 jules indigo 119 ivan amber 65 hana amber 105 jules indigo 119 dina juniper 57 lina harbor 102 jules harbor 78 eli delta 98 dina juniper 92 dina delta 119
hana ember 11 jules indigo 119 ivan amber 65 hana amber 105 dina juniper 57 lina harbor 102 jules harbor 78 eli delta 98 dina juniper 92 dina delta 119
lina harbor 120 bruno delta 59 hana grove 81 hana delta 9 chen indigo 7 hana delta 9 bruno harbor 85 kim cobalt 11
lina harbor 120 bruno delta 59 hana grove 81 hana delta 9 chen indigo 7 bruno harbor 85 kim cobalt 11
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042136
qwen/qwen3.7-plus
awkweave-0042137
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
gus juniper 75 dina amber 48 jules harbor 110 hana cobalt 20 gus birch 81 kim grove 68 ivan cobalt 104 alice delta 40
gus juniper 75 dina amber 48 jules harbor 110 hana cobalt 20 gus birch 81 kim grove 68 ivan cobalt 104 alice delta 40
dina delta 62 farah birch 30 chen delta 26 ivan fable 85 gus grove 102 jules cobalt 85 dina ember 66
dina delta 62 farah birch 30 chen delta 26 ivan fable 85 gus grove 102 dina ember 66
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042137-p1
Retain only the initial occurrence for every unique value in column 3, ensuring the original input order is preserved.
!seen[$3]++
gus juniper 75 dina amber 48 jules harbor 110 hana cobalt 20 gus birch 81 kim grove 68 ivan cobalt 104 alice delta 40
gus juniper 75 dina amber 48 jules harbor 110 hana cobalt 20 gus birch 81 kim grove 68 ivan cobalt 104 alice delta 40
dina delta 62 farah birch 30 chen delta 26 ivan fable 85 gus grove 102 jules cobalt 85 dina ember 66
dina delta 62 farah birch 30 chen delta 26 ivan fable 85 gus grove 102 dina ember 66
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042137
qwen/qwen3.7-plus
awkweave-0042138
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
hana 23 fable eli 5 birch gus 29 grove jules 4 grove chen 14 cobalt farah 1 amber dina 5 delta
hana 23 eli 28 gus 57 jules 61 chen 75 farah 76 dina 81
hana 19 ember chen 8 ember eli 26 juniper kim 10 cobalt lina 15 cobalt kim 3 indigo jules 8 indigo alice 7 juniper jules 26 indigo
hana 19 chen 27 eli 53 kim 63 lina 78 kim 81 jules 89 alice 96 jules 122
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042138-p1
For each record, output column 1 alongside the cumulative sum of column 2 up to that row, separated by a space.
{s+=$2;print $1,s}
hana 23 fable eli 5 birch gus 29 grove jules 4 grove chen 14 cobalt farah 1 amber dina 5 delta
hana 23 eli 28 gus 57 jules 61 chen 75 farah 76 dina 81
hana 19 ember chen 8 ember eli 26 juniper kim 10 cobalt lina 15 cobalt kim 3 indigo jules 8 indigo alice 7 juniper jules 26 indigo
hana 19 chen 27 eli 53 kim 63 lina 78 kim 81 jules 89 alice 96 jules 122
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042138
qwen/qwen3.7-plus
awkweave-0042139
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 8 12 cobalt dina 20 9 grove gus 7 27 delta lina 22 27 harbor kim 19 10 fable eli 4 2 delta alice 17 16 delta
bruno 20 dina 29 gus 34 lina 49 kim 29 eli 6 alice 33
hana 10 18 indigo bruno 2 18 grove ivan 16 18 harbor jules 12 25 cobalt alice 1 14 ember lina 12 24 birch gus 1 2 indigo
hana 28 bruno 20 ivan 34 jules 37 alice 15 lina 36 gus 3
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042139-p1
For each row, output field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 8 12 cobalt dina 20 9 grove gus 7 27 delta lina 22 27 harbor kim 19 10 fable eli 4 2 delta alice 17 16 delta
bruno 20 dina 29 gus 34 lina 49 kim 29 eli 6 alice 33
hana 10 18 indigo bruno 2 18 grove ivan 16 18 harbor jules 12 25 cobalt alice 1 14 ember lina 12 24 birch gus 1 2 indigo
hana 28 bruno 20 ivan 34 jules 37 alice 15 lina 36 gus 3
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042139
qwen/qwen3.7-plus
awkweave-0042140
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
alice 23 farah 29 hana 4 kim 15 gus 17 bruno 22
alice fail farah pass hana fail kim fail gus fail bruno fail
farah 17 jules 19 dina 5 eli 18 bruno 22 kim 21 gus 28 gus 26 jules 10
farah fail jules fail dina fail eli fail bruno fail kim fail gus pass gus pass jules fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042140-p1
Display column 1 along with 'pass' if column 2 is greater than or equal to 25; otherwise, display 'fail'.
{print $1,($2>=25?"pass":"fail")}
alice 23 farah 29 hana 4 kim 15 gus 17 bruno 22
alice fail farah pass hana fail kim fail gus fail bruno fail
farah 17 jules 19 dina 5 eli 18 bruno 22 kim 21 gus 28 gus 26 jules 10
farah fail jules fail dina fail eli fail bruno fail kim fail gus pass gus pass jules fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042140
qwen/qwen3.7-plus
awkweave-0042141
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
hana indigo 104 jules ember 108 kim grove 114 dina birch 67 ivan cobalt 46 eli grove 120 hana juniper 1 farah birch 66
HANA JULES KIM DINA IVAN ELI HANA FARAH
bruno ember 24 jules cobalt 79 dina juniper 108 dina cobalt 46 bruno juniper 106 lina delta 36 dina ember 52 lina ember 2
BRUNO JULES DINA DINA BRUNO LINA DINA LINA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042141-p1
Transform the text in column 1 to uppercase and output only this modified column.
{print toupper($1)}
hana indigo 104 jules ember 108 kim grove 114 dina birch 67 ivan cobalt 46 eli grove 120 hana juniper 1 farah birch 66
HANA JULES KIM DINA IVAN ELI HANA FARAH
bruno ember 24 jules cobalt 79 dina juniper 108 dina cobalt 46 bruno juniper 106 lina delta 36 dina ember 52 lina ember 2
BRUNO JULES DINA DINA BRUNO LINA DINA LINA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042141
qwen/qwen3.7-plus
awkweave-0042142
From column 1, print 3 characters starting at character 3.
{print substr($1,3,3)}
delta 34 grove 119 grove 66 indigo 34 juniper 113 cobalt 108 juniper 54 juniper 81 cobalt 90 birch 87
lta ove ove dig nip bal nip nip bal rch
birch 116 ember 20 fable 93 ember 42 birch 66 ember 21
rch ber ble ber rch ber
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042142-p1
Extract and display a 3-character substring from the first column, beginning at the third character position.
{print substr($1,3,3)}
delta 34 grove 119 grove 66 indigo 34 juniper 113 cobalt 108 juniper 54 juniper 81 cobalt 90 birch 87
lta ove ove dig nip bal nip nip bal rch
birch 116 ember 20 fable 93 ember 42 birch 66 ember 21
rch ber ble ber rch ber
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042142
qwen/qwen3.7-plus
awkweave-0042143
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
delta_amber 108 harbor_harbor 28 juniper_harbor 38 cobalt_cobalt 50 indigo_indigo 115 grove_fable 15 harbor_cobalt 21 fable_amber 75 cobalt_indigo 106
delta amber harbor harbor juniper harbor cobalt cobalt indigo indigo grove fable harbor cobalt fable amber cobalt indigo
ember_delta 66 delta_amber 54 harbor_indigo 67 fable_birch 101 juniper_fable 114 harbor_ember 36 indigo_birch 80 amber_fable 62 grove_cobalt 77 birch_delta 12
ember delta delta amber harbor indigo fable birch juniper fable harbor ember indigo birch amber fable grove cobalt birch delta
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042143-p1
Substitute all underscores with spaces in the first column and output the modified values.
{gsub(/_/," ",$1);print $1}
delta_amber 108 harbor_harbor 28 juniper_harbor 38 cobalt_cobalt 50 indigo_indigo 115 grove_fable 15 harbor_cobalt 21 fable_amber 75 cobalt_indigo 106
delta amber harbor harbor juniper harbor cobalt cobalt indigo indigo grove fable harbor cobalt fable amber cobalt indigo
ember_delta 66 delta_amber 54 harbor_indigo 67 fable_birch 101 juniper_fable 114 harbor_ember 36 indigo_birch 80 amber_fable 62 grove_cobalt 77 birch_delta 12
ember delta delta amber harbor indigo fable birch juniper fable harbor ember indigo birch amber fable grove cobalt birch delta
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042143
qwen/qwen3.7-plus
awkweave-0042144
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)}
kim fable 90 paused jules delta 85 pending bruno delta 66 ready farah delta 114 failed alice birch 88 ready chen ember 41 closed eli ember 111 closed kim indigo 93 ready alice fable 67 closed bruno ember 62 active
paused 90 fable kim pending 85 delta jules ready 66 delta bruno failed 114 delta farah ready 88 birch alice closed 41 ember chen closed 111 ember eli ready 93 indigo kim closed 67 fable alice active 62 ember bruno
bruno juniper 108 pending alice amber 7 failed gus cobalt 18 paused lina harbor 107 closed farah harbor 5 ready eli indigo 115 closed
pending 108 juniper bruno failed 7 amber alice paused 18 cobalt gus closed 107 harbor lina ready 5 harbor farah closed 115 indigo eli
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042144-p1
Reverse the sequence of fields for every line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
kim fable 90 paused jules delta 85 pending bruno delta 66 ready farah delta 114 failed alice birch 88 ready chen ember 41 closed eli ember 111 closed kim indigo 93 ready alice fable 67 closed bruno ember 62 active
paused 90 fable kim pending 85 delta jules ready 66 delta bruno failed 114 delta farah ready 88 birch alice closed 41 ember chen closed 111 ember eli ready 93 indigo kim closed 67 fable alice active 62 ember bruno
bruno juniper 108 pending alice amber 7 failed gus cobalt 18 paused lina harbor 107 closed farah harbor 5 ready eli indigo 115 closed
pending 108 juniper bruno failed 7 amber alice paused 18 cobalt gus closed 107 harbor lina ready 5 harbor farah closed 115 indigo eli
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042144
qwen/qwen3.7-plus
awkweave-0042145
Print the number of whitespace-separated fields on each line.
{print NF}
alice juniper 79 failed jules birch 45 pending gus indigo 73 failed bruno juniper 49 paused hana indigo 107 closed jules birch 11 active
4 4 4 4 4 4
kim ember 15 paused bruno delta 102 paused gus indigo 116 closed dina indigo 75 ready bruno ember 88 failed alice fable 71 paused jules amber 48 paused dina harbor 55 ready eli ember 22 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042145-p1
Output the count of whitespace-delimited fields found on each line.
{print NF}
alice juniper 79 failed jules birch 45 pending gus indigo 73 failed bruno juniper 49 paused hana indigo 107 closed jules birch 11 active
4 4 4 4 4 4
kim ember 15 paused bruno delta 102 paused gus indigo 116 closed dina indigo 75 ready bruno ember 88 failed alice fable 71 paused jules amber 48 paused dina harbor 55 ready eli ember 22 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042145
qwen/qwen3.7-plus
awkweave-0042146
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
ivan alpha 33 chen delta 88 dina delta 89 bruno alpha 58 kim beta 73 dina alpha 59 farah delta 83
alpha 3 delta 3 beta 1
chen gamma 109 bruno delta 78 farah beta 57 hana gamma 72 lina alpha 55 farah beta 81 chen beta 5 alice beta 119 gus alpha 5
gamma 2 delta 1 beta 4 alpha 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042146-p1
Tally the occurrences of each unique value in the second column. Output each value alongside its count, sorted by the order of their first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
ivan alpha 33 chen delta 88 dina delta 89 bruno alpha 58 kim beta 73 dina alpha 59 farah delta 83
alpha 3 delta 3 beta 1
chen gamma 109 bruno delta 78 farah beta 57 hana gamma 72 lina alpha 55 farah beta 81 chen beta 5 alice beta 119 gus alpha 5
gamma 2 delta 1 beta 4 alpha 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042146
qwen/qwen3.7-plus
awkweave-0042147
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
gus delta 12 dina delta 22 kim beta 8 eli gamma 4 ivan beta 28 bruno beta 15
delta 34 beta 51 gamma 4
lina gamma 15 lina gamma 24 gus gamma 27 chen beta 4 dina beta 16 alice delta 10 ivan beta 6 alice beta 7
gamma 66 beta 33 delta 10
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042147-p1
Calculate the sum of the third column grouped by the categories in the second column, displaying the results in the order the groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
gus delta 12 dina delta 22 kim beta 8 eli gamma 4 ivan beta 28 bruno beta 15
delta 34 beta 51 gamma 4
lina gamma 15 lina gamma 24 gus gamma 27 chen beta 4 dina beta 16 alice delta 10 ivan beta 6 alice beta 7
gamma 66 beta 33 delta 10
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042147
qwen/qwen3.7-plus
awkweave-0042148
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma amber 75 delta delta 18 beta cobalt 75 gamma indigo 31 delta fable 115 alpha delta 101
gamma 2 delta 2
gamma birch 6 delta grove 21 alpha ember 95 alpha cobalt 103 gamma delta 93 gamma grove 94 alpha harbor 57 gamma grove 59
gamma 4 alpha 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042148-p1
Identify duplicate values in the first column and print each one with its occurrence count, ordered by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma amber 75 delta delta 18 beta cobalt 75 gamma indigo 31 delta fable 115 alpha delta 101
gamma 2 delta 2
gamma birch 6 delta grove 21 alpha ember 95 alpha cobalt 103 gamma delta 93 gamma grove 94 alpha harbor 57 gamma grove 59
gamma 4 alpha 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042148
qwen/qwen3.7-plus
awkweave-0042149
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"]}
region note state display_name r001 alice 28 pending r002 alice 20 ready r003 gus 12 failed r004 jules 4 closed r005 kim 11 failed r006 dina 17 pending r007 dina 5 pending r008 gus 22 failed r009 hana 6 pending
28 20 12 4 11 17 5 22 6
region note state display_name r001 jules 19 failed r002 lina 4 ready r003 farah 22 ready r004 gus 15 closed r005 chen 10 pending r006 lina 20 paused r007 farah 13 closed r008 eli 25 paused r009 dina 27 paused
19 4 22 15 10 20 13 25 27
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042149-p1
Skip the header row and output the contents of the state column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
region note state display_name r001 alice 28 pending r002 alice 20 ready r003 gus 12 failed r004 jules 4 closed r005 kim 11 failed r006 dina 17 pending r007 dina 5 pending r008 gus 22 failed r009 hana 6 pending
28 20 12 4 11 17 5 22 6
region note state display_name r001 jules 19 failed r002 lina 4 ready r003 farah 22 ready r004 gus 15 closed r005 chen 10 pending r006 lina 20 paused r007 farah 13 closed r008 eli 25 paused r009 dina 27 paused
19 4 22 15 10 20 13 25 27
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042149
qwen/qwen3.7-plus
awkweave-0042150
The first row is a header. Print display_name for data rows whose score is greater than 21.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>21{print $h["display_name"]}
record_id display_name score state r001 kim 12 closed r002 chen 2 closed r003 dina 22 active r004 hana 2 ready r005 bruno 26 paused r006 farah 27 pending r007 lina 16 pending r008 alice 6 ready r009 gus 14 pending
dina bruno farah
record_id display_name score state r001 ivan 20 closed r002 chen 22 pending r003 hana 27 paused r004 jules 14 pending r005 gus 10 failed r006 kim 2 active r007 kim 25 failed r008 dina 26 paused r009 kim 26 ready
chen hana kim dina kim
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042150-p1
Ignoring the header row, output the display_name field for records where the score is strictly greater than 21.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>21{print $h["display_name"]}
record_id display_name score state r001 kim 12 closed r002 chen 2 closed r003 dina 22 active r004 hana 2 ready r005 bruno 26 paused r006 farah 27 pending r007 lina 16 pending r008 alice 6 ready r009 gus 14 pending
dina bruno farah
record_id display_name score state r001 ivan 20 closed r002 chen 22 pending r003 hana 27 paused r004 jules 14 pending r005 gus 10 failed r006 kim 2 active r007 kim 25 failed r008 dina 26 paused r009 kim 26 ready
chen hana kim dina kim
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042150
qwen/qwen3.7-plus
awkweave-0042151
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
gus 2 ready dina 25 paused hana 7 closed kim 24 closed alice 2 active hana 1 failed
ready paused closed closed active failed
kim 18 active alice 22 failed bruno 5 pending bruno 9 active dina 14 active hana 27 paused
active failed pending active active paused
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042151-p1
Given tab-separated input, extract and print the third column from every record.
BEGIN{FS=OFS="\t"}{print $3}
gus 2 ready dina 25 paused hana 7 closed kim 24 closed alice 2 active hana 1 failed
ready paused closed closed active failed
kim 18 active alice 22 failed bruno 5 pending bruno 9 active dina 14 active hana 27 paused
active failed pending active active paused
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042151
qwen/qwen3.7-plus
awkweave-0042152
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}
lina,1,active jules,3,paused dina,30,ready bruno,7,paused eli,7,closed hana,8,failed chen,10,active hana,20,paused dina,8,paused chen,19,ready
dina chen hana chen
gus,22,failed eli,20,pending gus,13,ready farah,29,ready farah,9,ready farah,3,ready dina,3,pending eli,14,closed
gus eli gus farah farah eli
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042152-p1
For simple comma-separated input without quoted commas, print the first column if the value in the second column is greater than 8.
BEGIN{FS=OFS=","}$2>8{print $1}
lina,1,active jules,3,paused dina,30,ready bruno,7,paused eli,7,closed hana,8,failed chen,10,active hana,20,paused dina,8,paused chen,19,ready
dina chen hana chen
gus,22,failed eli,20,pending gus,13,ready farah,29,ready farah,9,ready farah,3,ready dina,3,pending eli,14,closed
gus eli gus farah farah eli
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042152
qwen/qwen3.7-plus
awkweave-0042153
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
farah harbor 74 hana delta 82 gus cobalt 62 hana juniper 107 jules cobalt 17 alice amber 100 bruno ember 37 kim ember 117
farah harbor 74 hana delta 82 gus cobalt 62 hana juniper 107 jules cobalt 17 alice amber 100 bruno ember 37 kim ember 117
alice ember 54 chen birch 54 hana juniper 59 dina fable 100 chen birch 112 alice birch 80 eli juniper 28 chen delta 32 lina fable 89 gus delta 54
alice ember 54 chen birch 54 hana juniper 59 dina fable 100 chen birch 112 alice birch 80 eli juniper 28 chen delta 32 lina fable 89 gus delta 54
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042153-p1
Remove leading and trailing whitespace and replace any internal sequences of whitespace with a single space.
{$1=$1;print}
farah harbor 74 hana delta 82 gus cobalt 62 hana juniper 107 jules cobalt 17 alice amber 100 bruno ember 37 kim ember 117
farah harbor 74 hana delta 82 gus cobalt 62 hana juniper 107 jules cobalt 17 alice amber 100 bruno ember 37 kim ember 117
alice ember 54 chen birch 54 hana juniper 59 dina fable 100 chen birch 112 alice birch 80 eli juniper 28 chen delta 32 lina fable 89 gus delta 54
alice ember 54 chen birch 54 hana juniper 59 dina fable 100 chen birch 112 alice birch 80 eli juniper 28 chen delta 32 lina fable 89 gus delta 54
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042153
qwen/qwen3.7-plus
awkweave-0042154
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
hana cobalt 6 paused alice amber 18 paused hana birch 2 active hana indigo 73 ready bruno ember 92 ready lina fable 28 ready dina fable 79 ready bruno harbor 67 failed
bruno harbor 67 failed
eli grove 54 closed eli birch 50 paused farah birch 60 failed alice delta 53 pending bruno birch 5 ready hana birch 107 ready eli juniper 25 pending gus fable 31 closed gus amber 19 active
alice delta 53 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042154-p1
Identify and output the longest line from the input, retaining the first occurrence in case of a tie.
{if(length($0)>length(best))best=$0}END{print best}
hana cobalt 6 paused alice amber 18 paused hana birch 2 active hana indigo 73 ready bruno ember 92 ready lina fable 28 ready dina fable 79 ready bruno harbor 67 failed
bruno harbor 67 failed
eli grove 54 closed eli birch 50 paused farah birch 60 failed alice delta 53 pending bruno birch 5 ready hana birch 107 ready eli juniper 25 pending gus fable 31 closed gus amber 19 active
alice delta 53 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042154
qwen/qwen3.7-plus
awkweave-0042155
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
dina 99 bruno 105 lina 18 lina 26 bruno 28 lina 88 eli 15 hana 82 hana 4 dina 16
bruno 105 lina 26 lina 88 hana 82 dina 16
eli 34 eli 43 hana 22 bruno 106 kim 18 farah 7 chen 38 eli 54
eli 43 bruno 106 farah 7 eli 54
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042155-p1
Output every second line beginning with line 2 (i.e., lines 2, 4, 6, etc.).
NR%2==0
dina 99 bruno 105 lina 18 lina 26 bruno 28 lina 88 eli 15 hana 82 hana 4 dina 16
bruno 105 lina 26 lina 88 hana 82 dina 16
eli 34 eli 43 hana 22 bruno 106 kim 18 farah 7 chen 38 eli 54
eli 43 bruno 106 farah 7 eli 54
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042155
qwen/qwen3.7-plus
awkweave-0042156
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
gamma cobalt 93 beta indigo 22 alpha ember 120 beta juniper 100 alpha juniper 18 alpha ember 39 alpha amber 3 gamma amber 16 gamma juniper 10
5
beta amber 19 beta grove 98 gamma ember 70 beta grove 105 gamma birch 69 beta amber 83
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042156-p1
Calculate and display only the number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
gamma cobalt 93 beta indigo 22 alpha ember 120 beta juniper 100 alpha juniper 18 alpha ember 39 alpha amber 3 gamma amber 16 gamma juniper 10
5
beta amber 19 beta grove 98 gamma ember 70 beta grove 105 gamma birch 69 beta amber 83
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042156
qwen/qwen3.7-plus
awkweave-0042157
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}
jules 15 0 bruno 16 12 farah 16 26 jules 24 27 jules 18 16 alice 4 6 dina 21 15 ivan 11 29 ivan 24 17
bruno 1.33 farah 0.62 jules 0.89 jules 1.12 alice 0.67 dina 1.40 ivan 0.38 ivan 1.41
dina 11 0 ivan 15 28 kim 11 13 farah 3 7 alice 30 19 eli 1 5 eli 30 29 eli 26 15 chen 8 4
ivan 0.54 kim 0.85 farah 0.43 alice 1.58 eli 0.20 eli 1.03 eli 1.73 chen 2.00
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042157-p1
For each row where the third column is not zero, print 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}
jules 15 0 bruno 16 12 farah 16 26 jules 24 27 jules 18 16 alice 4 6 dina 21 15 ivan 11 29 ivan 24 17
bruno 1.33 farah 0.62 jules 0.89 jules 1.12 alice 0.67 dina 1.40 ivan 0.38 ivan 1.41
dina 11 0 ivan 15 28 kim 11 13 farah 3 7 alice 30 19 eli 1 5 eli 30 29 eli 26 15 chen 8 4
ivan 0.54 kim 0.85 farah 0.43 alice 1.58 eli 0.20 eli 1.03 eli 1.73 chen 2.00
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042157
qwen/qwen3.7-plus
awkweave-0042158
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 fable 18 gus grove 16 kim fable 10 chen ember 18 kim indigo 5 ivan grove 9 gus cobalt 14
kim fable 18 chen ember 18 gus grove 16
eli grove 11 chen delta 27 dina grove 3 chen juniper 15 farah grove 3 kim juniper 2 ivan fable 28 alice harbor 21 hana cobalt 22 chen juniper 8
ivan fable 28 chen delta 27 hana cobalt 22
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042158-p1
Display the full records corresponding to the top three highest numeric values in column 3, sorted in descending order, while maintaining 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 fable 18 gus grove 16 kim fable 10 chen ember 18 kim indigo 5 ivan grove 9 gus cobalt 14
kim fable 18 chen ember 18 gus grove 16
eli grove 11 chen delta 27 dina grove 3 chen juniper 15 farah grove 3 kim juniper 2 ivan fable 28 alice harbor 21 hana cobalt 22 chen juniper 8
ivan fable 28 chen delta 27 hana cobalt 22
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042158
qwen/qwen3.7-plus
awkweave-0042159
Select the 3rd and 1st fields in that order.
{print $3, $1}
failed lina failed delta 30 paused failed dina pending juniper 26 active pending ivan ready harbor 56 closed pending gus ready delta 91 paused paused kim active fable 95 paused active gus closed harbor 89 pending closed ivan paused grove 39 paused
failed failed pending failed ready pending ready pending active paused closed active paused closed
ready bruno closed cobalt 108 pending closed dina closed amber 23 closed closed eli pending juniper 39 paused closed kim failed grove 32 pending active bruno ready amber 80 paused failed gus pending harbor 59 active active jules active ember 19 failed pending dina pending birch 63 active
closed ready closed closed pending closed failed closed ready active pending failed active active pending pending
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042159-p1
Extract and print the third field followed by the first field.
{print $3, $1}
failed lina failed delta 30 paused failed dina pending juniper 26 active pending ivan ready harbor 56 closed pending gus ready delta 91 paused paused kim active fable 95 paused active gus closed harbor 89 pending closed ivan paused grove 39 paused
failed failed pending failed ready pending ready pending active paused closed active paused closed
ready bruno closed cobalt 108 pending closed dina closed amber 23 closed closed eli pending juniper 39 paused closed kim failed grove 32 pending active bruno ready amber 80 paused failed gus pending harbor 59 active active jules active ember 19 failed pending dina pending birch 63 active
closed ready closed closed pending closed failed closed ready active pending failed active active pending pending
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042159
qwen/qwen3.7-plus
awkweave-0042160
Print the last field of every input line.
{print $NF}
chen pending alice kim closed paused 116 alice pending lina hana paused failed 29 lina paused dina eli ready paused 73 chen ready eli dina ready paused 20 chen pending gus ivan failed paused 107 kim paused chen gus ready closed 101 jules active kim ivan pending ready 22 chen paused hana farah ready active 53 gus active...
116 29 73 20 107 101 22 53 19
lina pending dina kim paused active 78 alice closed farah alice active pending 43 ivan active hana ivan pending pending 1 jules paused hana hana closed failed 55 chen active bruno chen active ready 115 alice active jules bruno closed ready 87 jules ready kim eli closed closed 42
78 43 1 55 115 87 42
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042160-p1
Output the final field from every line of input.
{print $NF}
chen pending alice kim closed paused 116 alice pending lina hana paused failed 29 lina paused dina eli ready paused 73 chen ready eli dina ready paused 20 chen pending gus ivan failed paused 107 kim paused chen gus ready closed 101 jules active kim ivan pending ready 22 chen paused hana farah ready active 53 gus active...
116 29 73 20 107 101 22 53 19
lina pending dina kim paused active 78 alice closed farah alice active pending 43 ivan active hana ivan pending pending 1 jules paused hana hana closed failed 55 chen active bruno chen active ready 115 alice active jules bruno closed ready 87 jules ready kim eli closed closed 42
78 43 1 55 115 87 42
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042160
qwen/qwen3.7-plus
awkweave-0042161
Print the complete records where column 3 is greater than 73.
$3 > 73
chen amber 53 active indigo chen grove 84 pending juniper kim amber 18 active delta lina harbor 91 closed birch bruno birch 15 paused harbor lina harbor 110 ready harbor bruno amber 82 active harbor
chen grove 84 pending juniper lina harbor 91 closed birch lina harbor 110 ready harbor bruno amber 82 active harbor
bruno amber 16 closed grove farah ember 29 failed indigo ivan indigo 115 failed harbor jules grove 99 failed cobalt hana juniper 120 pending ember kim birch 83 ready delta bruno grove 8 paused indigo
ivan indigo 115 failed harbor jules grove 99 failed cobalt hana juniper 120 pending ember kim birch 83 ready delta
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null