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-0022771-p1
Identify and output the longest line in the input; if multiple lines share the maximum length, select the first one.
{if(length($0)>length(best))best=$0}END{print best}
jules juniper 98 failed dina ember 9 closed farah juniper 4 active alice indigo 51 ready hana indigo 78 failed ivan juniper 113 ready farah cobalt 20 pending kim birch 97 active
jules juniper 98 failed
eli harbor 67 ready hana ember 74 closed hana indigo 82 pending alice juniper 37 pending eli birch 99 closed chen grove 85 ready chen harbor 18 active alice cobalt 10 ready hana delta 119 failed chen indigo 101 failed
alice juniper 37 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022771
qwen/qwen3.7-plus
awkweave-0022772
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
dina 62 hana 46 eli 90 bruno 52 alice 17 alice 97 chen 75 kim 104
dina 62 eli 90 alice 17 chen 75
alice 11 kim 62 gus 91 bruno 66 bruno 2 eli 12 hana 111
alice 11 gus 91 bruno 2 hana 111
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022772-p1
Output every other line, beginning with the first line (i.e., lines 1, 3, 5, etc.).
NR%2==1
dina 62 hana 46 eli 90 bruno 52 alice 17 alice 97 chen 75 kim 104
dina 62 eli 90 alice 17 chen 75
alice 11 kim 62 gus 91 bruno 66 bruno 2 eli 12 hana 111
alice 11 gus 91 bruno 2 hana 111
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022772
qwen/qwen3.7-plus
awkweave-0022773
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta ember 95 beta juniper 105 delta grove 105 beta indigo 79 delta indigo 32 alpha birch 26 delta cobalt 2 delta harbor 109 beta birch 97 gamma harbor 66
7
beta juniper 99 alpha ember 15 alpha indigo 17 gamma juniper 34 alpha delta 65 gamma delta 15 delta juniper 29
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022773-p1
Calculate the number of unique values in the second column and print only that total count.
{if(!seen[$2]++)n++}END{print n+0}
beta ember 95 beta juniper 105 delta grove 105 beta indigo 79 delta indigo 32 alpha birch 26 delta cobalt 2 delta harbor 109 beta birch 97 gamma harbor 66
7
beta juniper 99 alpha ember 15 alpha indigo 17 gamma juniper 34 alpha delta 65 gamma delta 15 delta juniper 29
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022773
qwen/qwen3.7-plus
awkweave-0022774
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 20 0 ivan 11 2 ivan 3 12 ivan 21 2 ivan 20 12 farah 24 22 dina 14 15 ivan 1 26 hana 10 26
ivan 5.50 ivan 0.25 ivan 10.50 ivan 1.67 farah 1.09 dina 0.93 ivan 0.04 hana 0.38
bruno 28 0 lina 15 18 jules 22 10 gus 27 1 dina 1 27 alice 6 25
lina 0.83 jules 2.20 gus 27.00 dina 0.04 alice 0.24
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022774-p1
For each row, output the first column and the result of dividing the second column by the third (formatted to two decimal places), excluding rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 20 0 ivan 11 2 ivan 3 12 ivan 21 2 ivan 20 12 farah 24 22 dina 14 15 ivan 1 26 hana 10 26
ivan 5.50 ivan 0.25 ivan 10.50 ivan 1.67 farah 1.09 dina 0.93 ivan 0.04 hana 0.38
bruno 28 0 lina 15 18 jules 22 10 gus 27 1 dina 1 27 alice 6 25
lina 0.83 jules 2.20 gus 27.00 dina 0.04 alice 0.24
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022774
qwen/qwen3.7-plus
awkweave-0022775
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]}
dina amber 19 kim juniper 7 gus fable 22 farah delta 17 jules delta 20 eli ember 12 farah juniper 30
farah juniper 30 gus fable 22 jules delta 20
dina birch 9 jules amber 19 lina amber 6 ivan delta 3 ivan ember 29 jules juniper 30 farah cobalt 29 kim amber 24 ivan ember 15 gus fable 13
jules juniper 30 ivan ember 29 farah cobalt 29
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022775-p1
Output the top three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
dina amber 19 kim juniper 7 gus fable 22 farah delta 17 jules delta 20 eli ember 12 farah juniper 30
farah juniper 30 gus fable 22 jules delta 20
dina birch 9 jules amber 19 lina amber 6 ivan delta 3 ivan ember 29 jules juniper 30 farah cobalt 29 kim amber 24 ivan ember 15 gus fable 13
jules juniper 30 ivan ember 29 farah cobalt 29
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022775
qwen/qwen3.7-plus
awkweave-0022776
Print column 4 followed by column 2 for every record.
{print $4, $2}
jules juniper 3 cobalt gus eli indigo 108 grove dina eli birch 120 amber kim chen delta 109 ember farah alice grove 23 ember eli hana ember 26 grove bruno jules harbor 102 harbor jules
cobalt juniper grove indigo amber birch ember delta ember grove grove ember harbor harbor
kim grove 51 grove farah hana ember 70 indigo ivan bruno amber 4 cobalt alice farah harbor 4 birch chen alice harbor 48 fable lina dina cobalt 49 delta dina
grove grove indigo ember cobalt amber birch harbor fable harbor delta cobalt
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022776-p1
For every record, print the fourth column followed by the second column.
{print $4, $2}
jules juniper 3 cobalt gus eli indigo 108 grove dina eli birch 120 amber kim chen delta 109 ember farah alice grove 23 ember eli hana ember 26 grove bruno jules harbor 102 harbor jules
cobalt juniper grove indigo amber birch ember delta ember grove grove ember harbor harbor
kim grove 51 grove farah hana ember 70 indigo ivan bruno amber 4 cobalt alice farah harbor 4 birch chen alice harbor 48 fable lina dina cobalt 49 delta dina
grove grove indigo ember cobalt amber birch harbor fable harbor delta cobalt
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022776
qwen/qwen3.7-plus
awkweave-0022777
Print the last field of every input line.
{print $NF}
97 dina closed closed closed 118 farah failed pending ready 40 hana failed pending closed 29 kim pending closed failed 78 hana failed closed paused 16 bruno pending pending active 29 hana active pending closed
closed ready closed failed paused active closed
70 gus ready paused failed 4 alice pending active ready 118 ivan ready paused active 98 eli paused failed active 82 ivan closed ready closed 34 dina active pending active 104 chen ready active ready 59 dina ready ready closed 102 hana failed ready active
failed ready active active closed active ready closed active
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022777-p1
Extract and print the final field from each line of input.
{print $NF}
97 dina closed closed closed 118 farah failed pending ready 40 hana failed pending closed 29 kim pending closed failed 78 hana failed closed paused 16 bruno pending pending active 29 hana active pending closed
closed ready closed failed paused active closed
70 gus ready paused failed 4 alice pending active ready 118 ivan ready paused active 98 eli paused failed active 82 ivan closed ready closed 34 dina active pending active 104 chen ready active ready 59 dina ready ready closed 102 hana failed ready active
failed ready active active closed active ready closed active
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022777
qwen/qwen3.7-plus
awkweave-0022778
Print the complete records where column 3 is at least 23.
$3 >= 23
fable indigo 94 grove grove harbor 111 amber birch birch 80 harbor grove cobalt 58 birch grove delta 111 amber indigo grove 103 harbor juniper harbor 93 amber
fable indigo 94 grove grove harbor 111 amber birch birch 80 harbor grove cobalt 58 birch grove delta 111 amber indigo grove 103 harbor juniper harbor 93 amber
juniper indigo 54 grove harbor grove 5 grove harbor birch 99 harbor amber indigo 36 cobalt juniper harbor 106 grove birch delta 55 cobalt amber grove 67 indigo
juniper indigo 54 grove harbor birch 99 harbor amber indigo 36 cobalt juniper harbor 106 grove birch delta 55 cobalt amber grove 67 indigo
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022778-p1
Output full records where the value in the third column is greater than or equal to 23.
$3 >= 23
fable indigo 94 grove grove harbor 111 amber birch birch 80 harbor grove cobalt 58 birch grove delta 111 amber indigo grove 103 harbor juniper harbor 93 amber
fable indigo 94 grove grove harbor 111 amber birch birch 80 harbor grove cobalt 58 birch grove delta 111 amber indigo grove 103 harbor juniper harbor 93 amber
juniper indigo 54 grove harbor grove 5 grove harbor birch 99 harbor amber indigo 36 cobalt juniper harbor 106 grove birch delta 55 cobalt amber grove 67 indigo
juniper indigo 54 grove harbor birch 99 harbor amber indigo 36 cobalt juniper harbor 106 grove birch delta 55 cobalt amber grove 67 indigo
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022778
qwen/qwen3.7-plus
awkweave-0022779
Show whole lines whose 2nd field is between 10 and 24, inclusive.
$2 >= 10 && $2 <= 24
birch 19 fable amber ember 7 indigo amber ember 6 harbor grove harbor 5 cobalt juniper cobalt 15 amber grove delta 23 amber grove ember 16 indigo harbor
birch 19 fable amber cobalt 15 amber grove delta 23 amber grove ember 16 indigo harbor
birch 2 cobalt grove delta 26 birch juniper cobalt 23 ember indigo fable 10 amber juniper ember 19 birch ember amber 4 grove grove juniper 30 grove delta
cobalt 23 ember indigo fable 10 amber juniper ember 19 birch ember
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022779-p1
Display entire lines where the second field falls within the inclusive range of 10 to 24.
$2 >= 10 && $2 <= 24
birch 19 fable amber ember 7 indigo amber ember 6 harbor grove harbor 5 cobalt juniper cobalt 15 amber grove delta 23 amber grove ember 16 indigo harbor
birch 19 fable amber cobalt 15 amber grove delta 23 amber grove ember 16 indigo harbor
birch 2 cobalt grove delta 26 birch juniper cobalt 23 ember indigo fable 10 amber juniper ember 19 birch ember amber 4 grove grove juniper 30 grove delta
cobalt 23 ember indigo fable 10 amber juniper ember 19 birch ember
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022779
qwen/qwen3.7-plus
awkweave-0022780
Print column 2 only for rows where column 4 is exactly ready.
$4 == "ready"{print $2}
31 dina harbor failed 90 eli grove ready 42 hana ember paused 65 chen ember closed 114 lina harbor pending 16 farah indigo ready 72 alice juniper active 8 ivan indigo failed 58 alice juniper ready 14 eli fable pending
eli farah alice
46 chen cobalt closed 112 eli harbor paused 64 dina harbor closed 105 eli indigo pending 14 dina fable closed 85 chen birch ready
chen
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022780-p1
Print only the second column for rows where the fourth column matches the string 'ready' exactly.
$4 == "ready"{print $2}
31 dina harbor failed 90 eli grove ready 42 hana ember paused 65 chen ember closed 114 lina harbor pending 16 farah indigo ready 72 alice juniper active 8 ivan indigo failed 58 alice juniper ready 14 eli fable pending
eli farah alice
46 chen cobalt closed 112 eli harbor paused 64 dina harbor closed 105 eli indigo pending 14 dina fable closed 85 chen birch ready
chen
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022780
qwen/qwen3.7-plus
awkweave-0022781
Print all fields from lines where field 2 begins with WARN.
$2 ~ /^WARN/
35 INFO fable 81 ERROR amber 106 DEBUG grove 68 INFO ember 118 DEBUG birch 33 ERROR ember 110 WARN harbor 66 INFO delta 41 ERROR indigo
110 WARN harbor
55 ERROR indigo 87 DEBUG cobalt 117 DEBUG harbor 22 DEBUG cobalt 57 DEBUG indigo 88 INFO amber 1 WARN indigo 99 DEBUG delta
1 WARN indigo
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022781-p1
Output all fields from lines where the second field starts with the prefix 'WARN'.
$2 ~ /^WARN/
35 INFO fable 81 ERROR amber 106 DEBUG grove 68 INFO ember 118 DEBUG birch 33 ERROR ember 110 WARN harbor 66 INFO delta 41 ERROR indigo
110 WARN harbor
55 ERROR indigo 87 DEBUG cobalt 117 DEBUG harbor 22 DEBUG cobalt 57 DEBUG indigo 88 INFO amber 1 WARN indigo 99 DEBUG delta
1 WARN indigo
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022781
qwen/qwen3.7-plus
awkweave-0022782
Print every line except those containing the exact text ember.
$0 !~ /ember/
amber 60 active indigo 70 failed fable 30 ready ember 29 closed cobalt 32 active ember 15 pending juniper 61 paused amber 87 ready ember 999 active
amber 60 active indigo 70 failed fable 30 ready cobalt 32 active juniper 61 paused amber 87 ready
grove 106 ready birch 13 paused indigo 23 ready indigo 63 active harbor 18 ready harbor 93 pending grove 86 active ember 999 active
grove 106 ready birch 13 paused indigo 23 ready indigo 63 active harbor 18 ready harbor 93 pending grove 86 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022782-p1
Print every line that does not contain the exact substring 'ember'.
$0 !~ /ember/
amber 60 active indigo 70 failed fable 30 ready ember 29 closed cobalt 32 active ember 15 pending juniper 61 paused amber 87 ready ember 999 active
amber 60 active indigo 70 failed fable 30 ready cobalt 32 active juniper 61 paused amber 87 ready
grove 106 ready birch 13 paused indigo 23 ready indigo 63 active harbor 18 ready harbor 93 pending grove 86 active ember 999 active
grove 106 ready birch 13 paused indigo 23 ready indigo 63 active harbor 18 ready harbor 93 pending grove 86 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022782
qwen/qwen3.7-plus
awkweave-0022783
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
eli ember 104 dina ember 21 hana juniper 106 alice cobalt 75 chen fable 20 gus ember 96 ivan fable 15 jules delta 2 lina harbor 87 kim juniper 15
dina ember 21 hana juniper 106
eli indigo 19 bruno ember 100 gus juniper 79 lina fable 61 gus fable 29 lina delta 28 chen amber 58 kim harbor 93 ivan juniper 31 hana amber 29
bruno ember 100 gus juniper 79
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022783-p1
Output lines 2 through 3, inclusive of both start and end lines.
NR >= 2 && NR <= 3
eli ember 104 dina ember 21 hana juniper 106 alice cobalt 75 chen fable 20 gus ember 96 ivan fable 15 jules delta 2 lina harbor 87 kim juniper 15
dina ember 21 hana juniper 106
eli indigo 19 bruno ember 100 gus juniper 79 lina fable 61 gus fable 29 lina delta 28 chen amber 58 kim harbor 93 ivan juniper 31 hana amber 29
bruno ember 100 gus juniper 79
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022783
qwen/qwen3.7-plus
awkweave-0022784
Output only the first 3 records.
NR <= 3
bruno 28 ember alice 64 delta ivan 118 juniper bruno 48 juniper bruno 80 amber lina 97 delta jules 83 juniper kim 116 ember
bruno 28 ember alice 64 delta ivan 118 juniper
lina 111 amber ivan 119 amber farah 8 fable lina 27 cobalt alice 57 indigo gus 108 juniper gus 6 amber gus 103 birch gus 29 juniper
lina 111 amber ivan 119 amber farah 8 fable
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022784-p1
Display only the first three records from the input.
NR <= 3
bruno 28 ember alice 64 delta ivan 118 juniper bruno 48 juniper bruno 80 amber lina 97 delta jules 83 juniper kim 116 ember
bruno 28 ember alice 64 delta ivan 118 juniper
lina 111 amber ivan 119 amber farah 8 fable lina 27 cobalt alice 57 indigo gus 108 juniper gus 6 amber gus 103 birch gus 29 juniper
lina 111 amber ivan 119 amber farah 8 fable
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022784
qwen/qwen3.7-plus
awkweave-0022785
Skip the first line and print every remaining line unchanged.
NR > 1
hana 100 juniper hana 3 birch hana 41 indigo alice 81 cobalt hana 96 birch hana 107 ember
hana 3 birch hana 41 indigo alice 81 cobalt hana 96 birch hana 107 ember
jules 49 amber chen 19 delta dina 35 delta chen 37 fable ivan 19 delta gus 51 birch dina 36 harbor gus 34 birch farah 0 harbor
chen 19 delta dina 35 delta chen 37 fable ivan 19 delta gus 51 birch dina 36 harbor gus 34 birch farah 0 harbor
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022785-p1
Ignore the first line and print all subsequent lines without modification.
NR > 1
hana 100 juniper hana 3 birch hana 41 indigo alice 81 cobalt hana 96 birch hana 107 ember
hana 3 birch hana 41 indigo alice 81 cobalt hana 96 birch hana 107 ember
jules 49 amber chen 19 delta dina 35 delta chen 37 fable ivan 19 delta gus 51 birch dina 36 harbor gus 34 birch farah 0 harbor
chen 19 delta dina 35 delta chen 37 fable ivan 19 delta gus 51 birch dina 36 harbor gus 34 birch farah 0 harbor
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022785
qwen/qwen3.7-plus
awkweave-0022786
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
hana failed 105 farah ready 29 lina failed 38 ivan failed 61 ivan pending 105 farah failed 54
0
alice ready 78 gus pending 95 farah pending 17 bruno failed 83 dina paused 17 farah pending 8
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022786-p1
Count the number of records where the second column is 'closed', printing 0 if no such records exist.
$2 == "closed"{n++}END{print n+0}
hana failed 105 farah ready 29 lina failed 38 ivan failed 61 ivan pending 105 farah failed 54
0
alice ready 78 gus pending 95 farah pending 17 bruno failed 83 dina paused 17 farah pending 8
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022786
qwen/qwen3.7-plus
awkweave-0022787
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
13 indigo gus 30 cobalt hana 14 indigo bruno 17 ember gus 26 cobalt ivan 27 harbor farah 15 grove ivan 6 grove eli 13 amber farah 7 ember ivan
168
26 grove jules 4 indigo chen 6 harbor alice 9 birch hana 23 ember eli 27 indigo farah 29 ember chen 17 indigo hana 14 delta hana 23 birch dina
178
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022787-p1
Compute and output the total sum of integer values found in the first column.
{s+=$1}END{print s+0}
13 indigo gus 30 cobalt hana 14 indigo bruno 17 ember gus 26 cobalt ivan 27 harbor farah 15 grove ivan 6 grove eli 13 amber farah 7 ember ivan
168
26 grove jules 4 indigo chen 6 harbor alice 9 birch hana 23 ember eli 27 indigo farah 29 ember chen 17 indigo hana 14 delta hana 23 birch dina
178
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022787
qwen/qwen3.7-plus
awkweave-0022788
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
bruno birch 26 ivan harbor 8 farah fable 6 bruno fable 4 lina fable 14 dina amber 21 lina amber 19
14.00
alice delta 24 gus delta 4 jules delta 30 hana delta 13 alice amber 15 jules harbor 5
15.17
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022788-p1
Calculate the average of the values in the third column and print the result rounded to two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
bruno birch 26 ivan harbor 8 farah fable 6 bruno fable 4 lina fable 14 dina amber 21 lina amber 19
14.00
alice delta 24 gus delta 4 jules delta 30 hana delta 13 alice amber 15 jules harbor 5
15.17
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022788
qwen/qwen3.7-plus
awkweave-0022789
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
gus 4 ember ivan 10 amber dina 24 harbor alice 14 ember lina 14 ember eli 6 birch chen 27 harbor alice 6 harbor ivan 3 fable
3
jules 25 harbor hana 17 delta alice 20 harbor alice 22 birch farah 6 ember dina 18 cobalt ivan 23 fable
6
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022789-p1
Identify and print the minimum numeric value present in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
gus 4 ember ivan 10 amber dina 24 harbor alice 14 ember lina 14 ember eli 6 birch chen 27 harbor alice 6 harbor ivan 3 fable
3
jules 25 harbor hana 17 delta alice 20 harbor alice 22 birch farah 6 ember dina 18 cobalt ivan 23 fable
6
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022789
qwen/qwen3.7-plus
awkweave-0022800
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)}
gus delta 86 paused gus harbor 7 failed alice cobalt 61 failed hana indigo 31 failed alice amber 109 failed dina grove 111 ready lina indigo 107 paused alice grove 31 failed hana ember 81 closed jules birch 46 pending
paused 86 delta gus failed 7 harbor gus failed 61 cobalt alice failed 31 indigo hana failed 109 amber alice ready 111 grove dina paused 107 indigo lina failed 31 grove alice closed 81 ember hana pending 46 birch jules
alice delta 119 active jules juniper 114 closed kim birch 9 active alice delta 34 ready alice fable 7 ready chen birch 94 failed ivan amber 61 paused jules fable 1 pending alice ember 33 closed
active 119 delta alice closed 114 juniper jules active 9 birch kim ready 34 delta alice ready 7 fable alice failed 94 birch chen paused 61 amber ivan pending 1 fable jules closed 33 ember alice
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022800-p1
Reverse the sequence of fields on each line and output all of them.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
gus delta 86 paused gus harbor 7 failed alice cobalt 61 failed hana indigo 31 failed alice amber 109 failed dina grove 111 ready lina indigo 107 paused alice grove 31 failed hana ember 81 closed jules birch 46 pending
paused 86 delta gus failed 7 harbor gus failed 61 cobalt alice failed 31 indigo hana failed 109 amber alice ready 111 grove dina paused 107 indigo lina failed 31 grove alice closed 81 ember hana pending 46 birch jules
alice delta 119 active jules juniper 114 closed kim birch 9 active alice delta 34 ready alice fable 7 ready chen birch 94 failed ivan amber 61 paused jules fable 1 pending alice ember 33 closed
active 119 delta alice closed 114 juniper jules active 9 birch kim ready 34 delta alice ready 7 fable alice failed 94 birch chen paused 61 amber ivan pending 1 fable jules closed 33 ember alice
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022800
qwen/qwen3.7-plus
awkweave-0022801
Print the number of whitespace-separated fields on each line.
{print NF}
eli indigo 58 failed gus indigo 48 ready farah birch 118 active chen juniper 75 failed hana cobalt 42 closed hana ember 19 pending kim cobalt 23 pending dina amber 49 pending chen grove 90 paused bruno harbor 101 active
4 4 4 4 4 4 4 4 4 4
bruno amber 104 ready ivan ember 113 ready alice juniper 61 paused farah harbor 111 closed alice birch 71 closed lina delta 119 paused farah delta 18 failed lina juniper 79 ready dina ember 78 failed eli delta 111 failed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022801-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
eli indigo 58 failed gus indigo 48 ready farah birch 118 active chen juniper 75 failed hana cobalt 42 closed hana ember 19 pending kim cobalt 23 pending dina amber 49 pending chen grove 90 paused bruno harbor 101 active
4 4 4 4 4 4 4 4 4 4
bruno amber 104 ready ivan ember 113 ready alice juniper 61 paused farah harbor 111 closed alice birch 71 closed lina delta 119 paused farah delta 18 failed lina juniper 79 ready dina ember 78 failed eli delta 111 failed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022801
qwen/qwen3.7-plus
awkweave-0022802
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]]}
alice alpha 6 ivan delta 109 dina gamma 30 eli alpha 22 ivan beta 20 farah delta 1 ivan delta 35 dina gamma 94
alpha 2 delta 3 gamma 2 beta 1
eli alpha 22 kim delta 26 kim alpha 83 alice beta 106 chen alpha 75 farah beta 106 bruno delta 7 gus gamma 75 kim gamma 81
alpha 3 delta 2 beta 2 gamma 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022802-p1
Tally records by the value in column 2, then print each value alongside its count in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
alice alpha 6 ivan delta 109 dina gamma 30 eli alpha 22 ivan beta 20 farah delta 1 ivan delta 35 dina gamma 94
alpha 2 delta 3 gamma 2 beta 1
eli alpha 22 kim delta 26 kim alpha 83 alice beta 106 chen alpha 75 farah beta 106 bruno delta 7 gus gamma 75 kim gamma 81
alpha 3 delta 2 beta 2 gamma 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022802
qwen/qwen3.7-plus
awkweave-0022803
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]]}
hana delta 8 lina alpha 13 ivan gamma 10 lina beta 29 dina beta 25 kim delta 21 bruno beta 23 dina gamma 8
delta 29 alpha 13 gamma 18 beta 77
chen beta 4 kim gamma 26 hana beta 1 alice delta 12 gus beta 21 lina delta 23 gus alpha 27 hana delta 10 bruno delta 30
beta 26 gamma 26 delta 75 alpha 27
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022803-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]]}
hana delta 8 lina alpha 13 ivan gamma 10 lina beta 29 dina beta 25 kim delta 21 bruno beta 23 dina gamma 8
delta 29 alpha 13 gamma 18 beta 77
chen beta 4 kim gamma 26 hana beta 1 alice delta 12 gus beta 21 lina delta 23 gus alpha 27 hana delta 10 bruno delta 30
beta 26 gamma 26 delta 75 alpha 27
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0022803
qwen/qwen3.7-plus
awkweave-0022804
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 juniper 109 delta amber 10 beta ember 117 delta delta 80 gamma amber 113 gamma amber 47 alpha harbor 10 gamma birch 88
gamma 4 delta 2
delta harbor 14 beta birch 88 delta ember 101 beta indigo 88 delta delta 109 delta grove 57 delta harbor 68
delta 5 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022804-p1
List each duplicate value from column 1 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 juniper 109 delta amber 10 beta ember 117 delta delta 80 gamma amber 113 gamma amber 47 alpha harbor 10 gamma birch 88
gamma 4 delta 2
delta harbor 14 beta birch 88 delta ember 101 beta indigo 88 delta delta 109 delta grove 57 delta harbor 68
delta 5 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022804
qwen/qwen3.7-plus
awkweave-0022805
The first row is a header. Print the region column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
score note record_id region r001 gus 24 ready r002 chen 16 closed r003 lina 15 closed r004 dina 18 failed r005 eli 4 active r006 gus 8 paused r007 farah 9 closed r008 bruno 3 failed
ready closed closed failed active paused closed failed
score note record_id region r001 hana 15 failed r002 lina 9 active r003 chen 28 active r004 gus 3 failed r005 kim 14 failed r006 jules 29 pending r007 gus 7 paused
failed active active failed failed pending paused
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022805-p1
Treating the first row as a header, output the region column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
score note record_id region r001 gus 24 ready r002 chen 16 closed r003 lina 15 closed r004 dina 18 failed r005 eli 4 active r006 gus 8 paused r007 farah 9 closed r008 bruno 3 failed
ready closed closed failed active paused closed failed
score note record_id region r001 hana 15 failed r002 lina 9 active r003 chen 28 active r004 gus 3 failed r005 kim 14 failed r006 jules 29 pending r007 gus 7 paused
failed active active failed failed pending paused
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022805
qwen/qwen3.7-plus
awkweave-0022806
The first row is a header. Print display_name for data rows whose score is greater than 15.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>15{print $h["display_name"]}
record_id display_name score state r001 farah 2 closed r002 alice 30 active r003 alice 16 ready r004 lina 11 pending r005 jules 27 failed r006 lina 23 active r007 chen 17 ready r008 chen 16 closed r009 eli 7 failed r010 kim 28 active
alice alice jules lina chen chen kim
record_id display_name score state r001 jules 2 pending r002 bruno 26 active r003 jules 24 active r004 hana 5 active r005 jules 18 pending r006 bruno 2 paused r007 kim 20 closed r008 gus 23 pending r009 bruno 11 active r010 kim 1 active
bruno jules jules kim gus
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022806-p1
With the first row as a header, print the display_name for data rows where the score is greater than 15.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>15{print $h["display_name"]}
record_id display_name score state r001 farah 2 closed r002 alice 30 active r003 alice 16 ready r004 lina 11 pending r005 jules 27 failed r006 lina 23 active r007 chen 17 ready r008 chen 16 closed r009 eli 7 failed r010 kim 28 active
alice alice jules lina chen chen kim
record_id display_name score state r001 jules 2 pending r002 bruno 26 active r003 jules 24 active r004 hana 5 active r005 jules 18 pending r006 bruno 2 paused r007 kim 20 closed r008 gus 23 pending r009 bruno 11 active r010 kim 1 active
bruno jules jules kim gus
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022806
qwen/qwen3.7-plus
awkweave-0022807
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
jules 18 paused eli 7 paused kim 11 active jules 28 closed lina 30 active hana 2 paused lina 26 active hana 20 closed bruno 8 closed gus 10 pending
paused paused active closed active paused active closed closed pending
gus 7 active bruno 13 closed gus 29 ready hana 4 failed hana 12 failed ivan 6 failed lina 11 ready alice 21 ready
active closed ready failed failed failed ready ready
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022807-p1
Given tab-separated input, extract and print the third column from every record.
BEGIN{FS=OFS="\t"}{print $3}
jules 18 paused eli 7 paused kim 11 active jules 28 closed lina 30 active hana 2 paused lina 26 active hana 20 closed bruno 8 closed gus 10 pending
paused paused active closed active paused active closed closed pending
gus 7 active bruno 13 closed gus 29 ready hana 4 failed hana 12 failed ivan 6 failed lina 11 ready alice 21 ready
active closed ready failed failed failed ready ready
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022807
qwen/qwen3.7-plus
awkweave-0022808
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 14.
BEGIN{FS=OFS=","}$2>14{print $1}
bruno,23,failed gus,5,active gus,13,active dina,10,failed bruno,3,failed lina,15,ready
bruno lina
dina,15,active eli,20,pending hana,16,failed eli,20,ready lina,29,ready kim,22,active jules,29,ready kim,6,pending
dina eli hana eli lina kim jules
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022808-p1
For simple comma-separated data without quoted commas, print the first column if the second column is greater than 14.
BEGIN{FS=OFS=","}$2>14{print $1}
bruno,23,failed gus,5,active gus,13,active dina,10,failed bruno,3,failed lina,15,ready
bruno lina
dina,15,active eli,20,pending hana,16,failed eli,20,ready lina,29,ready kim,22,active jules,29,ready kim,6,pending
dina eli hana eli lina kim jules
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022808
qwen/qwen3.7-plus
awkweave-0022809
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
bruno birch 7 eli grove 0 kim birch 48 dina grove 101 kim harbor 30 hana cobalt 41 alice harbor 7
bruno birch 7 eli grove 0 kim birch 48 dina grove 101 kim harbor 30 hana cobalt 41 alice harbor 7
dina grove 108 eli juniper 92 hana fable 41 lina harbor 119 alice ember 55 gus cobalt 5
dina grove 108 eli juniper 92 hana fable 41 lina harbor 119 alice ember 55 gus cobalt 5
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022809-p1
Remove leading and trailing whitespace, and replace internal whitespace sequences with a single space.
{$1=$1;print}
bruno birch 7 eli grove 0 kim birch 48 dina grove 101 kim harbor 30 hana cobalt 41 alice harbor 7
bruno birch 7 eli grove 0 kim birch 48 dina grove 101 kim harbor 30 hana cobalt 41 alice harbor 7
dina grove 108 eli juniper 92 hana fable 41 lina harbor 119 alice ember 55 gus cobalt 5
dina grove 108 eli juniper 92 hana fable 41 lina harbor 119 alice ember 55 gus cobalt 5
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022809
qwen/qwen3.7-plus
awkweave-0022810
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
alice birch 22 closed gus birch 27 pending jules amber 93 pending dina amber 9 failed jules cobalt 20 failed kim harbor 5 ready bruno fable 45 ready dina grove 59 pending
jules amber 93 pending
chen grove 26 pending jules grove 91 failed chen delta 9 ready gus delta 50 pending jules amber 47 pending farah juniper 116 active
farah juniper 116 active
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022810-p1
Identify and print the longest line from the input; in case of a tie, select the earliest one.
{if(length($0)>length(best))best=$0}END{print best}
alice birch 22 closed gus birch 27 pending jules amber 93 pending dina amber 9 failed jules cobalt 20 failed kim harbor 5 ready bruno fable 45 ready dina grove 59 pending
jules amber 93 pending
chen grove 26 pending jules grove 91 failed chen delta 9 ready gus delta 50 pending jules amber 47 pending farah juniper 116 active
farah juniper 116 active
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022810
qwen/qwen3.7-plus
awkweave-0022811
Print every 4th line starting at line 3 (then line 7, and so on).
NR%4==3
kim 21 chen 31 jules 103 lina 47 jules 30 eli 111 bruno 2 jules 16
jules 103 bruno 2
kim 10 kim 70 chen 87 lina 113 farah 23 eli 29 gus 54
chen 87 gus 54
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022811-p1
Print every 4th line beginning with line 3 (i.e., lines 3, 7, etc.).
NR%4==3
kim 21 chen 31 jules 103 lina 47 jules 30 eli 111 bruno 2 jules 16
jules 103 bruno 2
kim 10 kim 70 chen 87 lina 113 farah 23 eli 29 gus 54
chen 87 gus 54
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022811
qwen/qwen3.7-plus
awkweave-0022812
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
gamma fable 41 delta indigo 114 beta fable 9 alpha juniper 31 delta ember 114 alpha juniper 35 alpha cobalt 54
5
alpha indigo 5 alpha amber 26 alpha amber 35 gamma harbor 115 beta delta 19 gamma indigo 45
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022812-p1
Calculate the number of unique entries in the second column and output just that total.
{if(!seen[$2]++)n++}END{print n+0}
gamma fable 41 delta indigo 114 beta fable 9 alpha juniper 31 delta ember 114 alpha juniper 35 alpha cobalt 54
5
alpha indigo 5 alpha amber 26 alpha amber 35 gamma harbor 115 beta delta 19 gamma indigo 45
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022812
qwen/qwen3.7-plus
awkweave-0022813
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}
jules 14 0 kim 30 7 ivan 27 4 alice 1 18 bruno 8 29 alice 2 14 hana 9 18
kim 4.29 ivan 6.75 alice 0.06 bruno 0.28 alice 0.14 hana 0.50
dina 3 0 bruno 14 1 alice 17 3 gus 19 5 ivan 23 4 kim 22 12
bruno 14.00 alice 5.67 gus 3.80 ivan 5.75 kim 1.83
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022813-p1
For every row where the third column is not zero, display the first column followed by 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}
jules 14 0 kim 30 7 ivan 27 4 alice 1 18 bruno 8 29 alice 2 14 hana 9 18
kim 4.29 ivan 6.75 alice 0.06 bruno 0.28 alice 0.14 hana 0.50
dina 3 0 bruno 14 1 alice 17 3 gus 19 5 ivan 23 4 kim 22 12
bruno 14.00 alice 5.67 gus 3.80 ivan 5.75 kim 1.83
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022813
qwen/qwen3.7-plus
awkweave-0022814
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]}
chen grove 9 eli grove 10 kim cobalt 29 ivan delta 6 eli amber 22 lina birch 30 alice birch 13 lina delta 22
lina birch 30 kim cobalt 29 eli amber 22
eli grove 2 farah indigo 8 dina fable 27 hana cobalt 16 kim cobalt 4 ivan juniper 1 alice delta 1 eli juniper 14 lina delta 6 farah indigo 26
dina fable 27 farah indigo 26 hana cobalt 16
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022814-p1
Output the top three rows based on the highest numeric values in the third column, sorted in descending order, while maintaining the original input sequence for any tied values.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
chen grove 9 eli grove 10 kim cobalt 29 ivan delta 6 eli amber 22 lina birch 30 alice birch 13 lina delta 22
lina birch 30 kim cobalt 29 eli amber 22
eli grove 2 farah indigo 8 dina fable 27 hana cobalt 16 kim cobalt 4 ivan juniper 1 alice delta 1 eli juniper 14 lina delta 6 farah indigo 26
dina fable 27 farah indigo 26 hana cobalt 16
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022814
qwen/qwen3.7-plus
awkweave-0022815
Select the 4th and 2nd fields in that order.
{print $4, $2}
31 92 failed cobalt pending 111 10 failed indigo closed 100 100 pending fable closed 13 32 failed fable closed 14 42 active cobalt paused 25 6 closed fable pending 112 114 ready amber active 24 92 paused harbor paused 103 65 active juniper pending 80 81 active birch active
cobalt 92 indigo 10 fable 100 fable 32 cobalt 42 fable 6 amber 114 harbor 92 juniper 65 birch 81
104 24 failed amber ready 79 107 closed indigo active 75 62 pending delta paused 25 4 ready amber active 43 11 active indigo paused 113 93 pending grove active 94 110 ready birch pending 88 75 closed amber pending 89 37 failed cobalt ready 38 17 active harbor pending
amber 24 indigo 107 delta 62 amber 4 indigo 11 grove 93 birch 110 amber 75 cobalt 37 harbor 17
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022815-p1
Extract and display the fourth field followed by the second field.
{print $4, $2}
31 92 failed cobalt pending 111 10 failed indigo closed 100 100 pending fable closed 13 32 failed fable closed 14 42 active cobalt paused 25 6 closed fable pending 112 114 ready amber active 24 92 paused harbor paused 103 65 active juniper pending 80 81 active birch active
cobalt 92 indigo 10 fable 100 fable 32 cobalt 42 fable 6 amber 114 harbor 92 juniper 65 birch 81
104 24 failed amber ready 79 107 closed indigo active 75 62 pending delta paused 25 4 ready amber active 43 11 active indigo paused 113 93 pending grove active 94 110 ready birch pending 88 75 closed amber pending 89 37 failed cobalt ready 38 17 active harbor pending
amber 24 indigo 107 delta 62 amber 4 indigo 11 grove 93 birch 110 amber 75 cobalt 37 harbor 17
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022815
qwen/qwen3.7-plus
awkweave-0022816
Print the last field of every input line.
{print $NF}
69 gus grove ember 38 111 kim birch harbor 46 115 jules indigo juniper 108 76 alice cobalt delta 22 12 alice juniper harbor 0 28 eli harbor fable 86 20 kim amber harbor 77 70 bruno grove juniper 89
38 46 108 22 0 86 77 89
72 dina cobalt delta 9 47 dina juniper amber 28 89 bruno fable fable 111 115 eli juniper grove 14 71 eli ember indigo 53 104 jules indigo harbor 85 87 kim cobalt indigo 105 28 alice cobalt indigo 65 19 eli cobalt juniper 74 18 eli amber indigo 1
9 28 111 14 53 85 105 65 74 1
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022816-p1
Output the final field from each line of input.
{print $NF}
69 gus grove ember 38 111 kim birch harbor 46 115 jules indigo juniper 108 76 alice cobalt delta 22 12 alice juniper harbor 0 28 eli harbor fable 86 20 kim amber harbor 77 70 bruno grove juniper 89
38 46 108 22 0 86 77 89
72 dina cobalt delta 9 47 dina juniper amber 28 89 bruno fable fable 111 115 eli juniper grove 14 71 eli ember indigo 53 104 jules indigo harbor 85 87 kim cobalt indigo 105 28 alice cobalt indigo 65 19 eli cobalt juniper 74 18 eli amber indigo 1
9 28 111 14 53 85 105 65 74 1
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022816
qwen/qwen3.7-plus
awkweave-0022817
Print the complete records where column 1 is at least 44.
$1 >= 44
72 fable failed 56 delta pending 24 fable pending 104 amber ready 90 indigo paused 5 fable closed 89 cobalt failed
72 fable failed 56 delta pending 104 amber ready 90 indigo paused 89 cobalt failed
35 fable failed 79 grove closed 106 amber failed 38 fable paused 74 grove ready 19 delta ready 2 juniper closed 1 cobalt active
79 grove closed 106 amber failed 74 grove ready
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022817-p1
Display full records where the value in the first column is greater than or equal to 44.
$1 >= 44
72 fable failed 56 delta pending 24 fable pending 104 amber ready 90 indigo paused 5 fable closed 89 cobalt failed
72 fable failed 56 delta pending 104 amber ready 90 indigo paused 89 cobalt failed
35 fable failed 79 grove closed 106 amber failed 38 fable paused 74 grove ready 19 delta ready 2 juniper closed 1 cobalt active
79 grove closed 106 amber failed 74 grove ready
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022817
qwen/qwen3.7-plus
awkweave-0022818
Show whole lines whose 3rd field is between 12 and 27, inclusive.
$3 >= 12 && $3 <= 27
paused fable 20 eli closed delta 28 lina failed fable 10 farah failed cobalt 13 alice ready delta 25 alice active cobalt 22 chen pending ember 12 hana
paused fable 20 eli failed cobalt 13 alice ready delta 25 alice active cobalt 22 chen pending ember 12 hana
ready harbor 17 bruno active birch 21 eli pending harbor 18 kim active amber 27 kim ready fable 23 kim ready ember 7 kim failed fable 10 chen closed delta 23 gus failed delta 22 alice
ready harbor 17 bruno active birch 21 eli pending harbor 18 kim active amber 27 kim ready fable 23 kim closed delta 23 gus failed delta 22 alice
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022818-p1
Print entire lines where the third field falls within the range of 12 to 27, inclusive.
$3 >= 12 && $3 <= 27
paused fable 20 eli closed delta 28 lina failed fable 10 farah failed cobalt 13 alice ready delta 25 alice active cobalt 22 chen pending ember 12 hana
paused fable 20 eli failed cobalt 13 alice ready delta 25 alice active cobalt 22 chen pending ember 12 hana
ready harbor 17 bruno active birch 21 eli pending harbor 18 kim active amber 27 kim ready fable 23 kim ready ember 7 kim failed fable 10 chen closed delta 23 gus failed delta 22 alice
ready harbor 17 bruno active birch 21 eli pending harbor 18 kim active amber 27 kim ready fable 23 kim closed delta 23 gus failed delta 22 alice
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022818
qwen/qwen3.7-plus
awkweave-0022819
Print column 3 only for rows where column 1 is exactly pending.
$1 == "pending"{print $3}
active amber ivan 38 failed fable bruno 80 pending cobalt dina 17 pending fable farah 18 active ember alice 10 active ember bruno 38 paused fable kim 22
dina farah
failed fable gus 33 closed fable farah 29 paused indigo ivan 77 ready grove dina 110 pending amber chen 67 closed fable chen 18 ready fable ivan 4
chen
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022819-p1
Output only the third column for rows where the first column matches the exact string 'pending'.
$1 == "pending"{print $3}
active amber ivan 38 failed fable bruno 80 pending cobalt dina 17 pending fable farah 18 active ember alice 10 active ember bruno 38 paused fable kim 22
dina farah
failed fable gus 33 closed fable farah 29 paused indigo ivan 77 ready grove dina 110 pending amber chen 67 closed fable chen 18 ready fable ivan 4
chen
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022819
qwen/qwen3.7-plus
awkweave-0022820
Print all fields from lines where field 2 begins with WARN.
$2 ~ /^WARN/
85 ERROR fable 7 ERROR indigo 6 WARN cobalt 20 ERROR delta 52 ERROR ember 14 INFO indigo
6 WARN cobalt
118 INFO birch 66 ERROR birch 107 WARN juniper 30 ERROR delta 86 INFO juniper 87 DEBUG ember 23 DEBUG amber 105 WARN cobalt 11 INFO delta
107 WARN juniper 105 WARN cobalt
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022820-p1
Print all fields from any line where the second field starts with the prefix 'WARN'.
$2 ~ /^WARN/
85 ERROR fable 7 ERROR indigo 6 WARN cobalt 20 ERROR delta 52 ERROR ember 14 INFO indigo
6 WARN cobalt
118 INFO birch 66 ERROR birch 107 WARN juniper 30 ERROR delta 86 INFO juniper 87 DEBUG ember 23 DEBUG amber 105 WARN cobalt 11 INFO delta
107 WARN juniper 105 WARN cobalt
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022820
qwen/qwen3.7-plus
awkweave-0022821
Print every line except those containing the exact text ember.
$0 !~ /ember/
harbor 13 failed amber 10 active indigo 85 active amber 5 closed ember 104 paused fable 61 pending fable 73 paused cobalt 118 pending delta 56 active ember 999 active
harbor 13 failed amber 10 active indigo 85 active amber 5 closed fable 61 pending fable 73 paused cobalt 118 pending delta 56 active
ember 24 active birch 83 paused amber 13 paused birch 99 failed grove 12 pending ember 12 failed cobalt 101 paused harbor 95 failed ember 20 pending ember 999 active
birch 83 paused amber 13 paused birch 99 failed grove 12 pending cobalt 101 paused harbor 95 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022821-p1
Output every line except those that contain the exact substring 'ember'.
$0 !~ /ember/
harbor 13 failed amber 10 active indigo 85 active amber 5 closed ember 104 paused fable 61 pending fable 73 paused cobalt 118 pending delta 56 active ember 999 active
harbor 13 failed amber 10 active indigo 85 active amber 5 closed fable 61 pending fable 73 paused cobalt 118 pending delta 56 active
ember 24 active birch 83 paused amber 13 paused birch 99 failed grove 12 pending ember 12 failed cobalt 101 paused harbor 95 failed ember 20 pending ember 999 active
birch 83 paused amber 13 paused birch 99 failed grove 12 pending cobalt 101 paused harbor 95 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022821
qwen/qwen3.7-plus
awkweave-0022822
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
eli fable 63 alice birch 37 alice amber 114 farah juniper 25 kim cobalt 74 jules harbor 93 hana fable 0 dina cobalt 112 hana cobalt 72
alice birch 37 alice amber 114
hana cobalt 96 ivan cobalt 90 bruno cobalt 84 alice grove 116 bruno amber 60 gus juniper 4 lina juniper 29 lina delta 11
ivan cobalt 90 bruno cobalt 84
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022822-p1
Display lines 2 through 3, inclusive of both endpoints.
NR >= 2 && NR <= 3
eli fable 63 alice birch 37 alice amber 114 farah juniper 25 kim cobalt 74 jules harbor 93 hana fable 0 dina cobalt 112 hana cobalt 72
alice birch 37 alice amber 114
hana cobalt 96 ivan cobalt 90 bruno cobalt 84 alice grove 116 bruno amber 60 gus juniper 4 lina juniper 29 lina delta 11
ivan cobalt 90 bruno cobalt 84
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022822
qwen/qwen3.7-plus
awkweave-0022823
Output only the first 5 records.
NR <= 5
bruno 67 ember hana 32 indigo gus 7 fable dina 37 birch gus 94 fable chen 13 cobalt bruno 100 juniper ivan 60 delta
bruno 67 ember hana 32 indigo gus 7 fable dina 37 birch gus 94 fable
dina 31 cobalt bruno 46 cobalt chen 85 ember eli 66 indigo dina 113 grove jules 45 cobalt farah 78 ember eli 25 fable
dina 31 cobalt bruno 46 cobalt chen 85 ember eli 66 indigo dina 113 grove
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022823-p1
Restrict the output to the first 5 records only.
NR <= 5
bruno 67 ember hana 32 indigo gus 7 fable dina 37 birch gus 94 fable chen 13 cobalt bruno 100 juniper ivan 60 delta
bruno 67 ember hana 32 indigo gus 7 fable dina 37 birch gus 94 fable
dina 31 cobalt bruno 46 cobalt chen 85 ember eli 66 indigo dina 113 grove jules 45 cobalt farah 78 ember eli 25 fable
dina 31 cobalt bruno 46 cobalt chen 85 ember eli 66 indigo dina 113 grove
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022823
qwen/qwen3.7-plus
awkweave-0022824
Skip the first line and print every remaining line unchanged.
NR > 1
bruno 11 ember alice 9 delta dina 90 indigo jules 90 ember kim 106 indigo eli 11 grove lina 13 delta hana 119 cobalt bruno 99 harbor ivan 97 grove
alice 9 delta dina 90 indigo jules 90 ember kim 106 indigo eli 11 grove lina 13 delta hana 119 cobalt bruno 99 harbor ivan 97 grove
gus 67 fable bruno 52 delta alice 70 juniper alice 52 cobalt alice 117 delta dina 95 ember dina 57 juniper lina 104 grove bruno 32 delta
bruno 52 delta alice 70 juniper alice 52 cobalt alice 117 delta dina 95 ember dina 57 juniper lina 104 grove bruno 32 delta
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022824-p1
Omit the initial line and output all subsequent lines exactly as they appear.
NR > 1
bruno 11 ember alice 9 delta dina 90 indigo jules 90 ember kim 106 indigo eli 11 grove lina 13 delta hana 119 cobalt bruno 99 harbor ivan 97 grove
alice 9 delta dina 90 indigo jules 90 ember kim 106 indigo eli 11 grove lina 13 delta hana 119 cobalt bruno 99 harbor ivan 97 grove
gus 67 fable bruno 52 delta alice 70 juniper alice 52 cobalt alice 117 delta dina 95 ember dina 57 juniper lina 104 grove bruno 32 delta
bruno 52 delta alice 70 juniper alice 52 cobalt alice 117 delta dina 95 ember dina 57 juniper lina 104 grove bruno 32 delta
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022824
qwen/qwen3.7-plus
awkweave-0022825
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
eli failed 102 eli paused 57 kim pending 95 dina paused 84 lina failed 72 eli pending 47 hana failed 40 eli closed 63 hana pending 115
0
chen closed 104 farah paused 87 gus ready 9 farah ready 24 alice failed 50 jules pending 50 lina ready 111
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022825-p1
Determine the number of entries where the second column is 'active', outputting 0 if no matches are found.
$2 == "active"{n++}END{print n+0}
eli failed 102 eli paused 57 kim pending 95 dina paused 84 lina failed 72 eli pending 47 hana failed 40 eli closed 63 hana pending 115
0
chen closed 104 farah paused 87 gus ready 9 farah ready 24 alice failed 50 jules pending 50 lina ready 111
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022825
qwen/qwen3.7-plus
awkweave-0022826
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
farah 29 harbor gus 27 fable farah 13 delta ivan 3 harbor chen 14 delta chen 18 harbor dina 7 cobalt kim 15 indigo gus 6 birch
132
bruno 2 grove farah 30 grove gus 17 fable lina 30 cobalt eli 30 harbor bruno 11 cobalt farah 22 cobalt gus 16 indigo ivan 18 harbor
176
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022826-p1
Compute and display the total sum of integer values found in the second column.
{s+=$2}END{print s+0}
farah 29 harbor gus 27 fable farah 13 delta ivan 3 harbor chen 14 delta chen 18 harbor dina 7 cobalt kim 15 indigo gus 6 birch
132
bruno 2 grove farah 30 grove gus 17 fable lina 30 cobalt eli 30 harbor bruno 11 cobalt farah 22 cobalt gus 16 indigo ivan 18 harbor
176
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022826
qwen/qwen3.7-plus
awkweave-0022827
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
indigo 1 dina birch 10 kim ember 7 lina cobalt 21 farah harbor 13 dina juniper 20 jules
12.00
amber 2 kim juniper 7 bruno indigo 22 hana amber 27 bruno juniper 19 chen cobalt 22 jules harbor 6 jules ember 21 hana
15.75
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022827-p1
Output the average of the values in column 2, formatted to precisely two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
indigo 1 dina birch 10 kim ember 7 lina cobalt 21 farah harbor 13 dina juniper 20 jules
12.00
amber 2 kim juniper 7 bruno indigo 22 hana amber 27 bruno juniper 19 chen cobalt 22 jules harbor 6 jules ember 21 hana
15.75
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022827
qwen/qwen3.7-plus
awkweave-0022828
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
indigo 5 eli birch 19 jules grove 11 chen harbor 16 kim harbor 26 farah grove 22 gus amber 2 lina amber 26 eli fable 29 gus
2
amber 10 farah grove 20 dina harbor 2 eli grove 28 alice juniper 8 chen amber 10 farah birch 4 bruno indigo 19 hana cobalt 4 farah
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022828-p1
Identify and print the minimum numeric value present in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
indigo 5 eli birch 19 jules grove 11 chen harbor 16 kim harbor 26 farah grove 22 gus amber 2 lina amber 26 eli fable 29 gus
2
amber 10 farah grove 20 dina harbor 2 eli grove 28 alice juniper 8 chen amber 10 farah birch 4 bruno indigo 19 hana cobalt 4 farah
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022828
qwen/qwen3.7-plus
awkweave-0022829
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
cobalt jules 8 delta farah 3 harbor lina 26 harbor lina 1 amber gus 22 fable bruno 2 grove farah 13 indigo eli 10 ember eli 12
26
ember lina 28 fable kim 22 fable hana 26 cobalt kim 26 fable farah 4 grove eli 25 ember ivan 24
28
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022829-p1
Identify and print the maximum numeric value present in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
cobalt jules 8 delta farah 3 harbor lina 26 harbor lina 1 amber gus 22 fable bruno 2 grove farah 13 indigo eli 10 ember eli 12
26
ember lina 28 fable kim 22 fable hana 26 cobalt kim 26 fable farah 4 grove eli 25 ember ivan 24
28
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022829
qwen/qwen3.7-plus
awkweave-0022830
Count all input records and print the total.
END{print NR}
chen 38 alice 25 kim 19 farah 2 ivan 17 farah 48 lina 105
7
bruno 100 kim 72 gus 73 gus 114 lina 109 jules 32 chen 35 gus 12 alice 60
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022830-p1
Count the total number of input records and display the result.
END{print NR}
chen 38 alice 25 kim 19 farah 2 ivan 17 farah 48 lina 105
7
bruno 100 kim 72 gus 73 gus 114 lina 109 jules 32 chen 35 gus 12 alice 60
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022830
qwen/qwen3.7-plus
awkweave-0022831
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
bruno juniper 77 chen amber 42 jules grove 15 bruno juniper 77 ivan juniper 38 lina harbor 48 lina delta 85
bruno juniper 77 chen amber 42 jules grove 15 ivan juniper 38 lina harbor 48 lina delta 85
bruno fable 31 gus amber 119 lina amber 3 dina amber 68 gus amber 55 kim harbor 117 gus amber 119 lina juniper 111 farah grove 15 jules indigo 63
bruno fable 31 gus amber 119 lina amber 3 dina amber 68 gus amber 55 kim harbor 117 lina juniper 111 farah grove 15 jules indigo 63
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null