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-0036771-p1
Remove leading and trailing spaces from the text, and replace any sequence of internal whitespace with a single space.
{$1=$1;print}
ivan harbor 103 jules amber 2 ivan delta 76 lina harbor 80 bruno amber 95 dina cobalt 53 kim amber 76 chen fable 117
ivan harbor 103 jules amber 2 ivan delta 76 lina harbor 80 bruno amber 95 dina cobalt 53 kim amber 76 chen fable 117
ivan indigo 96 ivan birch 57 farah birch 71 gus ember 5 ivan indigo 89 bruno fable 115 hana fable 39 hana birch 12 kim cobalt 58 jules harbor 55
ivan indigo 96 ivan birch 57 farah birch 71 gus ember 5 ivan indigo 89 bruno fable 115 hana fable 39 hana birch 12 kim cobalt 58 jules harbor 55
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036771
qwen/qwen3.7-plus
awkweave-0036772
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
jules grove 65 active dina cobalt 17 failed jules fable 117 ready gus grove 55 ready jules harbor 103 failed hana juniper 39 failed gus grove 96 failed ivan grove 72 failed
jules harbor 103 failed
bruno indigo 6 ready gus cobalt 27 ready dina cobalt 75 closed ivan ember 0 failed gus indigo 109 closed dina indigo 18 active gus juniper 104 pending
gus juniper 104 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036772-p1
Identify and output the longest line in 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}
jules grove 65 active dina cobalt 17 failed jules fable 117 ready gus grove 55 ready jules harbor 103 failed hana juniper 39 failed gus grove 96 failed ivan grove 72 failed
jules harbor 103 failed
bruno indigo 6 ready gus cobalt 27 ready dina cobalt 75 closed ivan ember 0 failed gus indigo 109 closed dina indigo 18 active gus juniper 104 pending
gus juniper 104 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036772
qwen/qwen3.7-plus
awkweave-0036773
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
gus 15 gus 48 jules 109 farah 17 bruno 77 jules 40 farah 54 ivan 47
gus 48 farah 17 jules 40 ivan 47
lina 25 jules 62 bruno 46 jules 38 farah 81 bruno 39 chen 108 alice 14 eli 60 dina 61
jules 62 jules 38 bruno 39 alice 14 dina 61
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036773-p1
Output every even-numbered line, starting with line 2 (i.e., lines 2, 4, 6, etc.).
NR%2==0
gus 15 gus 48 jules 109 farah 17 bruno 77 jules 40 farah 54 ivan 47
gus 48 farah 17 jules 40 ivan 47
lina 25 jules 62 bruno 46 jules 38 farah 81 bruno 39 chen 108 alice 14 eli 60 dina 61
jules 62 jules 38 bruno 39 alice 14 dina 61
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036773
qwen/qwen3.7-plus
awkweave-0036774
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta juniper 114 beta indigo 102 gamma delta 0 gamma indigo 73 gamma fable 99 delta delta 39 delta amber 3 alpha juniper 18 alpha fable 52
5
alpha cobalt 107 delta harbor 81 alpha grove 47 gamma cobalt 53 gamma birch 76 delta fable 16 alpha ember 92 beta fable 118
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036774-p1
Calculate the number of unique entries in the second column and print just that total count.
{if(!seen[$2]++)n++}END{print n+0}
beta juniper 114 beta indigo 102 gamma delta 0 gamma indigo 73 gamma fable 99 delta delta 39 delta amber 3 alpha juniper 18 alpha fable 52
5
alpha cobalt 107 delta harbor 81 alpha grove 47 gamma cobalt 53 gamma birch 76 delta fable 16 alpha ember 92 beta fable 118
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036774
qwen/qwen3.7-plus
awkweave-0036775
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}
kim 3 0 lina 15 19 ivan 5 3 lina 3 18 dina 26 16 lina 19 20 farah 17 26 hana 9 6 eli 8 15
lina 0.79 ivan 1.67 lina 0.17 dina 1.62 lina 0.95 farah 0.65 hana 1.50 eli 0.53
bruno 4 0 hana 29 17 dina 13 30 dina 10 3 ivan 20 24 jules 25 20 jules 21 30
hana 1.71 dina 0.43 dina 3.33 ivan 0.83 jules 1.25 jules 0.70
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036775-p1
For each record, output the first column and the result of dividing the second column by the third (formatted to two decimal places), omitting any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
kim 3 0 lina 15 19 ivan 5 3 lina 3 18 dina 26 16 lina 19 20 farah 17 26 hana 9 6 eli 8 15
lina 0.79 ivan 1.67 lina 0.17 dina 1.62 lina 0.95 farah 0.65 hana 1.50 eli 0.53
bruno 4 0 hana 29 17 dina 13 30 dina 10 3 ivan 20 24 jules 25 20 jules 21 30
hana 1.71 dina 0.43 dina 3.33 ivan 0.83 jules 1.25 jules 0.70
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036775
qwen/qwen3.7-plus
awkweave-0036776
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]}
bruno grove 27 lina amber 23 gus juniper 26 bruno birch 20 eli juniper 18 alice delta 3 eli indigo 4 dina indigo 4 gus cobalt 13
bruno grove 27 gus juniper 26 lina amber 23
hana juniper 6 jules amber 5 dina juniper 17 chen fable 17 eli ember 3 lina fable 29 lina delta 16 hana fable 5 jules delta 7 bruno fable 28
lina fable 29 bruno fable 28 dina juniper 17
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036776-p1
Output the top three records based on the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
bruno grove 27 lina amber 23 gus juniper 26 bruno birch 20 eli juniper 18 alice delta 3 eli indigo 4 dina indigo 4 gus cobalt 13
bruno grove 27 gus juniper 26 lina amber 23
hana juniper 6 jules amber 5 dina juniper 17 chen fable 17 eli ember 3 lina fable 29 lina delta 16 hana fable 5 jules delta 7 bruno fable 28
lina fable 29 bruno fable 28 dina juniper 17
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036776
qwen/qwen3.7-plus
awkweave-0036777
For each line, output fields 5 and 1, in that order.
{print $5, $1}
eli pending pending 20 104 12 dina active closed 21 14 51 bruno ready pending 2 46 102 gus failed ready 103 31 23 hana paused paused 90 60 34 gus closed closed 75 10 42 jules ready failed 17 26 37 dina paused paused 1 28 32 hana failed pending 102 56 109
104 eli 14 dina 46 bruno 31 gus 60 hana 10 gus 26 jules 28 dina 56 hana
jules pending closed 49 9 38 chen closed ready 39 89 15 eli closed active 52 97 47 farah closed ready 69 85 53 hana closed active 25 76 118 alice pending closed 61 90 77
9 jules 89 chen 97 eli 85 farah 76 hana 90 alice
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036777-p1
For every line, print the fifth field followed by the first field.
{print $5, $1}
eli pending pending 20 104 12 dina active closed 21 14 51 bruno ready pending 2 46 102 gus failed ready 103 31 23 hana paused paused 90 60 34 gus closed closed 75 10 42 jules ready failed 17 26 37 dina paused paused 1 28 32 hana failed pending 102 56 109
104 eli 14 dina 46 bruno 31 gus 60 hana 10 gus 26 jules 28 dina 56 hana
jules pending closed 49 9 38 chen closed ready 39 89 15 eli closed active 52 97 47 farah closed ready 69 85 53 hana closed active 25 76 118 alice pending closed 61 90 77
9 jules 89 chen 97 eli 85 farah 76 hana 90 alice
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036777
qwen/qwen3.7-plus
awkweave-0036778
Print the last field of every input line.
{print $NF}
ember birch 32 failed chen birch kim ember fable 34 failed kim birch ivan birch grove 120 closed kim amber farah harbor grove 101 closed eli grove alice birch indigo 77 active chen birch dina fable delta 77 failed hana amber dina cobalt harbor 51 paused eli cobalt eli
kim ivan farah alice dina dina eli
fable harbor 56 pending hana birch hana cobalt birch 49 ready chen harbor chen amber juniper 38 failed jules harbor alice harbor cobalt 42 active bruno fable jules cobalt cobalt 104 pending ivan juniper farah fable fable 43 paused kim indigo jules grove delta 2 active hana juniper eli cobalt fable 76 paused eli amber d...
hana chen alice jules farah jules eli dina kim kim
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036778-p1
Output the final field from each line of input.
{print $NF}
ember birch 32 failed chen birch kim ember fable 34 failed kim birch ivan birch grove 120 closed kim amber farah harbor grove 101 closed eli grove alice birch indigo 77 active chen birch dina fable delta 77 failed hana amber dina cobalt harbor 51 paused eli cobalt eli
kim ivan farah alice dina dina eli
fable harbor 56 pending hana birch hana cobalt birch 49 ready chen harbor chen amber juniper 38 failed jules harbor alice harbor cobalt 42 active bruno fable jules cobalt cobalt 104 pending ivan juniper farah fable fable 43 paused kim indigo jules grove delta 2 active hana juniper eli cobalt fable 76 paused eli amber d...
hana chen alice jules farah jules eli dina kim kim
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036778
qwen/qwen3.7-plus
awkweave-0036779
Print the complete records where column 3 is less than 50.
$3 < 50
ivan grove 22 indigo ember bruno fable 48 indigo birch ivan amber 75 birch fable dina juniper 41 grove fable dina cobalt 82 cobalt delta farah delta 10 juniper ember gus cobalt 82 delta birch hana juniper 56 cobalt birch ivan fable 99 cobalt cobalt farah grove 30 amber juniper
ivan grove 22 indigo ember bruno fable 48 indigo birch dina juniper 41 grove fable farah delta 10 juniper ember farah grove 30 amber juniper
dina juniper 72 fable grove dina ember 69 juniper grove dina juniper 24 grove birch eli fable 60 juniper birch gus amber 101 amber cobalt lina fable 30 amber delta
dina juniper 24 grove birch lina fable 30 amber delta
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036779-p1
Display full records where the value in the third column is strictly less than 50.
$3 < 50
ivan grove 22 indigo ember bruno fable 48 indigo birch ivan amber 75 birch fable dina juniper 41 grove fable dina cobalt 82 cobalt delta farah delta 10 juniper ember gus cobalt 82 delta birch hana juniper 56 cobalt birch ivan fable 99 cobalt cobalt farah grove 30 amber juniper
ivan grove 22 indigo ember bruno fable 48 indigo birch dina juniper 41 grove fable farah delta 10 juniper ember farah grove 30 amber juniper
dina juniper 72 fable grove dina ember 69 juniper grove dina juniper 24 grove birch eli fable 60 juniper birch gus amber 101 amber cobalt lina fable 30 amber delta
dina juniper 24 grove birch lina fable 30 amber delta
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036779
qwen/qwen3.7-plus
awkweave-0036780
Show whole lines whose 2nd field is between 10 and 23, inclusive.
$2 >= 10 && $2 <= 23
birch 25 paused chen indigo 12 ready alice harbor 14 ready alice cobalt 1 failed dina juniper 16 ready ivan juniper 12 paused eli harbor 4 closed farah grove 28 failed farah
indigo 12 ready alice harbor 14 ready alice juniper 16 ready ivan juniper 12 paused eli
harbor 26 active lina cobalt 1 ready chen harbor 16 closed bruno amber 8 paused ivan cobalt 20 active gus amber 24 failed ivan grove 15 failed farah juniper 13 ready alice juniper 7 failed hana
harbor 16 closed bruno cobalt 20 active gus grove 15 failed farah juniper 13 ready alice
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036780-p1
Show entire lines where the second field falls within the inclusive range of 10 to 23.
$2 >= 10 && $2 <= 23
birch 25 paused chen indigo 12 ready alice harbor 14 ready alice cobalt 1 failed dina juniper 16 ready ivan juniper 12 paused eli harbor 4 closed farah grove 28 failed farah
indigo 12 ready alice harbor 14 ready alice juniper 16 ready ivan juniper 12 paused eli
harbor 26 active lina cobalt 1 ready chen harbor 16 closed bruno amber 8 paused ivan cobalt 20 active gus amber 24 failed ivan grove 15 failed farah juniper 13 ready alice juniper 7 failed hana
harbor 16 closed bruno cobalt 20 active gus grove 15 failed farah juniper 13 ready alice
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036780
qwen/qwen3.7-plus
awkweave-0036781
Print column 3 only for rows where column 1 is exactly paused.
$1 == "paused"{print $3}
pending birch bruno 78 failed cobalt jules 110 closed ember bruno 1 ready ember dina 94 pending fable ivan 27 pending juniper dina 67 closed amber chen 14 paused cobalt dina 118 failed birch lina 115
dina
closed grove gus 36 closed juniper chen 32 pending indigo farah 50 active harbor dina 90 paused fable alice 83 active harbor bruno 7 pending indigo kim 103
alice
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036781-p1
Extract and print only the third column for rows where the first column matches 'paused' exactly.
$1 == "paused"{print $3}
pending birch bruno 78 failed cobalt jules 110 closed ember bruno 1 ready ember dina 94 pending fable ivan 27 pending juniper dina 67 closed amber chen 14 paused cobalt dina 118 failed birch lina 115
dina
closed grove gus 36 closed juniper chen 32 pending indigo farah 50 active harbor dina 90 paused fable alice 83 active harbor bruno 7 pending indigo kim 103
alice
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036781
qwen/qwen3.7-plus
awkweave-0036782
Print all fields from lines where field 1 begins with INFO.
$1 ~ /^INFO/
DEBUG cobalt 105 WARN grove 91 ERROR delta 62 INFO grove 41 INFO ember 34 ERROR cobalt 99 WARN indigo 74 WARN ember 63 ERROR birch 71 INFO delta 42
INFO grove 41 INFO ember 34 INFO delta 42
WARN harbor 43 WARN grove 68 ERROR harbor 13 INFO fable 17 INFO cobalt 104 WARN birch 13 ERROR delta 49
INFO fable 17 INFO cobalt 104
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036782-p1
Print all fields from lines where the first field starts with the string 'INFO'.
$1 ~ /^INFO/
DEBUG cobalt 105 WARN grove 91 ERROR delta 62 INFO grove 41 INFO ember 34 ERROR cobalt 99 WARN indigo 74 WARN ember 63 ERROR birch 71 INFO delta 42
INFO grove 41 INFO ember 34 INFO delta 42
WARN harbor 43 WARN grove 68 ERROR harbor 13 INFO fable 17 INFO cobalt 104 WARN birch 13 ERROR delta 49
INFO fable 17 INFO cobalt 104
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036782
qwen/qwen3.7-plus
awkweave-0036783
Print every line except those containing the exact text harbor.
$0 !~ /harbor/
juniper 53 closed juniper 90 ready ember 104 failed grove 107 closed cobalt 4 paused ember 2 paused juniper 34 paused grove 41 ready harbor 999 active
juniper 53 closed juniper 90 ready ember 104 failed grove 107 closed cobalt 4 paused ember 2 paused juniper 34 paused grove 41 ready
grove 118 failed harbor 92 failed grove 36 pending indigo 52 active indigo 69 failed juniper 99 closed harbor 2 active harbor 999 active
grove 118 failed grove 36 pending indigo 52 active indigo 69 failed juniper 99 closed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036783-p1
Output every line that does not contain the exact substring 'harbor'.
$0 !~ /harbor/
juniper 53 closed juniper 90 ready ember 104 failed grove 107 closed cobalt 4 paused ember 2 paused juniper 34 paused grove 41 ready harbor 999 active
juniper 53 closed juniper 90 ready ember 104 failed grove 107 closed cobalt 4 paused ember 2 paused juniper 34 paused grove 41 ready
grove 118 failed harbor 92 failed grove 36 pending indigo 52 active indigo 69 failed juniper 99 closed harbor 2 active harbor 999 active
grove 118 failed grove 36 pending indigo 52 active indigo 69 failed juniper 99 closed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036783
qwen/qwen3.7-plus
awkweave-0036784
Print lines 2 through 4, including both endpoints.
NR >= 2 && NR <= 4
alice grove 88 farah juniper 25 jules juniper 63 jules amber 53 gus ember 60 bruno indigo 37 hana fable 40 chen grove 7
farah juniper 25 jules juniper 63 jules amber 53
bruno fable 90 hana amber 24 bruno ember 113 dina harbor 23 jules birch 115 eli fable 45
hana amber 24 bruno ember 113 dina harbor 23
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036784-p1
Print lines numbered 2 through 4, inclusive of both start and end lines.
NR >= 2 && NR <= 4
alice grove 88 farah juniper 25 jules juniper 63 jules amber 53 gus ember 60 bruno indigo 37 hana fable 40 chen grove 7
farah juniper 25 jules juniper 63 jules amber 53
bruno fable 90 hana amber 24 bruno ember 113 dina harbor 23 jules birch 115 eli fable 45
hana amber 24 bruno ember 113 dina harbor 23
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036784
qwen/qwen3.7-plus
awkweave-0036785
Output only the first 4 records.
NR <= 4
gus 16 birch hana 104 ember ivan 34 indigo gus 97 birch jules 87 indigo hana 57 indigo jules 40 grove
gus 16 birch hana 104 ember ivan 34 indigo gus 97 birch
jules 75 indigo chen 45 amber dina 17 amber eli 26 juniper kim 74 harbor alice 102 juniper farah 29 amber kim 82 fable
jules 75 indigo chen 45 amber dina 17 amber eli 26 juniper
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036785-p1
Display only the first four records from the input.
NR <= 4
gus 16 birch hana 104 ember ivan 34 indigo gus 97 birch jules 87 indigo hana 57 indigo jules 40 grove
gus 16 birch hana 104 ember ivan 34 indigo gus 97 birch
jules 75 indigo chen 45 amber dina 17 amber eli 26 juniper kim 74 harbor alice 102 juniper farah 29 amber kim 82 fable
jules 75 indigo chen 45 amber dina 17 amber eli 26 juniper
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036785
qwen/qwen3.7-plus
awkweave-0036786
Skip the first line and print every remaining line unchanged.
NR > 1
alice 102 harbor kim 1 fable chen 66 harbor hana 66 juniper alice 42 delta hana 85 ember farah 4 birch farah 72 amber chen 41 delta ivan 23 harbor
kim 1 fable chen 66 harbor hana 66 juniper alice 42 delta hana 85 ember farah 4 birch farah 72 amber chen 41 delta ivan 23 harbor
bruno 64 fable lina 0 ember gus 104 birch kim 28 juniper chen 31 delta gus 104 harbor dina 0 grove lina 65 ember
lina 0 ember gus 104 birch kim 28 juniper chen 31 delta gus 104 harbor dina 0 grove lina 65 ember
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036786-p1
Omit the first line and print all subsequent lines without modification.
NR > 1
alice 102 harbor kim 1 fable chen 66 harbor hana 66 juniper alice 42 delta hana 85 ember farah 4 birch farah 72 amber chen 41 delta ivan 23 harbor
kim 1 fable chen 66 harbor hana 66 juniper alice 42 delta hana 85 ember farah 4 birch farah 72 amber chen 41 delta ivan 23 harbor
bruno 64 fable lina 0 ember gus 104 birch kim 28 juniper chen 31 delta gus 104 harbor dina 0 grove lina 65 ember
lina 0 ember gus 104 birch kim 28 juniper chen 31 delta gus 104 harbor dina 0 grove lina 65 ember
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036786
qwen/qwen3.7-plus
awkweave-0036787
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
bruno failed 59 jules pending 43 jules closed 66 gus active 20 dina active 75 hana paused 117 jules failed 28 kim ready 59 jules paused 102
1
ivan active 33 kim pending 5 gus closed 47 hana active 24 farah pending 91 bruno ready 63 bruno ready 88 lina closed 55
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036787-p1
Count the number of records where the second column contains 'pending', outputting 0 if no such records exist.
$2 == "pending"{n++}END{print n+0}
bruno failed 59 jules pending 43 jules closed 66 gus active 20 dina active 75 hana paused 117 jules failed 28 kim ready 59 jules paused 102
1
ivan active 33 kim pending 5 gus closed 47 hana active 24 farah pending 91 bruno ready 63 bruno ready 88 lina closed 55
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036787
qwen/qwen3.7-plus
awkweave-0036788
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
birch 19 hana cobalt 22 lina indigo 13 chen grove 23 jules ember 25 eli cobalt 22 lina indigo 12 eli delta 3 hana cobalt 9 chen
148
fable 2 hana cobalt 21 eli ember 5 lina indigo 6 alice grove 18 eli birch 5 bruno juniper 22 alice grove 12 farah
91
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036788-p1
Compute and display the sum of all integer values found in the second column.
{s+=$2}END{print s+0}
birch 19 hana cobalt 22 lina indigo 13 chen grove 23 jules ember 25 eli cobalt 22 lina indigo 12 eli delta 3 hana cobalt 9 chen
148
fable 2 hana cobalt 21 eli ember 5 lina indigo 6 alice grove 18 eli birch 5 bruno juniper 22 alice grove 12 farah
91
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036788
qwen/qwen3.7-plus
awkweave-0036789
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
27 farah fable 7 bruno harbor 15 dina delta 19 eli harbor 10 gus harbor 17 jules birch 26 alice delta 25 chen amber 9 kim birch 24 jules grove
17.90
12 lina birch 23 chen birch 16 alice delta 7 lina fable 12 alice cobalt 2 hana harbor 22 lina delta 22 gus grove
14.50
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036789-p1
Calculate the average of the values in the first column and print the result rounded to two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
27 farah fable 7 bruno harbor 15 dina delta 19 eli harbor 10 gus harbor 17 jules birch 26 alice delta 25 chen amber 9 kim birch 24 jules grove
17.90
12 lina birch 23 chen birch 16 alice delta 7 lina fable 12 alice cobalt 2 hana harbor 22 lina delta 22 gus grove
14.50
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036789
qwen/qwen3.7-plus
awkweave-0036800
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
indigo_grove 120 grove_fable 53 birch_harbor 98 ember_fable 106 birch_fable 76 juniper_delta 21 juniper_indigo 116 birch_juniper 60
indigo grove grove fable birch harbor ember fable birch fable juniper delta juniper indigo birch juniper
cobalt_delta 84 juniper_grove 48 indigo_fable 98 amber_cobalt 95 birch_indigo 55 grove_grove 16 amber_ember 25 indigo_indigo 11 harbor_fable 30 fable_amber 50
cobalt delta juniper grove indigo fable amber cobalt birch indigo grove grove amber ember indigo indigo harbor fable fable amber
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036800-p1
Substitute all underscores with spaces in the first column and output the modified values.
{gsub(/_/," ",$1);print $1}
indigo_grove 120 grove_fable 53 birch_harbor 98 ember_fable 106 birch_fable 76 juniper_delta 21 juniper_indigo 116 birch_juniper 60
indigo grove grove fable birch harbor ember fable birch fable juniper delta juniper indigo birch juniper
cobalt_delta 84 juniper_grove 48 indigo_fable 98 amber_cobalt 95 birch_indigo 55 grove_grove 16 amber_ember 25 indigo_indigo 11 harbor_fable 30 fable_amber 50
cobalt delta juniper grove indigo fable amber cobalt birch indigo grove grove amber ember indigo indigo harbor fable fable amber
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036800
qwen/qwen3.7-plus
awkweave-0036801
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)}
eli ember 75 paused farah ember 67 active hana grove 38 pending lina ember 99 ready bruno ember 110 ready jules juniper 13 active gus harbor 117 pending gus birch 21 closed
paused 75 ember eli active 67 ember farah pending 38 grove hana ready 99 ember lina ready 110 ember bruno active 13 juniper jules pending 117 harbor gus closed 21 birch gus
bruno amber 32 ready ivan ember 60 closed farah harbor 45 closed lina amber 103 ready gus fable 111 pending hana indigo 84 failed alice birch 97 active gus ember 22 closed alice fable 15 failed alice juniper 100 pending
ready 32 amber bruno closed 60 ember ivan closed 45 harbor farah ready 103 amber lina pending 111 fable gus failed 84 indigo hana active 97 birch alice closed 22 ember gus failed 15 fable alice pending 100 juniper alice
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036801-p1
Reverse the sequence of fields for each line and display every field.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
eli ember 75 paused farah ember 67 active hana grove 38 pending lina ember 99 ready bruno ember 110 ready jules juniper 13 active gus harbor 117 pending gus birch 21 closed
paused 75 ember eli active 67 ember farah pending 38 grove hana ready 99 ember lina ready 110 ember bruno active 13 juniper jules pending 117 harbor gus closed 21 birch gus
bruno amber 32 ready ivan ember 60 closed farah harbor 45 closed lina amber 103 ready gus fable 111 pending hana indigo 84 failed alice birch 97 active gus ember 22 closed alice fable 15 failed alice juniper 100 pending
ready 32 amber bruno closed 60 ember ivan closed 45 harbor farah ready 103 amber lina pending 111 fable gus failed 84 indigo hana active 97 birch alice closed 22 ember gus failed 15 fable alice pending 100 juniper alice
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036801
qwen/qwen3.7-plus
awkweave-0036802
Print the number of whitespace-separated fields on each line.
{print NF}
jules cobalt 84 ready alice amber 32 ready eli birch 30 ready eli cobalt 17 closed jules fable 84 ready dina fable 81 paused dina indigo 14 paused farah grove 85 active hana cobalt 61 pending farah fable 93 ready
4 4 4 4 4 4 4 4 4 4
farah indigo 4 paused bruno fable 17 ready chen birch 86 pending eli birch 55 paused kim harbor 96 failed dina indigo 65 paused ivan birch 61 pending chen indigo 54 closed gus indigo 102 ready dina grove 90 failed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036802-p1
Output the count of whitespace-delimited fields present on each line.
{print NF}
jules cobalt 84 ready alice amber 32 ready eli birch 30 ready eli cobalt 17 closed jules fable 84 ready dina fable 81 paused dina indigo 14 paused farah grove 85 active hana cobalt 61 pending farah fable 93 ready
4 4 4 4 4 4 4 4 4 4
farah indigo 4 paused bruno fable 17 ready chen birch 86 pending eli birch 55 paused kim harbor 96 failed dina indigo 65 paused ivan birch 61 pending chen indigo 54 closed gus indigo 102 ready dina grove 90 failed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036802
qwen/qwen3.7-plus
awkweave-0036803
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
bruno gamma 86 hana alpha 9 ivan gamma 79 lina delta 71 jules delta 66 gus gamma 34
gamma 3 alpha 1 delta 2
ivan delta 24 bruno alpha 113 jules alpha 57 chen alpha 104 farah beta 106 eli delta 114 dina beta 59 dina delta 12
delta 3 alpha 3 beta 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036803-p1
Tally the records for each unique value in the second column, then print each value alongside its count, ordered by when 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]]}
bruno gamma 86 hana alpha 9 ivan gamma 79 lina delta 71 jules delta 66 gus gamma 34
gamma 3 alpha 1 delta 2
ivan delta 24 bruno alpha 113 jules alpha 57 chen alpha 104 farah beta 106 eli delta 114 dina beta 59 dina delta 12
delta 3 alpha 3 beta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036803
qwen/qwen3.7-plus
awkweave-0036804
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]]}
chen delta 10 lina delta 7 jules gamma 5 kim alpha 9 lina gamma 16 gus alpha 2 kim delta 8
delta 25 gamma 21 alpha 11
ivan beta 17 farah delta 12 farah alpha 20 farah delta 1 eli alpha 8 alice delta 6 chen gamma 15 hana alpha 25
beta 17 delta 19 alpha 53 gamma 15
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036804-p1
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
chen delta 10 lina delta 7 jules gamma 5 kim alpha 9 lina gamma 16 gus alpha 2 kim delta 8
delta 25 gamma 21 alpha 11
ivan beta 17 farah delta 12 farah alpha 20 farah delta 1 eli alpha 8 alice delta 6 chen gamma 15 hana alpha 25
beta 17 delta 19 alpha 53 gamma 15
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0036804
qwen/qwen3.7-plus
awkweave-0036805
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 fable 49 gamma amber 14 beta amber 4 gamma grove 51 delta fable 77 alpha juniper 112 alpha birch 21 delta fable 60 delta cobalt 24
alpha 3 gamma 2 delta 3
beta birch 96 delta fable 112 gamma birch 60 beta fable 88 delta juniper 68 beta delta 45 delta grove 71 alpha ember 90 gamma grove 115
beta 3 delta 3 gamma 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036805-p1
List each duplicate value from the first column along with its frequency, sorted by the order of 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]]}
alpha fable 49 gamma amber 14 beta amber 4 gamma grove 51 delta fable 77 alpha juniper 112 alpha birch 21 delta fable 60 delta cobalt 24
alpha 3 gamma 2 delta 3
beta birch 96 delta fable 112 gamma birch 60 beta fable 88 delta juniper 68 beta delta 45 delta grove 71 alpha ember 90 gamma grove 115
beta 3 delta 3 gamma 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036805
qwen/qwen3.7-plus
awkweave-0036806
The first row is a header. Print the record_id column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
score display_name note record_id r001 ivan 30 pending r002 farah 5 failed r003 lina 27 paused r004 alice 23 paused r005 hana 23 pending r006 alice 29 ready r007 ivan 17 ready
pending failed paused paused pending ready ready
score display_name note record_id r001 jules 14 pending r002 ivan 27 active r003 hana 29 closed r004 alice 15 closed r005 hana 14 closed r006 kim 7 failed r007 ivan 7 active r008 kim 16 pending r009 farah 6 pending r010 alice 13 pending
pending active closed closed closed failed active pending pending pending
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036806-p1
Treating the first row as a header, output the record_id column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
score display_name note record_id r001 ivan 30 pending r002 farah 5 failed r003 lina 27 paused r004 alice 23 paused r005 hana 23 pending r006 alice 29 ready r007 ivan 17 ready
pending failed paused paused pending ready ready
score display_name note record_id r001 jules 14 pending r002 ivan 27 active r003 hana 29 closed r004 alice 15 closed r005 hana 14 closed r006 kim 7 failed r007 ivan 7 active r008 kim 16 pending r009 farah 6 pending r010 alice 13 pending
pending active closed closed closed failed active pending pending pending
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036806
qwen/qwen3.7-plus
awkweave-0036807
The first row is a header. Print display_name for data rows whose score is greater than 12.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>12{print $h["display_name"]}
record_id display_name score state r001 farah 4 ready r002 lina 23 pending r003 eli 23 failed r004 eli 25 closed r005 gus 16 ready r006 jules 11 paused r007 dina 25 closed r008 gus 5 ready r009 dina 28 failed
lina eli eli gus dina dina
record_id display_name score state r001 kim 16 closed r002 ivan 1 active r003 kim 26 closed r004 dina 8 ready r005 dina 10 failed r006 alice 5 ready r007 jules 21 ready
kim kim jules
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036807-p1
With the first row as a header, output the display_name for data rows where the score is strictly greater than 12.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>12{print $h["display_name"]}
record_id display_name score state r001 farah 4 ready r002 lina 23 pending r003 eli 23 failed r004 eli 25 closed r005 gus 16 ready r006 jules 11 paused r007 dina 25 closed r008 gus 5 ready r009 dina 28 failed
lina eli eli gus dina dina
record_id display_name score state r001 kim 16 closed r002 ivan 1 active r003 kim 26 closed r004 dina 8 ready r005 dina 10 failed r006 alice 5 ready r007 jules 21 ready
kim kim jules
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036807
qwen/qwen3.7-plus
awkweave-0036808
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
farah 26 ready dina 29 paused chen 5 active lina 24 pending dina 14 active gus 19 paused kim 7 paused ivan 13 pending
26 29 5 24 14 19 7 13
lina 11 failed bruno 8 closed hana 5 closed eli 24 active alice 10 failed gus 17 failed farah 8 paused jules 6 failed
11 8 5 24 10 17 8 6
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036808-p1
Given tab-separated input, extract and print the second column from every record.
BEGIN{FS=OFS="\t"}{print $2}
farah 26 ready dina 29 paused chen 5 active lina 24 pending dina 14 active gus 19 paused kim 7 paused ivan 13 pending
26 29 5 24 14 19 7 13
lina 11 failed bruno 8 closed hana 5 closed eli 24 active alice 10 failed gus 17 failed farah 8 paused jules 6 failed
11 8 5 24 10 17 8 6
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036808
qwen/qwen3.7-plus
awkweave-0036809
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 17.
BEGIN{FS=OFS=","}$2>17{print $1}
farah,11,pending hana,10,closed farah,26,failed kim,30,failed jules,24,failed farah,6,paused farah,23,active gus,27,failed farah,14,paused
farah kim jules farah gus
bruno,21,active eli,19,pending dina,27,ready gus,30,active bruno,14,active bruno,11,failed dina,13,active
bruno eli dina gus
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036809-p1
For simple comma-separated input without quoted commas, print the first column whenever the second column value is greater than 17.
BEGIN{FS=OFS=","}$2>17{print $1}
farah,11,pending hana,10,closed farah,26,failed kim,30,failed jules,24,failed farah,6,paused farah,23,active gus,27,failed farah,14,paused
farah kim jules farah gus
bruno,21,active eli,19,pending dina,27,ready gus,30,active bruno,14,active bruno,11,failed dina,13,active
bruno eli dina gus
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036809
qwen/qwen3.7-plus
awkweave-0036810
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
ivan amber 56 bruno birch 23 chen delta 76 hana indigo 100 jules juniper 33 eli cobalt 62 ivan amber 82 farah birch 56 jules fable 49
ivan amber 56 bruno birch 23 chen delta 76 hana indigo 100 jules juniper 33 eli cobalt 62 ivan amber 82 farah birch 56 jules fable 49
chen fable 9 chen fable 42 eli grove 103 kim birch 25 ivan cobalt 31 lina grove 92 lina juniper 7 kim ember 19
chen fable 9 chen fable 42 eli grove 103 kim birch 25 ivan cobalt 31 lina grove 92 lina juniper 7 kim ember 19
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036810-p1
Remove leading and trailing whitespace and replace any internal runs of whitespace with a single space.
{$1=$1;print}
ivan amber 56 bruno birch 23 chen delta 76 hana indigo 100 jules juniper 33 eli cobalt 62 ivan amber 82 farah birch 56 jules fable 49
ivan amber 56 bruno birch 23 chen delta 76 hana indigo 100 jules juniper 33 eli cobalt 62 ivan amber 82 farah birch 56 jules fable 49
chen fable 9 chen fable 42 eli grove 103 kim birch 25 ivan cobalt 31 lina grove 92 lina juniper 7 kim ember 19
chen fable 9 chen fable 42 eli grove 103 kim birch 25 ivan cobalt 31 lina grove 92 lina juniper 7 kim ember 19
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036810
qwen/qwen3.7-plus
awkweave-0036811
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
jules harbor 5 paused alice indigo 103 paused eli fable 87 paused ivan juniper 42 failed alice juniper 73 closed jules birch 16 failed
alice indigo 103 paused
dina harbor 98 paused dina harbor 82 paused alice fable 24 paused lina birch 118 failed lina birch 53 ready kim grove 70 pending
dina harbor 98 paused
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036811-p1
Identify and print the longest line from the input; if multiple lines share the maximum length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
jules harbor 5 paused alice indigo 103 paused eli fable 87 paused ivan juniper 42 failed alice juniper 73 closed jules birch 16 failed
alice indigo 103 paused
dina harbor 98 paused dina harbor 82 paused alice fable 24 paused lina birch 118 failed lina birch 53 ready kim grove 70 pending
dina harbor 98 paused
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036811
qwen/qwen3.7-plus
awkweave-0036812
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
gus 19 lina 15 farah 32 farah 25 alice 10 alice 15 alice 120 dina 72 gus 38 eli 117
lina 15 farah 25 alice 15 dina 72 eli 117
chen 85 bruno 58 ivan 65 hana 57 alice 70 eli 92 jules 78
bruno 58 hana 57 eli 92
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036812-p1
Output every second line beginning with line 2 (i.e., lines 2, 4, etc.).
NR%2==0
gus 19 lina 15 farah 32 farah 25 alice 10 alice 15 alice 120 dina 72 gus 38 eli 117
lina 15 farah 25 alice 15 dina 72 eli 117
chen 85 bruno 58 ivan 65 hana 57 alice 70 eli 92 jules 78
bruno 58 hana 57 eli 92
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036812
qwen/qwen3.7-plus
awkweave-0036813
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha birch 78 gamma fable 17 alpha delta 81 beta birch 47 delta harbor 101 alpha indigo 19
5
alpha cobalt 79 delta indigo 105 beta grove 20 gamma grove 84 alpha cobalt 53 beta birch 118 alpha indigo 32
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036813-p1
Calculate the number of unique entries in the second column and output just that total.
{if(!seen[$2]++)n++}END{print n+0}
alpha birch 78 gamma fable 17 alpha delta 81 beta birch 47 delta harbor 101 alpha indigo 19
5
alpha cobalt 79 delta indigo 105 beta grove 20 gamma grove 84 alpha cobalt 53 beta birch 118 alpha indigo 32
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036813
qwen/qwen3.7-plus
awkweave-0036814
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
chen 27 0 chen 21 20 alice 20 12 farah 4 5 ivan 21 8 ivan 7 24 ivan 10 9 eli 2 5 kim 16 15 alice 4 5
chen 1.05 alice 1.67 farah 0.80 ivan 2.62 ivan 0.29 ivan 1.11 eli 0.40 kim 1.07 alice 0.80
eli 20 0 gus 7 2 eli 30 6 bruno 28 4 alice 19 25 bruno 23 3
gus 3.50 eli 5.00 bruno 7.00 alice 0.76 bruno 7.67
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036814-p1
For each row where the third column is not zero, display the first column and the result of dividing the second column by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
chen 27 0 chen 21 20 alice 20 12 farah 4 5 ivan 21 8 ivan 7 24 ivan 10 9 eli 2 5 kim 16 15 alice 4 5
chen 1.05 alice 1.67 farah 0.80 ivan 2.62 ivan 0.29 ivan 1.11 eli 0.40 kim 1.07 alice 0.80
eli 20 0 gus 7 2 eli 30 6 bruno 28 4 alice 19 25 bruno 23 3
gus 3.50 eli 5.00 bruno 7.00 alice 0.76 bruno 7.67
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036814
qwen/qwen3.7-plus
awkweave-0036815
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
ivan delta 30 ivan indigo 30 gus amber 24 chen grove 4 alice grove 30 bruno birch 13 alice delta 22 dina ember 27 eli cobalt 16
ivan delta 30 ivan indigo 30 alice grove 30
alice cobalt 17 chen birch 1 bruno ember 12 chen fable 15 gus ember 11 dina ember 5 lina harbor 6 kim cobalt 8 lina birch 17
alice cobalt 17 lina birch 17 chen fable 15
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036815-p1
Display the full records corresponding to the top three highest numeric values in column 3, sorted in descending order; maintain the original input sequence 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]}
ivan delta 30 ivan indigo 30 gus amber 24 chen grove 4 alice grove 30 bruno birch 13 alice delta 22 dina ember 27 eli cobalt 16
ivan delta 30 ivan indigo 30 alice grove 30
alice cobalt 17 chen birch 1 bruno ember 12 chen fable 15 gus ember 11 dina ember 5 lina harbor 6 kim cobalt 8 lina birch 17
alice cobalt 17 lina birch 17 chen fable 15
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036815
qwen/qwen3.7-plus
awkweave-0036816
Print column 5 followed by column 3 for every record.
{print $5, $3}
closed 63 closed amber juniper 112 ready 120 pending birch ember 89 failed 107 failed harbor cobalt 15 paused 85 failed ember fable 75 active 48 pending delta cobalt 62 failed 103 pending indigo grove 14 closed 18 active amber juniper 107 active 44 ready fable amber 97
juniper closed ember pending cobalt failed fable failed cobalt pending grove pending juniper active amber ready
closed 119 paused indigo indigo 53 ready 39 closed fable delta 49 ready 45 ready grove cobalt 37 active 60 failed cobalt juniper 14 closed 79 ready indigo amber 79 pending 82 closed grove ember 81 failed 54 failed fable fable 62 failed 59 paused juniper ember 67 paused 8 active juniper juniper 17
indigo paused delta closed cobalt ready juniper failed amber ready ember closed fable failed ember paused juniper active
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036816-p1
Output the fifth column followed by the third column for all records.
{print $5, $3}
closed 63 closed amber juniper 112 ready 120 pending birch ember 89 failed 107 failed harbor cobalt 15 paused 85 failed ember fable 75 active 48 pending delta cobalt 62 failed 103 pending indigo grove 14 closed 18 active amber juniper 107 active 44 ready fable amber 97
juniper closed ember pending cobalt failed fable failed cobalt pending grove pending juniper active amber ready
closed 119 paused indigo indigo 53 ready 39 closed fable delta 49 ready 45 ready grove cobalt 37 active 60 failed cobalt juniper 14 closed 79 ready indigo amber 79 pending 82 closed grove ember 81 failed 54 failed fable fable 62 failed 59 paused juniper ember 67 paused 8 active juniper juniper 17
indigo paused delta closed cobalt ready juniper failed amber ready ember closed fable failed ember paused juniper active
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036816
qwen/qwen3.7-plus
awkweave-0036817
Print the last field of every input line.
{print $NF}
lina 25 indigo 8 111 73 alice 17 birch 108 51 96 alice 65 delta 91 95 1 chen 32 harbor 25 74 15 lina 32 fable 80 2 3 kim 59 amber 3 41 105 jules 72 indigo 116 86 92 dina 54 indigo 117 72 72 bruno 104 juniper 87 101 101
73 96 1 15 3 105 92 72 101
eli 99 grove 33 37 110 eli 50 indigo 13 12 31 eli 93 grove 113 52 89 hana 72 delta 117 10 65 jules 73 amber 16 85 98 ivan 113 amber 102 107 0 kim 83 ember 71 60 0 kim 13 birch 79 8 5
110 31 89 65 98 0 0 5
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036817-p1
Print the final field from each input line.
{print $NF}
lina 25 indigo 8 111 73 alice 17 birch 108 51 96 alice 65 delta 91 95 1 chen 32 harbor 25 74 15 lina 32 fable 80 2 3 kim 59 amber 3 41 105 jules 72 indigo 116 86 92 dina 54 indigo 117 72 72 bruno 104 juniper 87 101 101
73 96 1 15 3 105 92 72 101
eli 99 grove 33 37 110 eli 50 indigo 13 12 31 eli 93 grove 113 52 89 hana 72 delta 117 10 65 jules 73 amber 16 85 98 ivan 113 amber 102 107 0 kim 83 ember 71 60 0 kim 13 birch 79 8 5
110 31 89 65 98 0 0 5
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036817
qwen/qwen3.7-plus
awkweave-0036818
Print the complete records where column 2 is greater than 54.
$2 > 54
chen 114 closed eli 49 closed lina 19 ready eli 14 failed hana 31 ready farah 70 paused dina 93 failed kim 86 failed
chen 114 closed farah 70 paused dina 93 failed kim 86 failed
eli 120 closed farah 94 active gus 71 pending alice 51 ready hana 77 failed farah 120 failed bruno 54 pending
eli 120 closed farah 94 active gus 71 pending hana 77 failed farah 120 failed
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036818-p1
Output the entire records where the value in the second column exceeds 54.
$2 > 54
chen 114 closed eli 49 closed lina 19 ready eli 14 failed hana 31 ready farah 70 paused dina 93 failed kim 86 failed
chen 114 closed farah 70 paused dina 93 failed kim 86 failed
eli 120 closed farah 94 active gus 71 pending alice 51 ready hana 77 failed farah 120 failed bruno 54 pending
eli 120 closed farah 94 active gus 71 pending hana 77 failed farah 120 failed
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036818
qwen/qwen3.7-plus
awkweave-0036819
Show whole lines whose 3rd field is between 12 and 29, inclusive.
$3 >= 12 && $3 <= 29
eli jules 4 closed jules kim 5 closed gus dina 21 closed gus farah 30 active jules lina 11 ready hana bruno 12 pending gus hana 18 closed
gus dina 21 closed hana bruno 12 pending gus hana 18 closed
bruno kim 8 active bruno dina 21 ready lina dina 23 pending dina kim 7 closed hana dina 10 closed alice eli 17 closed gus kim 18 paused gus gus 19 active alice dina 1 failed hana dina 12 closed
bruno dina 21 ready lina dina 23 pending alice eli 17 closed gus kim 18 paused gus gus 19 active hana dina 12 closed
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036819-p1
Display complete lines where the third field falls within the inclusive range of 12 to 29.
$3 >= 12 && $3 <= 29
eli jules 4 closed jules kim 5 closed gus dina 21 closed gus farah 30 active jules lina 11 ready hana bruno 12 pending gus hana 18 closed
gus dina 21 closed hana bruno 12 pending gus hana 18 closed
bruno kim 8 active bruno dina 21 ready lina dina 23 pending dina kim 7 closed hana dina 10 closed alice eli 17 closed gus kim 18 paused gus gus 19 active alice dina 1 failed hana dina 12 closed
bruno dina 21 ready lina dina 23 pending alice eli 17 closed gus kim 18 paused gus gus 19 active hana dina 12 closed
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036819
qwen/qwen3.7-plus
awkweave-0036820
Print column 3 only for rows where column 1 is exactly closed.
$1 == "closed"{print $3}
pending 85 hana cobalt ready 1 alice harbor paused 111 alice birch paused 74 jules grove pending 100 ivan cobalt closed 66 bruno cobalt pending 111 jules birch failed 114 ivan cobalt ready 94 ivan delta pending 46 eli ember
bruno
active 29 kim indigo pending 80 jules fable ready 14 alice grove active 119 hana cobalt failed 106 jules juniper pending 68 ivan ember ready 104 chen indigo closed 75 jules birch pending 9 hana grove paused 38 dina harbor
jules
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036820-p1
Output only the third column for rows where the first column is exactly 'closed'.
$1 == "closed"{print $3}
pending 85 hana cobalt ready 1 alice harbor paused 111 alice birch paused 74 jules grove pending 100 ivan cobalt closed 66 bruno cobalt pending 111 jules birch failed 114 ivan cobalt ready 94 ivan delta pending 46 eli ember
bruno
active 29 kim indigo pending 80 jules fable ready 14 alice grove active 119 hana cobalt failed 106 jules juniper pending 68 ivan ember ready 104 chen indigo closed 75 jules birch pending 9 hana grove paused 38 dina harbor
jules
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036820
qwen/qwen3.7-plus
awkweave-0036821
Print all fields from lines where field 2 begins with INFO.
$2 ~ /^INFO/
6 DEBUG grove 119 DEBUG indigo 97 WARN birch 70 DEBUG delta 96 DEBUG amber 5 WARN juniper 112 INFO ember
112 INFO ember
102 ERROR cobalt 99 WARN birch 116 ERROR indigo 3 WARN cobalt 111 INFO birch 37 DEBUG indigo 80 ERROR delta 29 WARN delta 29 DEBUG ember 96 WARN amber
111 INFO birch
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036821-p1
Print all fields from lines where the second field starts with 'INFO'.
$2 ~ /^INFO/
6 DEBUG grove 119 DEBUG indigo 97 WARN birch 70 DEBUG delta 96 DEBUG amber 5 WARN juniper 112 INFO ember
112 INFO ember
102 ERROR cobalt 99 WARN birch 116 ERROR indigo 3 WARN cobalt 111 INFO birch 37 DEBUG indigo 80 ERROR delta 29 WARN delta 29 DEBUG ember 96 WARN amber
111 INFO birch
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036821
qwen/qwen3.7-plus
awkweave-0036822
Print every line except those containing the exact text delta.
$0 !~ /delta/
cobalt 101 active cobalt 72 active indigo 90 active delta 0 ready ember 68 pending birch 66 closed delta 999 active
cobalt 101 active cobalt 72 active indigo 90 active ember 68 pending birch 66 closed
ember 43 closed fable 61 paused delta 27 active fable 75 paused birch 19 active indigo 84 active birch 5 active delta 999 active
ember 43 closed fable 61 paused fable 75 paused birch 19 active indigo 84 active birch 5 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036822-p1
Output every line that does not contain the exact string 'delta'.
$0 !~ /delta/
cobalt 101 active cobalt 72 active indigo 90 active delta 0 ready ember 68 pending birch 66 closed delta 999 active
cobalt 101 active cobalt 72 active indigo 90 active ember 68 pending birch 66 closed
ember 43 closed fable 61 paused delta 27 active fable 75 paused birch 19 active indigo 84 active birch 5 active delta 999 active
ember 43 closed fable 61 paused fable 75 paused birch 19 active indigo 84 active birch 5 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036822
qwen/qwen3.7-plus
awkweave-0036823
Print lines 2 through 5, including both endpoints.
NR >= 2 && NR <= 5
alice indigo 94 gus juniper 48 farah cobalt 25 kim grove 88 farah indigo 17 jules amber 2 gus fable 60
gus juniper 48 farah cobalt 25 kim grove 88 farah indigo 17
alice amber 86 eli fable 72 gus indigo 64 gus fable 49 gus grove 99 hana birch 107 alice birch 3 jules juniper 75
eli fable 72 gus indigo 64 gus fable 49 gus grove 99
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036823-p1
Print lines 2 through 5, inclusive.
NR >= 2 && NR <= 5
alice indigo 94 gus juniper 48 farah cobalt 25 kim grove 88 farah indigo 17 jules amber 2 gus fable 60
gus juniper 48 farah cobalt 25 kim grove 88 farah indigo 17
alice amber 86 eli fable 72 gus indigo 64 gus fable 49 gus grove 99 hana birch 107 alice birch 3 jules juniper 75
eli fable 72 gus indigo 64 gus fable 49 gus grove 99
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036823
qwen/qwen3.7-plus
awkweave-0036824
Output only the first 4 records.
NR <= 4
jules 45 grove bruno 42 indigo alice 55 indigo ivan 118 juniper alice 34 delta chen 110 fable
jules 45 grove bruno 42 indigo alice 55 indigo ivan 118 juniper
ivan 116 amber jules 35 ember ivan 17 indigo gus 106 juniper farah 26 amber eli 21 fable gus 26 cobalt
ivan 116 amber jules 35 ember ivan 17 indigo gus 106 juniper
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036824-p1
Display only the initial four entries.
NR <= 4
jules 45 grove bruno 42 indigo alice 55 indigo ivan 118 juniper alice 34 delta chen 110 fable
jules 45 grove bruno 42 indigo alice 55 indigo ivan 118 juniper
ivan 116 amber jules 35 ember ivan 17 indigo gus 106 juniper farah 26 amber eli 21 fable gus 26 cobalt
ivan 116 amber jules 35 ember ivan 17 indigo gus 106 juniper
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036824
qwen/qwen3.7-plus
awkweave-0036825
Skip the first line and print every remaining line unchanged.
NR > 1
lina 6 fable lina 6 cobalt bruno 40 juniper chen 25 harbor farah 87 juniper ivan 106 indigo
lina 6 cobalt bruno 40 juniper chen 25 harbor farah 87 juniper ivan 106 indigo
ivan 20 delta bruno 112 grove alice 17 juniper alice 6 delta kim 12 delta hana 109 cobalt ivan 40 grove hana 33 ember alice 63 amber gus 80 delta
bruno 112 grove alice 17 juniper alice 6 delta kim 12 delta hana 109 cobalt ivan 40 grove hana 33 ember alice 63 amber gus 80 delta
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036825-p1
Omit the first line and output all subsequent lines exactly as they appear.
NR > 1
lina 6 fable lina 6 cobalt bruno 40 juniper chen 25 harbor farah 87 juniper ivan 106 indigo
lina 6 cobalt bruno 40 juniper chen 25 harbor farah 87 juniper ivan 106 indigo
ivan 20 delta bruno 112 grove alice 17 juniper alice 6 delta kim 12 delta hana 109 cobalt ivan 40 grove hana 33 ember alice 63 amber gus 80 delta
bruno 112 grove alice 17 juniper alice 6 delta kim 12 delta hana 109 cobalt ivan 40 grove hana 33 ember alice 63 amber gus 80 delta
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036825
qwen/qwen3.7-plus
awkweave-0036826
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
lina ready 109 chen active 43 jules active 18 hana paused 108 eli pending 5 jules active 23 lina failed 20 kim closed 109 kim failed 50
2
chen active 28 lina closed 93 bruno closed 66 lina active 13 eli pending 6 farah ready 28 ivan ready 2 lina paused 84 chen failed 120 kim pending 92
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036826-p1
Determine the number of records marked as failed in the second column, outputting 0 if no such records exist.
$2 == "failed"{n++}END{print n+0}
lina ready 109 chen active 43 jules active 18 hana paused 108 eli pending 5 jules active 23 lina failed 20 kim closed 109 kim failed 50
2
chen active 28 lina closed 93 bruno closed 66 lina active 13 eli pending 6 farah ready 28 ivan ready 2 lina paused 84 chen failed 120 kim pending 92
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036826
qwen/qwen3.7-plus
awkweave-0036827
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
8 grove gus 26 fable eli 2 juniper ivan 26 delta alice 14 amber kim 4 cobalt alice
80
19 grove chen 20 birch eli 16 harbor ivan 18 grove ivan 16 ember ivan 22 juniper bruno
111
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036827-p1
Compute and display the total sum of integer values found in the first column.
{s+=$1}END{print s+0}
8 grove gus 26 fable eli 2 juniper ivan 26 delta alice 14 amber kim 4 cobalt alice
80
19 grove chen 20 birch eli 16 harbor ivan 18 grove ivan 16 ember ivan 22 juniper bruno
111
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036827
qwen/qwen3.7-plus
awkweave-0036828
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
18 kim grove 23 hana indigo 16 lina fable 28 chen fable 9 jules amber 10 dina cobalt 2 farah delta 16 hana fable
15.25
5 chen harbor 23 lina harbor 20 ivan juniper 2 eli fable 2 chen ember 23 alice harbor 21 kim amber 11 chen grove
13.38
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036828-p1
Output the average of the values in column 1, formatted to precisely two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
18 kim grove 23 hana indigo 16 lina fable 28 chen fable 9 jules amber 10 dina cobalt 2 farah delta 16 hana fable
15.25
5 chen harbor 23 lina harbor 20 ivan juniper 2 eli fable 2 chen ember 23 alice harbor 21 kim amber 11 chen grove
13.38
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036828
qwen/qwen3.7-plus
awkweave-0036829
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
dina 3 amber hana 23 delta bruno 24 fable dina 14 juniper lina 19 fable farah 20 birch
3
gus 21 birch chen 17 harbor alice 8 harbor bruno 27 cobalt dina 26 grove bruno 14 amber farah 16 fable
8
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036829-p1
Identify and print the minimum numeric value located in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
dina 3 amber hana 23 delta bruno 24 fable dina 14 juniper lina 19 fable farah 20 birch
3
gus 21 birch chen 17 harbor alice 8 harbor bruno 27 cobalt dina 26 grove bruno 14 amber farah 16 fable
8
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036829
qwen/qwen3.7-plus
awkweave-0036830
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
dina amber 28 hana delta 27 hana birch 12 gus fable 12 alice harbor 23 kim fable 18 alice amber 25 lina birch 23 ivan fable 19
28
bruno harbor 13 alice birch 16 alice birch 18 farah cobalt 16 eli juniper 20 chen ember 17 ivan amber 19 chen amber 28 kim grove 21 ivan birch 6
28
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036830-p1
Identify and print the maximum numeric value located in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
dina amber 28 hana delta 27 hana birch 12 gus fable 12 alice harbor 23 kim fable 18 alice amber 25 lina birch 23 ivan fable 19
28
bruno harbor 13 alice birch 16 alice birch 18 farah cobalt 16 eli juniper 20 chen ember 17 ivan amber 19 chen amber 28 kim grove 21 ivan birch 6
28
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036830
qwen/qwen3.7-plus
awkweave-0036831
Count all input records and print the total.
END{print NR}
eli 87 hana 5 ivan 24 lina 81 farah 44 hana 14
6
gus 67 dina 36 farah 6 kim 110 eli 83 dina 22 eli 17 kim 82 chen 33
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null