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-0010050-p1
Calculate the sum of values in column 3 grouped by the categories in column 2, listing the results in the order of the category's 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]]}
hana delta 28 chen gamma 19 dina alpha 6 gus gamma 6 jules beta 27 chen beta 13 jules delta 18 farah delta 12
delta 58 gamma 25 alpha 6 beta 40
bruno delta 25 dina alpha 20 alice alpha 19 hana beta 10 farah alpha 15 jules delta 26 jules delta 18 chen beta 9 hana delta 29
delta 98 alpha 54 beta 19
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010050
qwen/qwen3.7-plus
awkweave-0010051
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 harbor 16 gamma cobalt 77 beta grove 41 gamma amber 19 delta juniper 35 alpha harbor 53 delta grove 101 beta amber 93
beta 3 gamma 2 delta 2
delta grove 34 delta grove 17 alpha harbor 65 alpha amber 38 delta ember 20 beta cobalt 27
delta 3 alpha 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010051-p1
Identify duplicate entries in column 1 and output each repeated value with its frequency, sorted by the order of their initial 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 harbor 16 gamma cobalt 77 beta grove 41 gamma amber 19 delta juniper 35 alpha harbor 53 delta grove 101 beta amber 93
beta 3 gamma 2 delta 2
delta grove 34 delta grove 17 alpha harbor 65 alpha amber 38 delta ember 20 beta cobalt 27
delta 3 alpha 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010051
qwen/qwen3.7-plus
awkweave-0010052
The first row is a header. Print the region column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
display_name state record_id region r001 kim 27 pending r002 kim 14 ready r003 hana 2 paused r004 gus 8 paused r005 lina 6 ready r006 lina 23 pending r007 kim 6 closed r008 chen 22 paused r009 alice 7 pending
pending ready paused paused ready pending closed paused pending
display_name state record_id region r001 eli 7 ready r002 alice 7 pending r003 kim 20 failed r004 jules 12 closed r005 farah 7 paused r006 ivan 14 pending
ready pending failed closed paused pending
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010052-p1
Treating the first line as a header, output the values from the region column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
display_name state record_id region r001 kim 27 pending r002 kim 14 ready r003 hana 2 paused r004 gus 8 paused r005 lina 6 ready r006 lina 23 pending r007 kim 6 closed r008 chen 22 paused r009 alice 7 pending
pending ready paused paused ready pending closed paused pending
display_name state record_id region r001 eli 7 ready r002 alice 7 pending r003 kim 20 failed r004 jules 12 closed r005 farah 7 paused r006 ivan 14 pending
ready pending failed closed paused pending
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010052
qwen/qwen3.7-plus
awkweave-0010053
The first row is a header. Print display_name for data rows whose score is greater than 9.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>9{print $h["display_name"]}
record_id display_name score state r001 gus 27 closed r002 chen 30 pending r003 kim 14 active r004 hana 17 ready r005 chen 16 closed r006 bruno 3 closed r007 chen 11 active r008 jules 1 failed r009 farah 13 paused r010 chen 8 paused
gus chen kim hana chen chen farah
record_id display_name score state r001 dina 14 pending r002 eli 27 closed r003 gus 14 paused r004 jules 8 ready r005 lina 11 pending r006 jules 8 paused r007 gus 14 pending
dina eli gus lina gus
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010053-p1
Ignoring the header row, print the display_name field for any record where the score exceeds 9.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>9{print $h["display_name"]}
record_id display_name score state r001 gus 27 closed r002 chen 30 pending r003 kim 14 active r004 hana 17 ready r005 chen 16 closed r006 bruno 3 closed r007 chen 11 active r008 jules 1 failed r009 farah 13 paused r010 chen 8 paused
gus chen kim hana chen chen farah
record_id display_name score state r001 dina 14 pending r002 eli 27 closed r003 gus 14 paused r004 jules 8 ready r005 lina 11 pending r006 jules 8 paused r007 gus 14 pending
dina eli gus lina gus
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010053
qwen/qwen3.7-plus
awkweave-0010054
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
dina 2 paused gus 1 closed alice 15 active kim 16 closed hana 24 failed gus 28 closed hana 27 active chen 28 paused ivan 26 closed
paused closed active closed failed closed active paused closed
hana 29 failed ivan 28 closed ivan 23 closed lina 13 paused kim 3 closed bruno 11 closed
failed closed closed paused closed closed
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010054-p1
Given tab-separated input, extract and print the third column from each record.
BEGIN{FS=OFS="\t"}{print $3}
dina 2 paused gus 1 closed alice 15 active kim 16 closed hana 24 failed gus 28 closed hana 27 active chen 28 paused ivan 26 closed
paused closed active closed failed closed active paused closed
hana 29 failed ivan 28 closed ivan 23 closed lina 13 paused kim 3 closed bruno 11 closed
failed closed closed paused closed closed
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010054
qwen/qwen3.7-plus
awkweave-0010055
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 24.
BEGIN{FS=OFS=","}$2>24{print $1}
lina,17,closed alice,29,failed farah,23,paused hana,8,ready eli,23,active gus,20,active dina,2,active alice,11,paused
alice
bruno,27,active dina,10,failed eli,6,active eli,9,pending ivan,8,pending farah,13,pending
bruno
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010055-p1
For simple comma-separated input without quoted commas, print the first column if the value in the second column is greater than 24.
BEGIN{FS=OFS=","}$2>24{print $1}
lina,17,closed alice,29,failed farah,23,paused hana,8,ready eli,23,active gus,20,active dina,2,active alice,11,paused
alice
bruno,27,active dina,10,failed eli,6,active eli,9,pending ivan,8,pending farah,13,pending
bruno
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010055
qwen/qwen3.7-plus
awkweave-0010056
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
chen indigo 10 gus harbor 4 jules fable 45 alice cobalt 38 farah ember 13 hana harbor 98 dina birch 80 farah delta 113 bruno harbor 43
chen indigo 10 gus harbor 4 jules fable 45 alice cobalt 38 farah ember 13 hana harbor 98 dina birch 80 farah delta 113 bruno harbor 43
jules harbor 80 hana grove 94 dina cobalt 103 jules juniper 105 chen grove 56 bruno juniper 34 alice grove 108
jules harbor 80 hana grove 94 dina cobalt 103 jules juniper 105 chen grove 56 bruno juniper 34 alice grove 108
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010056-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
chen indigo 10 gus harbor 4 jules fable 45 alice cobalt 38 farah ember 13 hana harbor 98 dina birch 80 farah delta 113 bruno harbor 43
chen indigo 10 gus harbor 4 jules fable 45 alice cobalt 38 farah ember 13 hana harbor 98 dina birch 80 farah delta 113 bruno harbor 43
jules harbor 80 hana grove 94 dina cobalt 103 jules juniper 105 chen grove 56 bruno juniper 34 alice grove 108
jules harbor 80 hana grove 94 dina cobalt 103 jules juniper 105 chen grove 56 bruno juniper 34 alice grove 108
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010056
qwen/qwen3.7-plus
awkweave-0010057
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
eli ember 55 closed jules ember 63 closed eli birch 120 pending alice fable 33 paused farah delta 12 active kim harbor 70 ready gus cobalt 17 ready hana juniper 62 pending
hana juniper 62 pending
alice indigo 38 pending dina delta 22 closed kim ember 74 closed bruno grove 79 active ivan birch 19 paused eli grove 49 active
alice indigo 38 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010057-p1
Output the longest line from the input; in the event of a tie in length, select the line that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
eli ember 55 closed jules ember 63 closed eli birch 120 pending alice fable 33 paused farah delta 12 active kim harbor 70 ready gus cobalt 17 ready hana juniper 62 pending
hana juniper 62 pending
alice indigo 38 pending dina delta 22 closed kim ember 74 closed bruno grove 79 active ivan birch 19 paused eli grove 49 active
alice indigo 38 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010057
qwen/qwen3.7-plus
awkweave-0010058
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
ivan 100 ivan 25 dina 88 eli 95 kim 30 dina 40 alice 64 hana 17 gus 62
ivan 25 kim 30 hana 17
eli 55 eli 91 gus 92 alice 31 ivan 92 dina 44
eli 91 ivan 92
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010058-p1
Print every third line beginning with line 2 (i.e., lines 2, 5, 8, etc.).
NR%3==2
ivan 100 ivan 25 dina 88 eli 95 kim 30 dina 40 alice 64 hana 17 gus 62
ivan 25 kim 30 hana 17
eli 55 eli 91 gus 92 alice 31 ivan 92 dina 44
eli 91 ivan 92
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010058
qwen/qwen3.7-plus
awkweave-0010059
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
alpha juniper 34 alpha ember 16 alpha juniper 99 alpha grove 75 beta indigo 89 delta birch 95 beta harbor 116 beta grove 105
3
beta cobalt 40 delta juniper 114 beta cobalt 111 delta grove 36 beta harbor 99 gamma cobalt 120 delta juniper 34
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010059-p1
Determine the number of unique values in column 1 and output only that total count.
{if(!seen[$1]++)n++}END{print n+0}
alpha juniper 34 alpha ember 16 alpha juniper 99 alpha grove 75 beta indigo 89 delta birch 95 beta harbor 116 beta grove 105
3
beta cobalt 40 delta juniper 114 beta cobalt 111 delta grove 36 beta harbor 99 gamma cobalt 120 delta juniper 34
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010059
qwen/qwen3.7-plus
awkweave-0010060
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}
chen 4 0 chen 3 3 farah 24 6 ivan 14 16 lina 27 22 hana 25 25 jules 19 1 dina 26 12 bruno 27 2 chen 30 2
chen 1.00 farah 4.00 ivan 0.88 lina 1.23 hana 1.00 jules 19.00 dina 2.17 bruno 13.50 chen 15.00
alice 23 0 kim 24 1 lina 10 13 jules 18 19 kim 2 4 gus 19 25 bruno 28 12 dina 19 29
kim 24.00 lina 0.77 jules 0.95 kim 0.50 gus 0.76 bruno 2.33 dina 0.66
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010060-p1
For every row, output the first and second columns alongside the result of dividing the second column by the third, formatted to two decimal places, while omitting any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
chen 4 0 chen 3 3 farah 24 6 ivan 14 16 lina 27 22 hana 25 25 jules 19 1 dina 26 12 bruno 27 2 chen 30 2
chen 1.00 farah 4.00 ivan 0.88 lina 1.23 hana 1.00 jules 19.00 dina 2.17 bruno 13.50 chen 15.00
alice 23 0 kim 24 1 lina 10 13 jules 18 19 kim 2 4 gus 19 25 bruno 28 12 dina 19 29
kim 24.00 lina 0.77 jules 0.95 kim 0.50 gus 0.76 bruno 2.33 dina 0.66
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010060
qwen/qwen3.7-plus
awkweave-0010061
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
chen birch 25 bruno birch 13 dina harbor 1 kim grove 7 ivan juniper 11 dina indigo 23 lina harbor 29 ivan ember 2 jules ember 5
lina harbor 29 chen birch 25 dina indigo 23
hana ember 23 kim cobalt 10 farah delta 1 ivan harbor 17 hana indigo 30 ivan ember 13 ivan juniper 21 lina juniper 9 farah fable 25
hana indigo 30 farah fable 25 hana ember 23
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010061-p1
Display the three full records with the largest numeric values in the third column, sorted in descending order, maintaining the original input sequence for any tied values.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
chen birch 25 bruno birch 13 dina harbor 1 kim grove 7 ivan juniper 11 dina indigo 23 lina harbor 29 ivan ember 2 jules ember 5
lina harbor 29 chen birch 25 dina indigo 23
hana ember 23 kim cobalt 10 farah delta 1 ivan harbor 17 hana indigo 30 ivan ember 13 ivan juniper 21 lina juniper 9 farah fable 25
hana indigo 30 farah fable 25 hana ember 23
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010061
qwen/qwen3.7-plus
awkweave-0010062
For each line, output fields 3 and 1, in that order.
{print $3, $1}
jules 92 delta delta hana 96 birch amber gus 43 amber birch hana 66 fable amber chen 90 fable amber kim 118 cobalt indigo
delta jules birch hana amber gus fable hana fable chen cobalt kim
farah 63 indigo delta gus 57 ember fable bruno 36 ember indigo eli 30 amber harbor ivan 73 indigo ember ivan 105 indigo amber farah 44 delta fable
indigo farah ember gus ember bruno amber eli indigo ivan indigo ivan delta farah
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010062-p1
Output the third field followed by the first field for each line.
{print $3, $1}
jules 92 delta delta hana 96 birch amber gus 43 amber birch hana 66 fable amber chen 90 fable amber kim 118 cobalt indigo
delta jules birch hana amber gus fable hana fable chen cobalt kim
farah 63 indigo delta gus 57 ember fable bruno 36 ember indigo eli 30 amber harbor ivan 73 indigo ember ivan 105 indigo amber farah 44 delta fable
indigo farah ember gus ember bruno amber eli indigo ivan indigo ivan delta farah
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010062
qwen/qwen3.7-plus
awkweave-0010063
Print the last field of every input line.
{print $NF}
117 paused closed active 17 41 closed pending pending 20 64 active ready active 69 120 pending paused closed 113 48 failed failed ready 39 84 pending active ready 52
17 20 69 113 39 52
7 active active ready 18 120 pending closed ready 92 23 ready closed failed 25 72 closed closed paused 117 115 pending closed closed 110 117 active paused pending 6
18 92 25 117 110 6
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010063-p1
Print the final field from every input line.
{print $NF}
117 paused closed active 17 41 closed pending pending 20 64 active ready active 69 120 pending paused closed 113 48 failed failed ready 39 84 pending active ready 52
17 20 69 113 39 52
7 active active ready 18 120 pending closed ready 92 23 ready closed failed 25 72 closed closed paused 117 115 pending closed closed 110 117 active paused pending 6
18 92 25 117 110 6
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010063
qwen/qwen3.7-plus
awkweave-0010064
Print the complete records where column 4 is at most 71.
$4 <= 71
failed ready gus 99 closed active ready ivan 82 pending paused active lina 87 ready ready closed alice 43 active closed closed gus 57 active active closed alice 78 active
ready closed alice 43 active closed closed gus 57 active
paused ready jules 113 pending active ready farah 20 active failed paused dina 70 failed closed active jules 111 failed pending failed ivan 105 paused pending pending eli 77 paused
active ready farah 20 active failed paused dina 70 failed
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010064-p1
Output the complete records where the value in the fourth column is less than or equal to 71.
$4 <= 71
failed ready gus 99 closed active ready ivan 82 pending paused active lina 87 ready ready closed alice 43 active closed closed gus 57 active active closed alice 78 active
ready closed alice 43 active closed closed gus 57 active
paused ready jules 113 pending active ready farah 20 active failed paused dina 70 failed closed active jules 111 failed pending failed ivan 105 paused pending pending eli 77 paused
active ready farah 20 active failed paused dina 70 failed
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010064
qwen/qwen3.7-plus
awkweave-0010065
Show whole lines whose 3rd field is between 4 and 22, inclusive.
$3 >= 4 && $3 <= 22
pending ember 19 gus ready amber 14 gus ready delta 23 eli paused harbor 24 eli closed juniper 19 alice pending harbor 8 bruno closed harbor 21 bruno
pending ember 19 gus ready amber 14 gus closed juniper 19 alice pending harbor 8 bruno closed harbor 21 bruno
failed fable 28 dina pending birch 18 chen active amber 9 dina ready juniper 18 ivan closed indigo 1 bruno pending fable 26 farah
pending birch 18 chen active amber 9 dina ready juniper 18 ivan
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010065-p1
Display entire lines where the third field falls within the inclusive range of 4 to 22.
$3 >= 4 && $3 <= 22
pending ember 19 gus ready amber 14 gus ready delta 23 eli paused harbor 24 eli closed juniper 19 alice pending harbor 8 bruno closed harbor 21 bruno
pending ember 19 gus ready amber 14 gus closed juniper 19 alice pending harbor 8 bruno closed harbor 21 bruno
failed fable 28 dina pending birch 18 chen active amber 9 dina ready juniper 18 ivan closed indigo 1 bruno pending fable 26 farah
pending birch 18 chen active amber 9 dina ready juniper 18 ivan
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010065
qwen/qwen3.7-plus
awkweave-0010066
Print column 1 only for rows where column 4 is exactly closed.
$4 == "closed"{print $1}
farah 104 delta ready lina 9 delta closed eli 109 ember closed eli 45 delta pending lina 19 indigo paused eli 71 juniper pending
lina eli
dina 49 amber paused dina 83 grove paused alice 48 delta ready dina 55 birch closed lina 52 cobalt pending farah 83 amber closed bruno 47 delta pending alice 68 fable closed jules 42 ember failed
dina farah alice
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010066-p1
Output only the first column for rows where the fourth column contains the exact value 'closed'.
$4 == "closed"{print $1}
farah 104 delta ready lina 9 delta closed eli 109 ember closed eli 45 delta pending lina 19 indigo paused eli 71 juniper pending
lina eli
dina 49 amber paused dina 83 grove paused alice 48 delta ready dina 55 birch closed lina 52 cobalt pending farah 83 amber closed bruno 47 delta pending alice 68 fable closed jules 42 ember failed
dina farah alice
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010066
qwen/qwen3.7-plus
awkweave-0010067
Print all fields from lines where field 1 begins with WARN.
$1 ~ /^WARN/
DEBUG cobalt 33 INFO harbor 7 ERROR harbor 5 ERROR cobalt 61 ERROR grove 78 DEBUG harbor 24 ERROR juniper 71 WARN amber 105 ERROR ember 75 INFO delta 54
WARN amber 105
DEBUG birch 40 ERROR fable 113 WARN delta 10 WARN amber 46 ERROR birch 95 ERROR grove 30
WARN delta 10 WARN amber 46
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010067-p1
Print all fields from lines where the first field starts with the string 'WARN'.
$1 ~ /^WARN/
DEBUG cobalt 33 INFO harbor 7 ERROR harbor 5 ERROR cobalt 61 ERROR grove 78 DEBUG harbor 24 ERROR juniper 71 WARN amber 105 ERROR ember 75 INFO delta 54
WARN amber 105
DEBUG birch 40 ERROR fable 113 WARN delta 10 WARN amber 46 ERROR birch 95 ERROR grove 30
WARN delta 10 WARN amber 46
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010067
qwen/qwen3.7-plus
awkweave-0010068
Print every line except those containing the exact text cobalt.
$0 !~ /cobalt/
fable 5 ready grove 53 pending harbor 41 ready grove 92 closed harbor 80 active birch 33 ready juniper 88 ready grove 70 pending cobalt 999 active
fable 5 ready grove 53 pending harbor 41 ready grove 92 closed harbor 80 active birch 33 ready juniper 88 ready grove 70 pending
cobalt 16 failed birch 24 pending harbor 101 pending grove 50 active cobalt 104 ready fable 76 failed cobalt 999 active
birch 24 pending harbor 101 pending grove 50 active fable 76 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010068-p1
Output every line that does not contain the exact text 'cobalt'.
$0 !~ /cobalt/
fable 5 ready grove 53 pending harbor 41 ready grove 92 closed harbor 80 active birch 33 ready juniper 88 ready grove 70 pending cobalt 999 active
fable 5 ready grove 53 pending harbor 41 ready grove 92 closed harbor 80 active birch 33 ready juniper 88 ready grove 70 pending
cobalt 16 failed birch 24 pending harbor 101 pending grove 50 active cobalt 104 ready fable 76 failed cobalt 999 active
birch 24 pending harbor 101 pending grove 50 active fable 76 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010068
qwen/qwen3.7-plus
awkweave-0010069
Print lines 4 through 5, including both endpoints.
NR >= 4 && NR <= 5
ivan birch 113 bruno harbor 15 farah indigo 25 ivan fable 72 jules birch 48 eli delta 36 dina fable 0 gus harbor 50 chen birch 108 kim amber 48
ivan fable 72 jules birch 48
hana ember 15 hana indigo 0 bruno amber 100 eli grove 65 bruno cobalt 81 ivan grove 59 chen amber 32 kim delta 81
eli grove 65 bruno cobalt 81
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010069-p1
Print lines 4 through 5, inclusive.
NR >= 4 && NR <= 5
ivan birch 113 bruno harbor 15 farah indigo 25 ivan fable 72 jules birch 48 eli delta 36 dina fable 0 gus harbor 50 chen birch 108 kim amber 48
ivan fable 72 jules birch 48
hana ember 15 hana indigo 0 bruno amber 100 eli grove 65 bruno cobalt 81 ivan grove 59 chen amber 32 kim delta 81
eli grove 65 bruno cobalt 81
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010069
qwen/qwen3.7-plus
awkweave-0010070
Output only the first 2 records.
NR <= 2
alice 81 fable farah 10 cobalt hana 70 cobalt lina 105 grove farah 81 delta dina 46 birch chen 31 harbor farah 75 delta
alice 81 fable farah 10 cobalt
bruno 46 birch gus 111 fable gus 61 grove ivan 23 cobalt alice 56 amber lina 64 harbor chen 13 amber
bruno 46 birch gus 111 fable
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010070-p1
Output only the first two records.
NR <= 2
alice 81 fable farah 10 cobalt hana 70 cobalt lina 105 grove farah 81 delta dina 46 birch chen 31 harbor farah 75 delta
alice 81 fable farah 10 cobalt
bruno 46 birch gus 111 fable gus 61 grove ivan 23 cobalt alice 56 amber lina 64 harbor chen 13 amber
bruno 46 birch gus 111 fable
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010070
qwen/qwen3.7-plus
awkweave-0010071
Skip the first line and print every remaining line unchanged.
NR > 1
ivan 96 grove chen 74 indigo lina 77 indigo chen 7 delta ivan 59 amber kim 107 amber gus 57 juniper
chen 74 indigo lina 77 indigo chen 7 delta ivan 59 amber kim 107 amber gus 57 juniper
dina 54 juniper farah 56 amber jules 51 fable gus 56 indigo jules 69 delta gus 117 delta alice 117 delta chen 104 amber
farah 56 amber jules 51 fable gus 56 indigo jules 69 delta gus 117 delta alice 117 delta chen 104 amber
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010071-p1
Skip the first line and print all subsequent lines without modification.
NR > 1
ivan 96 grove chen 74 indigo lina 77 indigo chen 7 delta ivan 59 amber kim 107 amber gus 57 juniper
chen 74 indigo lina 77 indigo chen 7 delta ivan 59 amber kim 107 amber gus 57 juniper
dina 54 juniper farah 56 amber jules 51 fable gus 56 indigo jules 69 delta gus 117 delta alice 117 delta chen 104 amber
farah 56 amber jules 51 fable gus 56 indigo jules 69 delta gus 117 delta alice 117 delta chen 104 amber
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010071
qwen/qwen3.7-plus
awkweave-0010072
Count how many records have paused in column 2. Print 0 if there are none.
$2 == "paused"{n++}END{print n+0}
alice active 2 farah active 95 dina ready 88 kim active 47 kim closed 5 ivan pending 106 bruno closed 17 dina ready 47
0
hana paused 100 eli paused 117 ivan active 103 ivan failed 103 ivan failed 112 gus failed 113 ivan closed 95 hana active 48 hana ready 7
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010072-p1
Output the count of entries marked 'paused' in the second column, defaulting to 0 if no matches are found.
$2 == "paused"{n++}END{print n+0}
alice active 2 farah active 95 dina ready 88 kim active 47 kim closed 5 ivan pending 106 bruno closed 17 dina ready 47
0
hana paused 100 eli paused 117 ivan active 103 ivan failed 103 ivan failed 112 gus failed 113 ivan closed 95 hana active 48 hana ready 7
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010072
qwen/qwen3.7-plus
awkweave-0010073
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
jules 30 amber ivan 1 birch farah 23 amber lina 10 birch kim 5 fable ivan 2 juniper chen 18 birch
89
hana 1 birch jules 13 fable eli 12 harbor hana 1 delta alice 1 grove eli 30 delta bruno 7 amber chen 25 juniper bruno 4 birch alice 30 harbor
124
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010073-p1
Compute and display the total sum of all integer values located in the second column.
{s+=$2}END{print s+0}
jules 30 amber ivan 1 birch farah 23 amber lina 10 birch kim 5 fable ivan 2 juniper chen 18 birch
89
hana 1 birch jules 13 fable eli 12 harbor hana 1 delta alice 1 grove eli 30 delta bruno 7 amber chen 25 juniper bruno 4 birch alice 30 harbor
124
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010073
qwen/qwen3.7-plus
awkweave-0010074
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
indigo 10 hana ember 20 hana amber 7 farah fable 5 alice harbor 5 chen fable 8 alice indigo 2 alice ember 6 bruno
7.88
fable 8 eli delta 1 hana grove 23 eli cobalt 25 kim grove 21 hana harbor 12 kim cobalt 22 eli harbor 13 chen fable 13 hana birch 26 gus
16.40
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010074-p1
Display the average value of the second column, formatted to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
indigo 10 hana ember 20 hana amber 7 farah fable 5 alice harbor 5 chen fable 8 alice indigo 2 alice ember 6 bruno
7.88
fable 8 eli delta 1 hana grove 23 eli cobalt 25 kim grove 21 hana harbor 12 kim cobalt 22 eli harbor 13 chen fable 13 hana birch 26 gus
16.40
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010074
qwen/qwen3.7-plus
awkweave-0010075
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
7 chen amber 14 lina birch 16 dina ember 10 chen indigo 6 gus cobalt 9 eli delta
6
16 dina amber 29 jules delta 21 jules fable 8 eli grove 1 ivan birch 2 jules delta
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010075-p1
Identify and output the minimum numeric value found in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
7 chen amber 14 lina birch 16 dina ember 10 chen indigo 6 gus cobalt 9 eli delta
6
16 dina amber 29 jules delta 21 jules fable 8 eli grove 1 ivan birch 2 jules delta
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010075
qwen/qwen3.7-plus
awkweave-0010076
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
10 gus indigo 5 gus harbor 6 lina delta 10 chen birch 7 kim ember 25 eli cobalt
25
4 gus cobalt 21 lina amber 21 lina birch 21 eli delta 26 jules delta 4 ivan amber 11 ivan indigo 2 alice amber
26
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010076-p1
Identify and output the maximum numeric value found in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
10 gus indigo 5 gus harbor 6 lina delta 10 chen birch 7 kim ember 25 eli cobalt
25
4 gus cobalt 21 lina amber 21 lina birch 21 eli delta 26 jules delta 4 ivan amber 11 ivan indigo 2 alice amber
26
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010076
qwen/qwen3.7-plus
awkweave-0010077
Count all input records and print the total.
END{print NR}
eli 19 alice 64 farah 63 ivan 68 gus 90 dina 111 hana 30 kim 104 kim 42
9
eli 36 ivan 90 ivan 0 ivan 31 kim 78 kim 107 farah 57 gus 49 gus 102 jules 74
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010077-p1
Count the total number of input records and print the result.
END{print NR}
eli 19 alice 64 farah 63 ivan 68 gus 90 dina 111 hana 30 kim 104 kim 42
9
eli 36 ivan 90 ivan 0 ivan 31 kim 78 kim 107 farah 57 gus 49 gus 102 jules 74
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010077
qwen/qwen3.7-plus
awkweave-0010078
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
chen juniper 26 kim fable 22 kim delta 102 kim cobalt 37 kim cobalt 111 hana delta 6 chen juniper 26
chen juniper 26 kim fable 22 kim delta 102 kim cobalt 37 kim cobalt 111 hana delta 6
hana ember 65 kim indigo 5 kim indigo 115 hana birch 109 hana ember 90 hana ember 65 alice indigo 31 ivan birch 16 gus ember 62
hana ember 65 kim indigo 5 kim indigo 115 hana birch 109 hana ember 90 alice indigo 31 ivan birch 16 gus ember 62
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010078-p1
Eliminate exact duplicate lines while maintaining the original sequence and keeping the first instance of each.
!seen[$0]++
chen juniper 26 kim fable 22 kim delta 102 kim cobalt 37 kim cobalt 111 hana delta 6 chen juniper 26
chen juniper 26 kim fable 22 kim delta 102 kim cobalt 37 kim cobalt 111 hana delta 6
hana ember 65 kim indigo 5 kim indigo 115 hana birch 109 hana ember 90 hana ember 65 alice indigo 31 ivan birch 16 gus ember 62
hana ember 65 kim indigo 5 kim indigo 115 hana birch 109 hana ember 90 alice indigo 31 ivan birch 16 gus ember 62
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010078
qwen/qwen3.7-plus
awkweave-0010079
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
eli cobalt 0 chen delta 57 hana ember 22 chen juniper 67 dina harbor 33 dina cobalt 31 kim delta 76 alice ember 113
eli cobalt 0 chen delta 57 hana ember 22 dina harbor 33 kim delta 76 alice ember 113
bruno cobalt 92 lina indigo 76 eli cobalt 69 jules ember 100 lina grove 116 farah indigo 65 chen birch 47 eli grove 58
bruno cobalt 92 lina indigo 76 eli cobalt 69 jules ember 100 farah indigo 65 chen birch 47
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010079-p1
Retain only the initial occurrence for every unique value in the first column, preserving the original input order.
!seen[$1]++
eli cobalt 0 chen delta 57 hana ember 22 chen juniper 67 dina harbor 33 dina cobalt 31 kim delta 76 alice ember 113
eli cobalt 0 chen delta 57 hana ember 22 dina harbor 33 kim delta 76 alice ember 113
bruno cobalt 92 lina indigo 76 eli cobalt 69 jules ember 100 lina grove 116 farah indigo 65 chen birch 47 eli grove 58
bruno cobalt 92 lina indigo 76 eli cobalt 69 jules ember 100 farah indigo 65 chen birch 47
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010079
qwen/qwen3.7-plus
awkweave-0010080
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
lina 12 indigo dina 15 birch farah 24 harbor jules 21 fable gus 25 indigo alice 22 indigo alice 7 harbor alice 22 juniper ivan 12 birch
lina 12 dina 27 farah 51 jules 72 gus 97 alice 119 alice 126 alice 148 ivan 160
bruno 17 amber kim 1 indigo dina 13 harbor chen 28 cobalt chen 6 delta chen 10 grove bruno 7 cobalt farah 24 grove
bruno 17 kim 18 dina 31 chen 59 chen 65 chen 75 bruno 82 farah 106
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010080-p1
For each record, output the value from the first column alongside the cumulative sum of the second column, separated by a space.
{s+=$2;print $1,s}
lina 12 indigo dina 15 birch farah 24 harbor jules 21 fable gus 25 indigo alice 22 indigo alice 7 harbor alice 22 juniper ivan 12 birch
lina 12 dina 27 farah 51 jules 72 gus 97 alice 119 alice 126 alice 148 ivan 160
bruno 17 amber kim 1 indigo dina 13 harbor chen 28 cobalt chen 6 delta chen 10 grove bruno 7 cobalt farah 24 grove
bruno 17 kim 18 dina 31 chen 59 chen 65 chen 75 bruno 82 farah 106
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010080
qwen/qwen3.7-plus
awkweave-0010081
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
eli 2 19 cobalt dina 10 3 fable gus 25 2 cobalt hana 29 10 grove jules 9 7 cobalt jules 20 15 ember
eli 21 dina 13 gus 27 hana 39 jules 16 jules 35
chen 6 20 birch gus 9 14 birch bruno 14 18 ember lina 9 24 cobalt alice 3 20 cobalt lina 26 16 indigo dina 2 11 juniper
chen 26 gus 23 bruno 32 lina 33 alice 23 lina 42 dina 13
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010081-p1
For each row, output the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
eli 2 19 cobalt dina 10 3 fable gus 25 2 cobalt hana 29 10 grove jules 9 7 cobalt jules 20 15 ember
eli 21 dina 13 gus 27 hana 39 jules 16 jules 35
chen 6 20 birch gus 9 14 birch bruno 14 18 ember lina 9 24 cobalt alice 3 20 cobalt lina 26 16 indigo dina 2 11 juniper
chen 26 gus 23 bruno 32 lina 33 alice 23 lina 42 dina 13
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010081
qwen/qwen3.7-plus
awkweave-0010082
Print column 1 and pass when column 2 is at least 26; otherwise print fail.
{print $1,($2>=26?"pass":"fail")}
gus 26 lina 15 lina 22 lina 9 lina 3 alice 17
gus pass lina fail lina fail lina fail lina fail alice fail
gus 12 lina 12 eli 23 ivan 12 eli 28 ivan 10
gus fail lina fail eli fail ivan fail eli pass ivan fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010082-p1
Print the value from the first column along with 'pass' if the second column is 26 or greater; otherwise, print 'fail'.
{print $1,($2>=26?"pass":"fail")}
gus 26 lina 15 lina 22 lina 9 lina 3 alice 17
gus pass lina fail lina fail lina fail lina fail alice fail
gus 12 lina 12 eli 23 ivan 12 eli 28 ivan 10
gus fail lina fail eli fail ivan fail eli pass ivan fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010082
qwen/qwen3.7-plus
awkweave-0010083
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
hana indigo 69 dina birch 77 kim juniper 74 hana grove 119 ivan juniper 102 jules fable 88 eli harbor 107 chen amber 81 lina fable 85 lina delta 36
INDIGO BIRCH JUNIPER GROVE JUNIPER FABLE HARBOR AMBER FABLE DELTA
alice grove 12 hana birch 4 alice indigo 91 eli grove 78 hana harbor 27 lina indigo 100 dina amber 75 eli birch 34 jules juniper 84 gus grove 6
GROVE BIRCH INDIGO GROVE HARBOR INDIGO AMBER BIRCH JUNIPER GROVE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010083-p1
Transform the content of the second column to uppercase and output only that modified column.
{print toupper($2)}
hana indigo 69 dina birch 77 kim juniper 74 hana grove 119 ivan juniper 102 jules fable 88 eli harbor 107 chen amber 81 lina fable 85 lina delta 36
INDIGO BIRCH JUNIPER GROVE JUNIPER FABLE HARBOR AMBER FABLE DELTA
alice grove 12 hana birch 4 alice indigo 91 eli grove 78 hana harbor 27 lina indigo 100 dina amber 75 eli birch 34 jules juniper 84 gus grove 6
GROVE BIRCH INDIGO GROVE HARBOR INDIGO AMBER BIRCH JUNIPER GROVE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010083
qwen/qwen3.7-plus
awkweave-0010084
From column 1, print 4 characters starting at character 2.
{print substr($1,2,4)}
juniper 109 birch 85 fable 74 fable 98 amber 119 harbor 16 harbor 93 delta 116 cobalt 72
unip irch able able mber arbo arbo elta obal
ember 53 harbor 22 cobalt 64 delta 63 birch 22 indigo 57 fable 56
mber arbo obal elta irch ndig able
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010084-p1
Extract and display a 4-character substring from the first column, beginning at the second character.
{print substr($1,2,4)}
juniper 109 birch 85 fable 74 fable 98 amber 119 harbor 16 harbor 93 delta 116 cobalt 72
unip irch able able mber arbo arbo elta obal
ember 53 harbor 22 cobalt 64 delta 63 birch 22 indigo 57 fable 56
mber arbo obal elta irch ndig able
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010084
qwen/qwen3.7-plus
awkweave-0010085
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
amber_amber 14 grove_grove 63 fable_ember 79 cobalt_amber 91 harbor_juniper 106 juniper_grove 120 birch_grove 86 delta_grove 82
amber amber grove grove fable ember cobalt amber harbor juniper juniper grove birch grove delta grove
amber_birch 66 ember_amber 6 amber_harbor 21 fable_ember 30 grove_birch 92 indigo_grove 79
amber birch ember amber amber harbor fable ember grove birch indigo grove
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010085-p1
Substitute all underscores with spaces in the first column and output the modified values.
{gsub(/_/," ",$1);print $1}
amber_amber 14 grove_grove 63 fable_ember 79 cobalt_amber 91 harbor_juniper 106 juniper_grove 120 birch_grove 86 delta_grove 82
amber amber grove grove fable ember cobalt amber harbor juniper juniper grove birch grove delta grove
amber_birch 66 ember_amber 6 amber_harbor 21 fable_ember 30 grove_birch 92 indigo_grove 79
amber birch ember amber amber harbor fable ember grove birch indigo grove
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010085
qwen/qwen3.7-plus
awkweave-0010086
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)}
dina amber 7 closed bruno juniper 64 active kim ember 93 paused chen cobalt 83 ready eli fable 69 closed hana ember 36 closed
closed 7 amber dina active 64 juniper bruno paused 93 ember kim ready 83 cobalt chen closed 69 fable eli closed 36 ember hana
bruno ember 102 active chen grove 51 failed kim delta 57 paused alice birch 87 closed kim juniper 79 closed chen birch 78 ready eli birch 68 active alice amber 114 ready lina cobalt 32 ready
active 102 ember bruno failed 51 grove chen paused 57 delta kim closed 87 birch alice closed 79 juniper kim ready 78 birch chen active 68 birch eli ready 114 amber alice ready 32 cobalt lina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010086-p1
Output all fields for each line after reversing their original sequence.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
dina amber 7 closed bruno juniper 64 active kim ember 93 paused chen cobalt 83 ready eli fable 69 closed hana ember 36 closed
closed 7 amber dina active 64 juniper bruno paused 93 ember kim ready 83 cobalt chen closed 69 fable eli closed 36 ember hana
bruno ember 102 active chen grove 51 failed kim delta 57 paused alice birch 87 closed kim juniper 79 closed chen birch 78 ready eli birch 68 active alice amber 114 ready lina cobalt 32 ready
active 102 ember bruno failed 51 grove chen paused 57 delta kim closed 87 birch alice closed 79 juniper kim ready 78 birch chen active 68 birch eli ready 114 amber alice ready 32 cobalt lina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010086
qwen/qwen3.7-plus
awkweave-0010087
Print the number of whitespace-separated fields on each line.
{print NF}
alice juniper 31 pending chen juniper 85 closed hana harbor 52 ready ivan harbor 10 closed gus birch 87 active dina amber 29 closed ivan harbor 45 paused dina fable 108 pending lina delta 101 paused jules harbor 24 active
4 4 4 4 4 4 4 4 4 4
chen delta 110 closed dina juniper 48 failed chen cobalt 31 ready jules indigo 48 paused lina fable 35 active dina cobalt 57 ready kim amber 25 active dina amber 96 pending eli delta 46 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010087-p1
Display the count of whitespace-delimited fields present on each line.
{print NF}
alice juniper 31 pending chen juniper 85 closed hana harbor 52 ready ivan harbor 10 closed gus birch 87 active dina amber 29 closed ivan harbor 45 paused dina fable 108 pending lina delta 101 paused jules harbor 24 active
4 4 4 4 4 4 4 4 4 4
chen delta 110 closed dina juniper 48 failed chen cobalt 31 ready jules indigo 48 paused lina fable 35 active dina cobalt 57 ready kim amber 25 active dina amber 96 pending eli delta 46 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010087
qwen/qwen3.7-plus
awkweave-0010088
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]]}
kim alpha 34 kim delta 66 ivan beta 109 bruno alpha 30 farah beta 35 jules alpha 27 bruno delta 16 lina alpha 51
alpha 4 delta 2 beta 2
hana beta 74 lina alpha 29 jules gamma 40 hana beta 48 kim alpha 99 gus delta 24 alice alpha 65 ivan alpha 115
beta 2 alpha 4 gamma 1 delta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010088-p1
Tally the occurrences of each unique value in the second column and print the value alongside its count, maintaining the 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]]}
kim alpha 34 kim delta 66 ivan beta 109 bruno alpha 30 farah beta 35 jules alpha 27 bruno delta 16 lina alpha 51
alpha 4 delta 2 beta 2
hana beta 74 lina alpha 29 jules gamma 40 hana beta 48 kim alpha 99 gus delta 24 alice alpha 65 ivan alpha 115
beta 2 alpha 4 gamma 1 delta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010088
qwen/qwen3.7-plus
awkweave-0010089
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]]}
bruno alpha 30 kim beta 5 farah gamma 8 chen alpha 29 jules beta 8 eli gamma 20 chen gamma 3 alice delta 28 alice beta 16 farah gamma 8
alpha 59 beta 29 gamma 39 delta 28
kim delta 6 eli gamma 20 ivan beta 23 kim gamma 4 eli alpha 11 kim gamma 21 ivan alpha 10 alice alpha 26
delta 6 gamma 45 beta 23 alpha 47
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010089-p1
Calculate the sum of the third column for each distinct category in the second column, outputting the results in the order the categories 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]]}
bruno alpha 30 kim beta 5 farah gamma 8 chen alpha 29 jules beta 8 eli gamma 20 chen gamma 3 alice delta 28 alice beta 16 farah gamma 8
alpha 59 beta 29 gamma 39 delta 28
kim delta 6 eli gamma 20 ivan beta 23 kim gamma 4 eli alpha 11 kim gamma 21 ivan alpha 10 alice alpha 26
delta 6 gamma 45 beta 23 alpha 47
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010089
qwen/qwen3.7-plus
awkweave-0010100
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 juniper 16 eli delta 3 farah grove 7 ivan harbor 23 chen fable 2 bruno fable 15
ivan harbor 23 kim juniper 16 bruno fable 15
chen juniper 2 kim indigo 6 gus cobalt 1 lina indigo 11 bruno delta 22 eli indigo 7
bruno delta 22 lina indigo 11 eli indigo 7
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010100-p1
Output the top 3 records based on the highest numeric values in the third column, sorted in descending order, while keeping 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 juniper 16 eli delta 3 farah grove 7 ivan harbor 23 chen fable 2 bruno fable 15
ivan harbor 23 kim juniper 16 bruno fable 15
chen juniper 2 kim indigo 6 gus cobalt 1 lina indigo 11 bruno delta 22 eli indigo 7
bruno delta 22 lina indigo 11 eli indigo 7
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010100
qwen/qwen3.7-plus
awkweave-0010101
Print column 4 followed by column 3 for every record.
{print $4, $3}
ivan 89 paused juniper farah 53 closed ember ivan 15 active indigo hana 68 pending birch bruno 21 active fable eli 111 closed grove alice 47 closed cobalt dina 111 paused fable chen 41 paused cobalt
juniper paused ember closed indigo active birch pending fable active grove closed cobalt closed fable paused cobalt paused
dina 93 paused ember ivan 27 ready delta alice 58 closed harbor hana 81 paused delta hana 34 ready indigo jules 7 paused harbor kim 104 failed birch jules 91 pending indigo bruno 8 paused grove bruno 77 ready indigo
ember paused delta ready harbor closed delta paused indigo ready harbor paused birch failed indigo pending grove paused indigo ready
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010101-p1
For every record, output the fourth column followed by the third column.
{print $4, $3}
ivan 89 paused juniper farah 53 closed ember ivan 15 active indigo hana 68 pending birch bruno 21 active fable eli 111 closed grove alice 47 closed cobalt dina 111 paused fable chen 41 paused cobalt
juniper paused ember closed indigo active birch pending fable active grove closed cobalt closed fable paused cobalt paused
dina 93 paused ember ivan 27 ready delta alice 58 closed harbor hana 81 paused delta hana 34 ready indigo jules 7 paused harbor kim 104 failed birch jules 91 pending indigo bruno 8 paused grove bruno 77 ready indigo
ember paused delta ready harbor closed delta paused indigo ready harbor paused birch failed indigo pending grove paused indigo ready
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010101
qwen/qwen3.7-plus
awkweave-0010102
Print the last field of every input line.
{print $NF}
ready ready failed 81 paused 26 alice closed closed failed 37 paused 12 dina paused pending ready 108 paused 39 gus failed failed failed 10 pending 59 gus failed paused closed 105 failed 74 hana pending paused failed 73 paused 48 jules
alice dina gus gus hana jules
closed pending ready 39 paused 35 lina closed paused paused 111 failed 56 gus paused pending ready 88 ready 85 chen ready ready paused 81 failed 110 eli failed pending failed 99 pending 114 eli paused ready ready 86 active 15 gus ready ready active 68 pending 118 dina failed ready closed 3 closed 96 bruno ready paused ...
lina gus chen eli eli gus dina bruno lina
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010102-p1
Display the final field from every input line.
{print $NF}
ready ready failed 81 paused 26 alice closed closed failed 37 paused 12 dina paused pending ready 108 paused 39 gus failed failed failed 10 pending 59 gus failed paused closed 105 failed 74 hana pending paused failed 73 paused 48 jules
alice dina gus gus hana jules
closed pending ready 39 paused 35 lina closed paused paused 111 failed 56 gus paused pending ready 88 ready 85 chen ready ready paused 81 failed 110 eli failed pending failed 99 pending 114 eli paused ready ready 86 active 15 gus ready ready active 68 pending 118 dina failed ready closed 3 closed 96 bruno ready paused ...
lina gus chen eli eli gus dina bruno lina
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010102
qwen/qwen3.7-plus
awkweave-0010103
Print the complete records where column 4 is less than 75.
$4 < 75
ivan ember eli 33 ready alice juniper dina 53 paused dina cobalt jules 41 closed alice grove bruno 80 failed hana indigo bruno 111 paused chen amber farah 24 paused ivan grove jules 111 ready gus indigo eli 58 ready bruno ember kim 116 paused
ivan ember eli 33 ready alice juniper dina 53 paused dina cobalt jules 41 closed chen amber farah 24 paused gus indigo eli 58 ready
alice ember farah 90 pending bruno harbor bruno 116 failed chen fable jules 48 active bruno ember dina 79 closed lina cobalt ivan 6 active ivan birch gus 3 ready farah harbor eli 98 paused chen grove lina 59 pending
chen fable jules 48 active lina cobalt ivan 6 active ivan birch gus 3 ready chen grove lina 59 pending
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010103-p1
Output the full records where the value in the fourth column is strictly less than 75.
$4 < 75
ivan ember eli 33 ready alice juniper dina 53 paused dina cobalt jules 41 closed alice grove bruno 80 failed hana indigo bruno 111 paused chen amber farah 24 paused ivan grove jules 111 ready gus indigo eli 58 ready bruno ember kim 116 paused
ivan ember eli 33 ready alice juniper dina 53 paused dina cobalt jules 41 closed chen amber farah 24 paused gus indigo eli 58 ready
alice ember farah 90 pending bruno harbor bruno 116 failed chen fable jules 48 active bruno ember dina 79 closed lina cobalt ivan 6 active ivan birch gus 3 ready farah harbor eli 98 paused chen grove lina 59 pending
chen fable jules 48 active lina cobalt ivan 6 active ivan birch gus 3 ready chen grove lina 59 pending
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010103
qwen/qwen3.7-plus
awkweave-0010104
Show whole lines whose 2nd field is between 9 and 29, inclusive.
$2 >= 9 && $2 <= 29
grove 6 closed amber fable 25 active grove birch 27 active harbor cobalt 8 closed amber indigo 21 pending delta amber 14 paused grove ember 25 active grove grove 24 paused amber juniper 2 closed birch ember 17 closed grove
fable 25 active grove birch 27 active harbor indigo 21 pending delta amber 14 paused grove ember 25 active grove grove 24 paused amber ember 17 closed grove
cobalt 14 ready birch delta 21 failed birch indigo 11 failed indigo cobalt 7 ready juniper harbor 1 paused ember birch 20 closed birch juniper 7 closed grove juniper 22 paused cobalt harbor 27 ready harbor
cobalt 14 ready birch delta 21 failed birch indigo 11 failed indigo birch 20 closed birch juniper 22 paused cobalt harbor 27 ready harbor
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010104-p1
Display entire lines where the second field falls within the inclusive range of 9 to 29.
$2 >= 9 && $2 <= 29
grove 6 closed amber fable 25 active grove birch 27 active harbor cobalt 8 closed amber indigo 21 pending delta amber 14 paused grove ember 25 active grove grove 24 paused amber juniper 2 closed birch ember 17 closed grove
fable 25 active grove birch 27 active harbor indigo 21 pending delta amber 14 paused grove ember 25 active grove grove 24 paused amber ember 17 closed grove
cobalt 14 ready birch delta 21 failed birch indigo 11 failed indigo cobalt 7 ready juniper harbor 1 paused ember birch 20 closed birch juniper 7 closed grove juniper 22 paused cobalt harbor 27 ready harbor
cobalt 14 ready birch delta 21 failed birch indigo 11 failed indigo birch 20 closed birch juniper 22 paused cobalt harbor 27 ready harbor
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010104
qwen/qwen3.7-plus
awkweave-0010105
Print column 4 only for rows where column 2 is exactly closed.
$2 == "closed"{print $4}
101 failed indigo jules 67 paused fable chen 47 closed cobalt ivan 114 active juniper hana 79 closed harbor bruno 66 ready amber farah 94 pending ember hana 83 closed indigo bruno 95 pending amber gus 83 paused fable bruno
ivan bruno bruno
60 paused harbor farah 110 pending harbor hana 18 pending delta ivan 120 ready birch ivan 102 closed fable dina 18 active indigo alice 4 ready indigo lina
dina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010105-p1
Output only the fourth column for rows where the second column is exactly 'closed'.
$2 == "closed"{print $4}
101 failed indigo jules 67 paused fable chen 47 closed cobalt ivan 114 active juniper hana 79 closed harbor bruno 66 ready amber farah 94 pending ember hana 83 closed indigo bruno 95 pending amber gus 83 paused fable bruno
ivan bruno bruno
60 paused harbor farah 110 pending harbor hana 18 pending delta ivan 120 ready birch ivan 102 closed fable dina 18 active indigo alice 4 ready indigo lina
dina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010105
qwen/qwen3.7-plus
awkweave-0010106
Print all fields from lines where field 3 begins with WARN.
$3 ~ /^WARN/
37 juniper INFO 70 delta DEBUG 100 cobalt DEBUG 23 ember INFO 98 grove WARN 3 fable WARN 73 harbor INFO 27 cobalt ERROR 106 indigo ERROR 120 amber WARN
98 grove WARN 3 fable WARN 120 amber WARN
19 harbor INFO 17 grove ERROR 23 indigo WARN 106 fable INFO 116 fable ERROR 27 fable INFO 3 juniper DEBUG 87 juniper INFO 94 amber DEBUG 97 cobalt DEBUG
23 indigo WARN
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010106-p1
Display every field for rows where the third field starts with WARN.
$3 ~ /^WARN/
37 juniper INFO 70 delta DEBUG 100 cobalt DEBUG 23 ember INFO 98 grove WARN 3 fable WARN 73 harbor INFO 27 cobalt ERROR 106 indigo ERROR 120 amber WARN
98 grove WARN 3 fable WARN 120 amber WARN
19 harbor INFO 17 grove ERROR 23 indigo WARN 106 fable INFO 116 fable ERROR 27 fable INFO 3 juniper DEBUG 87 juniper INFO 94 amber DEBUG 97 cobalt DEBUG
23 indigo WARN
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010106
qwen/qwen3.7-plus
awkweave-0010107
Print every line except those containing the exact text amber.
$0 !~ /amber/
grove 51 ready grove 37 paused harbor 93 paused fable 71 paused harbor 44 ready amber 102 pending fable 100 ready juniper 32 paused ember 50 active amber 59 failed amber 999 active
grove 51 ready grove 37 paused harbor 93 paused fable 71 paused harbor 44 ready fable 100 ready juniper 32 paused ember 50 active
harbor 83 active delta 24 closed cobalt 91 active birch 118 closed delta 96 ready fable 17 ready cobalt 63 paused delta 59 failed ember 79 pending harbor 78 active amber 999 active
harbor 83 active delta 24 closed cobalt 91 active birch 118 closed delta 96 ready fable 17 ready cobalt 63 paused delta 59 failed ember 79 pending harbor 78 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010107-p1
Output all lines that do not contain the exact string amber.
$0 !~ /amber/
grove 51 ready grove 37 paused harbor 93 paused fable 71 paused harbor 44 ready amber 102 pending fable 100 ready juniper 32 paused ember 50 active amber 59 failed amber 999 active
grove 51 ready grove 37 paused harbor 93 paused fable 71 paused harbor 44 ready fable 100 ready juniper 32 paused ember 50 active
harbor 83 active delta 24 closed cobalt 91 active birch 118 closed delta 96 ready fable 17 ready cobalt 63 paused delta 59 failed ember 79 pending harbor 78 active amber 999 active
harbor 83 active delta 24 closed cobalt 91 active birch 118 closed delta 96 ready fable 17 ready cobalt 63 paused delta 59 failed ember 79 pending harbor 78 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010107
qwen/qwen3.7-plus
awkweave-0010108
Print lines 2 through 5, including both endpoints.
NR >= 2 && NR <= 5
hana delta 90 hana delta 0 jules amber 95 ivan indigo 113 ivan ember 112 kim indigo 9 kim birch 12 hana birch 37
hana delta 0 jules amber 95 ivan indigo 113 ivan ember 112
hana indigo 99 eli birch 23 hana cobalt 99 alice juniper 114 ivan grove 110 alice indigo 73 farah fable 99 lina delta 29 farah grove 87 farah juniper 25
eli birch 23 hana cobalt 99 alice juniper 114 ivan grove 110
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010108-p1
Print lines 2 to 5, inclusive of both ends.
NR >= 2 && NR <= 5
hana delta 90 hana delta 0 jules amber 95 ivan indigo 113 ivan ember 112 kim indigo 9 kim birch 12 hana birch 37
hana delta 0 jules amber 95 ivan indigo 113 ivan ember 112
hana indigo 99 eli birch 23 hana cobalt 99 alice juniper 114 ivan grove 110 alice indigo 73 farah fable 99 lina delta 29 farah grove 87 farah juniper 25
eli birch 23 hana cobalt 99 alice juniper 114 ivan grove 110
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010108
qwen/qwen3.7-plus
awkweave-0010109
Output only the first 3 records.
NR <= 3
kim 68 fable kim 3 birch ivan 98 ember alice 10 grove jules 11 fable eli 91 grove dina 42 birch
kim 68 fable kim 3 birch ivan 98 ember
hana 10 juniper gus 47 grove dina 59 ember chen 60 fable gus 1 grove alice 3 indigo alice 75 juniper kim 73 cobalt
hana 10 juniper gus 47 grove dina 59 ember
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010109-p1
Show only the first 3 records.
NR <= 3
kim 68 fable kim 3 birch ivan 98 ember alice 10 grove jules 11 fable eli 91 grove dina 42 birch
kim 68 fable kim 3 birch ivan 98 ember
hana 10 juniper gus 47 grove dina 59 ember chen 60 fable gus 1 grove alice 3 indigo alice 75 juniper kim 73 cobalt
hana 10 juniper gus 47 grove dina 59 ember
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010109
qwen/qwen3.7-plus
awkweave-0010110
Skip the first line and print every remaining line unchanged.
NR > 1
lina 6 delta gus 74 indigo alice 56 birch lina 32 fable jules 1 amber bruno 103 juniper farah 23 amber lina 87 birch jules 103 ember
gus 74 indigo alice 56 birch lina 32 fable jules 1 amber bruno 103 juniper farah 23 amber lina 87 birch jules 103 ember
chen 0 cobalt gus 101 birch alice 26 juniper gus 99 birch hana 44 cobalt ivan 88 harbor dina 112 ember
gus 101 birch alice 26 juniper gus 99 birch hana 44 cobalt ivan 88 harbor dina 112 ember
skip_header
1
train
original-grammar
CC-BY-4.0
null
null