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-0005220-p1
Remove leading and trailing whitespace and replace sequences of internal whitespace with a single space.
{$1=$1;print}
dina grove 72 dina juniper 11 gus delta 43 lina indigo 118 eli harbor 19 chen harbor 38 hana fable 104 hana harbor 56 dina fable 81 dina grove 60
dina grove 72 dina juniper 11 gus delta 43 lina indigo 118 eli harbor 19 chen harbor 38 hana fable 104 hana harbor 56 dina fable 81 dina grove 60
ivan fable 47 kim juniper 81 jules juniper 60 chen delta 38 hana ember 64 eli juniper 8
ivan fable 47 kim juniper 81 jules juniper 60 chen delta 38 hana ember 64 eli juniper 8
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005220
qwen/qwen3.7-plus
awkweave-0005221
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
gus grove 0 closed dina birch 4 closed hana grove 118 closed bruno birch 38 ready eli cobalt 20 pending alice ember 68 closed ivan amber 32 closed dina amber 5 failed bruno cobalt 63 closed
bruno cobalt 63 closed
ivan amber 116 paused farah fable 46 ready hana fable 20 active kim juniper 12 pending lina fable 26 active alice harbor 18 closed alice fable 68 active farah ember 14 active
kim juniper 12 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005221-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}
gus grove 0 closed dina birch 4 closed hana grove 118 closed bruno birch 38 ready eli cobalt 20 pending alice ember 68 closed ivan amber 32 closed dina amber 5 failed bruno cobalt 63 closed
bruno cobalt 63 closed
ivan amber 116 paused farah fable 46 ready hana fable 20 active kim juniper 12 pending lina fable 26 active alice harbor 18 closed alice fable 68 active farah ember 14 active
kim juniper 12 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005221
qwen/qwen3.7-plus
awkweave-0005222
Print every 3rd line starting at line 3 (then line 6, and so on).
NR%3==0
lina 19 lina 76 bruno 3 jules 9 farah 98 eli 15 ivan 8
bruno 3 eli 15
alice 44 chen 78 ivan 36 lina 17 dina 4 alice 12 eli 21
ivan 36 alice 12
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005222-p1
Output every third line of the input, beginning with line 3 (i.e., lines 3, 6, 9, etc.).
NR%3==0
lina 19 lina 76 bruno 3 jules 9 farah 98 eli 15 ivan 8
bruno 3 eli 15
alice 44 chen 78 ivan 36 lina 17 dina 4 alice 12 eli 21
ivan 36 alice 12
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005222
qwen/qwen3.7-plus
awkweave-0005223
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
gamma amber 45 alpha juniper 61 alpha grove 20 gamma delta 106 beta grove 35 gamma ember 2 alpha delta 1 alpha birch 35 gamma amber 100
3
beta juniper 6 delta indigo 96 beta fable 46 delta grove 119 delta fable 39 beta birch 14
2
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005223-p1
Determine the number of unique values in the first column and print only that total count.
{if(!seen[$1]++)n++}END{print n+0}
gamma amber 45 alpha juniper 61 alpha grove 20 gamma delta 106 beta grove 35 gamma ember 2 alpha delta 1 alpha birch 35 gamma amber 100
3
beta juniper 6 delta indigo 96 beta fable 46 delta grove 119 delta fable 39 beta birch 14
2
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005223
qwen/qwen3.7-plus
awkweave-0005224
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}
bruno 28 0 chen 20 22 alice 21 29 kim 28 9 alice 6 30 ivan 22 13 gus 6 5 dina 29 29
chen 0.91 alice 0.72 kim 3.11 alice 0.20 ivan 1.69 gus 1.20 dina 1.00
bruno 12 0 alice 22 17 bruno 17 5 alice 14 11 kim 7 30 farah 28 7 farah 4 11 hana 20 25 dina 30 16 jules 28 29
alice 1.29 bruno 3.40 alice 1.27 kim 0.23 farah 4.00 farah 0.36 hana 0.80 dina 1.88 jules 0.97
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005224-p1
For every row, output the first and second columns along with the result of dividing the second column by the third, formatted to two decimal places, while omitting any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
bruno 28 0 chen 20 22 alice 21 29 kim 28 9 alice 6 30 ivan 22 13 gus 6 5 dina 29 29
chen 0.91 alice 0.72 kim 3.11 alice 0.20 ivan 1.69 gus 1.20 dina 1.00
bruno 12 0 alice 22 17 bruno 17 5 alice 14 11 kim 7 30 farah 28 7 farah 4 11 hana 20 25 dina 30 16 jules 28 29
alice 1.29 bruno 3.40 alice 1.27 kim 0.23 farah 4.00 farah 0.36 hana 0.80 dina 1.88 jules 0.97
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005224
qwen/qwen3.7-plus
awkweave-0005225
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]}
gus fable 2 farah juniper 15 ivan indigo 25 eli ember 9 hana indigo 24 chen ember 28 chen juniper 26
chen ember 28 chen juniper 26 ivan indigo 25
dina ember 4 jules harbor 17 alice indigo 16 dina juniper 28 hana indigo 6 eli cobalt 21 alice fable 22
dina juniper 28 alice fable 22 eli cobalt 21
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005225-p1
Display the full records corresponding to the top three highest numeric values in the third column, sorted in descending order, 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]}
gus fable 2 farah juniper 15 ivan indigo 25 eli ember 9 hana indigo 24 chen ember 28 chen juniper 26
chen ember 28 chen juniper 26 ivan indigo 25
dina ember 4 jules harbor 17 alice indigo 16 dina juniper 28 hana indigo 6 eli cobalt 21 alice fable 22
dina juniper 28 alice fable 22 eli cobalt 21
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005225
qwen/qwen3.7-plus
awkweave-0005226
Print column 4 followed by column 2 for every record.
{print $4, $2}
ready pending farah 63 ready paused ivan 99 ready failed ivan 62 failed active chen 16 ready active ivan 120 pending paused gus 106
63 pending 99 paused 62 failed 16 active 120 active 106 paused
active ready hana 107 ready paused kim 1 active ready farah 57 active ready alice 9 paused active dina 89 pending pending kim 43 failed active farah 98 active ready alice 49
107 ready 1 paused 57 ready 9 ready 89 active 43 pending 98 active 49 ready
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005226-p1
Output the fourth column followed by the second column for each record.
{print $4, $2}
ready pending farah 63 ready paused ivan 99 ready failed ivan 62 failed active chen 16 ready active ivan 120 pending paused gus 106
63 pending 99 paused 62 failed 16 active 120 active 106 paused
active ready hana 107 ready paused kim 1 active ready farah 57 active ready alice 9 paused active dina 89 pending pending kim 43 failed active farah 98 active ready alice 49
107 ready 1 paused 57 ready 9 ready 89 active 43 pending 98 active 49 ready
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005226
qwen/qwen3.7-plus
awkweave-0005227
Print the last field of every input line.
{print $NF}
36 birch harbor 35 harbor birch 50 indigo fable 38 cobalt indigo 115 cobalt juniper 103 ember birch
harbor birch fable indigo juniper birch
16 birch ember 71 birch birch 21 delta amber 106 delta indigo 50 birch cobalt 7 juniper grove 120 grove grove 24 amber grove
ember birch amber indigo cobalt grove grove grove
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005227-p1
Print the final field from every input line.
{print $NF}
36 birch harbor 35 harbor birch 50 indigo fable 38 cobalt indigo 115 cobalt juniper 103 ember birch
harbor birch fable indigo juniper birch
16 birch ember 71 birch birch 21 delta amber 106 delta indigo 50 birch cobalt 7 juniper grove 120 grove grove 24 amber grove
ember birch amber indigo cobalt grove grove grove
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005227
qwen/qwen3.7-plus
awkweave-0005228
Print the complete records where column 4 is at least 72.
$4 >= 72
closed chen juniper 74 failed closed dina harbor 63 paused active jules indigo 20 ready active kim harbor 28 failed pending lina grove 5 pending closed alice harbor 5 failed active eli delta 109 paused active farah amber 32 failed closed eli ember 36 pending
closed chen juniper 74 failed active eli delta 109 paused
active alice cobalt 21 pending active ivan juniper 80 closed active lina amber 18 active closed lina indigo 11 failed active lina delta 1 closed pending chen harbor 75 active pending kim delta 62 ready paused dina juniper 82 paused
active ivan juniper 80 closed pending chen harbor 75 active paused dina juniper 82 paused
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005228-p1
Output the complete records for which the value in the fourth column is greater than or equal to 72.
$4 >= 72
closed chen juniper 74 failed closed dina harbor 63 paused active jules indigo 20 ready active kim harbor 28 failed pending lina grove 5 pending closed alice harbor 5 failed active eli delta 109 paused active farah amber 32 failed closed eli ember 36 pending
closed chen juniper 74 failed active eli delta 109 paused
active alice cobalt 21 pending active ivan juniper 80 closed active lina amber 18 active closed lina indigo 11 failed active lina delta 1 closed pending chen harbor 75 active pending kim delta 62 ready paused dina juniper 82 paused
active ivan juniper 80 closed pending chen harbor 75 active paused dina juniper 82 paused
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005228
qwen/qwen3.7-plus
awkweave-0005229
Show whole lines whose 1st field is between 9 and 18, inclusive.
$1 >= 9 && $1 <= 18
10 lina farah fable 4 kim dina juniper 15 farah dina amber 3 dina kim fable 4 jules gus delta 19 ivan ivan cobalt 12 gus bruno juniper 27 hana dina harbor
10 lina farah fable 15 farah dina amber 12 gus bruno juniper
15 hana gus birch 18 lina eli harbor 24 hana farah harbor 9 eli dina ember 15 hana jules indigo 27 hana hana fable 11 chen farah juniper 27 eli jules indigo
15 hana gus birch 18 lina eli harbor 9 eli dina ember 15 hana jules indigo 11 chen farah juniper
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005229-p1
Display entire lines where the first field falls within the inclusive range of 9 to 18.
$1 >= 9 && $1 <= 18
10 lina farah fable 4 kim dina juniper 15 farah dina amber 3 dina kim fable 4 jules gus delta 19 ivan ivan cobalt 12 gus bruno juniper 27 hana dina harbor
10 lina farah fable 15 farah dina amber 12 gus bruno juniper
15 hana gus birch 18 lina eli harbor 24 hana farah harbor 9 eli dina ember 15 hana jules indigo 27 hana hana fable 11 chen farah juniper 27 eli jules indigo
15 hana gus birch 18 lina eli harbor 9 eli dina ember 15 hana jules indigo 11 chen farah juniper
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005229
qwen/qwen3.7-plus
awkweave-0005230
Print column 3 only for rows where column 4 is exactly failed.
$4 == "failed"{print $3}
9 ember chen closed 62 amber chen active 50 juniper eli active 66 grove bruno pending 119 harbor chen failed 1 fable hana ready 94 fable alice ready 82 delta jules closed 105 ember dina ready
chen
39 indigo jules ready 70 juniper jules pending 112 grove eli pending 51 delta hana failed 13 delta lina failed 99 harbor bruno ready 57 amber dina paused 48 ember ivan failed 28 delta bruno failed 119 grove bruno paused
hana lina ivan bruno
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005230-p1
Print only the third column for rows where the fourth column contains exactly the text 'failed'.
$4 == "failed"{print $3}
9 ember chen closed 62 amber chen active 50 juniper eli active 66 grove bruno pending 119 harbor chen failed 1 fable hana ready 94 fable alice ready 82 delta jules closed 105 ember dina ready
chen
39 indigo jules ready 70 juniper jules pending 112 grove eli pending 51 delta hana failed 13 delta lina failed 99 harbor bruno ready 57 amber dina paused 48 ember ivan failed 28 delta bruno failed 119 grove bruno paused
hana lina ivan bruno
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005230
qwen/qwen3.7-plus
awkweave-0005231
Print all fields from lines where field 3 begins with INFO.
$3 ~ /^INFO/
amber 33 INFO indigo 26 INFO indigo 49 INFO juniper 3 INFO indigo 0 INFO cobalt 49 INFO amber 99 INFO
amber 33 INFO indigo 26 INFO indigo 49 INFO juniper 3 INFO indigo 0 INFO cobalt 49 INFO amber 99 INFO
cobalt 36 INFO indigo 21 ERROR harbor 15 WARN cobalt 80 WARN delta 110 ERROR harbor 84 WARN
cobalt 36 INFO
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005231-p1
Output all fields from lines where the third field starts with the string 'INFO'.
$3 ~ /^INFO/
amber 33 INFO indigo 26 INFO indigo 49 INFO juniper 3 INFO indigo 0 INFO cobalt 49 INFO amber 99 INFO
amber 33 INFO indigo 26 INFO indigo 49 INFO juniper 3 INFO indigo 0 INFO cobalt 49 INFO amber 99 INFO
cobalt 36 INFO indigo 21 ERROR harbor 15 WARN cobalt 80 WARN delta 110 ERROR harbor 84 WARN
cobalt 36 INFO
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005231
qwen/qwen3.7-plus
awkweave-0005232
Print every line except those containing the exact text harbor.
$0 !~ /harbor/
fable 10 paused juniper 62 ready grove 118 active cobalt 66 active juniper 86 ready cobalt 69 paused juniper 7 ready ember 49 active ember 118 active harbor 999 active
fable 10 paused juniper 62 ready grove 118 active cobalt 66 active juniper 86 ready cobalt 69 paused juniper 7 ready ember 49 active ember 118 active
birch 59 ready cobalt 102 pending ember 34 paused birch 3 paused delta 118 closed grove 7 ready harbor 103 paused harbor 999 active
birch 59 ready cobalt 102 pending ember 34 paused birch 3 paused delta 118 closed grove 7 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005232-p1
Print every line that does not contain the exact string 'harbor'.
$0 !~ /harbor/
fable 10 paused juniper 62 ready grove 118 active cobalt 66 active juniper 86 ready cobalt 69 paused juniper 7 ready ember 49 active ember 118 active harbor 999 active
fable 10 paused juniper 62 ready grove 118 active cobalt 66 active juniper 86 ready cobalt 69 paused juniper 7 ready ember 49 active ember 118 active
birch 59 ready cobalt 102 pending ember 34 paused birch 3 paused delta 118 closed grove 7 ready harbor 103 paused harbor 999 active
birch 59 ready cobalt 102 pending ember 34 paused birch 3 paused delta 118 closed grove 7 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005232
qwen/qwen3.7-plus
awkweave-0005233
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
chen indigo 78 lina amber 94 gus birch 83 kim juniper 117 kim delta 65 gus birch 49 alice harbor 50 eli amber 115 ivan delta 66
lina amber 94 gus birch 83
gus grove 59 gus harbor 30 chen ember 95 eli cobalt 35 lina birch 100 dina ember 29 alice amber 72 chen amber 55 farah grove 110
gus harbor 30 chen ember 95
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005233-p1
Output lines 2 through 3, inclusive of both endpoints.
NR >= 2 && NR <= 3
chen indigo 78 lina amber 94 gus birch 83 kim juniper 117 kim delta 65 gus birch 49 alice harbor 50 eli amber 115 ivan delta 66
lina amber 94 gus birch 83
gus grove 59 gus harbor 30 chen ember 95 eli cobalt 35 lina birch 100 dina ember 29 alice amber 72 chen amber 55 farah grove 110
gus harbor 30 chen ember 95
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005233
qwen/qwen3.7-plus
awkweave-0005234
Output only the first 4 records.
NR <= 4
kim 17 cobalt kim 112 ember gus 51 cobalt alice 113 juniper lina 13 juniper hana 72 delta
kim 17 cobalt kim 112 ember gus 51 cobalt alice 113 juniper
dina 49 cobalt lina 2 fable jules 23 delta lina 21 harbor kim 51 ember kim 35 indigo jules 70 cobalt
dina 49 cobalt lina 2 fable jules 23 delta lina 21 harbor
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005234-p1
Print only the first four records.
NR <= 4
kim 17 cobalt kim 112 ember gus 51 cobalt alice 113 juniper lina 13 juniper hana 72 delta
kim 17 cobalt kim 112 ember gus 51 cobalt alice 113 juniper
dina 49 cobalt lina 2 fable jules 23 delta lina 21 harbor kim 51 ember kim 35 indigo jules 70 cobalt
dina 49 cobalt lina 2 fable jules 23 delta lina 21 harbor
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005234
qwen/qwen3.7-plus
awkweave-0005235
Skip the first line and print every remaining line unchanged.
NR > 1
dina 44 grove jules 5 ember kim 46 amber kim 64 grove lina 46 amber bruno 25 fable
jules 5 ember kim 46 amber kim 64 grove lina 46 amber bruno 25 fable
eli 115 grove ivan 23 juniper bruno 83 ember hana 98 grove hana 4 ember gus 46 amber bruno 113 amber farah 6 delta
ivan 23 juniper bruno 83 ember hana 98 grove hana 4 ember gus 46 amber bruno 113 amber farah 6 delta
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005235-p1
Omit the first line and print all subsequent lines without modification.
NR > 1
dina 44 grove jules 5 ember kim 46 amber kim 64 grove lina 46 amber bruno 25 fable
jules 5 ember kim 46 amber kim 64 grove lina 46 amber bruno 25 fable
eli 115 grove ivan 23 juniper bruno 83 ember hana 98 grove hana 4 ember gus 46 amber bruno 113 amber farah 6 delta
ivan 23 juniper bruno 83 ember hana 98 grove hana 4 ember gus 46 amber bruno 113 amber farah 6 delta
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005235
qwen/qwen3.7-plus
awkweave-0005236
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
bruno active 97 dina failed 60 ivan ready 73 eli closed 39 alice closed 14 bruno closed 89 gus active 88 bruno ready 118
1
jules paused 66 lina pending 104 farah ready 41 jules pending 44 bruno active 70 alice ready 58 hana failed 76
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005236-p1
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
bruno active 97 dina failed 60 ivan ready 73 eli closed 39 alice closed 14 bruno closed 89 gus active 88 bruno ready 118
1
jules paused 66 lina pending 104 farah ready 41 jules pending 44 bruno active 70 alice ready 58 hana failed 76
1
count_matches
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0005236
qwen/qwen3.7-plus
awkweave-0005237
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
16 harbor eli 29 grove dina 16 fable bruno 14 fable kim 8 delta lina 5 harbor hana 28 delta jules
116
20 indigo lina 8 harbor lina 20 delta kim 2 ember hana 22 amber chen 7 harbor dina 26 birch farah 22 juniper ivan 12 delta jules
139
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005237-p1
Compute and display the total sum of all integer values found in column 1.
{s+=$1}END{print s+0}
16 harbor eli 29 grove dina 16 fable bruno 14 fable kim 8 delta lina 5 harbor hana 28 delta jules
116
20 indigo lina 8 harbor lina 20 delta kim 2 ember hana 22 amber chen 7 harbor dina 26 birch farah 22 juniper ivan 12 delta jules
139
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005237
qwen/qwen3.7-plus
awkweave-0005238
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
27 hana indigo 13 kim ember 8 jules harbor 23 farah fable 4 hana delta 10 jules ember
14.17
19 hana amber 10 chen amber 24 lina fable 6 dina fable 7 eli indigo 8 kim delta 21 hana fable 29 dina juniper 21 bruno indigo 1 bruno delta
14.60
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005238-p1
Output the average value of column 1, formatted to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
27 hana indigo 13 kim ember 8 jules harbor 23 farah fable 4 hana delta 10 jules ember
14.17
19 hana amber 10 chen amber 24 lina fable 6 dina fable 7 eli indigo 8 kim delta 21 hana fable 29 dina juniper 21 bruno indigo 1 bruno delta
14.60
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005238
qwen/qwen3.7-plus
awkweave-0005239
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
jules grove 8 bruno juniper 4 bruno indigo 3 jules fable 2 dina cobalt 20 gus delta 15 bruno indigo 20 eli fable 12 farah juniper 14 lina cobalt 16
2
eli delta 8 lina cobalt 17 hana grove 25 eli delta 18 jules ember 5 eli juniper 26 kim cobalt 3 bruno harbor 4 farah grove 12
3
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005239-p1
Identify and display the minimum numeric value present in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
jules grove 8 bruno juniper 4 bruno indigo 3 jules fable 2 dina cobalt 20 gus delta 15 bruno indigo 20 eli fable 12 farah juniper 14 lina cobalt 16
2
eli delta 8 lina cobalt 17 hana grove 25 eli delta 18 jules ember 5 eli juniper 26 kim cobalt 3 bruno harbor 4 farah grove 12
3
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005239
qwen/qwen3.7-plus
awkweave-0005240
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
11 bruno indigo 28 bruno fable 9 dina fable 7 chen birch 12 alice amber 11 lina birch
28
6 kim harbor 18 bruno delta 8 farah cobalt 25 gus indigo 26 farah delta 8 alice cobalt 2 chen fable 9 jules cobalt 13 chen birch
26
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005240-p1
Identify and display the maximum numeric value present in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
11 bruno indigo 28 bruno fable 9 dina fable 7 chen birch 12 alice amber 11 lina birch
28
6 kim harbor 18 bruno delta 8 farah cobalt 25 gus indigo 26 farah delta 8 alice cobalt 2 chen fable 9 jules cobalt 13 chen birch
26
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005240
qwen/qwen3.7-plus
awkweave-0005241
Count all input records and print the total.
END{print NR}
alice 109 alice 30 alice 107 chen 57 jules 82 kim 95 bruno 78 bruno 67 chen 14 lina 105
10
alice 115 chen 88 bruno 98 hana 87 farah 34 bruno 97
6
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005241-p1
Count the total number of input records and print this count.
END{print NR}
alice 109 alice 30 alice 107 chen 57 jules 82 kim 95 bruno 78 bruno 67 chen 14 lina 105
10
alice 115 chen 88 bruno 98 hana 87 farah 34 bruno 97
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005241
qwen/qwen3.7-plus
awkweave-0005242
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
lina indigo 53 hana harbor 81 kim juniper 4 gus fable 22 kim cobalt 91 chen cobalt 36 lina grove 42 chen delta 36 kim delta 49 chen cobalt 36 gus fable 27
lina indigo 53 hana harbor 81 kim juniper 4 gus fable 22 kim cobalt 91 chen cobalt 36 lina grove 42 chen delta 36 kim delta 49 gus fable 27
kim harbor 82 jules juniper 13 kim fable 45 bruno grove 88 kim fable 45 jules cobalt 31 bruno birch 47 kim birch 39
kim harbor 82 jules juniper 13 kim fable 45 bruno grove 88 jules cobalt 31 bruno birch 47 kim birch 39
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005242-p1
Eliminate duplicate lines while keeping the first instance of each and maintaining the original sequence.
!seen[$0]++
lina indigo 53 hana harbor 81 kim juniper 4 gus fable 22 kim cobalt 91 chen cobalt 36 lina grove 42 chen delta 36 kim delta 49 chen cobalt 36 gus fable 27
lina indigo 53 hana harbor 81 kim juniper 4 gus fable 22 kim cobalt 91 chen cobalt 36 lina grove 42 chen delta 36 kim delta 49 gus fable 27
kim harbor 82 jules juniper 13 kim fable 45 bruno grove 88 kim fable 45 jules cobalt 31 bruno birch 47 kim birch 39
kim harbor 82 jules juniper 13 kim fable 45 bruno grove 88 jules cobalt 31 bruno birch 47 kim birch 39
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005242
qwen/qwen3.7-plus
awkweave-0005243
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
lina juniper 104 jules amber 51 farah grove 93 lina grove 118 dina delta 61 gus amber 60 kim birch 82 hana indigo 76 chen cobalt 26 kim fable 108
lina juniper 104 jules amber 51 farah grove 93 lina grove 118 dina delta 61 gus amber 60 kim birch 82 hana indigo 76 chen cobalt 26 kim fable 108
farah amber 7 ivan fable 10 ivan cobalt 13 dina juniper 22 bruno grove 47 dina fable 117 chen delta 69 dina amber 22 eli amber 72 hana ember 66
farah amber 7 ivan fable 10 ivan cobalt 13 dina juniper 22 bruno grove 47 dina fable 117 chen delta 69 eli amber 72 hana ember 66
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005243-p1
Retain only the initial line for every unique value in column 3, ensuring the original input order is preserved.
!seen[$3]++
lina juniper 104 jules amber 51 farah grove 93 lina grove 118 dina delta 61 gus amber 60 kim birch 82 hana indigo 76 chen cobalt 26 kim fable 108
lina juniper 104 jules amber 51 farah grove 93 lina grove 118 dina delta 61 gus amber 60 kim birch 82 hana indigo 76 chen cobalt 26 kim fable 108
farah amber 7 ivan fable 10 ivan cobalt 13 dina juniper 22 bruno grove 47 dina fable 117 chen delta 69 dina amber 22 eli amber 72 hana ember 66
farah amber 7 ivan fable 10 ivan cobalt 13 dina juniper 22 bruno grove 47 dina fable 117 chen delta 69 eli amber 72 hana ember 66
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005243
qwen/qwen3.7-plus
awkweave-0005244
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 5 birch farah 30 amber gus 21 ember lina 3 delta hana 25 birch dina 30 delta eli 25 juniper
ivan 5 farah 35 gus 56 lina 59 hana 84 dina 114 eli 139
jules 5 delta jules 10 amber chen 16 indigo gus 17 fable dina 26 fable lina 20 delta
jules 5 jules 15 chen 31 gus 48 dina 74 lina 94
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005244-p1
For each record, output column 1 alongside the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 5 birch farah 30 amber gus 21 ember lina 3 delta hana 25 birch dina 30 delta eli 25 juniper
ivan 5 farah 35 gus 56 lina 59 hana 84 dina 114 eli 139
jules 5 delta jules 10 amber chen 16 indigo gus 17 fable dina 26 fable lina 20 delta
jules 5 jules 15 chen 31 gus 48 dina 74 lina 94
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005244
qwen/qwen3.7-plus
awkweave-0005245
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
dina 22 3 birch eli 27 27 harbor gus 9 5 cobalt eli 1 19 cobalt farah 16 8 cobalt ivan 4 24 indigo
dina 25 eli 54 gus 14 eli 20 farah 24 ivan 28
gus 19 17 ember jules 24 5 juniper eli 27 15 indigo chen 13 30 indigo kim 8 17 cobalt kim 19 19 cobalt alice 9 16 juniper bruno 15 11 delta lina 15 29 ember
gus 36 jules 29 eli 42 chen 43 kim 25 kim 38 alice 25 bruno 26 lina 44
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005245-p1
For each row, output field 1 followed by the result of adding fields 2 and 3.
{print $1,$2+$3}
dina 22 3 birch eli 27 27 harbor gus 9 5 cobalt eli 1 19 cobalt farah 16 8 cobalt ivan 4 24 indigo
dina 25 eli 54 gus 14 eli 20 farah 24 ivan 28
gus 19 17 ember jules 24 5 juniper eli 27 15 indigo chen 13 30 indigo kim 8 17 cobalt kim 19 19 cobalt alice 9 16 juniper bruno 15 11 delta lina 15 29 ember
gus 36 jules 29 eli 42 chen 43 kim 25 kim 38 alice 25 bruno 26 lina 44
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005245
qwen/qwen3.7-plus
awkweave-0005246
Print column 1 and pass when column 2 is at least 21; otherwise print fail.
{print $1,($2>=21?"pass":"fail")}
kim 2 eli 8 jules 13 lina 25 kim 28 hana 2
kim fail eli fail jules fail lina pass kim pass hana fail
chen 14 bruno 26 bruno 15 gus 25 gus 19 ivan 21 lina 6
chen fail bruno pass bruno fail gus pass gus fail ivan pass lina fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005246-p1
Print column 1 along with 'pass' if column 2 is 21 or greater; otherwise, print 'fail'.
{print $1,($2>=21?"pass":"fail")}
kim 2 eli 8 jules 13 lina 25 kim 28 hana 2
kim fail eli fail jules fail lina pass kim pass hana fail
chen 14 bruno 26 bruno 15 gus 25 gus 19 ivan 21 lina 6
chen fail bruno pass bruno fail gus pass gus fail ivan pass lina fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005246
qwen/qwen3.7-plus
awkweave-0005247
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
jules harbor 108 eli indigo 12 hana harbor 18 farah delta 34 lina amber 62 ivan cobalt 117 kim juniper 36 ivan ember 83 kim cobalt 97 chen delta 106
HARBOR INDIGO HARBOR DELTA AMBER COBALT JUNIPER EMBER COBALT DELTA
alice grove 87 chen birch 55 ivan harbor 76 chen juniper 59 gus amber 90 ivan birch 106 lina birch 115
GROVE BIRCH HARBOR JUNIPER AMBER BIRCH BIRCH
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005247-p1
Transform the text in column 2 to uppercase and output only this modified column.
{print toupper($2)}
jules harbor 108 eli indigo 12 hana harbor 18 farah delta 34 lina amber 62 ivan cobalt 117 kim juniper 36 ivan ember 83 kim cobalt 97 chen delta 106
HARBOR INDIGO HARBOR DELTA AMBER COBALT JUNIPER EMBER COBALT DELTA
alice grove 87 chen birch 55 ivan harbor 76 chen juniper 59 gus amber 90 ivan birch 106 lina birch 115
GROVE BIRCH HARBOR JUNIPER AMBER BIRCH BIRCH
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005247
qwen/qwen3.7-plus
awkweave-0005248
From column 1, print 4 characters starting at character 2.
{print substr($1,2,4)}
indigo 23 ember 119 indigo 55 harbor 29 harbor 90 juniper 102 juniper 90
ndig mber ndig arbo arbo unip unip
amber 33 birch 114 fable 96 cobalt 25 grove 116 ember 64 ember 103 delta 18
mber irch able obal rove mber mber elta
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005248-p1
Extract and display a 4-character substring from column 1, beginning at the second character.
{print substr($1,2,4)}
indigo 23 ember 119 indigo 55 harbor 29 harbor 90 juniper 102 juniper 90
ndig mber ndig arbo arbo unip unip
amber 33 birch 114 fable 96 cobalt 25 grove 116 ember 64 ember 103 delta 18
mber irch able obal rove mber mber elta
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005248
qwen/qwen3.7-plus
awkweave-0005249
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
cobalt_indigo 107 grove_birch 38 birch_juniper 15 grove_fable 78 grove_juniper 116 cobalt_birch 80
cobalt indigo grove birch birch juniper grove fable grove juniper cobalt birch
amber_cobalt 38 juniper_delta 51 amber_amber 110 indigo_amber 115 delta_amber 14 juniper_amber 51 indigo_indigo 12 grove_harbor 21
amber cobalt juniper delta amber amber indigo amber delta amber juniper amber indigo indigo grove harbor
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005249-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
cobalt_indigo 107 grove_birch 38 birch_juniper 15 grove_fable 78 grove_juniper 116 cobalt_birch 80
cobalt indigo grove birch birch juniper grove fable grove juniper cobalt birch
amber_cobalt 38 juniper_delta 51 amber_amber 110 indigo_amber 115 delta_amber 14 juniper_amber 51 indigo_indigo 12 grove_harbor 21
amber cobalt juniper delta amber amber indigo amber delta amber juniper amber indigo indigo grove harbor
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005249
qwen/qwen3.7-plus
awkweave-0005250
Reverse the order of fields on every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
ivan delta 12 active ivan delta 11 ready hana ember 12 active dina juniper 111 pending gus indigo 112 ready farah ember 111 pending eli amber 2 active
active 12 delta ivan ready 11 delta ivan active 12 ember hana pending 111 juniper dina ready 112 indigo gus pending 111 ember farah active 2 amber eli
dina juniper 96 closed eli ember 84 ready farah delta 43 pending bruno fable 108 paused jules amber 55 closed chen juniper 90 ready
closed 96 juniper dina ready 84 ember eli pending 43 delta farah paused 108 fable bruno closed 55 amber jules ready 90 juniper chen
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005250-p1
Reverse the sequence of fields for each line and print every field.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
ivan delta 12 active ivan delta 11 ready hana ember 12 active dina juniper 111 pending gus indigo 112 ready farah ember 111 pending eli amber 2 active
active 12 delta ivan ready 11 delta ivan active 12 ember hana pending 111 juniper dina ready 112 indigo gus pending 111 ember farah active 2 amber eli
dina juniper 96 closed eli ember 84 ready farah delta 43 pending bruno fable 108 paused jules amber 55 closed chen juniper 90 ready
closed 96 juniper dina ready 84 ember eli pending 43 delta farah paused 108 fable bruno closed 55 amber jules ready 90 juniper chen
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005250
qwen/qwen3.7-plus
awkweave-0005251
Print the number of whitespace-separated fields on each line.
{print NF}
bruno birch 44 active hana birch 86 closed eli grove 92 closed dina delta 92 ready jules cobalt 0 active gus birch 114 closed bruno amber 43 active
4 4 4 4 4 4 4
hana grove 33 failed alice indigo 46 active farah juniper 39 ready eli indigo 43 ready kim amber 76 failed farah harbor 1 pending
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005251-p1
Output the count of whitespace-delimited fields found on each line.
{print NF}
bruno birch 44 active hana birch 86 closed eli grove 92 closed dina delta 92 ready jules cobalt 0 active gus birch 114 closed bruno amber 43 active
4 4 4 4 4 4 4
hana grove 33 failed alice indigo 46 active farah juniper 39 ready eli indigo 43 ready kim amber 76 failed farah harbor 1 pending
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005251
qwen/qwen3.7-plus
awkweave-0005252
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 108 chen alpha 74 farah gamma 7 dina alpha 10 eli beta 42 chen gamma 52 alice alpha 101
gamma 3 alpha 3 beta 1
ivan alpha 18 eli delta 33 bruno alpha 41 bruno alpha 80 chen gamma 10 lina beta 108 alice delta 15 bruno gamma 42 hana alpha 64
alpha 4 delta 2 gamma 2 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005252-p1
Tally the occurrences of each unique value in column 2, then print each value alongside its count in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
bruno gamma 108 chen alpha 74 farah gamma 7 dina alpha 10 eli beta 42 chen gamma 52 alice alpha 101
gamma 3 alpha 3 beta 1
ivan alpha 18 eli delta 33 bruno alpha 41 bruno alpha 80 chen gamma 10 lina beta 108 alice delta 15 bruno gamma 42 hana alpha 64
alpha 4 delta 2 gamma 2 beta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005252
qwen/qwen3.7-plus
awkweave-0005253
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]]}
ivan beta 9 alice beta 3 bruno gamma 10 alice beta 23 bruno beta 14 eli delta 28
beta 49 gamma 10 delta 28
ivan gamma 30 dina alpha 1 alice beta 14 eli beta 12 kim alpha 12 kim alpha 25 jules delta 4 lina delta 14
gamma 30 alpha 38 beta 26 delta 18
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005253-p1
Calculate the sum of column 3 for each distinct category in column 2, displaying the results grouped by their 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]]}
ivan beta 9 alice beta 3 bruno gamma 10 alice beta 23 bruno beta 14 eli delta 28
beta 49 gamma 10 delta 28
ivan gamma 30 dina alpha 1 alice beta 14 eli beta 12 kim alpha 12 kim alpha 25 jules delta 4 lina delta 14
gamma 30 alpha 38 beta 26 delta 18
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005253
qwen/qwen3.7-plus
awkweave-0005254
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]]}
beta amber 2 alpha indigo 19 beta delta 85 alpha delta 75 alpha grove 43 gamma juniper 60 gamma delta 67 delta birch 49
beta 2 alpha 3 gamma 2
beta harbor 114 gamma fable 26 gamma birch 4 alpha amber 53 delta cobalt 118 delta grove 49 delta harbor 67 alpha grove 117
gamma 2 alpha 2 delta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005254-p1
Identify duplicate values in column 1 and print each one with its total occurrence count, 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]]}
beta amber 2 alpha indigo 19 beta delta 85 alpha delta 75 alpha grove 43 gamma juniper 60 gamma delta 67 delta birch 49
beta 2 alpha 3 gamma 2
beta harbor 114 gamma fable 26 gamma birch 4 alpha amber 53 delta cobalt 118 delta grove 49 delta harbor 67 alpha grove 117
gamma 2 alpha 2 delta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005254
qwen/qwen3.7-plus
awkweave-0005255
The first row is a header. Print the display_name column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
state note region display_name r001 gus 17 failed r002 gus 25 closed r003 jules 12 pending r004 chen 17 paused r005 ivan 27 failed r006 farah 29 paused
failed closed pending paused failed paused
state note region display_name r001 lina 30 failed r002 kim 14 paused r003 gus 21 paused r004 kim 17 ready r005 alice 9 ready r006 hana 29 active
failed paused paused ready ready active
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005255-p1
Treating the first row as a header, output the values from the display_name column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
state note region display_name r001 gus 17 failed r002 gus 25 closed r003 jules 12 pending r004 chen 17 paused r005 ivan 27 failed r006 farah 29 paused
failed closed pending paused failed paused
state note region display_name r001 lina 30 failed r002 kim 14 paused r003 gus 21 paused r004 kim 17 ready r005 alice 9 ready r006 hana 29 active
failed paused paused ready ready active
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005255
qwen/qwen3.7-plus
awkweave-0005256
The first row is a header. Print display_name for data rows whose score is greater than 11.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>11{print $h["display_name"]}
record_id display_name score state r001 lina 18 active r002 lina 9 active r003 ivan 11 failed r004 lina 19 active r005 jules 5 active r006 bruno 21 active
lina lina bruno
record_id display_name score state r001 hana 13 active r002 farah 27 pending r003 eli 19 closed r004 chen 11 closed r005 gus 4 ready r006 eli 14 ready r007 hana 14 paused
hana farah eli eli hana
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005256-p1
With the first row as a header, print the display_name for data rows where the score is strictly greater than 11.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>11{print $h["display_name"]}
record_id display_name score state r001 lina 18 active r002 lina 9 active r003 ivan 11 failed r004 lina 19 active r005 jules 5 active r006 bruno 21 active
lina lina bruno
record_id display_name score state r001 hana 13 active r002 farah 27 pending r003 eli 19 closed r004 chen 11 closed r005 gus 4 ready r006 eli 14 ready r007 hana 14 paused
hana farah eli eli hana
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005256
qwen/qwen3.7-plus
awkweave-0005257
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
chen 1 failed alice 28 pending hana 9 pending kim 7 active alice 11 pending eli 17 pending gus 5 failed dina 28 paused bruno 15 active bruno 10 closed
1 28 9 7 11 17 5 28 15 10
bruno 12 paused eli 23 pending jules 16 paused bruno 1 failed alice 29 closed farah 24 ready chen 4 closed alice 28 active farah 24 paused
12 23 16 1 29 24 4 28 24
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005257-p1
Given tab-separated input, extract and print the second column from every record.
BEGIN{FS=OFS="\t"}{print $2}
chen 1 failed alice 28 pending hana 9 pending kim 7 active alice 11 pending eli 17 pending gus 5 failed dina 28 paused bruno 15 active bruno 10 closed
1 28 9 7 11 17 5 28 15 10
bruno 12 paused eli 23 pending jules 16 paused bruno 1 failed alice 29 closed farah 24 ready chen 4 closed alice 28 active farah 24 paused
12 23 16 1 29 24 4 28 24
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005257
qwen/qwen3.7-plus
awkweave-0005258
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 10.
BEGIN{FS=OFS=","}$2>10{print $1}
hana,24,active eli,4,pending eli,13,ready alice,3,closed ivan,28,ready jules,16,pending
hana eli ivan jules
ivan,8,ready lina,24,paused gus,16,pending chen,27,closed hana,30,pending farah,10,failed farah,16,ready
lina gus chen hana farah
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005258-p1
For simple comma-separated input without quoted commas, print the first column whenever the second column value is greater than 10.
BEGIN{FS=OFS=","}$2>10{print $1}
hana,24,active eli,4,pending eli,13,ready alice,3,closed ivan,28,ready jules,16,pending
hana eli ivan jules
ivan,8,ready lina,24,paused gus,16,pending chen,27,closed hana,30,pending farah,10,failed farah,16,ready
lina gus chen hana farah
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005258
qwen/qwen3.7-plus
awkweave-0005259
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
dina indigo 62 gus amber 47 alice cobalt 28 eli cobalt 44 eli ember 8 gus cobalt 25
dina indigo 62 gus amber 47 alice cobalt 28 eli cobalt 44 eli ember 8 gus cobalt 25
jules harbor 20 kim birch 6 gus juniper 19 dina birch 0 eli indigo 41 alice fable 98
jules harbor 20 kim birch 6 gus juniper 19 dina birch 0 eli indigo 41 alice fable 98
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005259-p1
Remove leading and trailing whitespace, and replace any internal sequences of whitespace with a single space.
{$1=$1;print}
dina indigo 62 gus amber 47 alice cobalt 28 eli cobalt 44 eli ember 8 gus cobalt 25
dina indigo 62 gus amber 47 alice cobalt 28 eli cobalt 44 eli ember 8 gus cobalt 25
jules harbor 20 kim birch 6 gus juniper 19 dina birch 0 eli indigo 41 alice fable 98
jules harbor 20 kim birch 6 gus juniper 19 dina birch 0 eli indigo 41 alice fable 98
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005259
qwen/qwen3.7-plus
awkweave-0005260
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan amber 68 paused farah grove 27 active lina fable 97 active kim amber 81 paused hana harbor 81 ready hana birch 36 closed kim cobalt 39 pending chen amber 100 closed kim cobalt 103 failed
farah grove 27 active
farah cobalt 77 closed alice delta 30 closed jules amber 75 pending kim harbor 102 pending eli ember 101 ready hana ember 1 failed bruno delta 94 ready chen indigo 115 ready bruno grove 96 active
farah cobalt 77 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005260-p1
Output the longest line from the input, selecting the first one encountered if there is a tie in length.
{if(length($0)>length(best))best=$0}END{print best}
ivan amber 68 paused farah grove 27 active lina fable 97 active kim amber 81 paused hana harbor 81 ready hana birch 36 closed kim cobalt 39 pending chen amber 100 closed kim cobalt 103 failed
farah grove 27 active
farah cobalt 77 closed alice delta 30 closed jules amber 75 pending kim harbor 102 pending eli ember 101 ready hana ember 1 failed bruno delta 94 ready chen indigo 115 ready bruno grove 96 active
farah cobalt 77 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005260
qwen/qwen3.7-plus
awkweave-0005261
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
alice 15 dina 41 gus 110 farah 53 chen 19 kim 85 eli 48 farah 8
dina 41 farah 53 kim 85 farah 8
ivan 2 lina 76 bruno 5 lina 86 hana 67 gus 57 hana 86
lina 76 lina 86 gus 57
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005261-p1
Print lines 2, 4, 6, and so on, effectively outputting every second line starting from the second.
NR%2==0
alice 15 dina 41 gus 110 farah 53 chen 19 kim 85 eli 48 farah 8
dina 41 farah 53 kim 85 farah 8
ivan 2 lina 76 bruno 5 lina 86 hana 67 gus 57 hana 86
lina 76 lina 86 gus 57
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005261
qwen/qwen3.7-plus
awkweave-0005262
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
gamma grove 114 delta harbor 102 beta indigo 33 gamma amber 0 alpha grove 35 alpha cobalt 59 gamma birch 84
4
delta juniper 111 beta indigo 72 delta birch 111 delta harbor 81 delta birch 18 delta birch 27 gamma juniper 78 gamma juniper 103 delta cobalt 53 alpha juniper 80
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005262-p1
Calculate and display only the total number of unique values found in the first column.
{if(!seen[$1]++)n++}END{print n+0}
gamma grove 114 delta harbor 102 beta indigo 33 gamma amber 0 alpha grove 35 alpha cobalt 59 gamma birch 84
4
delta juniper 111 beta indigo 72 delta birch 111 delta harbor 81 delta birch 18 delta birch 27 gamma juniper 78 gamma juniper 103 delta cobalt 53 alpha juniper 80
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005262
qwen/qwen3.7-plus
awkweave-0005263
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}
bruno 20 0 farah 11 9 hana 10 10 gus 20 20 bruno 20 3 eli 17 27 ivan 23 17 jules 20 28 jules 11 10
farah 1.22 hana 1.00 gus 1.00 bruno 6.67 eli 0.63 ivan 1.35 jules 0.71 jules 1.10
chen 23 0 jules 30 30 hana 16 6 chen 23 27 ivan 26 6 eli 3 9 dina 8 11 bruno 4 18 farah 28 5 gus 11 30
jules 1.00 hana 2.67 chen 0.85 ivan 4.33 eli 0.33 dina 0.73 bruno 0.22 farah 5.60 gus 0.37
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005263-p1
For each row where the third column is not zero, output the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
bruno 20 0 farah 11 9 hana 10 10 gus 20 20 bruno 20 3 eli 17 27 ivan 23 17 jules 20 28 jules 11 10
farah 1.22 hana 1.00 gus 1.00 bruno 6.67 eli 0.63 ivan 1.35 jules 0.71 jules 1.10
chen 23 0 jules 30 30 hana 16 6 chen 23 27 ivan 26 6 eli 3 9 dina 8 11 bruno 4 18 farah 28 5 gus 11 30
jules 1.00 hana 2.67 chen 0.85 ivan 4.33 eli 0.33 dina 0.73 bruno 0.22 farah 5.60 gus 0.37
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005263
qwen/qwen3.7-plus
awkweave-0005264
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 ember 23 gus delta 11 dina grove 11 lina fable 5 alice juniper 13 eli fable 7
ivan ember 23 alice juniper 13 gus delta 11
chen indigo 7 lina amber 10 dina indigo 14 alice grove 14 bruno fable 8 bruno fable 26 bruno birch 13 hana amber 10 lina birch 3 lina delta 10
bruno fable 26 dina indigo 14 alice grove 14
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005264-p1
Display the full records corresponding to the top three highest numeric values in column 3, sorted in descending order, while maintaining the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
ivan ember 23 gus delta 11 dina grove 11 lina fable 5 alice juniper 13 eli fable 7
ivan ember 23 alice juniper 13 gus delta 11
chen indigo 7 lina amber 10 dina indigo 14 alice grove 14 bruno fable 8 bruno fable 26 bruno birch 13 hana amber 10 lina birch 3 lina delta 10
bruno fable 26 dina indigo 14 alice grove 14
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005264
qwen/qwen3.7-plus
awkweave-0005265
Select the 3rd and 2nd fields in that order.
{print $3, $2}
harbor hana 104 failed fable farah 106 ready cobalt farah 89 failed ember gus 80 active grove lina 93 active indigo eli 81 paused grove chen 78 pending grove eli 9 ready juniper alice 37 active juniper ivan 97 failed
104 hana 106 farah 89 farah 80 gus 93 lina 81 eli 78 chen 9 eli 37 alice 97 ivan
indigo alice 36 pending grove eli 85 pending ember gus 22 paused harbor gus 24 active juniper chen 14 paused indigo dina 13 active indigo lina 34 closed
36 alice 85 eli 22 gus 24 gus 14 chen 13 dina 34 lina
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005265-p1
Extract and print the third field followed by the second field for each record.
{print $3, $2}
harbor hana 104 failed fable farah 106 ready cobalt farah 89 failed ember gus 80 active grove lina 93 active indigo eli 81 paused grove chen 78 pending grove eli 9 ready juniper alice 37 active juniper ivan 97 failed
104 hana 106 farah 89 farah 80 gus 93 lina 81 eli 78 chen 9 eli 37 alice 97 ivan
indigo alice 36 pending grove eli 85 pending ember gus 22 paused harbor gus 24 active juniper chen 14 paused indigo dina 13 active indigo lina 34 closed
36 alice 85 eli 22 gus 24 gus 14 chen 13 dina 34 lina
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005265
qwen/qwen3.7-plus
awkweave-0005266
Print the last field of every input line.
{print $NF}
ready amber harbor 66 paused juniper grove 105 active ember cobalt 5 closed ember fable 7 active cobalt amber 32 paused delta ember 91 pending harbor grove 35
66 105 5 7 32 91 35
active ember ember 103 pending delta delta 115 ready ember juniper 88 pending delta ember 12 paused birch fable 109 paused delta birch 63 paused cobalt grove 62 failed harbor juniper 89 ready harbor indigo 78 pending amber fable 74
103 115 88 12 109 63 62 89 78 74
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005266-p1
Output the final field from every line in the input.
{print $NF}
ready amber harbor 66 paused juniper grove 105 active ember cobalt 5 closed ember fable 7 active cobalt amber 32 paused delta ember 91 pending harbor grove 35
66 105 5 7 32 91 35
active ember ember 103 pending delta delta 115 ready ember juniper 88 pending delta ember 12 paused birch fable 109 paused delta birch 63 paused cobalt grove 62 failed harbor juniper 89 ready harbor indigo 78 pending amber fable 74
103 115 88 12 109 63 62 89 78 74
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005266
qwen/qwen3.7-plus
awkweave-0005267
Print the complete records where column 1 is at most 53.
$1 <= 53
94 eli pending 92 lina ready 86 dina failed 30 dina paused 103 bruno pending 4 eli failed 15 kim closed 118 dina paused 50 ivan ready
30 dina paused 4 eli failed 15 kim closed 50 ivan ready
35 kim closed 55 dina active 112 gus pending 77 bruno failed 100 kim pending 33 jules pending
35 kim closed 33 jules pending
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005267-p1
Print the entire record for any row where the value in the first column is less than or equal to 53.
$1 <= 53
94 eli pending 92 lina ready 86 dina failed 30 dina paused 103 bruno pending 4 eli failed 15 kim closed 118 dina paused 50 ivan ready
30 dina paused 4 eli failed 15 kim closed 50 ivan ready
35 kim closed 55 dina active 112 gus pending 77 bruno failed 100 kim pending 33 jules pending
35 kim closed 33 jules pending
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005267
qwen/qwen3.7-plus
awkweave-0005268
Show whole lines whose 3rd field is between 9 and 18, inclusive.
$3 >= 9 && $3 <= 18
grove juniper 11 failed juniper juniper 30 ready ember juniper 26 closed birch juniper 17 pending harbor amber 8 failed fable harbor 6 failed ember grove 21 failed
grove juniper 11 failed birch juniper 17 pending
fable fable 25 ready cobalt birch 11 closed grove juniper 17 paused delta birch 17 ready juniper cobalt 14 failed ember harbor 3 failed harbor juniper 15 pending ember indigo 1 paused amber juniper 2 failed
cobalt birch 11 closed grove juniper 17 paused delta birch 17 ready juniper cobalt 14 failed harbor juniper 15 pending
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005268-p1
Display complete lines where the value in the third field falls within the inclusive range of 9 to 18.
$3 >= 9 && $3 <= 18
grove juniper 11 failed juniper juniper 30 ready ember juniper 26 closed birch juniper 17 pending harbor amber 8 failed fable harbor 6 failed ember grove 21 failed
grove juniper 11 failed birch juniper 17 pending
fable fable 25 ready cobalt birch 11 closed grove juniper 17 paused delta birch 17 ready juniper cobalt 14 failed ember harbor 3 failed harbor juniper 15 pending ember indigo 1 paused amber juniper 2 failed
cobalt birch 11 closed grove juniper 17 paused delta birch 17 ready juniper cobalt 14 failed harbor juniper 15 pending
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005268
qwen/qwen3.7-plus
awkweave-0005269
Print column 4 only for rows where column 3 is exactly pending.
$3 == "pending"{print $4}
cobalt 42 closed alice cobalt 56 paused jules indigo 0 active jules cobalt 33 pending kim juniper 6 paused jules birch 105 pending dina cobalt 48 paused chen cobalt 55 pending dina harbor 112 paused chen indigo 83 failed kim
kim dina dina
grove 15 failed dina birch 15 active hana birch 13 closed chen juniper 71 failed hana juniper 63 ready jules fable 106 closed chen amber 19 paused jules cobalt 60 closed gus indigo 11 closed alice fable 50 pending ivan
ivan
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0005269-p1
Output only the fourth column for rows where the third column contains the exact string 'pending'.
$3 == "pending"{print $4}
cobalt 42 closed alice cobalt 56 paused jules indigo 0 active jules cobalt 33 pending kim juniper 6 paused jules birch 105 pending dina cobalt 48 paused chen cobalt 55 pending dina harbor 112 paused chen indigo 83 failed kim
kim dina dina
grove 15 failed dina birch 15 active hana birch 13 closed chen juniper 71 failed hana juniper 63 ready jules fable 106 closed chen amber 19 paused jules cobalt 60 closed gus indigo 11 closed alice fable 50 pending ivan
ivan
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0005269
qwen/qwen3.7-plus
awkweave-0005270
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
indigo WARN 8 birch DEBUG 58 juniper ERROR 24 grove DEBUG 69 grove DEBUG 112 juniper ERROR 59 juniper DEBUG 112 cobalt INFO 18 amber DEBUG 1
juniper ERROR 24 juniper ERROR 59
grove DEBUG 83 grove WARN 3 ember DEBUG 94 amber ERROR 109 fable ERROR 53 indigo INFO 74 fable DEBUG 70
amber ERROR 109 fable ERROR 53
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null