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-0023831-p1
Print the entire record for any row where the value in the first column exceeds 38.
$1 > 38
118 active harbor 75 failed juniper 111 pending cobalt 88 pending ember 20 closed cobalt 97 closed amber 60 paused harbor
118 active harbor 75 failed juniper 111 pending cobalt 88 pending ember 97 closed amber 60 paused harbor
112 paused indigo 68 pending cobalt 19 pending harbor 113 active ember 100 paused grove 100 paused cobalt 99 pending indigo
112 paused indigo 68 pending cobalt 113 active ember 100 paused grove 100 paused cobalt 99 pending indigo
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023831
qwen/qwen3.7-plus
awkweave-0023832
Show whole lines whose 2nd field is between 12 and 18, inclusive.
$2 >= 12 && $2 <= 18
active 1 kim active failed 23 chen paused ready 12 chen pending ready 27 alice ready paused 20 gus failed active 28 lina failed ready 21 hana ready failed 8 kim paused closed 7 gus failed ready 20 eli active
ready 12 chen pending
ready 12 dina ready closed 26 farah pending paused 30 dina closed failed 14 gus failed paused 1 farah failed closed 24 lina paused paused 15 ivan paused pending 15 ivan paused
ready 12 dina ready failed 14 gus failed paused 15 ivan paused pending 15 ivan paused
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023832-p1
Display complete lines where the second field has a value between 12 and 18, including both endpoints.
$2 >= 12 && $2 <= 18
active 1 kim active failed 23 chen paused ready 12 chen pending ready 27 alice ready paused 20 gus failed active 28 lina failed ready 21 hana ready failed 8 kim paused closed 7 gus failed ready 20 eli active
ready 12 chen pending
ready 12 dina ready closed 26 farah pending paused 30 dina closed failed 14 gus failed paused 1 farah failed closed 24 lina paused paused 15 ivan paused pending 15 ivan paused
ready 12 dina ready failed 14 gus failed paused 15 ivan paused pending 15 ivan paused
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023832
qwen/qwen3.7-plus
awkweave-0023833
Print column 4 only for rows where column 2 is exactly closed.
$2 == "closed"{print $4}
63 failed delta jules 4 paused cobalt farah 85 ready juniper hana 97 failed birch eli 103 closed ember kim 6 pending indigo eli 43 failed ember kim 114 failed fable chen
kim
1 pending birch kim 30 closed amber farah 38 active indigo gus 20 active ember hana 20 closed indigo lina 111 closed cobalt chen 0 active amber alice 107 closed indigo dina 94 active amber farah
farah lina chen dina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023833-p1
Output only the fourth column for rows where the second column contains the exact string 'closed'.
$2 == "closed"{print $4}
63 failed delta jules 4 paused cobalt farah 85 ready juniper hana 97 failed birch eli 103 closed ember kim 6 pending indigo eli 43 failed ember kim 114 failed fable chen
kim
1 pending birch kim 30 closed amber farah 38 active indigo gus 20 active ember hana 20 closed indigo lina 111 closed cobalt chen 0 active amber alice 107 closed indigo dina 94 active amber farah
farah lina chen dina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023833
qwen/qwen3.7-plus
awkweave-0023834
Print all fields from lines where field 2 begins with INFO.
$2 ~ /^INFO/
86 ERROR ember 4 WARN juniper 34 INFO delta 24 ERROR harbor 106 DEBUG birch 58 ERROR cobalt 6 WARN delta 43 ERROR harbor 5 ERROR harbor
34 INFO delta
10 DEBUG grove 25 INFO fable 80 DEBUG harbor 9 DEBUG amber 102 WARN delta 44 DEBUG juniper 18 WARN grove
25 INFO fable
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023834-p1
Print all fields from any line where the second field starts with the prefix 'INFO'.
$2 ~ /^INFO/
86 ERROR ember 4 WARN juniper 34 INFO delta 24 ERROR harbor 106 DEBUG birch 58 ERROR cobalt 6 WARN delta 43 ERROR harbor 5 ERROR harbor
34 INFO delta
10 DEBUG grove 25 INFO fable 80 DEBUG harbor 9 DEBUG amber 102 WARN delta 44 DEBUG juniper 18 WARN grove
25 INFO fable
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023834
qwen/qwen3.7-plus
awkweave-0023835
Print every line except those containing the exact text ember.
$0 !~ /ember/
ember 90 paused ember 87 closed indigo 95 closed indigo 76 failed juniper 70 closed juniper 55 paused delta 33 paused delta 8 ready ember 999 active
indigo 95 closed indigo 76 failed juniper 70 closed juniper 55 paused delta 33 paused delta 8 ready
cobalt 17 pending fable 109 ready fable 41 pending amber 68 ready birch 15 active birch 5 closed fable 20 failed harbor 96 active fable 22 active ember 999 active
cobalt 17 pending fable 109 ready fable 41 pending amber 68 ready birch 15 active birch 5 closed fable 20 failed harbor 96 active fable 22 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023835-p1
Output every line from the input that does not contain the exact substring 'ember'.
$0 !~ /ember/
ember 90 paused ember 87 closed indigo 95 closed indigo 76 failed juniper 70 closed juniper 55 paused delta 33 paused delta 8 ready ember 999 active
indigo 95 closed indigo 76 failed juniper 70 closed juniper 55 paused delta 33 paused delta 8 ready
cobalt 17 pending fable 109 ready fable 41 pending amber 68 ready birch 15 active birch 5 closed fable 20 failed harbor 96 active fable 22 active ember 999 active
cobalt 17 pending fable 109 ready fable 41 pending amber 68 ready birch 15 active birch 5 closed fable 20 failed harbor 96 active fable 22 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023835
qwen/qwen3.7-plus
awkweave-0023836
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
hana indigo 94 ivan amber 49 farah amber 49 kim birch 45 farah juniper 80 dina grove 38 farah harbor 28 farah fable 69 alice indigo 16 eli indigo 75
ivan amber 49 farah amber 49
jules harbor 104 hana grove 46 kim amber 86 jules ember 83 chen grove 118 farah fable 86 alice fable 87 lina indigo 64
hana grove 46 kim amber 86
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023836-p1
Display lines 2 to 3, inclusive.
NR >= 2 && NR <= 3
hana indigo 94 ivan amber 49 farah amber 49 kim birch 45 farah juniper 80 dina grove 38 farah harbor 28 farah fable 69 alice indigo 16 eli indigo 75
ivan amber 49 farah amber 49
jules harbor 104 hana grove 46 kim amber 86 jules ember 83 chen grove 118 farah fable 86 alice fable 87 lina indigo 64
hana grove 46 kim amber 86
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023836
qwen/qwen3.7-plus
awkweave-0023837
Output only the first 5 records.
NR <= 5
alice 86 fable kim 62 harbor eli 74 juniper jules 62 indigo kim 66 delta chen 109 harbor hana 26 fable ivan 61 fable
alice 86 fable kim 62 harbor eli 74 juniper jules 62 indigo kim 66 delta
farah 85 juniper lina 11 juniper bruno 38 ember lina 102 birch farah 114 grove farah 104 harbor gus 58 fable eli 92 fable hana 100 delta
farah 85 juniper lina 11 juniper bruno 38 ember lina 102 birch farah 114 grove
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023837-p1
Output just the initial 5 records.
NR <= 5
alice 86 fable kim 62 harbor eli 74 juniper jules 62 indigo kim 66 delta chen 109 harbor hana 26 fable ivan 61 fable
alice 86 fable kim 62 harbor eli 74 juniper jules 62 indigo kim 66 delta
farah 85 juniper lina 11 juniper bruno 38 ember lina 102 birch farah 114 grove farah 104 harbor gus 58 fable eli 92 fable hana 100 delta
farah 85 juniper lina 11 juniper bruno 38 ember lina 102 birch farah 114 grove
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023837
qwen/qwen3.7-plus
awkweave-0023838
Skip the first line and print every remaining line unchanged.
NR > 1
ivan 33 juniper lina 99 fable chen 47 harbor hana 4 delta jules 66 birch dina 56 indigo jules 76 juniper
lina 99 fable chen 47 harbor hana 4 delta jules 66 birch dina 56 indigo jules 76 juniper
ivan 3 birch hana 0 juniper farah 113 indigo alice 104 cobalt bruno 17 ember farah 91 harbor gus 34 juniper alice 31 delta
hana 0 juniper farah 113 indigo alice 104 cobalt bruno 17 ember farah 91 harbor gus 34 juniper alice 31 delta
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023838-p1
Omit the first line and output all subsequent lines as they are.
NR > 1
ivan 33 juniper lina 99 fable chen 47 harbor hana 4 delta jules 66 birch dina 56 indigo jules 76 juniper
lina 99 fable chen 47 harbor hana 4 delta jules 66 birch dina 56 indigo jules 76 juniper
ivan 3 birch hana 0 juniper farah 113 indigo alice 104 cobalt bruno 17 ember farah 91 harbor gus 34 juniper alice 31 delta
hana 0 juniper farah 113 indigo alice 104 cobalt bruno 17 ember farah 91 harbor gus 34 juniper alice 31 delta
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023838
qwen/qwen3.7-plus
awkweave-0023839
Count how many records have ready in column 2. Print 0 if there are none.
$2 == "ready"{n++}END{print n+0}
eli closed 67 chen ready 14 eli failed 84 hana active 103 kim failed 5 dina ready 80 bruno paused 117 farah active 105 bruno active 17
2
eli pending 82 bruno active 22 lina paused 90 ivan pending 23 jules pending 10 chen paused 118 dina failed 94 eli paused 86 bruno pending 55
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023839-p1
Count records where column 2 is 'ready'; output 0 if the count is zero.
$2 == "ready"{n++}END{print n+0}
eli closed 67 chen ready 14 eli failed 84 hana active 103 kim failed 5 dina ready 80 bruno paused 117 farah active 105 bruno active 17
2
eli pending 82 bruno active 22 lina paused 90 ivan pending 23 jules pending 10 chen paused 118 dina failed 94 eli paused 86 bruno pending 55
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023839
qwen/qwen3.7-plus
awkweave-0023840
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
birch 6 alice ember 6 kim ember 25 eli amber 27 jules harbor 10 jules fable 18 gus fable 2 gus harbor 16 lina
110
amber 25 gus cobalt 3 kim juniper 11 bruno birch 14 farah indigo 25 ivan ember 7 dina delta 5 ivan
90
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023840-p1
Compute and display the total sum of integer values in column 2.
{s+=$2}END{print s+0}
birch 6 alice ember 6 kim ember 25 eli amber 27 jules harbor 10 jules fable 18 gus fable 2 gus harbor 16 lina
110
amber 25 gus cobalt 3 kim juniper 11 bruno birch 14 farah indigo 25 ivan ember 7 dina delta 5 ivan
90
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023840
qwen/qwen3.7-plus
awkweave-0023841
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
dina grove 19 dina ember 3 jules fable 17 kim birch 10 ivan ember 26 gus delta 1
12.67
chen indigo 17 hana fable 4 kim indigo 8 jules cobalt 13 hana birch 23 bruno grove 16 kim delta 30 hana indigo 6 alice juniper 28
16.11
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023841-p1
Print the average of column 3, rounded to two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
dina grove 19 dina ember 3 jules fable 17 kim birch 10 ivan ember 26 gus delta 1
12.67
chen indigo 17 hana fable 4 kim indigo 8 jules cobalt 13 hana birch 23 bruno grove 16 kim delta 30 hana indigo 6 alice juniper 28
16.11
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023841
qwen/qwen3.7-plus
awkweave-0023842
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
eli 22 birch bruno 7 juniper alice 5 indigo bruno 6 harbor hana 7 harbor hana 8 birch farah 28 amber eli 18 grove
5
bruno 9 cobalt jules 13 delta bruno 2 indigo kim 1 birch gus 17 fable ivan 4 indigo
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023842-p1
Identify and print the minimum numeric value found in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
eli 22 birch bruno 7 juniper alice 5 indigo bruno 6 harbor hana 7 harbor hana 8 birch farah 28 amber eli 18 grove
5
bruno 9 cobalt jules 13 delta bruno 2 indigo kim 1 birch gus 17 fable ivan 4 indigo
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023842
qwen/qwen3.7-plus
awkweave-0023843
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
26 juniper ivan 17 fable chen 16 cobalt lina 23 grove farah 5 fable alice 27 ember chen 17 juniper ivan 15 amber farah 22 birch eli
27
1 indigo jules 21 amber gus 12 ember hana 24 amber eli 18 fable chen 3 amber dina 30 harbor dina
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023843-p1
Identify and print the maximum numeric value found in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
26 juniper ivan 17 fable chen 16 cobalt lina 23 grove farah 5 fable alice 27 ember chen 17 juniper ivan 15 amber farah 22 birch eli
27
1 indigo jules 21 amber gus 12 ember hana 24 amber eli 18 fable chen 3 amber dina 30 harbor dina
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023843
qwen/qwen3.7-plus
awkweave-0023844
Count all input records and print the total.
END{print NR}
eli 67 kim 87 dina 63 farah 115 dina 11 bruno 4 lina 69
7
farah 81 eli 120 ivan 80 hana 30 lina 56 lina 9 bruno 34 dina 61 dina 63
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023844-p1
Count the total number of input records and print the result.
END{print NR}
eli 67 kim 87 dina 63 farah 115 dina 11 bruno 4 lina 69
7
farah 81 eli 120 ivan 80 hana 30 lina 56 lina 9 bruno 34 dina 61 dina 63
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023844
qwen/qwen3.7-plus
awkweave-0023845
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
chen amber 47 chen harbor 69 farah ember 34 jules ember 9 hana harbor 57 chen amber 47 chen juniper 53 gus delta 7 kim birch 111 eli birch 23
chen amber 47 chen harbor 69 farah ember 34 jules ember 9 hana harbor 57 chen juniper 53 gus delta 7 kim birch 111 eli birch 23
ivan amber 119 chen birch 120 lina birch 52 dina ember 44 bruno amber 76 farah grove 107 hana ember 56 ivan amber 119 dina indigo 44 bruno amber 94 bruno delta 57
ivan amber 119 chen birch 120 lina birch 52 dina ember 44 bruno amber 76 farah grove 107 hana ember 56 dina indigo 44 bruno amber 94 bruno delta 57
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023845-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining original order.
!seen[$0]++
chen amber 47 chen harbor 69 farah ember 34 jules ember 9 hana harbor 57 chen amber 47 chen juniper 53 gus delta 7 kim birch 111 eli birch 23
chen amber 47 chen harbor 69 farah ember 34 jules ember 9 hana harbor 57 chen juniper 53 gus delta 7 kim birch 111 eli birch 23
ivan amber 119 chen birch 120 lina birch 52 dina ember 44 bruno amber 76 farah grove 107 hana ember 56 ivan amber 119 dina indigo 44 bruno amber 94 bruno delta 57
ivan amber 119 chen birch 120 lina birch 52 dina ember 44 bruno amber 76 farah grove 107 hana ember 56 dina indigo 44 bruno amber 94 bruno delta 57
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023845
qwen/qwen3.7-plus
awkweave-0023846
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
alice cobalt 45 farah amber 39 hana amber 73 gus ember 34 kim indigo 64 hana ember 70
alice cobalt 45 farah amber 39 hana amber 73 gus ember 34 kim indigo 64
gus grove 50 ivan birch 26 kim ember 30 eli delta 62 hana birch 82 bruno juniper 36
gus grove 50 ivan birch 26 kim ember 30 eli delta 62 hana birch 82 bruno juniper 36
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023846-p1
Retain only the first occurrence for each unique value in column 1, preserving input order.
!seen[$1]++
alice cobalt 45 farah amber 39 hana amber 73 gus ember 34 kim indigo 64 hana ember 70
alice cobalt 45 farah amber 39 hana amber 73 gus ember 34 kim indigo 64
gus grove 50 ivan birch 26 kim ember 30 eli delta 62 hana birch 82 bruno juniper 36
gus grove 50 ivan birch 26 kim ember 30 eli delta 62 hana birch 82 bruno juniper 36
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023846
qwen/qwen3.7-plus
awkweave-0023847
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
chen 13 delta chen 26 grove farah 14 harbor gus 12 grove eli 10 harbor lina 28 fable alice 7 amber
chen 13 chen 39 farah 53 gus 65 eli 75 lina 103 alice 110
ivan 22 indigo gus 7 amber dina 19 fable dina 5 indigo kim 9 delta jules 12 cobalt
ivan 22 gus 29 dina 48 dina 53 kim 62 jules 74
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023847-p1
For every record, output column 1 followed by the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
chen 13 delta chen 26 grove farah 14 harbor gus 12 grove eli 10 harbor lina 28 fable alice 7 amber
chen 13 chen 39 farah 53 gus 65 eli 75 lina 103 alice 110
ivan 22 indigo gus 7 amber dina 19 fable dina 5 indigo kim 9 delta jules 12 cobalt
ivan 22 gus 29 dina 48 dina 53 kim 62 jules 74
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023847
qwen/qwen3.7-plus
awkweave-0023848
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
alice 6 16 indigo bruno 2 7 harbor ivan 10 8 ember gus 30 14 juniper bruno 10 2 juniper alice 16 28 birch ivan 16 28 fable bruno 28 30 grove
alice 22 bruno 9 ivan 18 gus 44 bruno 12 alice 44 ivan 44 bruno 58
farah 26 7 birch gus 3 5 cobalt lina 29 25 grove hana 25 15 cobalt lina 26 26 amber jules 30 3 birch ivan 3 24 delta hana 6 11 juniper
farah 33 gus 8 lina 54 hana 40 lina 52 jules 33 ivan 27 hana 17
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023848-p1
Output field 1 and the total of fields 2 and 3 for each row.
{print $1,$2+$3}
alice 6 16 indigo bruno 2 7 harbor ivan 10 8 ember gus 30 14 juniper bruno 10 2 juniper alice 16 28 birch ivan 16 28 fable bruno 28 30 grove
alice 22 bruno 9 ivan 18 gus 44 bruno 12 alice 44 ivan 44 bruno 58
farah 26 7 birch gus 3 5 cobalt lina 29 25 grove hana 25 15 cobalt lina 26 26 amber jules 30 3 birch ivan 3 24 delta hana 6 11 juniper
farah 33 gus 8 lina 54 hana 40 lina 52 jules 33 ivan 27 hana 17
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023848
qwen/qwen3.7-plus
awkweave-0023849
Print column 1 and pass when column 2 is at least 26; otherwise print fail.
{print $1,($2>=26?"pass":"fail")}
eli 29 eli 17 dina 23 eli 5 alice 13 eli 28 alice 29 ivan 20 eli 29 farah 30
eli pass eli fail dina fail eli fail alice fail eli pass alice pass ivan fail eli pass farah pass
kim 19 farah 3 ivan 2 farah 26 bruno 30 alice 20 jules 21
kim fail farah fail ivan fail farah pass bruno pass alice fail jules fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023849-p1
Display column 1; output 'pass' if column 2 is 26 or higher, otherwise output 'fail'.
{print $1,($2>=26?"pass":"fail")}
eli 29 eli 17 dina 23 eli 5 alice 13 eli 28 alice 29 ivan 20 eli 29 farah 30
eli pass eli fail dina fail eli fail alice fail eli pass alice pass ivan fail eli pass farah pass
kim 19 farah 3 ivan 2 farah 26 bruno 30 alice 20 jules 21
kim fail farah fail ivan fail farah pass bruno pass alice fail jules fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023849
qwen/qwen3.7-plus
awkweave-0023850
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
bruno cobalt 109 eli ember 108 kim ember 3 ivan cobalt 57 bruno cobalt 81 gus harbor 22 alice indigo 102 lina grove 70 farah cobalt 70
BRUNO ELI KIM IVAN BRUNO GUS ALICE LINA FARAH
ivan birch 37 dina delta 20 gus delta 6 chen indigo 104 ivan indigo 66 alice amber 113 alice grove 33 kim juniper 58 lina delta 30
IVAN DINA GUS CHEN IVAN ALICE ALICE KIM LINA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023850-p1
Transform column 1 to uppercase and print only that column.
{print toupper($1)}
bruno cobalt 109 eli ember 108 kim ember 3 ivan cobalt 57 bruno cobalt 81 gus harbor 22 alice indigo 102 lina grove 70 farah cobalt 70
BRUNO ELI KIM IVAN BRUNO GUS ALICE LINA FARAH
ivan birch 37 dina delta 20 gus delta 6 chen indigo 104 ivan indigo 66 alice amber 113 alice grove 33 kim juniper 58 lina delta 30
IVAN DINA GUS CHEN IVAN ALICE ALICE KIM LINA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023850
qwen/qwen3.7-plus
awkweave-0023851
From column 1, print 3 characters starting at character 2.
{print substr($1,2,3)}
cobalt 28 fable 6 ember 70 indigo 6 cobalt 40 cobalt 25 cobalt 48 delta 11
oba abl mbe ndi oba oba oba elt
juniper 119 indigo 83 indigo 41 cobalt 68 harbor 111 ember 114 cobalt 62
uni ndi ndi oba arb mbe oba
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023851-p1
Extract and print a 3-character substring from column 1, beginning at position 2.
{print substr($1,2,3)}
cobalt 28 fable 6 ember 70 indigo 6 cobalt 40 cobalt 25 cobalt 48 delta 11
oba abl mbe ndi oba oba oba elt
juniper 119 indigo 83 indigo 41 cobalt 68 harbor 111 ember 114 cobalt 62
uni ndi ndi oba arb mbe oba
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023851
qwen/qwen3.7-plus
awkweave-0023852
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
amber_birch 96 cobalt_grove 108 juniper_juniper 88 amber_harbor 48 ember_ember 107 cobalt_amber 39 indigo_indigo 11 indigo_grove 28 harbor_amber 32
amber birch cobalt grove juniper juniper amber harbor ember ember cobalt amber indigo indigo indigo grove harbor amber
ember_juniper 97 ember_indigo 117 cobalt_birch 15 harbor_amber 92 grove_fable 37 juniper_cobalt 60 birch_indigo 43 juniper_birch 53 indigo_amber 77 juniper_birch 37
ember juniper ember indigo cobalt birch harbor amber grove fable juniper cobalt birch indigo juniper birch indigo amber juniper birch
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023852-p1
Substitute all underscores in column 1 with spaces and print the result.
{gsub(/_/," ",$1);print $1}
amber_birch 96 cobalt_grove 108 juniper_juniper 88 amber_harbor 48 ember_ember 107 cobalt_amber 39 indigo_indigo 11 indigo_grove 28 harbor_amber 32
amber birch cobalt grove juniper juniper amber harbor ember ember cobalt amber indigo indigo indigo grove harbor amber
ember_juniper 97 ember_indigo 117 cobalt_birch 15 harbor_amber 92 grove_fable 37 juniper_cobalt 60 birch_indigo 43 juniper_birch 53 indigo_amber 77 juniper_birch 37
ember juniper ember indigo cobalt birch harbor amber grove fable juniper cobalt birch indigo juniper birch indigo amber juniper birch
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023852
qwen/qwen3.7-plus
awkweave-0023853
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)}
alice amber 5 failed bruno birch 83 failed gus fable 47 failed jules birch 1 active kim grove 18 failed farah delta 45 ready
failed 5 amber alice failed 83 birch bruno failed 47 fable gus active 1 birch jules failed 18 grove kim ready 45 delta farah
bruno ember 91 ready chen cobalt 47 failed chen grove 79 ready dina indigo 113 ready gus birch 0 paused dina birch 83 ready lina indigo 77 paused farah grove 91 pending
ready 91 ember bruno failed 47 cobalt chen ready 79 grove chen ready 113 indigo dina paused 0 birch gus ready 83 birch dina paused 77 indigo lina pending 91 grove farah
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023853-p1
Reverse the sequence of fields on each line and print them all.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
alice amber 5 failed bruno birch 83 failed gus fable 47 failed jules birch 1 active kim grove 18 failed farah delta 45 ready
failed 5 amber alice failed 83 birch bruno failed 47 fable gus active 1 birch jules failed 18 grove kim ready 45 delta farah
bruno ember 91 ready chen cobalt 47 failed chen grove 79 ready dina indigo 113 ready gus birch 0 paused dina birch 83 ready lina indigo 77 paused farah grove 91 pending
ready 91 ember bruno failed 47 cobalt chen ready 79 grove chen ready 113 indigo dina paused 0 birch gus ready 83 birch dina paused 77 indigo lina pending 91 grove farah
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023853
qwen/qwen3.7-plus
awkweave-0023854
Print the number of whitespace-separated fields on each line.
{print NF}
kim grove 42 ready dina delta 7 pending lina harbor 23 ready kim indigo 7 pending eli delta 66 paused ivan fable 19 active ivan indigo 36 active
4 4 4 4 4 4 4
eli grove 95 failed jules ember 91 ready ivan indigo 99 pending hana grove 2 closed bruno fable 58 active chen birch 43 paused dina fable 95 closed jules juniper 81 closed kim birch 64 paused
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023854-p1
Print the count of whitespace-delimited fields for every line.
{print NF}
kim grove 42 ready dina delta 7 pending lina harbor 23 ready kim indigo 7 pending eli delta 66 paused ivan fable 19 active ivan indigo 36 active
4 4 4 4 4 4 4
eli grove 95 failed jules ember 91 ready ivan indigo 99 pending hana grove 2 closed bruno fable 58 active chen birch 43 paused dina fable 95 closed jules juniper 81 closed kim birch 64 paused
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023854
qwen/qwen3.7-plus
awkweave-0023855
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]]}
dina alpha 53 hana delta 87 ivan delta 51 hana gamma 88 kim alpha 47 gus beta 36
alpha 2 delta 2 gamma 1 beta 1
lina alpha 98 chen alpha 4 gus delta 41 hana gamma 19 ivan alpha 49 lina beta 71 lina alpha 48 bruno alpha 43
alpha 5 delta 1 gamma 1 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023855-p1
Tally records per value in column 2. Print each value and 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]]}
dina alpha 53 hana delta 87 ivan delta 51 hana gamma 88 kim alpha 47 gus beta 36
alpha 2 delta 2 gamma 1 beta 1
lina alpha 98 chen alpha 4 gus delta 41 hana gamma 19 ivan alpha 49 lina beta 71 lina alpha 48 bruno alpha 43
alpha 5 delta 1 gamma 1 beta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023855
qwen/qwen3.7-plus
awkweave-0023856
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 gamma 17 bruno delta 28 lina gamma 1 bruno alpha 25 bruno beta 16 chen delta 28 kim alpha 2
gamma 18 delta 56 alpha 27 beta 16
gus gamma 11 farah beta 23 ivan delta 19 lina gamma 20 lina alpha 12 eli delta 22 ivan delta 21 alice beta 30
gamma 31 beta 53 delta 62 alpha 12
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023856-p1
Calculate the sum of column 3 for each group in column 2, printing 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]]}
farah gamma 17 bruno delta 28 lina gamma 1 bruno alpha 25 bruno beta 16 chen delta 28 kim alpha 2
gamma 18 delta 56 alpha 27 beta 16
gus gamma 11 farah beta 23 ivan delta 19 lina gamma 20 lina alpha 12 eli delta 22 ivan delta 21 alice beta 30
gamma 31 beta 53 delta 62 alpha 12
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023856
qwen/qwen3.7-plus
awkweave-0023857
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]]}
alpha harbor 65 gamma juniper 20 alpha indigo 57 beta cobalt 2 delta harbor 31 beta juniper 50 beta cobalt 26 alpha delta 15 gamma grove 64
alpha 3 gamma 2 beta 3
delta ember 76 beta grove 72 beta fable 67 delta harbor 105 gamma amber 95 alpha amber 28
delta 2 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023857-p1
List each duplicate value from column 1 along with its occurrence count, sorted 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]]}
alpha harbor 65 gamma juniper 20 alpha indigo 57 beta cobalt 2 delta harbor 31 beta juniper 50 beta cobalt 26 alpha delta 15 gamma grove 64
alpha 3 gamma 2 beta 3
delta ember 76 beta grove 72 beta fable 67 delta harbor 105 gamma amber 95 alpha amber 28
delta 2 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023857
qwen/qwen3.7-plus
awkweave-0023858
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"]}
note display_name state score r001 dina 17 closed r002 kim 25 closed r003 eli 16 closed r004 bruno 13 closed r005 lina 28 active r006 chen 18 ready r007 hana 16 paused r008 hana 25 pending r009 eli 4 closed
closed closed closed closed active ready paused pending closed
note display_name state score r001 jules 24 paused r002 chen 27 failed r003 chen 23 failed r004 ivan 3 paused r005 farah 12 paused r006 kim 5 ready r007 kim 8 paused r008 hana 25 ready r009 chen 23 paused r010 jules 28 ready
paused failed failed paused paused ready paused ready paused ready
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023858-p1
Skip the header row and print the score column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
note display_name state score r001 dina 17 closed r002 kim 25 closed r003 eli 16 closed r004 bruno 13 closed r005 lina 28 active r006 chen 18 ready r007 hana 16 paused r008 hana 25 pending r009 eli 4 closed
closed closed closed closed active ready paused pending closed
note display_name state score r001 jules 24 paused r002 chen 27 failed r003 chen 23 failed r004 ivan 3 paused r005 farah 12 paused r006 kim 5 ready r007 kim 8 paused r008 hana 25 ready r009 chen 23 paused r010 jules 28 ready
paused failed failed paused paused ready paused ready paused ready
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023858
qwen/qwen3.7-plus
awkweave-0023859
The first row is a header. Print display_name for data rows whose score is greater than 12.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>12{print $h["display_name"]}
record_id display_name score state r001 alice 12 paused r002 chen 26 failed r003 lina 18 paused r004 ivan 7 active r005 ivan 17 failed r006 farah 17 active r007 dina 23 pending
chen lina ivan farah dina
record_id display_name score state r001 chen 23 paused r002 eli 24 active r003 dina 17 active r004 hana 4 paused r005 dina 5 pending r006 ivan 23 pending r007 hana 21 ready r008 chen 7 active
chen eli dina ivan hana
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023859-p1
Ignore the header row and print display_name for rows where the score exceeds 12.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>12{print $h["display_name"]}
record_id display_name score state r001 alice 12 paused r002 chen 26 failed r003 lina 18 paused r004 ivan 7 active r005 ivan 17 failed r006 farah 17 active r007 dina 23 pending
chen lina ivan farah dina
record_id display_name score state r001 chen 23 paused r002 eli 24 active r003 dina 17 active r004 hana 4 paused r005 dina 5 pending r006 ivan 23 pending r007 hana 21 ready r008 chen 7 active
chen eli dina ivan hana
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023859
qwen/qwen3.7-plus
awkweave-0023860
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
jules 9 failed dina 14 failed bruno 23 paused dina 26 active jules 30 pending lina 29 ready kim 1 paused chen 9 pending bruno 26 closed
failed failed paused active pending ready paused pending closed
gus 25 active ivan 14 active gus 7 pending hana 9 pending lina 27 pending ivan 23 paused lina 23 pending ivan 13 closed chen 15 closed kim 20 active
active active pending pending pending paused pending closed closed active
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023860-p1
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
jules 9 failed dina 14 failed bruno 23 paused dina 26 active jules 30 pending lina 29 ready kim 1 paused chen 9 pending bruno 26 closed
failed failed paused active pending ready paused pending closed
gus 25 active ivan 14 active gus 7 pending hana 9 pending lina 27 pending ivan 23 paused lina 23 pending ivan 13 closed chen 15 closed kim 20 active
active active pending pending pending paused pending closed closed active
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0023860
qwen/qwen3.7-plus
awkweave-0023861
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 18.
BEGIN{FS=OFS=","}$2>18{print $1}
farah,23,closed chen,12,active farah,8,paused hana,21,pending jules,9,closed alice,4,failed hana,22,failed kim,18,closed kim,20,closed dina,23,paused
farah hana hana kim dina
jules,13,paused kim,20,ready kim,30,closed bruno,24,failed ivan,3,closed alice,2,ready farah,1,failed ivan,18,failed
kim kim bruno
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023861-p1
Output the first column of comma-separated data whenever the second column is greater than 18.
BEGIN{FS=OFS=","}$2>18{print $1}
farah,23,closed chen,12,active farah,8,paused hana,21,pending jules,9,closed alice,4,failed hana,22,failed kim,18,closed kim,20,closed dina,23,paused
farah hana hana kim dina
jules,13,paused kim,20,ready kim,30,closed bruno,24,failed ivan,3,closed alice,2,ready farah,1,failed ivan,18,failed
kim kim bruno
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023861
qwen/qwen3.7-plus
awkweave-0023862
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
chen delta 63 ivan indigo 35 jules indigo 2 eli juniper 16 ivan ember 112 bruno cobalt 57 eli delta 58 chen cobalt 57 alice delta 44
chen delta 63 ivan indigo 35 jules indigo 2 eli juniper 16 ivan ember 112 bruno cobalt 57 eli delta 58 chen cobalt 57 alice delta 44
alice amber 70 hana juniper 96 jules cobalt 14 gus ember 50 alice juniper 44 farah birch 107
alice amber 70 hana juniper 96 jules cobalt 14 gus ember 50 alice juniper 44 farah birch 107
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023862-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
chen delta 63 ivan indigo 35 jules indigo 2 eli juniper 16 ivan ember 112 bruno cobalt 57 eli delta 58 chen cobalt 57 alice delta 44
chen delta 63 ivan indigo 35 jules indigo 2 eli juniper 16 ivan ember 112 bruno cobalt 57 eli delta 58 chen cobalt 57 alice delta 44
alice amber 70 hana juniper 96 jules cobalt 14 gus ember 50 alice juniper 44 farah birch 107
alice amber 70 hana juniper 96 jules cobalt 14 gus ember 50 alice juniper 44 farah birch 107
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023862
qwen/qwen3.7-plus
awkweave-0023863
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
eli delta 27 paused ivan harbor 41 active chen fable 62 ready kim birch 69 closed ivan amber 87 ready alice harbor 58 closed chen fable 75 failed lina cobalt 39 closed alice amber 7 active kim grove 55 failed
alice harbor 58 closed
hana indigo 95 closed bruno amber 16 closed kim cobalt 16 closed gus ember 58 paused alice cobalt 27 closed gus fable 2 pending hana grove 80 active
alice cobalt 27 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023863-p1
Identify and print the longest line in the input; if multiple lines share the maximum length, select the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
eli delta 27 paused ivan harbor 41 active chen fable 62 ready kim birch 69 closed ivan amber 87 ready alice harbor 58 closed chen fable 75 failed lina cobalt 39 closed alice amber 7 active kim grove 55 failed
alice harbor 58 closed
hana indigo 95 closed bruno amber 16 closed kim cobalt 16 closed gus ember 58 paused alice cobalt 27 closed gus fable 2 pending hana grove 80 active
alice cobalt 27 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023863
qwen/qwen3.7-plus
awkweave-0023864
Print every 4th line starting at line 3 (then line 7, and so on).
NR%4==3
alice 1 lina 34 chen 104 eli 70 gus 36 kim 18 farah 94 bruno 117
chen 104 farah 94
chen 105 ivan 53 ivan 76 gus 23 eli 67 eli 9 ivan 63 alice 80 farah 106 gus 71
ivan 76 ivan 63
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023864-p1
Print lines 3, 7, 11, and so on, effectively outputting every 4th line starting from the 3rd.
NR%4==3
alice 1 lina 34 chen 104 eli 70 gus 36 kim 18 farah 94 bruno 117
chen 104 farah 94
chen 105 ivan 53 ivan 76 gus 23 eli 67 eli 9 ivan 63 alice 80 farah 106 gus 71
ivan 76 ivan 63
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023864
qwen/qwen3.7-plus
awkweave-0023865
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
gamma indigo 11 gamma harbor 93 alpha grove 104 alpha grove 103 delta juniper 105 beta amber 41
4
gamma indigo 73 alpha amber 77 gamma cobalt 58 alpha indigo 21 delta delta 7 alpha amber 64 alpha amber 96
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023865-p1
Calculate the number of unique values in the first column and output only that total count.
{if(!seen[$1]++)n++}END{print n+0}
gamma indigo 11 gamma harbor 93 alpha grove 104 alpha grove 103 delta juniper 105 beta amber 41
4
gamma indigo 73 alpha amber 77 gamma cobalt 58 alpha indigo 21 delta delta 7 alpha amber 64 alpha amber 96
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023865
qwen/qwen3.7-plus
awkweave-0023866
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
bruno 30 0 lina 4 5 farah 7 25 jules 24 2 ivan 23 2 ivan 29 27 ivan 26 16
lina 0.80 farah 0.28 jules 12.00 ivan 11.50 ivan 1.07 ivan 1.62
hana 14 0 farah 7 21 bruno 3 3 jules 10 29 ivan 17 28 eli 14 10 jules 2 21 gus 13 27 alice 13 11 dina 3 6
farah 0.33 bruno 1.00 jules 0.34 ivan 0.61 eli 1.40 jules 0.10 gus 0.48 alice 1.18 dina 0.50
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023866-p1
For each row where the third column is not zero, output the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
bruno 30 0 lina 4 5 farah 7 25 jules 24 2 ivan 23 2 ivan 29 27 ivan 26 16
lina 0.80 farah 0.28 jules 12.00 ivan 11.50 ivan 1.07 ivan 1.62
hana 14 0 farah 7 21 bruno 3 3 jules 10 29 ivan 17 28 eli 14 10 jules 2 21 gus 13 27 alice 13 11 dina 3 6
farah 0.33 bruno 1.00 jules 0.34 ivan 0.61 eli 1.40 jules 0.10 gus 0.48 alice 1.18 dina 0.50
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023866
qwen/qwen3.7-plus
awkweave-0023867
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
chen delta 10 ivan birch 1 ivan delta 6 lina birch 24 alice indigo 22 kim juniper 9 dina amber 6 eli fable 27 farah fable 26 chen harbor 27
eli fable 27 chen harbor 27 farah fable 26
kim indigo 29 ivan indigo 26 gus cobalt 26 dina indigo 1 farah indigo 27 bruno cobalt 4 farah fable 11 bruno grove 17 ivan harbor 17
kim indigo 29 farah indigo 27 ivan indigo 26
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023867-p1
Display the top three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
chen delta 10 ivan birch 1 ivan delta 6 lina birch 24 alice indigo 22 kim juniper 9 dina amber 6 eli fable 27 farah fable 26 chen harbor 27
eli fable 27 chen harbor 27 farah fable 26
kim indigo 29 ivan indigo 26 gus cobalt 26 dina indigo 1 farah indigo 27 bruno cobalt 4 farah fable 11 bruno grove 17 ivan harbor 17
kim indigo 29 farah indigo 27 ivan indigo 26
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023867
qwen/qwen3.7-plus
awkweave-0023868
Select the 5th and 2nd fields in that order.
{print $5, $2}
8 39 harbor ember eli 82 57 amber amber gus 50 57 harbor ember jules 82 60 fable fable chen 91 29 indigo indigo jules 94 48 birch cobalt chen
eli 39 gus 57 jules 57 chen 60 jules 29 chen 48
73 74 grove fable ivan 0 77 delta juniper jules 55 90 harbor grove gus 23 116 juniper birch gus 115 26 ember ember jules 15 43 amber harbor chen 68 30 cobalt amber farah 8 6 birch juniper jules 24 105 ember grove gus 100 78 delta birch ivan
ivan 74 jules 77 gus 90 gus 116 jules 26 chen 43 farah 30 jules 6 gus 105 ivan 78
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023868-p1
Output the 5th field followed by the 2nd field for each record.
{print $5, $2}
8 39 harbor ember eli 82 57 amber amber gus 50 57 harbor ember jules 82 60 fable fable chen 91 29 indigo indigo jules 94 48 birch cobalt chen
eli 39 gus 57 jules 57 chen 60 jules 29 chen 48
73 74 grove fable ivan 0 77 delta juniper jules 55 90 harbor grove gus 23 116 juniper birch gus 115 26 ember ember jules 15 43 amber harbor chen 68 30 cobalt amber farah 8 6 birch juniper jules 24 105 ember grove gus 100 78 delta birch ivan
ivan 74 jules 77 gus 90 gus 116 jules 26 chen 43 farah 30 jules 6 gus 105 ivan 78
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023868
qwen/qwen3.7-plus
awkweave-0023869
Print the last field of every input line.
{print $NF}
delta indigo active active 85 bruno 85 delta juniper pending closed 6 bruno 68 ember cobalt paused paused 104 dina 109 cobalt fable ready closed 103 farah 39 cobalt juniper paused pending 68 jules 56 grove fable ready ready 88 ivan 41 ember fable closed pending 108 alice 17 fable indigo closed active 43 eli 92 juniper ...
85 68 109 39 56 41 17 92 37 95
ember amber pending pending 62 farah 58 ember harbor failed active 81 chen 101 juniper ember ready closed 4 lina 15 indigo delta closed active 2 gus 89 birch harbor closed pending 10 kim 48 amber grove pending ready 24 dina 8 amber amber pending paused 31 alice 32 juniper indigo paused pending 90 farah 112 amber grove ...
58 101 15 89 48 8 32 112 2
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023869-p1
Print the final field from every line of input.
{print $NF}
delta indigo active active 85 bruno 85 delta juniper pending closed 6 bruno 68 ember cobalt paused paused 104 dina 109 cobalt fable ready closed 103 farah 39 cobalt juniper paused pending 68 jules 56 grove fable ready ready 88 ivan 41 ember fable closed pending 108 alice 17 fable indigo closed active 43 eli 92 juniper ...
85 68 109 39 56 41 17 92 37 95
ember amber pending pending 62 farah 58 ember harbor failed active 81 chen 101 juniper ember ready closed 4 lina 15 indigo delta closed active 2 gus 89 birch harbor closed pending 10 kim 48 amber grove pending ready 24 dina 8 amber amber pending paused 31 alice 32 juniper indigo paused pending 90 farah 112 amber grove ...
58 101 15 89 48 8 32 112 2
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023869
qwen/qwen3.7-plus
awkweave-0023870
Print the complete records where column 3 is greater than 71.
$3 > 71
paused ivan 40 lina paused gus 93 eli active chen 60 ivan paused ivan 76 lina active dina 111 lina failed jules 111 lina
paused gus 93 eli paused ivan 76 lina active dina 111 lina failed jules 111 lina
active dina 45 chen pending jules 117 hana active ivan 102 lina active alice 8 lina paused jules 13 hana ready chen 11 jules failed chen 48 chen pending dina 15 eli closed ivan 9 bruno ready eli 113 eli
pending jules 117 hana active ivan 102 lina ready eli 113 eli
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023870-p1
Output entire records where the value in the third column exceeds 71.
$3 > 71
paused ivan 40 lina paused gus 93 eli active chen 60 ivan paused ivan 76 lina active dina 111 lina failed jules 111 lina
paused gus 93 eli paused ivan 76 lina active dina 111 lina failed jules 111 lina
active dina 45 chen pending jules 117 hana active ivan 102 lina active alice 8 lina paused jules 13 hana ready chen 11 jules failed chen 48 chen pending dina 15 eli closed ivan 9 bruno ready eli 113 eli
pending jules 117 hana active ivan 102 lina ready eli 113 eli
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023870
qwen/qwen3.7-plus
awkweave-0023871
Show whole lines whose 1st field is between 6 and 24, inclusive.
$1 >= 6 && $1 <= 24
28 closed farah closed 1 closed bruno active 22 ready hana pending 7 failed hana closed 19 active chen failed 16 failed bruno pending
22 ready hana pending 7 failed hana closed 19 active chen failed 16 failed bruno pending
4 failed alice active 20 paused lina pending 5 failed dina closed 16 paused jules failed 9 ready chen paused 24 pending dina failed 10 active gus ready 27 pending bruno ready 29 failed jules active
20 paused lina pending 16 paused jules failed 9 ready chen paused 24 pending dina failed 10 active gus ready
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023871-p1
Display full lines where the first field falls within the inclusive range of 6 to 24.
$1 >= 6 && $1 <= 24
28 closed farah closed 1 closed bruno active 22 ready hana pending 7 failed hana closed 19 active chen failed 16 failed bruno pending
22 ready hana pending 7 failed hana closed 19 active chen failed 16 failed bruno pending
4 failed alice active 20 paused lina pending 5 failed dina closed 16 paused jules failed 9 ready chen paused 24 pending dina failed 10 active gus ready 27 pending bruno ready 29 failed jules active
20 paused lina pending 16 paused jules failed 9 ready chen paused 24 pending dina failed 10 active gus ready
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023871
qwen/qwen3.7-plus
awkweave-0023872
Print column 4 only for rows where column 3 is exactly closed.
$3 == "closed"{print $4}
grove 105 ready dina cobalt 17 paused bruno cobalt 81 paused hana juniper 56 pending gus indigo 113 paused dina grove 71 ready chen amber 4 ready dina amber 7 closed hana
hana
birch 1 closed dina delta 43 ready dina birch 86 failed gus birch 19 failed alice delta 19 pending hana harbor 47 active hana birch 16 failed ivan grove 71 paused hana cobalt 120 closed chen
dina chen
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023872-p1
Display only the fourth column for rows where the third column matches 'closed' exactly.
$3 == "closed"{print $4}
grove 105 ready dina cobalt 17 paused bruno cobalt 81 paused hana juniper 56 pending gus indigo 113 paused dina grove 71 ready chen amber 4 ready dina amber 7 closed hana
hana
birch 1 closed dina delta 43 ready dina birch 86 failed gus birch 19 failed alice delta 19 pending hana harbor 47 active hana birch 16 failed ivan grove 71 paused hana cobalt 120 closed chen
dina chen
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023872
qwen/qwen3.7-plus
awkweave-0023873
Print all fields from lines where field 3 begins with INFO.
$3 ~ /^INFO/
indigo 23 DEBUG amber 60 WARN indigo 93 WARN ember 98 ERROR cobalt 52 INFO indigo 45 DEBUG cobalt 109 INFO juniper 79 DEBUG fable 67 ERROR delta 93 DEBUG
cobalt 52 INFO cobalt 109 INFO
harbor 90 DEBUG fable 108 WARN harbor 101 INFO birch 104 INFO fable 31 DEBUG cobalt 32 ERROR juniper 106 DEBUG ember 46 ERROR
harbor 101 INFO birch 104 INFO
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023873-p1
Output all fields from lines where the third field starts with 'INFO'.
$3 ~ /^INFO/
indigo 23 DEBUG amber 60 WARN indigo 93 WARN ember 98 ERROR cobalt 52 INFO indigo 45 DEBUG cobalt 109 INFO juniper 79 DEBUG fable 67 ERROR delta 93 DEBUG
cobalt 52 INFO cobalt 109 INFO
harbor 90 DEBUG fable 108 WARN harbor 101 INFO birch 104 INFO fable 31 DEBUG cobalt 32 ERROR juniper 106 DEBUG ember 46 ERROR
harbor 101 INFO birch 104 INFO
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023873
qwen/qwen3.7-plus
awkweave-0023874
Print every line except those containing the exact text ember.
$0 !~ /ember/
delta 43 active fable 78 ready cobalt 98 ready grove 39 paused cobalt 89 pending indigo 106 paused ember 999 active
delta 43 active fable 78 ready cobalt 98 ready grove 39 paused cobalt 89 pending indigo 106 paused
grove 66 closed delta 85 ready ember 98 paused delta 68 ready amber 72 closed delta 63 closed harbor 95 paused ember 999 active
grove 66 closed delta 85 ready delta 68 ready amber 72 closed delta 63 closed harbor 95 paused
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023874-p1
Print every line that does not contain the exact string 'ember'.
$0 !~ /ember/
delta 43 active fable 78 ready cobalt 98 ready grove 39 paused cobalt 89 pending indigo 106 paused ember 999 active
delta 43 active fable 78 ready cobalt 98 ready grove 39 paused cobalt 89 pending indigo 106 paused
grove 66 closed delta 85 ready ember 98 paused delta 68 ready amber 72 closed delta 63 closed harbor 95 paused ember 999 active
grove 66 closed delta 85 ready delta 68 ready amber 72 closed delta 63 closed harbor 95 paused
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023874
qwen/qwen3.7-plus
awkweave-0023875
Print lines 4 through 5, including both endpoints.
NR >= 4 && NR <= 5
alice fable 96 jules indigo 41 hana fable 105 dina delta 64 lina juniper 42 chen juniper 80 hana fable 17 chen indigo 101 eli ember 25 alice fable 45
dina delta 64 lina juniper 42
hana cobalt 42 gus fable 104 dina amber 17 gus birch 38 gus cobalt 78 farah juniper 71 alice harbor 17
gus birch 38 gus cobalt 78
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023875-p1
Output lines 4 to 5, inclusive of both endpoints.
NR >= 4 && NR <= 5
alice fable 96 jules indigo 41 hana fable 105 dina delta 64 lina juniper 42 chen juniper 80 hana fable 17 chen indigo 101 eli ember 25 alice fable 45
dina delta 64 lina juniper 42
hana cobalt 42 gus fable 104 dina amber 17 gus birch 38 gus cobalt 78 farah juniper 71 alice harbor 17
gus birch 38 gus cobalt 78
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023875
qwen/qwen3.7-plus
awkweave-0023876
Output only the first 4 records.
NR <= 4
gus 103 juniper gus 101 indigo jules 106 grove hana 21 amber kim 19 grove farah 70 grove ivan 20 harbor ivan 74 indigo dina 90 grove
gus 103 juniper gus 101 indigo jules 106 grove hana 21 amber
gus 34 juniper ivan 119 grove dina 63 cobalt farah 56 juniper gus 43 birch eli 31 amber gus 35 fable jules 59 amber chen 73 birch jules 20 cobalt
gus 34 juniper ivan 119 grove dina 63 cobalt farah 56 juniper
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023876-p1
Display only the first four records.
NR <= 4
gus 103 juniper gus 101 indigo jules 106 grove hana 21 amber kim 19 grove farah 70 grove ivan 20 harbor ivan 74 indigo dina 90 grove
gus 103 juniper gus 101 indigo jules 106 grove hana 21 amber
gus 34 juniper ivan 119 grove dina 63 cobalt farah 56 juniper gus 43 birch eli 31 amber gus 35 fable jules 59 amber chen 73 birch jules 20 cobalt
gus 34 juniper ivan 119 grove dina 63 cobalt farah 56 juniper
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023876
qwen/qwen3.7-plus
awkweave-0023877
Skip the first line and print every remaining line unchanged.
NR > 1
lina 19 birch bruno 97 indigo dina 61 delta hana 119 indigo farah 21 harbor hana 34 birch dina 90 birch gus 105 fable
bruno 97 indigo dina 61 delta hana 119 indigo farah 21 harbor hana 34 birch dina 90 birch gus 105 fable
alice 108 juniper bruno 20 harbor eli 54 amber alice 40 harbor kim 46 juniper bruno 102 ember jules 15 fable chen 23 juniper
bruno 20 harbor eli 54 amber alice 40 harbor kim 46 juniper bruno 102 ember jules 15 fable chen 23 juniper
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023877-p1
Omit the first line and print all subsequent lines without modification.
NR > 1
lina 19 birch bruno 97 indigo dina 61 delta hana 119 indigo farah 21 harbor hana 34 birch dina 90 birch gus 105 fable
bruno 97 indigo dina 61 delta hana 119 indigo farah 21 harbor hana 34 birch dina 90 birch gus 105 fable
alice 108 juniper bruno 20 harbor eli 54 amber alice 40 harbor kim 46 juniper bruno 102 ember jules 15 fable chen 23 juniper
bruno 20 harbor eli 54 amber alice 40 harbor kim 46 juniper bruno 102 ember jules 15 fable chen 23 juniper
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023877
qwen/qwen3.7-plus
awkweave-0023878
Count how many records have ready in column 2. Print 0 if there are none.
$2 == "ready"{n++}END{print n+0}
chen paused 41 gus failed 48 kim ready 114 dina pending 72 dina ready 94 eli active 31
2
jules active 58 ivan pending 84 jules closed 31 kim closed 62 jules active 55 dina failed 21
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023878-p1
Count the number of records with 'ready' in the second column, printing 0 if none exist.
$2 == "ready"{n++}END{print n+0}
chen paused 41 gus failed 48 kim ready 114 dina pending 72 dina ready 94 eli active 31
2
jules active 58 ivan pending 84 jules closed 31 kim closed 62 jules active 55 dina failed 21
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023878
qwen/qwen3.7-plus
awkweave-0023879
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
jules 15 fable lina 22 ember lina 1 cobalt chen 25 delta chen 19 grove farah 28 harbor gus 22 harbor lina 10 fable bruno 28 juniper dina 6 juniper
176
dina 19 amber jules 15 grove chen 24 delta eli 27 indigo hana 21 ember bruno 28 harbor lina 20 birch hana 3 juniper alice 1 amber jules 4 cobalt
162
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023879-p1
Compute and display the sum of integer values in the second column.
{s+=$2}END{print s+0}
jules 15 fable lina 22 ember lina 1 cobalt chen 25 delta chen 19 grove farah 28 harbor gus 22 harbor lina 10 fable bruno 28 juniper dina 6 juniper
176
dina 19 amber jules 15 grove chen 24 delta eli 27 indigo hana 21 ember bruno 28 harbor lina 20 birch hana 3 juniper alice 1 amber jules 4 cobalt
162
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023879
qwen/qwen3.7-plus
awkweave-0023880
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
delta hana 15 indigo dina 13 delta eli 9 delta eli 25 grove kim 20 cobalt bruno 3 juniper dina 10 delta hana 15 cobalt eli 12
13.56
amber dina 23 amber eli 15 fable lina 17 ember dina 23 ember eli 6 juniper lina 5 grove chen 15 indigo lina 9 ember kim 6 indigo kim 18
13.70
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023880-p1
Print the average of the third column, rounded to two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
delta hana 15 indigo dina 13 delta eli 9 delta eli 25 grove kim 20 cobalt bruno 3 juniper dina 10 delta hana 15 cobalt eli 12
13.56
amber dina 23 amber eli 15 fable lina 17 ember dina 23 ember eli 6 juniper lina 5 grove chen 15 indigo lina 9 ember kim 6 indigo kim 18
13.70
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023880
qwen/qwen3.7-plus
awkweave-0023881
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
alice 27 fable gus 2 amber gus 12 delta gus 18 amber chen 23 cobalt farah 30 fable jules 22 harbor dina 7 indigo
2
ivan 25 cobalt hana 14 fable lina 29 delta alice 24 juniper jules 18 harbor ivan 30 fable eli 25 delta bruno 23 amber ivan 25 amber chen 30 delta
14
min_field
1
train
original-grammar
CC-BY-4.0
null
null