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-0016330-p1
List each unique value from the first column along with its frequency, ordered by when it first appears.
{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]]}
delta fable 24 alpha birch 82 beta delta 20 alpha fable 33 beta harbor 97 delta indigo 111 delta ember 10 alpha indigo 115 beta amber 105 beta ember 11
delta 3 alpha 3 beta 4
alpha fable 42 delta juniper 27 gamma ember 73 delta delta 25 delta amber 11 alpha juniper 8 alpha harbor 31
alpha 3 delta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016330
qwen/qwen3.7-plus
awkweave-0016331
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"]}
record_id note region state r001 farah 28 failed r002 farah 15 ready r003 alice 7 closed r004 kim 30 ready r005 dina 7 active r006 hana 10 pending r007 gus 25 ready r008 dina 26 active r009 bruno 3 closed r010 lina 2 closed
28 15 7 30 7 10 25 26 3 2
record_id note region state r001 kim 17 active r002 kim 24 paused r003 alice 16 paused r004 alice 2 active r005 farah 13 active r006 bruno 19 closed r007 eli 5 active r008 kim 16 failed r009 hana 11 closed r010 kim 13 paused
17 24 16 2 13 19 5 16 11 13
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016331-p1
Skip the header row and output the region field for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
record_id note region state r001 farah 28 failed r002 farah 15 ready r003 alice 7 closed r004 kim 30 ready r005 dina 7 active r006 hana 10 pending r007 gus 25 ready r008 dina 26 active r009 bruno 3 closed r010 lina 2 closed
28 15 7 30 7 10 25 26 3 2
record_id note region state r001 kim 17 active r002 kim 24 paused r003 alice 16 paused r004 alice 2 active r005 farah 13 active r006 bruno 19 closed r007 eli 5 active r008 kim 16 failed r009 hana 11 closed r010 kim 13 paused
17 24 16 2 13 19 5 16 11 13
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016331
qwen/qwen3.7-plus
awkweave-0016332
The first row is a header. Print display_name for data rows whose score is 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 gus 6 paused r002 eli 12 active r003 jules 23 failed r004 alice 13 failed r005 bruno 16 failed r006 gus 1 ready r007 kim 19 active r008 alice 4 active r009 chen 11 ready r010 hana 30 closed
hana
record_id display_name score state r001 gus 24 closed r002 alice 26 closed r003 bruno 28 active r004 farah 18 active r005 ivan 25 failed r006 jules 25 pending
alice bruno ivan jules
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016332-p1
Ignoring the header, display 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 gus 6 paused r002 eli 12 active r003 jules 23 failed r004 alice 13 failed r005 bruno 16 failed r006 gus 1 ready r007 kim 19 active r008 alice 4 active r009 chen 11 ready r010 hana 30 closed
hana
record_id display_name score state r001 gus 24 closed r002 alice 26 closed r003 bruno 28 active r004 farah 18 active r005 ivan 25 failed r006 jules 25 pending
alice bruno ivan jules
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016332
qwen/qwen3.7-plus
awkweave-0016333
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 2 failed dina 19 paused farah 26 closed bruno 1 pending gus 26 paused farah 15 pending
2 19 26 1 26 15
ivan 7 pending eli 25 active gus 27 ready ivan 19 pending farah 16 pending chen 21 pending bruno 24 paused hana 11 pending kim 15 closed gus 16 paused
7 25 27 19 16 21 24 11 15 16
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016333-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 2 failed dina 19 paused farah 26 closed bruno 1 pending gus 26 paused farah 15 pending
2 19 26 1 26 15
ivan 7 pending eli 25 active gus 27 ready ivan 19 pending farah 16 pending chen 21 pending bruno 24 paused hana 11 pending kim 15 closed gus 16 paused
7 25 27 19 16 21 24 11 15 16
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0016333
qwen/qwen3.7-plus
awkweave-0016334
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 8.
BEGIN{FS=OFS=","}$2>8{print $1}
ivan,10,failed alice,4,ready alice,15,closed kim,25,failed lina,9,active eli,9,closed chen,26,failed lina,22,closed
ivan alice kim lina eli chen lina
lina,28,pending hana,14,paused kim,9,closed bruno,3,paused ivan,28,pending jules,11,pending jules,15,failed kim,27,failed farah,2,paused bruno,24,failed
lina hana kim ivan jules jules kim bruno
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016334-p1
For simple CSV data without quoted commas, output the first column only if the second column value is greater than 8.
BEGIN{FS=OFS=","}$2>8{print $1}
ivan,10,failed alice,4,ready alice,15,closed kim,25,failed lina,9,active eli,9,closed chen,26,failed lina,22,closed
ivan alice kim lina eli chen lina
lina,28,pending hana,14,paused kim,9,closed bruno,3,paused ivan,28,pending jules,11,pending jules,15,failed kim,27,failed farah,2,paused bruno,24,failed
lina hana kim ivan jules jules kim bruno
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016334
qwen/qwen3.7-plus
awkweave-0016335
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
dina indigo 52 eli fable 113 chen harbor 74 farah cobalt 21 bruno cobalt 79 eli fable 15 kim ember 116 jules amber 60
dina indigo 52 eli fable 113 chen harbor 74 farah cobalt 21 bruno cobalt 79 eli fable 15 kim ember 116 jules amber 60
alice harbor 97 kim amber 13 jules ember 79 bruno grove 56 ivan juniper 98 eli delta 5 eli indigo 9
alice harbor 97 kim amber 13 jules ember 79 bruno grove 56 ivan juniper 98 eli delta 5 eli indigo 9
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016335-p1
Remove leading and trailing whitespace from each line and replace sequences of internal whitespace with a single space.
{$1=$1;print}
dina indigo 52 eli fable 113 chen harbor 74 farah cobalt 21 bruno cobalt 79 eli fable 15 kim ember 116 jules amber 60
dina indigo 52 eli fable 113 chen harbor 74 farah cobalt 21 bruno cobalt 79 eli fable 15 kim ember 116 jules amber 60
alice harbor 97 kim amber 13 jules ember 79 bruno grove 56 ivan juniper 98 eli delta 5 eli indigo 9
alice harbor 97 kim amber 13 jules ember 79 bruno grove 56 ivan juniper 98 eli delta 5 eli indigo 9
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016335
qwen/qwen3.7-plus
awkweave-0016336
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
dina birch 80 active chen juniper 115 ready bruno indigo 62 failed bruno delta 20 paused lina fable 61 closed hana amber 0 active lina indigo 60 failed
chen juniper 115 ready
chen grove 6 failed hana juniper 60 ready ivan ember 12 paused jules harbor 82 failed hana delta 35 failed eli cobalt 97 active jules grove 28 paused farah amber 111 pending
farah amber 111 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016336-p1
Identify and print the longest line in the input; if multiple lines share the maximum length, select the first one.
{if(length($0)>length(best))best=$0}END{print best}
dina birch 80 active chen juniper 115 ready bruno indigo 62 failed bruno delta 20 paused lina fable 61 closed hana amber 0 active lina indigo 60 failed
chen juniper 115 ready
chen grove 6 failed hana juniper 60 ready ivan ember 12 paused jules harbor 82 failed hana delta 35 failed eli cobalt 97 active jules grove 28 paused farah amber 111 pending
farah amber 111 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016336
qwen/qwen3.7-plus
awkweave-0016337
Print every 3rd line starting at line 3 (then line 6, and so on).
NR%3==0
ivan 9 jules 62 farah 30 bruno 114 farah 118 gus 51 bruno 3 eli 54
farah 30 gus 51
kim 91 dina 59 lina 111 gus 118 gus 97 kim 17 ivan 49
lina 111 kim 17
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016337-p1
Output every third line of the input, beginning with line 3 (i.e., lines 3, 6, 9, etc.).
NR%3==0
ivan 9 jules 62 farah 30 bruno 114 farah 118 gus 51 bruno 3 eli 54
farah 30 gus 51
kim 91 dina 59 lina 111 gus 118 gus 97 kim 17 ivan 49
lina 111 kim 17
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016337
qwen/qwen3.7-plus
awkweave-0016338
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
delta juniper 19 gamma birch 48 alpha delta 118 alpha cobalt 79 alpha cobalt 79 gamma cobalt 23 alpha cobalt 8 delta grove 11 beta cobalt 108 gamma amber 107
6
beta amber 95 alpha juniper 57 beta birch 60 gamma delta 50 delta cobalt 18 alpha grove 39 alpha indigo 92 delta birch 92 gamma indigo 93
7
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016338-p1
Calculate the number of unique values in the second column and print just that total count.
{if(!seen[$2]++)n++}END{print n+0}
delta juniper 19 gamma birch 48 alpha delta 118 alpha cobalt 79 alpha cobalt 79 gamma cobalt 23 alpha cobalt 8 delta grove 11 beta cobalt 108 gamma amber 107
6
beta amber 95 alpha juniper 57 beta birch 60 gamma delta 50 delta cobalt 18 alpha grove 39 alpha indigo 92 delta birch 92 gamma indigo 93
7
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016338
qwen/qwen3.7-plus
awkweave-0016339
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 2 0 farah 10 6 hana 19 9 farah 11 14 kim 20 29 ivan 1 17 bruno 21 12 dina 21 16 ivan 18 24
farah 1.67 hana 2.11 farah 0.79 kim 0.69 ivan 0.06 bruno 1.75 dina 1.31 ivan 0.75
gus 19 0 lina 28 6 dina 14 28 alice 13 24 jules 25 7 bruno 7 18 eli 4 14
lina 4.67 dina 0.50 alice 0.54 jules 3.57 bruno 0.39 eli 0.29
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016339-p1
For each row where the third column is non-zero, print the first column and the result of dividing the second column by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 2 0 farah 10 6 hana 19 9 farah 11 14 kim 20 29 ivan 1 17 bruno 21 12 dina 21 16 ivan 18 24
farah 1.67 hana 2.11 farah 0.79 kim 0.69 ivan 0.06 bruno 1.75 dina 1.31 ivan 0.75
gus 19 0 lina 28 6 dina 14 28 alice 13 24 jules 25 7 bruno 7 18 eli 4 14
lina 4.67 dina 0.50 alice 0.54 jules 3.57 bruno 0.39 eli 0.29
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016339
qwen/qwen3.7-plus
awkweave-0016340
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]}
hana fable 15 alice delta 22 kim ember 16 chen grove 2 hana cobalt 12 bruno birch 1 hana indigo 5 hana amber 22 chen harbor 14 chen harbor 9
alice delta 22 hana amber 22 kim ember 16
gus juniper 3 dina birch 4 chen amber 2 dina ember 18 kim grove 30 jules harbor 20 jules indigo 5 eli fable 18 lina birch 12 lina cobalt 12
kim grove 30 jules harbor 20 dina ember 18
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016340-p1
Select the top three records based on the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
hana fable 15 alice delta 22 kim ember 16 chen grove 2 hana cobalt 12 bruno birch 1 hana indigo 5 hana amber 22 chen harbor 14 chen harbor 9
alice delta 22 hana amber 22 kim ember 16
gus juniper 3 dina birch 4 chen amber 2 dina ember 18 kim grove 30 jules harbor 20 jules indigo 5 eli fable 18 lina birch 12 lina cobalt 12
kim grove 30 jules harbor 20 dina ember 18
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016340
qwen/qwen3.7-plus
awkweave-0016341
For each line, output fields 6 and 2, in that order.
{print $6, $2}
24 alice 28 farah gus 86 53 eli 87 ivan chen 42 118 dina 118 farah dina 0 36 ivan 1 hana farah 87 52 farah 80 jules hana 28 82 chen 5 kim alice 98 89 dina 110 eli eli 78 28 kim 62 kim gus 12 74 ivan 67 ivan alice 107 43 jules 116 farah gus 87
86 alice 42 eli 0 dina 87 ivan 28 farah 98 chen 78 dina 12 kim 107 ivan 87 jules
39 eli 114 ivan lina 95 45 kim 104 farah dina 34 99 bruno 99 kim hana 34 42 ivan 67 bruno ivan 85 100 jules 58 bruno dina 100 6 alice 6 kim alice 18
95 eli 34 kim 34 bruno 85 ivan 100 jules 18 alice
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016341-p1
For every line, print the sixth field followed by the second field.
{print $6, $2}
24 alice 28 farah gus 86 53 eli 87 ivan chen 42 118 dina 118 farah dina 0 36 ivan 1 hana farah 87 52 farah 80 jules hana 28 82 chen 5 kim alice 98 89 dina 110 eli eli 78 28 kim 62 kim gus 12 74 ivan 67 ivan alice 107 43 jules 116 farah gus 87
86 alice 42 eli 0 dina 87 ivan 28 farah 98 chen 78 dina 12 kim 107 ivan 87 jules
39 eli 114 ivan lina 95 45 kim 104 farah dina 34 99 bruno 99 kim hana 34 42 ivan 67 bruno ivan 85 100 jules 58 bruno dina 100 6 alice 6 kim alice 18
95 eli 34 kim 34 bruno 85 ivan 100 jules 18 alice
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016341
qwen/qwen3.7-plus
awkweave-0016342
Print the last field of every input line.
{print $NF}
active 33 5 23 ready 63 paused 22 46 34 paused 51 ready 43 84 82 closed 24 paused 27 19 28 closed 67 active 82 29 77 pending 116 paused 70 45 44 pending 49 ready 0 19 25 paused 52 pending 0 40 65 active 55 failed 58 54 33 failed 119 closed 79 94 63 active 117
63 51 24 67 116 49 52 55 119 117
paused 45 17 108 closed 82 paused 62 80 62 ready 56 failed 58 40 87 paused 64 active 32 117 70 pending 7 pending 64 6 86 ready 93 active 29 113 86 pending 78 closed 21 50 39 failed 29 failed 98 10 44 failed 34
82 56 64 7 93 78 29 34
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016342-p1
Output the final field from each line of input.
{print $NF}
active 33 5 23 ready 63 paused 22 46 34 paused 51 ready 43 84 82 closed 24 paused 27 19 28 closed 67 active 82 29 77 pending 116 paused 70 45 44 pending 49 ready 0 19 25 paused 52 pending 0 40 65 active 55 failed 58 54 33 failed 119 closed 79 94 63 active 117
63 51 24 67 116 49 52 55 119 117
paused 45 17 108 closed 82 paused 62 80 62 ready 56 failed 58 40 87 paused 64 active 32 117 70 pending 7 pending 64 6 86 ready 93 active 29 113 86 pending 78 closed 21 50 39 failed 29 failed 98 10 44 failed 34
82 56 64 7 93 78 29 34
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016342
qwen/qwen3.7-plus
awkweave-0016343
Print the complete records where column 3 is at least 46.
$3 >= 46
jules ready 76 grove chen pending 105 cobalt kim closed 106 cobalt gus paused 64 birch dina ready 111 indigo bruno closed 62 delta dina active 37 indigo alice ready 107 ember lina closed 69 indigo
jules ready 76 grove chen pending 105 cobalt kim closed 106 cobalt gus paused 64 birch dina ready 111 indigo bruno closed 62 delta alice ready 107 ember lina closed 69 indigo
dina paused 115 delta gus closed 23 amber gus paused 70 cobalt dina ready 11 harbor lina closed 52 indigo jules failed 22 harbor jules ready 108 grove jules pending 103 grove gus active 84 juniper
dina paused 115 delta gus paused 70 cobalt lina closed 52 indigo jules ready 108 grove jules pending 103 grove gus active 84 juniper
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016343-p1
Display full records where the value in the third column is greater than or equal to 46.
$3 >= 46
jules ready 76 grove chen pending 105 cobalt kim closed 106 cobalt gus paused 64 birch dina ready 111 indigo bruno closed 62 delta dina active 37 indigo alice ready 107 ember lina closed 69 indigo
jules ready 76 grove chen pending 105 cobalt kim closed 106 cobalt gus paused 64 birch dina ready 111 indigo bruno closed 62 delta alice ready 107 ember lina closed 69 indigo
dina paused 115 delta gus closed 23 amber gus paused 70 cobalt dina ready 11 harbor lina closed 52 indigo jules failed 22 harbor jules ready 108 grove jules pending 103 grove gus active 84 juniper
dina paused 115 delta gus paused 70 cobalt lina closed 52 indigo jules ready 108 grove jules pending 103 grove gus active 84 juniper
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016343
qwen/qwen3.7-plus
awkweave-0016344
Show whole lines whose 1st field is between 8 and 20, inclusive.
$1 >= 8 && $1 <= 20
18 amber juniper delta 6 birch indigo fable 10 harbor cobalt juniper 30 delta amber juniper 4 amber harbor ember 6 cobalt harbor delta
18 amber juniper delta 10 harbor cobalt juniper
16 birch juniper cobalt 17 delta fable fable 22 birch delta juniper 3 amber juniper fable 22 birch fable harbor 29 juniper juniper juniper 12 amber amber ember 1 ember juniper ember 19 cobalt ember juniper 11 delta harbor ember
16 birch juniper cobalt 17 delta fable fable 12 amber amber ember 19 cobalt ember juniper 11 delta harbor ember
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016344-p1
Show entire lines where the first field falls within the inclusive range of 8 to 20.
$1 >= 8 && $1 <= 20
18 amber juniper delta 6 birch indigo fable 10 harbor cobalt juniper 30 delta amber juniper 4 amber harbor ember 6 cobalt harbor delta
18 amber juniper delta 10 harbor cobalt juniper
16 birch juniper cobalt 17 delta fable fable 22 birch delta juniper 3 amber juniper fable 22 birch fable harbor 29 juniper juniper juniper 12 amber amber ember 1 ember juniper ember 19 cobalt ember juniper 11 delta harbor ember
16 birch juniper cobalt 17 delta fable fable 12 amber amber ember 19 cobalt ember juniper 11 delta harbor ember
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016344
qwen/qwen3.7-plus
awkweave-0016345
Print column 4 only for rows where column 1 is exactly active.
$1 == "active"{print $4}
ready 52 delta ivan closed 80 delta chen ready 72 amber farah pending 40 birch chen active 106 grove chen active 114 birch jules failed 36 juniper lina closed 1 juniper chen active 106 grove dina ready 46 birch hana
chen jules dina
paused 66 ember bruno paused 83 juniper farah pending 23 indigo eli ready 92 ember lina pending 15 harbor eli paused 73 harbor ivan pending 22 delta dina pending 80 harbor gus active 103 harbor kim
kim
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016345-p1
Extract and print only the fourth column for rows where the first column matches 'active' exactly.
$1 == "active"{print $4}
ready 52 delta ivan closed 80 delta chen ready 72 amber farah pending 40 birch chen active 106 grove chen active 114 birch jules failed 36 juniper lina closed 1 juniper chen active 106 grove dina ready 46 birch hana
chen jules dina
paused 66 ember bruno paused 83 juniper farah pending 23 indigo eli ready 92 ember lina pending 15 harbor eli paused 73 harbor ivan pending 22 delta dina pending 80 harbor gus active 103 harbor kim
kim
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016345
qwen/qwen3.7-plus
awkweave-0016346
Print all fields from lines where field 3 begins with ERROR.
$3 ~ /^ERROR/
harbor 58 WARN amber 118 INFO cobalt 118 WARN juniper 54 DEBUG birch 0 DEBUG grove 85 DEBUG fable 17 ERROR
fable 17 ERROR
grove 46 WARN amber 20 WARN amber 74 ERROR amber 12 ERROR ember 42 DEBUG indigo 61 DEBUG juniper 0 ERROR amber 77 WARN
amber 74 ERROR amber 12 ERROR juniper 0 ERROR
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016346-p1
Print all fields from any line where the third field starts with the string 'ERROR'.
$3 ~ /^ERROR/
harbor 58 WARN amber 118 INFO cobalt 118 WARN juniper 54 DEBUG birch 0 DEBUG grove 85 DEBUG fable 17 ERROR
fable 17 ERROR
grove 46 WARN amber 20 WARN amber 74 ERROR amber 12 ERROR ember 42 DEBUG indigo 61 DEBUG juniper 0 ERROR amber 77 WARN
amber 74 ERROR amber 12 ERROR juniper 0 ERROR
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016346
qwen/qwen3.7-plus
awkweave-0016347
Print every line except those containing the exact text birch.
$0 !~ /birch/
birch 20 paused harbor 104 active ember 30 paused indigo 12 paused ember 47 ready cobalt 19 closed birch 84 failed amber 12 pending birch 999 active
harbor 104 active ember 30 paused indigo 12 paused ember 47 ready cobalt 19 closed amber 12 pending
ember 57 active indigo 70 pending juniper 67 closed ember 57 closed cobalt 69 failed amber 84 paused indigo 22 pending fable 50 ready grove 57 active ember 119 ready birch 999 active
ember 57 active indigo 70 pending juniper 67 closed ember 57 closed cobalt 69 failed amber 84 paused indigo 22 pending fable 50 ready grove 57 active ember 119 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016347-p1
Output every line that does not contain the exact substring 'birch'.
$0 !~ /birch/
birch 20 paused harbor 104 active ember 30 paused indigo 12 paused ember 47 ready cobalt 19 closed birch 84 failed amber 12 pending birch 999 active
harbor 104 active ember 30 paused indigo 12 paused ember 47 ready cobalt 19 closed amber 12 pending
ember 57 active indigo 70 pending juniper 67 closed ember 57 closed cobalt 69 failed amber 84 paused indigo 22 pending fable 50 ready grove 57 active ember 119 ready birch 999 active
ember 57 active indigo 70 pending juniper 67 closed ember 57 closed cobalt 69 failed amber 84 paused indigo 22 pending fable 50 ready grove 57 active ember 119 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016347
qwen/qwen3.7-plus
awkweave-0016348
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
ivan grove 79 alice fable 94 chen grove 34 farah harbor 45 hana delta 13 hana delta 65
farah harbor 45 hana delta 13 hana delta 65
chen indigo 96 eli indigo 35 lina juniper 119 chen fable 23 bruno birch 102 farah delta 12 bruno harbor 0 hana delta 48 jules grove 30 gus indigo 53
chen fable 23 bruno birch 102 farah delta 12 bruno harbor 0
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016348-p1
Print lines 4 through 7, inclusive of both the start and end lines.
NR >= 4 && NR <= 7
ivan grove 79 alice fable 94 chen grove 34 farah harbor 45 hana delta 13 hana delta 65
farah harbor 45 hana delta 13 hana delta 65
chen indigo 96 eli indigo 35 lina juniper 119 chen fable 23 bruno birch 102 farah delta 12 bruno harbor 0 hana delta 48 jules grove 30 gus indigo 53
chen fable 23 bruno birch 102 farah delta 12 bruno harbor 0
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016348
qwen/qwen3.7-plus
awkweave-0016349
Output only the first 5 records.
NR <= 5
farah 28 delta farah 84 delta chen 15 grove ivan 48 juniper jules 35 indigo farah 94 cobalt kim 106 fable hana 3 harbor farah 22 fable
farah 28 delta farah 84 delta chen 15 grove ivan 48 juniper jules 35 indigo
hana 115 grove farah 60 indigo kim 16 delta gus 93 fable hana 42 cobalt eli 105 birch bruno 82 juniper bruno 84 harbor farah 34 amber
hana 115 grove farah 60 indigo kim 16 delta gus 93 fable hana 42 cobalt
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016349-p1
Output only the first 5 records from the input.
NR <= 5
farah 28 delta farah 84 delta chen 15 grove ivan 48 juniper jules 35 indigo farah 94 cobalt kim 106 fable hana 3 harbor farah 22 fable
farah 28 delta farah 84 delta chen 15 grove ivan 48 juniper jules 35 indigo
hana 115 grove farah 60 indigo kim 16 delta gus 93 fable hana 42 cobalt eli 105 birch bruno 82 juniper bruno 84 harbor farah 34 amber
hana 115 grove farah 60 indigo kim 16 delta gus 93 fable hana 42 cobalt
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016349
qwen/qwen3.7-plus
awkweave-0016350
Skip the first line and print every remaining line unchanged.
NR > 1
hana 99 amber jules 4 juniper ivan 112 juniper ivan 117 delta dina 10 cobalt bruno 6 harbor kim 88 delta bruno 93 ember kim 116 juniper
jules 4 juniper ivan 112 juniper ivan 117 delta dina 10 cobalt bruno 6 harbor kim 88 delta bruno 93 ember kim 116 juniper
chen 75 birch dina 47 birch eli 75 juniper kim 98 grove dina 104 cobalt kim 8 harbor dina 58 fable jules 50 delta
dina 47 birch eli 75 juniper kim 98 grove dina 104 cobalt kim 8 harbor dina 58 fable jules 50 delta
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016350-p1
Ignore the first line and print all subsequent lines without modification.
NR > 1
hana 99 amber jules 4 juniper ivan 112 juniper ivan 117 delta dina 10 cobalt bruno 6 harbor kim 88 delta bruno 93 ember kim 116 juniper
jules 4 juniper ivan 112 juniper ivan 117 delta dina 10 cobalt bruno 6 harbor kim 88 delta bruno 93 ember kim 116 juniper
chen 75 birch dina 47 birch eli 75 juniper kim 98 grove dina 104 cobalt kim 8 harbor dina 58 fable jules 50 delta
dina 47 birch eli 75 juniper kim 98 grove dina 104 cobalt kim 8 harbor dina 58 fable jules 50 delta
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016350
qwen/qwen3.7-plus
awkweave-0016351
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
eli closed 117 chen closed 112 kim failed 1 kim active 110 hana paused 66 hana ready 56
2
chen active 65 dina failed 50 eli active 109 hana active 58 ivan closed 26 dina closed 50
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016351-p1
Count the number of records where the second column is 'closed', and output 0 if the count is zero.
$2 == "closed"{n++}END{print n+0}
eli closed 117 chen closed 112 kim failed 1 kim active 110 hana paused 66 hana ready 56
2
chen active 65 dina failed 50 eli active 109 hana active 58 ivan closed 26 dina closed 50
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016351
qwen/qwen3.7-plus
awkweave-0016352
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
6 eli indigo 7 gus fable 8 gus fable 8 dina harbor 18 farah harbor 5 eli delta 24 gus ember 28 bruno cobalt 9 chen birch
113
9 bruno delta 24 ivan delta 6 alice cobalt 25 chen fable 1 jules juniper 20 kim cobalt 1 gus fable
86
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016352-p1
Compute and display the total sum of integer values found in the first column.
{s+=$1}END{print s+0}
6 eli indigo 7 gus fable 8 gus fable 8 dina harbor 18 farah harbor 5 eli delta 24 gus ember 28 bruno cobalt 9 chen birch
113
9 bruno delta 24 ivan delta 6 alice cobalt 25 chen fable 1 jules juniper 20 kim cobalt 1 gus fable
86
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016352
qwen/qwen3.7-plus
awkweave-0016353
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
delta 1 chen indigo 28 alice ember 28 farah amber 13 eli harbor 6 ivan birch 28 kim delta 24 hana
18.29
amber 5 farah ember 19 lina juniper 26 gus juniper 7 lina cobalt 8 alice delta 11 chen juniper 25 chen
14.43
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016353-p1
Calculate the average of the values in the second column and print it rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
delta 1 chen indigo 28 alice ember 28 farah amber 13 eli harbor 6 ivan birch 28 kim delta 24 hana
18.29
amber 5 farah ember 19 lina juniper 26 gus juniper 7 lina cobalt 8 alice delta 11 chen juniper 25 chen
14.43
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016353
qwen/qwen3.7-plus
awkweave-0016354
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
9 grove bruno 26 grove alice 8 harbor alice 1 juniper hana 4 birch jules 1 harbor hana 6 juniper bruno 3 cobalt gus 13 harbor eli 24 birch ivan
1
16 delta dina 3 cobalt bruno 19 delta dina 10 indigo alice 19 amber kim 14 grove lina 2 cobalt chen 25 grove hana 28 delta gus 8 amber farah
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016354-p1
Identify and output the minimum numerical value found in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
9 grove bruno 26 grove alice 8 harbor alice 1 juniper hana 4 birch jules 1 harbor hana 6 juniper bruno 3 cobalt gus 13 harbor eli 24 birch ivan
1
16 delta dina 3 cobalt bruno 19 delta dina 10 indigo alice 19 amber kim 14 grove lina 2 cobalt chen 25 grove hana 28 delta gus 8 amber farah
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016354
qwen/qwen3.7-plus
awkweave-0016355
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
hana 17 cobalt bruno 27 cobalt ivan 30 ember bruno 8 harbor dina 30 grove bruno 12 birch gus 25 amber bruno 5 indigo lina 26 juniper
30
kim 26 grove gus 9 cobalt lina 13 ember ivan 16 amber lina 9 amber ivan 17 cobalt chen 19 juniper
26
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016355-p1
Locate and display the maximum numerical value within the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
hana 17 cobalt bruno 27 cobalt ivan 30 ember bruno 8 harbor dina 30 grove bruno 12 birch gus 25 amber bruno 5 indigo lina 26 juniper
30
kim 26 grove gus 9 cobalt lina 13 ember ivan 16 amber lina 9 amber ivan 17 cobalt chen 19 juniper
26
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016355
qwen/qwen3.7-plus
awkweave-0016356
Count all input records and print the total.
END{print NR}
alice 29 farah 73 kim 23 farah 27 alice 7 kim 28
6
eli 64 eli 116 dina 14 farah 7 kim 30 dina 95 kim 87
7
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016356-p1
Calculate the total number of input records and output the count.
END{print NR}
alice 29 farah 73 kim 23 farah 27 alice 7 kim 28
6
eli 64 eli 116 dina 14 farah 7 kim 30 dina 95 kim 87
7
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016356
qwen/qwen3.7-plus
awkweave-0016357
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
alice cobalt 70 hana birch 119 ivan birch 116 hana birch 119 alice indigo 118 dina ember 47 hana birch 57 lina indigo 23 farah cobalt 22
alice cobalt 70 hana birch 119 ivan birch 116 alice indigo 118 dina ember 47 hana birch 57 lina indigo 23 farah cobalt 22
gus ember 110 jules indigo 66 alice cobalt 14 farah indigo 33 hana amber 88 chen ember 39 hana juniper 36 chen fable 71 jules delta 73 chen fable 71 chen grove 71
gus ember 110 jules indigo 66 alice cobalt 14 farah indigo 33 hana amber 88 chen ember 39 hana juniper 36 chen fable 71 jules delta 73 chen grove 71
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016357-p1
Eliminate exact duplicate lines while maintaining the original sequence and keeping the first instance of each.
!seen[$0]++
alice cobalt 70 hana birch 119 ivan birch 116 hana birch 119 alice indigo 118 dina ember 47 hana birch 57 lina indigo 23 farah cobalt 22
alice cobalt 70 hana birch 119 ivan birch 116 alice indigo 118 dina ember 47 hana birch 57 lina indigo 23 farah cobalt 22
gus ember 110 jules indigo 66 alice cobalt 14 farah indigo 33 hana amber 88 chen ember 39 hana juniper 36 chen fable 71 jules delta 73 chen fable 71 chen grove 71
gus ember 110 jules indigo 66 alice cobalt 14 farah indigo 33 hana amber 88 chen ember 39 hana juniper 36 chen fable 71 jules delta 73 chen grove 71
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016357
qwen/qwen3.7-plus
awkweave-0016358
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
eli harbor 27 lina ember 86 kim indigo 120 lina ember 41 hana amber 92 jules delta 115 chen cobalt 38 bruno ember 81
eli harbor 27 lina ember 86 kim indigo 120 lina ember 41 hana amber 92 jules delta 115 chen cobalt 38 bruno ember 81
gus indigo 69 bruno ember 57 gus delta 72 bruno delta 44 kim ember 3 jules indigo 106 eli indigo 88 hana juniper 41 jules delta 120 chen birch 29
gus indigo 69 bruno ember 57 gus delta 72 bruno delta 44 kim ember 3 jules indigo 106 eli indigo 88 hana juniper 41 jules delta 120 chen birch 29
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016358-p1
Retain only the initial line for every unique value in the third column, preserving the input order.
!seen[$3]++
eli harbor 27 lina ember 86 kim indigo 120 lina ember 41 hana amber 92 jules delta 115 chen cobalt 38 bruno ember 81
eli harbor 27 lina ember 86 kim indigo 120 lina ember 41 hana amber 92 jules delta 115 chen cobalt 38 bruno ember 81
gus indigo 69 bruno ember 57 gus delta 72 bruno delta 44 kim ember 3 jules indigo 106 eli indigo 88 hana juniper 41 jules delta 120 chen birch 29
gus indigo 69 bruno ember 57 gus delta 72 bruno delta 44 kim ember 3 jules indigo 106 eli indigo 88 hana juniper 41 jules delta 120 chen birch 29
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016358
qwen/qwen3.7-plus
awkweave-0016359
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
jules 23 indigo gus 3 amber kim 4 harbor farah 3 fable chen 30 birch farah 4 juniper bruno 15 juniper farah 6 grove ivan 25 juniper hana 12 juniper
jules 23 gus 26 kim 30 farah 33 chen 63 farah 67 bruno 82 farah 88 ivan 113 hana 125
eli 15 amber kim 3 amber alice 5 birch lina 24 birch lina 9 cobalt kim 29 delta kim 22 amber dina 19 delta eli 17 grove chen 11 ember
eli 15 kim 18 alice 23 lina 47 lina 56 kim 85 kim 107 dina 126 eli 143 chen 154
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016359-p1
Output the first column alongside the cumulative sum of the second column for each record, separated by a space.
{s+=$2;print $1,s}
jules 23 indigo gus 3 amber kim 4 harbor farah 3 fable chen 30 birch farah 4 juniper bruno 15 juniper farah 6 grove ivan 25 juniper hana 12 juniper
jules 23 gus 26 kim 30 farah 33 chen 63 farah 67 bruno 82 farah 88 ivan 113 hana 125
eli 15 amber kim 3 amber alice 5 birch lina 24 birch lina 9 cobalt kim 29 delta kim 22 amber dina 19 delta eli 17 grove chen 11 ember
eli 15 kim 18 alice 23 lina 47 lina 56 kim 85 kim 107 dina 126 eli 143 chen 154
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016359
qwen/qwen3.7-plus
awkweave-0016360
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
kim 16 26 amber alice 7 16 fable lina 18 13 delta gus 9 9 birch bruno 27 26 ember dina 8 20 delta lina 2 18 ember alice 9 2 birch
kim 42 alice 23 lina 31 gus 18 bruno 53 dina 28 lina 20 alice 11
dina 6 5 harbor gus 24 1 fable bruno 28 12 fable kim 9 24 cobalt gus 2 28 harbor farah 4 11 juniper eli 5 29 harbor jules 7 7 fable farah 25 16 amber farah 27 24 juniper
dina 11 gus 25 bruno 40 kim 33 gus 30 farah 15 eli 34 jules 14 farah 41 farah 51
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016360-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
kim 16 26 amber alice 7 16 fable lina 18 13 delta gus 9 9 birch bruno 27 26 ember dina 8 20 delta lina 2 18 ember alice 9 2 birch
kim 42 alice 23 lina 31 gus 18 bruno 53 dina 28 lina 20 alice 11
dina 6 5 harbor gus 24 1 fable bruno 28 12 fable kim 9 24 cobalt gus 2 28 harbor farah 4 11 juniper eli 5 29 harbor jules 7 7 fable farah 25 16 amber farah 27 24 juniper
dina 11 gus 25 bruno 40 kim 33 gus 30 farah 15 eli 34 jules 14 farah 41 farah 51
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016360
qwen/qwen3.7-plus
awkweave-0016361
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
eli 30 jules 30 dina 26 eli 22 lina 16 bruno 21 eli 29 farah 15
eli pass jules pass dina pass eli fail lina fail bruno fail eli pass farah fail
kim 26 bruno 28 kim 14 lina 14 farah 27 dina 4
kim pass bruno pass kim fail lina fail farah pass dina fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016361-p1
Output the first column and print 'pass' if the second column is 25 or greater; otherwise, print 'fail'.
{print $1,($2>=25?"pass":"fail")}
eli 30 jules 30 dina 26 eli 22 lina 16 bruno 21 eli 29 farah 15
eli pass jules pass dina pass eli fail lina fail bruno fail eli pass farah fail
kim 26 bruno 28 kim 14 lina 14 farah 27 dina 4
kim pass bruno pass kim fail lina fail farah pass dina fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016361
qwen/qwen3.7-plus
awkweave-0016362
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
kim ember 40 farah juniper 67 gus cobalt 79 alice amber 44 bruno ember 26 ivan ember 93 eli fable 111 lina amber 28 hana cobalt 84
EMBER JUNIPER COBALT AMBER EMBER EMBER FABLE AMBER COBALT
lina amber 47 ivan indigo 94 eli indigo 73 hana ember 63 ivan fable 120 farah birch 77
AMBER INDIGO INDIGO EMBER FABLE BIRCH
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016362-p1
Transform the second column to uppercase and output only that column.
{print toupper($2)}
kim ember 40 farah juniper 67 gus cobalt 79 alice amber 44 bruno ember 26 ivan ember 93 eli fable 111 lina amber 28 hana cobalt 84
EMBER JUNIPER COBALT AMBER EMBER EMBER FABLE AMBER COBALT
lina amber 47 ivan indigo 94 eli indigo 73 hana ember 63 ivan fable 120 farah birch 77
AMBER INDIGO INDIGO EMBER FABLE BIRCH
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016362
qwen/qwen3.7-plus
awkweave-0016363
From column 1, print 4 characters starting at character 2.
{print substr($1,2,4)}
juniper 53 harbor 41 grove 16 ember 90 amber 112 delta 24 juniper 74
unip arbo rove mber mber elta unip
indigo 71 ember 25 ember 109 grove 102 cobalt 85 birch 119 ember 105 indigo 38
ndig mber mber rove obal irch mber ndig
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016363-p1
Extract and print a substring of 4 characters from the first column, starting at the second character.
{print substr($1,2,4)}
juniper 53 harbor 41 grove 16 ember 90 amber 112 delta 24 juniper 74
unip arbo rove mber mber elta unip
indigo 71 ember 25 ember 109 grove 102 cobalt 85 birch 119 ember 105 indigo 38
ndig mber mber rove obal irch mber ndig
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016363
qwen/qwen3.7-plus
awkweave-0016364
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
cobalt_grove 9 birch_ember 58 ember_grove 71 delta_indigo 108 indigo_fable 71 indigo_birch 8 indigo_cobalt 34
cobalt grove birch ember ember grove delta indigo indigo fable indigo birch indigo cobalt
indigo_ember 15 indigo_delta 54 indigo_indigo 12 harbor_harbor 2 harbor_birch 39 ember_juniper 28 cobalt_ember 74
indigo ember indigo delta indigo indigo harbor harbor harbor birch ember juniper cobalt ember
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016364-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
cobalt_grove 9 birch_ember 58 ember_grove 71 delta_indigo 108 indigo_fable 71 indigo_birch 8 indigo_cobalt 34
cobalt grove birch ember ember grove delta indigo indigo fable indigo birch indigo cobalt
indigo_ember 15 indigo_delta 54 indigo_indigo 12 harbor_harbor 2 harbor_birch 39 ember_juniper 28 cobalt_ember 74
indigo ember indigo delta indigo indigo harbor harbor harbor birch ember juniper cobalt ember
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016364
qwen/qwen3.7-plus
awkweave-0016365
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 birch 30 closed bruno ember 28 closed lina fable 76 closed lina delta 88 closed alice grove 12 closed jules fable 61 failed eli delta 34 closed kim fable 114 failed farah ember 58 pending
closed 30 birch kim closed 28 ember bruno closed 76 fable lina closed 88 delta lina closed 12 grove alice failed 61 fable jules closed 34 delta eli failed 114 fable kim pending 58 ember farah
kim fable 85 closed jules harbor 8 failed jules birch 109 active eli cobalt 74 paused hana harbor 33 closed bruno grove 98 failed eli grove 47 active gus delta 58 failed bruno delta 90 ready ivan grove 54 closed
closed 85 fable kim failed 8 harbor jules active 109 birch jules paused 74 cobalt eli closed 33 harbor hana failed 98 grove bruno active 47 grove eli failed 58 delta gus ready 90 delta bruno closed 54 grove ivan
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016365-p1
Reverse the sequence of fields in every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
kim birch 30 closed bruno ember 28 closed lina fable 76 closed lina delta 88 closed alice grove 12 closed jules fable 61 failed eli delta 34 closed kim fable 114 failed farah ember 58 pending
closed 30 birch kim closed 28 ember bruno closed 76 fable lina closed 88 delta lina closed 12 grove alice failed 61 fable jules closed 34 delta eli failed 114 fable kim pending 58 ember farah
kim fable 85 closed jules harbor 8 failed jules birch 109 active eli cobalt 74 paused hana harbor 33 closed bruno grove 98 failed eli grove 47 active gus delta 58 failed bruno delta 90 ready ivan grove 54 closed
closed 85 fable kim failed 8 harbor jules active 109 birch jules paused 74 cobalt eli closed 33 harbor hana failed 98 grove bruno active 47 grove eli failed 58 delta gus ready 90 delta bruno closed 54 grove ivan
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016365
qwen/qwen3.7-plus
awkweave-0016366
Print the number of whitespace-separated fields on each line.
{print NF}
gus ember 88 failed bruno fable 35 failed bruno delta 106 paused hana cobalt 27 paused kim ember 84 closed ivan amber 117 pending chen delta 34 pending
4 4 4 4 4 4 4
jules fable 63 failed ivan cobalt 4 ready jules indigo 34 closed lina fable 64 paused farah amber 116 failed farah indigo 55 closed kim ember 111 paused alice harbor 79 failed bruno harbor 68 failed
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016366-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
gus ember 88 failed bruno fable 35 failed bruno delta 106 paused hana cobalt 27 paused kim ember 84 closed ivan amber 117 pending chen delta 34 pending
4 4 4 4 4 4 4
jules fable 63 failed ivan cobalt 4 ready jules indigo 34 closed lina fable 64 paused farah amber 116 failed farah indigo 55 closed kim ember 111 paused alice harbor 79 failed bruno harbor 68 failed
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016366
qwen/qwen3.7-plus
awkweave-0016367
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]]}
dina beta 43 ivan delta 115 dina delta 33 kim gamma 48 ivan alpha 72 ivan gamma 5
beta 1 delta 2 gamma 2 alpha 1
lina delta 56 chen alpha 47 hana beta 53 lina gamma 105 alice alpha 15 kim beta 83
delta 1 alpha 2 beta 2 gamma 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016367-p1
Tally the occurrences of each unique value in the second column and display the value alongside its count, maintaining the order in which they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
dina beta 43 ivan delta 115 dina delta 33 kim gamma 48 ivan alpha 72 ivan gamma 5
beta 1 delta 2 gamma 2 alpha 1
lina delta 56 chen alpha 47 hana beta 53 lina gamma 105 alice alpha 15 kim beta 83
delta 1 alpha 2 beta 2 gamma 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016367
qwen/qwen3.7-plus
awkweave-0016368
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
farah gamma 18 bruno delta 13 bruno beta 9 ivan gamma 10 alice gamma 1 dina delta 21 hana beta 1 lina delta 25
gamma 29 delta 59 beta 10
lina alpha 23 hana beta 2 ivan alpha 13 ivan gamma 1 chen gamma 8 chen delta 29 bruno delta 22 gus gamma 19 hana gamma 18 bruno delta 24
alpha 36 beta 2 gamma 46 delta 75
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016368-p1
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
farah gamma 18 bruno delta 13 bruno beta 9 ivan gamma 10 alice gamma 1 dina delta 21 hana beta 1 lina delta 25
gamma 29 delta 59 beta 10
lina alpha 23 hana beta 2 ivan alpha 13 ivan gamma 1 chen gamma 8 chen delta 29 bruno delta 22 gus gamma 19 hana gamma 18 bruno delta 24
alpha 36 beta 2 gamma 46 delta 75
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0016368
qwen/qwen3.7-plus
awkweave-0016369
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 84 beta harbor 27 beta cobalt 35 beta indigo 64 gamma harbor 111 beta harbor 106 gamma delta 6 delta grove 5 delta grove 12 beta harbor 91
gamma 3 beta 5 delta 2
beta fable 101 gamma ember 4 delta fable 114 gamma harbor 113 delta birch 46 gamma delta 114 delta birch 97
gamma 3 delta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016369-p1
List each duplicate entry from the first column along with its frequency, sorted by the order of first occurrence.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma amber 84 beta harbor 27 beta cobalt 35 beta indigo 64 gamma harbor 111 beta harbor 106 gamma delta 6 delta grove 5 delta grove 12 beta harbor 91
gamma 3 beta 5 delta 2
beta fable 101 gamma ember 4 delta fable 114 gamma harbor 113 delta birch 46 gamma delta 114 delta birch 97
gamma 3 delta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016369
qwen/qwen3.7-plus
awkweave-0016370
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"]}
note score region display_name r001 dina 17 pending r002 ivan 26 pending r003 chen 26 pending r004 lina 12 pending r005 lina 5 paused r006 hana 1 failed r007 bruno 22 active r008 hana 8 paused r009 eli 25 pending
17 26 26 12 5 1 22 8 25
note score region display_name r001 kim 19 active r002 eli 24 failed r003 ivan 28 closed r004 kim 7 failed r005 chen 18 active r006 bruno 18 pending
19 24 28 7 18 18
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016370-p1
Skip the header row and output the contents of the region column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
note score region display_name r001 dina 17 pending r002 ivan 26 pending r003 chen 26 pending r004 lina 12 pending r005 lina 5 paused r006 hana 1 failed r007 bruno 22 active r008 hana 8 paused r009 eli 25 pending
17 26 26 12 5 1 22 8 25
note score region display_name r001 kim 19 active r002 eli 24 failed r003 ivan 28 closed r004 kim 7 failed r005 chen 18 active r006 bruno 18 pending
19 24 28 7 18 18
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016370
qwen/qwen3.7-plus
awkweave-0016371
The first row is a header. Print display_name for data rows whose score is greater than 13.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>13{print $h["display_name"]}
record_id display_name score state r001 eli 8 failed r002 farah 18 paused r003 kim 15 ready r004 hana 29 closed r005 lina 2 pending r006 farah 28 paused r007 farah 4 failed
farah kim hana farah
record_id display_name score state r001 kim 5 pending r002 kim 11 failed r003 alice 12 ready r004 gus 5 paused r005 gus 22 active r006 bruno 5 failed r007 gus 17 closed
gus gus
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016371-p1
Ignoring the header, print the display_name field for any row where the score is strictly greater than 13.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>13{print $h["display_name"]}
record_id display_name score state r001 eli 8 failed r002 farah 18 paused r003 kim 15 ready r004 hana 29 closed r005 lina 2 pending r006 farah 28 paused r007 farah 4 failed
farah kim hana farah
record_id display_name score state r001 kim 5 pending r002 kim 11 failed r003 alice 12 ready r004 gus 5 paused r005 gus 22 active r006 bruno 5 failed r007 gus 17 closed
gus gus
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016371
qwen/qwen3.7-plus
awkweave-0016372
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
alice 11 ready dina 10 ready alice 1 closed chen 17 closed alice 27 ready farah 17 active jules 14 closed farah 7 closed bruno 25 failed
ready ready closed closed ready active closed closed failed
hana 8 ready lina 25 ready farah 3 pending bruno 29 ready gus 18 closed chen 24 failed alice 1 ready hana 23 pending chen 20 ready
ready ready pending ready closed failed ready pending ready
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016372-p1
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
alice 11 ready dina 10 ready alice 1 closed chen 17 closed alice 27 ready farah 17 active jules 14 closed farah 7 closed bruno 25 failed
ready ready closed closed ready active closed closed failed
hana 8 ready lina 25 ready farah 3 pending bruno 29 ready gus 18 closed chen 24 failed alice 1 ready hana 23 pending chen 20 ready
ready ready pending ready closed failed ready pending ready
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0016372
qwen/qwen3.7-plus
awkweave-0016373
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 11.
BEGIN{FS=OFS=","}$2>11{print $1}
jules,5,closed bruno,30,ready hana,28,ready alice,24,paused alice,25,closed alice,22,pending chen,9,paused dina,1,paused farah,30,closed
bruno hana alice alice alice farah
gus,30,pending alice,16,pending kim,27,closed jules,26,paused eli,12,pending ivan,29,active lina,6,active
gus alice kim jules eli ivan
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016373-p1
For simple comma-separated input without quoted commas, output the first column whenever the second column's value is greater than 11.
BEGIN{FS=OFS=","}$2>11{print $1}
jules,5,closed bruno,30,ready hana,28,ready alice,24,paused alice,25,closed alice,22,pending chen,9,paused dina,1,paused farah,30,closed
bruno hana alice alice alice farah
gus,30,pending alice,16,pending kim,27,closed jules,26,paused eli,12,pending ivan,29,active lina,6,active
gus alice kim jules eli ivan
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016373
qwen/qwen3.7-plus
awkweave-0016374
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina amber 120 bruno indigo 115 chen delta 17 eli amber 110 kim juniper 22 alice harbor 109 hana juniper 74 kim harbor 16
lina amber 120 bruno indigo 115 chen delta 17 eli amber 110 kim juniper 22 alice harbor 109 hana juniper 74 kim harbor 16
jules ember 110 kim fable 62 dina juniper 100 dina indigo 71 eli amber 12 bruno ember 114 bruno indigo 33 eli amber 1 gus amber 33 gus ember 117
jules ember 110 kim fable 62 dina juniper 100 dina indigo 71 eli amber 12 bruno ember 114 bruno indigo 33 eli amber 1 gus amber 33 gus ember 117
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016374-p1
Remove leading and trailing spaces and replace sequences of internal whitespace with a single space.
{$1=$1;print}
lina amber 120 bruno indigo 115 chen delta 17 eli amber 110 kim juniper 22 alice harbor 109 hana juniper 74 kim harbor 16
lina amber 120 bruno indigo 115 chen delta 17 eli amber 110 kim juniper 22 alice harbor 109 hana juniper 74 kim harbor 16
jules ember 110 kim fable 62 dina juniper 100 dina indigo 71 eli amber 12 bruno ember 114 bruno indigo 33 eli amber 1 gus amber 33 gus ember 117
jules ember 110 kim fable 62 dina juniper 100 dina indigo 71 eli amber 12 bruno ember 114 bruno indigo 33 eli amber 1 gus amber 33 gus ember 117
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016374
qwen/qwen3.7-plus
awkweave-0016375
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
bruno birch 46 active eli delta 109 ready bruno juniper 85 pending gus grove 77 closed chen harbor 68 paused hana harbor 29 pending eli cobalt 28 paused lina harbor 48 pending
bruno juniper 85 pending
bruno juniper 71 pending chen harbor 29 ready hana ember 72 active chen ember 57 pending farah harbor 38 active lina indigo 120 ready eli cobalt 39 pending chen fable 85 ready bruno fable 69 closed eli juniper 87 pending
bruno juniper 71 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016375-p1
Identify and print the longest line from the input; if multiple lines share the maximum length, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
bruno birch 46 active eli delta 109 ready bruno juniper 85 pending gus grove 77 closed chen harbor 68 paused hana harbor 29 pending eli cobalt 28 paused lina harbor 48 pending
bruno juniper 85 pending
bruno juniper 71 pending chen harbor 29 ready hana ember 72 active chen ember 57 pending farah harbor 38 active lina indigo 120 ready eli cobalt 39 pending chen fable 85 ready bruno fable 69 closed eli juniper 87 pending
bruno juniper 71 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016375
qwen/qwen3.7-plus
awkweave-0016376
Print every 4th line starting at line 3 (then line 7, and so on).
NR%4==3
farah 84 gus 112 gus 13 eli 56 alice 51 alice 36
gus 13
lina 31 dina 81 kim 29 ivan 15 lina 52 bruno 8
kim 29
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016376-p1
Print every fourth line beginning with line 3 (i.e., lines 3, 7, 11, etc.).
NR%4==3
farah 84 gus 112 gus 13 eli 56 alice 51 alice 36
gus 13
lina 31 dina 81 kim 29 ivan 15 lina 52 bruno 8
kim 29
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016376
qwen/qwen3.7-plus
awkweave-0016377
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta indigo 8 beta birch 78 beta harbor 14 gamma delta 60 gamma ember 108 alpha indigo 23 delta cobalt 86 beta harbor 73 beta cobalt 48
6
delta harbor 78 alpha fable 60 alpha birch 98 beta juniper 103 gamma juniper 57 gamma amber 63
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016377-p1
Determine the number of unique values present in the second column and output only that total count.
{if(!seen[$2]++)n++}END{print n+0}
beta indigo 8 beta birch 78 beta harbor 14 gamma delta 60 gamma ember 108 alpha indigo 23 delta cobalt 86 beta harbor 73 beta cobalt 48
6
delta harbor 78 alpha fable 60 alpha birch 98 beta juniper 103 gamma juniper 57 gamma amber 63
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016377
qwen/qwen3.7-plus
awkweave-0016378
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}
hana 1 0 alice 13 9 bruno 24 25 bruno 7 22 bruno 16 21 kim 25 29 dina 26 21 bruno 29 7 lina 1 3 jules 29 16
alice 1.44 bruno 0.96 bruno 0.32 bruno 0.76 kim 0.86 dina 1.24 bruno 4.14 lina 0.33 jules 1.81
hana 7 0 farah 14 4 ivan 12 24 hana 23 3 lina 27 12 ivan 19 11 dina 20 2 lina 25 6
farah 3.50 ivan 0.50 hana 7.67 lina 2.25 ivan 1.73 dina 10.00 lina 4.17
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016378-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 0.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
hana 1 0 alice 13 9 bruno 24 25 bruno 7 22 bruno 16 21 kim 25 29 dina 26 21 bruno 29 7 lina 1 3 jules 29 16
alice 1.44 bruno 0.96 bruno 0.32 bruno 0.76 kim 0.86 dina 1.24 bruno 4.14 lina 0.33 jules 1.81
hana 7 0 farah 14 4 ivan 12 24 hana 23 3 lina 27 12 ivan 19 11 dina 20 2 lina 25 6
farah 3.50 ivan 0.50 hana 7.67 lina 2.25 ivan 1.73 dina 10.00 lina 4.17
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016378
qwen/qwen3.7-plus
awkweave-0016379
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
farah ember 20 bruno birch 28 ivan amber 15 hana amber 20 jules cobalt 25 ivan cobalt 9 bruno birch 30 bruno juniper 2 kim juniper 26 kim amber 9
bruno birch 30 bruno birch 28 kim juniper 26
chen amber 3 hana juniper 30 lina amber 11 kim harbor 6 kim juniper 11 dina harbor 23 farah ember 10 eli ember 9 farah fable 16 hana harbor 27
hana juniper 30 hana harbor 27 dina harbor 23
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0016379-p1
Display the top three full records based on the highest numeric values in column 3, sorted in descending order, while 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]}
farah ember 20 bruno birch 28 ivan amber 15 hana amber 20 jules cobalt 25 ivan cobalt 9 bruno birch 30 bruno juniper 2 kim juniper 26 kim amber 9
bruno birch 30 bruno birch 28 kim juniper 26
chen amber 3 hana juniper 30 lina amber 11 kim harbor 6 kim juniper 11 dina harbor 23 farah ember 10 eli ember 9 farah fable 16 hana harbor 27
hana juniper 30 hana harbor 27 dina harbor 23
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0016379
qwen/qwen3.7-plus
awkweave-0016380
For each line, output fields 2 and 1, in that order.
{print $2, $1}
44 chen 15 37 juniper 18 bruno 114 6 indigo 85 lina 104 1 delta 98 bruno 81 76 harbor 22 jules 90 1 amber 43 hana 16 53 ember 100 lina 4 91 indigo 117 bruno 48 38 harbor
chen 44 bruno 18 lina 85 bruno 98 jules 22 hana 43 lina 100 bruno 117
19 kim 73 5 juniper 114 chen 8 30 indigo 33 bruno 102 72 indigo 75 alice 89 18 birch 24 jules 98 54 ember 12 chen 78 76 juniper
kim 19 chen 114 bruno 33 alice 75 jules 24 chen 12
project_fields
1
train
original-grammar
CC-BY-4.0
null
null