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-0007330-p1
For every row, output the first and second columns divided by the third column formatted to two decimal places, omitting any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
hana 19 0 hana 12 30 chen 21 22 alice 20 15 eli 19 21 ivan 7 25 chen 7 11
hana 0.40 chen 0.95 alice 1.33 eli 0.90 ivan 0.28 chen 0.64
gus 3 0 hana 2 6 dina 16 3 hana 16 1 dina 23 3 kim 26 16 bruno 25 6 bruno 8 28 jules 13 7
hana 0.33 dina 5.33 hana 16.00 dina 7.67 kim 1.62 bruno 4.17 bruno 0.29 jules 1.86
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007330
qwen/qwen3.7-plus
awkweave-0007331
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
hana delta 5 jules ember 8 kim fable 23 eli delta 28 hana fable 29 eli delta 11
hana fable 29 eli delta 28 kim fable 23
ivan grove 19 ivan ember 22 ivan cobalt 17 jules cobalt 12 jules birch 6 lina fable 26 eli juniper 16 ivan indigo 6
lina fable 26 ivan ember 22 ivan grove 19
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007331-p1
Display the three full records with the largest numeric values in column 3, sorted in descending order, while maintaining the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
hana delta 5 jules ember 8 kim fable 23 eli delta 28 hana fable 29 eli delta 11
hana fable 29 eli delta 28 kim fable 23
ivan grove 19 ivan ember 22 ivan cobalt 17 jules cobalt 12 jules birch 6 lina fable 26 eli juniper 16 ivan indigo 6
lina fable 26 ivan ember 22 ivan grove 19
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007331
qwen/qwen3.7-plus
awkweave-0007332
For each line, output fields 4 and 2, in that order.
{print $4, $2}
fable 84 eli kim cobalt 66 alice hana indigo 57 dina chen birch 69 gus kim delta 54 hana kim delta 1 hana jules cobalt 41 gus farah ember 79 kim hana amber 56 kim gus fable 91 eli gus
kim 84 hana 66 chen 57 kim 69 kim 54 jules 1 farah 41 hana 79 gus 56 gus 91
amber 94 jules ivan juniper 82 dina gus grove 45 ivan alice amber 81 farah farah ember 119 eli gus birch 101 chen bruno ember 75 alice farah
ivan 94 gus 82 alice 45 farah 81 gus 119 bruno 101 farah 75
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007332-p1
Output fields 4 and 2 from each line, preserving that specific sequence.
{print $4, $2}
fable 84 eli kim cobalt 66 alice hana indigo 57 dina chen birch 69 gus kim delta 54 hana kim delta 1 hana jules cobalt 41 gus farah ember 79 kim hana amber 56 kim gus fable 91 eli gus
kim 84 hana 66 chen 57 kim 69 kim 54 jules 1 farah 41 hana 79 gus 56 gus 91
amber 94 jules ivan juniper 82 dina gus grove 45 ivan alice amber 81 farah farah ember 119 eli gus birch 101 chen bruno ember 75 alice farah
ivan 94 gus 82 alice 45 farah 81 gus 119 bruno 101 farah 75
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007332
qwen/qwen3.7-plus
awkweave-0007333
Print the last field of every input line.
{print $NF}
26 pending kim paused birch kim 67 paused hana closed birch jules 83 active lina paused grove jules 110 failed chen active grove chen 112 pending gus active harbor chen 22 closed lina pending fable alice 63 paused hana pending ember kim 2 ready alice closed harbor bruno 40 ready dina closed cobalt hana 50 active gus cl...
kim jules jules chen chen alice kim bruno hana farah
68 pending jules closed fable dina 1 paused chen closed cobalt farah 115 failed hana closed juniper gus 58 failed farah failed birch hana 37 failed hana pending birch hana 64 failed eli closed harbor jules 79 paused kim failed amber farah 60 ready jules closed indigo bruno 98 ready gus pending grove hana
dina farah gus hana hana jules farah bruno hana
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007333-p1
Print the final field from every input line.
{print $NF}
26 pending kim paused birch kim 67 paused hana closed birch jules 83 active lina paused grove jules 110 failed chen active grove chen 112 pending gus active harbor chen 22 closed lina pending fable alice 63 paused hana pending ember kim 2 ready alice closed harbor bruno 40 ready dina closed cobalt hana 50 active gus cl...
kim jules jules chen chen alice kim bruno hana farah
68 pending jules closed fable dina 1 paused chen closed cobalt farah 115 failed hana closed juniper gus 58 failed farah failed birch hana 37 failed hana pending birch hana 64 failed eli closed harbor jules 79 paused kim failed amber farah 60 ready jules closed indigo bruno 98 ready gus pending grove hana
dina farah gus hana hana jules farah bruno hana
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007333
qwen/qwen3.7-plus
awkweave-0007334
Print the complete records where column 2 is at least 59.
$2 >= 59
failed 57 pending closed alice closed 101 active paused ivan pending 15 closed failed dina pending 15 closed failed dina failed 89 paused ready chen closed 45 active ready chen closed 68 paused pending jules failed 8 pending pending lina failed 90 ready paused jules closed 38 failed active jules
closed 101 active paused ivan failed 89 paused ready chen closed 68 paused pending jules failed 90 ready paused jules
pending 22 ready pending eli paused 33 pending failed hana active 72 closed active alice active 93 failed failed dina failed 34 closed failed hana pending 109 ready ready eli failed 44 active closed farah
active 72 closed active alice active 93 failed failed dina pending 109 ready ready eli
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007334-p1
Output the complete records where the value in column 2 is greater than or equal to 59.
$2 >= 59
failed 57 pending closed alice closed 101 active paused ivan pending 15 closed failed dina pending 15 closed failed dina failed 89 paused ready chen closed 45 active ready chen closed 68 paused pending jules failed 8 pending pending lina failed 90 ready paused jules closed 38 failed active jules
closed 101 active paused ivan failed 89 paused ready chen closed 68 paused pending jules failed 90 ready paused jules
pending 22 ready pending eli paused 33 pending failed hana active 72 closed active alice active 93 failed failed dina failed 34 closed failed hana pending 109 ready ready eli failed 44 active closed farah
active 72 closed active alice active 93 failed failed dina pending 109 ready ready eli
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007334
qwen/qwen3.7-plus
awkweave-0007335
Show whole lines whose 2nd field is between 3 and 27, inclusive.
$2 >= 3 && $2 <= 27
fable 28 pending jules cobalt 4 paused hana cobalt 4 pending dina delta 1 paused chen cobalt 29 closed jules juniper 30 pending kim
cobalt 4 paused hana cobalt 4 pending dina
birch 10 pending ivan harbor 27 paused dina grove 22 paused dina amber 1 paused hana juniper 23 pending dina juniper 24 pending hana indigo 6 active ivan
birch 10 pending ivan harbor 27 paused dina grove 22 paused dina juniper 23 pending dina juniper 24 pending hana indigo 6 active ivan
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007335-p1
Display entire lines where the second field falls within the inclusive range of 3 to 27.
$2 >= 3 && $2 <= 27
fable 28 pending jules cobalt 4 paused hana cobalt 4 pending dina delta 1 paused chen cobalt 29 closed jules juniper 30 pending kim
cobalt 4 paused hana cobalt 4 pending dina
birch 10 pending ivan harbor 27 paused dina grove 22 paused dina amber 1 paused hana juniper 23 pending dina juniper 24 pending hana indigo 6 active ivan
birch 10 pending ivan harbor 27 paused dina grove 22 paused dina juniper 23 pending dina juniper 24 pending hana indigo 6 active ivan
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007335
qwen/qwen3.7-plus
awkweave-0007336
Print column 1 only for rows where column 2 is exactly pending.
$2 == "pending"{print $1}
lina active indigo 1 gus failed fable 52 gus pending delta 117 dina closed indigo 27 alice ready juniper 113 hana pending grove 9 jules ready birch 98 chen closed indigo 18 jules failed fable 78
gus hana
alice closed ember 69 farah paused amber 15 farah paused amber 42 alice failed cobalt 2 kim pending juniper 45 lina closed fable 57
kim
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007336-p1
Output only column 1 for rows where column 2 is exactly 'pending'.
$2 == "pending"{print $1}
lina active indigo 1 gus failed fable 52 gus pending delta 117 dina closed indigo 27 alice ready juniper 113 hana pending grove 9 jules ready birch 98 chen closed indigo 18 jules failed fable 78
gus hana
alice closed ember 69 farah paused amber 15 farah paused amber 42 alice failed cobalt 2 kim pending juniper 45 lina closed fable 57
kim
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007336
qwen/qwen3.7-plus
awkweave-0007337
Print all fields from lines where field 1 begins with INFO.
$1 ~ /^INFO/
INFO indigo 7 WARN delta 100 WARN fable 37 ERROR ember 76 DEBUG cobalt 36 DEBUG birch 55
INFO indigo 7
INFO juniper 10 ERROR amber 113 ERROR delta 22 INFO delta 95 DEBUG ember 73 DEBUG amber 71
INFO juniper 10 INFO delta 95
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007337-p1
Print all fields from lines where the first field starts with 'INFO'.
$1 ~ /^INFO/
INFO indigo 7 WARN delta 100 WARN fable 37 ERROR ember 76 DEBUG cobalt 36 DEBUG birch 55
INFO indigo 7
INFO juniper 10 ERROR amber 113 ERROR delta 22 INFO delta 95 DEBUG ember 73 DEBUG amber 71
INFO juniper 10 INFO delta 95
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007337
qwen/qwen3.7-plus
awkweave-0007338
Print every line except those containing the exact text delta.
$0 !~ /delta/
birch 23 paused fable 36 ready cobalt 78 pending grove 51 failed grove 39 paused ember 85 ready juniper 76 paused cobalt 31 pending delta 999 active
birch 23 paused fable 36 ready cobalt 78 pending grove 51 failed grove 39 paused ember 85 ready juniper 76 paused cobalt 31 pending
birch 63 closed amber 2 failed amber 72 active delta 6 paused grove 38 active indigo 69 active delta 999 active
birch 63 closed amber 2 failed amber 72 active grove 38 active indigo 69 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007338-p1
Output every line except those that contain the exact string 'delta'.
$0 !~ /delta/
birch 23 paused fable 36 ready cobalt 78 pending grove 51 failed grove 39 paused ember 85 ready juniper 76 paused cobalt 31 pending delta 999 active
birch 23 paused fable 36 ready cobalt 78 pending grove 51 failed grove 39 paused ember 85 ready juniper 76 paused cobalt 31 pending
birch 63 closed amber 2 failed amber 72 active delta 6 paused grove 38 active indigo 69 active delta 999 active
birch 63 closed amber 2 failed amber 72 active grove 38 active indigo 69 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007338
qwen/qwen3.7-plus
awkweave-0007339
Print lines 4 through 5, including both endpoints.
NR >= 4 && NR <= 5
kim fable 53 gus harbor 76 ivan birch 105 gus indigo 82 chen delta 68 dina fable 106
gus indigo 82 chen delta 68
gus ember 67 hana indigo 96 gus indigo 38 bruno grove 62 lina birch 3 jules grove 4 dina ember 56
bruno grove 62 lina birch 3
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007339-p1
Print lines 4 through 5, inclusive of both endpoints.
NR >= 4 && NR <= 5
kim fable 53 gus harbor 76 ivan birch 105 gus indigo 82 chen delta 68 dina fable 106
gus indigo 82 chen delta 68
gus ember 67 hana indigo 96 gus indigo 38 bruno grove 62 lina birch 3 jules grove 4 dina ember 56
bruno grove 62 lina birch 3
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007339
qwen/qwen3.7-plus
awkweave-0007340
Output only the first 2 records.
NR <= 2
jules 93 fable alice 95 juniper hana 59 indigo chen 103 delta ivan 68 indigo lina 64 birch alice 59 delta dina 28 amber
jules 93 fable alice 95 juniper
alice 6 indigo dina 89 birch bruno 34 birch lina 69 delta chen 96 juniper dina 61 cobalt alice 89 fable
alice 6 indigo dina 89 birch
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007340-p1
Output only the first 2 records.
NR <= 2
jules 93 fable alice 95 juniper hana 59 indigo chen 103 delta ivan 68 indigo lina 64 birch alice 59 delta dina 28 amber
jules 93 fable alice 95 juniper
alice 6 indigo dina 89 birch bruno 34 birch lina 69 delta chen 96 juniper dina 61 cobalt alice 89 fable
alice 6 indigo dina 89 birch
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0007340
qwen/qwen3.7-plus
awkweave-0007341
Skip the first line and print every remaining line unchanged.
NR > 1
eli 27 ember gus 100 fable ivan 40 grove eli 65 juniper lina 109 indigo eli 63 grove lina 22 delta gus 43 grove
gus 100 fable ivan 40 grove eli 65 juniper lina 109 indigo eli 63 grove lina 22 delta gus 43 grove
eli 75 harbor eli 119 juniper bruno 100 grove gus 55 harbor lina 79 birch chen 71 ember farah 88 amber jules 63 harbor
eli 119 juniper bruno 100 grove gus 55 harbor lina 79 birch chen 71 ember farah 88 amber jules 63 harbor
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007341-p1
Skip the first line and print all subsequent lines without modification.
NR > 1
eli 27 ember gus 100 fable ivan 40 grove eli 65 juniper lina 109 indigo eli 63 grove lina 22 delta gus 43 grove
gus 100 fable ivan 40 grove eli 65 juniper lina 109 indigo eli 63 grove lina 22 delta gus 43 grove
eli 75 harbor eli 119 juniper bruno 100 grove gus 55 harbor lina 79 birch chen 71 ember farah 88 amber jules 63 harbor
eli 119 juniper bruno 100 grove gus 55 harbor lina 79 birch chen 71 ember farah 88 amber jules 63 harbor
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007341
qwen/qwen3.7-plus
awkweave-0007342
Count how many records have ready in column 2. Print 0 if there are none.
$2 == "ready"{n++}END{print n+0}
lina active 106 eli paused 102 bruno pending 39 kim active 47 lina failed 110 kim failed 35 alice failed 27
0
kim closed 36 lina pending 92 bruno pending 60 hana ready 24 eli ready 82 farah active 20 lina paused 119 chen closed 70 hana failed 42 eli active 19
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007342-p1
Count the occurrences of 'ready' in the second column, outputting 0 if no matches are found.
$2 == "ready"{n++}END{print n+0}
lina active 106 eli paused 102 bruno pending 39 kim active 47 lina failed 110 kim failed 35 alice failed 27
0
kim closed 36 lina pending 92 bruno pending 60 hana ready 24 eli ready 82 farah active 20 lina paused 119 chen closed 70 hana failed 42 eli active 19
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007342
qwen/qwen3.7-plus
awkweave-0007343
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
2 fable hana 4 ember jules 6 indigo chen 3 indigo gus 9 fable farah 6 cobalt hana 27 juniper gus 20 amber dina
77
9 indigo kim 28 grove farah 30 harbor alice 24 fable farah 16 birch alice 12 indigo chen
119
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007343-p1
Compute and display the total sum of all integer values located in the first column.
{s+=$1}END{print s+0}
2 fable hana 4 ember jules 6 indigo chen 3 indigo gus 9 fable farah 6 cobalt hana 27 juniper gus 20 amber dina
77
9 indigo kim 28 grove farah 30 harbor alice 24 fable farah 16 birch alice 12 indigo chen
119
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007343
qwen/qwen3.7-plus
awkweave-0007344
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
grove jules 28 ember bruno 28 juniper bruno 5 birch eli 9 juniper jules 29 amber bruno 18 ember farah 11 ember bruno 2 amber jules 24
17.11
delta gus 24 harbor lina 18 indigo jules 16 grove ivan 16 grove dina 21 harbor ivan 27 juniper eli 20 juniper farah 30 indigo jules 1 birch lina 5
17.80
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007344-p1
Output the average of the values in the third column, formatted to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
grove jules 28 ember bruno 28 juniper bruno 5 birch eli 9 juniper jules 29 amber bruno 18 ember farah 11 ember bruno 2 amber jules 24
17.11
delta gus 24 harbor lina 18 indigo jules 16 grove ivan 16 grove dina 21 harbor ivan 27 juniper eli 20 juniper farah 30 indigo jules 1 birch lina 5
17.80
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007344
qwen/qwen3.7-plus
awkweave-0007345
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
16 harbor dina 11 harbor alice 30 fable kim 27 birch eli 5 fable gus 3 ember lina 19 fable kim
3
29 cobalt gus 22 indigo hana 9 ember lina 16 birch bruno 28 birch eli 3 birch ivan
3
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007345-p1
Identify and print the minimum numeric value found in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
16 harbor dina 11 harbor alice 30 fable kim 27 birch eli 5 fable gus 3 ember lina 19 fable kim
3
29 cobalt gus 22 indigo hana 9 ember lina 16 birch bruno 28 birch eli 3 birch ivan
3
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007345
qwen/qwen3.7-plus
awkweave-0007346
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
amber 25 hana harbor 2 eli ember 30 lina birch 9 ivan indigo 30 bruno indigo 20 eli cobalt 2 gus
30
ember 27 alice birch 10 farah harbor 17 ivan grove 1 hana amber 15 kim amber 7 hana ember 24 bruno indigo 18 kim fable 15 alice birch 8 ivan
27
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007346-p1
Identify and print the maximum numeric value found in the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
amber 25 hana harbor 2 eli ember 30 lina birch 9 ivan indigo 30 bruno indigo 20 eli cobalt 2 gus
30
ember 27 alice birch 10 farah harbor 17 ivan grove 1 hana amber 15 kim amber 7 hana ember 24 bruno indigo 18 kim fable 15 alice birch 8 ivan
27
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007346
qwen/qwen3.7-plus
awkweave-0007347
Count all input records and print the total.
END{print NR}
eli 79 farah 104 lina 43 dina 39 farah 22 bruno 33 dina 2 ivan 68 gus 46
9
bruno 13 alice 109 gus 109 kim 72 dina 36 gus 100
6
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007347-p1
Count the total number of input records and print the result.
END{print NR}
eli 79 farah 104 lina 43 dina 39 farah 22 bruno 33 dina 2 ivan 68 gus 46
9
bruno 13 alice 109 gus 109 kim 72 dina 36 gus 100
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007347
qwen/qwen3.7-plus
awkweave-0007348
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
farah indigo 57 ivan indigo 90 farah ember 50 gus delta 22 kim harbor 63 kim harbor 63 kim harbor 23 kim fable 0
farah indigo 57 ivan indigo 90 farah ember 50 gus delta 22 kim harbor 63 kim harbor 23 kim fable 0
farah juniper 12 farah juniper 12 lina birch 69 kim birch 63 eli fable 42 eli harbor 41 gus harbor 78 gus amber 29 jules amber 72 lina birch 48
farah juniper 12 lina birch 69 kim birch 63 eli fable 42 eli harbor 41 gus harbor 78 gus amber 29 jules amber 72 lina birch 48
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007348-p1
Eliminate exact duplicate lines while maintaining the original order and keeping the first instance of each.
!seen[$0]++
farah indigo 57 ivan indigo 90 farah ember 50 gus delta 22 kim harbor 63 kim harbor 63 kim harbor 23 kim fable 0
farah indigo 57 ivan indigo 90 farah ember 50 gus delta 22 kim harbor 63 kim harbor 23 kim fable 0
farah juniper 12 farah juniper 12 lina birch 69 kim birch 63 eli fable 42 eli harbor 41 gus harbor 78 gus amber 29 jules amber 72 lina birch 48
farah juniper 12 lina birch 69 kim birch 63 eli fable 42 eli harbor 41 gus harbor 78 gus amber 29 jules amber 72 lina birch 48
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007348
qwen/qwen3.7-plus
awkweave-0007349
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
jules grove 111 chen grove 96 lina juniper 95 dina amber 107 ivan amber 95 lina harbor 60 chen birch 80 lina juniper 93 ivan amber 6
jules grove 111 chen grove 96 lina juniper 95 dina amber 107 lina harbor 60 chen birch 80 lina juniper 93 ivan amber 6
dina ember 93 alice birch 87 dina delta 56 kim cobalt 87 dina cobalt 22 bruno harbor 0 lina juniper 118 hana amber 100
dina ember 93 alice birch 87 dina delta 56 dina cobalt 22 bruno harbor 0 lina juniper 118 hana amber 100
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007349-p1
Retain only the first occurrence for each unique value in the third column, preserving the original input sequence.
!seen[$3]++
jules grove 111 chen grove 96 lina juniper 95 dina amber 107 ivan amber 95 lina harbor 60 chen birch 80 lina juniper 93 ivan amber 6
jules grove 111 chen grove 96 lina juniper 95 dina amber 107 lina harbor 60 chen birch 80 lina juniper 93 ivan amber 6
dina ember 93 alice birch 87 dina delta 56 kim cobalt 87 dina cobalt 22 bruno harbor 0 lina juniper 118 hana amber 100
dina ember 93 alice birch 87 dina delta 56 dina cobalt 22 bruno harbor 0 lina juniper 118 hana amber 100
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007349
qwen/qwen3.7-plus
awkweave-0007350
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
alice 8 ember alice 26 harbor gus 6 amber eli 6 fable kim 6 ember gus 6 birch alice 2 grove
alice 8 alice 34 gus 40 eli 46 kim 52 gus 58 alice 60
bruno 13 indigo alice 13 indigo gus 15 grove alice 20 amber alice 22 cobalt hana 13 ember farah 22 ember
bruno 13 alice 26 gus 41 alice 61 alice 83 hana 96 farah 118
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007350-p1
For each record, output the first column followed by the cumulative sum of the second column, separated by a space.
{s+=$2;print $1,s}
alice 8 ember alice 26 harbor gus 6 amber eli 6 fable kim 6 ember gus 6 birch alice 2 grove
alice 8 alice 34 gus 40 eli 46 kim 52 gus 58 alice 60
bruno 13 indigo alice 13 indigo gus 15 grove alice 20 amber alice 22 cobalt hana 13 ember farah 22 ember
bruno 13 alice 26 gus 41 alice 61 alice 83 hana 96 farah 118
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007350
qwen/qwen3.7-plus
awkweave-0007351
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
lina 18 14 ember dina 11 21 juniper kim 25 14 grove farah 7 3 amber alice 26 12 grove jules 15 26 delta gus 29 10 amber jules 7 20 harbor
lina 32 dina 32 kim 39 farah 10 alice 38 jules 41 gus 39 jules 27
alice 6 12 amber ivan 15 28 cobalt jules 10 26 juniper farah 28 29 ember bruno 26 2 delta gus 28 2 ember bruno 20 9 birch bruno 28 6 juniper alice 3 1 birch
alice 18 ivan 43 jules 36 farah 57 bruno 28 gus 30 bruno 29 bruno 34 alice 4
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007351-p1
Print the first field followed by the sum of the second and third fields for every row.
{print $1,$2+$3}
lina 18 14 ember dina 11 21 juniper kim 25 14 grove farah 7 3 amber alice 26 12 grove jules 15 26 delta gus 29 10 amber jules 7 20 harbor
lina 32 dina 32 kim 39 farah 10 alice 38 jules 41 gus 39 jules 27
alice 6 12 amber ivan 15 28 cobalt jules 10 26 juniper farah 28 29 ember bruno 26 2 delta gus 28 2 ember bruno 20 9 birch bruno 28 6 juniper alice 3 1 birch
alice 18 ivan 43 jules 36 farah 57 bruno 28 gus 30 bruno 29 bruno 34 alice 4
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007351
qwen/qwen3.7-plus
awkweave-0007352
Print column 1 and pass when column 2 is at least 21; otherwise print fail.
{print $1,($2>=21?"pass":"fail")}
alice 21 kim 28 jules 8 chen 6 eli 26 farah 22 lina 19 jules 20 bruno 7 jules 4
alice pass kim pass jules fail chen fail eli pass farah pass lina fail jules fail bruno fail jules fail
farah 18 hana 20 ivan 20 farah 25 alice 23 gus 29 ivan 5 hana 30 gus 17 alice 28
farah fail hana fail ivan fail farah pass alice pass gus pass ivan fail hana pass gus fail alice pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007352-p1
Print the first column along with 'pass' if the second column is 21 or greater; otherwise, print 'fail'.
{print $1,($2>=21?"pass":"fail")}
alice 21 kim 28 jules 8 chen 6 eli 26 farah 22 lina 19 jules 20 bruno 7 jules 4
alice pass kim pass jules fail chen fail eli pass farah pass lina fail jules fail bruno fail jules fail
farah 18 hana 20 ivan 20 farah 25 alice 23 gus 29 ivan 5 hana 30 gus 17 alice 28
farah fail hana fail ivan fail farah pass alice pass gus pass ivan fail hana pass gus fail alice pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007352
qwen/qwen3.7-plus
awkweave-0007353
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
kim indigo 54 hana delta 58 chen juniper 5 lina birch 6 kim grove 68 bruno ember 107 ivan delta 12 kim amber 11 lina fable 93
INDIGO DELTA JUNIPER BIRCH GROVE EMBER DELTA AMBER FABLE
ivan birch 56 eli grove 44 kim grove 43 kim delta 85 gus amber 93 dina grove 29 alice harbor 115
BIRCH GROVE GROVE DELTA AMBER GROVE HARBOR
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007353-p1
Transform the second column to uppercase and output only that modified column.
{print toupper($2)}
kim indigo 54 hana delta 58 chen juniper 5 lina birch 6 kim grove 68 bruno ember 107 ivan delta 12 kim amber 11 lina fable 93
INDIGO DELTA JUNIPER BIRCH GROVE EMBER DELTA AMBER FABLE
ivan birch 56 eli grove 44 kim grove 43 kim delta 85 gus amber 93 dina grove 29 alice harbor 115
BIRCH GROVE GROVE DELTA AMBER GROVE HARBOR
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007353
qwen/qwen3.7-plus
awkweave-0007354
From column 1, print 3 characters starting at character 2.
{print substr($1,2,3)}
amber 89 delta 18 harbor 101 cobalt 11 ember 60 ember 24
mbe elt arb oba mbe mbe
birch 102 delta 57 harbor 105 harbor 82 grove 33 fable 77 ember 9 fable 84 juniper 58 juniper 108
irc elt arb arb rov abl mbe abl uni uni
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007354-p1
Extract a substring of length 3 from column 1, beginning at the second character.
{print substr($1,2,3)}
amber 89 delta 18 harbor 101 cobalt 11 ember 60 ember 24
mbe elt arb oba mbe mbe
birch 102 delta 57 harbor 105 harbor 82 grove 33 fable 77 ember 9 fable 84 juniper 58 juniper 108
irc elt arb arb rov abl mbe abl uni uni
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007354
qwen/qwen3.7-plus
awkweave-0007355
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
grove_grove 93 ember_fable 58 grove_delta 91 delta_ember 36 juniper_amber 26 fable_ember 23
grove grove ember fable grove delta delta ember juniper amber fable ember
indigo_delta 108 cobalt_amber 111 birch_cobalt 70 ember_amber 6 grove_amber 49 harbor_fable 118 juniper_amber 107 fable_amber 97 delta_cobalt 55
indigo delta cobalt amber birch cobalt ember amber grove amber harbor fable juniper amber fable amber delta cobalt
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007355-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
grove_grove 93 ember_fable 58 grove_delta 91 delta_ember 36 juniper_amber 26 fable_ember 23
grove grove ember fable grove delta delta ember juniper amber fable ember
indigo_delta 108 cobalt_amber 111 birch_cobalt 70 ember_amber 6 grove_amber 49 harbor_fable 118 juniper_amber 107 fable_amber 97 delta_cobalt 55
indigo delta cobalt amber birch cobalt ember amber grove amber harbor fable juniper amber fable amber delta cobalt
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007355
qwen/qwen3.7-plus
awkweave-0007356
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)}
ivan cobalt 63 closed jules delta 107 pending dina delta 96 active kim ember 81 active farah ember 97 active gus grove 62 failed dina ember 107 paused kim harbor 35 active eli grove 53 pending
closed 63 cobalt ivan pending 107 delta jules active 96 delta dina active 81 ember kim active 97 ember farah failed 62 grove gus paused 107 ember dina active 35 harbor kim pending 53 grove eli
hana cobalt 96 failed alice grove 16 pending chen cobalt 45 paused gus ember 82 paused hana cobalt 46 closed farah fable 101 ready hana indigo 8 ready
failed 96 cobalt hana pending 16 grove alice paused 45 cobalt chen paused 82 ember gus closed 46 cobalt hana ready 101 fable farah ready 8 indigo hana
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007356-p1
Reverse the sequence of fields for each line and display all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
ivan cobalt 63 closed jules delta 107 pending dina delta 96 active kim ember 81 active farah ember 97 active gus grove 62 failed dina ember 107 paused kim harbor 35 active eli grove 53 pending
closed 63 cobalt ivan pending 107 delta jules active 96 delta dina active 81 ember kim active 97 ember farah failed 62 grove gus paused 107 ember dina active 35 harbor kim pending 53 grove eli
hana cobalt 96 failed alice grove 16 pending chen cobalt 45 paused gus ember 82 paused hana cobalt 46 closed farah fable 101 ready hana indigo 8 ready
failed 96 cobalt hana pending 16 grove alice paused 45 cobalt chen paused 82 ember gus closed 46 cobalt hana ready 101 fable farah ready 8 indigo hana
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007356
qwen/qwen3.7-plus
awkweave-0007357
Print the number of whitespace-separated fields on each line.
{print NF}
ivan juniper 84 failed dina delta 9 failed chen harbor 9 failed chen juniper 120 failed farah grove 43 ready bruno indigo 12 closed
4 4 4 4 4 4
dina cobalt 96 closed eli indigo 12 pending eli cobalt 113 failed dina fable 110 pending lina indigo 93 pending ivan fable 54 pending chen juniper 16 active hana harbor 78 closed bruno amber 27 failed
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007357-p1
Output the count of whitespace-delimited fields present on each line.
{print NF}
ivan juniper 84 failed dina delta 9 failed chen harbor 9 failed chen juniper 120 failed farah grove 43 ready bruno indigo 12 closed
4 4 4 4 4 4
dina cobalt 96 closed eli indigo 12 pending eli cobalt 113 failed dina fable 110 pending lina indigo 93 pending ivan fable 54 pending chen juniper 16 active hana harbor 78 closed bruno amber 27 failed
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007357
qwen/qwen3.7-plus
awkweave-0007358
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]]}
gus beta 108 lina delta 48 eli alpha 79 alice delta 59 eli gamma 47 lina beta 40
beta 2 delta 2 alpha 1 gamma 1
hana beta 90 kim beta 69 lina gamma 99 lina alpha 85 lina delta 89 farah alpha 22
beta 2 gamma 1 alpha 2 delta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007358-p1
Tally the occurrences of each unique value in column 2, listing them alongside their counts 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]]}
gus beta 108 lina delta 48 eli alpha 79 alice delta 59 eli gamma 47 lina beta 40
beta 2 delta 2 alpha 1 gamma 1
hana beta 90 kim beta 69 lina gamma 99 lina alpha 85 lina delta 89 farah alpha 22
beta 2 gamma 1 alpha 2 delta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007358
qwen/qwen3.7-plus
awkweave-0007359
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]]}
dina delta 1 ivan delta 7 gus delta 7 lina gamma 30 alice beta 18 hana beta 29
delta 15 gamma 30 beta 47
gus gamma 5 farah alpha 28 ivan beta 16 lina delta 18 hana beta 24 kim gamma 3 kim gamma 23 hana beta 16
gamma 31 alpha 28 beta 56 delta 18
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007359-p1
Calculate the sum of column 3 for each distinct category 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]]}
dina delta 1 ivan delta 7 gus delta 7 lina gamma 30 alice beta 18 hana beta 29
delta 15 gamma 30 beta 47
gus gamma 5 farah alpha 28 ivan beta 16 lina delta 18 hana beta 24 kim gamma 3 kim gamma 23 hana beta 16
gamma 31 alpha 28 beta 56 delta 18
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007359
qwen/qwen3.7-plus
awkweave-0007360
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma delta 62 beta cobalt 8 alpha cobalt 94 alpha birch 42 beta cobalt 32 delta amber 6 beta ember 37
beta 3 alpha 2
delta cobalt 111 beta fable 79 delta cobalt 90 gamma fable 49 gamma harbor 86 alpha delta 38
delta 2 gamma 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007360-p1
List each duplicate value from column 1 along with its frequency, ordered by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma delta 62 beta cobalt 8 alpha cobalt 94 alpha birch 42 beta cobalt 32 delta amber 6 beta ember 37
beta 3 alpha 2
delta cobalt 111 beta fable 79 delta cobalt 90 gamma fable 49 gamma harbor 86 alpha delta 38
delta 2 gamma 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007360
qwen/qwen3.7-plus
awkweave-0007361
The first row is a header. Print the note column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
display_name state note record_id r001 alice 29 pending r002 chen 9 paused r003 gus 14 active r004 jules 4 closed r005 kim 4 ready r006 eli 8 pending r007 jules 24 failed r008 gus 3 active r009 gus 28 active r010 chen 29 active
29 9 14 4 4 8 24 3 28 29
display_name state note record_id r001 hana 14 failed r002 gus 16 ready r003 lina 26 pending r004 ivan 21 ready r005 lina 28 ready r006 chen 9 active r007 dina 1 active r008 eli 19 failed r009 eli 24 failed r010 chen 14 paused
14 16 26 21 28 9 1 19 24 14
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007361-p1
Treating the first row as a header, output the contents of the note column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
display_name state note record_id r001 alice 29 pending r002 chen 9 paused r003 gus 14 active r004 jules 4 closed r005 kim 4 ready r006 eli 8 pending r007 jules 24 failed r008 gus 3 active r009 gus 28 active r010 chen 29 active
29 9 14 4 4 8 24 3 28 29
display_name state note record_id r001 hana 14 failed r002 gus 16 ready r003 lina 26 pending r004 ivan 21 ready r005 lina 28 ready r006 chen 9 active r007 dina 1 active r008 eli 19 failed r009 eli 24 failed r010 chen 14 paused
14 16 26 21 28 9 1 19 24 14
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007361
qwen/qwen3.7-plus
awkweave-0007362
The first row is a header. Print display_name for data rows whose score is greater than 22.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]}
record_id display_name score state r001 farah 26 ready r002 kim 1 paused r003 ivan 19 paused r004 alice 19 failed r005 bruno 17 pending r006 gus 2 failed r007 jules 3 pending r008 dina 8 ready r009 alice 21 closed
farah
record_id display_name score state r001 ivan 6 closed r002 eli 27 ready r003 hana 19 ready r004 eli 6 ready r005 lina 21 failed r006 dina 24 paused r007 eli 20 failed r008 farah 22 active r009 lina 1 active
eli dina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007362-p1
With the first row as a header, print the display_name field for any data row where the score is strictly greater than 22.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]}
record_id display_name score state r001 farah 26 ready r002 kim 1 paused r003 ivan 19 paused r004 alice 19 failed r005 bruno 17 pending r006 gus 2 failed r007 jules 3 pending r008 dina 8 ready r009 alice 21 closed
farah
record_id display_name score state r001 ivan 6 closed r002 eli 27 ready r003 hana 19 ready r004 eli 6 ready r005 lina 21 failed r006 dina 24 paused r007 eli 20 failed r008 farah 22 active r009 lina 1 active
eli dina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007362
qwen/qwen3.7-plus
awkweave-0007363
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
dina 30 ready jules 23 paused hana 2 closed gus 27 closed dina 5 closed lina 28 closed alice 27 pending kim 24 active
30 23 2 27 5 28 27 24
jules 1 pending jules 11 failed bruno 26 closed dina 21 closed gus 30 active kim 30 closed dina 14 pending dina 11 ready ivan 4 failed ivan 8 ready
1 11 26 21 30 30 14 11 4 8
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007363-p1
Given tab-separated input, extract and print the second column from every record.
BEGIN{FS=OFS="\t"}{print $2}
dina 30 ready jules 23 paused hana 2 closed gus 27 closed dina 5 closed lina 28 closed alice 27 pending kim 24 active
30 23 2 27 5 28 27 24
jules 1 pending jules 11 failed bruno 26 closed dina 21 closed gus 30 active kim 30 closed dina 14 pending dina 11 ready ivan 4 failed ivan 8 ready
1 11 26 21 30 30 14 11 4 8
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007363
qwen/qwen3.7-plus
awkweave-0007364
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 20.
BEGIN{FS=OFS=","}$2>20{print $1}
hana,28,closed dina,22,ready hana,17,ready eli,11,ready eli,3,failed bruno,14,pending
hana dina
gus,19,paused eli,10,active alice,4,closed lina,16,active jules,1,ready lina,26,paused
lina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007364-p1
For simple comma-separated input without quoted commas, print the first column if the value in the second column is greater than 20.
BEGIN{FS=OFS=","}$2>20{print $1}
hana,28,closed dina,22,ready hana,17,ready eli,11,ready eli,3,failed bruno,14,pending
hana dina
gus,19,paused eli,10,active alice,4,closed lina,16,active jules,1,ready lina,26,paused
lina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007364
qwen/qwen3.7-plus
awkweave-0007365
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
gus cobalt 109 lina amber 106 gus fable 20 bruno indigo 93 eli cobalt 64 alice cobalt 98 bruno fable 106 alice grove 105 chen juniper 68
gus cobalt 109 lina amber 106 gus fable 20 bruno indigo 93 eli cobalt 64 alice cobalt 98 bruno fable 106 alice grove 105 chen juniper 68
alice amber 94 farah birch 76 farah indigo 109 ivan fable 46 chen fable 69 lina amber 108
alice amber 94 farah birch 76 farah indigo 109 ivan fable 46 chen fable 69 lina amber 108
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007365-p1
Remove leading and trailing whitespace and replace any internal sequences of whitespace with a single space.
{$1=$1;print}
gus cobalt 109 lina amber 106 gus fable 20 bruno indigo 93 eli cobalt 64 alice cobalt 98 bruno fable 106 alice grove 105 chen juniper 68
gus cobalt 109 lina amber 106 gus fable 20 bruno indigo 93 eli cobalt 64 alice cobalt 98 bruno fable 106 alice grove 105 chen juniper 68
alice amber 94 farah birch 76 farah indigo 109 ivan fable 46 chen fable 69 lina amber 108
alice amber 94 farah birch 76 farah indigo 109 ivan fable 46 chen fable 69 lina amber 108
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007365
qwen/qwen3.7-plus
awkweave-0007366
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
gus indigo 95 paused alice harbor 40 closed eli harbor 80 ready farah fable 28 paused alice birch 27 failed chen delta 9 paused ivan indigo 39 pending hana delta 49 pending hana grove 4 closed
alice harbor 40 closed
gus amber 14 closed jules fable 108 active bruno indigo 5 failed alice delta 57 failed eli ember 22 failed jules ember 53 failed kim fable 65 active farah amber 108 ready hana delta 79 failed kim birch 106 failed
jules fable 108 active
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007366-p1
Output the longest line from the input, selecting the first one encountered if there is a tie in length.
{if(length($0)>length(best))best=$0}END{print best}
gus indigo 95 paused alice harbor 40 closed eli harbor 80 ready farah fable 28 paused alice birch 27 failed chen delta 9 paused ivan indigo 39 pending hana delta 49 pending hana grove 4 closed
alice harbor 40 closed
gus amber 14 closed jules fable 108 active bruno indigo 5 failed alice delta 57 failed eli ember 22 failed jules ember 53 failed kim fable 65 active farah amber 108 ready hana delta 79 failed kim birch 106 failed
jules fable 108 active
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007366
qwen/qwen3.7-plus
awkweave-0007367
Print every 3rd line starting at line 3 (then line 6, and so on).
NR%3==0
kim 112 ivan 117 farah 87 dina 58 hana 32 chen 109 eli 19 ivan 26 jules 96
farah 87 chen 109 jules 96
dina 108 chen 73 eli 95 kim 119 farah 99 lina 115 dina 84 lina 21
eli 95 lina 115
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007367-p1
Display every third line of the input, beginning with line 3 (i.e., lines 3, 6, 9, etc.).
NR%3==0
kim 112 ivan 117 farah 87 dina 58 hana 32 chen 109 eli 19 ivan 26 jules 96
farah 87 chen 109 jules 96
dina 108 chen 73 eli 95 kim 119 farah 99 lina 115 dina 84 lina 21
eli 95 lina 115
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007367
qwen/qwen3.7-plus
awkweave-0007368
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha harbor 1 beta amber 117 delta indigo 48 delta cobalt 23 beta birch 57 gamma amber 94 alpha indigo 35 beta delta 81 beta ember 86 beta fable 44
8
delta grove 35 alpha juniper 109 alpha juniper 66 alpha fable 104 gamma amber 19 gamma birch 86 delta harbor 76 gamma delta 92 beta cobalt 55 alpha delta 8
8
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007368-p1
Calculate and output only the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
alpha harbor 1 beta amber 117 delta indigo 48 delta cobalt 23 beta birch 57 gamma amber 94 alpha indigo 35 beta delta 81 beta ember 86 beta fable 44
8
delta grove 35 alpha juniper 109 alpha juniper 66 alpha fable 104 gamma amber 19 gamma birch 86 delta harbor 76 gamma delta 92 beta cobalt 55 alpha delta 8
8
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007368
qwen/qwen3.7-plus
awkweave-0007369
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
hana 30 0 kim 2 13 kim 4 25 kim 10 24 hana 14 11 kim 11 10 eli 25 28 ivan 21 28 alice 4 12
kim 0.15 kim 0.16 kim 0.42 hana 1.27 kim 1.10 eli 0.89 ivan 0.75 alice 0.33
dina 25 0 kim 18 2 chen 1 28 farah 17 9 eli 25 12 eli 23 2 farah 16 4 dina 15 27 chen 10 24
kim 9.00 chen 0.04 farah 1.89 eli 2.08 eli 11.50 farah 4.00 dina 0.56 chen 0.42
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007369-p1
For each row where the third column is not zero, output 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}
hana 30 0 kim 2 13 kim 4 25 kim 10 24 hana 14 11 kim 11 10 eli 25 28 ivan 21 28 alice 4 12
kim 0.15 kim 0.16 kim 0.42 hana 1.27 kim 1.10 eli 0.89 ivan 0.75 alice 0.33
dina 25 0 kim 18 2 chen 1 28 farah 17 9 eli 25 12 eli 23 2 farah 16 4 dina 15 27 chen 10 24
kim 9.00 chen 0.04 farah 1.89 eli 2.08 eli 11.50 farah 4.00 dina 0.56 chen 0.42
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007369
qwen/qwen3.7-plus
awkweave-0007370
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
farah harbor 2 hana indigo 30 kim fable 17 chen indigo 14 jules fable 20 chen fable 29 jules cobalt 24 hana birch 29 dina cobalt 5
hana indigo 30 chen fable 29 hana birch 29
farah cobalt 30 bruno cobalt 30 hana birch 27 alice fable 5 kim indigo 6 farah amber 30
farah cobalt 30 bruno cobalt 30 farah amber 30
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007370-p1
Output the three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
farah harbor 2 hana indigo 30 kim fable 17 chen indigo 14 jules fable 20 chen fable 29 jules cobalt 24 hana birch 29 dina cobalt 5
hana indigo 30 chen fable 29 hana birch 29
farah cobalt 30 bruno cobalt 30 hana birch 27 alice fable 5 kim indigo 6 farah amber 30
farah cobalt 30 bruno cobalt 30 farah amber 30
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007370
qwen/qwen3.7-plus
awkweave-0007371
Print column 4 followed by column 1 for every record.
{print $4, $1}
farah hana 80 birch gus kim 28 birch eli kim 12 harbor dina alice 47 amber farah jules 27 grove jules lina 47 birch
birch farah birch gus harbor eli amber dina grove farah birch jules
alice eli 11 ember alice gus 109 amber alice hana 98 indigo lina eli 110 fable jules alice 77 harbor lina lina 26 grove
ember alice amber alice indigo alice fable lina harbor jules grove lina
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007371-p1
For every record, output the value from column 4 followed by the value from column 1.
{print $4, $1}
farah hana 80 birch gus kim 28 birch eli kim 12 harbor dina alice 47 amber farah jules 27 grove jules lina 47 birch
birch farah birch gus harbor eli amber dina grove farah birch jules
alice eli 11 ember alice gus 109 amber alice hana 98 indigo lina eli 110 fable jules alice 77 harbor lina lina 26 grove
ember alice amber alice indigo alice fable lina harbor jules grove lina
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007371
qwen/qwen3.7-plus
awkweave-0007372
Print the last field of every input line.
{print $NF}
alice paused 71 gus paused 69 lina active 33 chen paused 20 gus paused 45 dina pending 82
71 69 33 20 45 82
kim active 88 gus paused 61 dina closed 86 farah ready 37 hana failed 70 dina failed 39 eli pending 46 jules closed 48 kim paused 16 bruno ready 38
88 61 86 37 70 39 46 48 16 38
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007372-p1
Output the final field of each input line.
{print $NF}
alice paused 71 gus paused 69 lina active 33 chen paused 20 gus paused 45 dina pending 82
71 69 33 20 45 82
kim active 88 gus paused 61 dina closed 86 farah ready 37 hana failed 70 dina failed 39 eli pending 46 jules closed 48 kim paused 16 bruno ready 38
88 61 86 37 70 39 46 48 16 38
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007372
qwen/qwen3.7-plus
awkweave-0007373
Print the complete records where column 2 is at most 68.
$2 <= 68
closed 76 closed jules failed 16 paused alice pending 39 ready chen pending 97 failed alice pending 118 pending eli ready 102 active bruno pending 71 pending lina closed 70 ready alice
failed 16 paused alice pending 39 ready chen
paused 103 active jules closed 120 pending kim pending 22 pending kim closed 45 paused dina failed 90 failed farah failed 107 active alice failed 61 closed ivan closed 55 pending chen pending 81 active alice closed 115 paused chen
pending 22 pending kim closed 45 paused dina failed 61 closed ivan closed 55 pending chen
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007373-p1
Output the full records for which the value in column 2 is less than or equal to 68.
$2 <= 68
closed 76 closed jules failed 16 paused alice pending 39 ready chen pending 97 failed alice pending 118 pending eli ready 102 active bruno pending 71 pending lina closed 70 ready alice
failed 16 paused alice pending 39 ready chen
paused 103 active jules closed 120 pending kim pending 22 pending kim closed 45 paused dina failed 90 failed farah failed 107 active alice failed 61 closed ivan closed 55 pending chen pending 81 active alice closed 115 paused chen
pending 22 pending kim closed 45 paused dina failed 61 closed ivan closed 55 pending chen
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007373
qwen/qwen3.7-plus
awkweave-0007374
Show whole lines whose 2nd field is between 12 and 28, inclusive.
$2 >= 12 && $2 <= 28
paused 21 farah kim closed 26 jules alice failed 25 dina alice ready 2 lina farah paused 15 farah dina ready 13 chen dina pending 22 lina ivan active 2 hana jules
paused 21 farah kim closed 26 jules alice failed 25 dina alice paused 15 farah dina ready 13 chen dina pending 22 lina ivan
ready 6 dina gus failed 21 farah kim active 3 farah chen paused 15 dina eli pending 22 jules chen failed 20 kim lina paused 26 dina jules paused 24 farah kim
failed 21 farah kim paused 15 dina eli pending 22 jules chen failed 20 kim lina paused 26 dina jules paused 24 farah kim
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007374-p1
Display entire lines where the second field has a value between 12 and 28, inclusive.
$2 >= 12 && $2 <= 28
paused 21 farah kim closed 26 jules alice failed 25 dina alice ready 2 lina farah paused 15 farah dina ready 13 chen dina pending 22 lina ivan active 2 hana jules
paused 21 farah kim closed 26 jules alice failed 25 dina alice paused 15 farah dina ready 13 chen dina pending 22 lina ivan
ready 6 dina gus failed 21 farah kim active 3 farah chen paused 15 dina eli pending 22 jules chen failed 20 kim lina paused 26 dina jules paused 24 farah kim
failed 21 farah kim paused 15 dina eli pending 22 jules chen failed 20 kim lina paused 26 dina jules paused 24 farah kim
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007374
qwen/qwen3.7-plus
awkweave-0007375
Print column 3 only for rows where column 2 is exactly closed.
$2 == "closed"{print $3}
amber ready ivan 12 cobalt closed hana 80 juniper paused kim 79 cobalt pending bruno 61 cobalt failed jules 82 harbor active bruno 16 amber failed gus 17 juniper closed chen 26
hana chen
fable failed bruno 87 ember paused ivan 7 indigo closed eli 120 juniper pending lina 57 birch ready dina 110 cobalt active gus 1 birch closed lina 22 amber ready bruno 110 fable active chen 58
eli lina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007375-p1
Output only the third column for rows where the second column contains exactly the text 'closed'.
$2 == "closed"{print $3}
amber ready ivan 12 cobalt closed hana 80 juniper paused kim 79 cobalt pending bruno 61 cobalt failed jules 82 harbor active bruno 16 amber failed gus 17 juniper closed chen 26
hana chen
fable failed bruno 87 ember paused ivan 7 indigo closed eli 120 juniper pending lina 57 birch ready dina 110 cobalt active gus 1 birch closed lina 22 amber ready bruno 110 fable active chen 58
eli lina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007375
qwen/qwen3.7-plus
awkweave-0007376
Print all fields from lines where field 2 begins with INFO.
$2 ~ /^INFO/
36 WARN amber 51 ERROR delta 113 INFO birch 55 WARN grove 22 INFO harbor 70 ERROR birch 78 DEBUG amber 25 WARN birch 86 INFO juniper
113 INFO birch 22 INFO harbor 86 INFO juniper
75 WARN fable 48 ERROR cobalt 57 WARN birch 21 DEBUG harbor 36 WARN amber 117 INFO harbor
117 INFO harbor
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007376-p1
Print all fields from any line where the second field starts with the string 'INFO'.
$2 ~ /^INFO/
36 WARN amber 51 ERROR delta 113 INFO birch 55 WARN grove 22 INFO harbor 70 ERROR birch 78 DEBUG amber 25 WARN birch 86 INFO juniper
113 INFO birch 22 INFO harbor 86 INFO juniper
75 WARN fable 48 ERROR cobalt 57 WARN birch 21 DEBUG harbor 36 WARN amber 117 INFO harbor
117 INFO harbor
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007376
qwen/qwen3.7-plus
awkweave-0007377
Print every line except those containing the exact text juniper.
$0 !~ /juniper/
fable 107 ready cobalt 21 failed indigo 94 failed cobalt 48 failed cobalt 39 failed birch 1 pending juniper 999 active
fable 107 ready cobalt 21 failed indigo 94 failed cobalt 48 failed cobalt 39 failed birch 1 pending
delta 20 paused cobalt 93 active grove 51 ready cobalt 2 closed grove 94 paused cobalt 113 closed cobalt 87 closed grove 97 failed juniper 999 active
delta 20 paused cobalt 93 active grove 51 ready cobalt 2 closed grove 94 paused cobalt 113 closed cobalt 87 closed grove 97 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007377-p1
Output every line that does not contain the exact string 'juniper'.
$0 !~ /juniper/
fable 107 ready cobalt 21 failed indigo 94 failed cobalt 48 failed cobalt 39 failed birch 1 pending juniper 999 active
fable 107 ready cobalt 21 failed indigo 94 failed cobalt 48 failed cobalt 39 failed birch 1 pending
delta 20 paused cobalt 93 active grove 51 ready cobalt 2 closed grove 94 paused cobalt 113 closed cobalt 87 closed grove 97 failed juniper 999 active
delta 20 paused cobalt 93 active grove 51 ready cobalt 2 closed grove 94 paused cobalt 113 closed cobalt 87 closed grove 97 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007377
qwen/qwen3.7-plus
awkweave-0007378
Print lines 2 through 5, including both endpoints.
NR >= 2 && NR <= 5
hana amber 99 lina indigo 92 ivan juniper 23 dina amber 48 alice grove 87 lina indigo 99 dina harbor 108 gus delta 72 chen harbor 108
lina indigo 92 ivan juniper 23 dina amber 48 alice grove 87
chen ember 40 ivan grove 80 bruno grove 70 farah birch 3 hana delta 57 chen ember 45 farah birch 54
ivan grove 80 bruno grove 70 farah birch 3 hana delta 57
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007378-p1
Display lines 2 to 5, inclusive.
NR >= 2 && NR <= 5
hana amber 99 lina indigo 92 ivan juniper 23 dina amber 48 alice grove 87 lina indigo 99 dina harbor 108 gus delta 72 chen harbor 108
lina indigo 92 ivan juniper 23 dina amber 48 alice grove 87
chen ember 40 ivan grove 80 bruno grove 70 farah birch 3 hana delta 57 chen ember 45 farah birch 54
ivan grove 80 bruno grove 70 farah birch 3 hana delta 57
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007378
qwen/qwen3.7-plus
awkweave-0007379
Output only the first 4 records.
NR <= 4
farah 46 grove dina 30 fable chen 24 fable bruno 104 indigo farah 8 indigo chen 90 fable chen 58 birch lina 83 amber jules 81 indigo bruno 34 birch
farah 46 grove dina 30 fable chen 24 fable bruno 104 indigo
ivan 116 cobalt hana 95 harbor kim 111 cobalt lina 4 birch lina 59 fable jules 8 delta jules 43 amber ivan 98 juniper farah 47 harbor
ivan 116 cobalt hana 95 harbor kim 111 cobalt lina 4 birch
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007379-p1
Output just the initial 4 records.
NR <= 4
farah 46 grove dina 30 fable chen 24 fable bruno 104 indigo farah 8 indigo chen 90 fable chen 58 birch lina 83 amber jules 81 indigo bruno 34 birch
farah 46 grove dina 30 fable chen 24 fable bruno 104 indigo
ivan 116 cobalt hana 95 harbor kim 111 cobalt lina 4 birch lina 59 fable jules 8 delta jules 43 amber ivan 98 juniper farah 47 harbor
ivan 116 cobalt hana 95 harbor kim 111 cobalt lina 4 birch
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007379
qwen/qwen3.7-plus
awkweave-0007380
Skip the first line and print every remaining line unchanged.
NR > 1
jules 92 cobalt eli 89 birch bruno 113 cobalt gus 105 grove jules 34 harbor lina 14 birch lina 113 delta farah 43 harbor alice 79 delta kim 22 delta
eli 89 birch bruno 113 cobalt gus 105 grove jules 34 harbor lina 14 birch lina 113 delta farah 43 harbor alice 79 delta kim 22 delta
jules 89 birch hana 18 amber farah 74 grove lina 62 amber chen 36 fable dina 120 harbor bruno 111 juniper
hana 18 amber farah 74 grove lina 62 amber chen 36 fable dina 120 harbor bruno 111 juniper
skip_header
1
train
original-grammar
CC-BY-4.0
null
null