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-0036501-p1
Calculate and print the number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
alpha indigo 70 gamma grove 33 gamma amber 117 delta ember 113 alpha grove 46 beta fable 40
5
gamma juniper 80 beta cobalt 13 beta grove 33 gamma juniper 93 delta delta 105 delta birch 95
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036501
qwen/qwen3.7-plus
awkweave-0036502
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}
ivan 17 0 farah 1 1 bruno 13 23 hana 28 18 chen 8 20 eli 18 13 gus 29 7 kim 14 21 bruno 26 3 hana 16 4
farah 1.00 bruno 0.57 hana 1.56 chen 0.40 eli 1.38 gus 4.14 kim 0.67 bruno 8.67 hana 4.00
farah 21 0 gus 4 11 ivan 14 14 farah 25 21 gus 8 9 kim 11 21 alice 28 29 kim 23 8
gus 0.36 ivan 1.00 farah 1.19 gus 0.89 kim 0.52 alice 0.97 kim 2.88
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036502-p1
For each row where the third column is not zero, print the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 17 0 farah 1 1 bruno 13 23 hana 28 18 chen 8 20 eli 18 13 gus 29 7 kim 14 21 bruno 26 3 hana 16 4
farah 1.00 bruno 0.57 hana 1.56 chen 0.40 eli 1.38 gus 4.14 kim 0.67 bruno 8.67 hana 4.00
farah 21 0 gus 4 11 ivan 14 14 farah 25 21 gus 8 9 kim 11 21 alice 28 29 kim 23 8
gus 0.36 ivan 1.00 farah 1.19 gus 0.89 kim 0.52 alice 0.97 kim 2.88
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036502
qwen/qwen3.7-plus
awkweave-0036503
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]}
ivan indigo 12 bruno birch 7 gus birch 17 bruno indigo 7 kim grove 5 farah grove 5 hana birch 8 alice indigo 6 farah delta 19
farah delta 19 gus birch 17 ivan indigo 12
jules juniper 6 farah cobalt 9 jules harbor 29 alice harbor 2 hana harbor 19 eli grove 2 lina indigo 24 alice indigo 23 hana fable 10
jules harbor 29 lina indigo 24 alice indigo 23
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036503-p1
Display the top three records with the highest numeric values in the third column, sorted in descending order, maintaining original 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]}
ivan indigo 12 bruno birch 7 gus birch 17 bruno indigo 7 kim grove 5 farah grove 5 hana birch 8 alice indigo 6 farah delta 19
farah delta 19 gus birch 17 ivan indigo 12
jules juniper 6 farah cobalt 9 jules harbor 29 alice harbor 2 hana harbor 19 eli grove 2 lina indigo 24 alice indigo 23 hana fable 10
jules harbor 29 lina indigo 24 alice indigo 23
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036503
qwen/qwen3.7-plus
awkweave-0036504
Print column 3 followed by column 1 for every record.
{print $3, $1}
closed farah hana active 104 pending paused bruno gus paused 63 active active dina chen paused 55 closed active ivan eli closed 59 paused pending lina kim active 54 paused failed eli ivan active 120 active
hana closed gus paused chen active eli active kim pending ivan failed
active dina farah closed 63 paused pending ivan dina paused 73 active failed lina lina closed 105 active paused alice farah active 86 failed active jules lina failed 46 paused closed gus kim pending 6 pending active gus farah ready 50 pending active hana hana failed 53 pending closed hana kim failed 101 ready closed fa...
farah active dina pending lina failed farah paused lina active kim closed farah active hana active kim closed jules closed
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036504-p1
For every record, output the third column followed by the first column.
{print $3, $1}
closed farah hana active 104 pending paused bruno gus paused 63 active active dina chen paused 55 closed active ivan eli closed 59 paused pending lina kim active 54 paused failed eli ivan active 120 active
hana closed gus paused chen active eli active kim pending ivan failed
active dina farah closed 63 paused pending ivan dina paused 73 active failed lina lina closed 105 active paused alice farah active 86 failed active jules lina failed 46 paused closed gus kim pending 6 pending active gus farah ready 50 pending active hana hana failed 53 pending closed hana kim failed 101 ready closed fa...
farah active dina pending lina failed farah paused lina active kim closed farah active hana active kim closed jules closed
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036504
qwen/qwen3.7-plus
awkweave-0036505
Print the last field of every input line.
{print $NF}
gus active ivan closed active 63 eli closed eli active paused 61 lina pending chen ready paused 3 dina pending kim paused failed 14 hana ready chen failed ready 110 eli ready alice pending pending 113 bruno closed farah pending pending 109 kim active dina active paused 96 ivan ready dina failed closed 72
63 61 3 14 110 113 109 96 72
lina active kim active pending 86 ivan closed ivan active failed 28 lina active kim pending ready 10 gus closed hana pending closed 71 eli pending chen failed failed 9 bruno active lina paused failed 59 kim pending hana active pending 72 jules failed lina pending paused 50
86 28 10 71 9 59 72 50
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036505-p1
Print the final field of each input line.
{print $NF}
gus active ivan closed active 63 eli closed eli active paused 61 lina pending chen ready paused 3 dina pending kim paused failed 14 hana ready chen failed ready 110 eli ready alice pending pending 113 bruno closed farah pending pending 109 kim active dina active paused 96 ivan ready dina failed closed 72
63 61 3 14 110 113 109 96 72
lina active kim active pending 86 ivan closed ivan active failed 28 lina active kim pending ready 10 gus closed hana pending closed 71 eli pending chen failed failed 9 bruno active lina paused failed 59 kim pending hana active pending 72 jules failed lina pending paused 50
86 28 10 71 9 59 72 50
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036505
qwen/qwen3.7-plus
awkweave-0036506
Print the complete records where column 2 is greater than 56.
$2 > 56
indigo 19 birch failed failed birch 69 ember ready closed delta 17 birch active ready ember 115 delta active paused fable 4 ember ready paused indigo 56 harbor ready ready
birch 69 ember ready closed ember 115 delta active paused
ember 4 grove pending ready birch 70 amber failed active juniper 78 juniper ready ready grove 57 cobalt pending closed delta 31 cobalt active active ember 34 cobalt ready closed indigo 112 juniper closed closed harbor 92 indigo ready closed
birch 70 amber failed active juniper 78 juniper ready ready grove 57 cobalt pending closed indigo 112 juniper closed closed harbor 92 indigo ready closed
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036506-p1
Output full records where the value in the second column exceeds 56.
$2 > 56
indigo 19 birch failed failed birch 69 ember ready closed delta 17 birch active ready ember 115 delta active paused fable 4 ember ready paused indigo 56 harbor ready ready
birch 69 ember ready closed ember 115 delta active paused
ember 4 grove pending ready birch 70 amber failed active juniper 78 juniper ready ready grove 57 cobalt pending closed delta 31 cobalt active active ember 34 cobalt ready closed indigo 112 juniper closed closed harbor 92 indigo ready closed
birch 70 amber failed active juniper 78 juniper ready ready grove 57 cobalt pending closed indigo 112 juniper closed closed harbor 92 indigo ready closed
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036506
qwen/qwen3.7-plus
awkweave-0036507
Show whole lines whose 1st field is between 6 and 27, inclusive.
$1 >= 6 && $1 <= 27
22 farah failed active 14 ivan active closed 8 lina closed ready 16 dina paused failed 9 jules failed ready 8 kim pending pending
22 farah failed active 14 ivan active closed 8 lina closed ready 16 dina paused failed 9 jules failed ready 8 kim pending pending
23 gus failed failed 4 bruno active ready 14 bruno ready ready 13 lina failed pending 21 gus ready failed 7 hana active active 27 lina pending ready 20 kim paused active 6 farah ready failed 24 bruno paused active
23 gus failed failed 14 bruno ready ready 13 lina failed pending 21 gus ready failed 7 hana active active 27 lina pending ready 20 kim paused active 6 farah ready failed 24 bruno paused active
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036507-p1
Display entire lines where the first field falls within the inclusive range of 6 to 27.
$1 >= 6 && $1 <= 27
22 farah failed active 14 ivan active closed 8 lina closed ready 16 dina paused failed 9 jules failed ready 8 kim pending pending
22 farah failed active 14 ivan active closed 8 lina closed ready 16 dina paused failed 9 jules failed ready 8 kim pending pending
23 gus failed failed 4 bruno active ready 14 bruno ready ready 13 lina failed pending 21 gus ready failed 7 hana active active 27 lina pending ready 20 kim paused active 6 farah ready failed 24 bruno paused active
23 gus failed failed 14 bruno ready ready 13 lina failed pending 21 gus ready failed 7 hana active active 27 lina pending ready 20 kim paused active 6 farah ready failed 24 bruno paused active
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036507
qwen/qwen3.7-plus
awkweave-0036508
Print column 3 only for rows where column 1 is exactly closed.
$1 == "closed"{print $3}
failed 97 kim grove active 52 chen grove failed 17 ivan ember active 117 jules cobalt closed 94 bruno grove failed 56 dina fable closed 117 chen juniper active 97 bruno birch failed 36 jules juniper paused 27 eli amber
bruno chen
active 38 jules ember paused 73 kim amber failed 102 ivan birch active 40 farah fable paused 107 hana cobalt closed 16 kim indigo closed 112 bruno delta failed 40 gus fable active 40 farah amber
kim bruno
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036508-p1
Extract only the third column for rows where the first column matches the string 'closed' exactly.
$1 == "closed"{print $3}
failed 97 kim grove active 52 chen grove failed 17 ivan ember active 117 jules cobalt closed 94 bruno grove failed 56 dina fable closed 117 chen juniper active 97 bruno birch failed 36 jules juniper paused 27 eli amber
bruno chen
active 38 jules ember paused 73 kim amber failed 102 ivan birch active 40 farah fable paused 107 hana cobalt closed 16 kim indigo closed 112 bruno delta failed 40 gus fable active 40 farah amber
kim bruno
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036508
qwen/qwen3.7-plus
awkweave-0036509
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
DEBUG fable 120 WARN harbor 74 ERROR birch 70 ERROR fable 33 ERROR amber 58 ERROR harbor 65 WARN fable 49 ERROR delta 33 DEBUG cobalt 105 WARN ember 114
ERROR birch 70 ERROR fable 33 ERROR amber 58 ERROR harbor 65 ERROR delta 33
ERROR delta 70 INFO fable 69 INFO birch 23 DEBUG cobalt 23 INFO juniper 59 ERROR fable 106
ERROR delta 70 ERROR fable 106
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036509-p1
Print all fields from lines where the first field starts with the prefix 'ERROR'.
$1 ~ /^ERROR/
DEBUG fable 120 WARN harbor 74 ERROR birch 70 ERROR fable 33 ERROR amber 58 ERROR harbor 65 WARN fable 49 ERROR delta 33 DEBUG cobalt 105 WARN ember 114
ERROR birch 70 ERROR fable 33 ERROR amber 58 ERROR harbor 65 ERROR delta 33
ERROR delta 70 INFO fable 69 INFO birch 23 DEBUG cobalt 23 INFO juniper 59 ERROR fable 106
ERROR delta 70 ERROR fable 106
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036509
qwen/qwen3.7-plus
awkweave-0036510
Print every line except those containing the exact text fable.
$0 !~ /fable/
harbor 92 failed harbor 76 failed cobalt 47 active ember 112 pending amber 114 pending amber 73 pending birch 65 active harbor 60 paused fable 999 active
harbor 92 failed harbor 76 failed cobalt 47 active ember 112 pending amber 114 pending amber 73 pending birch 65 active harbor 60 paused
juniper 91 paused indigo 15 pending juniper 59 closed ember 54 pending delta 0 closed birch 22 paused juniper 82 active indigo 78 pending ember 54 ready fable 999 active
juniper 91 paused indigo 15 pending juniper 59 closed ember 54 pending delta 0 closed birch 22 paused juniper 82 active indigo 78 pending ember 54 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036510-p1
Output every line that does not contain the exact string 'fable'.
$0 !~ /fable/
harbor 92 failed harbor 76 failed cobalt 47 active ember 112 pending amber 114 pending amber 73 pending birch 65 active harbor 60 paused fable 999 active
harbor 92 failed harbor 76 failed cobalt 47 active ember 112 pending amber 114 pending amber 73 pending birch 65 active harbor 60 paused
juniper 91 paused indigo 15 pending juniper 59 closed ember 54 pending delta 0 closed birch 22 paused juniper 82 active indigo 78 pending ember 54 ready fable 999 active
juniper 91 paused indigo 15 pending juniper 59 closed ember 54 pending delta 0 closed birch 22 paused juniper 82 active indigo 78 pending ember 54 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036510
qwen/qwen3.7-plus
awkweave-0036511
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
dina grove 42 farah birch 14 alice amber 117 gus cobalt 78 kim ember 114 bruno ember 30 lina delta 66 alice fable 114
farah birch 14 alice amber 117
hana amber 103 kim cobalt 83 alice amber 51 chen ember 0 jules birch 15 lina juniper 94
kim cobalt 83 alice amber 51
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036511-p1
Print lines 2 through 3, inclusive of both start and end lines.
NR >= 2 && NR <= 3
dina grove 42 farah birch 14 alice amber 117 gus cobalt 78 kim ember 114 bruno ember 30 lina delta 66 alice fable 114
farah birch 14 alice amber 117
hana amber 103 kim cobalt 83 alice amber 51 chen ember 0 jules birch 15 lina juniper 94
kim cobalt 83 alice amber 51
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036511
qwen/qwen3.7-plus
awkweave-0036512
Output only the first 2 records.
NR <= 2
hana 12 amber lina 60 ember hana 94 juniper dina 83 grove kim 107 delta gus 19 cobalt jules 22 ember
hana 12 amber lina 60 ember
lina 99 cobalt bruno 97 amber kim 82 juniper bruno 8 ember chen 119 fable eli 77 cobalt
lina 99 cobalt bruno 97 amber
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036512-p1
Output only the first two records.
NR <= 2
hana 12 amber lina 60 ember hana 94 juniper dina 83 grove kim 107 delta gus 19 cobalt jules 22 ember
hana 12 amber lina 60 ember
lina 99 cobalt bruno 97 amber kim 82 juniper bruno 8 ember chen 119 fable eli 77 cobalt
lina 99 cobalt bruno 97 amber
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036512
qwen/qwen3.7-plus
awkweave-0036513
Skip the first line and print every remaining line unchanged.
NR > 1
jules 9 ember jules 73 cobalt lina 98 juniper ivan 105 delta jules 26 cobalt ivan 9 birch
jules 73 cobalt lina 98 juniper ivan 105 delta jules 26 cobalt ivan 9 birch
gus 88 delta eli 89 indigo alice 49 indigo kim 91 birch ivan 49 grove ivan 89 delta jules 43 fable hana 109 birch alice 12 delta
eli 89 indigo alice 49 indigo kim 91 birch ivan 49 grove ivan 89 delta jules 43 fable hana 109 birch alice 12 delta
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036513-p1
Ignore the first line and print all subsequent lines as they are.
NR > 1
jules 9 ember jules 73 cobalt lina 98 juniper ivan 105 delta jules 26 cobalt ivan 9 birch
jules 73 cobalt lina 98 juniper ivan 105 delta jules 26 cobalt ivan 9 birch
gus 88 delta eli 89 indigo alice 49 indigo kim 91 birch ivan 49 grove ivan 89 delta jules 43 fable hana 109 birch alice 12 delta
eli 89 indigo alice 49 indigo kim 91 birch ivan 49 grove ivan 89 delta jules 43 fable hana 109 birch alice 12 delta
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036513
qwen/qwen3.7-plus
awkweave-0036514
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
jules pending 27 kim pending 88 alice paused 70 bruno failed 85 hana closed 13 dina failed 100 gus pending 96 ivan active 7
2
kim active 78 kim active 107 ivan failed 27 kim failed 52 kim failed 25 dina ready 10 ivan failed 59 farah ready 35 eli ready 115 kim closed 95
4
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036514-p1
Count the number of records where column 2 contains 'failed', outputting 0 if no such records exist.
$2 == "failed"{n++}END{print n+0}
jules pending 27 kim pending 88 alice paused 70 bruno failed 85 hana closed 13 dina failed 100 gus pending 96 ivan active 7
2
kim active 78 kim active 107 ivan failed 27 kim failed 52 kim failed 25 dina ready 10 ivan failed 59 farah ready 35 eli ready 115 kim closed 95
4
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036514
qwen/qwen3.7-plus
awkweave-0036515
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
3 birch lina 28 birch jules 8 delta bruno 16 juniper hana 23 juniper eli 27 harbor eli 5 fable lina 23 birch eli 17 delta ivan
150
19 amber jules 18 juniper ivan 1 harbor jules 9 amber bruno 15 birch alice 24 amber dina 28 fable farah 30 juniper bruno 19 grove farah
163
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036515-p1
Compute and display the total sum of integer values found in column 1.
{s+=$1}END{print s+0}
3 birch lina 28 birch jules 8 delta bruno 16 juniper hana 23 juniper eli 27 harbor eli 5 fable lina 23 birch eli 17 delta ivan
150
19 amber jules 18 juniper ivan 1 harbor jules 9 amber bruno 15 birch alice 24 amber dina 28 fable farah 30 juniper bruno 19 grove farah
163
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036515
qwen/qwen3.7-plus
awkweave-0036516
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
ember 2 bruno birch 25 eli delta 26 kim birch 4 lina grove 26 hana harbor 26 kim harbor 26 eli birch 23 kim grove 20 bruno
19.78
amber 6 farah fable 6 farah harbor 6 ivan juniper 7 ivan amber 10 alice grove 30 kim birch 26 farah harbor 23 ivan harbor 25 lina
15.44
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036516-p1
Calculate the average of column 2 and print it rounded to precisely two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
ember 2 bruno birch 25 eli delta 26 kim birch 4 lina grove 26 hana harbor 26 kim harbor 26 eli birch 23 kim grove 20 bruno
19.78
amber 6 farah fable 6 farah harbor 6 ivan juniper 7 ivan amber 10 alice grove 30 kim birch 26 farah harbor 23 ivan harbor 25 lina
15.44
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036516
qwen/qwen3.7-plus
awkweave-0036517
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
11 dina juniper 18 kim grove 24 dina birch 19 gus delta 1 farah harbor 26 hana fable 8 jules ember 6 chen indigo
1
18 gus juniper 25 farah cobalt 25 hana cobalt 14 eli ember 12 ivan indigo 3 gus delta
3
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036517-p1
Identify and print the minimum numeric value present in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
11 dina juniper 18 kim grove 24 dina birch 19 gus delta 1 farah harbor 26 hana fable 8 jules ember 6 chen indigo
1
18 gus juniper 25 farah cobalt 25 hana cobalt 14 eli ember 12 ivan indigo 3 gus delta
3
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036517
qwen/qwen3.7-plus
awkweave-0036518
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
9 alice cobalt 16 ivan fable 9 farah fable 18 ivan amber 21 bruno ember 8 dina grove
21
13 alice amber 13 lina juniper 27 dina indigo 9 ivan amber 1 eli ember 3 eli harbor
27
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036518-p1
Identify and output the maximum number found in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
9 alice cobalt 16 ivan fable 9 farah fable 18 ivan amber 21 bruno ember 8 dina grove
21
13 alice amber 13 lina juniper 27 dina indigo 9 ivan amber 1 eli ember 3 eli harbor
27
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036518
qwen/qwen3.7-plus
awkweave-0036519
Count all input records and print the total.
END{print NR}
jules 104 ivan 66 jules 54 kim 20 eli 33 jules 108 eli 76 alice 41 lina 106 hana 36
10
ivan 40 eli 76 lina 72 alice 61 dina 34 dina 23 kim 10
7
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036519-p1
Calculate the total number of input records and display the count.
END{print NR}
jules 104 ivan 66 jules 54 kim 20 eli 33 jules 108 eli 76 alice 41 lina 106 hana 36
10
ivan 40 eli 76 lina 72 alice 61 dina 34 dina 23 kim 10
7
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036519
qwen/qwen3.7-plus
awkweave-0036520
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
hana delta 75 hana juniper 29 bruno indigo 43 lina indigo 119 gus juniper 62 alice ember 4 lina indigo 119 lina delta 9 bruno harbor 108 chen indigo 59 kim grove 120
hana delta 75 hana juniper 29 bruno indigo 43 lina indigo 119 gus juniper 62 alice ember 4 lina delta 9 bruno harbor 108 chen indigo 59 kim grove 120
chen amber 4 kim cobalt 96 kim cobalt 96 hana grove 88 dina grove 12 bruno grove 37 eli cobalt 6
chen amber 4 kim cobalt 96 hana grove 88 dina grove 12 bruno grove 37 eli cobalt 6
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036520-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
hana delta 75 hana juniper 29 bruno indigo 43 lina indigo 119 gus juniper 62 alice ember 4 lina indigo 119 lina delta 9 bruno harbor 108 chen indigo 59 kim grove 120
hana delta 75 hana juniper 29 bruno indigo 43 lina indigo 119 gus juniper 62 alice ember 4 lina delta 9 bruno harbor 108 chen indigo 59 kim grove 120
chen amber 4 kim cobalt 96 kim cobalt 96 hana grove 88 dina grove 12 bruno grove 37 eli cobalt 6
chen amber 4 kim cobalt 96 hana grove 88 dina grove 12 bruno grove 37 eli cobalt 6
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036520
qwen/qwen3.7-plus
awkweave-0036521
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
hana indigo 115 gus delta 7 farah harbor 112 chen delta 58 dina harbor 102 lina fable 94 lina harbor 44 ivan amber 44 bruno cobalt 79 gus amber 93
hana indigo 115 gus delta 7 farah harbor 112 chen delta 58 dina harbor 102 lina fable 94 ivan amber 44 bruno cobalt 79
alice birch 20 lina cobalt 119 bruno juniper 97 ivan juniper 6 jules indigo 27 lina delta 79 jules indigo 30
alice birch 20 lina cobalt 119 bruno juniper 97 ivan juniper 6 jules indigo 27
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036521-p1
Retain only the initial line for every unique value in the first column, keeping the original order.
!seen[$1]++
hana indigo 115 gus delta 7 farah harbor 112 chen delta 58 dina harbor 102 lina fable 94 lina harbor 44 ivan amber 44 bruno cobalt 79 gus amber 93
hana indigo 115 gus delta 7 farah harbor 112 chen delta 58 dina harbor 102 lina fable 94 ivan amber 44 bruno cobalt 79
alice birch 20 lina cobalt 119 bruno juniper 97 ivan juniper 6 jules indigo 27 lina delta 79 jules indigo 30
alice birch 20 lina cobalt 119 bruno juniper 97 ivan juniper 6 jules indigo 27
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036521
qwen/qwen3.7-plus
awkweave-0036522
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
jules 22 juniper alice 6 ember dina 1 ember gus 27 birch jules 24 birch bruno 19 ember dina 11 fable
jules 22 alice 28 dina 29 gus 56 jules 80 bruno 99 dina 110
dina 13 cobalt dina 29 delta kim 25 juniper kim 12 fable kim 18 indigo eli 19 amber chen 14 ember
dina 13 dina 42 kim 67 kim 79 kim 97 eli 116 chen 130
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036522-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 22 juniper alice 6 ember dina 1 ember gus 27 birch jules 24 birch bruno 19 ember dina 11 fable
jules 22 alice 28 dina 29 gus 56 jules 80 bruno 99 dina 110
dina 13 cobalt dina 29 delta kim 25 juniper kim 12 fable kim 18 indigo eli 19 amber chen 14 ember
dina 13 dina 42 kim 67 kim 79 kim 97 eli 116 chen 130
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036522
qwen/qwen3.7-plus
awkweave-0036523
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 24 24 cobalt jules 13 3 indigo bruno 1 6 indigo lina 11 22 fable gus 21 30 harbor jules 5 28 fable bruno 2 23 ember farah 4 10 harbor alice 19 30 birch chen 15 28 juniper
bruno 48 jules 16 bruno 7 lina 33 gus 51 jules 33 bruno 25 farah 14 alice 49 chen 43
lina 16 5 fable eli 2 11 harbor chen 22 1 juniper eli 2 30 birch farah 2 2 grove hana 25 6 delta lina 23 4 indigo
lina 21 eli 13 chen 23 eli 32 farah 4 hana 31 lina 27
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036523-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
bruno 24 24 cobalt jules 13 3 indigo bruno 1 6 indigo lina 11 22 fable gus 21 30 harbor jules 5 28 fable bruno 2 23 ember farah 4 10 harbor alice 19 30 birch chen 15 28 juniper
bruno 48 jules 16 bruno 7 lina 33 gus 51 jules 33 bruno 25 farah 14 alice 49 chen 43
lina 16 5 fable eli 2 11 harbor chen 22 1 juniper eli 2 30 birch farah 2 2 grove hana 25 6 delta lina 23 4 indigo
lina 21 eli 13 chen 23 eli 32 farah 4 hana 31 lina 27
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036523
qwen/qwen3.7-plus
awkweave-0036524
Print column 1 and pass when column 2 is at least 22; otherwise print fail.
{print $1,($2>=22?"pass":"fail")}
hana 30 eli 29 dina 21 ivan 27 lina 27 dina 7 ivan 25 alice 10 gus 13
hana pass eli pass dina fail ivan pass lina pass dina fail ivan pass alice fail gus fail
gus 28 gus 10 eli 11 bruno 7 eli 17 dina 22
gus pass gus fail eli fail bruno fail eli fail dina pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036524-p1
Output the first column with 'pass' if the second column is 22 or greater, otherwise output 'fail'.
{print $1,($2>=22?"pass":"fail")}
hana 30 eli 29 dina 21 ivan 27 lina 27 dina 7 ivan 25 alice 10 gus 13
hana pass eli pass dina fail ivan pass lina pass dina fail ivan pass alice fail gus fail
gus 28 gus 10 eli 11 bruno 7 eli 17 dina 22
gus pass gus fail eli fail bruno fail eli fail dina pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036524
qwen/qwen3.7-plus
awkweave-0036525
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
lina amber 79 alice grove 82 farah grove 93 alice amber 84 farah grove 4 ivan ember 91
LINA ALICE FARAH ALICE FARAH IVAN
ivan harbor 80 eli grove 0 ivan ember 83 lina birch 80 lina ember 4 eli grove 118 alice fable 1 kim delta 80 ivan delta 50
IVAN ELI IVAN LINA LINA ELI ALICE KIM IVAN
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036525-p1
Transform the first column to uppercase and print only that column.
{print toupper($1)}
lina amber 79 alice grove 82 farah grove 93 alice amber 84 farah grove 4 ivan ember 91
LINA ALICE FARAH ALICE FARAH IVAN
ivan harbor 80 eli grove 0 ivan ember 83 lina birch 80 lina ember 4 eli grove 118 alice fable 1 kim delta 80 ivan delta 50
IVAN ELI IVAN LINA LINA ELI ALICE KIM IVAN
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036525
qwen/qwen3.7-plus
awkweave-0036526
From column 1, print 4 characters starting at character 2.
{print substr($1,2,4)}
grove 68 harbor 108 grove 66 grove 78 grove 101 ember 14 grove 90 juniper 100 harbor 107 amber 100
rove arbo rove rove rove mber rove unip arbo mber
amber 79 amber 65 cobalt 55 harbor 50 amber 81 birch 27 fable 61
mber mber obal arbo mber irch able
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036526-p1
Extract and print a substring of 4 characters from the first column, starting at the second character.
{print substr($1,2,4)}
grove 68 harbor 108 grove 66 grove 78 grove 101 ember 14 grove 90 juniper 100 harbor 107 amber 100
rove arbo rove rove rove mber rove unip arbo mber
amber 79 amber 65 cobalt 55 harbor 50 amber 81 birch 27 fable 61
mber mber obal arbo mber irch able
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036526
qwen/qwen3.7-plus
awkweave-0036527
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
birch_birch 90 indigo_birch 96 delta_cobalt 81 delta_harbor 1 fable_ember 62 grove_cobalt 87 amber_delta 28 birch_amber 75
birch birch indigo birch delta cobalt delta harbor fable ember grove cobalt amber delta birch amber
amber_indigo 108 cobalt_amber 62 cobalt_delta 27 birch_ember 68 fable_cobalt 84 juniper_ember 79 indigo_juniper 46 harbor_birch 110 grove_grove 67
amber indigo cobalt amber cobalt delta birch ember fable cobalt juniper ember indigo juniper harbor birch grove grove
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036527-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
birch_birch 90 indigo_birch 96 delta_cobalt 81 delta_harbor 1 fable_ember 62 grove_cobalt 87 amber_delta 28 birch_amber 75
birch birch indigo birch delta cobalt delta harbor fable ember grove cobalt amber delta birch amber
amber_indigo 108 cobalt_amber 62 cobalt_delta 27 birch_ember 68 fable_cobalt 84 juniper_ember 79 indigo_juniper 46 harbor_birch 110 grove_grove 67
amber indigo cobalt amber cobalt delta birch ember fable cobalt juniper ember indigo juniper harbor birch grove grove
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036527
qwen/qwen3.7-plus
awkweave-0036528
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)}
chen fable 52 active gus birch 46 ready alice indigo 84 ready ivan indigo 57 failed alice grove 73 paused alice harbor 72 pending
active 52 fable chen ready 46 birch gus ready 84 indigo alice failed 57 indigo ivan paused 73 grove alice pending 72 harbor alice
alice birch 67 closed ivan harbor 30 closed farah fable 13 failed kim birch 65 failed jules delta 12 pending dina juniper 61 closed hana indigo 47 failed farah amber 19 failed
closed 67 birch alice closed 30 harbor ivan failed 13 fable farah failed 65 birch kim pending 12 delta jules closed 61 juniper dina failed 47 indigo hana failed 19 amber farah
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036528-p1
Reverse the sequence of fields on each line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
chen fable 52 active gus birch 46 ready alice indigo 84 ready ivan indigo 57 failed alice grove 73 paused alice harbor 72 pending
active 52 fable chen ready 46 birch gus ready 84 indigo alice failed 57 indigo ivan paused 73 grove alice pending 72 harbor alice
alice birch 67 closed ivan harbor 30 closed farah fable 13 failed kim birch 65 failed jules delta 12 pending dina juniper 61 closed hana indigo 47 failed farah amber 19 failed
closed 67 birch alice closed 30 harbor ivan failed 13 fable farah failed 65 birch kim pending 12 delta jules closed 61 juniper dina failed 47 indigo hana failed 19 amber farah
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036528
qwen/qwen3.7-plus
awkweave-0036529
Print the number of whitespace-separated fields on each line.
{print NF}
chen grove 88 ready eli amber 116 closed dina fable 100 pending kim grove 41 paused kim birch 60 closed hana birch 91 pending chen grove 73 failed dina delta 86 ready chen indigo 20 pending
4 4 4 4 4 4 4 4 4
chen birch 0 active lina birch 11 paused bruno cobalt 18 paused eli amber 13 paused ivan indigo 73 closed farah harbor 81 paused
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036529-p1
Print the count of whitespace-delimited fields for every line.
{print NF}
chen grove 88 ready eli amber 116 closed dina fable 100 pending kim grove 41 paused kim birch 60 closed hana birch 91 pending chen grove 73 failed dina delta 86 ready chen indigo 20 pending
4 4 4 4 4 4 4 4 4
chen birch 0 active lina birch 11 paused bruno cobalt 18 paused eli amber 13 paused ivan indigo 73 closed farah harbor 81 paused
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036529
qwen/qwen3.7-plus
awkweave-0036530
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]]}
eli delta 50 bruno delta 104 chen gamma 44 dina gamma 89 lina beta 32 eli beta 87 lina beta 42 lina delta 41 jules gamma 47
delta 3 gamma 3 beta 3
lina beta 6 eli gamma 100 kim delta 97 jules alpha 115 alice beta 51 alice alpha 26 farah gamma 13 eli delta 48 bruno beta 119
beta 3 gamma 2 delta 2 alpha 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036530-p1
Tally the occurrences of each unique value in column 2 and output 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]]}
eli delta 50 bruno delta 104 chen gamma 44 dina gamma 89 lina beta 32 eli beta 87 lina beta 42 lina delta 41 jules gamma 47
delta 3 gamma 3 beta 3
lina beta 6 eli gamma 100 kim delta 97 jules alpha 115 alice beta 51 alice alpha 26 farah gamma 13 eli delta 48 bruno beta 119
beta 3 gamma 2 delta 2 alpha 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036530
qwen/qwen3.7-plus
awkweave-0036531
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]]}
jules alpha 6 dina delta 26 chen gamma 26 alice delta 13 chen beta 26 hana delta 20 ivan alpha 30 jules gamma 15 gus gamma 10
alpha 36 delta 59 gamma 51 beta 26
gus gamma 3 dina delta 24 alice alpha 16 gus delta 21 eli delta 8 farah alpha 20 kim delta 14 bruno alpha 30 farah beta 15 eli gamma 2
gamma 5 delta 67 alpha 66 beta 15
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036531-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]]}
jules alpha 6 dina delta 26 chen gamma 26 alice delta 13 chen beta 26 hana delta 20 ivan alpha 30 jules gamma 15 gus gamma 10
alpha 36 delta 59 gamma 51 beta 26
gus gamma 3 dina delta 24 alice alpha 16 gus delta 21 eli delta 8 farah alpha 20 kim delta 14 bruno alpha 30 farah beta 15 eli gamma 2
gamma 5 delta 67 alpha 66 beta 15
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0036531
qwen/qwen3.7-plus
awkweave-0036532
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]]}
alpha indigo 57 delta fable 81 delta grove 89 delta fable 115 beta harbor 116 beta ember 10 delta indigo 79
delta 4 beta 2
beta harbor 77 gamma ember 42 delta indigo 27 delta delta 19 beta amber 54 delta delta 10 gamma grove 18
beta 2 gamma 2 delta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036532-p1
Identify values in column 1 that appear more than once, then print each duplicate along with its total frequency, ordered by first occurrence.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
alpha indigo 57 delta fable 81 delta grove 89 delta fable 115 beta harbor 116 beta ember 10 delta indigo 79
delta 4 beta 2
beta harbor 77 gamma ember 42 delta indigo 27 delta delta 19 beta amber 54 delta delta 10 gamma grove 18
beta 2 gamma 2 delta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036532
qwen/qwen3.7-plus
awkweave-0036533
The first row is a header. Print the score column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
display_name state score note r001 jules 5 failed r002 alice 29 failed r003 gus 26 closed r004 chen 22 active r005 ivan 18 paused r006 ivan 6 failed r007 farah 10 ready r008 gus 9 paused r009 ivan 25 ready
5 29 26 22 18 6 10 9 25
display_name state score note r001 alice 9 failed r002 hana 23 pending r003 jules 19 active r004 lina 22 paused r005 eli 12 paused r006 dina 30 ready r007 farah 2 closed r008 kim 6 pending
9 23 19 22 12 30 2 6
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036533-p1
Treating the first line as a header, extract and display the values from the score column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
display_name state score note r001 jules 5 failed r002 alice 29 failed r003 gus 26 closed r004 chen 22 active r005 ivan 18 paused r006 ivan 6 failed r007 farah 10 ready r008 gus 9 paused r009 ivan 25 ready
5 29 26 22 18 6 10 9 25
display_name state score note r001 alice 9 failed r002 hana 23 pending r003 jules 19 active r004 lina 22 paused r005 eli 12 paused r006 dina 30 ready r007 farah 2 closed r008 kim 6 pending
9 23 19 22 12 30 2 6
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036533
qwen/qwen3.7-plus
awkweave-0036534
The first row is a header. Print display_name for data rows whose score is greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 hana 26 failed r002 alice 1 active r003 alice 21 closed r004 ivan 17 pending r005 alice 29 failed r006 kim 29 active r007 dina 6 paused r008 hana 4 paused
hana alice ivan alice kim
record_id display_name score state r001 eli 1 closed r002 lina 3 paused r003 chen 2 paused r004 chen 22 ready r005 lina 1 failed r006 alice 3 active r007 gus 17 ready
chen gus
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036534-p1
With the first row serving as a header, output the display_name field for any data row where the score exceeds 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 hana 26 failed r002 alice 1 active r003 alice 21 closed r004 ivan 17 pending r005 alice 29 failed r006 kim 29 active r007 dina 6 paused r008 hana 4 paused
hana alice ivan alice kim
record_id display_name score state r001 eli 1 closed r002 lina 3 paused r003 chen 2 paused r004 chen 22 ready r005 lina 1 failed r006 alice 3 active r007 gus 17 ready
chen gus
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036534
qwen/qwen3.7-plus
awkweave-0036535
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
hana 8 pending eli 12 paused gus 23 pending kim 10 active hana 27 failed alice 14 ready kim 30 failed ivan 8 active ivan 9 active
8 12 23 10 27 14 30 8 9
ivan 17 paused dina 18 active farah 1 pending alice 11 ready alice 25 pending alice 1 failed jules 2 closed dina 8 ready
17 18 1 11 25 1 2 8
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036535-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
hana 8 pending eli 12 paused gus 23 pending kim 10 active hana 27 failed alice 14 ready kim 30 failed ivan 8 active ivan 9 active
8 12 23 10 27 14 30 8 9
ivan 17 paused dina 18 active farah 1 pending alice 11 ready alice 25 pending alice 1 failed jules 2 closed dina 8 ready
17 18 1 11 25 1 2 8
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0036535
qwen/qwen3.7-plus
awkweave-0036536
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 13.
BEGIN{FS=OFS=","}$2>13{print $1}
gus,14,active jules,25,active jules,18,pending bruno,16,active dina,21,failed chen,1,active eli,24,paused
gus jules jules bruno dina eli
farah,14,active kim,20,paused gus,19,active lina,26,active eli,21,paused hana,10,closed gus,12,active hana,29,paused dina,19,active alice,27,active
farah kim gus lina eli hana dina alice
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036536-p1
Process simple comma-separated values without quoted fields, printing the first column only when the value in the second column is greater than 13.
BEGIN{FS=OFS=","}$2>13{print $1}
gus,14,active jules,25,active jules,18,pending bruno,16,active dina,21,failed chen,1,active eli,24,paused
gus jules jules bruno dina eli
farah,14,active kim,20,paused gus,19,active lina,26,active eli,21,paused hana,10,closed gus,12,active hana,29,paused dina,19,active alice,27,active
farah kim gus lina eli hana dina alice
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036536
qwen/qwen3.7-plus
awkweave-0036537
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
alice delta 96 eli harbor 71 kim juniper 23 bruno juniper 74 gus birch 17 gus delta 99
alice delta 96 eli harbor 71 kim juniper 23 bruno juniper 74 gus birch 17 gus delta 99
bruno grove 63 dina delta 24 gus indigo 109 dina amber 9 kim fable 88 lina ember 63 ivan cobalt 116 gus harbor 40
bruno grove 63 dina delta 24 gus indigo 109 dina amber 9 kim fable 88 lina ember 63 ivan cobalt 116 gus harbor 40
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036537-p1
Remove leading and trailing whitespace from the text and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
alice delta 96 eli harbor 71 kim juniper 23 bruno juniper 74 gus birch 17 gus delta 99
alice delta 96 eli harbor 71 kim juniper 23 bruno juniper 74 gus birch 17 gus delta 99
bruno grove 63 dina delta 24 gus indigo 109 dina amber 9 kim fable 88 lina ember 63 ivan cobalt 116 gus harbor 40
bruno grove 63 dina delta 24 gus indigo 109 dina amber 9 kim fable 88 lina ember 63 ivan cobalt 116 gus harbor 40
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036537
qwen/qwen3.7-plus
awkweave-0036538
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
jules amber 38 active chen grove 14 closed bruno grove 18 pending hana fable 76 active kim amber 110 paused dina indigo 72 failed
bruno grove 18 pending
chen fable 97 paused gus grove 38 paused chen amber 83 failed ivan birch 65 pending chen delta 70 paused dina indigo 65 active ivan ember 26 active jules harbor 59 ready
ivan birch 65 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036538-p1
Identify and output 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}
jules amber 38 active chen grove 14 closed bruno grove 18 pending hana fable 76 active kim amber 110 paused dina indigo 72 failed
bruno grove 18 pending
chen fable 97 paused gus grove 38 paused chen amber 83 failed ivan birch 65 pending chen delta 70 paused dina indigo 65 active ivan ember 26 active jules harbor 59 ready
ivan birch 65 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036538
qwen/qwen3.7-plus
awkweave-0036539
Print every 3rd line starting at line 3 (then line 6, and so on).
NR%3==0
alice 97 gus 45 alice 61 hana 44 hana 110 ivan 56 ivan 120 dina 27
alice 61 ivan 56
ivan 74 chen 110 ivan 59 alice 116 gus 43 ivan 112 farah 38
ivan 59 ivan 112
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036539-p1
Output every third line of the input, beginning with line 3 (i.e., lines 3, 6, 9, etc.).
NR%3==0
alice 97 gus 45 alice 61 hana 44 hana 110 ivan 56 ivan 120 dina 27
alice 61 ivan 56
ivan 74 chen 110 ivan 59 alice 116 gus 43 ivan 112 farah 38
ivan 59 ivan 112
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036539
qwen/qwen3.7-plus
awkweave-0036540
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta ember 25 alpha delta 87 gamma birch 25 alpha fable 52 delta harbor 80 gamma fable 81
4
beta indigo 102 delta amber 60 gamma birch 51 delta fable 69 alpha cobalt 13 delta cobalt 113 alpha juniper 111 alpha fable 92 delta juniper 73 delta birch 20
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036540-p1
Determine the number of unique values present in column 1 and print only this total count.
{if(!seen[$1]++)n++}END{print n+0}
beta ember 25 alpha delta 87 gamma birch 25 alpha fable 52 delta harbor 80 gamma fable 81
4
beta indigo 102 delta amber 60 gamma birch 51 delta fable 69 alpha cobalt 13 delta cobalt 113 alpha juniper 111 alpha fable 92 delta juniper 73 delta birch 20
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036540
qwen/qwen3.7-plus
awkweave-0036541
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
farah 2 0 bruno 10 9 alice 10 26 hana 24 27 dina 12 24 lina 26 16 bruno 16 22 farah 4 5 chen 5 20 dina 10 24
bruno 1.11 alice 0.38 hana 0.89 dina 0.50 lina 1.62 bruno 0.73 farah 0.80 chen 0.25 dina 0.42
lina 10 0 gus 3 27 eli 14 26 chen 1 5 lina 29 8 chen 4 13 chen 14 8 dina 10 8 lina 1 15 farah 14 20
gus 0.11 eli 0.54 chen 0.20 lina 3.62 chen 0.31 chen 1.75 dina 1.25 lina 0.07 farah 0.70
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036541-p1
For each row, output column 1 and the result of dividing column 2 by column 3 formatted to two decimal places, omitting any rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
farah 2 0 bruno 10 9 alice 10 26 hana 24 27 dina 12 24 lina 26 16 bruno 16 22 farah 4 5 chen 5 20 dina 10 24
bruno 1.11 alice 0.38 hana 0.89 dina 0.50 lina 1.62 bruno 0.73 farah 0.80 chen 0.25 dina 0.42
lina 10 0 gus 3 27 eli 14 26 chen 1 5 lina 29 8 chen 4 13 chen 14 8 dina 10 8 lina 1 15 farah 14 20
gus 0.11 eli 0.54 chen 0.20 lina 3.62 chen 0.31 chen 1.75 dina 1.25 lina 0.07 farah 0.70
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036541
qwen/qwen3.7-plus
awkweave-0036542
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
kim fable 23 lina juniper 14 farah delta 8 kim amber 1 bruno amber 24 alice ember 3 lina birch 28
lina birch 28 bruno amber 24 kim fable 23
alice harbor 13 alice fable 14 dina harbor 3 dina ember 7 dina birch 29 lina delta 7 alice ember 14 hana fable 10 ivan ember 4 kim grove 4
dina birch 29 alice fable 14 alice ember 14
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036542-p1
Output the top three full records based on descending numeric values in column 3, maintaining original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
kim fable 23 lina juniper 14 farah delta 8 kim amber 1 bruno amber 24 alice ember 3 lina birch 28
lina birch 28 bruno amber 24 kim fable 23
alice harbor 13 alice fable 14 dina harbor 3 dina ember 7 dina birch 29 lina delta 7 alice ember 14 hana fable 10 ivan ember 4 kim grove 4
dina birch 29 alice fable 14 alice ember 14
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036542
qwen/qwen3.7-plus
awkweave-0036543
Print column 5 followed by column 1 for every record.
{print $5, $1}
fable alice 3 birch 50 active harbor gus 31 delta 11 pending ember dina 23 indigo 45 closed indigo alice 13 cobalt 49 ready delta alice 16 birch 66 failed cobalt farah 60 juniper 11 paused fable hana 94 ember 105 closed
50 fable 11 harbor 45 ember 49 indigo 66 delta 11 cobalt 105 fable
harbor jules 89 delta 77 ready indigo alice 10 fable 88 paused cobalt bruno 104 delta 74 paused grove alice 29 amber 117 pending fable lina 26 harbor 68 active cobalt kim 106 fable 43 paused juniper kim 60 harbor 100 failed ember farah 26 ember 91 closed indigo bruno 8 cobalt 106 active
77 harbor 88 indigo 74 cobalt 117 grove 68 fable 43 cobalt 100 juniper 91 ember 106 indigo
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036543-p1
For each record, display the value from column 5 followed by the value from column 1.
{print $5, $1}
fable alice 3 birch 50 active harbor gus 31 delta 11 pending ember dina 23 indigo 45 closed indigo alice 13 cobalt 49 ready delta alice 16 birch 66 failed cobalt farah 60 juniper 11 paused fable hana 94 ember 105 closed
50 fable 11 harbor 45 ember 49 indigo 66 delta 11 cobalt 105 fable
harbor jules 89 delta 77 ready indigo alice 10 fable 88 paused cobalt bruno 104 delta 74 paused grove alice 29 amber 117 pending fable lina 26 harbor 68 active cobalt kim 106 fable 43 paused juniper kim 60 harbor 100 failed ember farah 26 ember 91 closed indigo bruno 8 cobalt 106 active
77 harbor 88 indigo 74 cobalt 117 grove 68 fable 43 cobalt 100 juniper 91 ember 106 indigo
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036543
qwen/qwen3.7-plus
awkweave-0036544
Print the last field of every input line.
{print $NF}
amber 24 89 49 jules ember 115 56 47 hana ember 120 56 107 jules harbor 105 24 25 lina fable 19 91 13 chen indigo 5 34 60 kim ember 104 81 26 kim juniper 79 84 69 hana indigo 41 9 40 alice
jules hana jules lina chen kim kim hana alice
cobalt 104 11 62 lina harbor 93 102 58 dina grove 77 78 95 ivan birch 95 41 27 jules fable 40 72 37 kim birch 3 60 65 gus
lina dina ivan jules kim gus
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036544-p1
Output the final field from every line of input.
{print $NF}
amber 24 89 49 jules ember 115 56 47 hana ember 120 56 107 jules harbor 105 24 25 lina fable 19 91 13 chen indigo 5 34 60 kim ember 104 81 26 kim juniper 79 84 69 hana indigo 41 9 40 alice
jules hana jules lina chen kim kim hana alice
cobalt 104 11 62 lina harbor 93 102 58 dina grove 77 78 95 ivan birch 95 41 27 jules fable 40 72 37 kim birch 3 60 65 gus
lina dina ivan jules kim gus
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036544
qwen/qwen3.7-plus
awkweave-0036545
Print the complete records where column 3 is greater than 73.
$3 > 73
cobalt harbor 25 paused cobalt harbor indigo 102 ready ember birch amber 101 ready birch grove grove 26 closed delta juniper amber 87 failed juniper grove ember 35 failed birch delta amber 11 active delta fable grove 72 closed indigo grove amber 7 active grove
harbor indigo 102 ready ember birch amber 101 ready birch juniper amber 87 failed juniper
harbor juniper 96 active ember juniper fable 46 failed birch indigo birch 79 pending birch ember birch 35 ready ember ember grove 111 pending delta juniper ember 115 active cobalt
harbor juniper 96 active ember indigo birch 79 pending birch ember grove 111 pending delta juniper ember 115 active cobalt
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036545-p1
Display complete records where the value in column 3 exceeds 73.
$3 > 73
cobalt harbor 25 paused cobalt harbor indigo 102 ready ember birch amber 101 ready birch grove grove 26 closed delta juniper amber 87 failed juniper grove ember 35 failed birch delta amber 11 active delta fable grove 72 closed indigo grove amber 7 active grove
harbor indigo 102 ready ember birch amber 101 ready birch juniper amber 87 failed juniper
harbor juniper 96 active ember juniper fable 46 failed birch indigo birch 79 pending birch ember birch 35 ready ember ember grove 111 pending delta juniper ember 115 active cobalt
harbor juniper 96 active ember indigo birch 79 pending birch ember grove 111 pending delta juniper ember 115 active cobalt
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036545
qwen/qwen3.7-plus
awkweave-0036546
Show whole lines whose 2nd field is between 11 and 26, inclusive.
$2 >= 11 && $2 <= 26
pending 13 juniper active closed 9 amber closed closed 19 birch pending active 16 birch paused paused 25 juniper active closed 11 grove failed closed 5 amber pending closed 3 cobalt pending
pending 13 juniper active closed 19 birch pending active 16 birch paused paused 25 juniper active closed 11 grove failed
pending 23 cobalt paused failed 24 indigo paused pending 26 amber ready ready 4 grove failed ready 8 harbor active pending 11 harbor pending closed 18 harbor pending paused 30 delta ready paused 23 ember active
pending 23 cobalt paused failed 24 indigo paused pending 26 amber ready pending 11 harbor pending closed 18 harbor pending paused 23 ember active
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036546-p1
Show entire lines where the second field falls within the inclusive range of 11 to 26.
$2 >= 11 && $2 <= 26
pending 13 juniper active closed 9 amber closed closed 19 birch pending active 16 birch paused paused 25 juniper active closed 11 grove failed closed 5 amber pending closed 3 cobalt pending
pending 13 juniper active closed 19 birch pending active 16 birch paused paused 25 juniper active closed 11 grove failed
pending 23 cobalt paused failed 24 indigo paused pending 26 amber ready ready 4 grove failed ready 8 harbor active pending 11 harbor pending closed 18 harbor pending paused 30 delta ready paused 23 ember active
pending 23 cobalt paused failed 24 indigo paused pending 26 amber ready pending 11 harbor pending closed 18 harbor pending paused 23 ember active
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036546
qwen/qwen3.7-plus
awkweave-0036547
Print column 4 only for rows where column 3 is exactly failed.
$3 == "failed"{print $4}
juniper 26 pending ivan grove 69 closed lina harbor 99 ready chen indigo 34 closed bruno fable 72 pending eli indigo 108 ready hana delta 101 ready kim birch 41 failed gus harbor 12 closed jules
gus
grove 29 active kim amber 67 failed alice grove 32 paused chen grove 32 failed alice ember 1 failed ivan fable 25 active alice indigo 39 ready farah grove 11 ready jules grove 120 failed lina harbor 55 pending chen
alice alice ivan lina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036547-p1
Output only column 4 for rows where column 3 contains the exact string 'failed'.
$3 == "failed"{print $4}
juniper 26 pending ivan grove 69 closed lina harbor 99 ready chen indigo 34 closed bruno fable 72 pending eli indigo 108 ready hana delta 101 ready kim birch 41 failed gus harbor 12 closed jules
gus
grove 29 active kim amber 67 failed alice grove 32 paused chen grove 32 failed alice ember 1 failed ivan fable 25 active alice indigo 39 ready farah grove 11 ready jules grove 120 failed lina harbor 55 pending chen
alice alice ivan lina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036547
qwen/qwen3.7-plus
awkweave-0036548
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
grove INFO 40 harbor DEBUG 84 fable ERROR 7 amber DEBUG 49 cobalt DEBUG 102 fable DEBUG 105 birch WARN 91 grove DEBUG 114 delta INFO 8 juniper ERROR 88
fable ERROR 7 juniper ERROR 88
delta WARN 90 cobalt DEBUG 105 fable ERROR 25 grove ERROR 46 ember ERROR 16 grove INFO 93 delta DEBUG 13
fable ERROR 25 grove ERROR 46 ember ERROR 16
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036548-p1
Print all fields from lines where the second field starts with 'ERROR'.
$2 ~ /^ERROR/
grove INFO 40 harbor DEBUG 84 fable ERROR 7 amber DEBUG 49 cobalt DEBUG 102 fable DEBUG 105 birch WARN 91 grove DEBUG 114 delta INFO 8 juniper ERROR 88
fable ERROR 7 juniper ERROR 88
delta WARN 90 cobalt DEBUG 105 fable ERROR 25 grove ERROR 46 ember ERROR 16 grove INFO 93 delta DEBUG 13
fable ERROR 25 grove ERROR 46 ember ERROR 16
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036548
qwen/qwen3.7-plus
awkweave-0036549
Print every line except those containing the exact text delta.
$0 !~ /delta/
juniper 52 closed ember 109 paused harbor 3 active amber 106 paused birch 43 closed cobalt 53 active harbor 76 paused grove 85 paused delta 999 active
juniper 52 closed ember 109 paused harbor 3 active amber 106 paused birch 43 closed cobalt 53 active harbor 76 paused grove 85 paused
harbor 5 closed birch 115 closed fable 68 active birch 54 active cobalt 88 ready cobalt 116 pending harbor 94 pending delta 80 pending delta 103 active harbor 39 ready delta 999 active
harbor 5 closed birch 115 closed fable 68 active birch 54 active cobalt 88 ready cobalt 116 pending harbor 94 pending harbor 39 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036549-p1
Output every line that does not contain the exact string 'delta'.
$0 !~ /delta/
juniper 52 closed ember 109 paused harbor 3 active amber 106 paused birch 43 closed cobalt 53 active harbor 76 paused grove 85 paused delta 999 active
juniper 52 closed ember 109 paused harbor 3 active amber 106 paused birch 43 closed cobalt 53 active harbor 76 paused grove 85 paused
harbor 5 closed birch 115 closed fable 68 active birch 54 active cobalt 88 ready cobalt 116 pending harbor 94 pending delta 80 pending delta 103 active harbor 39 ready delta 999 active
harbor 5 closed birch 115 closed fable 68 active birch 54 active cobalt 88 ready cobalt 116 pending harbor 94 pending harbor 39 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036549
qwen/qwen3.7-plus
awkweave-0036550
Print lines 4 through 5, including both endpoints.
NR >= 4 && NR <= 5
kim indigo 24 eli delta 54 hana amber 84 jules indigo 5 alice grove 9 gus fable 36 jules juniper 91 ivan fable 78
jules indigo 5 alice grove 9
alice grove 52 hana delta 102 eli grove 64 ivan grove 88 alice indigo 93 kim birch 97 chen ember 59 jules grove 97 jules grove 39
ivan grove 88 alice indigo 93
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036550-p1
Print lines 4 and 5, inclusive.
NR >= 4 && NR <= 5
kim indigo 24 eli delta 54 hana amber 84 jules indigo 5 alice grove 9 gus fable 36 jules juniper 91 ivan fable 78
jules indigo 5 alice grove 9
alice grove 52 hana delta 102 eli grove 64 ivan grove 88 alice indigo 93 kim birch 97 chen ember 59 jules grove 97 jules grove 39
ivan grove 88 alice indigo 93
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036550
qwen/qwen3.7-plus
awkweave-0036551
Output only the first 3 records.
NR <= 3
kim 81 juniper eli 88 cobalt eli 0 amber farah 44 fable dina 63 delta bruno 74 grove
kim 81 juniper eli 88 cobalt eli 0 amber
kim 96 ember bruno 91 juniper lina 59 delta hana 1 juniper kim 27 birch gus 25 amber alice 97 grove eli 44 cobalt jules 71 birch jules 76 cobalt
kim 96 ember bruno 91 juniper lina 59 delta
first_n
1
train
original-grammar
CC-BY-4.0
null
null