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-0026441-p1
Display the full records corresponding to the top three 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]}
chen juniper 29 alice juniper 14 chen juniper 24 lina harbor 21 dina fable 15 dina grove 19 hana ember 23 kim harbor 8 chen amber 22
chen juniper 29 chen juniper 24 hana ember 23
dina juniper 6 lina fable 28 dina cobalt 20 dina harbor 22 kim cobalt 12 alice amber 18 kim indigo 22 dina birch 22 hana harbor 19
lina fable 28 dina harbor 22 kim indigo 22
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026441
qwen/qwen3.7-plus
awkweave-0026442
Select the 3rd and 1st fields in that order.
{print $3, $1}
ivan 111 farah 55 lina 61 dina 3 farah 49 kim 75 ivan 17 gus 94 jules 12 eli 21 hana 7 gus 86 eli 93 ivan 117 kim 51 eli 94 alice 11 lina 63
farah ivan dina lina kim farah gus ivan eli jules gus hana ivan eli eli kim lina alice
gus 67 chen 92 bruno 110 chen 30 lina 31 ivan 67 hana 117 eli 7 eli 94 kim 29 jules 103 alice 81 chen 80 gus 88 ivan 70 bruno 21
chen gus chen bruno ivan lina eli hana kim eli alice jules gus chen bruno ivan
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026442-p1
Extract and print the third field followed by the first field, in that specific sequence.
{print $3, $1}
ivan 111 farah 55 lina 61 dina 3 farah 49 kim 75 ivan 17 gus 94 jules 12 eli 21 hana 7 gus 86 eli 93 ivan 117 kim 51 eli 94 alice 11 lina 63
farah ivan dina lina kim farah gus ivan eli jules gus hana ivan eli eli kim lina alice
gus 67 chen 92 bruno 110 chen 30 lina 31 ivan 67 hana 117 eli 7 eli 94 kim 29 jules 103 alice 81 chen 80 gus 88 ivan 70 bruno 21
chen gus chen bruno ivan lina eli hana kim eli alice jules gus chen bruno ivan
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026442
qwen/qwen3.7-plus
awkweave-0026443
Print the last field of every input line.
{print $NF}
failed ivan hana delta indigo 57 closed dina kim delta juniper 59 pending jules gus ember grove 115 ready chen dina fable delta 61 active lina eli ember harbor 0 failed dina bruno ember cobalt 95
57 59 115 61 0 95
closed hana alice juniper juniper 44 pending gus bruno ember ember 51 paused alice bruno delta ember 32 pending bruno chen cobalt birch 1 paused jules bruno fable cobalt 87 failed dina dina cobalt grove 20 paused kim farah cobalt grove 91
44 51 32 1 87 20 91
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026443-p1
Output the final field from every line of input.
{print $NF}
failed ivan hana delta indigo 57 closed dina kim delta juniper 59 pending jules gus ember grove 115 ready chen dina fable delta 61 active lina eli ember harbor 0 failed dina bruno ember cobalt 95
57 59 115 61 0 95
closed hana alice juniper juniper 44 pending gus bruno ember ember 51 paused alice bruno delta ember 32 pending bruno chen cobalt birch 1 paused jules bruno fable cobalt 87 failed dina dina cobalt grove 20 paused kim farah cobalt grove 91
44 51 32 1 87 20 91
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026443
qwen/qwen3.7-plus
awkweave-0026444
Print the complete records where column 2 is at most 42.
$2 <= 42
hana 33 closed chen 1 pending dina 51 ready dina 86 paused hana 58 ready dina 20 ready gus 51 closed
hana 33 closed chen 1 pending dina 20 ready
jules 97 closed hana 72 closed eli 26 active eli 104 paused dina 115 failed chen 34 pending chen 81 pending
eli 26 active chen 34 pending
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026444-p1
Print the entire record for any row where the value in column 2 is less than or equal to 42.
$2 <= 42
hana 33 closed chen 1 pending dina 51 ready dina 86 paused hana 58 ready dina 20 ready gus 51 closed
hana 33 closed chen 1 pending dina 20 ready
jules 97 closed hana 72 closed eli 26 active eli 104 paused dina 115 failed chen 34 pending chen 81 pending
eli 26 active chen 34 pending
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026444
qwen/qwen3.7-plus
awkweave-0026445
Show whole lines whose 1st field is between 6 and 24, inclusive.
$1 >= 6 && $1 <= 24
4 cobalt harbor eli 7 juniper amber alice 3 juniper cobalt jules 10 cobalt grove chen 18 juniper birch kim 23 grove cobalt alice 20 cobalt indigo chen 4 delta grove kim
7 juniper amber alice 10 cobalt grove chen 18 juniper birch kim 23 grove cobalt alice 20 cobalt indigo chen
29 amber ember dina 22 birch indigo kim 11 fable birch jules 25 juniper indigo kim 1 birch ember ivan 7 delta fable farah
22 birch indigo kim 11 fable birch jules 7 delta fable farah
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026445-p1
Display complete lines where the first field falls within the inclusive range of 6 to 24.
$1 >= 6 && $1 <= 24
4 cobalt harbor eli 7 juniper amber alice 3 juniper cobalt jules 10 cobalt grove chen 18 juniper birch kim 23 grove cobalt alice 20 cobalt indigo chen 4 delta grove kim
7 juniper amber alice 10 cobalt grove chen 18 juniper birch kim 23 grove cobalt alice 20 cobalt indigo chen
29 amber ember dina 22 birch indigo kim 11 fable birch jules 25 juniper indigo kim 1 birch ember ivan 7 delta fable farah
22 birch indigo kim 11 fable birch jules 7 delta fable farah
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026445
qwen/qwen3.7-plus
awkweave-0026446
Print column 2 only for rows where column 4 is exactly pending.
$4 == "pending"{print $2}
101 hana harbor paused 52 alice amber pending 95 farah cobalt failed 32 chen delta pending 55 chen amber paused 64 alice ember failed 31 lina ember failed 87 chen amber closed 1 jules amber failed
alice chen
75 dina fable active 120 ivan ember pending 35 chen juniper active 78 lina birch pending 50 ivan indigo closed 66 hana cobalt ready 24 chen harbor closed 101 gus fable ready
ivan lina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026446-p1
Output only the second column for rows where the fourth column contains exactly the string 'pending'.
$4 == "pending"{print $2}
101 hana harbor paused 52 alice amber pending 95 farah cobalt failed 32 chen delta pending 55 chen amber paused 64 alice ember failed 31 lina ember failed 87 chen amber closed 1 jules amber failed
alice chen
75 dina fable active 120 ivan ember pending 35 chen juniper active 78 lina birch pending 50 ivan indigo closed 66 hana cobalt ready 24 chen harbor closed 101 gus fable ready
ivan lina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026446
qwen/qwen3.7-plus
awkweave-0026447
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
ERROR 5 delta WARN 89 juniper INFO 23 harbor INFO 61 grove INFO 40 ember WARN 52 cobalt DEBUG 63 harbor ERROR 109 cobalt INFO 111 cobalt
ERROR 5 delta ERROR 109 cobalt
WARN 77 delta WARN 12 ember WARN 107 juniper ERROR 42 harbor WARN 13 fable DEBUG 48 amber WARN 15 indigo WARN 76 delta
ERROR 42 harbor
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026447-p1
Print all fields from any line where the first field starts with the prefix 'ERROR'.
$1 ~ /^ERROR/
ERROR 5 delta WARN 89 juniper INFO 23 harbor INFO 61 grove INFO 40 ember WARN 52 cobalt DEBUG 63 harbor ERROR 109 cobalt INFO 111 cobalt
ERROR 5 delta ERROR 109 cobalt
WARN 77 delta WARN 12 ember WARN 107 juniper ERROR 42 harbor WARN 13 fable DEBUG 48 amber WARN 15 indigo WARN 76 delta
ERROR 42 harbor
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026447
qwen/qwen3.7-plus
awkweave-0026448
Print every line except those containing the exact text birch.
$0 !~ /birch/
birch 84 paused grove 107 active amber 67 active juniper 84 pending grove 62 pending indigo 83 active birch 83 failed cobalt 31 paused birch 999 active
grove 107 active amber 67 active juniper 84 pending grove 62 pending indigo 83 active cobalt 31 paused
indigo 59 failed cobalt 94 pending birch 96 active birch 70 ready juniper 77 pending ember 49 active fable 93 active juniper 63 failed ember 101 pending birch 999 active
indigo 59 failed cobalt 94 pending juniper 77 pending ember 49 active fable 93 active juniper 63 failed ember 101 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026448-p1
Display all lines that do not contain the exact string birch.
$0 !~ /birch/
birch 84 paused grove 107 active amber 67 active juniper 84 pending grove 62 pending indigo 83 active birch 83 failed cobalt 31 paused birch 999 active
grove 107 active amber 67 active juniper 84 pending grove 62 pending indigo 83 active cobalt 31 paused
indigo 59 failed cobalt 94 pending birch 96 active birch 70 ready juniper 77 pending ember 49 active fable 93 active juniper 63 failed ember 101 pending birch 999 active
indigo 59 failed cobalt 94 pending juniper 77 pending ember 49 active fable 93 active juniper 63 failed ember 101 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026448
qwen/qwen3.7-plus
awkweave-0026449
Print lines 3 through 6, including both endpoints.
NR >= 3 && NR <= 6
jules cobalt 105 lina cobalt 33 farah cobalt 118 alice birch 97 ivan ember 99 farah amber 7
farah cobalt 118 alice birch 97 ivan ember 99 farah amber 7
kim harbor 82 hana cobalt 107 lina cobalt 105 farah birch 88 kim ember 46 ivan birch 30 jules birch 103 chen fable 7 hana juniper 80
lina cobalt 105 farah birch 88 kim ember 46 ivan birch 30
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026449-p1
Output lines 3 to 6, inclusive of both the start and end lines.
NR >= 3 && NR <= 6
jules cobalt 105 lina cobalt 33 farah cobalt 118 alice birch 97 ivan ember 99 farah amber 7
farah cobalt 118 alice birch 97 ivan ember 99 farah amber 7
kim harbor 82 hana cobalt 107 lina cobalt 105 farah birch 88 kim ember 46 ivan birch 30 jules birch 103 chen fable 7 hana juniper 80
lina cobalt 105 farah birch 88 kim ember 46 ivan birch 30
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026449
qwen/qwen3.7-plus
awkweave-0026450
Output only the first 4 records.
NR <= 4
farah 19 harbor hana 3 delta bruno 11 indigo eli 102 fable alice 72 fable bruno 81 harbor lina 110 fable
farah 19 harbor hana 3 delta bruno 11 indigo eli 102 fable
ivan 39 amber gus 14 juniper ivan 44 amber dina 87 birch kim 89 delta ivan 29 grove gus 87 ember dina 114 ember hana 116 grove
ivan 39 amber gus 14 juniper ivan 44 amber dina 87 birch
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026450-p1
Show only the initial 4 records from the input.
NR <= 4
farah 19 harbor hana 3 delta bruno 11 indigo eli 102 fable alice 72 fable bruno 81 harbor lina 110 fable
farah 19 harbor hana 3 delta bruno 11 indigo eli 102 fable
ivan 39 amber gus 14 juniper ivan 44 amber dina 87 birch kim 89 delta ivan 29 grove gus 87 ember dina 114 ember hana 116 grove
ivan 39 amber gus 14 juniper ivan 44 amber dina 87 birch
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026450
qwen/qwen3.7-plus
awkweave-0026451
Skip the first line and print every remaining line unchanged.
NR > 1
kim 58 grove hana 117 harbor gus 1 birch dina 79 grove kim 117 delta kim 64 amber ivan 69 fable alice 57 amber
hana 117 harbor gus 1 birch dina 79 grove kim 117 delta kim 64 amber ivan 69 fable alice 57 amber
hana 61 cobalt chen 7 juniper jules 60 juniper kim 90 harbor ivan 47 harbor hana 33 fable
chen 7 juniper jules 60 juniper kim 90 harbor ivan 47 harbor hana 33 fable
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026451-p1
Omit the first line and print the rest of the lines exactly as they appear.
NR > 1
kim 58 grove hana 117 harbor gus 1 birch dina 79 grove kim 117 delta kim 64 amber ivan 69 fable alice 57 amber
hana 117 harbor gus 1 birch dina 79 grove kim 117 delta kim 64 amber ivan 69 fable alice 57 amber
hana 61 cobalt chen 7 juniper jules 60 juniper kim 90 harbor ivan 47 harbor hana 33 fable
chen 7 juniper jules 60 juniper kim 90 harbor ivan 47 harbor hana 33 fable
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026451
qwen/qwen3.7-plus
awkweave-0026452
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
eli failed 101 bruno active 85 ivan failed 29 farah active 106 alice active 84 farah closed 101 alice paused 64
0
jules pending 20 ivan active 52 kim closed 22 chen failed 107 lina closed 6 hana paused 67 dina failed 117 kim closed 20
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026452-p1
Determine the number of records where column 2 is pending; output 0 if no such records exist.
$2 == "pending"{n++}END{print n+0}
eli failed 101 bruno active 85 ivan failed 29 farah active 106 alice active 84 farah closed 101 alice paused 64
0
jules pending 20 ivan active 52 kim closed 22 chen failed 107 lina closed 6 hana paused 67 dina failed 117 kim closed 20
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026452
qwen/qwen3.7-plus
awkweave-0026453
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
28 jules juniper 19 chen cobalt 24 farah amber 18 farah birch 28 kim grove 6 kim cobalt 25 alice birch
148
5 eli grove 9 alice juniper 6 ivan cobalt 28 hana ember 3 kim harbor 7 bruno ember
58
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026453-p1
Compute and display the total sum of integer values found in column 1.
{s+=$1}END{print s+0}
28 jules juniper 19 chen cobalt 24 farah amber 18 farah birch 28 kim grove 6 kim cobalt 25 alice birch
148
5 eli grove 9 alice juniper 6 ivan cobalt 28 hana ember 3 kim harbor 7 bruno ember
58
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026453
qwen/qwen3.7-plus
awkweave-0026454
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
eli cobalt 8 eli ember 23 kim delta 3 gus juniper 9 eli juniper 9 gus ember 18 alice ember 28 lina juniper 12 bruno cobalt 23 eli ember 22
15.50
farah grove 5 ivan harbor 29 kim cobalt 4 jules cobalt 28 bruno cobalt 19 ivan delta 18
17.17
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026454-p1
Calculate the average of values in column 3 and format the result to two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
eli cobalt 8 eli ember 23 kim delta 3 gus juniper 9 eli juniper 9 gus ember 18 alice ember 28 lina juniper 12 bruno cobalt 23 eli ember 22
15.50
farah grove 5 ivan harbor 29 kim cobalt 4 jules cobalt 28 bruno cobalt 19 ivan delta 18
17.17
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026454
qwen/qwen3.7-plus
awkweave-0026455
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
lina 5 delta kim 17 delta ivan 20 fable lina 18 cobalt chen 6 cobalt ivan 6 ember bruno 7 indigo alice 6 amber
5
bruno 4 harbor jules 18 harbor eli 30 delta lina 8 birch farah 22 grove alice 28 birch eli 11 juniper alice 12 juniper kim 20 grove lina 8 cobalt
4
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026455-p1
Identify and output the minimum numeric value present in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
lina 5 delta kim 17 delta ivan 20 fable lina 18 cobalt chen 6 cobalt ivan 6 ember bruno 7 indigo alice 6 amber
5
bruno 4 harbor jules 18 harbor eli 30 delta lina 8 birch farah 22 grove alice 28 birch eli 11 juniper alice 12 juniper kim 20 grove lina 8 cobalt
4
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026455
qwen/qwen3.7-plus
awkweave-0026456
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
8 ivan amber 20 gus indigo 13 ivan delta 22 jules delta 29 dina harbor 17 farah cobalt 18 chen cobalt
29
26 kim harbor 14 dina amber 28 hana ember 26 gus ember 23 ivan cobalt 10 farah cobalt 13 jules harbor 24 jules delta 21 farah amber
28
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026456-p1
Identify and output the maximum numeric value present in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
8 ivan amber 20 gus indigo 13 ivan delta 22 jules delta 29 dina harbor 17 farah cobalt 18 chen cobalt
29
26 kim harbor 14 dina amber 28 hana ember 26 gus ember 23 ivan cobalt 10 farah cobalt 13 jules harbor 24 jules delta 21 farah amber
28
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026456
qwen/qwen3.7-plus
awkweave-0026457
Count all input records and print the total.
END{print NR}
gus 90 gus 59 ivan 52 gus 15 gus 117 alice 118
6
jules 88 bruno 71 kim 64 ivan 13 jules 113 eli 12 alice 52 hana 12 gus 35 chen 113
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026457-p1
Count the total number of input records and print this count.
END{print NR}
gus 90 gus 59 ivan 52 gus 15 gus 117 alice 118
6
jules 88 bruno 71 kim 64 ivan 13 jules 113 eli 12 alice 52 hana 12 gus 35 chen 113
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026457
qwen/qwen3.7-plus
awkweave-0026458
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
jules indigo 116 gus amber 26 bruno grove 55 jules indigo 46 kim juniper 103 kim juniper 103 lina birch 6
jules indigo 116 gus amber 26 bruno grove 55 jules indigo 46 kim juniper 103 lina birch 6
jules fable 76 ivan cobalt 5 farah amber 78 ivan ember 31 jules indigo 12 ivan ember 15 lina birch 18 bruno ember 57 chen ember 95 ivan ember 15 lina juniper 110
jules fable 76 ivan cobalt 5 farah amber 78 ivan ember 31 jules indigo 12 ivan ember 15 lina birch 18 bruno ember 57 chen ember 95 lina juniper 110
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026458-p1
Eliminate duplicate lines while keeping the first instance of each and maintaining the original sequence.
!seen[$0]++
jules indigo 116 gus amber 26 bruno grove 55 jules indigo 46 kim juniper 103 kim juniper 103 lina birch 6
jules indigo 116 gus amber 26 bruno grove 55 jules indigo 46 kim juniper 103 lina birch 6
jules fable 76 ivan cobalt 5 farah amber 78 ivan ember 31 jules indigo 12 ivan ember 15 lina birch 18 bruno ember 57 chen ember 95 ivan ember 15 lina juniper 110
jules fable 76 ivan cobalt 5 farah amber 78 ivan ember 31 jules indigo 12 ivan ember 15 lina birch 18 bruno ember 57 chen ember 95 lina juniper 110
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026458
qwen/qwen3.7-plus
awkweave-0026459
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
kim cobalt 88 chen delta 62 farah delta 85 chen indigo 13 bruno grove 5 farah juniper 37 eli cobalt 110 ivan grove 11
kim cobalt 88 chen delta 62 chen indigo 13 bruno grove 5 farah juniper 37
farah birch 61 chen grove 66 ivan juniper 35 lina juniper 65 farah cobalt 67 jules ember 49 dina grove 10 bruno amber 24
farah birch 61 chen grove 66 ivan juniper 35 farah cobalt 67 jules ember 49 bruno amber 24
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026459-p1
Retain only the first occurrence of each unique value in column 2, keeping the original input order.
!seen[$2]++
kim cobalt 88 chen delta 62 farah delta 85 chen indigo 13 bruno grove 5 farah juniper 37 eli cobalt 110 ivan grove 11
kim cobalt 88 chen delta 62 chen indigo 13 bruno grove 5 farah juniper 37
farah birch 61 chen grove 66 ivan juniper 35 lina juniper 65 farah cobalt 67 jules ember 49 dina grove 10 bruno amber 24
farah birch 61 chen grove 66 ivan juniper 35 farah cobalt 67 jules ember 49 bruno amber 24
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026459
qwen/qwen3.7-plus
awkweave-0026460
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
dina 11 ember jules 9 juniper hana 6 delta hana 15 amber farah 30 indigo eli 8 harbor ivan 26 fable
dina 11 jules 20 hana 26 hana 41 farah 71 eli 79 ivan 105
bruno 30 juniper jules 17 birch eli 26 delta gus 9 birch kim 9 birch lina 14 delta kim 4 delta dina 22 harbor ivan 23 fable hana 17 cobalt
bruno 30 jules 47 eli 73 gus 82 kim 91 lina 105 kim 109 dina 131 ivan 154 hana 171
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026460-p1
Output the first column and the cumulative total of the second column for every record, using a space as the delimiter.
{s+=$2;print $1,s}
dina 11 ember jules 9 juniper hana 6 delta hana 15 amber farah 30 indigo eli 8 harbor ivan 26 fable
dina 11 jules 20 hana 26 hana 41 farah 71 eli 79 ivan 105
bruno 30 juniper jules 17 birch eli 26 delta gus 9 birch kim 9 birch lina 14 delta kim 4 delta dina 22 harbor ivan 23 fable hana 17 cobalt
bruno 30 jules 47 eli 73 gus 82 kim 91 lina 105 kim 109 dina 131 ivan 154 hana 171
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026460
qwen/qwen3.7-plus
awkweave-0026461
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
ivan 29 2 amber alice 7 9 indigo dina 21 9 fable eli 26 10 ember kim 20 28 grove dina 8 30 harbor dina 2 30 amber
ivan 31 alice 16 dina 30 eli 36 kim 48 dina 38 dina 32
dina 16 19 birch lina 8 2 cobalt chen 30 5 juniper gus 8 22 fable lina 25 11 grove chen 10 3 harbor lina 28 11 harbor farah 17 2 juniper
dina 35 lina 10 chen 35 gus 30 lina 36 chen 13 lina 39 farah 19
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026461-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
ivan 29 2 amber alice 7 9 indigo dina 21 9 fable eli 26 10 ember kim 20 28 grove dina 8 30 harbor dina 2 30 amber
ivan 31 alice 16 dina 30 eli 36 kim 48 dina 38 dina 32
dina 16 19 birch lina 8 2 cobalt chen 30 5 juniper gus 8 22 fable lina 25 11 grove chen 10 3 harbor lina 28 11 harbor farah 17 2 juniper
dina 35 lina 10 chen 35 gus 30 lina 36 chen 13 lina 39 farah 19
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026461
qwen/qwen3.7-plus
awkweave-0026462
Print column 1 and pass when column 2 is at least 22; otherwise print fail.
{print $1,($2>=22?"pass":"fail")}
bruno 13 ivan 5 hana 8 kim 1 lina 6 dina 29
bruno fail ivan fail hana fail kim fail lina fail dina pass
ivan 3 lina 14 lina 28 dina 21 bruno 16 ivan 10 alice 3
ivan fail lina fail lina pass dina fail bruno fail ivan fail alice fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026462-p1
Display the value in column 1; if column 2 is 22 or greater, append 'pass', otherwise append 'fail'.
{print $1,($2>=22?"pass":"fail")}
bruno 13 ivan 5 hana 8 kim 1 lina 6 dina 29
bruno fail ivan fail hana fail kim fail lina fail dina pass
ivan 3 lina 14 lina 28 dina 21 bruno 16 ivan 10 alice 3
ivan fail lina fail lina pass dina fail bruno fail ivan fail alice fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026462
qwen/qwen3.7-plus
awkweave-0026463
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
lina amber 8 kim cobalt 2 jules ember 80 chen juniper 82 farah fable 21 jules amber 2
AMBER COBALT EMBER JUNIPER FABLE AMBER
bruno harbor 8 kim juniper 35 alice fable 113 kim juniper 32 farah cobalt 41 hana juniper 95 gus grove 68
HARBOR JUNIPER FABLE JUNIPER COBALT JUNIPER GROVE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026463-p1
Transform the content of column 2 to uppercase letters and output only that modified column.
{print toupper($2)}
lina amber 8 kim cobalt 2 jules ember 80 chen juniper 82 farah fable 21 jules amber 2
AMBER COBALT EMBER JUNIPER FABLE AMBER
bruno harbor 8 kim juniper 35 alice fable 113 kim juniper 32 farah cobalt 41 hana juniper 95 gus grove 68
HARBOR JUNIPER FABLE JUNIPER COBALT JUNIPER GROVE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026463
qwen/qwen3.7-plus
awkweave-0026464
From column 1, print 4 characters starting at character 2.
{print substr($1,2,4)}
cobalt 44 harbor 13 birch 39 delta 113 birch 61 fable 98 indigo 107 delta 4 harbor 14
obal arbo irch elta irch able ndig elta arbo
birch 70 juniper 54 juniper 94 indigo 117 harbor 45 birch 119 fable 37
irch unip unip ndig arbo irch able
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026464-p1
Extract and print a substring of length 4 from column 1, beginning at the second character.
{print substr($1,2,4)}
cobalt 44 harbor 13 birch 39 delta 113 birch 61 fable 98 indigo 107 delta 4 harbor 14
obal arbo irch elta irch able ndig elta arbo
birch 70 juniper 54 juniper 94 indigo 117 harbor 45 birch 119 fable 37
irch unip unip ndig arbo irch able
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026464
qwen/qwen3.7-plus
awkweave-0026465
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
amber_indigo 80 fable_juniper 110 indigo_ember 113 juniper_delta 11 harbor_juniper 50 delta_harbor 80 juniper_birch 111 harbor_indigo 57 birch_amber 43 fable_indigo 0
amber indigo fable juniper indigo ember juniper delta harbor juniper delta harbor juniper birch harbor indigo birch amber fable indigo
fable_delta 64 indigo_amber 116 cobalt_grove 2 birch_grove 86 ember_delta 23 harbor_harbor 45 amber_cobalt 20 juniper_juniper 69 grove_amber 107
fable delta indigo amber cobalt grove birch grove ember delta harbor harbor amber cobalt juniper juniper grove amber
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026465-p1
Substitute all underscores in column 1 with spaces and output the modified entries.
{gsub(/_/," ",$1);print $1}
amber_indigo 80 fable_juniper 110 indigo_ember 113 juniper_delta 11 harbor_juniper 50 delta_harbor 80 juniper_birch 111 harbor_indigo 57 birch_amber 43 fable_indigo 0
amber indigo fable juniper indigo ember juniper delta harbor juniper delta harbor juniper birch harbor indigo birch amber fable indigo
fable_delta 64 indigo_amber 116 cobalt_grove 2 birch_grove 86 ember_delta 23 harbor_harbor 45 amber_cobalt 20 juniper_juniper 69 grove_amber 107
fable delta indigo amber cobalt grove birch grove ember delta harbor harbor amber cobalt juniper juniper grove amber
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026465
qwen/qwen3.7-plus
awkweave-0026466
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)}
farah fable 43 closed alice indigo 19 pending farah indigo 103 pending jules amber 100 active dina grove 92 ready chen amber 64 ready
closed 43 fable farah pending 19 indigo alice pending 103 indigo farah active 100 amber jules ready 92 grove dina ready 64 amber chen
dina juniper 112 paused eli birch 111 closed bruno cobalt 90 failed kim indigo 91 failed dina birch 71 ready dina harbor 35 pending ivan grove 18 active
paused 112 juniper dina closed 111 birch eli failed 90 cobalt bruno failed 91 indigo kim ready 71 birch dina pending 35 harbor dina active 18 grove ivan
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026466-p1
Invert the sequence of fields for each line and print the complete set of fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
farah fable 43 closed alice indigo 19 pending farah indigo 103 pending jules amber 100 active dina grove 92 ready chen amber 64 ready
closed 43 fable farah pending 19 indigo alice pending 103 indigo farah active 100 amber jules ready 92 grove dina ready 64 amber chen
dina juniper 112 paused eli birch 111 closed bruno cobalt 90 failed kim indigo 91 failed dina birch 71 ready dina harbor 35 pending ivan grove 18 active
paused 112 juniper dina closed 111 birch eli failed 90 cobalt bruno failed 91 indigo kim ready 71 birch dina pending 35 harbor dina active 18 grove ivan
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026466
qwen/qwen3.7-plus
awkweave-0026467
Print the number of whitespace-separated fields on each line.
{print NF}
jules cobalt 100 paused lina grove 73 ready alice ember 63 active bruno amber 58 ready ivan juniper 29 closed gus indigo 68 active
4 4 4 4 4 4
farah fable 87 failed farah birch 71 paused chen ember 49 paused farah juniper 57 ready eli indigo 85 paused hana grove 96 ready bruno birch 76 ready jules amber 26 paused
4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026467-p1
Output the count of whitespace-delimited fields present on each line.
{print NF}
jules cobalt 100 paused lina grove 73 ready alice ember 63 active bruno amber 58 ready ivan juniper 29 closed gus indigo 68 active
4 4 4 4 4 4
farah fable 87 failed farah birch 71 paused chen ember 49 paused farah juniper 57 ready eli indigo 85 paused hana grove 96 ready bruno birch 76 ready jules amber 26 paused
4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026467
qwen/qwen3.7-plus
awkweave-0026468
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]]}
lina delta 34 dina gamma 111 hana gamma 2 bruno beta 94 dina delta 114 dina delta 21 eli delta 102
delta 4 gamma 2 beta 1
lina alpha 11 eli gamma 22 kim gamma 31 farah delta 58 lina delta 68 bruno gamma 83 dina delta 26
alpha 1 gamma 3 delta 3
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026468-p1
Tally the number of records for each unique value in column 2, then print each value alongside its count in the order 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]]}
lina delta 34 dina gamma 111 hana gamma 2 bruno beta 94 dina delta 114 dina delta 21 eli delta 102
delta 4 gamma 2 beta 1
lina alpha 11 eli gamma 22 kim gamma 31 farah delta 58 lina delta 68 bruno gamma 83 dina delta 26
alpha 1 gamma 3 delta 3
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026468
qwen/qwen3.7-plus
awkweave-0026469
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
farah gamma 16 farah alpha 16 chen beta 21 chen alpha 17 kim beta 12 lina beta 1 gus beta 17 hana delta 13 dina delta 16 lina gamma 27
gamma 43 alpha 33 beta 51 delta 29
farah alpha 25 hana gamma 16 alice alpha 13 eli alpha 5 gus beta 22 farah delta 21
alpha 43 gamma 16 beta 22 delta 21
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026469-p1
Calculate the sum of column 3 grouped by the categories in column 2, displaying the results in the order of the category's first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
farah gamma 16 farah alpha 16 chen beta 21 chen alpha 17 kim beta 12 lina beta 1 gus beta 17 hana delta 13 dina delta 16 lina gamma 27
gamma 43 alpha 33 beta 51 delta 29
farah alpha 25 hana gamma 16 alice alpha 13 eli alpha 5 gus beta 22 farah delta 21
alpha 43 gamma 16 beta 22 delta 21
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026469
qwen/qwen3.7-plus
awkweave-0026470
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 grove 74 delta amber 91 beta fable 105 alpha cobalt 64 alpha ember 37 alpha delta 41 beta amber 46 gamma juniper 68
alpha 4 beta 2
beta grove 31 gamma harbor 66 gamma juniper 53 alpha birch 48 gamma ember 103 delta amber 86 beta fable 22 beta harbor 78
beta 3 gamma 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026470-p1
Identify values in column 1 that appear more than once, printing each duplicate value and its frequency in the order of first occurrence.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
alpha grove 74 delta amber 91 beta fable 105 alpha cobalt 64 alpha ember 37 alpha delta 41 beta amber 46 gamma juniper 68
alpha 4 beta 2
beta grove 31 gamma harbor 66 gamma juniper 53 alpha birch 48 gamma ember 103 delta amber 86 beta fable 22 beta harbor 78
beta 3 gamma 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026470
qwen/qwen3.7-plus
awkweave-0026471
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"]}
state region display_name score r001 bruno 1 active r002 alice 22 failed r003 chen 23 failed r004 ivan 11 paused r005 chen 9 pending r006 eli 19 active r007 kim 1 closed r008 ivan 14 active r009 jules 24 paused
active failed failed paused pending active closed active paused
state region display_name score r001 eli 15 active r002 lina 30 pending r003 lina 24 ready r004 chen 8 paused r005 hana 13 pending r006 gus 25 ready r007 lina 28 ready r008 jules 28 ready r009 lina 2 active
active pending ready paused pending ready ready ready active
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026471-p1
Skip the header row and output 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"]}
state region display_name score r001 bruno 1 active r002 alice 22 failed r003 chen 23 failed r004 ivan 11 paused r005 chen 9 pending r006 eli 19 active r007 kim 1 closed r008 ivan 14 active r009 jules 24 paused
active failed failed paused pending active closed active paused
state region display_name score r001 eli 15 active r002 lina 30 pending r003 lina 24 ready r004 chen 8 paused r005 hana 13 pending r006 gus 25 ready r007 lina 28 ready r008 jules 28 ready r009 lina 2 active
active pending ready paused pending ready ready ready active
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026471
qwen/qwen3.7-plus
awkweave-0026472
The first row is a header. Print display_name for data rows whose score is greater than 9.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>9{print $h["display_name"]}
record_id display_name score state r001 bruno 12 ready r002 bruno 19 paused r003 chen 10 ready r004 dina 29 paused r005 hana 28 failed r006 ivan 5 ready r007 ivan 13 pending
bruno bruno chen dina hana ivan
record_id display_name score state r001 alice 12 pending r002 chen 18 ready r003 hana 19 closed r004 jules 21 paused r005 lina 23 ready r006 dina 2 paused r007 bruno 30 ready r008 lina 7 paused r009 dina 7 pending
alice chen hana jules lina bruno
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026472-p1
Treat the first line as a header. Output the display_name field for all data rows where the score is strictly greater than 9.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>9{print $h["display_name"]}
record_id display_name score state r001 bruno 12 ready r002 bruno 19 paused r003 chen 10 ready r004 dina 29 paused r005 hana 28 failed r006 ivan 5 ready r007 ivan 13 pending
bruno bruno chen dina hana ivan
record_id display_name score state r001 alice 12 pending r002 chen 18 ready r003 hana 19 closed r004 jules 21 paused r005 lina 23 ready r006 dina 2 paused r007 bruno 30 ready r008 lina 7 paused r009 dina 7 pending
alice chen hana jules lina bruno
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026472
qwen/qwen3.7-plus
awkweave-0026473
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
gus 27 pending ivan 11 pending chen 9 failed farah 29 paused kim 10 failed eli 29 paused chen 18 active farah 9 pending
27 11 9 29 10 29 18 9
eli 11 pending kim 12 paused kim 6 ready bruno 20 ready gus 24 closed lina 9 ready gus 20 failed chen 21 active
11 12 6 20 24 9 20 21
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026473-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
gus 27 pending ivan 11 pending chen 9 failed farah 29 paused kim 10 failed eli 29 paused chen 18 active farah 9 pending
27 11 9 29 10 29 18 9
eli 11 pending kim 12 paused kim 6 ready bruno 20 ready gus 24 closed lina 9 ready gus 20 failed chen 21 active
11 12 6 20 24 9 20 21
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0026473
qwen/qwen3.7-plus
awkweave-0026474
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 18.
BEGIN{FS=OFS=","}$2>18{print $1}
alice,6,closed jules,5,paused jules,7,failed jules,4,active dina,5,ready gus,1,closed dina,4,failed eli,4,pending jules,29,closed
jules
chen,21,ready dina,7,active alice,6,pending alice,26,active hana,9,closed eli,20,failed eli,17,closed dina,29,failed chen,9,pending
chen alice eli dina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026474-p1
Process simple CSV data without quoted commas. Print the first column if the value in the second column is greater than 18.
BEGIN{FS=OFS=","}$2>18{print $1}
alice,6,closed jules,5,paused jules,7,failed jules,4,active dina,5,ready gus,1,closed dina,4,failed eli,4,pending jules,29,closed
jules
chen,21,ready dina,7,active alice,6,pending alice,26,active hana,9,closed eli,20,failed eli,17,closed dina,29,failed chen,9,pending
chen alice eli dina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026474
qwen/qwen3.7-plus
awkweave-0026475
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
chen ember 22 jules harbor 36 chen grove 40 lina juniper 41 eli ember 53 ivan delta 56 ivan cobalt 53
chen ember 22 jules harbor 36 chen grove 40 lina juniper 41 eli ember 53 ivan delta 56 ivan cobalt 53
bruno cobalt 68 hana delta 34 ivan indigo 13 alice cobalt 13 jules delta 74 alice fable 86
bruno cobalt 68 hana delta 34 ivan indigo 13 alice cobalt 13 jules delta 74 alice fable 86
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026475-p1
Remove leading and trailing whitespace, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
chen ember 22 jules harbor 36 chen grove 40 lina juniper 41 eli ember 53 ivan delta 56 ivan cobalt 53
chen ember 22 jules harbor 36 chen grove 40 lina juniper 41 eli ember 53 ivan delta 56 ivan cobalt 53
bruno cobalt 68 hana delta 34 ivan indigo 13 alice cobalt 13 jules delta 74 alice fable 86
bruno cobalt 68 hana delta 34 ivan indigo 13 alice cobalt 13 jules delta 74 alice fable 86
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026475
qwen/qwen3.7-plus
awkweave-0026476
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan grove 15 failed alice fable 16 failed dina fable 0 active chen birch 14 active farah indigo 8 failed alice juniper 50 failed dina ember 28 closed jules amber 10 ready
alice juniper 50 failed
jules amber 96 active lina fable 70 pending chen cobalt 104 pending gus ember 5 paused farah amber 93 failed lina indigo 75 closed gus harbor 76 failed hana fable 78 active
chen cobalt 104 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026476-p1
Identify and print the longest line from the input; if multiple lines share the maximum length, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
ivan grove 15 failed alice fable 16 failed dina fable 0 active chen birch 14 active farah indigo 8 failed alice juniper 50 failed dina ember 28 closed jules amber 10 ready
alice juniper 50 failed
jules amber 96 active lina fable 70 pending chen cobalt 104 pending gus ember 5 paused farah amber 93 failed lina indigo 75 closed gus harbor 76 failed hana fable 78 active
chen cobalt 104 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026476
qwen/qwen3.7-plus
awkweave-0026477
Print every 4th line starting at line 4 (then line 8, and so on).
NR%4==0
eli 54 dina 78 chen 19 lina 8 alice 69 alice 19 bruno 92 dina 119 kim 79
lina 8 dina 119
chen 117 hana 100 chen 41 jules 32 eli 83 alice 7 kim 100 kim 75
jules 32 kim 75
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026477-p1
Output every fourth line of the input, beginning with line 4 (i.e., lines 4, 8, 12, etc.).
NR%4==0
eli 54 dina 78 chen 19 lina 8 alice 69 alice 19 bruno 92 dina 119 kim 79
lina 8 dina 119
chen 117 hana 100 chen 41 jules 32 eli 83 alice 7 kim 100 kim 75
jules 32 kim 75
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026477
qwen/qwen3.7-plus
awkweave-0026478
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta juniper 86 alpha grove 34 alpha cobalt 83 alpha fable 25 delta harbor 11 alpha delta 8 alpha delta 93 beta ember 52
3
alpha indigo 107 delta birch 111 beta juniper 80 gamma juniper 16 gamma cobalt 32 gamma cobalt 11 alpha ember 99 delta amber 72 alpha amber 71
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026478-p1
Calculate the number of unique values in the first column and print only that total count.
{if(!seen[$1]++)n++}END{print n+0}
beta juniper 86 alpha grove 34 alpha cobalt 83 alpha fable 25 delta harbor 11 alpha delta 8 alpha delta 93 beta ember 52
3
alpha indigo 107 delta birch 111 beta juniper 80 gamma juniper 16 gamma cobalt 32 gamma cobalt 11 alpha ember 99 delta amber 72 alpha amber 71
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026478
qwen/qwen3.7-plus
awkweave-0026479
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}
lina 5 0 ivan 7 8 chen 1 16 chen 6 18 hana 6 14 farah 23 18 farah 15 24 ivan 26 2
ivan 0.88 chen 0.06 chen 0.33 hana 0.43 farah 1.28 farah 0.62 ivan 13.00
dina 25 0 alice 8 5 gus 3 11 lina 20 2 bruno 17 8 jules 4 8 dina 13 15
alice 1.60 gus 0.27 lina 10.00 bruno 2.12 jules 0.50 dina 0.87
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026479-p1
For each row, output the first column and the result of dividing the second column by the third column, formatted to two decimal places. Exclude any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
lina 5 0 ivan 7 8 chen 1 16 chen 6 18 hana 6 14 farah 23 18 farah 15 24 ivan 26 2
ivan 0.88 chen 0.06 chen 0.33 hana 0.43 farah 1.28 farah 0.62 ivan 13.00
dina 25 0 alice 8 5 gus 3 11 lina 20 2 bruno 17 8 jules 4 8 dina 13 15
alice 1.60 gus 0.27 lina 10.00 bruno 2.12 jules 0.50 dina 0.87
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026479
qwen/qwen3.7-plus
awkweave-0026480
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]}
alice amber 1 bruno juniper 13 hana fable 16 dina juniper 30 kim grove 6 alice juniper 8
dina juniper 30 hana fable 16 bruno juniper 13
gus fable 25 jules indigo 6 chen grove 28 alice cobalt 4 alice juniper 11 hana juniper 2
chen grove 28 gus fable 25 alice juniper 11
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026480-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 tied values.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
alice amber 1 bruno juniper 13 hana fable 16 dina juniper 30 kim grove 6 alice juniper 8
dina juniper 30 hana fable 16 bruno juniper 13
gus fable 25 jules indigo 6 chen grove 28 alice cobalt 4 alice juniper 11 hana juniper 2
chen grove 28 gus fable 25 alice juniper 11
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026480
qwen/qwen3.7-plus
awkweave-0026481
For each line, output fields 5 and 4, in that order.
{print $5, $4}
indigo farah kim gus paused juniper kim gus lina ready indigo alice farah hana closed indigo ivan alice ivan paused birch gus ivan kim active delta chen dina gus paused fable hana lina alice failed
paused gus ready lina closed hana paused ivan active kim paused gus failed alice
ember farah chen bruno closed amber lina ivan ivan paused grove jules farah hana active indigo jules hana lina active delta dina bruno eli ready fable chen lina dina closed indigo dina chen ivan pending
closed bruno paused ivan active hana active lina ready eli closed dina pending ivan
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026481-p1
For every line, print the fifth field followed by the fourth field.
{print $5, $4}
indigo farah kim gus paused juniper kim gus lina ready indigo alice farah hana closed indigo ivan alice ivan paused birch gus ivan kim active delta chen dina gus paused fable hana lina alice failed
paused gus ready lina closed hana paused ivan active kim paused gus failed alice
ember farah chen bruno closed amber lina ivan ivan paused grove jules farah hana active indigo jules hana lina active delta dina bruno eli ready fable chen lina dina closed indigo dina chen ivan pending
closed bruno paused ivan active hana active lina ready eli closed dina pending ivan
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026481
qwen/qwen3.7-plus
awkweave-0026482
Print the last field of every input line.
{print $NF}
fable ivan closed farah birch birch kim paused chen amber juniper eli closed dina cobalt fable lina failed kim delta cobalt chen pending ivan harbor ember kim paused alice delta grove kim active hana delta indigo alice ready bruno juniper
birch amber cobalt delta harbor delta delta juniper
birch bruno ready lina cobalt ember gus closed eli grove ember chen active dina delta cobalt chen pending bruno fable grove jules closed kim cobalt cobalt bruno pending kim fable harbor alice closed bruno indigo
cobalt grove delta fable cobalt fable indigo
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026482-p1
Print the final field from each line of input.
{print $NF}
fable ivan closed farah birch birch kim paused chen amber juniper eli closed dina cobalt fable lina failed kim delta cobalt chen pending ivan harbor ember kim paused alice delta grove kim active hana delta indigo alice ready bruno juniper
birch amber cobalt delta harbor delta delta juniper
birch bruno ready lina cobalt ember gus closed eli grove ember chen active dina delta cobalt chen pending bruno fable grove jules closed kim cobalt cobalt bruno pending kim fable harbor alice closed bruno indigo
cobalt grove delta fable cobalt fable indigo
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026482
qwen/qwen3.7-plus
awkweave-0026483
Print the complete records where column 2 is at most 72.
$2 <= 72
active 83 ember closed 64 birch paused 18 amber paused 66 ember paused 70 birch active 59 fable failed 58 juniper paused 107 harbor
closed 64 birch paused 18 amber paused 66 ember paused 70 birch active 59 fable failed 58 juniper
pending 109 ember pending 63 fable paused 31 grove pending 97 indigo ready 47 delta failed 56 fable closed 108 fable pending 62 birch
pending 63 fable paused 31 grove ready 47 delta failed 56 fable pending 62 birch
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026483-p1
Output full records where the value in the second column is less than or equal to 72.
$2 <= 72
active 83 ember closed 64 birch paused 18 amber paused 66 ember paused 70 birch active 59 fable failed 58 juniper paused 107 harbor
closed 64 birch paused 18 amber paused 66 ember paused 70 birch active 59 fable failed 58 juniper
pending 109 ember pending 63 fable paused 31 grove pending 97 indigo ready 47 delta failed 56 fable closed 108 fable pending 62 birch
pending 63 fable paused 31 grove ready 47 delta failed 56 fable pending 62 birch
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026483
qwen/qwen3.7-plus
awkweave-0026484
Show whole lines whose 2nd field is between 6 and 26, inclusive.
$2 >= 6 && $2 <= 26
indigo 22 paused juniper grove 23 closed grove cobalt 15 ready harbor juniper 6 pending fable fable 14 ready cobalt grove 22 failed ember fable 26 paused grove ember 10 paused fable delta 17 active delta ember 18 pending birch
indigo 22 paused juniper grove 23 closed grove cobalt 15 ready harbor juniper 6 pending fable fable 14 ready cobalt grove 22 failed ember fable 26 paused grove ember 10 paused fable delta 17 active delta ember 18 pending birch
juniper 21 paused birch delta 15 paused grove fable 12 pending birch harbor 23 paused birch amber 25 pending birch ember 18 pending juniper delta 25 paused birch fable 19 failed delta
juniper 21 paused birch delta 15 paused grove fable 12 pending birch harbor 23 paused birch amber 25 pending birch ember 18 pending juniper delta 25 paused birch fable 19 failed delta
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026484-p1
Display entire lines where the second field falls within the inclusive range of 6 to 26.
$2 >= 6 && $2 <= 26
indigo 22 paused juniper grove 23 closed grove cobalt 15 ready harbor juniper 6 pending fable fable 14 ready cobalt grove 22 failed ember fable 26 paused grove ember 10 paused fable delta 17 active delta ember 18 pending birch
indigo 22 paused juniper grove 23 closed grove cobalt 15 ready harbor juniper 6 pending fable fable 14 ready cobalt grove 22 failed ember fable 26 paused grove ember 10 paused fable delta 17 active delta ember 18 pending birch
juniper 21 paused birch delta 15 paused grove fable 12 pending birch harbor 23 paused birch amber 25 pending birch ember 18 pending juniper delta 25 paused birch fable 19 failed delta
juniper 21 paused birch delta 15 paused grove fable 12 pending birch harbor 23 paused birch amber 25 pending birch ember 18 pending juniper delta 25 paused birch fable 19 failed delta
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026484
qwen/qwen3.7-plus
awkweave-0026485
Print column 2 only for rows where column 4 is exactly active.
$4 == "active"{print $2}
birch chen 103 paused fable eli 11 ready birch ivan 118 closed ember lina 64 failed cobalt hana 22 paused delta chen 41 active fable jules 110 active juniper farah 52 failed
chen jules
ember hana 44 failed grove ivan 79 pending amber alice 66 pending cobalt lina 74 closed harbor kim 36 failed delta bruno 98 active fable farah 30 ready juniper dina 33 failed
bruno
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026485-p1
Output only the second column for rows in which the fourth column is exactly 'active'.
$4 == "active"{print $2}
birch chen 103 paused fable eli 11 ready birch ivan 118 closed ember lina 64 failed cobalt hana 22 paused delta chen 41 active fable jules 110 active juniper farah 52 failed
chen jules
ember hana 44 failed grove ivan 79 pending amber alice 66 pending cobalt lina 74 closed harbor kim 36 failed delta bruno 98 active fable farah 30 ready juniper dina 33 failed
bruno
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026485
qwen/qwen3.7-plus
awkweave-0026486
Print all fields from lines where field 2 begins with INFO.
$2 ~ /^INFO/
grove INFO 67 grove DEBUG 3 birch WARN 15 ember DEBUG 80 grove ERROR 25 birch INFO 94
grove INFO 67 birch INFO 94
juniper WARN 60 ember WARN 85 delta DEBUG 92 delta DEBUG 77 ember ERROR 36 amber WARN 103 grove ERROR 99 cobalt DEBUG 76
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026486-p1
Print all fields from lines where the second field starts with 'INFO'.
$2 ~ /^INFO/
grove INFO 67 grove DEBUG 3 birch WARN 15 ember DEBUG 80 grove ERROR 25 birch INFO 94
grove INFO 67 birch INFO 94
juniper WARN 60 ember WARN 85 delta DEBUG 92 delta DEBUG 77 ember ERROR 36 amber WARN 103 grove ERROR 99 cobalt DEBUG 76
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026486
qwen/qwen3.7-plus
awkweave-0026487
Print every line except those containing the exact text ember.
$0 !~ /ember/
ember 69 active ember 77 pending grove 70 closed grove 13 pending birch 101 paused birch 54 active cobalt 49 closed ember 999 active
grove 70 closed grove 13 pending birch 101 paused birch 54 active cobalt 49 closed
cobalt 47 ready amber 65 paused fable 115 active ember 79 failed birch 64 ready amber 70 paused ember 53 paused delta 42 active delta 59 pending juniper 58 failed ember 999 active
cobalt 47 ready amber 65 paused fable 115 active birch 64 ready amber 70 paused delta 42 active delta 59 pending juniper 58 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026487-p1
Output every line that does not contain the exact string 'ember'.
$0 !~ /ember/
ember 69 active ember 77 pending grove 70 closed grove 13 pending birch 101 paused birch 54 active cobalt 49 closed ember 999 active
grove 70 closed grove 13 pending birch 101 paused birch 54 active cobalt 49 closed
cobalt 47 ready amber 65 paused fable 115 active ember 79 failed birch 64 ready amber 70 paused ember 53 paused delta 42 active delta 59 pending juniper 58 failed ember 999 active
cobalt 47 ready amber 65 paused fable 115 active birch 64 ready amber 70 paused delta 42 active delta 59 pending juniper 58 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026487
qwen/qwen3.7-plus
awkweave-0026488
Print lines 3 through 5, including both endpoints.
NR >= 3 && NR <= 5
kim grove 88 hana delta 7 lina ember 4 dina ember 108 hana cobalt 25 farah cobalt 44 alice ember 19
lina ember 4 dina ember 108 hana cobalt 25
alice cobalt 83 alice amber 113 jules birch 100 alice juniper 86 alice harbor 1 farah grove 77 lina ember 14
jules birch 100 alice juniper 86 alice harbor 1
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026488-p1
Print lines 3 through 5, inclusive of both endpoints.
NR >= 3 && NR <= 5
kim grove 88 hana delta 7 lina ember 4 dina ember 108 hana cobalt 25 farah cobalt 44 alice ember 19
lina ember 4 dina ember 108 hana cobalt 25
alice cobalt 83 alice amber 113 jules birch 100 alice juniper 86 alice harbor 1 farah grove 77 lina ember 14
jules birch 100 alice juniper 86 alice harbor 1
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026488
qwen/qwen3.7-plus
awkweave-0026489
Output only the first 5 records.
NR <= 5
kim 61 fable jules 74 harbor kim 33 grove farah 28 fable jules 116 harbor alice 16 fable eli 44 fable jules 62 indigo hana 58 amber alice 110 amber
kim 61 fable jules 74 harbor kim 33 grove farah 28 fable jules 116 harbor
alice 103 cobalt jules 20 ember alice 22 delta ivan 22 birch lina 52 harbor chen 76 indigo eli 44 amber bruno 68 amber
alice 103 cobalt jules 20 ember alice 22 delta ivan 22 birch lina 52 harbor
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026489-p1
Output only the first 5 records.
NR <= 5
kim 61 fable jules 74 harbor kim 33 grove farah 28 fable jules 116 harbor alice 16 fable eli 44 fable jules 62 indigo hana 58 amber alice 110 amber
kim 61 fable jules 74 harbor kim 33 grove farah 28 fable jules 116 harbor
alice 103 cobalt jules 20 ember alice 22 delta ivan 22 birch lina 52 harbor chen 76 indigo eli 44 amber bruno 68 amber
alice 103 cobalt jules 20 ember alice 22 delta ivan 22 birch lina 52 harbor
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0026489
qwen/qwen3.7-plus
awkweave-0026500
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
farah 9 27 birch ivan 22 5 indigo kim 30 18 juniper bruno 9 19 birch hana 1 19 harbor chen 12 14 indigo chen 6 17 harbor lina 4 24 harbor
farah 36 ivan 27 kim 48 bruno 28 hana 20 chen 26 chen 23 lina 28
kim 6 10 indigo kim 24 9 grove hana 4 18 grove kim 14 9 fable kim 25 12 indigo alice 26 26 amber dina 21 3 delta
kim 16 kim 33 hana 22 kim 23 kim 37 alice 52 dina 24
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0026500-p1
For each row, output the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
farah 9 27 birch ivan 22 5 indigo kim 30 18 juniper bruno 9 19 birch hana 1 19 harbor chen 12 14 indigo chen 6 17 harbor lina 4 24 harbor
farah 36 ivan 27 kim 48 bruno 28 hana 20 chen 26 chen 23 lina 28
kim 6 10 indigo kim 24 9 grove hana 4 18 grove kim 14 9 fable kim 25 12 indigo alice 26 26 amber dina 21 3 delta
kim 16 kim 33 hana 22 kim 23 kim 37 alice 52 dina 24
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0026500
qwen/qwen3.7-plus
awkweave-0026501
Print column 1 and pass when column 2 is at least 26; otherwise print fail.
{print $1,($2>=26?"pass":"fail")}
farah 14 lina 6 dina 10 kim 18 bruno 10 chen 4 gus 3
farah fail lina fail dina fail kim fail bruno fail chen fail gus fail
lina 15 gus 14 farah 28 eli 30 gus 7 bruno 30 gus 22 dina 23 bruno 14
lina fail gus fail farah pass eli pass gus fail bruno pass gus fail dina fail bruno fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null