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-0017440-p1
Output lines 2 through 5, inclusive of both endpoints.
NR >= 2 && NR <= 5
eli juniper 89 alice juniper 40 kim indigo 80 alice fable 28 kim ember 97 farah delta 8
alice juniper 40 kim indigo 80 alice fable 28 kim ember 97
lina indigo 37 gus amber 71 jules ember 10 bruno harbor 39 lina birch 54 eli indigo 75 kim harbor 110 eli ember 25 kim amber 54
gus amber 71 jules ember 10 bruno harbor 39 lina birch 54
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017440
qwen/qwen3.7-plus
awkweave-0017441
Output only the first 2 records.
NR <= 2
dina 8 grove bruno 57 fable alice 98 juniper kim 53 amber bruno 11 juniper lina 60 harbor
dina 8 grove bruno 57 fable
bruno 11 cobalt lina 4 indigo farah 40 amber hana 69 juniper ivan 3 ember hana 28 fable dina 48 juniper chen 66 fable dina 15 amber
bruno 11 cobalt lina 4 indigo
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017441-p1
Display only the first 2 records.
NR <= 2
dina 8 grove bruno 57 fable alice 98 juniper kim 53 amber bruno 11 juniper lina 60 harbor
dina 8 grove bruno 57 fable
bruno 11 cobalt lina 4 indigo farah 40 amber hana 69 juniper ivan 3 ember hana 28 fable dina 48 juniper chen 66 fable dina 15 amber
bruno 11 cobalt lina 4 indigo
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017441
qwen/qwen3.7-plus
awkweave-0017442
Skip the first line and print every remaining line unchanged.
NR > 1
alice 54 juniper gus 32 grove chen 22 indigo gus 97 delta alice 103 birch alice 117 ember alice 46 ember alice 112 ember
gus 32 grove chen 22 indigo gus 97 delta alice 103 birch alice 117 ember alice 46 ember alice 112 ember
gus 14 birch kim 45 harbor gus 93 grove bruno 55 juniper gus 26 juniper kim 105 delta hana 55 harbor
kim 45 harbor gus 93 grove bruno 55 juniper gus 26 juniper kim 105 delta hana 55 harbor
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017442-p1
Omit the first line and print all subsequent lines without modification.
NR > 1
alice 54 juniper gus 32 grove chen 22 indigo gus 97 delta alice 103 birch alice 117 ember alice 46 ember alice 112 ember
gus 32 grove chen 22 indigo gus 97 delta alice 103 birch alice 117 ember alice 46 ember alice 112 ember
gus 14 birch kim 45 harbor gus 93 grove bruno 55 juniper gus 26 juniper kim 105 delta hana 55 harbor
kim 45 harbor gus 93 grove bruno 55 juniper gus 26 juniper kim 105 delta hana 55 harbor
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017442
qwen/qwen3.7-plus
awkweave-0017443
Count how many records have ready in column 2. Print 0 if there are none.
$2 == "ready"{n++}END{print n+0}
alice active 104 alice paused 19 lina pending 57 farah active 116 gus ready 47 kim ready 13 bruno active 110 eli failed 104
2
chen failed 111 eli pending 28 chen ready 53 kim ready 55 dina closed 51 dina failed 52 lina pending 11 bruno closed 73
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017443-p1
Count the number of records with ready in the second column, outputting 0 if none exist.
$2 == "ready"{n++}END{print n+0}
alice active 104 alice paused 19 lina pending 57 farah active 116 gus ready 47 kim ready 13 bruno active 110 eli failed 104
2
chen failed 111 eli pending 28 chen ready 53 kim ready 55 dina closed 51 dina failed 52 lina pending 11 bruno closed 73
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017443
qwen/qwen3.7-plus
awkweave-0017444
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
harbor gus 12 cobalt gus 2 cobalt jules 6 delta alice 13 harbor eli 15 harbor dina 9 fable gus 27
84
juniper chen 1 indigo eli 7 ember jules 25 fable chen 19 harbor dina 4 amber kim 30 fable chen 26
112
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017444-p1
Compute and display the sum of integer values in the third column.
{s+=$3}END{print s+0}
harbor gus 12 cobalt gus 2 cobalt jules 6 delta alice 13 harbor eli 15 harbor dina 9 fable gus 27
84
juniper chen 1 indigo eli 7 ember jules 25 fable chen 19 harbor dina 4 amber kim 30 fable chen 26
112
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017444
qwen/qwen3.7-plus
awkweave-0017445
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
delta 8 hana delta 17 farah delta 21 bruno indigo 23 chen amber 8 eli juniper 1 kim amber 1 gus harbor 30 dina harbor 28 chen
15.22
birch 17 bruno juniper 6 lina fable 21 lina delta 29 lina grove 18 eli juniper 28 hana indigo 30 eli harbor 26 farah
21.88
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017445-p1
Calculate and print the average of the second column, rounded to two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
delta 8 hana delta 17 farah delta 21 bruno indigo 23 chen amber 8 eli juniper 1 kim amber 1 gus harbor 30 dina harbor 28 chen
15.22
birch 17 bruno juniper 6 lina fable 21 lina delta 29 lina grove 18 eli juniper 28 hana indigo 30 eli harbor 26 farah
21.88
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017445
qwen/qwen3.7-plus
awkweave-0017446
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
9 ivan fable 4 jules harbor 17 eli harbor 23 gus harbor 11 ivan birch 18 gus cobalt 20 kim delta 30 dina cobalt 3 gus cobalt
3
16 farah indigo 24 alice ember 16 kim indigo 29 dina ember 12 dina indigo 30 farah juniper 16 dina amber 29 jules delta 6 kim delta
6
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017446-p1
Identify and print the minimum numeric value found in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
9 ivan fable 4 jules harbor 17 eli harbor 23 gus harbor 11 ivan birch 18 gus cobalt 20 kim delta 30 dina cobalt 3 gus cobalt
3
16 farah indigo 24 alice ember 16 kim indigo 29 dina ember 12 dina indigo 30 farah juniper 16 dina amber 29 jules delta 6 kim delta
6
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017446
qwen/qwen3.7-plus
awkweave-0017447
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
1 eli cobalt 4 dina juniper 4 ivan amber 15 chen indigo 27 gus birch 27 farah fable 8 eli juniper
27
24 gus birch 6 alice ember 1 hana ember 29 dina ember 24 dina delta 19 ivan amber 27 dina delta
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017447-p1
Identify and print the maximum numeric value found in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
1 eli cobalt 4 dina juniper 4 ivan amber 15 chen indigo 27 gus birch 27 farah fable 8 eli juniper
27
24 gus birch 6 alice ember 1 hana ember 29 dina ember 24 dina delta 19 ivan amber 27 dina delta
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017447
qwen/qwen3.7-plus
awkweave-0017448
Count all input records and print the total.
END{print NR}
dina 94 bruno 30 alice 31 kim 117 jules 114 kim 48 ivan 72
7
kim 68 kim 1 chen 85 hana 120 dina 62 lina 107 jules 109 bruno 42 farah 39
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017448-p1
Calculate the total number of input records and output the count.
END{print NR}
dina 94 bruno 30 alice 31 kim 117 jules 114 kim 48 ivan 72
7
kim 68 kim 1 chen 85 hana 120 dina 62 lina 107 jules 109 bruno 42 farah 39
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017448
qwen/qwen3.7-plus
awkweave-0017449
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
lina grove 64 gus harbor 92 ivan juniper 101 gus grove 7 kim birch 52 alice ember 66 alice birch 13 bruno cobalt 114 gus grove 7
lina grove 64 gus harbor 92 ivan juniper 101 gus grove 7 kim birch 52 alice ember 66 alice birch 13 bruno cobalt 114
jules grove 113 eli harbor 89 kim grove 25 kim amber 84 ivan cobalt 114 lina harbor 47 kim amber 84 chen indigo 52
jules grove 113 eli harbor 89 kim grove 25 kim amber 84 ivan cobalt 114 lina harbor 47 chen indigo 52
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017449-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
lina grove 64 gus harbor 92 ivan juniper 101 gus grove 7 kim birch 52 alice ember 66 alice birch 13 bruno cobalt 114 gus grove 7
lina grove 64 gus harbor 92 ivan juniper 101 gus grove 7 kim birch 52 alice ember 66 alice birch 13 bruno cobalt 114
jules grove 113 eli harbor 89 kim grove 25 kim amber 84 ivan cobalt 114 lina harbor 47 kim amber 84 chen indigo 52
jules grove 113 eli harbor 89 kim grove 25 kim amber 84 ivan cobalt 114 lina harbor 47 chen indigo 52
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017449
qwen/qwen3.7-plus
awkweave-0017450
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
dina delta 27 jules ember 37 jules amber 10 kim indigo 112 farah delta 72 kim amber 44 jules juniper 52 chen juniper 105
dina delta 27 jules ember 37 jules amber 10 kim indigo 112 farah delta 72 kim amber 44 jules juniper 52 chen juniper 105
farah juniper 25 lina cobalt 84 jules amber 54 gus harbor 17 ivan birch 28 jules juniper 116 hana cobalt 87
farah juniper 25 lina cobalt 84 jules amber 54 gus harbor 17 ivan birch 28 jules juniper 116 hana cobalt 87
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017450-p1
Retain only the initial line for every unique value found in column 3, preserving the input order.
!seen[$3]++
dina delta 27 jules ember 37 jules amber 10 kim indigo 112 farah delta 72 kim amber 44 jules juniper 52 chen juniper 105
dina delta 27 jules ember 37 jules amber 10 kim indigo 112 farah delta 72 kim amber 44 jules juniper 52 chen juniper 105
farah juniper 25 lina cobalt 84 jules amber 54 gus harbor 17 ivan birch 28 jules juniper 116 hana cobalt 87
farah juniper 25 lina cobalt 84 jules amber 54 gus harbor 17 ivan birch 28 jules juniper 116 hana cobalt 87
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017450
qwen/qwen3.7-plus
awkweave-0017451
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
lina 19 harbor gus 12 juniper lina 13 ember bruno 17 amber farah 27 indigo jules 23 ember chen 19 delta jules 12 fable farah 15 fable
lina 19 gus 31 lina 44 bruno 61 farah 88 jules 111 chen 130 jules 142 farah 157
eli 17 juniper kim 4 fable jules 30 amber dina 13 fable hana 30 fable alice 12 birch farah 12 indigo dina 21 grove
eli 17 kim 21 jules 51 dina 64 hana 94 alice 106 farah 118 dina 139
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017451-p1
Output column 1 alongside the cumulative sum of column 2 for each record, separated by a space.
{s+=$2;print $1,s}
lina 19 harbor gus 12 juniper lina 13 ember bruno 17 amber farah 27 indigo jules 23 ember chen 19 delta jules 12 fable farah 15 fable
lina 19 gus 31 lina 44 bruno 61 farah 88 jules 111 chen 130 jules 142 farah 157
eli 17 juniper kim 4 fable jules 30 amber dina 13 fable hana 30 fable alice 12 birch farah 12 indigo dina 21 grove
eli 17 kim 21 jules 51 dina 64 hana 94 alice 106 farah 118 dina 139
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017451
qwen/qwen3.7-plus
awkweave-0017452
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
jules 29 28 ember hana 2 24 cobalt farah 28 28 harbor farah 29 27 harbor bruno 30 22 delta bruno 14 12 fable dina 1 26 indigo lina 11 19 cobalt lina 12 2 cobalt lina 23 26 delta
jules 57 hana 26 farah 56 farah 56 bruno 52 bruno 26 dina 27 lina 30 lina 14 lina 49
farah 14 27 juniper alice 5 18 birch bruno 4 27 cobalt lina 11 5 ember alice 15 28 harbor ivan 6 10 juniper lina 10 9 grove
farah 41 alice 23 bruno 31 lina 16 alice 43 ivan 16 lina 19
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017452-p1
For each row, display field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
jules 29 28 ember hana 2 24 cobalt farah 28 28 harbor farah 29 27 harbor bruno 30 22 delta bruno 14 12 fable dina 1 26 indigo lina 11 19 cobalt lina 12 2 cobalt lina 23 26 delta
jules 57 hana 26 farah 56 farah 56 bruno 52 bruno 26 dina 27 lina 30 lina 14 lina 49
farah 14 27 juniper alice 5 18 birch bruno 4 27 cobalt lina 11 5 ember alice 15 28 harbor ivan 6 10 juniper lina 10 9 grove
farah 41 alice 23 bruno 31 lina 16 alice 43 ivan 16 lina 19
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017452
qwen/qwen3.7-plus
awkweave-0017453
Print column 1 and pass when column 2 is at least 23; otherwise print fail.
{print $1,($2>=23?"pass":"fail")}
ivan 27 dina 7 bruno 14 ivan 27 dina 10 alice 26 alice 19 lina 17
ivan pass dina fail bruno fail ivan pass dina fail alice pass alice fail lina fail
kim 28 lina 12 ivan 29 bruno 13 bruno 23 jules 20
kim pass lina fail ivan pass bruno fail bruno pass jules fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017453-p1
Output column 1 and print 'pass' if column 2 is greater than or equal to 23; otherwise, print 'fail'.
{print $1,($2>=23?"pass":"fail")}
ivan 27 dina 7 bruno 14 ivan 27 dina 10 alice 26 alice 19 lina 17
ivan pass dina fail bruno fail ivan pass dina fail alice pass alice fail lina fail
kim 28 lina 12 ivan 29 bruno 13 bruno 23 jules 20
kim pass lina fail ivan pass bruno fail bruno pass jules fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017453
qwen/qwen3.7-plus
awkweave-0017454
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
jules grove 18 farah delta 2 chen ember 58 jules ember 26 ivan fable 75 alice harbor 43
JULES FARAH CHEN JULES IVAN ALICE
gus ember 85 ivan ember 118 lina delta 8 dina indigo 36 chen delta 30 hana ember 1
GUS IVAN LINA DINA CHEN HANA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017454-p1
Transform column 1 to uppercase and output only that column.
{print toupper($1)}
jules grove 18 farah delta 2 chen ember 58 jules ember 26 ivan fable 75 alice harbor 43
JULES FARAH CHEN JULES IVAN ALICE
gus ember 85 ivan ember 118 lina delta 8 dina indigo 36 chen delta 30 hana ember 1
GUS IVAN LINA DINA CHEN HANA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017454
qwen/qwen3.7-plus
awkweave-0017455
From column 1, print 2 characters starting at character 3.
{print substr($1,3,2)}
harbor 9 grove 92 cobalt 2 ember 58 delta 62 indigo 64 birch 37 harbor 11
rb ov ba be lt di rc rb
cobalt 55 delta 4 cobalt 43 amber 60 harbor 40 amber 62 birch 55 amber 63 birch 73
ba lt ba be rb be rc be rc
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017455-p1
Extract and print a substring of 2 characters from column 1, starting at position 3.
{print substr($1,3,2)}
harbor 9 grove 92 cobalt 2 ember 58 delta 62 indigo 64 birch 37 harbor 11
rb ov ba be lt di rc rb
cobalt 55 delta 4 cobalt 43 amber 60 harbor 40 amber 62 birch 55 amber 63 birch 73
ba lt ba be rb be rc be rc
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017455
qwen/qwen3.7-plus
awkweave-0017456
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
delta_harbor 1 juniper_grove 72 birch_amber 89 amber_grove 104 harbor_grove 94 birch_fable 20 juniper_ember 23 grove_juniper 27
delta harbor juniper grove birch amber amber grove harbor grove birch fable juniper ember grove juniper
birch_indigo 86 delta_juniper 46 harbor_ember 49 ember_ember 46 grove_birch 32 amber_juniper 56 juniper_indigo 112
birch indigo delta juniper harbor ember ember ember grove birch amber juniper juniper indigo
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017456-p1
Substitute all underscores in column 1 with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
delta_harbor 1 juniper_grove 72 birch_amber 89 amber_grove 104 harbor_grove 94 birch_fable 20 juniper_ember 23 grove_juniper 27
delta harbor juniper grove birch amber amber grove harbor grove birch fable juniper ember grove juniper
birch_indigo 86 delta_juniper 46 harbor_ember 49 ember_ember 46 grove_birch 32 amber_juniper 56 juniper_indigo 112
birch indigo delta juniper harbor ember ember ember grove birch amber juniper juniper indigo
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017456
qwen/qwen3.7-plus
awkweave-0017457
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)}
hana juniper 114 failed gus amber 30 paused kim cobalt 26 closed kim ember 28 ready ivan indigo 48 paused chen delta 73 paused jules delta 70 failed gus juniper 10 active bruno cobalt 21 failed
failed 114 juniper hana paused 30 amber gus closed 26 cobalt kim ready 28 ember kim paused 48 indigo ivan paused 73 delta chen failed 70 delta jules active 10 juniper gus failed 21 cobalt bruno
chen ember 38 closed lina grove 74 active kim cobalt 101 pending kim grove 68 closed eli harbor 105 closed jules amber 19 failed lina ember 1 failed
closed 38 ember chen active 74 grove lina pending 101 cobalt kim closed 68 grove kim closed 105 harbor eli failed 19 amber jules failed 1 ember lina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017457-p1
Reverse the sequence of fields for every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
hana juniper 114 failed gus amber 30 paused kim cobalt 26 closed kim ember 28 ready ivan indigo 48 paused chen delta 73 paused jules delta 70 failed gus juniper 10 active bruno cobalt 21 failed
failed 114 juniper hana paused 30 amber gus closed 26 cobalt kim ready 28 ember kim paused 48 indigo ivan paused 73 delta chen failed 70 delta jules active 10 juniper gus failed 21 cobalt bruno
chen ember 38 closed lina grove 74 active kim cobalt 101 pending kim grove 68 closed eli harbor 105 closed jules amber 19 failed lina ember 1 failed
closed 38 ember chen active 74 grove lina pending 101 cobalt kim closed 68 grove kim closed 105 harbor eli failed 19 amber jules failed 1 ember lina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017457
qwen/qwen3.7-plus
awkweave-0017458
Print the number of whitespace-separated fields on each line.
{print NF}
chen cobalt 32 pending farah birch 68 failed farah ember 24 ready alice indigo 77 closed kim amber 116 failed chen fable 1 paused
4 4 4 4 4 4
hana delta 0 failed ivan birch 10 closed eli amber 88 closed eli juniper 32 active bruno amber 116 paused eli indigo 60 paused lina delta 80 paused alice harbor 100 closed
4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017458-p1
Output the count of whitespace-delimited fields for each line.
{print NF}
chen cobalt 32 pending farah birch 68 failed farah ember 24 ready alice indigo 77 closed kim amber 116 failed chen fable 1 paused
4 4 4 4 4 4
hana delta 0 failed ivan birch 10 closed eli amber 88 closed eli juniper 32 active bruno amber 116 paused eli indigo 60 paused lina delta 80 paused alice harbor 100 closed
4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017458
qwen/qwen3.7-plus
awkweave-0017459
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]]}
kim beta 79 eli gamma 108 jules alpha 98 jules gamma 0 lina alpha 61 gus alpha 36
beta 1 gamma 2 alpha 3
ivan delta 19 dina alpha 84 lina alpha 66 jules beta 18 eli alpha 17 kim delta 100 chen delta 32 lina gamma 112
delta 3 alpha 3 beta 1 gamma 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017459-p1
Tally the records for each distinct value in column 2 and print each value with its count, ordered by first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
kim beta 79 eli gamma 108 jules alpha 98 jules gamma 0 lina alpha 61 gus alpha 36
beta 1 gamma 2 alpha 3
ivan delta 19 dina alpha 84 lina alpha 66 jules beta 18 eli alpha 17 kim delta 100 chen delta 32 lina gamma 112
delta 3 alpha 3 beta 1 gamma 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017459
qwen/qwen3.7-plus
awkweave-0017460
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]]}
farah delta 1 ivan gamma 10 dina alpha 21 bruno alpha 26 ivan gamma 19 hana gamma 13 bruno gamma 23 jules beta 8 chen gamma 16
delta 1 gamma 81 alpha 47 beta 8
jules beta 23 farah beta 7 chen alpha 15 alice gamma 12 kim gamma 15 gus beta 12 eli delta 9 eli beta 28 gus delta 27
beta 70 alpha 15 gamma 27 delta 36
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017460-p1
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
farah delta 1 ivan gamma 10 dina alpha 21 bruno alpha 26 ivan gamma 19 hana gamma 13 bruno gamma 23 jules beta 8 chen gamma 16
delta 1 gamma 81 alpha 47 beta 8
jules beta 23 farah beta 7 chen alpha 15 alice gamma 12 kim gamma 15 gus beta 12 eli delta 9 eli beta 28 gus delta 27
beta 70 alpha 15 gamma 27 delta 36
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0017460
qwen/qwen3.7-plus
awkweave-0017461
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 ember 69 beta birch 29 gamma amber 75 alpha ember 67 delta amber 104 gamma harbor 90 delta birch 84 delta juniper 39
delta 4 gamma 2
gamma indigo 88 delta fable 88 gamma delta 115 delta birch 25 alpha amber 45 alpha birch 30 beta juniper 105 beta indigo 97 alpha juniper 7
gamma 2 delta 2 alpha 3 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017461-p1
Identify duplicate entries in column 1, count their occurrences, and list them in the order they first appear.
{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 ember 69 beta birch 29 gamma amber 75 alpha ember 67 delta amber 104 gamma harbor 90 delta birch 84 delta juniper 39
delta 4 gamma 2
gamma indigo 88 delta fable 88 gamma delta 115 delta birch 25 alpha amber 45 alpha birch 30 beta juniper 105 beta indigo 97 alpha juniper 7
gamma 2 delta 2 alpha 3 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017461
qwen/qwen3.7-plus
awkweave-0017462
The first row is a header. Print the score column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
state note record_id score r001 eli 3 failed r002 hana 6 paused r003 chen 28 ready r004 hana 6 pending r005 kim 20 failed r006 alice 16 active r007 alice 9 pending r008 hana 25 failed
failed paused ready pending failed active pending failed
state note record_id score r001 lina 11 closed r002 lina 11 failed r003 kim 26 ready r004 dina 19 pending r005 hana 22 closed r006 alice 9 active r007 bruno 24 pending r008 chen 13 failed r009 bruno 12 failed r010 hana 10 paused
closed failed ready pending closed active pending failed failed paused
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017462-p1
Treating the first line as a header, extract and display the values from the score column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
state note record_id score r001 eli 3 failed r002 hana 6 paused r003 chen 28 ready r004 hana 6 pending r005 kim 20 failed r006 alice 16 active r007 alice 9 pending r008 hana 25 failed
failed paused ready pending failed active pending failed
state note record_id score r001 lina 11 closed r002 lina 11 failed r003 kim 26 ready r004 dina 19 pending r005 hana 22 closed r006 alice 9 active r007 bruno 24 pending r008 chen 13 failed r009 bruno 12 failed r010 hana 10 paused
closed failed ready pending closed active pending failed failed paused
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017462
qwen/qwen3.7-plus
awkweave-0017463
The first row is a header. Print display_name for data rows whose score is greater than 14.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>14{print $h["display_name"]}
record_id display_name score state r001 alice 3 active r002 alice 23 ready r003 bruno 15 pending r004 ivan 5 paused r005 bruno 18 active r006 alice 4 paused r007 farah 6 ready r008 alice 24 paused
alice bruno bruno alice
record_id display_name score state r001 hana 12 pending r002 alice 1 active r003 lina 26 ready r004 ivan 2 failed r005 bruno 18 closed r006 dina 14 paused r007 hana 11 failed r008 dina 13 paused r009 farah 7 ready
lina bruno
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017463-p1
With the first row serving as a header, output the display_name field for every data row where the score exceeds 14.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>14{print $h["display_name"]}
record_id display_name score state r001 alice 3 active r002 alice 23 ready r003 bruno 15 pending r004 ivan 5 paused r005 bruno 18 active r006 alice 4 paused r007 farah 6 ready r008 alice 24 paused
alice bruno bruno alice
record_id display_name score state r001 hana 12 pending r002 alice 1 active r003 lina 26 ready r004 ivan 2 failed r005 bruno 18 closed r006 dina 14 paused r007 hana 11 failed r008 dina 13 paused r009 farah 7 ready
lina bruno
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017463
qwen/qwen3.7-plus
awkweave-0017464
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
ivan 26 active lina 15 failed lina 14 failed bruno 30 failed lina 2 closed hana 25 ready
active failed failed failed closed ready
jules 10 paused kim 3 paused bruno 10 paused eli 24 closed alice 7 ready kim 7 ready hana 19 failed
paused paused paused closed ready ready failed
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017464-p1
Given tab-separated input, extract and print the third column from every record.
BEGIN{FS=OFS="\t"}{print $3}
ivan 26 active lina 15 failed lina 14 failed bruno 30 failed lina 2 closed hana 25 ready
active failed failed failed closed ready
jules 10 paused kim 3 paused bruno 10 paused eli 24 closed alice 7 ready kim 7 ready hana 19 failed
paused paused paused closed ready ready failed
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017464
qwen/qwen3.7-plus
awkweave-0017465
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 8.
BEGIN{FS=OFS=","}$2>8{print $1}
kim,11,ready jules,21,ready chen,12,closed farah,30,closed hana,18,paused jules,24,closed kim,11,active hana,13,active
kim jules chen farah hana jules kim hana
farah,16,active chen,19,paused chen,13,active farah,11,pending ivan,19,failed dina,3,ready chen,3,failed
farah chen chen farah ivan
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017465-p1
For simple comma-separated input without quoted fields, print the first column whenever the value in the second column is greater than 8.
BEGIN{FS=OFS=","}$2>8{print $1}
kim,11,ready jules,21,ready chen,12,closed farah,30,closed hana,18,paused jules,24,closed kim,11,active hana,13,active
kim jules chen farah hana jules kim hana
farah,16,active chen,19,paused chen,13,active farah,11,pending ivan,19,failed dina,3,ready chen,3,failed
farah chen chen farah ivan
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017465
qwen/qwen3.7-plus
awkweave-0017466
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
kim cobalt 119 kim indigo 69 kim grove 119 gus cobalt 47 farah cobalt 28 hana indigo 119 gus indigo 94
kim cobalt 119 kim indigo 69 kim grove 119 gus cobalt 47 farah cobalt 28 hana indigo 119 gus indigo 94
alice harbor 64 lina indigo 116 jules fable 40 lina birch 84 ivan cobalt 78 alice amber 21 gus grove 28
alice harbor 64 lina indigo 116 jules fable 40 lina birch 84 ivan cobalt 78 alice amber 21 gus grove 28
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017466-p1
Remove leading and trailing whitespace from the text, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
kim cobalt 119 kim indigo 69 kim grove 119 gus cobalt 47 farah cobalt 28 hana indigo 119 gus indigo 94
kim cobalt 119 kim indigo 69 kim grove 119 gus cobalt 47 farah cobalt 28 hana indigo 119 gus indigo 94
alice harbor 64 lina indigo 116 jules fable 40 lina birch 84 ivan cobalt 78 alice amber 21 gus grove 28
alice harbor 64 lina indigo 116 jules fable 40 lina birch 84 ivan cobalt 78 alice amber 21 gus grove 28
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017466
qwen/qwen3.7-plus
awkweave-0017467
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
bruno delta 21 ready kim fable 45 ready gus harbor 25 paused ivan juniper 61 paused gus grove 52 pending gus amber 79 closed gus indigo 71 ready bruno harbor 79 active kim grove 95 paused chen birch 108 ready
ivan juniper 61 paused
gus ember 3 active gus delta 50 pending hana indigo 77 ready alice juniper 103 pending dina juniper 99 failed eli delta 32 active alice juniper 32 ready
alice juniper 103 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017467-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}
bruno delta 21 ready kim fable 45 ready gus harbor 25 paused ivan juniper 61 paused gus grove 52 pending gus amber 79 closed gus indigo 71 ready bruno harbor 79 active kim grove 95 paused chen birch 108 ready
ivan juniper 61 paused
gus ember 3 active gus delta 50 pending hana indigo 77 ready alice juniper 103 pending dina juniper 99 failed eli delta 32 active alice juniper 32 ready
alice juniper 103 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017467
qwen/qwen3.7-plus
awkweave-0017468
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
kim 120 farah 80 gus 40 lina 6 lina 75 eli 33 bruno 103
kim 120 gus 40 lina 75 bruno 103
hana 53 farah 11 farah 23 jules 79 alice 1 dina 30 jules 74
hana 53 farah 23 alice 1 jules 74
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017468-p1
Print every other line from the input, starting with the first line (i.e., lines 1, 3, 5, etc.).
NR%2==1
kim 120 farah 80 gus 40 lina 6 lina 75 eli 33 bruno 103
kim 120 gus 40 lina 75 bruno 103
hana 53 farah 11 farah 23 jules 79 alice 1 dina 30 jules 74
hana 53 farah 23 alice 1 jules 74
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017468
qwen/qwen3.7-plus
awkweave-0017469
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
delta grove 37 gamma grove 11 alpha grove 34 delta fable 77 delta cobalt 55 beta ember 95 alpha ember 75 gamma harbor 31
4
delta grove 88 gamma indigo 53 beta juniper 98 gamma cobalt 64 beta juniper 24 beta grove 81 gamma birch 93 delta ember 115
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017469-p1
Determine the number of unique values present in column 1 and output only this total count.
{if(!seen[$1]++)n++}END{print n+0}
delta grove 37 gamma grove 11 alpha grove 34 delta fable 77 delta cobalt 55 beta ember 95 alpha ember 75 gamma harbor 31
4
delta grove 88 gamma indigo 53 beta juniper 98 gamma cobalt 64 beta juniper 24 beta grove 81 gamma birch 93 delta ember 115
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017469
qwen/qwen3.7-plus
awkweave-0017470
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
hana 4 0 chen 3 9 chen 22 28 ivan 20 15 ivan 2 29 chen 18 10 hana 4 16 eli 24 26 kim 13 30 dina 16 5
chen 0.33 chen 0.79 ivan 1.33 ivan 0.07 chen 1.80 hana 0.25 eli 0.92 kim 0.43 dina 3.20
ivan 3 0 bruno 8 1 bruno 23 3 jules 5 22 eli 1 27 farah 26 9 jules 12 1 hana 8 30 chen 6 5
bruno 8.00 bruno 7.67 jules 0.23 eli 0.04 farah 2.89 jules 12.00 hana 0.27 chen 1.20
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017470-p1
For each row, output column 1 and the result of dividing column 2 by column 3 formatted to two decimal places, excluding any rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
hana 4 0 chen 3 9 chen 22 28 ivan 20 15 ivan 2 29 chen 18 10 hana 4 16 eli 24 26 kim 13 30 dina 16 5
chen 0.33 chen 0.79 ivan 1.33 ivan 0.07 chen 1.80 hana 0.25 eli 0.92 kim 0.43 dina 3.20
ivan 3 0 bruno 8 1 bruno 23 3 jules 5 22 eli 1 27 farah 26 9 jules 12 1 hana 8 30 chen 6 5
bruno 8.00 bruno 7.67 jules 0.23 eli 0.04 farah 2.89 jules 12.00 hana 0.27 chen 1.20
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017470
qwen/qwen3.7-plus
awkweave-0017471
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]}
jules grove 4 farah cobalt 20 bruno delta 25 farah grove 30 chen juniper 15 jules grove 7
farah grove 30 bruno delta 25 farah cobalt 20
chen fable 21 eli grove 28 ivan harbor 1 eli fable 14 gus indigo 11 gus fable 24
eli grove 28 gus fable 24 chen fable 21
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017471-p1
Display the three full records with the highest numeric values in column 3, sorted in descending order; maintain the original input order 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]}
jules grove 4 farah cobalt 20 bruno delta 25 farah grove 30 chen juniper 15 jules grove 7
farah grove 30 bruno delta 25 farah cobalt 20
chen fable 21 eli grove 28 ivan harbor 1 eli fable 14 gus indigo 11 gus fable 24
eli grove 28 gus fable 24 chen fable 21
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017471
qwen/qwen3.7-plus
awkweave-0017472
Select the 2nd and 1st fields in that order.
{print $2, $1}
eli 74 birch failed alice 0 indigo paused farah 55 delta ready chen 18 cobalt ready lina 78 delta paused kim 23 harbor closed bruno 54 birch ready
74 eli 0 alice 55 farah 18 chen 78 lina 23 kim 54 bruno
dina 96 fable active jules 41 delta ready kim 105 birch paused dina 101 delta pending eli 22 delta active alice 88 fable paused
96 dina 41 jules 105 kim 101 dina 22 eli 88 alice
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017472-p1
Extract the second field followed by the first field.
{print $2, $1}
eli 74 birch failed alice 0 indigo paused farah 55 delta ready chen 18 cobalt ready lina 78 delta paused kim 23 harbor closed bruno 54 birch ready
74 eli 0 alice 55 farah 18 chen 78 lina 23 kim 54 bruno
dina 96 fable active jules 41 delta ready kim 105 birch paused dina 101 delta pending eli 22 delta active alice 88 fable paused
96 dina 41 jules 105 kim 101 dina 22 eli 88 alice
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017472
qwen/qwen3.7-plus
awkweave-0017473
Print the last field of every input line.
{print $NF}
closed 54 ivan active kim ready 109 hana active ivan active 114 jules paused dina closed 16 chen ready hana paused 2 lina ready chen closed 75 hana failed gus
kim ivan dina hana chen gus
paused 88 ivan paused gus closed 68 hana failed farah ready 58 ivan ready bruno failed 94 dina pending ivan failed 70 jules paused jules failed 94 alice closed hana pending 92 alice ready chen
gus farah bruno ivan jules hana chen
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017473-p1
Output the final field from each input line.
{print $NF}
closed 54 ivan active kim ready 109 hana active ivan active 114 jules paused dina closed 16 chen ready hana paused 2 lina ready chen closed 75 hana failed gus
kim ivan dina hana chen gus
paused 88 ivan paused gus closed 68 hana failed farah ready 58 ivan ready bruno failed 94 dina pending ivan failed 70 jules paused jules failed 94 alice closed hana pending 92 alice ready chen
gus farah bruno ivan jules hana chen
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017473
qwen/qwen3.7-plus
awkweave-0017474
Print the complete records where column 2 is greater than 71.
$2 > 71
kim 13 bruno lina 75 hana farah 30 ivan ivan 40 kim hana 87 chen jules 21 lina eli 34 gus
lina 75 hana hana 87 chen
ivan 49 ivan eli 9 gus jules 62 hana bruno 51 lina dina 27 kim kim 91 farah
kim 91 farah
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017474-p1
Display full records where the value in the second column exceeds 71.
$2 > 71
kim 13 bruno lina 75 hana farah 30 ivan ivan 40 kim hana 87 chen jules 21 lina eli 34 gus
lina 75 hana hana 87 chen
ivan 49 ivan eli 9 gus jules 62 hana bruno 51 lina dina 27 kim kim 91 farah
kim 91 farah
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017474
qwen/qwen3.7-plus
awkweave-0017475
Show whole lines whose 3rd field is between 9 and 18, inclusive.
$3 >= 9 && $3 <= 18
closed alice 21 ready closed eli 10 ready failed eli 29 pending paused chen 9 failed active ivan 28 pending ready alice 26 active pending bruno 6 paused failed jules 22 pending closed ivan 21 paused pending jules 16 active
closed eli 10 ready paused chen 9 failed pending jules 16 active
failed gus 12 pending closed hana 23 failed paused hana 7 paused pending kim 19 failed paused chen 15 closed active gus 1 closed closed jules 15 ready
failed gus 12 pending paused chen 15 closed closed jules 15 ready
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017475-p1
Show entire lines where the third field falls within the inclusive range of 9 to 18.
$3 >= 9 && $3 <= 18
closed alice 21 ready closed eli 10 ready failed eli 29 pending paused chen 9 failed active ivan 28 pending ready alice 26 active pending bruno 6 paused failed jules 22 pending closed ivan 21 paused pending jules 16 active
closed eli 10 ready paused chen 9 failed pending jules 16 active
failed gus 12 pending closed hana 23 failed paused hana 7 paused pending kim 19 failed paused chen 15 closed active gus 1 closed closed jules 15 ready
failed gus 12 pending paused chen 15 closed closed jules 15 ready
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017475
qwen/qwen3.7-plus
awkweave-0017476
Print column 1 only for rows where column 4 is exactly ready.
$4 == "ready"{print $1}
eli 101 delta pending eli 72 grove paused eli 81 juniper ready lina 102 indigo active ivan 80 amber failed hana 13 delta pending lina 104 delta active bruno 102 grove paused hana 16 delta active
eli
bruno 72 fable closed ivan 51 grove paused bruno 84 juniper paused jules 27 juniper active hana 68 fable pending farah 8 ember pending alice 29 fable closed kim 49 indigo closed jules 93 grove closed gus 69 fable failed
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017476-p1
Output only the first column for rows where the fourth field is exactly 'ready'.
$4 == "ready"{print $1}
eli 101 delta pending eli 72 grove paused eli 81 juniper ready lina 102 indigo active ivan 80 amber failed hana 13 delta pending lina 104 delta active bruno 102 grove paused hana 16 delta active
eli
bruno 72 fable closed ivan 51 grove paused bruno 84 juniper paused jules 27 juniper active hana 68 fable pending farah 8 ember pending alice 29 fable closed kim 49 indigo closed jules 93 grove closed gus 69 fable failed
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017476
qwen/qwen3.7-plus
awkweave-0017477
Print all fields from lines where field 3 begins with INFO.
$3 ~ /^INFO/
58 ember WARN 63 birch WARN 96 cobalt INFO 43 birch DEBUG 29 cobalt WARN 28 fable WARN 7 cobalt WARN 117 harbor WARN
96 cobalt INFO
61 ember WARN 92 ember ERROR 95 juniper DEBUG 103 indigo INFO 67 juniper DEBUG 3 grove WARN 76 delta ERROR 58 juniper ERROR
103 indigo INFO
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017477-p1
Print all fields from lines where the third field starts with 'INFO'.
$3 ~ /^INFO/
58 ember WARN 63 birch WARN 96 cobalt INFO 43 birch DEBUG 29 cobalt WARN 28 fable WARN 7 cobalt WARN 117 harbor WARN
96 cobalt INFO
61 ember WARN 92 ember ERROR 95 juniper DEBUG 103 indigo INFO 67 juniper DEBUG 3 grove WARN 76 delta ERROR 58 juniper ERROR
103 indigo INFO
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017477
qwen/qwen3.7-plus
awkweave-0017478
Print every line except those containing the exact text birch.
$0 !~ /birch/
fable 11 paused grove 120 pending birch 53 closed birch 96 pending juniper 4 ready delta 70 ready ember 114 active grove 95 ready birch 999 active
fable 11 paused grove 120 pending juniper 4 ready delta 70 ready ember 114 active grove 95 ready
amber 98 active indigo 34 failed fable 43 active birch 65 pending delta 4 paused juniper 101 paused birch 999 active
amber 98 active indigo 34 failed fable 43 active delta 4 paused juniper 101 paused
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017478-p1
Output every line that does not contain the exact string 'birch'.
$0 !~ /birch/
fable 11 paused grove 120 pending birch 53 closed birch 96 pending juniper 4 ready delta 70 ready ember 114 active grove 95 ready birch 999 active
fable 11 paused grove 120 pending juniper 4 ready delta 70 ready ember 114 active grove 95 ready
amber 98 active indigo 34 failed fable 43 active birch 65 pending delta 4 paused juniper 101 paused birch 999 active
amber 98 active indigo 34 failed fable 43 active delta 4 paused juniper 101 paused
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017478
qwen/qwen3.7-plus
awkweave-0017479
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
alice delta 107 bruno birch 61 kim fable 81 dina grove 47 lina ember 83 alice birch 16
bruno birch 61 kim fable 81
alice fable 101 eli ember 36 jules ember 30 farah indigo 81 eli ember 12 lina grove 75 lina ember 61
eli ember 36 jules ember 30
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017479-p1
Print lines 2 through 3, inclusive.
NR >= 2 && NR <= 3
alice delta 107 bruno birch 61 kim fable 81 dina grove 47 lina ember 83 alice birch 16
bruno birch 61 kim fable 81
alice fable 101 eli ember 36 jules ember 30 farah indigo 81 eli ember 12 lina grove 75 lina ember 61
eli ember 36 jules ember 30
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017479
qwen/qwen3.7-plus
awkweave-0017480
Output only the first 4 records.
NR <= 4
kim 97 birch hana 4 delta chen 21 ember jules 98 grove gus 97 fable chen 101 delta
kim 97 birch hana 4 delta chen 21 ember jules 98 grove
bruno 117 ember gus 39 cobalt gus 119 amber hana 100 amber dina 31 harbor kim 47 amber kim 66 amber
bruno 117 ember gus 39 cobalt gus 119 amber hana 100 amber
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017480-p1
Output only the first 4 records.
NR <= 4
kim 97 birch hana 4 delta chen 21 ember jules 98 grove gus 97 fable chen 101 delta
kim 97 birch hana 4 delta chen 21 ember jules 98 grove
bruno 117 ember gus 39 cobalt gus 119 amber hana 100 amber dina 31 harbor kim 47 amber kim 66 amber
bruno 117 ember gus 39 cobalt gus 119 amber hana 100 amber
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0017480
qwen/qwen3.7-plus
awkweave-0017481
Skip the first line and print every remaining line unchanged.
NR > 1
gus 61 grove kim 112 indigo eli 10 fable dina 106 cobalt chen 75 ember dina 75 indigo kim 82 harbor alice 75 harbor ivan 97 harbor
kim 112 indigo eli 10 fable dina 106 cobalt chen 75 ember dina 75 indigo kim 82 harbor alice 75 harbor ivan 97 harbor
jules 12 juniper hana 58 delta bruno 46 indigo ivan 94 fable kim 16 ember gus 110 cobalt jules 13 amber
hana 58 delta bruno 46 indigo ivan 94 fable kim 16 ember gus 110 cobalt jules 13 amber
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017481-p1
Skip the first line and print all subsequent lines as they are.
NR > 1
gus 61 grove kim 112 indigo eli 10 fable dina 106 cobalt chen 75 ember dina 75 indigo kim 82 harbor alice 75 harbor ivan 97 harbor
kim 112 indigo eli 10 fable dina 106 cobalt chen 75 ember dina 75 indigo kim 82 harbor alice 75 harbor ivan 97 harbor
jules 12 juniper hana 58 delta bruno 46 indigo ivan 94 fable kim 16 ember gus 110 cobalt jules 13 amber
hana 58 delta bruno 46 indigo ivan 94 fable kim 16 ember gus 110 cobalt jules 13 amber
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017481
qwen/qwen3.7-plus
awkweave-0017482
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
dina ready 3 chen paused 67 gus closed 64 dina paused 81 chen failed 35 gus paused 111 dina ready 106
0
alice pending 33 alice failed 112 ivan failed 33 chen pending 34 bruno paused 117 farah failed 39 dina failed 54 dina pending 11 jules closed 29
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017482-p1
Count the number of records with 'active' in the second column, printing 0 if none exist.
$2 == "active"{n++}END{print n+0}
dina ready 3 chen paused 67 gus closed 64 dina paused 81 chen failed 35 gus paused 111 dina ready 106
0
alice pending 33 alice failed 112 ivan failed 33 chen pending 34 bruno paused 117 farah failed 39 dina failed 54 dina pending 11 jules closed 29
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017482
qwen/qwen3.7-plus
awkweave-0017483
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
lina 9 harbor kim 19 cobalt jules 29 ember eli 3 indigo gus 30 fable lina 8 cobalt jules 30 juniper dina 17 fable eli 30 grove
175
lina 20 amber ivan 28 amber hana 9 amber eli 25 ember lina 30 juniper alice 15 fable dina 18 delta
145
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017483-p1
Compute and print the sum of integer values found in the second column.
{s+=$2}END{print s+0}
lina 9 harbor kim 19 cobalt jules 29 ember eli 3 indigo gus 30 fable lina 8 cobalt jules 30 juniper dina 17 fable eli 30 grove
175
lina 20 amber ivan 28 amber hana 9 amber eli 25 ember lina 30 juniper alice 15 fable dina 18 delta
145
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017483
qwen/qwen3.7-plus
awkweave-0017484
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
2 gus birch 19 lina delta 29 alice amber 4 gus harbor 22 eli ember 6 eli indigo 16 hana delta 21 gus amber
14.88
13 chen cobalt 4 farah indigo 24 lina delta 18 eli juniper 16 bruno delta 25 lina delta
16.67
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017484-p1
Compute the average of the values in column 1 and output the result rounded to two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
2 gus birch 19 lina delta 29 alice amber 4 gus harbor 22 eli ember 6 eli indigo 16 hana delta 21 gus amber
14.88
13 chen cobalt 4 farah indigo 24 lina delta 18 eli juniper 16 bruno delta 25 lina delta
16.67
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017484
qwen/qwen3.7-plus
awkweave-0017485
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
fable jules 5 delta hana 20 harbor dina 18 birch eli 6 juniper farah 30 harbor kim 25 juniper eli 13 juniper chen 24 fable kim 24
5
fable chen 12 ember chen 4 cobalt ivan 23 birch lina 30 ember jules 4 cobalt dina 18 grove kim 22 indigo eli 3
3
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017485-p1
Identify and display the minimum numeric value found in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
fable jules 5 delta hana 20 harbor dina 18 birch eli 6 juniper farah 30 harbor kim 25 juniper eli 13 juniper chen 24 fable kim 24
5
fable chen 12 ember chen 4 cobalt ivan 23 birch lina 30 ember jules 4 cobalt dina 18 grove kim 22 indigo eli 3
3
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017485
qwen/qwen3.7-plus
awkweave-0017486
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
lina cobalt 7 bruno harbor 6 kim birch 18 bruno grove 7 ivan amber 30 farah indigo 25
30
lina cobalt 18 hana birch 8 lina harbor 13 bruno delta 7 kim delta 5 farah grove 20 kim amber 12
20
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017486-p1
Identify and display the maximum numeric value found in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
lina cobalt 7 bruno harbor 6 kim birch 18 bruno grove 7 ivan amber 30 farah indigo 25
30
lina cobalt 18 hana birch 8 lina harbor 13 bruno delta 7 kim delta 5 farah grove 20 kim amber 12
20
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017486
qwen/qwen3.7-plus
awkweave-0017487
Count all input records and print the total.
END{print NR}
ivan 82 farah 84 alice 85 chen 43 hana 19 lina 65 chen 79 chen 3 hana 82
9
lina 87 lina 6 kim 106 kim 61 kim 77 lina 104 chen 45 farah 13
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017487-p1
Calculate the total number of input records and print the count.
END{print NR}
ivan 82 farah 84 alice 85 chen 43 hana 19 lina 65 chen 79 chen 3 hana 82
9
lina 87 lina 6 kim 106 kim 61 kim 77 lina 104 chen 45 farah 13
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017487
qwen/qwen3.7-plus
awkweave-0017488
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
chen harbor 47 hana indigo 92 kim harbor 83 dina indigo 28 hana juniper 80 ivan fable 69 hana harbor 38 kim harbor 83 kim cobalt 14
chen harbor 47 hana indigo 92 kim harbor 83 dina indigo 28 hana juniper 80 ivan fable 69 hana harbor 38 kim cobalt 14
jules cobalt 55 ivan harbor 75 lina harbor 84 lina indigo 86 kim grove 33 lina delta 19 alice indigo 109 lina delta 19
jules cobalt 55 ivan harbor 75 lina harbor 84 lina indigo 86 kim grove 33 lina delta 19 alice indigo 109
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017488-p1
Eliminate exact duplicate lines while maintaining the original order and keeping the first instance of each line.
!seen[$0]++
chen harbor 47 hana indigo 92 kim harbor 83 dina indigo 28 hana juniper 80 ivan fable 69 hana harbor 38 kim harbor 83 kim cobalt 14
chen harbor 47 hana indigo 92 kim harbor 83 dina indigo 28 hana juniper 80 ivan fable 69 hana harbor 38 kim cobalt 14
jules cobalt 55 ivan harbor 75 lina harbor 84 lina indigo 86 kim grove 33 lina delta 19 alice indigo 109 lina delta 19
jules cobalt 55 ivan harbor 75 lina harbor 84 lina indigo 86 kim grove 33 lina delta 19 alice indigo 109
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017488
qwen/qwen3.7-plus
awkweave-0017489
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
lina grove 108 alice cobalt 17 lina grove 65 eli ember 32 jules amber 107 eli fable 93 gus ember 119
lina grove 108 alice cobalt 17 eli ember 32 jules amber 107 gus ember 119
alice juniper 117 jules ember 103 bruno delta 17 ivan birch 85 kim juniper 84 bruno cobalt 6 ivan fable 4
alice juniper 117 jules ember 103 bruno delta 17 ivan birch 85 kim juniper 84
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0017489-p1
Retain only the first occurrence of each unique value in column 1, preserving the original input sequence.
!seen[$1]++
lina grove 108 alice cobalt 17 lina grove 65 eli ember 32 jules amber 107 eli fable 93 gus ember 119
lina grove 108 alice cobalt 17 eli ember 32 jules amber 107 gus ember 119
alice juniper 117 jules ember 103 bruno delta 17 ivan birch 85 kim juniper 84 bruno cobalt 6 ivan fable 4
alice juniper 117 jules ember 103 bruno delta 17 ivan birch 85 kim juniper 84
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0017489
qwen/qwen3.7-plus
awkweave-0017500
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 birch 105 delta ember 70 beta delta 34 gamma juniper 84 alpha fable 42 delta juniper 110
beta 2 delta 2
delta cobalt 76 gamma fable 68 beta amber 74 delta delta 78 delta grove 21 beta harbor 40 gamma delta 19 beta cobalt 105
delta 3 gamma 2 beta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null