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-0036381-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
gus juniper 103 farah harbor 4 lina amber 9 alice birch 74 lina amber 43 hana birch 95 jules cobalt 7 kim birch 30 hana juniper 4 gus delta 69
gus juniper 103 farah harbor 4 lina amber 9 alice birch 74 lina amber 43 hana birch 95 jules cobalt 7 kim birch 30 hana juniper 4 gus delta 69
alice delta 82 lina cobalt 115 gus grove 119 hana amber 91 lina grove 27 kim grove 31 jules amber 102 chen grove 84 hana juniper 0
alice delta 82 lina cobalt 115 gus grove 119 hana amber 91 lina grove 27 kim grove 31 jules amber 102 chen grove 84 hana juniper 0
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036381
qwen/qwen3.7-plus
awkweave-0036382
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
chen harbor 63 closed gus cobalt 45 paused hana cobalt 91 pending ivan juniper 85 active gus cobalt 20 failed jules juniper 113 pending lina birch 57 active eli birch 76 failed jules juniper 84 closed
jules juniper 113 pending
jules cobalt 34 active chen harbor 75 closed jules indigo 89 pending kim delta 105 paused chen delta 30 failed bruno cobalt 29 paused hana cobalt 73 paused alice indigo 51 pending jules harbor 118 pending jules birch 100 closed
jules harbor 118 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036382-p1
Output the longest line from the input; if multiple lines share the maximum length, select the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
chen harbor 63 closed gus cobalt 45 paused hana cobalt 91 pending ivan juniper 85 active gus cobalt 20 failed jules juniper 113 pending lina birch 57 active eli birch 76 failed jules juniper 84 closed
jules juniper 113 pending
jules cobalt 34 active chen harbor 75 closed jules indigo 89 pending kim delta 105 paused chen delta 30 failed bruno cobalt 29 paused hana cobalt 73 paused alice indigo 51 pending jules harbor 118 pending jules birch 100 closed
jules harbor 118 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036382
qwen/qwen3.7-plus
awkweave-0036383
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
lina 4 kim 112 lina 96 farah 106 lina 89 eli 104 hana 43 kim 87 bruno 53
lina 4 lina 96 lina 89 hana 43 bruno 53
jules 112 kim 51 chen 16 gus 114 hana 96 dina 8
jules 112 chen 16 hana 96
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036383-p1
Print lines 1, 3, 5, and so on (every second line starting from the first).
NR%2==1
lina 4 kim 112 lina 96 farah 106 lina 89 eli 104 hana 43 kim 87 bruno 53
lina 4 lina 96 lina 89 hana 43 bruno 53
jules 112 kim 51 chen 16 gus 114 hana 96 dina 8
jules 112 chen 16 hana 96
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036383
qwen/qwen3.7-plus
awkweave-0036384
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
delta birch 92 delta delta 75 beta harbor 61 delta grove 89 delta juniper 28 beta delta 21 beta indigo 5
6
beta grove 96 beta harbor 81 alpha juniper 56 delta birch 117 beta birch 110 gamma fable 48
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036384-p1
Calculate the number of unique values in the second column and output only that count.
{if(!seen[$2]++)n++}END{print n+0}
delta birch 92 delta delta 75 beta harbor 61 delta grove 89 delta juniper 28 beta delta 21 beta indigo 5
6
beta grove 96 beta harbor 81 alpha juniper 56 delta birch 117 beta birch 110 gamma fable 48
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036384
qwen/qwen3.7-plus
awkweave-0036385
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 2 0 kim 7 11 bruno 1 27 eli 27 22 jules 9 12 kim 26 28 farah 3 8 gus 27 20 gus 5 2 alice 18 12
kim 0.64 bruno 0.04 eli 1.23 jules 0.75 kim 0.93 farah 0.38 gus 1.35 gus 2.50 alice 1.50
alice 9 0 gus 5 5 dina 5 27 hana 22 8 dina 1 3 chen 12 15 hana 29 26 dina 30 4
gus 1.00 dina 0.19 hana 2.75 dina 0.33 chen 0.80 hana 1.12 dina 7.50
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036385-p1
For each row where the third column is non-zero, print the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
chen 2 0 kim 7 11 bruno 1 27 eli 27 22 jules 9 12 kim 26 28 farah 3 8 gus 27 20 gus 5 2 alice 18 12
kim 0.64 bruno 0.04 eli 1.23 jules 0.75 kim 0.93 farah 0.38 gus 1.35 gus 2.50 alice 1.50
alice 9 0 gus 5 5 dina 5 27 hana 22 8 dina 1 3 chen 12 15 hana 29 26 dina 30 4
gus 1.00 dina 0.19 hana 2.75 dina 0.33 chen 0.80 hana 1.12 dina 7.50
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036385
qwen/qwen3.7-plus
awkweave-0036386
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]}
jules indigo 26 ivan juniper 5 eli birch 25 bruno cobalt 14 jules indigo 29 gus delta 20 jules grove 5 bruno juniper 5
jules indigo 29 jules indigo 26 eli birch 25
alice cobalt 26 lina amber 8 ivan harbor 7 lina cobalt 2 ivan harbor 18 eli grove 28
eli grove 28 alice cobalt 26 ivan harbor 18
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036386-p1
Output the top three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
jules indigo 26 ivan juniper 5 eli birch 25 bruno cobalt 14 jules indigo 29 gus delta 20 jules grove 5 bruno juniper 5
jules indigo 29 jules indigo 26 eli birch 25
alice cobalt 26 lina amber 8 ivan harbor 7 lina cobalt 2 ivan harbor 18 eli grove 28
eli grove 28 alice cobalt 26 ivan harbor 18
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036386
qwen/qwen3.7-plus
awkweave-0036387
Print column 3 followed by column 1 for every record.
{print $3, $1}
pending bruno 78 57 ember lina active gus 47 105 juniper gus ready ivan 19 100 harbor dina active gus 42 34 harbor hana ready bruno 96 26 amber eli closed hana 25 53 grove farah
78 pending 47 active 19 ready 42 active 96 ready 25 closed
paused kim 68 61 fable dina closed hana 27 82 delta jules active lina 12 111 fable lina active eli 81 109 grove ivan active ivan 50 1 cobalt ivan closed ivan 82 91 delta ivan closed jules 119 83 indigo jules active hana 80 94 harbor ivan pending bruno 11 84 grove eli failed lina 0 49 juniper jules
68 paused 27 closed 12 active 81 active 50 active 82 closed 119 closed 80 active 11 pending 0 failed
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036387-p1
For every record, output the third column followed by the first column.
{print $3, $1}
pending bruno 78 57 ember lina active gus 47 105 juniper gus ready ivan 19 100 harbor dina active gus 42 34 harbor hana ready bruno 96 26 amber eli closed hana 25 53 grove farah
78 pending 47 active 19 ready 42 active 96 ready 25 closed
paused kim 68 61 fable dina closed hana 27 82 delta jules active lina 12 111 fable lina active eli 81 109 grove ivan active ivan 50 1 cobalt ivan closed ivan 82 91 delta ivan closed jules 119 83 indigo jules active hana 80 94 harbor ivan pending bruno 11 84 grove eli failed lina 0 49 juniper jules
68 paused 27 closed 12 active 81 active 50 active 82 closed 119 closed 80 active 11 pending 0 failed
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036387
qwen/qwen3.7-plus
awkweave-0036388
Print the last field of every input line.
{print $NF}
farah gus amber 27 grove lina ready hana lina harbor 48 cobalt hana active alice gus indigo 1 harbor alice ready alice alice amber 73 delta lina failed alice dina fable 97 cobalt lina ready ivan kim birch 89 fable chen paused hana gus harbor 93 ember hana pending chen ivan ember 11 juniper eli active ivan gus birch 7 j...
ready active ready failed ready paused pending active closed pending
gus dina fable 29 grove ivan pending ivan eli indigo 91 grove lina paused hana ivan ember 115 cobalt eli active gus ivan amber 51 juniper alice pending ivan ivan ember 19 grove lina ready eli farah juniper 54 ember gus failed gus lina indigo 10 harbor eli ready gus hana juniper 38 delta bruno pending ivan hana cobalt 8...
pending paused active pending ready failed ready pending active
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036388-p1
Print the final field of each input line.
{print $NF}
farah gus amber 27 grove lina ready hana lina harbor 48 cobalt hana active alice gus indigo 1 harbor alice ready alice alice amber 73 delta lina failed alice dina fable 97 cobalt lina ready ivan kim birch 89 fable chen paused hana gus harbor 93 ember hana pending chen ivan ember 11 juniper eli active ivan gus birch 7 j...
ready active ready failed ready paused pending active closed pending
gus dina fable 29 grove ivan pending ivan eli indigo 91 grove lina paused hana ivan ember 115 cobalt eli active gus ivan amber 51 juniper alice pending ivan ivan ember 19 grove lina ready eli farah juniper 54 ember gus failed gus lina indigo 10 harbor eli ready gus hana juniper 38 delta bruno pending ivan hana cobalt 8...
pending paused active pending ready failed ready pending active
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036388
qwen/qwen3.7-plus
awkweave-0036389
Print the complete records where column 3 is at least 36.
$3 >= 36
amber harbor 49 dina hana juniper cobalt 0 chen gus amber harbor 103 jules alice delta fable 87 eli lina birch fable 34 gus ivan amber birch 90 chen gus birch fable 18 alice lina fable juniper 8 chen hana amber harbor 86 hana farah
amber harbor 49 dina hana amber harbor 103 jules alice delta fable 87 eli lina amber birch 90 chen gus amber harbor 86 hana farah
amber juniper 91 lina farah cobalt amber 33 gus ivan harbor amber 33 gus dina juniper harbor 21 alice jules birch harbor 46 chen gus amber fable 113 farah chen juniper ember 1 ivan chen birch delta 55 kim hana
amber juniper 91 lina farah birch harbor 46 chen gus amber fable 113 farah chen birch delta 55 kim hana
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036389-p1
Output full records where the value in column 3 is 36 or higher.
$3 >= 36
amber harbor 49 dina hana juniper cobalt 0 chen gus amber harbor 103 jules alice delta fable 87 eli lina birch fable 34 gus ivan amber birch 90 chen gus birch fable 18 alice lina fable juniper 8 chen hana amber harbor 86 hana farah
amber harbor 49 dina hana amber harbor 103 jules alice delta fable 87 eli lina amber birch 90 chen gus amber harbor 86 hana farah
amber juniper 91 lina farah cobalt amber 33 gus ivan harbor amber 33 gus dina juniper harbor 21 alice jules birch harbor 46 chen gus amber fable 113 farah chen juniper ember 1 ivan chen birch delta 55 kim hana
amber juniper 91 lina farah birch harbor 46 chen gus amber fable 113 farah chen birch delta 55 kim hana
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036389
qwen/qwen3.7-plus
awkweave-0036400
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
4 fable farah 29 birch bruno 5 ember kim 23 grove bruno 5 harbor kim 22 harbor alice 24 indigo kim
4
24 ember alice 29 grove bruno 10 ember eli 14 juniper gus 7 juniper alice 27 amber hana 20 amber kim 25 harbor gus 29 harbor eli 17 fable bruno
7
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036400-p1
Identify and output the minimum number found in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
4 fable farah 29 birch bruno 5 ember kim 23 grove bruno 5 harbor kim 22 harbor alice 24 indigo kim
4
24 ember alice 29 grove bruno 10 ember eli 14 juniper gus 7 juniper alice 27 amber hana 20 amber kim 25 harbor gus 29 harbor eli 17 fable bruno
7
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036400
qwen/qwen3.7-plus
awkweave-0036401
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
8 fable chen 14 grove jules 19 amber bruno 21 birch dina 30 indigo jules 15 amber hana 29 delta kim
30
11 grove dina 11 fable gus 28 grove alice 8 ember lina 25 ember eli 29 harbor eli
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036401-p1
Identify and output the maximum number found in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
8 fable chen 14 grove jules 19 amber bruno 21 birch dina 30 indigo jules 15 amber hana 29 delta kim
30
11 grove dina 11 fable gus 28 grove alice 8 ember lina 25 ember eli 29 harbor eli
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036401
qwen/qwen3.7-plus
awkweave-0036402
Count all input records and print the total.
END{print NR}
dina 94 hana 55 jules 13 lina 38 gus 74 farah 73 eli 18 alice 29 dina 119
9
kim 28 ivan 22 ivan 62 lina 31 ivan 65 chen 56 kim 55 jules 64 alice 10 farah 74
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036402-p1
Calculate the total number of input records and display the count.
END{print NR}
dina 94 hana 55 jules 13 lina 38 gus 74 farah 73 eli 18 alice 29 dina 119
9
kim 28 ivan 22 ivan 62 lina 31 ivan 65 chen 56 kim 55 jules 64 alice 10 farah 74
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036402
qwen/qwen3.7-plus
awkweave-0036403
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
alice grove 10 bruno harbor 4 bruno harbor 4 jules cobalt 55 hana fable 61 gus juniper 98 alice amber 112
alice grove 10 bruno harbor 4 jules cobalt 55 hana fable 61 gus juniper 98 alice amber 112
gus fable 27 ivan delta 108 jules ember 82 dina juniper 58 gus fable 27 farah indigo 79 ivan indigo 60
gus fable 27 ivan delta 108 jules ember 82 dina juniper 58 farah indigo 79 ivan indigo 60
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036403-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
alice grove 10 bruno harbor 4 bruno harbor 4 jules cobalt 55 hana fable 61 gus juniper 98 alice amber 112
alice grove 10 bruno harbor 4 jules cobalt 55 hana fable 61 gus juniper 98 alice amber 112
gus fable 27 ivan delta 108 jules ember 82 dina juniper 58 gus fable 27 farah indigo 79 ivan indigo 60
gus fable 27 ivan delta 108 jules ember 82 dina juniper 58 farah indigo 79 ivan indigo 60
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036403
qwen/qwen3.7-plus
awkweave-0036404
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
farah indigo 5 gus fable 4 farah juniper 3 bruno delta 2 farah delta 50 chen delta 113 alice harbor 25 jules birch 54
farah indigo 5 gus fable 4 farah juniper 3 bruno delta 2 alice harbor 25 jules birch 54
jules harbor 106 dina ember 57 ivan cobalt 82 bruno cobalt 52 ivan amber 59 bruno juniper 101 ivan birch 21
jules harbor 106 dina ember 57 ivan cobalt 82 ivan amber 59 bruno juniper 101 ivan birch 21
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036404-p1
Retain only the initial line for every unique value in the second column, keeping the original order.
!seen[$2]++
farah indigo 5 gus fable 4 farah juniper 3 bruno delta 2 farah delta 50 chen delta 113 alice harbor 25 jules birch 54
farah indigo 5 gus fable 4 farah juniper 3 bruno delta 2 alice harbor 25 jules birch 54
jules harbor 106 dina ember 57 ivan cobalt 82 bruno cobalt 52 ivan amber 59 bruno juniper 101 ivan birch 21
jules harbor 106 dina ember 57 ivan cobalt 82 ivan amber 59 bruno juniper 101 ivan birch 21
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036404
qwen/qwen3.7-plus
awkweave-0036405
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 15 birch gus 22 grove gus 12 birch kim 19 juniper chen 17 birch farah 4 grove alice 2 amber
ivan 15 gus 37 gus 49 kim 68 chen 85 farah 89 alice 91
ivan 10 fable chen 17 birch hana 10 grove lina 8 indigo ivan 30 harbor hana 30 ember chen 28 indigo gus 20 fable
ivan 10 chen 27 hana 37 lina 45 ivan 75 hana 105 chen 133 gus 153
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036405-p1
Output the first column alongside the cumulative sum of the second column, separated by a space.
{s+=$2;print $1,s}
ivan 15 birch gus 22 grove gus 12 birch kim 19 juniper chen 17 birch farah 4 grove alice 2 amber
ivan 15 gus 37 gus 49 kim 68 chen 85 farah 89 alice 91
ivan 10 fable chen 17 birch hana 10 grove lina 8 indigo ivan 30 harbor hana 30 ember chen 28 indigo gus 20 fable
ivan 10 chen 27 hana 37 lina 45 ivan 75 hana 105 chen 133 gus 153
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036405
qwen/qwen3.7-plus
awkweave-0036406
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
jules 9 19 birch ivan 20 25 delta eli 3 13 juniper eli 16 30 cobalt farah 19 22 ember dina 1 20 ember
jules 28 ivan 45 eli 16 eli 46 farah 41 dina 21
bruno 27 19 fable ivan 1 30 ember kim 19 26 indigo kim 19 25 birch bruno 11 21 birch chen 2 13 delta kim 20 14 harbor farah 7 25 ember ivan 6 23 cobalt
bruno 46 ivan 31 kim 45 kim 44 bruno 32 chen 15 kim 34 farah 32 ivan 29
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036406-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
jules 9 19 birch ivan 20 25 delta eli 3 13 juniper eli 16 30 cobalt farah 19 22 ember dina 1 20 ember
jules 28 ivan 45 eli 16 eli 46 farah 41 dina 21
bruno 27 19 fable ivan 1 30 ember kim 19 26 indigo kim 19 25 birch bruno 11 21 birch chen 2 13 delta kim 20 14 harbor farah 7 25 ember ivan 6 23 cobalt
bruno 46 ivan 31 kim 45 kim 44 bruno 32 chen 15 kim 34 farah 32 ivan 29
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036406
qwen/qwen3.7-plus
awkweave-0036407
Print column 1 and pass when column 2 is at least 22; otherwise print fail.
{print $1,($2>=22?"pass":"fail")}
bruno 21 kim 24 eli 17 gus 30 chen 14 gus 3 farah 5 kim 5
bruno fail kim pass eli fail gus pass chen fail gus fail farah fail kim fail
alice 2 bruno 17 bruno 5 jules 10 lina 27 gus 22 dina 29
alice fail bruno fail bruno fail jules fail lina pass gus pass dina pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036407-p1
Output the first column with 'pass' if the second column is 22 or higher, otherwise output 'fail'.
{print $1,($2>=22?"pass":"fail")}
bruno 21 kim 24 eli 17 gus 30 chen 14 gus 3 farah 5 kim 5
bruno fail kim pass eli fail gus pass chen fail gus fail farah fail kim fail
alice 2 bruno 17 bruno 5 jules 10 lina 27 gus 22 dina 29
alice fail bruno fail bruno fail jules fail lina pass gus pass dina pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036407
qwen/qwen3.7-plus
awkweave-0036408
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
gus delta 51 kim indigo 118 dina birch 71 eli harbor 51 ivan cobalt 119 kim cobalt 48 eli ember 78 bruno fable 103
GUS KIM DINA ELI IVAN KIM ELI BRUNO
gus harbor 43 eli juniper 53 chen amber 55 eli indigo 8 eli amber 23 bruno birch 40
GUS ELI CHEN ELI ELI BRUNO
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036408-p1
Transform the first column to uppercase and display only that column.
{print toupper($1)}
gus delta 51 kim indigo 118 dina birch 71 eli harbor 51 ivan cobalt 119 kim cobalt 48 eli ember 78 bruno fable 103
GUS KIM DINA ELI IVAN KIM ELI BRUNO
gus harbor 43 eli juniper 53 chen amber 55 eli indigo 8 eli amber 23 bruno birch 40
GUS ELI CHEN ELI ELI BRUNO
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036408
qwen/qwen3.7-plus
awkweave-0036409
From column 1, print 3 characters starting at character 2.
{print substr($1,2,3)}
grove 6 ember 18 cobalt 42 cobalt 61 birch 35 delta 113 amber 95
rov mbe oba oba irc elt mbe
grove 84 grove 19 delta 32 ember 113 juniper 117 harbor 50
rov rov elt mbe uni arb
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036409-p1
Extract and print a 3-character substring from the first column, starting at the second character.
{print substr($1,2,3)}
grove 6 ember 18 cobalt 42 cobalt 61 birch 35 delta 113 amber 95
rov mbe oba oba irc elt mbe
grove 84 grove 19 delta 32 ember 113 juniper 117 harbor 50
rov rov elt mbe uni arb
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036409
qwen/qwen3.7-plus
awkweave-0036410
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
ember_birch 115 cobalt_grove 114 juniper_delta 35 amber_cobalt 84 ember_delta 43 birch_indigo 57 birch_delta 94 juniper_delta 99 indigo_grove 111 fable_indigo 118
ember birch cobalt grove juniper delta amber cobalt ember delta birch indigo birch delta juniper delta indigo grove fable indigo
cobalt_indigo 7 ember_grove 20 amber_amber 86 fable_delta 54 birch_harbor 60 amber_cobalt 34 ember_delta 16 harbor_ember 110
cobalt indigo ember grove amber amber fable delta birch harbor amber cobalt ember delta harbor ember
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036410-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
ember_birch 115 cobalt_grove 114 juniper_delta 35 amber_cobalt 84 ember_delta 43 birch_indigo 57 birch_delta 94 juniper_delta 99 indigo_grove 111 fable_indigo 118
ember birch cobalt grove juniper delta amber cobalt ember delta birch indigo birch delta juniper delta indigo grove fable indigo
cobalt_indigo 7 ember_grove 20 amber_amber 86 fable_delta 54 birch_harbor 60 amber_cobalt 34 ember_delta 16 harbor_ember 110
cobalt indigo ember grove amber amber fable delta birch harbor amber cobalt ember delta harbor ember
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036410
qwen/qwen3.7-plus
awkweave-0036411
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)}
bruno harbor 31 failed ivan amber 35 failed hana indigo 75 paused kim juniper 41 pending chen amber 23 ready chen harbor 71 closed hana cobalt 39 failed eli indigo 25 paused
failed 31 harbor bruno failed 35 amber ivan paused 75 indigo hana pending 41 juniper kim ready 23 amber chen closed 71 harbor chen failed 39 cobalt hana paused 25 indigo eli
lina juniper 108 closed gus ember 9 closed chen ember 102 pending jules ember 15 ready jules cobalt 94 pending hana amber 56 closed bruno ember 12 active chen amber 54 closed
closed 108 juniper lina closed 9 ember gus pending 102 ember chen ready 15 ember jules pending 94 cobalt jules closed 56 amber hana active 12 ember bruno closed 54 amber chen
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036411-p1
Reverse the sequence of fields in each line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
bruno harbor 31 failed ivan amber 35 failed hana indigo 75 paused kim juniper 41 pending chen amber 23 ready chen harbor 71 closed hana cobalt 39 failed eli indigo 25 paused
failed 31 harbor bruno failed 35 amber ivan paused 75 indigo hana pending 41 juniper kim ready 23 amber chen closed 71 harbor chen failed 39 cobalt hana paused 25 indigo eli
lina juniper 108 closed gus ember 9 closed chen ember 102 pending jules ember 15 ready jules cobalt 94 pending hana amber 56 closed bruno ember 12 active chen amber 54 closed
closed 108 juniper lina closed 9 ember gus pending 102 ember chen ready 15 ember jules pending 94 cobalt jules closed 56 amber hana active 12 ember bruno closed 54 amber chen
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036411
qwen/qwen3.7-plus
awkweave-0036412
Print the number of whitespace-separated fields on each line.
{print NF}
farah harbor 89 paused gus fable 110 closed dina amber 50 closed chen cobalt 65 failed gus ember 99 active hana ember 29 pending kim indigo 64 paused dina fable 115 paused eli amber 101 failed gus indigo 28 active
4 4 4 4 4 4 4 4 4 4
bruno amber 9 active gus cobalt 79 active alice birch 69 failed chen cobalt 29 failed hana birch 2 closed ivan cobalt 85 active
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036412-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
farah harbor 89 paused gus fable 110 closed dina amber 50 closed chen cobalt 65 failed gus ember 99 active hana ember 29 pending kim indigo 64 paused dina fable 115 paused eli amber 101 failed gus indigo 28 active
4 4 4 4 4 4 4 4 4 4
bruno amber 9 active gus cobalt 79 active alice birch 69 failed chen cobalt 29 failed hana birch 2 closed ivan cobalt 85 active
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036412
qwen/qwen3.7-plus
awkweave-0036413
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]]}
bruno beta 64 hana beta 114 jules alpha 56 lina alpha 44 eli gamma 112 hana beta 56 eli beta 28 farah gamma 4 dina beta 50 lina beta 70
beta 6 alpha 2 gamma 2
lina beta 58 kim beta 43 alice gamma 46 farah delta 93 eli gamma 103 bruno beta 29 bruno alpha 119 alice alpha 62 eli gamma 91
beta 3 gamma 3 delta 1 alpha 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036413-p1
Tally the occurrences of each unique value in the second column and display 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]]}
bruno beta 64 hana beta 114 jules alpha 56 lina alpha 44 eli gamma 112 hana beta 56 eli beta 28 farah gamma 4 dina beta 50 lina beta 70
beta 6 alpha 2 gamma 2
lina beta 58 kim beta 43 alice gamma 46 farah delta 93 eli gamma 103 bruno beta 29 bruno alpha 119 alice alpha 62 eli gamma 91
beta 3 gamma 3 delta 1 alpha 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036413
qwen/qwen3.7-plus
awkweave-0036414
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
gus alpha 19 chen beta 14 ivan beta 4 bruno alpha 16 bruno alpha 19 eli alpha 5 gus alpha 16 kim delta 16 ivan gamma 3 chen gamma 30
alpha 75 beta 18 delta 16 gamma 33
hana delta 28 kim beta 2 chen gamma 8 dina alpha 19 kim delta 6 alice alpha 10 farah alpha 12
delta 34 beta 2 gamma 8 alpha 41
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036414-p1
Calculate the sum of the third column grouped by the second column's categories, outputting the results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
gus alpha 19 chen beta 14 ivan beta 4 bruno alpha 16 bruno alpha 19 eli alpha 5 gus alpha 16 kim delta 16 ivan gamma 3 chen gamma 30
alpha 75 beta 18 delta 16 gamma 33
hana delta 28 kim beta 2 chen gamma 8 dina alpha 19 kim delta 6 alice alpha 10 farah alpha 12
delta 34 beta 2 gamma 8 alpha 41
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036414
qwen/qwen3.7-plus
awkweave-0036415
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 birch 97 alpha harbor 59 delta cobalt 110 gamma ember 21 delta delta 107 beta juniper 41 delta fable 46 delta fable 14 beta cobalt 120 gamma grove 73
beta 3 delta 4 gamma 2
delta cobalt 89 alpha grove 102 gamma grove 74 delta ember 80 delta birch 112 gamma grove 119 delta fable 71 gamma delta 56 delta cobalt 42
delta 5 gamma 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036415-p1
List each duplicate value from the first column along with its frequency, ordered by when they first appear.
{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 birch 97 alpha harbor 59 delta cobalt 110 gamma ember 21 delta delta 107 beta juniper 41 delta fable 46 delta fable 14 beta cobalt 120 gamma grove 73
beta 3 delta 4 gamma 2
delta cobalt 89 alpha grove 102 gamma grove 74 delta ember 80 delta birch 112 gamma grove 119 delta fable 71 gamma delta 56 delta cobalt 42
delta 5 gamma 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036415
qwen/qwen3.7-plus
awkweave-0036416
The first row is a header. Print the record_id column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
note state display_name record_id r001 lina 6 failed r002 alice 16 failed r003 chen 19 failed r004 dina 23 closed r005 dina 5 paused r006 farah 10 paused r007 lina 14 closed
failed failed failed closed paused paused closed
note state display_name record_id r001 bruno 12 closed r002 hana 14 failed r003 gus 15 pending r004 lina 5 ready r005 gus 21 active r006 farah 9 failed r007 chen 15 paused
closed failed pending ready active failed paused
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036416-p1
Treating the initial row as a header, output the values from the record_id column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
note state display_name record_id r001 lina 6 failed r002 alice 16 failed r003 chen 19 failed r004 dina 23 closed r005 dina 5 paused r006 farah 10 paused r007 lina 14 closed
failed failed failed closed paused paused closed
note state display_name record_id r001 bruno 12 closed r002 hana 14 failed r003 gus 15 pending r004 lina 5 ready r005 gus 21 active r006 farah 9 failed r007 chen 15 paused
closed failed pending ready active failed paused
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036416
qwen/qwen3.7-plus
awkweave-0036417
The first row is a header. Print display_name for data rows whose score is greater than 10.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>10{print $h["display_name"]}
record_id display_name score state r001 bruno 28 paused r002 dina 28 active r003 hana 7 failed r004 gus 13 failed r005 gus 4 pending r006 farah 28 pending r007 chen 29 paused r008 dina 16 paused r009 dina 3 pending
bruno dina gus farah chen dina
record_id display_name score state r001 bruno 11 pending r002 kim 3 failed r003 dina 1 pending r004 kim 26 ready r005 bruno 9 pending r006 lina 16 closed r007 gus 2 active r008 hana 20 closed r009 hana 28 failed r010 alice 27 pending
bruno kim lina hana hana alice
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036417-p1
Ignoring the header row, print the display_name field for any record where the score is strictly greater than 10.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>10{print $h["display_name"]}
record_id display_name score state r001 bruno 28 paused r002 dina 28 active r003 hana 7 failed r004 gus 13 failed r005 gus 4 pending r006 farah 28 pending r007 chen 29 paused r008 dina 16 paused r009 dina 3 pending
bruno dina gus farah chen dina
record_id display_name score state r001 bruno 11 pending r002 kim 3 failed r003 dina 1 pending r004 kim 26 ready r005 bruno 9 pending r006 lina 16 closed r007 gus 2 active r008 hana 20 closed r009 hana 28 failed r010 alice 27 pending
bruno kim lina hana hana alice
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036417
qwen/qwen3.7-plus
awkweave-0036418
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
hana 10 paused eli 15 failed farah 14 paused bruno 21 paused farah 9 pending lina 20 closed lina 6 paused kim 16 pending
10 15 14 21 9 20 6 16
hana 19 ready jules 7 failed farah 25 closed alice 15 pending lina 5 ready farah 6 paused kim 5 ready eli 8 pending ivan 20 paused
19 7 25 15 5 6 5 8 20
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036418-p1
Given tab-separated input, extract and print the second field from each record.
BEGIN{FS=OFS="\t"}{print $2}
hana 10 paused eli 15 failed farah 14 paused bruno 21 paused farah 9 pending lina 20 closed lina 6 paused kim 16 pending
10 15 14 21 9 20 6 16
hana 19 ready jules 7 failed farah 25 closed alice 15 pending lina 5 ready farah 6 paused kim 5 ready eli 8 pending ivan 20 paused
19 7 25 15 5 6 5 8 20
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036418
qwen/qwen3.7-plus
awkweave-0036419
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 15.
BEGIN{FS=OFS=","}$2>15{print $1}
hana,17,failed jules,24,failed farah,28,failed gus,16,failed farah,7,failed bruno,7,active lina,19,closed
hana jules farah gus lina
gus,16,ready eli,7,active alice,3,closed ivan,11,active kim,13,ready lina,8,ready kim,4,pending chen,26,failed lina,11,closed
gus chen
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036419-p1
For simple comma-separated input without quoted commas, output the first column whenever the second column's value is greater than 15.
BEGIN{FS=OFS=","}$2>15{print $1}
hana,17,failed jules,24,failed farah,28,failed gus,16,failed farah,7,failed bruno,7,active lina,19,closed
hana jules farah gus lina
gus,16,ready eli,7,active alice,3,closed ivan,11,active kim,13,ready lina,8,ready kim,4,pending chen,26,failed lina,11,closed
gus chen
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036419
qwen/qwen3.7-plus
awkweave-0036420
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
alice cobalt 12 jules juniper 25 alice fable 24 kim amber 67 bruno delta 83 jules cobalt 54 kim fable 40 farah juniper 42 gus fable 76 hana indigo 87
alice cobalt 12 jules juniper 25 alice fable 24 kim amber 67 bruno delta 83 jules cobalt 54 kim fable 40 farah juniper 42 gus fable 76 hana indigo 87
lina ember 75 gus birch 18 kim fable 60 alice harbor 96 dina amber 64 bruno cobalt 100
lina ember 75 gus birch 18 kim fable 60 alice harbor 96 dina amber 64 bruno cobalt 100
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036420-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
alice cobalt 12 jules juniper 25 alice fable 24 kim amber 67 bruno delta 83 jules cobalt 54 kim fable 40 farah juniper 42 gus fable 76 hana indigo 87
alice cobalt 12 jules juniper 25 alice fable 24 kim amber 67 bruno delta 83 jules cobalt 54 kim fable 40 farah juniper 42 gus fable 76 hana indigo 87
lina ember 75 gus birch 18 kim fable 60 alice harbor 96 dina amber 64 bruno cobalt 100
lina ember 75 gus birch 18 kim fable 60 alice harbor 96 dina amber 64 bruno cobalt 100
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036420
qwen/qwen3.7-plus
awkweave-0036421
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
eli amber 51 pending kim amber 113 ready ivan juniper 114 paused eli juniper 106 paused gus ember 26 pending bruno harbor 71 active bruno amber 77 pending jules cobalt 24 closed
ivan juniper 114 paused
ivan cobalt 81 failed ivan birch 8 closed ivan fable 55 closed farah cobalt 117 ready lina amber 65 ready bruno cobalt 2 pending jules juniper 108 paused jules birch 60 paused
jules juniper 108 paused
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036421-p1
Identify and print the longest line from the input; if multiple lines share the maximum length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
eli amber 51 pending kim amber 113 ready ivan juniper 114 paused eli juniper 106 paused gus ember 26 pending bruno harbor 71 active bruno amber 77 pending jules cobalt 24 closed
ivan juniper 114 paused
ivan cobalt 81 failed ivan birch 8 closed ivan fable 55 closed farah cobalt 117 ready lina amber 65 ready bruno cobalt 2 pending jules juniper 108 paused jules birch 60 paused
jules juniper 108 paused
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036421
qwen/qwen3.7-plus
awkweave-0036422
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
gus 15 bruno 10 hana 1 lina 24 dina 37 hana 19 lina 56 jules 89
bruno 10 dina 37 jules 89
bruno 27 chen 10 lina 37 ivan 28 alice 36 hana 45 lina 57 gus 68 bruno 73 jules 56
chen 10 alice 36 gus 68
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036422-p1
Print every third line beginning with line 2 (i.e., lines 2, 5, 8, etc.).
NR%3==2
gus 15 bruno 10 hana 1 lina 24 dina 37 hana 19 lina 56 jules 89
bruno 10 dina 37 jules 89
bruno 27 chen 10 lina 37 ivan 28 alice 36 hana 45 lina 57 gus 68 bruno 73 jules 56
chen 10 alice 36 gus 68
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036422
qwen/qwen3.7-plus
awkweave-0036423
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
delta amber 26 delta harbor 27 delta amber 84 gamma ember 36 beta ember 25 gamma grove 43
3
delta cobalt 10 alpha ember 43 alpha grove 3 alpha delta 58 alpha cobalt 102 delta delta 90
2
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036423-p1
Determine the number of unique values in the first column and output only that total count.
{if(!seen[$1]++)n++}END{print n+0}
delta amber 26 delta harbor 27 delta amber 84 gamma ember 36 beta ember 25 gamma grove 43
3
delta cobalt 10 alpha ember 43 alpha grove 3 alpha delta 58 alpha cobalt 102 delta delta 90
2
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036423
qwen/qwen3.7-plus
awkweave-0036424
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}
dina 24 0 gus 16 20 jules 30 4 gus 28 10 kim 6 15 farah 25 18 alice 26 27 chen 18 10
gus 0.80 jules 7.50 gus 2.80 kim 0.40 farah 1.39 alice 0.96 chen 1.80
bruno 29 0 jules 26 3 lina 28 19 alice 19 2 ivan 24 22 chen 27 7 farah 16 27 alice 9 29 alice 27 12 ivan 2 22
jules 8.67 lina 1.47 alice 9.50 ivan 1.09 chen 3.86 farah 0.59 alice 0.31 alice 2.25 ivan 0.09
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036424-p1
For every row where the third column is non-zero, output the first column followed by the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
dina 24 0 gus 16 20 jules 30 4 gus 28 10 kim 6 15 farah 25 18 alice 26 27 chen 18 10
gus 0.80 jules 7.50 gus 2.80 kim 0.40 farah 1.39 alice 0.96 chen 1.80
bruno 29 0 jules 26 3 lina 28 19 alice 19 2 ivan 24 22 chen 27 7 farah 16 27 alice 9 29 alice 27 12 ivan 2 22
jules 8.67 lina 1.47 alice 9.50 ivan 1.09 chen 3.86 farah 0.59 alice 0.31 alice 2.25 ivan 0.09
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036424
qwen/qwen3.7-plus
awkweave-0036425
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]}
jules fable 10 hana fable 5 jules cobalt 10 hana indigo 9 eli birch 2 kim grove 17 eli cobalt 15 jules juniper 28 chen grove 7 bruno delta 3
jules juniper 28 kim grove 17 eli cobalt 15
alice harbor 2 bruno cobalt 1 gus amber 17 eli amber 22 kim birch 18 eli ember 16 chen amber 28
chen amber 28 eli amber 22 kim birch 18
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036425-p1
Display the three records with the largest numeric values in the third column, sorted in descending order, while maintaining the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
jules fable 10 hana fable 5 jules cobalt 10 hana indigo 9 eli birch 2 kim grove 17 eli cobalt 15 jules juniper 28 chen grove 7 bruno delta 3
jules juniper 28 kim grove 17 eli cobalt 15
alice harbor 2 bruno cobalt 1 gus amber 17 eli amber 22 kim birch 18 eli ember 16 chen amber 28
chen amber 28 eli amber 22 kim birch 18
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036425
qwen/qwen3.7-plus
awkweave-0036426
Select the 4th and 2nd fields in that order.
{print $4, $2}
21 alice jules closed 72 dina lina paused 54 ivan dina ready 11 gus hana closed 79 bruno bruno active 71 chen kim ready 97 jules chen pending 95 lina jules failed 110 hana jules pending 88 alice bruno active
closed alice paused dina ready ivan closed gus active bruno ready chen pending jules failed lina pending hana active alice
105 eli chen closed 94 ivan farah active 50 gus kim failed 73 eli kim pending 70 jules gus active 38 eli ivan ready
closed eli active ivan failed gus pending eli active jules ready eli
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036426-p1
Extract and display the fourth field followed by the second field.
{print $4, $2}
21 alice jules closed 72 dina lina paused 54 ivan dina ready 11 gus hana closed 79 bruno bruno active 71 chen kim ready 97 jules chen pending 95 lina jules failed 110 hana jules pending 88 alice bruno active
closed alice paused dina ready ivan closed gus active bruno ready chen pending jules failed lina pending hana active alice
105 eli chen closed 94 ivan farah active 50 gus kim failed 73 eli kim pending 70 jules gus active 38 eli ivan ready
closed eli active ivan failed gus pending eli active jules ready eli
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036426
qwen/qwen3.7-plus
awkweave-0036427
Print the last field of every input line.
{print $NF}
29 alice 75 ember dina pending 61 108 farah 87 birch kim ready 61 63 alice 67 indigo kim closed 32 44 hana 118 indigo chen paused 38 73 gus 10 birch kim paused 61 102 alice 42 cobalt kim failed 71
61 61 32 38 61 71
109 bruno 36 ember lina failed 109 104 chen 36 harbor ivan failed 94 84 bruno 107 juniper chen closed 5 99 ivan 17 amber bruno active 57 108 lina 58 amber chen closed 8 6 dina 78 grove alice closed 117 57 dina 12 cobalt eli ready 90 46 gus 93 ember ivan paused 99
109 94 5 57 8 117 90 99
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036427-p1
Output the final field from each input line.
{print $NF}
29 alice 75 ember dina pending 61 108 farah 87 birch kim ready 61 63 alice 67 indigo kim closed 32 44 hana 118 indigo chen paused 38 73 gus 10 birch kim paused 61 102 alice 42 cobalt kim failed 71
61 61 32 38 61 71
109 bruno 36 ember lina failed 109 104 chen 36 harbor ivan failed 94 84 bruno 107 juniper chen closed 5 99 ivan 17 amber bruno active 57 108 lina 58 amber chen closed 8 6 dina 78 grove alice closed 117 57 dina 12 cobalt eli ready 90 46 gus 93 ember ivan paused 99
109 94 5 57 8 117 90 99
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036427
qwen/qwen3.7-plus
awkweave-0036428
Print the complete records where column 3 is at least 40.
$3 >= 40
dina amber 64 indigo hana chen cobalt 79 amber kim gus ember 47 harbor kim alice ember 104 grove bruno hana birch 51 birch lina bruno birch 69 cobalt dina jules amber 67 harbor gus gus juniper 40 fable alice jules indigo 85 birch dina
dina amber 64 indigo hana chen cobalt 79 amber kim gus ember 47 harbor kim alice ember 104 grove bruno hana birch 51 birch lina bruno birch 69 cobalt dina jules amber 67 harbor gus gus juniper 40 fable alice jules indigo 85 birch dina
dina juniper 26 juniper eli hana birch 84 juniper dina ivan ember 31 harbor bruno alice amber 46 harbor jules chen grove 17 grove jules ivan amber 77 fable eli chen delta 68 delta dina ivan harbor 45 harbor farah
hana birch 84 juniper dina alice amber 46 harbor jules ivan amber 77 fable eli chen delta 68 delta dina ivan harbor 45 harbor farah
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036428-p1
Print the full records for which the value in the third column is 40 or greater.
$3 >= 40
dina amber 64 indigo hana chen cobalt 79 amber kim gus ember 47 harbor kim alice ember 104 grove bruno hana birch 51 birch lina bruno birch 69 cobalt dina jules amber 67 harbor gus gus juniper 40 fable alice jules indigo 85 birch dina
dina amber 64 indigo hana chen cobalt 79 amber kim gus ember 47 harbor kim alice ember 104 grove bruno hana birch 51 birch lina bruno birch 69 cobalt dina jules amber 67 harbor gus gus juniper 40 fable alice jules indigo 85 birch dina
dina juniper 26 juniper eli hana birch 84 juniper dina ivan ember 31 harbor bruno alice amber 46 harbor jules chen grove 17 grove jules ivan amber 77 fable eli chen delta 68 delta dina ivan harbor 45 harbor farah
hana birch 84 juniper dina alice amber 46 harbor jules ivan amber 77 fable eli chen delta 68 delta dina ivan harbor 45 harbor farah
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036428
qwen/qwen3.7-plus
awkweave-0036429
Show whole lines whose 3rd field is between 10 and 20, inclusive.
$3 >= 10 && $3 <= 20
failed fable 22 ready active juniper 2 pending paused indigo 10 failed failed fable 2 pending active indigo 6 closed pending amber 21 pending closed fable 3 active failed fable 11 active failed birch 5 active
paused indigo 10 failed failed fable 11 active
paused grove 4 pending closed harbor 22 paused paused ember 5 failed failed fable 7 failed failed indigo 22 active active indigo 28 pending paused ember 12 pending ready amber 14 closed paused birch 5 ready
paused ember 12 pending ready amber 14 closed
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036429-p1
Display entire lines where the third field falls within the inclusive range of 10 to 20.
$3 >= 10 && $3 <= 20
failed fable 22 ready active juniper 2 pending paused indigo 10 failed failed fable 2 pending active indigo 6 closed pending amber 21 pending closed fable 3 active failed fable 11 active failed birch 5 active
paused indigo 10 failed failed fable 11 active
paused grove 4 pending closed harbor 22 paused paused ember 5 failed failed fable 7 failed failed indigo 22 active active indigo 28 pending paused ember 12 pending ready amber 14 closed paused birch 5 ready
paused ember 12 pending ready amber 14 closed
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036429
qwen/qwen3.7-plus
awkweave-0036430
Print column 1 only for rows where column 2 is exactly failed.
$2 == "failed"{print $1}
alice paused 106 birch kim active 13 cobalt eli ready 102 harbor hana failed 44 juniper ivan pending 20 amber bruno paused 67 birch hana paused 24 delta bruno pending 107 grove kim ready 79 ember jules closed 16 grove
hana
chen active 120 ember dina pending 11 juniper ivan active 39 juniper bruno pending 22 birch kim ready 110 ember jules failed 78 birch lina active 111 indigo lina closed 24 ember eli active 24 ember ivan active 79 grove
jules
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036430-p1
Output only the first column for rows where the second column matches the exact string 'failed'.
$2 == "failed"{print $1}
alice paused 106 birch kim active 13 cobalt eli ready 102 harbor hana failed 44 juniper ivan pending 20 amber bruno paused 67 birch hana paused 24 delta bruno pending 107 grove kim ready 79 ember jules closed 16 grove
hana
chen active 120 ember dina pending 11 juniper ivan active 39 juniper bruno pending 22 birch kim ready 110 ember jules failed 78 birch lina active 111 indigo lina closed 24 ember eli active 24 ember ivan active 79 grove
jules
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036430
qwen/qwen3.7-plus
awkweave-0036431
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
juniper ERROR 20 harbor DEBUG 79 ember INFO 6 indigo WARN 104 indigo ERROR 56 ember WARN 35 amber DEBUG 95
juniper ERROR 20 indigo ERROR 56
grove INFO 119 amber ERROR 81 harbor WARN 16 delta ERROR 8 cobalt INFO 27 harbor WARN 28
amber ERROR 81 delta ERROR 8
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036431-p1
Print all fields from any line where the second field starts with the prefix 'ERROR'.
$2 ~ /^ERROR/
juniper ERROR 20 harbor DEBUG 79 ember INFO 6 indigo WARN 104 indigo ERROR 56 ember WARN 35 amber DEBUG 95
juniper ERROR 20 indigo ERROR 56
grove INFO 119 amber ERROR 81 harbor WARN 16 delta ERROR 8 cobalt INFO 27 harbor WARN 28
amber ERROR 81 delta ERROR 8
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036431
qwen/qwen3.7-plus
awkweave-0036432
Print every line except those containing the exact text birch.
$0 !~ /birch/
ember 65 paused amber 86 paused cobalt 97 paused amber 105 paused indigo 22 paused fable 27 active birch 999 active
ember 65 paused amber 86 paused cobalt 97 paused amber 105 paused indigo 22 paused fable 27 active
ember 64 closed juniper 38 active birch 73 failed fable 111 closed harbor 86 closed indigo 64 closed birch 999 active
ember 64 closed juniper 38 active fable 111 closed harbor 86 closed indigo 64 closed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036432-p1
Output every line that does not contain the exact substring 'birch'.
$0 !~ /birch/
ember 65 paused amber 86 paused cobalt 97 paused amber 105 paused indigo 22 paused fable 27 active birch 999 active
ember 65 paused amber 86 paused cobalt 97 paused amber 105 paused indigo 22 paused fable 27 active
ember 64 closed juniper 38 active birch 73 failed fable 111 closed harbor 86 closed indigo 64 closed birch 999 active
ember 64 closed juniper 38 active fable 111 closed harbor 86 closed indigo 64 closed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036432
qwen/qwen3.7-plus
awkweave-0036433
Print lines 3 through 4, including both endpoints.
NR >= 3 && NR <= 4
farah harbor 11 kim grove 13 kim ember 73 eli amber 90 bruno ember 50 dina birch 4 kim fable 39
kim ember 73 eli amber 90
farah amber 47 gus birch 59 dina amber 71 hana harbor 77 jules juniper 19 chen cobalt 61 hana grove 25 kim ember 61 farah harbor 118 gus cobalt 88
dina amber 71 hana harbor 77
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036433-p1
Print lines 3 and 4, inclusive.
NR >= 3 && NR <= 4
farah harbor 11 kim grove 13 kim ember 73 eli amber 90 bruno ember 50 dina birch 4 kim fable 39
kim ember 73 eli amber 90
farah amber 47 gus birch 59 dina amber 71 hana harbor 77 jules juniper 19 chen cobalt 61 hana grove 25 kim ember 61 farah harbor 118 gus cobalt 88
dina amber 71 hana harbor 77
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036433
qwen/qwen3.7-plus
awkweave-0036434
Output only the first 5 records.
NR <= 5
gus 5 birch hana 40 harbor hana 13 juniper jules 110 delta ivan 38 birch ivan 2 cobalt lina 105 harbor kim 65 delta hana 66 grove
gus 5 birch hana 40 harbor hana 13 juniper jules 110 delta ivan 38 birch
gus 70 indigo bruno 72 birch jules 1 juniper ivan 39 grove lina 68 juniper farah 27 amber jules 107 birch bruno 38 grove farah 79 fable
gus 70 indigo bruno 72 birch jules 1 juniper ivan 39 grove lina 68 juniper
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036434-p1
Output only the first five records.
NR <= 5
gus 5 birch hana 40 harbor hana 13 juniper jules 110 delta ivan 38 birch ivan 2 cobalt lina 105 harbor kim 65 delta hana 66 grove
gus 5 birch hana 40 harbor hana 13 juniper jules 110 delta ivan 38 birch
gus 70 indigo bruno 72 birch jules 1 juniper ivan 39 grove lina 68 juniper farah 27 amber jules 107 birch bruno 38 grove farah 79 fable
gus 70 indigo bruno 72 birch jules 1 juniper ivan 39 grove lina 68 juniper
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036434
qwen/qwen3.7-plus
awkweave-0036435
Skip the first line and print every remaining line unchanged.
NR > 1
chen 48 grove chen 12 indigo chen 26 fable jules 22 cobalt dina 72 birch hana 117 cobalt dina 89 grove farah 51 indigo chen 90 harbor kim 51 delta
chen 12 indigo chen 26 fable jules 22 cobalt dina 72 birch hana 117 cobalt dina 89 grove farah 51 indigo chen 90 harbor kim 51 delta
dina 66 ember lina 67 grove farah 37 ember alice 89 indigo bruno 11 delta jules 69 ember
lina 67 grove farah 37 ember alice 89 indigo bruno 11 delta jules 69 ember
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036435-p1
Ignore the first line and print all subsequent lines exactly as they appear.
NR > 1
chen 48 grove chen 12 indigo chen 26 fable jules 22 cobalt dina 72 birch hana 117 cobalt dina 89 grove farah 51 indigo chen 90 harbor kim 51 delta
chen 12 indigo chen 26 fable jules 22 cobalt dina 72 birch hana 117 cobalt dina 89 grove farah 51 indigo chen 90 harbor kim 51 delta
dina 66 ember lina 67 grove farah 37 ember alice 89 indigo bruno 11 delta jules 69 ember
lina 67 grove farah 37 ember alice 89 indigo bruno 11 delta jules 69 ember
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036435
qwen/qwen3.7-plus
awkweave-0036436
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
kim pending 47 hana active 73 ivan active 58 farah paused 70 ivan closed 86 lina ready 88 hana failed 115 chen failed 52
2
dina closed 38 ivan failed 14 chen active 12 jules paused 113 kim pending 21 dina pending 115 lina paused 41 ivan ready 117 eli paused 50 jules paused 107
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036436-p1
Output the count of entries where the second column equals 'active', defaulting to 0 if no matches are found.
$2 == "active"{n++}END{print n+0}
kim pending 47 hana active 73 ivan active 58 farah paused 70 ivan closed 86 lina ready 88 hana failed 115 chen failed 52
2
dina closed 38 ivan failed 14 chen active 12 jules paused 113 kim pending 21 dina pending 115 lina paused 41 ivan ready 117 eli paused 50 jules paused 107
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036436
qwen/qwen3.7-plus
awkweave-0036437
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
hana 12 indigo bruno 27 ember lina 13 juniper lina 3 grove hana 22 amber farah 27 grove kim 25 birch bruno 29 harbor
158
hana 27 amber bruno 15 juniper chen 17 delta jules 3 cobalt gus 27 juniper alice 19 birch bruno 17 cobalt alice 14 indigo chen 2 grove hana 17 cobalt
158
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036437-p1
Compute and display the total sum of all integer values found in the second column.
{s+=$2}END{print s+0}
hana 12 indigo bruno 27 ember lina 13 juniper lina 3 grove hana 22 amber farah 27 grove kim 25 birch bruno 29 harbor
158
hana 27 amber bruno 15 juniper chen 17 delta jules 3 cobalt gus 27 juniper alice 19 birch bruno 17 cobalt alice 14 indigo chen 2 grove hana 17 cobalt
158
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036437
qwen/qwen3.7-plus
awkweave-0036438
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
bruno 13 ember lina 4 delta eli 2 harbor kim 10 grove eli 28 amber dina 20 indigo
12.83
bruno 3 grove eli 13 fable ivan 17 juniper gus 13 delta chen 15 ember kim 20 amber chen 8 fable jules 21 delta ivan 18 harbor alice 25 ember
15.30
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036438-p1
Calculate the average of the values in column 2 and format the result to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
bruno 13 ember lina 4 delta eli 2 harbor kim 10 grove eli 28 amber dina 20 indigo
12.83
bruno 3 grove eli 13 fable ivan 17 juniper gus 13 delta chen 15 ember kim 20 amber chen 8 fable jules 21 delta ivan 18 harbor alice 25 ember
15.30
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036438
qwen/qwen3.7-plus
awkweave-0036439
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
dina birch 27 hana delta 11 kim cobalt 30 farah ember 16 bruno juniper 19 jules amber 21 dina ember 4
4
dina ember 16 ivan grove 3 hana amber 4 lina harbor 17 gus delta 29 kim delta 19 eli cobalt 3 ivan ember 19 farah indigo 4 lina cobalt 27
3
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036439-p1
Identify and output the minimum numeric value present in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
dina birch 27 hana delta 11 kim cobalt 30 farah ember 16 bruno juniper 19 jules amber 21 dina ember 4
4
dina ember 16 ivan grove 3 hana amber 4 lina harbor 17 gus delta 29 kim delta 19 eli cobalt 3 ivan ember 19 farah indigo 4 lina cobalt 27
3
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036439
qwen/qwen3.7-plus
awkweave-0036440
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
indigo bruno 7 amber hana 21 cobalt farah 21 amber hana 29 delta ivan 17 delta lina 28 ember kim 10
29
ember gus 15 fable alice 14 amber kim 13 fable ivan 19 harbor eli 4 delta lina 2 grove alice 17 fable farah 11 juniper lina 12
19
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036440-p1
Identify and output the maximum numeric value present in the third column.
NR==1||$3>extreme{extreme=$3}END{print extreme}
indigo bruno 7 amber hana 21 cobalt farah 21 amber hana 29 delta ivan 17 delta lina 28 ember kim 10
29
ember gus 15 fable alice 14 amber kim 13 fable ivan 19 harbor eli 4 delta lina 2 grove alice 17 fable farah 11 juniper lina 12
19
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036440
qwen/qwen3.7-plus
awkweave-0036441
Count all input records and print the total.
END{print NR}
dina 49 ivan 103 dina 28 farah 18 ivan 51 ivan 80 lina 23
7
chen 51 lina 99 hana 25 jules 53 hana 78 chen 35 lina 50 gus 42 gus 81 lina 76
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null