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-0006830-p1
Print all fields from lines where the first field starts with 'WARN'.
$1 ~ /^WARN/
WARN indigo 48 INFO birch 17 WARN indigo 18 INFO juniper 33 INFO cobalt 58 DEBUG grove 11 ERROR fable 74
WARN indigo 48 WARN indigo 18
WARN cobalt 49 ERROR delta 114 DEBUG delta 0 ERROR birch 27 DEBUG indigo 101 ERROR amber 103 ERROR grove 51
WARN cobalt 49
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006830
qwen/qwen3.7-plus
awkweave-0006831
Print every line except those containing the exact text grove.
$0 !~ /grove/
indigo 4 paused ember 9 paused amber 44 active ember 9 ready harbor 85 ready fable 111 paused grove 999 active
indigo 4 paused ember 9 paused amber 44 active ember 9 ready harbor 85 ready fable 111 paused
grove 35 pending delta 98 failed cobalt 116 ready amber 103 ready indigo 58 failed delta 79 ready cobalt 77 paused grove 999 active
delta 98 failed cobalt 116 ready amber 103 ready indigo 58 failed delta 79 ready cobalt 77 paused
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006831-p1
Print every line that does not contain the exact string 'grove'.
$0 !~ /grove/
indigo 4 paused ember 9 paused amber 44 active ember 9 ready harbor 85 ready fable 111 paused grove 999 active
indigo 4 paused ember 9 paused amber 44 active ember 9 ready harbor 85 ready fable 111 paused
grove 35 pending delta 98 failed cobalt 116 ready amber 103 ready indigo 58 failed delta 79 ready cobalt 77 paused grove 999 active
delta 98 failed cobalt 116 ready amber 103 ready indigo 58 failed delta 79 ready cobalt 77 paused
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006831
qwen/qwen3.7-plus
awkweave-0006832
Print lines 4 through 6, including both endpoints.
NR >= 4 && NR <= 6
lina amber 50 lina delta 69 farah birch 117 gus cobalt 32 kim cobalt 7 dina grove 107 eli birch 109 dina fable 51 eli juniper 83 gus amber 0
gus cobalt 32 kim cobalt 7 dina grove 107
dina juniper 48 alice harbor 11 kim juniper 38 ivan ember 21 alice cobalt 111 alice cobalt 50 gus birch 117 lina grove 110 dina birch 0
ivan ember 21 alice cobalt 111 alice cobalt 50
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006832-p1
Output lines 4 through 6, inclusive.
NR >= 4 && NR <= 6
lina amber 50 lina delta 69 farah birch 117 gus cobalt 32 kim cobalt 7 dina grove 107 eli birch 109 dina fable 51 eli juniper 83 gus amber 0
gus cobalt 32 kim cobalt 7 dina grove 107
dina juniper 48 alice harbor 11 kim juniper 38 ivan ember 21 alice cobalt 111 alice cobalt 50 gus birch 117 lina grove 110 dina birch 0
ivan ember 21 alice cobalt 111 alice cobalt 50
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006832
qwen/qwen3.7-plus
awkweave-0006833
Output only the first 5 records.
NR <= 5
hana 3 fable kim 12 cobalt kim 37 birch dina 17 indigo hana 101 juniper gus 31 juniper jules 23 cobalt eli 81 ember
hana 3 fable kim 12 cobalt kim 37 birch dina 17 indigo hana 101 juniper
gus 113 ember kim 65 birch jules 16 cobalt dina 88 birch farah 40 delta jules 43 amber
gus 113 ember kim 65 birch jules 16 cobalt dina 88 birch farah 40 delta
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006833-p1
Output only the first 5 records.
NR <= 5
hana 3 fable kim 12 cobalt kim 37 birch dina 17 indigo hana 101 juniper gus 31 juniper jules 23 cobalt eli 81 ember
hana 3 fable kim 12 cobalt kim 37 birch dina 17 indigo hana 101 juniper
gus 113 ember kim 65 birch jules 16 cobalt dina 88 birch farah 40 delta jules 43 amber
gus 113 ember kim 65 birch jules 16 cobalt dina 88 birch farah 40 delta
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0006833
qwen/qwen3.7-plus
awkweave-0006834
Skip the first line and print every remaining line unchanged.
NR > 1
kim 27 ember ivan 70 ember gus 52 delta jules 10 indigo hana 34 cobalt lina 101 harbor alice 51 amber
ivan 70 ember gus 52 delta jules 10 indigo hana 34 cobalt lina 101 harbor alice 51 amber
jules 4 delta gus 61 indigo chen 57 grove chen 46 grove eli 27 amber farah 30 delta ivan 87 cobalt
gus 61 indigo chen 57 grove chen 46 grove eli 27 amber farah 30 delta ivan 87 cobalt
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006834-p1
Skip the first line and print all subsequent lines exactly as they appear.
NR > 1
kim 27 ember ivan 70 ember gus 52 delta jules 10 indigo hana 34 cobalt lina 101 harbor alice 51 amber
ivan 70 ember gus 52 delta jules 10 indigo hana 34 cobalt lina 101 harbor alice 51 amber
jules 4 delta gus 61 indigo chen 57 grove chen 46 grove eli 27 amber farah 30 delta ivan 87 cobalt
gus 61 indigo chen 57 grove chen 46 grove eli 27 amber farah 30 delta ivan 87 cobalt
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006834
qwen/qwen3.7-plus
awkweave-0006835
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
ivan ready 88 hana failed 14 jules failed 25 kim paused 76 dina failed 9 alice closed 99 alice closed 96 farah paused 47 lina failed 111
0
gus active 11 jules ready 61 ivan closed 2 ivan active 10 dina paused 76 eli closed 12 kim ready 11 alice active 4 gus active 50
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006835-p1
Count the number of records with 'pending' in column 2, outputting 0 if none exist.
$2 == "pending"{n++}END{print n+0}
ivan ready 88 hana failed 14 jules failed 25 kim paused 76 dina failed 9 alice closed 99 alice closed 96 farah paused 47 lina failed 111
0
gus active 11 jules ready 61 ivan closed 2 ivan active 10 dina paused 76 eli closed 12 kim ready 11 alice active 4 gus active 50
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006835
qwen/qwen3.7-plus
awkweave-0006836
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
birch 30 farah grove 9 gus birch 29 alice grove 19 bruno birch 19 bruno juniper 25 eli fable 12 hana indigo 12 gus harbor 10 jules
165
amber 20 dina amber 4 alice grove 7 eli indigo 2 ivan juniper 21 eli cobalt 11 jules
65
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006836-p1
Compute and output the total of all integer values found in the second column.
{s+=$2}END{print s+0}
birch 30 farah grove 9 gus birch 29 alice grove 19 bruno birch 19 bruno juniper 25 eli fable 12 hana indigo 12 gus harbor 10 jules
165
amber 20 dina amber 4 alice grove 7 eli indigo 2 ivan juniper 21 eli cobalt 11 jules
65
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006836
qwen/qwen3.7-plus
awkweave-0006837
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
indigo 6 kim cobalt 6 kim harbor 8 ivan ember 10 lina ember 4 kim cobalt 3 bruno birch 27 alice
9.14
ember 26 lina fable 22 chen fable 20 farah cobalt 24 gus fable 20 farah ember 2 dina fable 6 dina delta 16 gus
17.00
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006837-p1
Output the average of the values in column 2, formatted to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
indigo 6 kim cobalt 6 kim harbor 8 ivan ember 10 lina ember 4 kim cobalt 3 bruno birch 27 alice
9.14
ember 26 lina fable 22 chen fable 20 farah cobalt 24 gus fable 20 farah ember 2 dina fable 6 dina delta 16 gus
17.00
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006837
qwen/qwen3.7-plus
awkweave-0006838
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
amber lina 8 indigo ivan 9 delta hana 13 juniper jules 11 juniper chen 26 amber hana 10
8
fable chen 12 grove hana 5 cobalt ivan 4 amber lina 3 fable kim 25 fable hana 12 delta chen 2 juniper alice 13 harbor farah 15
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006838-p1
Identify and display the minimum numeric value present in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
amber lina 8 indigo ivan 9 delta hana 13 juniper jules 11 juniper chen 26 amber hana 10
8
fable chen 12 grove hana 5 cobalt ivan 4 amber lina 3 fable kim 25 fable hana 12 delta chen 2 juniper alice 13 harbor farah 15
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006838
qwen/qwen3.7-plus
awkweave-0006839
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
19 fable farah 22 delta dina 4 harbor kim 10 grove farah 7 birch gus 17 amber alice 15 cobalt alice 3 birch bruno 12 birch ivan 16 juniper eli
22
12 grove eli 27 ember dina 16 amber jules 5 harbor farah 25 cobalt jules 8 amber kim
27
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006839-p1
Identify and display the maximum numeric value present in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
19 fable farah 22 delta dina 4 harbor kim 10 grove farah 7 birch gus 17 amber alice 15 cobalt alice 3 birch bruno 12 birch ivan 16 juniper eli
22
12 grove eli 27 ember dina 16 amber jules 5 harbor farah 25 cobalt jules 8 amber kim
27
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006839
qwen/qwen3.7-plus
awkweave-0006840
Count all input records and print the total.
END{print NR}
eli 27 gus 47 lina 18 ivan 71 kim 116 eli 117 chen 119 gus 38
8
hana 109 gus 6 jules 85 gus 44 eli 10 alice 30 bruno 5
7
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006840-p1
Count the total number of input lines and print the result.
END{print NR}
eli 27 gus 47 lina 18 ivan 71 kim 116 eli 117 chen 119 gus 38
8
hana 109 gus 6 jules 85 gus 44 eli 10 alice 30 bruno 5
7
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006840
qwen/qwen3.7-plus
awkweave-0006841
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
eli fable 35 lina amber 94 alice juniper 84 bruno amber 63 ivan ember 39 dina juniper 55 jules grove 63 eli fable 35 kim grove 88 bruno amber 52 gus juniper 38
eli fable 35 lina amber 94 alice juniper 84 bruno amber 63 ivan ember 39 dina juniper 55 jules grove 63 kim grove 88 bruno amber 52 gus juniper 38
hana birch 4 lina harbor 88 hana birch 4 lina amber 40 jules ember 14 hana ember 94 jules harbor 76 jules harbor 44
hana birch 4 lina harbor 88 lina amber 40 jules ember 14 hana ember 94 jules harbor 76 jules harbor 44
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006841-p1
Eliminate duplicate lines by keeping only the first instance of each, maintaining the original sequence.
!seen[$0]++
eli fable 35 lina amber 94 alice juniper 84 bruno amber 63 ivan ember 39 dina juniper 55 jules grove 63 eli fable 35 kim grove 88 bruno amber 52 gus juniper 38
eli fable 35 lina amber 94 alice juniper 84 bruno amber 63 ivan ember 39 dina juniper 55 jules grove 63 kim grove 88 bruno amber 52 gus juniper 38
hana birch 4 lina harbor 88 hana birch 4 lina amber 40 jules ember 14 hana ember 94 jules harbor 76 jules harbor 44
hana birch 4 lina harbor 88 lina amber 40 jules ember 14 hana ember 94 jules harbor 76 jules harbor 44
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006841
qwen/qwen3.7-plus
awkweave-0006842
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
hana ember 28 alice fable 24 alice cobalt 69 lina juniper 97 chen harbor 5 lina ember 22
hana ember 28 alice fable 24 alice cobalt 69 lina juniper 97 chen harbor 5
alice grove 56 jules ember 77 chen amber 51 ivan ember 102 bruno juniper 98 kim birch 49
alice grove 56 jules ember 77 chen amber 51 bruno juniper 98 kim birch 49
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006842-p1
Retain only the initial occurrence for every unique value in column 2, keeping the original order intact.
!seen[$2]++
hana ember 28 alice fable 24 alice cobalt 69 lina juniper 97 chen harbor 5 lina ember 22
hana ember 28 alice fable 24 alice cobalt 69 lina juniper 97 chen harbor 5
alice grove 56 jules ember 77 chen amber 51 ivan ember 102 bruno juniper 98 kim birch 49
alice grove 56 jules ember 77 chen amber 51 bruno juniper 98 kim birch 49
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006842
qwen/qwen3.7-plus
awkweave-0006843
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
hana 12 harbor eli 3 amber alice 29 amber eli 26 harbor ivan 27 fable ivan 12 indigo gus 12 ember gus 24 fable dina 6 juniper bruno 14 birch
hana 12 eli 15 alice 44 eli 70 ivan 97 ivan 109 gus 121 gus 145 dina 151 bruno 165
ivan 15 harbor hana 22 fable kim 9 birch gus 4 birch gus 16 ember kim 12 grove hana 7 delta
ivan 15 hana 37 kim 46 gus 50 gus 66 kim 78 hana 85
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006843-p1
For each line, output the first column and the cumulative sum of the second column, separated by a space.
{s+=$2;print $1,s}
hana 12 harbor eli 3 amber alice 29 amber eli 26 harbor ivan 27 fable ivan 12 indigo gus 12 ember gus 24 fable dina 6 juniper bruno 14 birch
hana 12 eli 15 alice 44 eli 70 ivan 97 ivan 109 gus 121 gus 145 dina 151 bruno 165
ivan 15 harbor hana 22 fable kim 9 birch gus 4 birch gus 16 ember kim 12 grove hana 7 delta
ivan 15 hana 37 kim 46 gus 50 gus 66 kim 78 hana 85
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006843
qwen/qwen3.7-plus
awkweave-0006844
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
kim 27 7 delta alice 27 30 harbor kim 16 15 delta hana 13 14 indigo ivan 2 15 cobalt eli 23 19 indigo dina 24 27 birch bruno 6 18 delta bruno 11 22 fable eli 3 1 harbor
kim 34 alice 57 kim 31 hana 27 ivan 17 eli 42 dina 51 bruno 24 bruno 33 eli 4
chen 3 16 fable farah 5 15 fable chen 5 16 amber hana 29 29 ember lina 20 6 amber dina 28 15 amber lina 26 4 fable lina 14 6 amber
chen 19 farah 20 chen 21 hana 58 lina 26 dina 43 lina 30 lina 20
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006844-p1
For each row, output the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
kim 27 7 delta alice 27 30 harbor kim 16 15 delta hana 13 14 indigo ivan 2 15 cobalt eli 23 19 indigo dina 24 27 birch bruno 6 18 delta bruno 11 22 fable eli 3 1 harbor
kim 34 alice 57 kim 31 hana 27 ivan 17 eli 42 dina 51 bruno 24 bruno 33 eli 4
chen 3 16 fable farah 5 15 fable chen 5 16 amber hana 29 29 ember lina 20 6 amber dina 28 15 amber lina 26 4 fable lina 14 6 amber
chen 19 farah 20 chen 21 hana 58 lina 26 dina 43 lina 30 lina 20
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006844
qwen/qwen3.7-plus
awkweave-0006845
Print column 1 and pass when column 2 is at least 24; otherwise print fail.
{print $1,($2>=24?"pass":"fail")}
alice 14 kim 25 hana 21 jules 4 kim 26 lina 10
alice fail kim pass hana fail jules fail kim pass lina fail
bruno 24 hana 4 kim 30 hana 27 alice 25 hana 12
bruno pass hana fail kim pass hana pass alice pass hana fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006845-p1
Output the first column along with 'pass' if the second column is 24 or greater, otherwise output 'fail'.
{print $1,($2>=24?"pass":"fail")}
alice 14 kim 25 hana 21 jules 4 kim 26 lina 10
alice fail kim pass hana fail jules fail kim pass lina fail
bruno 24 hana 4 kim 30 hana 27 alice 25 hana 12
bruno pass hana fail kim pass hana pass alice pass hana fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006845
qwen/qwen3.7-plus
awkweave-0006846
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
bruno indigo 96 chen fable 93 chen indigo 0 chen grove 101 lina harbor 38 jules juniper 79 alice birch 74 dina harbor 22 hana cobalt 50 farah amber 94
BRUNO CHEN CHEN CHEN LINA JULES ALICE DINA HANA FARAH
gus indigo 105 hana juniper 54 eli delta 20 kim grove 37 hana harbor 101 kim harbor 50 ivan amber 73
GUS HANA ELI KIM HANA KIM IVAN
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006846-p1
Transform the first column to uppercase and print only that transformed column.
{print toupper($1)}
bruno indigo 96 chen fable 93 chen indigo 0 chen grove 101 lina harbor 38 jules juniper 79 alice birch 74 dina harbor 22 hana cobalt 50 farah amber 94
BRUNO CHEN CHEN CHEN LINA JULES ALICE DINA HANA FARAH
gus indigo 105 hana juniper 54 eli delta 20 kim grove 37 hana harbor 101 kim harbor 50 ivan amber 73
GUS HANA ELI KIM HANA KIM IVAN
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006846
qwen/qwen3.7-plus
awkweave-0006847
From column 1, print 4 characters starting at character 1.
{print substr($1,1,4)}
indigo 25 fable 113 birch 67 harbor 12 harbor 89 indigo 120 amber 20 delta 77 amber 110 indigo 16
indi fabl birc harb harb indi ambe delt ambe indi
juniper 64 delta 117 fable 82 indigo 86 juniper 108 fable 3 ember 87 juniper 24
juni delt fabl indi juni fabl embe juni
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006847-p1
Extract and print the first 4 characters from the first column.
{print substr($1,1,4)}
indigo 25 fable 113 birch 67 harbor 12 harbor 89 indigo 120 amber 20 delta 77 amber 110 indigo 16
indi fabl birc harb harb indi ambe delt ambe indi
juniper 64 delta 117 fable 82 indigo 86 juniper 108 fable 3 ember 87 juniper 24
juni delt fabl indi juni fabl embe juni
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006847
qwen/qwen3.7-plus
awkweave-0006848
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
birch_harbor 60 delta_juniper 106 indigo_indigo 118 ember_harbor 77 ember_indigo 72 cobalt_delta 11 harbor_amber 76
birch harbor delta juniper indigo indigo ember harbor ember indigo cobalt delta harbor amber
juniper_juniper 11 juniper_ember 67 harbor_cobalt 61 indigo_fable 96 amber_ember 68 birch_indigo 72 ember_fable 85 amber_ember 30
juniper juniper juniper ember harbor cobalt indigo fable amber ember birch indigo ember fable amber ember
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006848-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
birch_harbor 60 delta_juniper 106 indigo_indigo 118 ember_harbor 77 ember_indigo 72 cobalt_delta 11 harbor_amber 76
birch harbor delta juniper indigo indigo ember harbor ember indigo cobalt delta harbor amber
juniper_juniper 11 juniper_ember 67 harbor_cobalt 61 indigo_fable 96 amber_ember 68 birch_indigo 72 ember_fable 85 amber_ember 30
juniper juniper juniper ember harbor cobalt indigo fable amber ember birch indigo ember fable amber ember
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006848
qwen/qwen3.7-plus
awkweave-0006849
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)}
bruno harbor 6 closed jules grove 107 pending alice harbor 120 pending farah indigo 52 active chen delta 108 closed dina indigo 53 ready dina indigo 21 closed dina cobalt 120 ready dina indigo 79 ready ivan harbor 47 failed
closed 6 harbor bruno pending 107 grove jules pending 120 harbor alice active 52 indigo farah closed 108 delta chen ready 53 indigo dina closed 21 indigo dina ready 120 cobalt dina ready 79 indigo dina failed 47 harbor ivan
kim fable 111 failed bruno juniper 57 active jules birch 70 failed farah fable 72 closed bruno ember 83 closed alice cobalt 5 ready ivan harbor 89 closed
failed 111 fable kim active 57 juniper bruno failed 70 birch jules closed 72 fable farah closed 83 ember bruno ready 5 cobalt alice closed 89 harbor ivan
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006849-p1
Reverse the sequence of fields for each line and display every field.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
bruno harbor 6 closed jules grove 107 pending alice harbor 120 pending farah indigo 52 active chen delta 108 closed dina indigo 53 ready dina indigo 21 closed dina cobalt 120 ready dina indigo 79 ready ivan harbor 47 failed
closed 6 harbor bruno pending 107 grove jules pending 120 harbor alice active 52 indigo farah closed 108 delta chen ready 53 indigo dina closed 21 indigo dina ready 120 cobalt dina ready 79 indigo dina failed 47 harbor ivan
kim fable 111 failed bruno juniper 57 active jules birch 70 failed farah fable 72 closed bruno ember 83 closed alice cobalt 5 ready ivan harbor 89 closed
failed 111 fable kim active 57 juniper bruno failed 70 birch jules closed 72 fable farah closed 83 ember bruno ready 5 cobalt alice closed 89 harbor ivan
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006849
qwen/qwen3.7-plus
awkweave-0006850
Print the number of whitespace-separated fields on each line.
{print NF}
jules birch 111 failed eli amber 15 active gus grove 84 ready chen birch 9 paused hana harbor 55 paused gus indigo 120 pending
4 4 4 4 4 4
lina grove 34 closed eli harbor 25 paused gus grove 117 paused farah birch 117 failed kim indigo 77 closed jules fable 38 paused dina harbor 18 active lina ember 104 closed
4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006850-p1
Output the count of whitespace-delimited fields present on each line.
{print NF}
jules birch 111 failed eli amber 15 active gus grove 84 ready chen birch 9 paused hana harbor 55 paused gus indigo 120 pending
4 4 4 4 4 4
lina grove 34 closed eli harbor 25 paused gus grove 117 paused farah birch 117 failed kim indigo 77 closed jules fable 38 paused dina harbor 18 active lina ember 104 closed
4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006850
qwen/qwen3.7-plus
awkweave-0006851
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 delta 53 kim gamma 113 ivan gamma 77 chen delta 23 lina alpha 8 dina beta 14 hana beta 75 chen alpha 103
delta 2 gamma 2 alpha 2 beta 2
chen gamma 58 gus gamma 66 ivan beta 77 hana delta 91 bruno gamma 29 dina beta 51 dina alpha 11 dina alpha 105
gamma 3 beta 2 delta 1 alpha 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006851-p1
Tally the records for each unique value in the second column, printing the value and its total in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
kim delta 53 kim gamma 113 ivan gamma 77 chen delta 23 lina alpha 8 dina beta 14 hana beta 75 chen alpha 103
delta 2 gamma 2 alpha 2 beta 2
chen gamma 58 gus gamma 66 ivan beta 77 hana delta 91 bruno gamma 29 dina beta 51 dina alpha 11 dina alpha 105
gamma 3 beta 2 delta 1 alpha 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006851
qwen/qwen3.7-plus
awkweave-0006852
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
chen alpha 1 jules beta 5 lina beta 14 farah delta 1 ivan gamma 28 kim delta 7 gus beta 14
alpha 1 beta 33 delta 8 gamma 28
alice gamma 13 gus gamma 9 farah beta 3 hana beta 1 bruno beta 12 kim beta 10
gamma 22 beta 26
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006852-p1
Calculate the sum of the third column for each group defined by the second column, listing results in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
chen alpha 1 jules beta 5 lina beta 14 farah delta 1 ivan gamma 28 kim delta 7 gus beta 14
alpha 1 beta 33 delta 8 gamma 28
alice gamma 13 gus gamma 9 farah beta 3 hana beta 1 bruno beta 12 kim beta 10
gamma 22 beta 26
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006852
qwen/qwen3.7-plus
awkweave-0006853
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma indigo 89 beta juniper 72 gamma delta 31 alpha indigo 82 gamma indigo 108 delta ember 90 alpha delta 55
gamma 3 alpha 2
delta indigo 117 alpha juniper 43 gamma harbor 9 delta indigo 108 gamma indigo 73 gamma indigo 53 beta cobalt 37 delta harbor 18
delta 3 gamma 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006853-p1
List each duplicate value from the first column alongside its occurrence count, ordered by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma indigo 89 beta juniper 72 gamma delta 31 alpha indigo 82 gamma indigo 108 delta ember 90 alpha delta 55
gamma 3 alpha 2
delta indigo 117 alpha juniper 43 gamma harbor 9 delta indigo 108 gamma indigo 73 gamma indigo 53 beta cobalt 37 delta harbor 18
delta 3 gamma 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006853
qwen/qwen3.7-plus
awkweave-0006854
The first row is a header. Print the region column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
score note record_id region r001 kim 30 failed r002 bruno 28 failed r003 gus 15 failed r004 hana 28 paused r005 jules 14 paused r006 gus 18 active r007 jules 1 pending
failed failed failed paused paused active pending
score note record_id region r001 farah 12 active r002 alice 2 closed r003 lina 11 paused r004 ivan 1 pending r005 hana 27 active r006 chen 13 ready r007 farah 23 failed r008 kim 11 pending r009 chen 11 ready
active closed paused pending active ready failed pending ready
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006854-p1
Treating the first line as a header, output the region column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
score note record_id region r001 kim 30 failed r002 bruno 28 failed r003 gus 15 failed r004 hana 28 paused r005 jules 14 paused r006 gus 18 active r007 jules 1 pending
failed failed failed paused paused active pending
score note record_id region r001 farah 12 active r002 alice 2 closed r003 lina 11 paused r004 ivan 1 pending r005 hana 27 active r006 chen 13 ready r007 farah 23 failed r008 kim 11 pending r009 chen 11 ready
active closed paused pending active ready failed pending ready
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006854
qwen/qwen3.7-plus
awkweave-0006855
The first row is a header. Print display_name for data rows whose score is greater than 19.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>19{print $h["display_name"]}
record_id display_name score state r001 eli 7 pending r002 farah 5 active r003 eli 22 closed r004 kim 15 active r005 alice 13 ready r006 ivan 29 ready r007 farah 4 ready r008 lina 13 closed r009 dina 23 closed
eli ivan dina
record_id display_name score state r001 eli 19 active r002 chen 9 pending r003 alice 2 active r004 dina 13 failed r005 lina 1 active r006 bruno 11 paused
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006855-p1
With the first row as a header, print the display_name for data rows where the score is strictly greater than 19.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>19{print $h["display_name"]}
record_id display_name score state r001 eli 7 pending r002 farah 5 active r003 eli 22 closed r004 kim 15 active r005 alice 13 ready r006 ivan 29 ready r007 farah 4 ready r008 lina 13 closed r009 dina 23 closed
eli ivan dina
record_id display_name score state r001 eli 19 active r002 chen 9 pending r003 alice 2 active r004 dina 13 failed r005 lina 1 active r006 bruno 11 paused
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006855
qwen/qwen3.7-plus
awkweave-0006856
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
hana 3 active eli 21 active gus 9 closed hana 16 failed lina 16 ready lina 21 failed eli 22 ready jules 30 paused eli 3 pending farah 19 failed
hana eli gus hana lina lina eli jules eli farah
chen 16 paused ivan 6 paused bruno 3 ready lina 17 failed alice 9 active eli 1 failed eli 4 pending
chen ivan bruno lina alice eli eli
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006856-p1
Given tab-separated input, extract and print the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
hana 3 active eli 21 active gus 9 closed hana 16 failed lina 16 ready lina 21 failed eli 22 ready jules 30 paused eli 3 pending farah 19 failed
hana eli gus hana lina lina eli jules eli farah
chen 16 paused ivan 6 paused bruno 3 ready lina 17 failed alice 9 active eli 1 failed eli 4 pending
chen ivan bruno lina alice eli eli
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006856
qwen/qwen3.7-plus
awkweave-0006857
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 13.
BEGIN{FS=OFS=","}$2>13{print $1}
lina,8,active jules,25,active jules,11,paused gus,2,active hana,26,active jules,4,paused kim,17,paused kim,5,paused eli,9,active eli,9,ready
jules hana kim
ivan,9,ready jules,21,pending hana,20,ready eli,7,closed hana,23,ready gus,10,failed jules,28,pending hana,13,ready gus,4,pending
jules hana hana jules
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006857-p1
For simple comma-separated input without quoted commas, print the first column if the second column value is greater than 13.
BEGIN{FS=OFS=","}$2>13{print $1}
lina,8,active jules,25,active jules,11,paused gus,2,active hana,26,active jules,4,paused kim,17,paused kim,5,paused eli,9,active eli,9,ready
jules hana kim
ivan,9,ready jules,21,pending hana,20,ready eli,7,closed hana,23,ready gus,10,failed jules,28,pending hana,13,ready gus,4,pending
jules hana hana jules
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006857
qwen/qwen3.7-plus
awkweave-0006858
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
kim grove 15 jules birch 112 lina indigo 65 eli ember 19 alice juniper 114 farah grove 105 ivan juniper 47 eli ember 82
kim grove 15 jules birch 112 lina indigo 65 eli ember 19 alice juniper 114 farah grove 105 ivan juniper 47 eli ember 82
chen delta 33 chen grove 109 farah harbor 104 farah delta 59 farah birch 40 alice fable 41
chen delta 33 chen grove 109 farah harbor 104 farah delta 59 farah birch 40 alice fable 41
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006858-p1
Remove leading and trailing whitespace and reduce any internal whitespace sequences to a single space.
{$1=$1;print}
kim grove 15 jules birch 112 lina indigo 65 eli ember 19 alice juniper 114 farah grove 105 ivan juniper 47 eli ember 82
kim grove 15 jules birch 112 lina indigo 65 eli ember 19 alice juniper 114 farah grove 105 ivan juniper 47 eli ember 82
chen delta 33 chen grove 109 farah harbor 104 farah delta 59 farah birch 40 alice fable 41
chen delta 33 chen grove 109 farah harbor 104 farah delta 59 farah birch 40 alice fable 41
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006858
qwen/qwen3.7-plus
awkweave-0006859
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
dina delta 15 failed gus ember 10 pending hana juniper 9 ready ivan amber 80 failed kim harbor 24 closed dina amber 46 paused hana harbor 100 active gus indigo 34 ready hana cobalt 93 active
hana harbor 100 active
dina juniper 82 pending bruno delta 87 active alice cobalt 50 active dina indigo 33 pending jules birch 53 active ivan cobalt 47 active alice grove 49 failed
dina juniper 82 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006859-p1
Identify and print the longest line from the input, selecting the earliest one in case of a tie.
{if(length($0)>length(best))best=$0}END{print best}
dina delta 15 failed gus ember 10 pending hana juniper 9 ready ivan amber 80 failed kim harbor 24 closed dina amber 46 paused hana harbor 100 active gus indigo 34 ready hana cobalt 93 active
hana harbor 100 active
dina juniper 82 pending bruno delta 87 active alice cobalt 50 active dina indigo 33 pending jules birch 53 active ivan cobalt 47 active alice grove 49 failed
dina juniper 82 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006859
qwen/qwen3.7-plus
awkweave-0006860
Print every 3rd line starting at line 1 (then line 4, and so on).
NR%3==1
hana 72 ivan 40 jules 78 hana 64 gus 52 chen 8
hana 72 hana 64
chen 14 ivan 110 ivan 77 hana 95 jules 45 chen 66
chen 14 hana 95
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006860-p1
Output every third line beginning with the first line (i.e., lines 1, 4, 7, etc.).
NR%3==1
hana 72 ivan 40 jules 78 hana 64 gus 52 chen 8
hana 72 hana 64
chen 14 ivan 110 ivan 77 hana 95 jules 45 chen 66
chen 14 hana 95
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006860
qwen/qwen3.7-plus
awkweave-0006861
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
gamma ember 49 delta birch 44 delta indigo 0 delta harbor 54 gamma delta 88 beta delta 24 alpha grove 6
4
beta indigo 87 gamma birch 56 delta fable 11 beta indigo 104 delta cobalt 36 beta ember 105 delta grove 100
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006861-p1
Calculate and display only the total number of unique values found in the first column.
{if(!seen[$1]++)n++}END{print n+0}
gamma ember 49 delta birch 44 delta indigo 0 delta harbor 54 gamma delta 88 beta delta 24 alpha grove 6
4
beta indigo 87 gamma birch 56 delta fable 11 beta indigo 104 delta cobalt 36 beta ember 105 delta grove 100
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006861
qwen/qwen3.7-plus
awkweave-0006862
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}
farah 27 0 eli 27 10 hana 17 27 chen 20 14 chen 1 12 hana 9 22
eli 2.70 hana 0.63 chen 1.43 chen 0.08 hana 0.41
eli 28 0 lina 26 11 chen 3 15 kim 12 5 gus 29 6 bruno 4 13 hana 4 29 bruno 18 10 gus 22 2 bruno 14 23
lina 2.36 chen 0.20 kim 2.40 gus 4.83 bruno 0.31 hana 0.14 bruno 1.80 gus 11.00 bruno 0.61
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006862-p1
For each row where the third column is not zero, print the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
farah 27 0 eli 27 10 hana 17 27 chen 20 14 chen 1 12 hana 9 22
eli 2.70 hana 0.63 chen 1.43 chen 0.08 hana 0.41
eli 28 0 lina 26 11 chen 3 15 kim 12 5 gus 29 6 bruno 4 13 hana 4 29 bruno 18 10 gus 22 2 bruno 14 23
lina 2.36 chen 0.20 kim 2.40 gus 4.83 bruno 0.31 hana 0.14 bruno 1.80 gus 11.00 bruno 0.61
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006862
qwen/qwen3.7-plus
awkweave-0006863
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
ivan indigo 6 farah fable 22 chen fable 28 dina birch 6 alice amber 24 eli birch 25 gus juniper 14 lina birch 22 alice delta 10
chen fable 28 eli birch 25 alice amber 24
ivan grove 26 chen birch 8 chen fable 6 farah cobalt 13 hana ember 28 kim birch 29 eli delta 7 chen ember 11 bruno indigo 8 gus harbor 9
kim birch 29 hana ember 28 ivan grove 26
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006863-p1
Display the top three full records based on 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]}
ivan indigo 6 farah fable 22 chen fable 28 dina birch 6 alice amber 24 eli birch 25 gus juniper 14 lina birch 22 alice delta 10
chen fable 28 eli birch 25 alice amber 24
ivan grove 26 chen birch 8 chen fable 6 farah cobalt 13 hana ember 28 kim birch 29 eli delta 7 chen ember 11 bruno indigo 8 gus harbor 9
kim birch 29 hana ember 28 ivan grove 26
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006863
qwen/qwen3.7-plus
awkweave-0006864
For each line, output fields 2 and 1, in that order.
{print $2, $1}
dina fable pending closed 62 eli fable failed pending 108 bruno juniper closed paused 94 chen fable pending failed 73 alice juniper pending paused 53 farah birch paused pending 29 ivan ember pending active 72 bruno grove paused pending 114 jules birch closed active 15
fable dina fable eli juniper bruno fable chen juniper alice birch farah ember ivan grove bruno birch jules
eli harbor ready pending 32 farah indigo pending closed 79 ivan cobalt ready paused 78 farah grove closed ready 21 ivan grove closed pending 69 ivan fable closed active 5 ivan amber ready pending 37
harbor eli indigo farah cobalt ivan grove farah grove ivan fable ivan amber ivan
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006864-p1
Output the second field followed by the first field for every line.
{print $2, $1}
dina fable pending closed 62 eli fable failed pending 108 bruno juniper closed paused 94 chen fable pending failed 73 alice juniper pending paused 53 farah birch paused pending 29 ivan ember pending active 72 bruno grove paused pending 114 jules birch closed active 15
fable dina fable eli juniper bruno fable chen juniper alice birch farah ember ivan grove bruno birch jules
eli harbor ready pending 32 farah indigo pending closed 79 ivan cobalt ready paused 78 farah grove closed ready 21 ivan grove closed pending 69 ivan fable closed active 5 ivan amber ready pending 37
harbor eli indigo farah cobalt ivan grove farah grove ivan fable ivan amber ivan
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006864
qwen/qwen3.7-plus
awkweave-0006865
Print the last field of every input line.
{print $NF}
67 lina paused eli paused 56 bruno pending chen closed 66 lina ready dina ready 108 chen failed jules closed 86 dina closed lina active 118 hana failed alice paused
paused closed ready closed active paused
17 ivan failed ivan pending 40 ivan pending dina failed 18 jules active chen active 103 bruno ready lina active 102 chen closed eli ready 91 dina pending gus failed 28 hana closed eli failed 23 hana paused lina active 94 ivan pending ivan failed
pending failed active active ready failed failed active failed
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006865-p1
Print the final field from each input line.
{print $NF}
67 lina paused eli paused 56 bruno pending chen closed 66 lina ready dina ready 108 chen failed jules closed 86 dina closed lina active 118 hana failed alice paused
paused closed ready closed active paused
17 ivan failed ivan pending 40 ivan pending dina failed 18 jules active chen active 103 bruno ready lina active 102 chen closed eli ready 91 dina pending gus failed 28 hana closed eli failed 23 hana paused lina active 94 ivan pending ivan failed
pending failed active active ready failed failed active failed
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006865
qwen/qwen3.7-plus
awkweave-0006866
Print the complete records where column 2 is at most 80.
$2 <= 80
amber 28 failed failed kim delta 5 closed paused gus indigo 109 pending paused alice harbor 106 failed pending kim cobalt 39 pending ready chen birch 99 failed pending kim indigo 74 active closed gus grove 117 closed failed alice juniper 65 paused closed chen grove 73 failed active hana
amber 28 failed failed kim delta 5 closed paused gus cobalt 39 pending ready chen indigo 74 active closed gus juniper 65 paused closed chen grove 73 failed active hana
harbor 64 ready closed eli amber 51 closed pending kim cobalt 24 closed failed chen cobalt 34 ready paused bruno juniper 18 closed pending eli harbor 54 failed failed lina indigo 69 failed closed eli indigo 95 pending closed gus indigo 34 paused paused kim harbor 76 pending paused bruno
harbor 64 ready closed eli amber 51 closed pending kim cobalt 24 closed failed chen cobalt 34 ready paused bruno juniper 18 closed pending eli harbor 54 failed failed lina indigo 69 failed closed eli indigo 34 paused paused kim harbor 76 pending paused bruno
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006866-p1
Output the entire record for any row where the value in column 2 is less than or equal to 80.
$2 <= 80
amber 28 failed failed kim delta 5 closed paused gus indigo 109 pending paused alice harbor 106 failed pending kim cobalt 39 pending ready chen birch 99 failed pending kim indigo 74 active closed gus grove 117 closed failed alice juniper 65 paused closed chen grove 73 failed active hana
amber 28 failed failed kim delta 5 closed paused gus cobalt 39 pending ready chen indigo 74 active closed gus juniper 65 paused closed chen grove 73 failed active hana
harbor 64 ready closed eli amber 51 closed pending kim cobalt 24 closed failed chen cobalt 34 ready paused bruno juniper 18 closed pending eli harbor 54 failed failed lina indigo 69 failed closed eli indigo 95 pending closed gus indigo 34 paused paused kim harbor 76 pending paused bruno
harbor 64 ready closed eli amber 51 closed pending kim cobalt 24 closed failed chen cobalt 34 ready paused bruno juniper 18 closed pending eli harbor 54 failed failed lina indigo 69 failed closed eli indigo 34 paused paused kim harbor 76 pending paused bruno
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006866
qwen/qwen3.7-plus
awkweave-0006867
Show whole lines whose 3rd field is between 8 and 25, inclusive.
$3 >= 8 && $3 <= 25
grove gus 17 kim fable hana 5 ivan birch eli 17 hana juniper farah 25 ivan delta alice 19 lina harbor dina 25 eli juniper eli 1 hana harbor eli 25 chen ember farah 28 chen amber farah 13 chen
grove gus 17 kim birch eli 17 hana juniper farah 25 ivan delta alice 19 lina harbor dina 25 eli harbor eli 25 chen amber farah 13 chen
indigo ivan 25 lina amber ivan 3 chen harbor alice 17 alice indigo bruno 27 dina fable kim 2 lina fable gus 12 dina
indigo ivan 25 lina harbor alice 17 alice fable gus 12 dina
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006867-p1
Display complete lines where the third field falls within the inclusive range of 8 to 25.
$3 >= 8 && $3 <= 25
grove gus 17 kim fable hana 5 ivan birch eli 17 hana juniper farah 25 ivan delta alice 19 lina harbor dina 25 eli juniper eli 1 hana harbor eli 25 chen ember farah 28 chen amber farah 13 chen
grove gus 17 kim birch eli 17 hana juniper farah 25 ivan delta alice 19 lina harbor dina 25 eli harbor eli 25 chen amber farah 13 chen
indigo ivan 25 lina amber ivan 3 chen harbor alice 17 alice indigo bruno 27 dina fable kim 2 lina fable gus 12 dina
indigo ivan 25 lina harbor alice 17 alice fable gus 12 dina
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006867
qwen/qwen3.7-plus
awkweave-0006868
Print column 3 only for rows where column 4 is exactly pending.
$4 == "pending"{print $3}
harbor 108 lina closed amber 89 hana pending amber 57 lina closed grove 23 alice failed ember 79 eli closed fable 38 gus paused fable 101 ivan closed juniper 105 eli active
hana
grove 23 lina failed birch 105 alice active cobalt 49 gus active harbor 106 eli pending indigo 67 farah failed birch 24 gus active ember 111 dina ready grove 22 eli active
eli
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006868-p1
Print only the third column for rows where the fourth column matches the exact string pending.
$4 == "pending"{print $3}
harbor 108 lina closed amber 89 hana pending amber 57 lina closed grove 23 alice failed ember 79 eli closed fable 38 gus paused fable 101 ivan closed juniper 105 eli active
hana
grove 23 lina failed birch 105 alice active cobalt 49 gus active harbor 106 eli pending indigo 67 farah failed birch 24 gus active ember 111 dina ready grove 22 eli active
eli
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006868
qwen/qwen3.7-plus
awkweave-0006869
Print all fields from lines where field 2 begins with INFO.
$2 ~ /^INFO/
juniper WARN 102 birch DEBUG 24 ember ERROR 29 ember WARN 54 indigo WARN 85 cobalt ERROR 97 ember INFO 19 birch WARN 60
ember INFO 19
ember INFO 6 juniper INFO 17 juniper INFO 83 delta INFO 69 cobalt ERROR 29 amber INFO 41 juniper DEBUG 91 grove DEBUG 38 ember ERROR 26
ember INFO 6 juniper INFO 17 juniper INFO 83 delta INFO 69 amber INFO 41
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006869-p1
Output all fields from lines where the second field starts with the text INFO.
$2 ~ /^INFO/
juniper WARN 102 birch DEBUG 24 ember ERROR 29 ember WARN 54 indigo WARN 85 cobalt ERROR 97 ember INFO 19 birch WARN 60
ember INFO 19
ember INFO 6 juniper INFO 17 juniper INFO 83 delta INFO 69 cobalt ERROR 29 amber INFO 41 juniper DEBUG 91 grove DEBUG 38 ember ERROR 26
ember INFO 6 juniper INFO 17 juniper INFO 83 delta INFO 69 amber INFO 41
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006869
qwen/qwen3.7-plus
awkweave-0006870
Print every line except those containing the exact text juniper.
$0 !~ /juniper/
harbor 22 active juniper 66 active fable 107 failed amber 62 pending birch 43 closed cobalt 73 closed cobalt 103 paused birch 34 active birch 55 active juniper 999 active
harbor 22 active fable 107 failed amber 62 pending birch 43 closed cobalt 73 closed cobalt 103 paused birch 34 active birch 55 active
amber 33 active harbor 83 paused grove 3 active delta 32 failed indigo 77 active birch 102 paused ember 97 paused cobalt 86 pending grove 55 closed juniper 999 active
amber 33 active harbor 83 paused grove 3 active delta 32 failed indigo 77 active birch 102 paused ember 97 paused cobalt 86 pending grove 55 closed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006870-p1
Print every line that does not contain the exact string juniper.
$0 !~ /juniper/
harbor 22 active juniper 66 active fable 107 failed amber 62 pending birch 43 closed cobalt 73 closed cobalt 103 paused birch 34 active birch 55 active juniper 999 active
harbor 22 active fable 107 failed amber 62 pending birch 43 closed cobalt 73 closed cobalt 103 paused birch 34 active birch 55 active
amber 33 active harbor 83 paused grove 3 active delta 32 failed indigo 77 active birch 102 paused ember 97 paused cobalt 86 pending grove 55 closed juniper 999 active
amber 33 active harbor 83 paused grove 3 active delta 32 failed indigo 77 active birch 102 paused ember 97 paused cobalt 86 pending grove 55 closed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006870
qwen/qwen3.7-plus
awkweave-0006871
Print lines 2 through 5, including both endpoints.
NR >= 2 && NR <= 5
kim ember 36 jules fable 37 farah amber 22 farah delta 80 chen harbor 89 gus birch 50
jules fable 37 farah amber 22 farah delta 80 chen harbor 89
farah fable 44 chen harbor 39 dina juniper 51 ivan fable 92 bruno amber 35 hana juniper 20 eli juniper 50 bruno indigo 44
chen harbor 39 dina juniper 51 ivan fable 92 bruno amber 35
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006871-p1
Output lines 2 through 5, inclusive.
NR >= 2 && NR <= 5
kim ember 36 jules fable 37 farah amber 22 farah delta 80 chen harbor 89 gus birch 50
jules fable 37 farah amber 22 farah delta 80 chen harbor 89
farah fable 44 chen harbor 39 dina juniper 51 ivan fable 92 bruno amber 35 hana juniper 20 eli juniper 50 bruno indigo 44
chen harbor 39 dina juniper 51 ivan fable 92 bruno amber 35
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006871
qwen/qwen3.7-plus
awkweave-0006872
Output only the first 2 records.
NR <= 2
bruno 117 fable farah 5 cobalt bruno 75 indigo hana 79 ember alice 59 indigo chen 30 juniper dina 50 indigo kim 77 fable gus 64 juniper
bruno 117 fable farah 5 cobalt
alice 93 birch gus 108 cobalt farah 1 fable dina 20 juniper gus 81 amber hana 24 delta ivan 116 amber farah 60 harbor jules 12 amber
alice 93 birch gus 108 cobalt
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006872-p1
Display only the initial two records.
NR <= 2
bruno 117 fable farah 5 cobalt bruno 75 indigo hana 79 ember alice 59 indigo chen 30 juniper dina 50 indigo kim 77 fable gus 64 juniper
bruno 117 fable farah 5 cobalt
alice 93 birch gus 108 cobalt farah 1 fable dina 20 juniper gus 81 amber hana 24 delta ivan 116 amber farah 60 harbor jules 12 amber
alice 93 birch gus 108 cobalt
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006872
qwen/qwen3.7-plus
awkweave-0006873
Skip the first line and print every remaining line unchanged.
NR > 1
lina 80 ember chen 60 birch farah 31 ember ivan 114 harbor farah 20 harbor hana 120 amber eli 107 birch hana 71 harbor kim 80 indigo farah 113 grove
chen 60 birch farah 31 ember ivan 114 harbor farah 20 harbor hana 120 amber eli 107 birch hana 71 harbor kim 80 indigo farah 113 grove
lina 95 fable kim 21 amber farah 55 grove alice 97 grove alice 33 harbor farah 21 delta alice 14 delta jules 59 fable
kim 21 amber farah 55 grove alice 97 grove alice 33 harbor farah 21 delta alice 14 delta jules 59 fable
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006873-p1
Omit the first line and output all subsequent lines exactly as they appear.
NR > 1
lina 80 ember chen 60 birch farah 31 ember ivan 114 harbor farah 20 harbor hana 120 amber eli 107 birch hana 71 harbor kim 80 indigo farah 113 grove
chen 60 birch farah 31 ember ivan 114 harbor farah 20 harbor hana 120 amber eli 107 birch hana 71 harbor kim 80 indigo farah 113 grove
lina 95 fable kim 21 amber farah 55 grove alice 97 grove alice 33 harbor farah 21 delta alice 14 delta jules 59 fable
kim 21 amber farah 55 grove alice 97 grove alice 33 harbor farah 21 delta alice 14 delta jules 59 fable
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006873
qwen/qwen3.7-plus
awkweave-0006874
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
chen active 98 lina paused 95 ivan ready 54 dina active 49 hana paused 2 alice ready 55 dina active 25 dina failed 17 farah pending 105 eli active 57
4
hana closed 116 eli pending 64 lina paused 85 alice closed 107 jules closed 103 farah active 24 jules paused 104 kim failed 48
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006874-p1
Tally the number of entries where column 2 contains 'active', outputting 0 if no matches are found.
$2 == "active"{n++}END{print n+0}
chen active 98 lina paused 95 ivan ready 54 dina active 49 hana paused 2 alice ready 55 dina active 25 dina failed 17 farah pending 105 eli active 57
4
hana closed 116 eli pending 64 lina paused 85 alice closed 107 jules closed 103 farah active 24 jules paused 104 kim failed 48
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006874
qwen/qwen3.7-plus
awkweave-0006875
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
gus 18 grove farah 30 delta lina 2 amber dina 26 cobalt lina 21 harbor ivan 14 harbor gus 19 juniper ivan 15 birch
145
kim 1 ember farah 29 grove gus 6 juniper jules 18 amber farah 8 birch alice 16 birch lina 23 indigo farah 6 cobalt chen 3 grove
110
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006875-p1
Compute and display the total sum of integer values found in column 2.
{s+=$2}END{print s+0}
gus 18 grove farah 30 delta lina 2 amber dina 26 cobalt lina 21 harbor ivan 14 harbor gus 19 juniper ivan 15 birch
145
kim 1 ember farah 29 grove gus 6 juniper jules 18 amber farah 8 birch alice 16 birch lina 23 indigo farah 6 cobalt chen 3 grove
110
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006875
qwen/qwen3.7-plus
awkweave-0006876
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
indigo 3 farah delta 2 bruno grove 19 lina ember 9 bruno fable 27 kim birch 17 hana
12.83
birch 27 alice ember 16 farah fable 10 dina indigo 20 hana birch 24 chen delta 13 alice cobalt 21 hana fable 19 hana
18.75
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006876-p1
Output the average of column 2, formatted to precisely two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
indigo 3 farah delta 2 bruno grove 19 lina ember 9 bruno fable 27 kim birch 17 hana
12.83
birch 27 alice ember 16 farah fable 10 dina indigo 20 hana birch 24 chen delta 13 alice cobalt 21 hana fable 19 hana
18.75
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006876
qwen/qwen3.7-plus
awkweave-0006877
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
delta kim 30 amber eli 20 grove ivan 20 delta hana 26 fable alice 1 ember kim 1 cobalt jules 9 ember lina 4 fable eli 22 delta ivan 16
1
fable jules 12 amber hana 18 ember gus 9 birch bruno 3 harbor ivan 12 ember bruno 5
3
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006877-p1
Identify and display the minimum numeric value present in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
delta kim 30 amber eli 20 grove ivan 20 delta hana 26 fable alice 1 ember kim 1 cobalt jules 9 ember lina 4 fable eli 22 delta ivan 16
1
fable jules 12 amber hana 18 ember gus 9 birch bruno 3 harbor ivan 12 ember bruno 5
3
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006877
qwen/qwen3.7-plus
awkweave-0006878
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
28 grove lina 17 harbor alice 10 delta ivan 18 ember farah 10 harbor dina 6 cobalt dina 13 amber alice
28
24 ember lina 3 grove lina 11 birch farah 9 grove farah 20 harbor jules 29 harbor farah 10 delta jules 4 ember hana 29 cobalt alice 28 grove lina
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006878-p1
Identify and display the maximum numeric value present in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
28 grove lina 17 harbor alice 10 delta ivan 18 ember farah 10 harbor dina 6 cobalt dina 13 amber alice
28
24 ember lina 3 grove lina 11 birch farah 9 grove farah 20 harbor jules 29 harbor farah 10 delta jules 4 ember hana 29 cobalt alice 28 grove lina
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006878
qwen/qwen3.7-plus
awkweave-0006879
Count all input records and print the total.
END{print NR}
kim 46 chen 18 gus 109 farah 53 dina 26 ivan 92 kim 3 chen 25 ivan 2 chen 87
10
bruno 26 chen 76 lina 60 ivan 47 kim 2 chen 106
6
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006879-p1
Count the total number of input records and print the result.
END{print NR}
kim 46 chen 18 gus 109 farah 53 dina 26 ivan 92 kim 3 chen 25 ivan 2 chen 87
10
bruno 26 chen 76 lina 60 ivan 47 kim 2 chen 106
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006879
qwen/qwen3.7-plus
awkweave-0006880
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
hana grove 13 hana grove 13 jules grove 25 ivan cobalt 86 kim ember 90 eli ember 37 dina fable 86 kim harbor 68
hana grove 13 jules grove 25 ivan cobalt 86 kim ember 90 eli ember 37 dina fable 86 kim harbor 68
eli grove 20 bruno ember 29 ivan grove 116 gus harbor 119 lina indigo 87 eli delta 5 bruno ember 29
eli grove 20 bruno ember 29 ivan grove 116 gus harbor 119 lina indigo 87 eli delta 5
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null