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-0013220-p1
Output the three full 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 birch 23 alice juniper 30 hana cobalt 4 bruno harbor 1 alice birch 19 farah harbor 30
alice juniper 30 farah harbor 30 dina birch 23
lina birch 9 alice juniper 22 kim delta 24 dina fable 16 kim juniper 16 bruno birch 2 kim amber 27 chen cobalt 22 hana cobalt 15
kim amber 27 kim delta 24 alice juniper 22
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013220
qwen/qwen3.7-plus
awkweave-0013221
For each line, output fields 3 and 1, in that order.
{print $3, $1}
18 cobalt ember 6 paused fable 70 fable amber 70 closed juniper 67 fable ember 76 failed birch 115 ember fable 105 paused indigo 19 cobalt ember 31 active fable 1 amber birch 34 ready ember 85 juniper indigo 36 active ember
ember 18 amber 70 ember 67 fable 115 ember 19 birch 1 indigo 85
63 cobalt cobalt 88 paused amber 3 harbor ember 49 ready cobalt 15 delta indigo 105 closed juniper 33 birch indigo 81 paused ember 11 birch indigo 76 paused cobalt 119 birch amber 60 active harbor 18 amber fable 79 paused ember 25 birch birch 28 pending indigo 93 ember amber 70 paused harbor 86 grove indigo 29 closed h...
cobalt 63 ember 3 indigo 15 indigo 33 indigo 11 amber 119 fable 18 birch 25 amber 93 indigo 86
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013221-p1
For each line, print the third field followed by the first field.
{print $3, $1}
18 cobalt ember 6 paused fable 70 fable amber 70 closed juniper 67 fable ember 76 failed birch 115 ember fable 105 paused indigo 19 cobalt ember 31 active fable 1 amber birch 34 ready ember 85 juniper indigo 36 active ember
ember 18 amber 70 ember 67 fable 115 ember 19 birch 1 indigo 85
63 cobalt cobalt 88 paused amber 3 harbor ember 49 ready cobalt 15 delta indigo 105 closed juniper 33 birch indigo 81 paused ember 11 birch indigo 76 paused cobalt 119 birch amber 60 active harbor 18 amber fable 79 paused ember 25 birch birch 28 pending indigo 93 ember amber 70 paused harbor 86 grove indigo 29 closed h...
cobalt 63 ember 3 indigo 15 indigo 33 indigo 11 amber 119 fable 18 birch 25 amber 93 indigo 86
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013221
qwen/qwen3.7-plus
awkweave-0013222
Print the last field of every input line.
{print $NF}
pending active amber pending closed harbor failed active indigo ready ready delta paused closed birch ready paused amber ready failed indigo ready failed indigo active failed indigo pending active ember
amber harbor indigo delta birch amber indigo indigo indigo ember
active paused fable active pending amber failed closed birch failed active ember active failed cobalt paused active juniper active ready indigo closed paused delta pending active fable
fable amber birch ember cobalt juniper indigo delta fable
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013222-p1
Print the final field from every line of input.
{print $NF}
pending active amber pending closed harbor failed active indigo ready ready delta paused closed birch ready paused amber ready failed indigo ready failed indigo active failed indigo pending active ember
amber harbor indigo delta birch amber indigo indigo indigo ember
active paused fable active pending amber failed closed birch failed active ember active failed cobalt paused active juniper active ready indigo closed paused delta pending active fable
fable amber birch ember cobalt juniper indigo delta fable
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013222
qwen/qwen3.7-plus
awkweave-0013223
Print the complete records where column 2 is greater than 65.
$2 > 65
active 91 gus cobalt ready 19 lina cobalt paused 95 bruno fable pending 30 hana ember pending 100 farah indigo closed 96 alice grove ready 49 chen indigo
active 91 gus cobalt paused 95 bruno fable pending 100 farah indigo closed 96 alice grove
pending 61 ivan cobalt paused 8 bruno ember ready 83 alice juniper ready 76 bruno amber ready 52 gus grove active 116 jules indigo
ready 83 alice juniper ready 76 bruno amber active 116 jules indigo
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013223-p1
Output the full records for which the value in column 2 is greater than 65.
$2 > 65
active 91 gus cobalt ready 19 lina cobalt paused 95 bruno fable pending 30 hana ember pending 100 farah indigo closed 96 alice grove ready 49 chen indigo
active 91 gus cobalt paused 95 bruno fable pending 100 farah indigo closed 96 alice grove
pending 61 ivan cobalt paused 8 bruno ember ready 83 alice juniper ready 76 bruno amber ready 52 gus grove active 116 jules indigo
ready 83 alice juniper ready 76 bruno amber active 116 jules indigo
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013223
qwen/qwen3.7-plus
awkweave-0013224
Show whole lines whose 2nd field is between 4 and 18, inclusive.
$2 >= 4 && $2 <= 18
gus 22 hana amber jules 5 eli cobalt hana 12 kim indigo bruno 3 gus juniper farah 29 chen delta kim 12 kim indigo chen 11 alice delta
jules 5 eli cobalt hana 12 kim indigo kim 12 kim indigo chen 11 alice delta
ivan 19 chen delta farah 5 hana fable bruno 11 bruno birch kim 22 jules amber bruno 13 hana grove bruno 2 ivan ember dina 7 jules ember ivan 18 ivan harbor chen 15 alice delta
farah 5 hana fable bruno 11 bruno birch bruno 13 hana grove dina 7 jules ember ivan 18 ivan harbor chen 15 alice delta
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013224-p1
Display complete lines where the second field falls within the inclusive range of 4 to 18.
$2 >= 4 && $2 <= 18
gus 22 hana amber jules 5 eli cobalt hana 12 kim indigo bruno 3 gus juniper farah 29 chen delta kim 12 kim indigo chen 11 alice delta
jules 5 eli cobalt hana 12 kim indigo kim 12 kim indigo chen 11 alice delta
ivan 19 chen delta farah 5 hana fable bruno 11 bruno birch kim 22 jules amber bruno 13 hana grove bruno 2 ivan ember dina 7 jules ember ivan 18 ivan harbor chen 15 alice delta
farah 5 hana fable bruno 11 bruno birch bruno 13 hana grove dina 7 jules ember ivan 18 ivan harbor chen 15 alice delta
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013224
qwen/qwen3.7-plus
awkweave-0013225
Print column 4 only for rows where column 2 is exactly active.
$2 == "active"{print $4}
28 ready ember eli 62 paused delta chen 115 failed harbor jules 82 pending amber bruno 86 closed cobalt ivan 34 active harbor alice
alice
55 pending fable eli 108 closed fable gus 79 pending harbor alice 98 closed cobalt ivan 38 pending grove gus 79 pending harbor bruno 95 pending ember lina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013225-p1
Output only the fourth column for rows where the second column is strictly equal to active.
$2 == "active"{print $4}
28 ready ember eli 62 paused delta chen 115 failed harbor jules 82 pending amber bruno 86 closed cobalt ivan 34 active harbor alice
alice
55 pending fable eli 108 closed fable gus 79 pending harbor alice 98 closed cobalt ivan 38 pending grove gus 79 pending harbor bruno 95 pending ember lina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013225
qwen/qwen3.7-plus
awkweave-0013226
Print all fields from lines where field 3 begins with ERROR.
$3 ~ /^ERROR/
21 cobalt ERROR 79 grove DEBUG 79 amber ERROR 61 amber WARN 68 juniper ERROR 24 birch DEBUG 15 delta INFO 60 cobalt DEBUG 95 birch DEBUG
21 cobalt ERROR 79 amber ERROR 68 juniper ERROR
105 harbor WARN 96 birch DEBUG 82 fable DEBUG 86 juniper ERROR 65 harbor WARN 74 ember INFO
86 juniper ERROR
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013226-p1
Print all fields from lines where the third field starts with the prefix ERROR.
$3 ~ /^ERROR/
21 cobalt ERROR 79 grove DEBUG 79 amber ERROR 61 amber WARN 68 juniper ERROR 24 birch DEBUG 15 delta INFO 60 cobalt DEBUG 95 birch DEBUG
21 cobalt ERROR 79 amber ERROR 68 juniper ERROR
105 harbor WARN 96 birch DEBUG 82 fable DEBUG 86 juniper ERROR 65 harbor WARN 74 ember INFO
86 juniper ERROR
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013226
qwen/qwen3.7-plus
awkweave-0013227
Print every line except those containing the exact text ember.
$0 !~ /ember/
amber 20 paused harbor 30 pending birch 119 ready amber 112 paused indigo 2 active juniper 19 active ember 999 active
amber 20 paused harbor 30 pending birch 119 ready amber 112 paused indigo 2 active juniper 19 active
cobalt 94 ready birch 23 ready fable 79 failed harbor 33 ready birch 14 closed birch 95 paused ember 97 failed fable 79 pending ember 999 active
cobalt 94 ready birch 23 ready fable 79 failed harbor 33 ready birch 14 closed birch 95 paused fable 79 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013227-p1
Output every line that does not contain the exact string ember.
$0 !~ /ember/
amber 20 paused harbor 30 pending birch 119 ready amber 112 paused indigo 2 active juniper 19 active ember 999 active
amber 20 paused harbor 30 pending birch 119 ready amber 112 paused indigo 2 active juniper 19 active
cobalt 94 ready birch 23 ready fable 79 failed harbor 33 ready birch 14 closed birch 95 paused ember 97 failed fable 79 pending ember 999 active
cobalt 94 ready birch 23 ready fable 79 failed harbor 33 ready birch 14 closed birch 95 paused fable 79 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013227
qwen/qwen3.7-plus
awkweave-0013228
Print lines 3 through 6, including both endpoints.
NR >= 3 && NR <= 6
dina amber 31 chen birch 96 bruno juniper 16 eli delta 8 jules amber 40 jules cobalt 9 alice grove 89 gus delta 72 alice amber 61 ivan cobalt 93
bruno juniper 16 eli delta 8 jules amber 40 jules cobalt 9
chen juniper 71 lina harbor 119 eli fable 51 eli grove 71 gus delta 84 lina birch 86 dina ember 34
eli fable 51 eli grove 71 gus delta 84 lina birch 86
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013228-p1
Print lines 3 through 6, inclusive of both the start and end lines.
NR >= 3 && NR <= 6
dina amber 31 chen birch 96 bruno juniper 16 eli delta 8 jules amber 40 jules cobalt 9 alice grove 89 gus delta 72 alice amber 61 ivan cobalt 93
bruno juniper 16 eli delta 8 jules amber 40 jules cobalt 9
chen juniper 71 lina harbor 119 eli fable 51 eli grove 71 gus delta 84 lina birch 86 dina ember 34
eli fable 51 eli grove 71 gus delta 84 lina birch 86
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013228
qwen/qwen3.7-plus
awkweave-0013229
Output only the first 5 records.
NR <= 5
eli 114 cobalt hana 55 ember farah 3 birch kim 76 juniper lina 114 indigo jules 36 cobalt
eli 114 cobalt hana 55 ember farah 3 birch kim 76 juniper lina 114 indigo
dina 5 indigo farah 108 birch kim 25 birch gus 99 delta eli 73 harbor hana 87 juniper jules 95 fable
dina 5 indigo farah 108 birch kim 25 birch gus 99 delta eli 73 harbor
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013229-p1
Output only the first 5 records from the input.
NR <= 5
eli 114 cobalt hana 55 ember farah 3 birch kim 76 juniper lina 114 indigo jules 36 cobalt
eli 114 cobalt hana 55 ember farah 3 birch kim 76 juniper lina 114 indigo
dina 5 indigo farah 108 birch kim 25 birch gus 99 delta eli 73 harbor hana 87 juniper jules 95 fable
dina 5 indigo farah 108 birch kim 25 birch gus 99 delta eli 73 harbor
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013229
qwen/qwen3.7-plus
awkweave-0013230
Skip the first line and print every remaining line unchanged.
NR > 1
ivan 102 birch eli 28 cobalt farah 77 cobalt lina 69 juniper alice 51 delta ivan 31 indigo kim 23 fable
eli 28 cobalt farah 77 cobalt lina 69 juniper alice 51 delta ivan 31 indigo kim 23 fable
bruno 91 delta dina 34 cobalt ivan 79 grove jules 33 grove dina 59 indigo ivan 112 cobalt jules 105 grove farah 27 juniper
dina 34 cobalt ivan 79 grove jules 33 grove dina 59 indigo ivan 112 cobalt jules 105 grove farah 27 juniper
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013230-p1
Omit the first line and print all subsequent lines exactly as they appear.
NR > 1
ivan 102 birch eli 28 cobalt farah 77 cobalt lina 69 juniper alice 51 delta ivan 31 indigo kim 23 fable
eli 28 cobalt farah 77 cobalt lina 69 juniper alice 51 delta ivan 31 indigo kim 23 fable
bruno 91 delta dina 34 cobalt ivan 79 grove jules 33 grove dina 59 indigo ivan 112 cobalt jules 105 grove farah 27 juniper
dina 34 cobalt ivan 79 grove jules 33 grove dina 59 indigo ivan 112 cobalt jules 105 grove farah 27 juniper
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013230
qwen/qwen3.7-plus
awkweave-0013231
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
eli failed 62 eli paused 55 chen closed 65 gus active 77 lina paused 78 dina pending 96 eli failed 78 hana closed 20 alice ready 35 chen failed 48
3
kim active 47 ivan closed 106 bruno paused 25 gus pending 102 dina pending 90 kim active 104
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013231-p1
Count the number of records where the second column is failed, outputting 0 if no such records exist.
$2 == "failed"{n++}END{print n+0}
eli failed 62 eli paused 55 chen closed 65 gus active 77 lina paused 78 dina pending 96 eli failed 78 hana closed 20 alice ready 35 chen failed 48
3
kim active 47 ivan closed 106 bruno paused 25 gus pending 102 dina pending 90 kim active 104
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013231
qwen/qwen3.7-plus
awkweave-0013232
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
fable alice 14 indigo lina 6 juniper gus 22 grove chen 19 juniper kim 6 cobalt gus 20 cobalt chen 23 delta kim 11
121
grove lina 14 amber hana 6 fable chen 14 fable bruno 22 indigo eli 19 juniper bruno 28 cobalt eli 9 juniper alice 9 grove alice 1 harbor lina 1
123
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013232-p1
Compute and display the sum of all integer values found in the third column.
{s+=$3}END{print s+0}
fable alice 14 indigo lina 6 juniper gus 22 grove chen 19 juniper kim 6 cobalt gus 20 cobalt chen 23 delta kim 11
121
grove lina 14 amber hana 6 fable chen 14 fable bruno 22 indigo eli 19 juniper bruno 28 cobalt eli 9 juniper alice 9 grove alice 1 harbor lina 1
123
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013232
qwen/qwen3.7-plus
awkweave-0013233
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
30 farah indigo 28 ivan birch 24 ivan delta 22 hana indigo 9 hana juniper 11 ivan harbor 12 hana fable 15 kim birch
18.88
17 dina ember 17 kim ember 14 gus juniper 13 jules juniper 14 ivan amber 27 dina amber 24 alice indigo
18.00
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013233-p1
Calculate and print the average of the values in the first column, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
30 farah indigo 28 ivan birch 24 ivan delta 22 hana indigo 9 hana juniper 11 ivan harbor 12 hana fable 15 kim birch
18.88
17 dina ember 17 kim ember 14 gus juniper 13 jules juniper 14 ivan amber 27 dina amber 24 alice indigo
18.00
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013233
qwen/qwen3.7-plus
awkweave-0013234
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
27 indigo eli 23 indigo farah 2 birch chen 26 birch kim 17 ember alice 7 grove dina 10 delta kim 5 ember kim
2
16 grove ivan 29 indigo bruno 22 cobalt eli 18 birch lina 6 amber ivan 17 grove hana 29 birch farah 3 indigo lina
3
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013234-p1
Identify and print the minimum numeric value present in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
27 indigo eli 23 indigo farah 2 birch chen 26 birch kim 17 ember alice 7 grove dina 10 delta kim 5 ember kim
2
16 grove ivan 29 indigo bruno 22 cobalt eli 18 birch lina 6 amber ivan 17 grove hana 29 birch farah 3 indigo lina
3
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013234
qwen/qwen3.7-plus
awkweave-0013235
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
8 ivan birch 10 kim cobalt 11 dina ember 8 chen birch 20 farah harbor 12 ivan birch 13 hana juniper
20
29 alice harbor 30 lina ember 25 dina indigo 5 lina juniper 20 chen fable 30 kim juniper 12 hana fable 22 gus indigo 5 alice grove
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013235-p1
Identify and print the maximum numeric value present in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
8 ivan birch 10 kim cobalt 11 dina ember 8 chen birch 20 farah harbor 12 ivan birch 13 hana juniper
20
29 alice harbor 30 lina ember 25 dina indigo 5 lina juniper 20 chen fable 30 kim juniper 12 hana fable 22 gus indigo 5 alice grove
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013235
qwen/qwen3.7-plus
awkweave-0013236
Count all input records and print the total.
END{print NR}
gus 85 ivan 70 dina 106 dina 31 hana 97 hana 54 eli 112 dina 52 eli 67
9
eli 36 gus 110 alice 4 chen 50 kim 56 ivan 61 lina 56
7
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013236-p1
Output the total count of all input records.
END{print NR}
gus 85 ivan 70 dina 106 dina 31 hana 97 hana 54 eli 112 dina 52 eli 67
9
eli 36 gus 110 alice 4 chen 50 kim 56 ivan 61 lina 56
7
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013236
qwen/qwen3.7-plus
awkweave-0013237
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
lina juniper 109 bruno indigo 10 ivan juniper 50 kim fable 72 farah grove 14 gus cobalt 21 bruno ember 48 farah amber 53 eli juniper 59 dina delta 106 gus cobalt 21
lina juniper 109 bruno indigo 10 ivan juniper 50 kim fable 72 farah grove 14 gus cobalt 21 bruno ember 48 farah amber 53 eli juniper 59 dina delta 106
gus grove 68 gus delta 39 dina amber 52 chen indigo 70 gus grove 68 jules fable 3 chen fable 116 jules ember 28 gus ember 100 alice fable 67 alice grove 88
gus grove 68 gus delta 39 dina amber 52 chen indigo 70 jules fable 3 chen fable 116 jules ember 28 gus ember 100 alice fable 67 alice grove 88
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013237-p1
Eliminate exact duplicate lines while maintaining the original sequence and keeping the first instance.
!seen[$0]++
lina juniper 109 bruno indigo 10 ivan juniper 50 kim fable 72 farah grove 14 gus cobalt 21 bruno ember 48 farah amber 53 eli juniper 59 dina delta 106 gus cobalt 21
lina juniper 109 bruno indigo 10 ivan juniper 50 kim fable 72 farah grove 14 gus cobalt 21 bruno ember 48 farah amber 53 eli juniper 59 dina delta 106
gus grove 68 gus delta 39 dina amber 52 chen indigo 70 gus grove 68 jules fable 3 chen fable 116 jules ember 28 gus ember 100 alice fable 67 alice grove 88
gus grove 68 gus delta 39 dina amber 52 chen indigo 70 jules fable 3 chen fable 116 jules ember 28 gus ember 100 alice fable 67 alice grove 88
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013237
qwen/qwen3.7-plus
awkweave-0013238
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
hana cobalt 97 kim harbor 79 jules ember 22 hana indigo 77 bruno delta 34 gus delta 61 chen juniper 0 farah grove 53 kim juniper 115
hana cobalt 97 kim harbor 79 jules ember 22 hana indigo 77 bruno delta 34 gus delta 61 chen juniper 0 farah grove 53 kim juniper 115
eli juniper 19 eli birch 82 farah cobalt 69 dina fable 103 ivan indigo 112 hana fable 10
eli juniper 19 eli birch 82 farah cobalt 69 dina fable 103 ivan indigo 112 hana fable 10
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013238-p1
Retain only the initial row for every unique value found in column 3, ensuring the original input order is preserved.
!seen[$3]++
hana cobalt 97 kim harbor 79 jules ember 22 hana indigo 77 bruno delta 34 gus delta 61 chen juniper 0 farah grove 53 kim juniper 115
hana cobalt 97 kim harbor 79 jules ember 22 hana indigo 77 bruno delta 34 gus delta 61 chen juniper 0 farah grove 53 kim juniper 115
eli juniper 19 eli birch 82 farah cobalt 69 dina fable 103 ivan indigo 112 hana fable 10
eli juniper 19 eli birch 82 farah cobalt 69 dina fable 103 ivan indigo 112 hana fable 10
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013238
qwen/qwen3.7-plus
awkweave-0013239
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
dina 29 harbor bruno 27 juniper chen 21 cobalt eli 10 fable jules 21 juniper bruno 13 harbor
dina 29 bruno 56 chen 77 eli 87 jules 108 bruno 121
ivan 13 ember farah 25 fable jules 3 cobalt dina 17 cobalt gus 21 birch hana 18 fable gus 23 indigo lina 26 juniper ivan 15 juniper lina 12 grove
ivan 13 farah 38 jules 41 dina 58 gus 79 hana 97 gus 120 lina 146 ivan 161 lina 173
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013239-p1
For each entry, output column 1 alongside the cumulative sum of column 2, using a space as the delimiter.
{s+=$2;print $1,s}
dina 29 harbor bruno 27 juniper chen 21 cobalt eli 10 fable jules 21 juniper bruno 13 harbor
dina 29 bruno 56 chen 77 eli 87 jules 108 bruno 121
ivan 13 ember farah 25 fable jules 3 cobalt dina 17 cobalt gus 21 birch hana 18 fable gus 23 indigo lina 26 juniper ivan 15 juniper lina 12 grove
ivan 13 farah 38 jules 41 dina 58 gus 79 hana 97 gus 120 lina 146 ivan 161 lina 173
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013239
qwen/qwen3.7-plus
awkweave-0013240
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
dina 8 25 ember jules 19 1 indigo eli 16 19 amber gus 9 17 juniper jules 1 4 ember gus 4 10 birch chen 26 9 juniper hana 24 15 fable
dina 33 jules 20 eli 35 gus 26 jules 5 gus 14 chen 35 hana 39
jules 2 26 birch hana 4 26 grove chen 24 29 birch ivan 12 18 harbor kim 18 13 harbor chen 19 1 indigo
jules 28 hana 30 chen 53 ivan 30 kim 31 chen 20
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013240-p1
Display field 1 followed by the sum of fields 2 and 3 for every row.
{print $1,$2+$3}
dina 8 25 ember jules 19 1 indigo eli 16 19 amber gus 9 17 juniper jules 1 4 ember gus 4 10 birch chen 26 9 juniper hana 24 15 fable
dina 33 jules 20 eli 35 gus 26 jules 5 gus 14 chen 35 hana 39
jules 2 26 birch hana 4 26 grove chen 24 29 birch ivan 12 18 harbor kim 18 13 harbor chen 19 1 indigo
jules 28 hana 30 chen 53 ivan 30 kim 31 chen 20
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013240
qwen/qwen3.7-plus
awkweave-0013241
Print column 1 and pass when column 2 is at least 23; otherwise print fail.
{print $1,($2>=23?"pass":"fail")}
dina 3 ivan 10 kim 27 dina 5 bruno 26 ivan 22 bruno 29
dina fail ivan fail kim pass dina fail bruno pass ivan fail bruno pass
gus 12 gus 4 farah 1 ivan 10 kim 2 chen 21
gus fail gus fail farah fail ivan fail kim fail chen fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013241-p1
Output column 1 with 'pass' if column 2 is greater than or equal to 23; otherwise, output 'fail'.
{print $1,($2>=23?"pass":"fail")}
dina 3 ivan 10 kim 27 dina 5 bruno 26 ivan 22 bruno 29
dina fail ivan fail kim pass dina fail bruno pass ivan fail bruno pass
gus 12 gus 4 farah 1 ivan 10 kim 2 chen 21
gus fail gus fail farah fail ivan fail kim fail chen fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013241
qwen/qwen3.7-plus
awkweave-0013242
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
kim birch 118 bruno juniper 30 jules fable 49 chen harbor 29 kim delta 89 dina indigo 61 gus delta 37 gus amber 20
BIRCH JUNIPER FABLE HARBOR DELTA INDIGO DELTA AMBER
hana amber 8 chen birch 50 alice grove 37 chen delta 35 ivan ember 83 eli harbor 8 kim indigo 103 lina delta 91 lina grove 100
AMBER BIRCH GROVE DELTA EMBER HARBOR INDIGO DELTA GROVE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013242-p1
Transform column 2 to uppercase and display only that column.
{print toupper($2)}
kim birch 118 bruno juniper 30 jules fable 49 chen harbor 29 kim delta 89 dina indigo 61 gus delta 37 gus amber 20
BIRCH JUNIPER FABLE HARBOR DELTA INDIGO DELTA AMBER
hana amber 8 chen birch 50 alice grove 37 chen delta 35 ivan ember 83 eli harbor 8 kim indigo 103 lina delta 91 lina grove 100
AMBER BIRCH GROVE DELTA EMBER HARBOR INDIGO DELTA GROVE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013242
qwen/qwen3.7-plus
awkweave-0013243
From column 1, print 2 characters starting at character 2.
{print substr($1,2,2)}
indigo 13 grove 23 juniper 54 amber 81 birch 6 juniper 4 indigo 109 indigo 28 harbor 79 grove 58
nd ro un mb ir un nd nd ar ro
cobalt 79 birch 61 fable 100 ember 21 harbor 44 ember 68 harbor 93
ob ir ab mb ar mb ar
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013243-p1
Extract and print a 2-character substring from column 1, starting at the second character.
{print substr($1,2,2)}
indigo 13 grove 23 juniper 54 amber 81 birch 6 juniper 4 indigo 109 indigo 28 harbor 79 grove 58
nd ro un mb ir un nd nd ar ro
cobalt 79 birch 61 fable 100 ember 21 harbor 44 ember 68 harbor 93
ob ir ab mb ar mb ar
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013243
qwen/qwen3.7-plus
awkweave-0013244
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
grove_cobalt 29 indigo_juniper 100 indigo_juniper 86 juniper_grove 44 indigo_juniper 13 harbor_cobalt 73 fable_indigo 65 ember_grove 39 indigo_cobalt 42 amber_indigo 89
grove cobalt indigo juniper indigo juniper juniper grove indigo juniper harbor cobalt fable indigo ember grove indigo cobalt amber indigo
cobalt_cobalt 44 grove_ember 74 indigo_harbor 44 indigo_amber 117 grove_delta 117 juniper_indigo 93 indigo_juniper 115 cobalt_delta 79 fable_fable 96 harbor_delta 48
cobalt cobalt grove ember indigo harbor indigo amber grove delta juniper indigo indigo juniper cobalt delta fable fable harbor delta
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013244-p1
Substitute all underscores in column 1 with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
grove_cobalt 29 indigo_juniper 100 indigo_juniper 86 juniper_grove 44 indigo_juniper 13 harbor_cobalt 73 fable_indigo 65 ember_grove 39 indigo_cobalt 42 amber_indigo 89
grove cobalt indigo juniper indigo juniper juniper grove indigo juniper harbor cobalt fable indigo ember grove indigo cobalt amber indigo
cobalt_cobalt 44 grove_ember 74 indigo_harbor 44 indigo_amber 117 grove_delta 117 juniper_indigo 93 indigo_juniper 115 cobalt_delta 79 fable_fable 96 harbor_delta 48
cobalt cobalt grove ember indigo harbor indigo amber grove delta juniper indigo indigo juniper cobalt delta fable fable harbor delta
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013244
qwen/qwen3.7-plus
awkweave-0013245
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)}
kim grove 108 ready bruno fable 45 paused hana grove 104 paused ivan amber 40 failed lina delta 30 pending alice delta 82 pending kim juniper 53 failed hana cobalt 18 active jules harbor 22 paused gus ember 90 failed
ready 108 grove kim paused 45 fable bruno paused 104 grove hana failed 40 amber ivan pending 30 delta lina pending 82 delta alice failed 53 juniper kim active 18 cobalt hana paused 22 harbor jules failed 90 ember gus
dina amber 29 active bruno ember 1 ready eli amber 0 failed alice delta 113 failed gus amber 88 failed eli fable 32 pending ivan grove 6 paused lina amber 21 failed
active 29 amber dina ready 1 ember bruno failed 0 amber eli failed 113 delta alice failed 88 amber gus pending 32 fable eli paused 6 grove ivan failed 21 amber lina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013245-p1
Reverse the sequence of fields for each line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
kim grove 108 ready bruno fable 45 paused hana grove 104 paused ivan amber 40 failed lina delta 30 pending alice delta 82 pending kim juniper 53 failed hana cobalt 18 active jules harbor 22 paused gus ember 90 failed
ready 108 grove kim paused 45 fable bruno paused 104 grove hana failed 40 amber ivan pending 30 delta lina pending 82 delta alice failed 53 juniper kim active 18 cobalt hana paused 22 harbor jules failed 90 ember gus
dina amber 29 active bruno ember 1 ready eli amber 0 failed alice delta 113 failed gus amber 88 failed eli fable 32 pending ivan grove 6 paused lina amber 21 failed
active 29 amber dina ready 1 ember bruno failed 0 amber eli failed 113 delta alice failed 88 amber gus pending 32 fable eli paused 6 grove ivan failed 21 amber lina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013245
qwen/qwen3.7-plus
awkweave-0013246
Print the number of whitespace-separated fields on each line.
{print NF}
kim ember 4 failed kim fable 70 active kim birch 7 active bruno juniper 21 active alice delta 109 closed kim indigo 34 active chen juniper 69 paused ivan fable 104 failed jules birch 5 failed ivan delta 116 pending
4 4 4 4 4 4 4 4 4 4
chen harbor 92 pending chen ember 0 closed dina cobalt 50 closed eli amber 102 failed alice cobalt 74 paused hana juniper 14 closed dina cobalt 120 pending kim ember 94 closed lina fable 84 paused gus delta 100 paused
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013246-p1
Print the count of whitespace-delimited fields for each line.
{print NF}
kim ember 4 failed kim fable 70 active kim birch 7 active bruno juniper 21 active alice delta 109 closed kim indigo 34 active chen juniper 69 paused ivan fable 104 failed jules birch 5 failed ivan delta 116 pending
4 4 4 4 4 4 4 4 4 4
chen harbor 92 pending chen ember 0 closed dina cobalt 50 closed eli amber 102 failed alice cobalt 74 paused hana juniper 14 closed dina cobalt 120 pending kim ember 94 closed lina fable 84 paused gus delta 100 paused
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013246
qwen/qwen3.7-plus
awkweave-0013247
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]]}
farah alpha 14 kim beta 19 hana beta 74 chen delta 18 jules beta 43 eli delta 89 kim delta 97 dina delta 54
alpha 1 beta 3 delta 4
farah beta 31 dina alpha 95 bruno delta 22 jules alpha 4 lina alpha 95 eli gamma 51 eli beta 107 jules beta 24 eli gamma 65 alice alpha 113
beta 3 alpha 4 delta 1 gamma 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013247-p1
Tally the number of records for each distinct value in column 2, printing the value and its count in the 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]]}
farah alpha 14 kim beta 19 hana beta 74 chen delta 18 jules beta 43 eli delta 89 kim delta 97 dina delta 54
alpha 1 beta 3 delta 4
farah beta 31 dina alpha 95 bruno delta 22 jules alpha 4 lina alpha 95 eli gamma 51 eli beta 107 jules beta 24 eli gamma 65 alice alpha 113
beta 3 alpha 4 delta 1 gamma 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013247
qwen/qwen3.7-plus
awkweave-0013248
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 alpha 9 farah gamma 6 lina gamma 4 hana delta 7 dina delta 2 farah beta 27 dina beta 17 farah delta 18 kim gamma 2
alpha 9 gamma 12 delta 27 beta 44
eli gamma 3 hana beta 29 gus gamma 7 kim gamma 29 ivan alpha 18 dina beta 16
gamma 39 beta 45 alpha 18
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013248-p1
Group by the values in column 2 and sum the corresponding entries in column 3, outputting the results in the order the groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
ivan alpha 9 farah gamma 6 lina gamma 4 hana delta 7 dina delta 2 farah beta 27 dina beta 17 farah delta 18 kim gamma 2
alpha 9 gamma 12 delta 27 beta 44
eli gamma 3 hana beta 29 gus gamma 7 kim gamma 29 ivan alpha 18 dina beta 16
gamma 39 beta 45 alpha 18
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013248
qwen/qwen3.7-plus
awkweave-0013249
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]]}
delta amber 2 delta amber 108 gamma ember 88 beta ember 32 beta fable 77 beta harbor 19 beta fable 85 gamma amber 24 gamma harbor 32 gamma fable 17
delta 2 gamma 4 beta 4
delta cobalt 27 beta grove 47 alpha indigo 111 beta indigo 98 gamma ember 113 beta harbor 57
beta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013249-p1
Identify duplicate values in column 1, count their occurrences, and list them sorted by their 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]]}
delta amber 2 delta amber 108 gamma ember 88 beta ember 32 beta fable 77 beta harbor 19 beta fable 85 gamma amber 24 gamma harbor 32 gamma fable 17
delta 2 gamma 4 beta 4
delta cobalt 27 beta grove 47 alpha indigo 111 beta indigo 98 gamma ember 113 beta harbor 57
beta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013249
qwen/qwen3.7-plus
awkweave-0013250
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"]}
record_id region score display_name r001 farah 11 paused r002 hana 14 pending r003 hana 3 ready r004 jules 10 paused r005 eli 27 pending r006 hana 12 closed r007 alice 18 paused r008 eli 23 closed r009 ivan 16 paused r010 ivan 22 pending
farah hana hana jules eli hana alice eli ivan ivan
record_id region score display_name r001 bruno 10 ready r002 dina 26 pending r003 kim 11 failed r004 kim 20 paused r005 bruno 11 pending r006 chen 29 closed r007 jules 26 closed r008 hana 13 closed r009 bruno 24 pending
bruno dina kim kim bruno chen jules hana bruno
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013250-p1
Skip the header row and output the values from the region column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
record_id region score display_name r001 farah 11 paused r002 hana 14 pending r003 hana 3 ready r004 jules 10 paused r005 eli 27 pending r006 hana 12 closed r007 alice 18 paused r008 eli 23 closed r009 ivan 16 paused r010 ivan 22 pending
farah hana hana jules eli hana alice eli ivan ivan
record_id region score display_name r001 bruno 10 ready r002 dina 26 pending r003 kim 11 failed r004 kim 20 paused r005 bruno 11 pending r006 chen 29 closed r007 jules 26 closed r008 hana 13 closed r009 bruno 24 pending
bruno dina kim kim bruno chen jules hana bruno
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013250
qwen/qwen3.7-plus
awkweave-0013251
The first row is a header. Print display_name for data rows whose score is greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 alice 20 active r002 bruno 18 paused r003 alice 23 closed r004 farah 5 pending r005 lina 3 ready r006 bruno 26 paused
alice bruno alice bruno
record_id display_name score state r001 bruno 5 paused r002 kim 25 closed r003 farah 20 failed r004 jules 5 ready r005 chen 23 paused r006 gus 26 ready r007 eli 25 pending
kim farah chen gus eli
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013251-p1
Ignoring the header, filter data rows where the score exceeds 16 and print their display_name.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 alice 20 active r002 bruno 18 paused r003 alice 23 closed r004 farah 5 pending r005 lina 3 ready r006 bruno 26 paused
alice bruno alice bruno
record_id display_name score state r001 bruno 5 paused r002 kim 25 closed r003 farah 20 failed r004 jules 5 ready r005 chen 23 paused r006 gus 26 ready r007 eli 25 pending
kim farah chen gus eli
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013251
qwen/qwen3.7-plus
awkweave-0013252
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
dina 27 active ivan 2 failed dina 5 pending hana 30 active bruno 17 ready hana 29 closed alice 21 ready alice 10 paused jules 16 active gus 19 paused
27 2 5 30 17 29 21 10 16 19
jules 14 paused farah 21 closed ivan 3 paused farah 18 active kim 6 closed bruno 27 paused gus 5 pending
14 21 3 18 6 27 5
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013252-p1
Extract and print the second field from each tab-separated record.
BEGIN{FS=OFS="\t"}{print $2}
dina 27 active ivan 2 failed dina 5 pending hana 30 active bruno 17 ready hana 29 closed alice 21 ready alice 10 paused jules 16 active gus 19 paused
27 2 5 30 17 29 21 10 16 19
jules 14 paused farah 21 closed ivan 3 paused farah 18 active kim 6 closed bruno 27 paused gus 5 pending
14 21 3 18 6 27 5
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013252
qwen/qwen3.7-plus
awkweave-0013253
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 23.
BEGIN{FS=OFS=","}$2>23{print $1}
chen,28,pending alice,28,failed dina,12,failed dina,3,paused farah,14,closed dina,4,active gus,23,failed chen,9,paused ivan,3,pending hana,18,closed
chen alice
alice,7,pending farah,6,closed ivan,11,paused jules,3,failed chen,25,failed hana,5,pending
chen
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013253-p1
For simple comma-separated input without quoted fields, output the first column only if the second column value is greater than 23.
BEGIN{FS=OFS=","}$2>23{print $1}
chen,28,pending alice,28,failed dina,12,failed dina,3,paused farah,14,closed dina,4,active gus,23,failed chen,9,paused ivan,3,pending hana,18,closed
chen alice
alice,7,pending farah,6,closed ivan,11,paused jules,3,failed chen,25,failed hana,5,pending
chen
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013253
qwen/qwen3.7-plus
awkweave-0013254
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
farah birch 75 jules indigo 67 jules cobalt 31 eli birch 96 gus cobalt 104 farah grove 95 gus juniper 19
farah birch 75 jules indigo 67 jules cobalt 31 eli birch 96 gus cobalt 104 farah grove 95 gus juniper 19
jules cobalt 118 ivan cobalt 77 jules delta 78 dina ember 115 gus harbor 34 farah delta 26 kim fable 104 chen birch 81
jules cobalt 118 ivan cobalt 77 jules delta 78 dina ember 115 gus harbor 34 farah delta 26 kim fable 104 chen birch 81
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013254-p1
Remove leading and trailing whitespace from each line and replace sequences of internal whitespace with a single space.
{$1=$1;print}
farah birch 75 jules indigo 67 jules cobalt 31 eli birch 96 gus cobalt 104 farah grove 95 gus juniper 19
farah birch 75 jules indigo 67 jules cobalt 31 eli birch 96 gus cobalt 104 farah grove 95 gus juniper 19
jules cobalt 118 ivan cobalt 77 jules delta 78 dina ember 115 gus harbor 34 farah delta 26 kim fable 104 chen birch 81
jules cobalt 118 ivan cobalt 77 jules delta 78 dina ember 115 gus harbor 34 farah delta 26 kim fable 104 chen birch 81
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013254
qwen/qwen3.7-plus
awkweave-0013255
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
eli cobalt 110 closed farah juniper 16 paused hana fable 73 failed ivan ember 76 closed eli birch 6 failed ivan indigo 83 pending hana birch 48 ready ivan juniper 60 failed lina juniper 30 pending gus delta 94 paused
farah juniper 16 paused
jules harbor 88 closed chen harbor 61 pending kim fable 2 failed lina ember 99 paused bruno ember 92 active lina grove 107 failed bruno cobalt 71 paused dina indigo 18 pending
jules harbor 88 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013255-p1
Output 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}
eli cobalt 110 closed farah juniper 16 paused hana fable 73 failed ivan ember 76 closed eli birch 6 failed ivan indigo 83 pending hana birch 48 ready ivan juniper 60 failed lina juniper 30 pending gus delta 94 paused
farah juniper 16 paused
jules harbor 88 closed chen harbor 61 pending kim fable 2 failed lina ember 99 paused bruno ember 92 active lina grove 107 failed bruno cobalt 71 paused dina indigo 18 pending
jules harbor 88 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013255
qwen/qwen3.7-plus
awkweave-0013256
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
farah 15 dina 115 kim 73 bruno 33 alice 7 eli 6 bruno 113
dina 115 alice 7
gus 56 ivan 49 chen 49 gus 34 chen 59 kim 73 dina 92 dina 29 alice 55 dina 49
ivan 49 chen 59 dina 29
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013256-p1
Print every third line beginning with line 2 (i.e., lines 2, 5, 8, etc.).
NR%3==2
farah 15 dina 115 kim 73 bruno 33 alice 7 eli 6 bruno 113
dina 115 alice 7
gus 56 ivan 49 chen 49 gus 34 chen 59 kim 73 dina 92 dina 29 alice 55 dina 49
ivan 49 chen 59 dina 29
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013256
qwen/qwen3.7-plus
awkweave-0013257
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
gamma cobalt 1 delta grove 81 gamma indigo 9 beta harbor 45 alpha grove 13 alpha cobalt 97 gamma ember 107 delta ember 80 delta ember 78
4
alpha juniper 75 delta birch 56 beta ember 27 alpha amber 85 delta birch 40 alpha cobalt 102 beta harbor 91 gamma cobalt 108
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013257-p1
Calculate the number of unique values in column 1 and output only this total count.
{if(!seen[$1]++)n++}END{print n+0}
gamma cobalt 1 delta grove 81 gamma indigo 9 beta harbor 45 alpha grove 13 alpha cobalt 97 gamma ember 107 delta ember 80 delta ember 78
4
alpha juniper 75 delta birch 56 beta ember 27 alpha amber 85 delta birch 40 alpha cobalt 102 beta harbor 91 gamma cobalt 108
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013257
qwen/qwen3.7-plus
awkweave-0013258
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}
dina 10 0 chen 13 6 gus 15 1 dina 5 24 dina 29 30 eli 11 17 farah 28 26
chen 2.17 gus 15.00 dina 0.21 dina 0.97 eli 0.65 farah 1.08
eli 25 0 gus 18 24 chen 5 4 farah 24 8 hana 27 4 bruno 11 13 bruno 4 27
gus 0.75 chen 1.25 farah 3.00 hana 6.75 bruno 0.85 bruno 0.15
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013258-p1
For each row where column 3 is non-zero, print column 1 and the result of column 2 divided by column 3, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
dina 10 0 chen 13 6 gus 15 1 dina 5 24 dina 29 30 eli 11 17 farah 28 26
chen 2.17 gus 15.00 dina 0.21 dina 0.97 eli 0.65 farah 1.08
eli 25 0 gus 18 24 chen 5 4 farah 24 8 hana 27 4 bruno 11 13 bruno 4 27
gus 0.75 chen 1.25 farah 3.00 hana 6.75 bruno 0.85 bruno 0.15
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013258
qwen/qwen3.7-plus
awkweave-0013259
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
farah fable 22 farah amber 19 eli grove 9 farah indigo 17 farah ember 28 kim birch 25
farah ember 28 kim birch 25 farah fable 22
gus grove 3 hana indigo 26 ivan juniper 28 hana delta 22 ivan grove 13 chen juniper 21
ivan juniper 28 hana indigo 26 hana delta 22
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013259-p1
Select 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]}
farah fable 22 farah amber 19 eli grove 9 farah indigo 17 farah ember 28 kim birch 25
farah ember 28 kim birch 25 farah fable 22
gus grove 3 hana indigo 26 ivan juniper 28 hana delta 22 ivan grove 13 chen juniper 21
ivan juniper 28 hana indigo 26 hana delta 22
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013259
qwen/qwen3.7-plus
awkweave-0013260
Select the 5th and 4th fields in that order.
{print $5, $4}
6 gus juniper kim ember 34 kim fable chen ember 87 chen harbor ivan indigo 26 gus fable dina grove 68 bruno amber jules cobalt 102 kim fable lina birch
ember kim ember chen indigo ivan grove dina cobalt jules birch lina
31 gus delta eli juniper 11 farah grove ivan grove 33 chen birch gus grove 77 chen indigo jules amber 71 gus harbor lina indigo 61 lina harbor farah delta 17 eli amber alice grove 40 kim birch farah fable 54 jules juniper alice amber
juniper eli grove ivan grove gus amber jules indigo lina delta farah grove alice fable farah amber alice
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013260-p1
Extract the 5th field followed by the 4th field.
{print $5, $4}
6 gus juniper kim ember 34 kim fable chen ember 87 chen harbor ivan indigo 26 gus fable dina grove 68 bruno amber jules cobalt 102 kim fable lina birch
ember kim ember chen indigo ivan grove dina cobalt jules birch lina
31 gus delta eli juniper 11 farah grove ivan grove 33 chen birch gus grove 77 chen indigo jules amber 71 gus harbor lina indigo 61 lina harbor farah delta 17 eli amber alice grove 40 kim birch farah fable 54 jules juniper alice amber
juniper eli grove ivan grove gus amber jules indigo lina delta farah grove alice fable farah amber alice
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013260
qwen/qwen3.7-plus
awkweave-0013261
Print the last field of every input line.
{print $NF}
ember birch active active 70 juniper juniper active active 48 cobalt harbor closed failed 80 harbor birch paused pending 104 harbor harbor closed active 110 delta birch failed closed 0 amber grove ready ready 69
70 48 80 104 110 0 69
cobalt birch active active 103 ember cobalt paused pending 50 indigo delta active ready 29 fable indigo paused pending 100 harbor ember active paused 115 delta indigo closed failed 29 birch ember paused failed 116 fable harbor active failed 112
103 50 29 100 115 29 116 112
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013261-p1
Output the final field from each line of input.
{print $NF}
ember birch active active 70 juniper juniper active active 48 cobalt harbor closed failed 80 harbor birch paused pending 104 harbor harbor closed active 110 delta birch failed closed 0 amber grove ready ready 69
70 48 80 104 110 0 69
cobalt birch active active 103 ember cobalt paused pending 50 indigo delta active ready 29 fable indigo paused pending 100 harbor ember active paused 115 delta indigo closed failed 29 birch ember paused failed 116 fable harbor active failed 112
103 50 29 100 115 29 116 112
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013261
qwen/qwen3.7-plus
awkweave-0013262
Print the complete records where column 2 is at least 56.
$2 >= 56
birch 111 dina harbor 100 dina cobalt 78 dina indigo 39 farah juniper 92 farah amber 32 ivan juniper 52 dina cobalt 66 ivan
birch 111 dina harbor 100 dina cobalt 78 dina juniper 92 farah cobalt 66 ivan
juniper 76 hana juniper 31 gus cobalt 68 hana harbor 115 jules indigo 45 farah grove 51 hana amber 11 hana
juniper 76 hana cobalt 68 hana harbor 115 jules
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013262-p1
Display full records where the value in the second column is greater than or equal to 56.
$2 >= 56
birch 111 dina harbor 100 dina cobalt 78 dina indigo 39 farah juniper 92 farah amber 32 ivan juniper 52 dina cobalt 66 ivan
birch 111 dina harbor 100 dina cobalt 78 dina juniper 92 farah cobalt 66 ivan
juniper 76 hana juniper 31 gus cobalt 68 hana harbor 115 jules indigo 45 farah grove 51 hana amber 11 hana
juniper 76 hana cobalt 68 hana harbor 115 jules
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013262
qwen/qwen3.7-plus
awkweave-0013263
Show whole lines whose 1st field is between 11 and 24, inclusive.
$1 >= 11 && $1 <= 24
28 ready active fable 2 ready pending grove 20 closed closed harbor 12 ready active harbor 11 pending pending indigo 7 pending ready grove
20 closed closed harbor 12 ready active harbor 11 pending pending indigo
21 pending pending delta 24 closed failed fable 19 failed pending birch 15 failed paused indigo 23 closed closed fable 25 pending active cobalt
21 pending pending delta 24 closed failed fable 19 failed pending birch 15 failed paused indigo 23 closed closed fable
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013263-p1
Show entire lines where the first field falls within the range 11 to 24, inclusive.
$1 >= 11 && $1 <= 24
28 ready active fable 2 ready pending grove 20 closed closed harbor 12 ready active harbor 11 pending pending indigo 7 pending ready grove
20 closed closed harbor 12 ready active harbor 11 pending pending indigo
21 pending pending delta 24 closed failed fable 19 failed pending birch 15 failed paused indigo 23 closed closed fable 25 pending active cobalt
21 pending pending delta 24 closed failed fable 19 failed pending birch 15 failed paused indigo 23 closed closed fable
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013263
qwen/qwen3.7-plus
awkweave-0013264
Print column 1 only for rows where column 4 is exactly failed.
$4 == "failed"{print $1}
gus cobalt 104 paused lina amber 51 failed dina harbor 48 failed chen delta 48 closed bruno grove 96 paused eli birch 90 ready dina fable 52 paused
lina dina
chen fable 85 failed farah birch 46 ready hana juniper 4 pending chen birch 17 closed lina juniper 43 ready gus cobalt 66 ready bruno cobalt 57 pending alice indigo 101 active eli amber 61 pending gus amber 74 paused
chen
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013264-p1
Output only the first column for rows where the fourth column is exactly 'failed'.
$4 == "failed"{print $1}
gus cobalt 104 paused lina amber 51 failed dina harbor 48 failed chen delta 48 closed bruno grove 96 paused eli birch 90 ready dina fable 52 paused
lina dina
chen fable 85 failed farah birch 46 ready hana juniper 4 pending chen birch 17 closed lina juniper 43 ready gus cobalt 66 ready bruno cobalt 57 pending alice indigo 101 active eli amber 61 pending gus amber 74 paused
chen
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013264
qwen/qwen3.7-plus
awkweave-0013265
Print all fields from lines where field 2 begins with INFO.
$2 ~ /^INFO/
90 ERROR amber 90 DEBUG grove 37 DEBUG grove 11 DEBUG harbor 120 ERROR cobalt 8 DEBUG harbor 3 INFO juniper 5 DEBUG juniper 39 ERROR fable
3 INFO juniper
30 INFO amber 79 WARN indigo 118 WARN fable 19 INFO fable 2 DEBUG ember 76 INFO ember 115 WARN indigo 76 DEBUG indigo
30 INFO amber 19 INFO fable 76 INFO ember
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013265-p1
Print all fields from lines where the second field starts with 'INFO'.
$2 ~ /^INFO/
90 ERROR amber 90 DEBUG grove 37 DEBUG grove 11 DEBUG harbor 120 ERROR cobalt 8 DEBUG harbor 3 INFO juniper 5 DEBUG juniper 39 ERROR fable
3 INFO juniper
30 INFO amber 79 WARN indigo 118 WARN fable 19 INFO fable 2 DEBUG ember 76 INFO ember 115 WARN indigo 76 DEBUG indigo
30 INFO amber 19 INFO fable 76 INFO ember
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013265
qwen/qwen3.7-plus
awkweave-0013266
Print every line except those containing the exact text indigo.
$0 !~ /indigo/
juniper 86 ready grove 34 failed harbor 13 failed cobalt 106 failed delta 119 paused delta 2 failed delta 1 paused delta 7 closed juniper 33 closed indigo 999 active
juniper 86 ready grove 34 failed harbor 13 failed cobalt 106 failed delta 119 paused delta 2 failed delta 1 paused delta 7 closed juniper 33 closed
grove 30 closed indigo 15 closed delta 46 closed cobalt 36 ready birch 40 paused amber 107 pending indigo 999 active
grove 30 closed delta 46 closed cobalt 36 ready birch 40 paused amber 107 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013266-p1
Output every line that does not contain the exact string 'indigo'.
$0 !~ /indigo/
juniper 86 ready grove 34 failed harbor 13 failed cobalt 106 failed delta 119 paused delta 2 failed delta 1 paused delta 7 closed juniper 33 closed indigo 999 active
juniper 86 ready grove 34 failed harbor 13 failed cobalt 106 failed delta 119 paused delta 2 failed delta 1 paused delta 7 closed juniper 33 closed
grove 30 closed indigo 15 closed delta 46 closed cobalt 36 ready birch 40 paused amber 107 pending indigo 999 active
grove 30 closed delta 46 closed cobalt 36 ready birch 40 paused amber 107 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013266
qwen/qwen3.7-plus
awkweave-0013267
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
lina harbor 104 dina ember 62 kim ember 111 hana cobalt 85 chen cobalt 83 alice cobalt 84 gus juniper 59 alice fable 61
hana cobalt 85 chen cobalt 83 alice cobalt 84 gus juniper 59
lina fable 9 hana grove 106 lina grove 68 eli birch 32 dina fable 50 lina juniper 76 farah grove 56
eli birch 32 dina fable 50 lina juniper 76 farah grove 56
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013267-p1
Print lines 4 through 7, inclusive of both endpoints.
NR >= 4 && NR <= 7
lina harbor 104 dina ember 62 kim ember 111 hana cobalt 85 chen cobalt 83 alice cobalt 84 gus juniper 59 alice fable 61
hana cobalt 85 chen cobalt 83 alice cobalt 84 gus juniper 59
lina fable 9 hana grove 106 lina grove 68 eli birch 32 dina fable 50 lina juniper 76 farah grove 56
eli birch 32 dina fable 50 lina juniper 76 farah grove 56
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013267
qwen/qwen3.7-plus
awkweave-0013268
Output only the first 4 records.
NR <= 4
chen 45 indigo ivan 42 ember gus 109 harbor dina 81 juniper alice 23 indigo lina 95 birch farah 24 harbor lina 38 harbor
chen 45 indigo ivan 42 ember gus 109 harbor dina 81 juniper
farah 83 ember hana 13 cobalt alice 37 juniper hana 10 juniper ivan 60 harbor hana 15 delta hana 56 ember lina 68 fable
farah 83 ember hana 13 cobalt alice 37 juniper hana 10 juniper
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013268-p1
Output only the first 4 records.
NR <= 4
chen 45 indigo ivan 42 ember gus 109 harbor dina 81 juniper alice 23 indigo lina 95 birch farah 24 harbor lina 38 harbor
chen 45 indigo ivan 42 ember gus 109 harbor dina 81 juniper
farah 83 ember hana 13 cobalt alice 37 juniper hana 10 juniper ivan 60 harbor hana 15 delta hana 56 ember lina 68 fable
farah 83 ember hana 13 cobalt alice 37 juniper hana 10 juniper
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0013268
qwen/qwen3.7-plus
awkweave-0013269
Skip the first line and print every remaining line unchanged.
NR > 1
gus 46 fable alice 105 ember ivan 37 harbor lina 95 amber lina 34 ember jules 113 harbor lina 43 amber kim 72 ember
alice 105 ember ivan 37 harbor lina 95 amber lina 34 ember jules 113 harbor lina 43 amber kim 72 ember
lina 67 cobalt eli 87 amber gus 101 amber bruno 63 fable lina 25 ember gus 88 grove ivan 101 birch dina 70 fable chen 57 grove lina 44 harbor
eli 87 amber gus 101 amber bruno 63 fable lina 25 ember gus 88 grove ivan 101 birch dina 70 fable chen 57 grove lina 44 harbor
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013269-p1
Ignore the first line and print all subsequent lines as they are.
NR > 1
gus 46 fable alice 105 ember ivan 37 harbor lina 95 amber lina 34 ember jules 113 harbor lina 43 amber kim 72 ember
alice 105 ember ivan 37 harbor lina 95 amber lina 34 ember jules 113 harbor lina 43 amber kim 72 ember
lina 67 cobalt eli 87 amber gus 101 amber bruno 63 fable lina 25 ember gus 88 grove ivan 101 birch dina 70 fable chen 57 grove lina 44 harbor
eli 87 amber gus 101 amber bruno 63 fable lina 25 ember gus 88 grove ivan 101 birch dina 70 fable chen 57 grove lina 44 harbor
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013269
qwen/qwen3.7-plus
awkweave-0013270
Count how many records have paused in column 2. Print 0 if there are none.
$2 == "paused"{n++}END{print n+0}
ivan paused 93 hana active 81 ivan pending 113 jules ready 70 chen pending 81 bruno pending 5 gus active 60
1
hana ready 60 kim ready 101 ivan active 13 kim failed 25 eli closed 94 bruno paused 21 chen paused 7 eli pending 48 jules pending 69 chen closed 118
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null