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-0004880-p1
Print all fields from any line where the second field starts with the string 'ERROR'.
$2 ~ /^ERROR/
indigo INFO 59 grove WARN 86 grove INFO 15 grove INFO 36 birch WARN 85 juniper DEBUG 85 cobalt WARN 63 ember ERROR 40 fable INFO 96
ember ERROR 40
indigo INFO 6 birch DEBUG 89 ember INFO 2 grove DEBUG 16 indigo DEBUG 50 indigo ERROR 14 juniper ERROR 10
indigo ERROR 14 juniper ERROR 10
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004880
qwen/qwen3.7-plus
awkweave-0004881
Print every line except those containing the exact text juniper.
$0 !~ /juniper/
amber 33 closed ember 13 pending indigo 106 failed harbor 9 paused indigo 43 closed delta 114 active birch 112 active juniper 999 active
amber 33 closed ember 13 pending indigo 106 failed harbor 9 paused indigo 43 closed delta 114 active birch 112 active
ember 39 ready juniper 24 closed juniper 25 active amber 12 active delta 1 pending juniper 94 failed fable 69 failed delta 19 pending juniper 999 active
ember 39 ready amber 12 active delta 1 pending fable 69 failed delta 19 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004881-p1
Output every line except those that contain the exact substring 'juniper'.
$0 !~ /juniper/
amber 33 closed ember 13 pending indigo 106 failed harbor 9 paused indigo 43 closed delta 114 active birch 112 active juniper 999 active
amber 33 closed ember 13 pending indigo 106 failed harbor 9 paused indigo 43 closed delta 114 active birch 112 active
ember 39 ready juniper 24 closed juniper 25 active amber 12 active delta 1 pending juniper 94 failed fable 69 failed delta 19 pending juniper 999 active
ember 39 ready amber 12 active delta 1 pending fable 69 failed delta 19 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004881
qwen/qwen3.7-plus
awkweave-0004882
Print lines 4 through 6, including both endpoints.
NR >= 4 && NR <= 6
ivan cobalt 93 lina fable 64 hana delta 67 farah delta 33 jules indigo 13 ivan amber 112 farah fable 87 chen fable 97 eli birch 114
farah delta 33 jules indigo 13 ivan amber 112
gus cobalt 56 ivan amber 10 farah birch 73 farah grove 72 hana grove 2 ivan delta 7
farah grove 72 hana grove 2 ivan delta 7
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004882-p1
Print lines 4 through 6, inclusive of both the start and end lines.
NR >= 4 && NR <= 6
ivan cobalt 93 lina fable 64 hana delta 67 farah delta 33 jules indigo 13 ivan amber 112 farah fable 87 chen fable 97 eli birch 114
farah delta 33 jules indigo 13 ivan amber 112
gus cobalt 56 ivan amber 10 farah birch 73 farah grove 72 hana grove 2 ivan delta 7
farah grove 72 hana grove 2 ivan delta 7
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004882
qwen/qwen3.7-plus
awkweave-0004883
Output only the first 2 records.
NR <= 2
kim 0 birch lina 64 juniper alice 52 ember chen 29 delta hana 93 cobalt hana 106 ember
kim 0 birch lina 64 juniper
alice 71 juniper dina 62 delta farah 47 harbor kim 77 harbor kim 93 indigo lina 10 grove
alice 71 juniper dina 62 delta
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004883-p1
Display only the first 2 records from the input.
NR <= 2
kim 0 birch lina 64 juniper alice 52 ember chen 29 delta hana 93 cobalt hana 106 ember
kim 0 birch lina 64 juniper
alice 71 juniper dina 62 delta farah 47 harbor kim 77 harbor kim 93 indigo lina 10 grove
alice 71 juniper dina 62 delta
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004883
qwen/qwen3.7-plus
awkweave-0004884
Skip the first line and print every remaining line unchanged.
NR > 1
eli 2 indigo alice 71 amber jules 17 grove gus 77 ember alice 14 amber chen 33 grove eli 64 delta
alice 71 amber jules 17 grove gus 77 ember alice 14 amber chen 33 grove eli 64 delta
jules 73 juniper chen 116 amber farah 39 cobalt gus 44 ember chen 77 harbor gus 71 amber gus 38 grove jules 31 cobalt kim 101 delta lina 82 amber
chen 116 amber farah 39 cobalt gus 44 ember chen 77 harbor gus 71 amber gus 38 grove jules 31 cobalt kim 101 delta lina 82 amber
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004884-p1
Omit the initial line and output all subsequent lines exactly as they appear.
NR > 1
eli 2 indigo alice 71 amber jules 17 grove gus 77 ember alice 14 amber chen 33 grove eli 64 delta
alice 71 amber jules 17 grove gus 77 ember alice 14 amber chen 33 grove eli 64 delta
jules 73 juniper chen 116 amber farah 39 cobalt gus 44 ember chen 77 harbor gus 71 amber gus 38 grove jules 31 cobalt kim 101 delta lina 82 amber
chen 116 amber farah 39 cobalt gus 44 ember chen 77 harbor gus 71 amber gus 38 grove jules 31 cobalt kim 101 delta lina 82 amber
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004884
qwen/qwen3.7-plus
awkweave-0004885
Count how many records have paused in column 2. Print 0 if there are none.
$2 == "paused"{n++}END{print n+0}
eli pending 23 eli paused 39 ivan ready 48 farah ready 36 jules pending 90 kim failed 64
1
kim paused 72 lina ready 117 alice pending 0 dina pending 17 gus ready 3 alice active 112 farah pending 55 bruno ready 81 bruno failed 62 jules ready 113
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004885-p1
Tally the entries where the second column contains 'paused', outputting 0 if no matches are found.
$2 == "paused"{n++}END{print n+0}
eli pending 23 eli paused 39 ivan ready 48 farah ready 36 jules pending 90 kim failed 64
1
kim paused 72 lina ready 117 alice pending 0 dina pending 17 gus ready 3 alice active 112 farah pending 55 bruno ready 81 bruno failed 62 jules ready 113
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004885
qwen/qwen3.7-plus
awkweave-0004886
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
5 indigo gus 17 grove lina 15 grove lina 28 harbor eli 9 fable gus 18 amber dina
92
13 delta kim 5 birch farah 8 harbor ivan 22 amber kim 30 birch ivan 17 amber chen
95
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004886-p1
Compute and display the total sum of integer values found in the first column.
{s+=$1}END{print s+0}
5 indigo gus 17 grove lina 15 grove lina 28 harbor eli 9 fable gus 18 amber dina
92
13 delta kim 5 birch farah 8 harbor ivan 22 amber kim 30 birch ivan 17 amber chen
95
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004886
qwen/qwen3.7-plus
awkweave-0004887
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
7 grove chen 28 cobalt hana 20 ember hana 1 ember farah 14 fable eli 5 indigo kim 28 cobalt bruno 20 delta chen 28 delta gus 18 amber bruno
16.90
3 amber dina 2 fable chen 4 juniper kim 4 amber dina 6 fable jules 20 juniper hana 8 birch chen 20 delta eli 10 ember alice 11 juniper ivan
8.80
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004887-p1
Output the average of the values in column 1, formatted to precisely two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
7 grove chen 28 cobalt hana 20 ember hana 1 ember farah 14 fable eli 5 indigo kim 28 cobalt bruno 20 delta chen 28 delta gus 18 amber bruno
16.90
3 amber dina 2 fable chen 4 juniper kim 4 amber dina 6 fable jules 20 juniper hana 8 birch chen 20 delta eli 10 ember alice 11 juniper ivan
8.80
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004887
qwen/qwen3.7-plus
awkweave-0004888
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
21 grove jules 13 ember kim 20 indigo jules 20 indigo kim 27 delta eli 1 ember chen 21 juniper dina 15 amber ivan 12 delta eli
1
13 delta bruno 3 fable kim 8 harbor dina 24 birch jules 20 amber alice 22 harbor lina 14 juniper chen 30 delta bruno 9 delta farah 17 juniper hana
3
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004888-p1
Identify and print the minimum numeric value present in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
21 grove jules 13 ember kim 20 indigo jules 20 indigo kim 27 delta eli 1 ember chen 21 juniper dina 15 amber ivan 12 delta eli
1
13 delta bruno 3 fable kim 8 harbor dina 24 birch jules 20 amber alice 22 harbor lina 14 juniper chen 30 delta bruno 9 delta farah 17 juniper hana
3
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004888
qwen/qwen3.7-plus
awkweave-0004889
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
lina delta 8 ivan fable 27 ivan fable 24 lina harbor 6 ivan ember 2 dina fable 26 hana harbor 29 chen cobalt 18
29
kim ember 18 lina delta 4 dina cobalt 22 eli harbor 10 chen birch 2 alice juniper 7 hana grove 24
24
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004889-p1
Identify and print the maximum numeric value present in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
lina delta 8 ivan fable 27 ivan fable 24 lina harbor 6 ivan ember 2 dina fable 26 hana harbor 29 chen cobalt 18
29
kim ember 18 lina delta 4 dina cobalt 22 eli harbor 10 chen birch 2 alice juniper 7 hana grove 24
24
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004889
qwen/qwen3.7-plus
awkweave-0004900
Print the number of whitespace-separated fields on each line.
{print NF}
chen amber 18 closed ivan harbor 102 active bruno grove 75 failed jules amber 66 active farah cobalt 83 active eli amber 33 ready dina fable 64 pending bruno ember 30 ready hana juniper 57 failed
4 4 4 4 4 4 4 4 4
dina fable 2 active dina harbor 35 failed eli delta 22 failed hana birch 62 active chen harbor 37 ready jules ember 27 active bruno birch 100 closed alice indigo 106 active jules birch 89 closed dina grove 63 closed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004900-p1
For every line, output the count of fields separated by whitespace.
{print NF}
chen amber 18 closed ivan harbor 102 active bruno grove 75 failed jules amber 66 active farah cobalt 83 active eli amber 33 ready dina fable 64 pending bruno ember 30 ready hana juniper 57 failed
4 4 4 4 4 4 4 4 4
dina fable 2 active dina harbor 35 failed eli delta 22 failed hana birch 62 active chen harbor 37 ready jules ember 27 active bruno birch 100 closed alice indigo 106 active jules birch 89 closed dina grove 63 closed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004900
qwen/qwen3.7-plus
awkweave-0004901
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
bruno gamma 115 gus gamma 89 dina gamma 75 bruno beta 80 gus delta 88 hana gamma 49 ivan gamma 34 lina beta 71 ivan gamma 98 lina beta 92
gamma 6 beta 3 delta 1
farah alpha 119 farah alpha 64 bruno delta 103 lina alpha 34 hana beta 22 eli beta 105
alpha 3 delta 1 beta 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004901-p1
Tabulate the frequency of each unique value in column 2, listing them alongside their counts in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
bruno gamma 115 gus gamma 89 dina gamma 75 bruno beta 80 gus delta 88 hana gamma 49 ivan gamma 34 lina beta 71 ivan gamma 98 lina beta 92
gamma 6 beta 3 delta 1
farah alpha 119 farah alpha 64 bruno delta 103 lina alpha 34 hana beta 22 eli beta 105
alpha 3 delta 1 beta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004901
qwen/qwen3.7-plus
awkweave-0004902
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]]}
eli gamma 28 hana gamma 28 alice delta 21 hana beta 27 hana alpha 7 chen alpha 10 hana gamma 22 bruno delta 28 jules gamma 13
gamma 91 delta 49 beta 27 alpha 17
ivan beta 7 dina delta 15 kim delta 8 eli delta 6 lina beta 1 ivan beta 12 gus delta 2 alice delta 3 farah delta 12 lina alpha 19
beta 20 delta 46 alpha 19
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004902-p1
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
eli gamma 28 hana gamma 28 alice delta 21 hana beta 27 hana alpha 7 chen alpha 10 hana gamma 22 bruno delta 28 jules gamma 13
gamma 91 delta 49 beta 27 alpha 17
ivan beta 7 dina delta 15 kim delta 8 eli delta 6 lina beta 1 ivan beta 12 gus delta 2 alice delta 3 farah delta 12 lina alpha 19
beta 20 delta 46 alpha 19
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0004902
qwen/qwen3.7-plus
awkweave-0004903
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 amber 72 gamma harbor 58 gamma amber 59 alpha birch 11 gamma amber 107 beta fable 71 beta cobalt 116
alpha 2 gamma 3 beta 2
gamma indigo 7 alpha grove 17 beta fable 84 delta amber 67 gamma cobalt 55 gamma indigo 108 gamma harbor 54 alpha birch 26 delta amber 34
gamma 4 alpha 2 delta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004903-p1
List each value from column 1 that appears more than once, along with its frequency, 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]]}
alpha amber 72 gamma harbor 58 gamma amber 59 alpha birch 11 gamma amber 107 beta fable 71 beta cobalt 116
alpha 2 gamma 3 beta 2
gamma indigo 7 alpha grove 17 beta fable 84 delta amber 67 gamma cobalt 55 gamma indigo 108 gamma harbor 54 alpha birch 26 delta amber 34
gamma 4 alpha 2 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004903
qwen/qwen3.7-plus
awkweave-0004904
The first row is a header. Print the state column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
region state score note r001 jules 28 closed r002 farah 27 pending r003 hana 9 closed r004 kim 3 ready r005 chen 22 paused r006 chen 26 ready
jules farah hana kim chen chen
region state score note r001 chen 2 closed r002 alice 15 paused r003 chen 18 active r004 lina 11 paused r005 hana 30 ready r006 gus 23 paused r007 gus 17 paused r008 lina 15 active r009 alice 17 ready r010 eli 21 paused
chen alice chen lina hana gus gus lina alice eli
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004904-p1
Treating the first row as a header, output the values from the state column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
region state score note r001 jules 28 closed r002 farah 27 pending r003 hana 9 closed r004 kim 3 ready r005 chen 22 paused r006 chen 26 ready
jules farah hana kim chen chen
region state score note r001 chen 2 closed r002 alice 15 paused r003 chen 18 active r004 lina 11 paused r005 hana 30 ready r006 gus 23 paused r007 gus 17 paused r008 lina 15 active r009 alice 17 ready r010 eli 21 paused
chen alice chen lina hana gus gus lina alice eli
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004904
qwen/qwen3.7-plus
awkweave-0004905
The first row is a header. Print display_name for data rows whose score is greater than 14.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>14{print $h["display_name"]}
record_id display_name score state r001 hana 28 paused r002 chen 18 ready r003 alice 28 ready r004 lina 6 paused r005 jules 21 active r006 jules 14 pending r007 farah 5 failed r008 jules 17 paused r009 gus 14 ready
hana chen alice jules jules
record_id display_name score state r001 dina 20 failed r002 alice 2 ready r003 alice 5 ready r004 ivan 30 failed r005 kim 7 closed r006 jules 10 closed
dina ivan
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004905-p1
With the first row as a header, print the display_name field for any data row where the score exceeds 14.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>14{print $h["display_name"]}
record_id display_name score state r001 hana 28 paused r002 chen 18 ready r003 alice 28 ready r004 lina 6 paused r005 jules 21 active r006 jules 14 pending r007 farah 5 failed r008 jules 17 paused r009 gus 14 ready
hana chen alice jules jules
record_id display_name score state r001 dina 20 failed r002 alice 2 ready r003 alice 5 ready r004 ivan 30 failed r005 kim 7 closed r006 jules 10 closed
dina ivan
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004905
qwen/qwen3.7-plus
awkweave-0004906
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
ivan 15 active kim 25 pending eli 27 active gus 24 ready gus 12 closed alice 5 paused jules 12 ready
active pending active ready closed paused ready
lina 23 ready gus 18 failed jules 11 paused kim 10 pending dina 1 ready eli 21 closed hana 9 paused lina 16 failed
ready failed paused pending ready closed paused failed
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004906-p1
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
ivan 15 active kim 25 pending eli 27 active gus 24 ready gus 12 closed alice 5 paused jules 12 ready
active pending active ready closed paused ready
lina 23 ready gus 18 failed jules 11 paused kim 10 pending dina 1 ready eli 21 closed hana 9 paused lina 16 failed
ready failed paused pending ready closed paused failed
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0004906
qwen/qwen3.7-plus
awkweave-0004907
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 15.
BEGIN{FS=OFS=","}$2>15{print $1}
alice,5,failed chen,30,closed gus,3,pending dina,28,failed gus,30,failed lina,24,ready
chen dina gus lina
ivan,21,paused alice,25,failed bruno,17,pending alice,28,paused hana,14,failed alice,8,closed
ivan alice bruno alice
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004907-p1
Output the first field of comma-separated records where the second field is greater than 15.
BEGIN{FS=OFS=","}$2>15{print $1}
alice,5,failed chen,30,closed gus,3,pending dina,28,failed gus,30,failed lina,24,ready
chen dina gus lina
ivan,21,paused alice,25,failed bruno,17,pending alice,28,paused hana,14,failed alice,8,closed
ivan alice bruno alice
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004907
qwen/qwen3.7-plus
awkweave-0004908
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
alice juniper 38 gus amber 27 lina indigo 21 gus birch 102 jules ember 66 gus grove 1 kim indigo 53 gus indigo 5
alice juniper 38 gus amber 27 lina indigo 21 gus birch 102 jules ember 66 gus grove 1 kim indigo 53 gus indigo 5
kim indigo 79 ivan grove 62 dina cobalt 14 dina ember 20 dina indigo 77 bruno grove 23
kim indigo 79 ivan grove 62 dina cobalt 14 dina ember 20 dina indigo 77 bruno grove 23
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004908-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
alice juniper 38 gus amber 27 lina indigo 21 gus birch 102 jules ember 66 gus grove 1 kim indigo 53 gus indigo 5
alice juniper 38 gus amber 27 lina indigo 21 gus birch 102 jules ember 66 gus grove 1 kim indigo 53 gus indigo 5
kim indigo 79 ivan grove 62 dina cobalt 14 dina ember 20 dina indigo 77 bruno grove 23
kim indigo 79 ivan grove 62 dina cobalt 14 dina ember 20 dina indigo 77 bruno grove 23
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004908
qwen/qwen3.7-plus
awkweave-0004909
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
jules amber 3 pending ivan harbor 77 closed dina birch 6 paused bruno indigo 114 pending dina cobalt 39 paused alice delta 26 paused bruno ember 61 failed ivan fable 119 paused lina delta 108 ready
bruno indigo 114 pending
ivan delta 116 paused farah cobalt 24 failed chen harbor 11 ready lina delta 85 closed hana ember 80 active bruno juniper 6 pending dina harbor 61 active hana fable 79 active alice harbor 117 active
bruno juniper 6 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004909-p1
Print the longest line from the input; if multiple lines share the maximum length, select the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
jules amber 3 pending ivan harbor 77 closed dina birch 6 paused bruno indigo 114 pending dina cobalt 39 paused alice delta 26 paused bruno ember 61 failed ivan fable 119 paused lina delta 108 ready
bruno indigo 114 pending
ivan delta 116 paused farah cobalt 24 failed chen harbor 11 ready lina delta 85 closed hana ember 80 active bruno juniper 6 pending dina harbor 61 active hana fable 79 active alice harbor 117 active
bruno juniper 6 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004909
qwen/qwen3.7-plus
awkweave-0004910
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
eli 116 gus 4 farah 31 alice 106 lina 2 eli 86
eli 116 farah 31 lina 2
gus 24 bruno 47 dina 53 alice 99 dina 0 hana 77 gus 40 kim 30 ivan 14
gus 24 dina 53 dina 0 gus 40 ivan 14
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004910-p1
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
eli 116 gus 4 farah 31 alice 106 lina 2 eli 86
eli 116 farah 31 lina 2
gus 24 bruno 47 dina 53 alice 99 dina 0 hana 77 gus 40 kim 30 ivan 14
gus 24 dina 53 dina 0 gus 40 ivan 14
every_nth
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0004910
qwen/qwen3.7-plus
awkweave-0004911
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
gamma delta 5 delta birch 28 beta birch 102 beta ember 87 alpha amber 33 alpha harbor 99 alpha grove 1 beta amber 19
4
gamma birch 64 delta grove 91 delta fable 90 alpha ember 97 beta ember 117 gamma delta 80 delta juniper 93 delta ember 22
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004911-p1
Calculate and print the number of unique values found in the first column.
{if(!seen[$1]++)n++}END{print n+0}
gamma delta 5 delta birch 28 beta birch 102 beta ember 87 alpha amber 33 alpha harbor 99 alpha grove 1 beta amber 19
4
gamma birch 64 delta grove 91 delta fable 90 alpha ember 97 beta ember 117 gamma delta 80 delta juniper 93 delta ember 22
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004911
qwen/qwen3.7-plus
awkweave-0004912
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}
lina 10 0 gus 10 16 ivan 14 19 eli 23 9 chen 1 27 dina 13 2 jules 15 10 bruno 6 26 eli 30 6
gus 0.62 ivan 0.74 eli 2.56 chen 0.04 dina 6.50 jules 1.50 bruno 0.23 eli 5.00
bruno 1 0 farah 23 8 lina 25 16 jules 4 1 kim 15 27 alice 17 25 lina 6 13 alice 30 13 gus 16 26
farah 2.88 lina 1.56 jules 4.00 kim 0.56 alice 0.68 lina 0.46 alice 2.31 gus 0.62
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004912-p1
For each row where the third column is non-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}
lina 10 0 gus 10 16 ivan 14 19 eli 23 9 chen 1 27 dina 13 2 jules 15 10 bruno 6 26 eli 30 6
gus 0.62 ivan 0.74 eli 2.56 chen 0.04 dina 6.50 jules 1.50 bruno 0.23 eli 5.00
bruno 1 0 farah 23 8 lina 25 16 jules 4 1 kim 15 27 alice 17 25 lina 6 13 alice 30 13 gus 16 26
farah 2.88 lina 1.56 jules 4.00 kim 0.56 alice 0.68 lina 0.46 alice 2.31 gus 0.62
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004912
qwen/qwen3.7-plus
awkweave-0004913
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
farah amber 12 chen ember 8 hana harbor 2 ivan cobalt 19 hana birch 2 eli amber 9 hana amber 7 kim juniper 17
ivan cobalt 19 kim juniper 17 farah amber 12
alice birch 20 bruno birch 19 gus grove 3 alice juniper 2 dina ember 18 ivan ember 17 hana amber 13 farah grove 10
alice birch 20 bruno birch 19 dina ember 18
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004913-p1
Output the top three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
farah amber 12 chen ember 8 hana harbor 2 ivan cobalt 19 hana birch 2 eli amber 9 hana amber 7 kim juniper 17
ivan cobalt 19 kim juniper 17 farah amber 12
alice birch 20 bruno birch 19 gus grove 3 alice juniper 2 dina ember 18 ivan ember 17 hana amber 13 farah grove 10
alice birch 20 bruno birch 19 dina ember 18
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004913
qwen/qwen3.7-plus
awkweave-0004914
For each line, output fields 3 and 1, in that order.
{print $3, $1}
delta closed amber pending amber cobalt closed grove active ember amber paused fable pending delta indigo ready delta active cobalt juniper ready birch paused cobalt cobalt failed harbor closed birch
amber delta grove cobalt fable amber delta indigo birch juniper harbor cobalt
grove pending amber ready harbor amber closed birch closed grove birch pending grove paused delta delta pending grove paused harbor indigo ready delta pending grove birch paused amber pending grove indigo failed cobalt paused indigo fable pending cobalt paused delta birch paused amber paused fable delta pending delta p...
amber grove birch amber grove birch grove delta delta indigo amber birch cobalt indigo cobalt fable amber birch delta delta
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004914-p1
For each line, print the third field followed by the first field.
{print $3, $1}
delta closed amber pending amber cobalt closed grove active ember amber paused fable pending delta indigo ready delta active cobalt juniper ready birch paused cobalt cobalt failed harbor closed birch
amber delta grove cobalt fable amber delta indigo birch juniper harbor cobalt
grove pending amber ready harbor amber closed birch closed grove birch pending grove paused delta delta pending grove paused harbor indigo ready delta pending grove birch paused amber pending grove indigo failed cobalt paused indigo fable pending cobalt paused delta birch paused amber paused fable delta pending delta p...
amber grove birch amber grove birch grove delta delta indigo amber birch cobalt indigo cobalt fable amber birch delta delta
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004914
qwen/qwen3.7-plus
awkweave-0004915
Print the last field of every input line.
{print $NF}
99 39 grove ready ivan 17 18 118 birch failed kim 52 50 100 harbor ready alice 44 13 23 amber active farah 5 84 92 delta paused eli 28 117 3 birch closed hana 61 12 61 ember ready hana 9 21 67 delta failed dina 82
17 52 44 5 28 61 9 82
21 45 indigo closed bruno 14 106 21 fable active hana 14 31 101 juniper pending gus 58 103 48 ember pending farah 14 84 15 grove active dina 29 52 66 juniper closed hana 93 16 80 cobalt failed chen 109 76 5 indigo ready chen 109 112 79 amber active lina 22
14 14 58 14 29 93 109 109 22
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004915-p1
Print the last field of every line in the input.
{print $NF}
99 39 grove ready ivan 17 18 118 birch failed kim 52 50 100 harbor ready alice 44 13 23 amber active farah 5 84 92 delta paused eli 28 117 3 birch closed hana 61 12 61 ember ready hana 9 21 67 delta failed dina 82
17 52 44 5 28 61 9 82
21 45 indigo closed bruno 14 106 21 fable active hana 14 31 101 juniper pending gus 58 103 48 ember pending farah 14 84 15 grove active dina 29 52 66 juniper closed hana 93 16 80 cobalt failed chen 109 76 5 indigo ready chen 109 112 79 amber active lina 22
14 14 58 14 29 93 109 109 22
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004915
qwen/qwen3.7-plus
awkweave-0004916
Print the complete records where column 1 is greater than 58.
$1 > 58
37 jules ember fable 101 alice amber grove 17 hana juniper fable 34 gus cobalt indigo 106 chen harbor juniper 104 alice juniper harbor 25 ivan fable ember
101 alice amber grove 106 chen harbor juniper 104 alice juniper harbor
81 alice juniper indigo 19 lina indigo birch 24 gus amber juniper 118 chen grove harbor 69 farah birch birch 66 alice birch amber 113 gus ember birch 88 ivan amber fable 112 lina fable ember
81 alice juniper indigo 118 chen grove harbor 69 farah birch birch 66 alice birch amber 113 gus ember birch 88 ivan amber fable 112 lina fable ember
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004916-p1
Output full records where the value in the first column exceeds 58.
$1 > 58
37 jules ember fable 101 alice amber grove 17 hana juniper fable 34 gus cobalt indigo 106 chen harbor juniper 104 alice juniper harbor 25 ivan fable ember
101 alice amber grove 106 chen harbor juniper 104 alice juniper harbor
81 alice juniper indigo 19 lina indigo birch 24 gus amber juniper 118 chen grove harbor 69 farah birch birch 66 alice birch amber 113 gus ember birch 88 ivan amber fable 112 lina fable ember
81 alice juniper indigo 118 chen grove harbor 69 farah birch birch 66 alice birch amber 113 gus ember birch 88 ivan amber fable 112 lina fable ember
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004916
qwen/qwen3.7-plus
awkweave-0004917
Show whole lines whose 1st field is between 5 and 24, inclusive.
$1 >= 5 && $1 <= 24
7 failed cobalt hana 24 closed indigo gus 17 paused grove eli 15 closed grove dina 7 active delta eli 28 failed indigo kim 20 active delta ivan 30 active delta kim 19 failed fable jules
7 failed cobalt hana 24 closed indigo gus 17 paused grove eli 15 closed grove dina 7 active delta eli 20 active delta ivan 19 failed fable jules
6 active amber dina 1 failed birch ivan 21 pending indigo dina 1 paused juniper ivan 10 paused amber dina 4 failed delta alice 26 closed juniper chen 21 active delta eli
6 active amber dina 21 pending indigo dina 10 paused amber dina 21 active delta eli
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004917-p1
Display entire lines where the first field falls within the inclusive range of 5 to 24.
$1 >= 5 && $1 <= 24
7 failed cobalt hana 24 closed indigo gus 17 paused grove eli 15 closed grove dina 7 active delta eli 28 failed indigo kim 20 active delta ivan 30 active delta kim 19 failed fable jules
7 failed cobalt hana 24 closed indigo gus 17 paused grove eli 15 closed grove dina 7 active delta eli 20 active delta ivan 19 failed fable jules
6 active amber dina 1 failed birch ivan 21 pending indigo dina 1 paused juniper ivan 10 paused amber dina 4 failed delta alice 26 closed juniper chen 21 active delta eli
6 active amber dina 21 pending indigo dina 10 paused amber dina 21 active delta eli
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004917
qwen/qwen3.7-plus
awkweave-0004918
Print column 2 only for rows where column 4 is exactly paused.
$4 == "paused"{print $2}
fable alice 57 closed amber bruno 15 active birch bruno 34 failed cobalt ivan 2 failed harbor bruno 102 ready grove bruno 116 paused juniper lina 0 closed ember bruno 55 ready ember hana 27 paused
bruno hana
amber lina 50 closed birch ivan 2 failed ember lina 100 pending delta jules 115 failed ember lina 33 ready harbor chen 120 ready cobalt bruno 23 ready indigo gus 22 failed grove farah 95 closed
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004918-p1
Output only the second column for rows where the fourth column is exactly 'paused'.
$4 == "paused"{print $2}
fable alice 57 closed amber bruno 15 active birch bruno 34 failed cobalt ivan 2 failed harbor bruno 102 ready grove bruno 116 paused juniper lina 0 closed ember bruno 55 ready ember hana 27 paused
bruno hana
amber lina 50 closed birch ivan 2 failed ember lina 100 pending delta jules 115 failed ember lina 33 ready harbor chen 120 ready cobalt bruno 23 ready indigo gus 22 failed grove farah 95 closed
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004918
qwen/qwen3.7-plus
awkweave-0004919
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
grove INFO 59 juniper ERROR 28 harbor INFO 81 grove ERROR 52 birch ERROR 75 ember ERROR 14 harbor ERROR 15 juniper WARN 58 grove DEBUG 60 juniper INFO 65
juniper ERROR 28 grove ERROR 52 birch ERROR 75 ember ERROR 14 harbor ERROR 15
indigo DEBUG 32 birch DEBUG 118 cobalt ERROR 94 amber WARN 66 birch WARN 89 fable DEBUG 110
cobalt ERROR 94
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004919-p1
Display all fields from lines where the second field starts with 'ERROR'.
$2 ~ /^ERROR/
grove INFO 59 juniper ERROR 28 harbor INFO 81 grove ERROR 52 birch ERROR 75 ember ERROR 14 harbor ERROR 15 juniper WARN 58 grove DEBUG 60 juniper INFO 65
juniper ERROR 28 grove ERROR 52 birch ERROR 75 ember ERROR 14 harbor ERROR 15
indigo DEBUG 32 birch DEBUG 118 cobalt ERROR 94 amber WARN 66 birch WARN 89 fable DEBUG 110
cobalt ERROR 94
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004919
qwen/qwen3.7-plus
awkweave-0004920
Print every line except those containing the exact text birch.
$0 !~ /birch/
indigo 120 paused delta 105 closed ember 24 paused grove 92 closed harbor 60 paused amber 64 active fable 12 active birch 999 active
indigo 120 paused delta 105 closed ember 24 paused grove 92 closed harbor 60 paused amber 64 active fable 12 active
ember 95 failed delta 99 closed amber 85 closed fable 35 pending amber 73 paused amber 119 ready cobalt 47 pending birch 999 active
ember 95 failed delta 99 closed amber 85 closed fable 35 pending amber 73 paused amber 119 ready cobalt 47 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004920-p1
Print every line that does not contain the exact string 'birch'.
$0 !~ /birch/
indigo 120 paused delta 105 closed ember 24 paused grove 92 closed harbor 60 paused amber 64 active fable 12 active birch 999 active
indigo 120 paused delta 105 closed ember 24 paused grove 92 closed harbor 60 paused amber 64 active fable 12 active
ember 95 failed delta 99 closed amber 85 closed fable 35 pending amber 73 paused amber 119 ready cobalt 47 pending birch 999 active
ember 95 failed delta 99 closed amber 85 closed fable 35 pending amber 73 paused amber 119 ready cobalt 47 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004920
qwen/qwen3.7-plus
awkweave-0004921
Print lines 2 through 4, including both endpoints.
NR >= 2 && NR <= 4
chen delta 63 gus delta 13 eli ember 45 farah ember 5 bruno indigo 68 gus indigo 90 gus indigo 101
gus delta 13 eli ember 45 farah ember 5
kim cobalt 105 dina birch 109 lina juniper 48 eli fable 112 farah ember 117 alice juniper 48 bruno birch 116
dina birch 109 lina juniper 48 eli fable 112
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004921-p1
Output lines 2 through 4, inclusive.
NR >= 2 && NR <= 4
chen delta 63 gus delta 13 eli ember 45 farah ember 5 bruno indigo 68 gus indigo 90 gus indigo 101
gus delta 13 eli ember 45 farah ember 5
kim cobalt 105 dina birch 109 lina juniper 48 eli fable 112 farah ember 117 alice juniper 48 bruno birch 116
dina birch 109 lina juniper 48 eli fable 112
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004921
qwen/qwen3.7-plus
awkweave-0004922
Output only the first 2 records.
NR <= 2
chen 98 fable lina 29 birch jules 79 fable chen 111 harbor gus 59 cobalt farah 80 cobalt gus 111 cobalt
chen 98 fable lina 29 birch
ivan 80 juniper hana 70 grove hana 13 cobalt eli 51 indigo jules 105 amber dina 99 ember hana 68 amber
ivan 80 juniper hana 70 grove
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004922-p1
Display only the first 2 records.
NR <= 2
chen 98 fable lina 29 birch jules 79 fable chen 111 harbor gus 59 cobalt farah 80 cobalt gus 111 cobalt
chen 98 fable lina 29 birch
ivan 80 juniper hana 70 grove hana 13 cobalt eli 51 indigo jules 105 amber dina 99 ember hana 68 amber
ivan 80 juniper hana 70 grove
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004922
qwen/qwen3.7-plus
awkweave-0004923
Skip the first line and print every remaining line unchanged.
NR > 1
alice 119 harbor bruno 80 delta hana 76 delta gus 74 juniper chen 68 amber hana 111 juniper
bruno 80 delta hana 76 delta gus 74 juniper chen 68 amber hana 111 juniper
kim 9 fable eli 29 ember farah 31 amber chen 93 indigo jules 63 cobalt eli 56 juniper eli 28 fable gus 80 cobalt alice 109 fable dina 46 juniper
eli 29 ember farah 31 amber chen 93 indigo jules 63 cobalt eli 56 juniper eli 28 fable gus 80 cobalt alice 109 fable dina 46 juniper
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004923-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
alice 119 harbor bruno 80 delta hana 76 delta gus 74 juniper chen 68 amber hana 111 juniper
bruno 80 delta hana 76 delta gus 74 juniper chen 68 amber hana 111 juniper
kim 9 fable eli 29 ember farah 31 amber chen 93 indigo jules 63 cobalt eli 56 juniper eli 28 fable gus 80 cobalt alice 109 fable dina 46 juniper
eli 29 ember farah 31 amber chen 93 indigo jules 63 cobalt eli 56 juniper eli 28 fable gus 80 cobalt alice 109 fable dina 46 juniper
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004923
qwen/qwen3.7-plus
awkweave-0004924
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
gus failed 99 jules ready 3 gus failed 110 kim ready 44 jules pending 12 jules ready 64 alice pending 36 bruno failed 50
2
bruno ready 112 lina ready 33 farah closed 44 chen closed 55 dina ready 20 lina pending 15 bruno ready 93 kim failed 105
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004924-p1
Count the number of records with 'pending' in column 2, outputting 0 if none exist.
$2 == "pending"{n++}END{print n+0}
gus failed 99 jules ready 3 gus failed 110 kim ready 44 jules pending 12 jules ready 64 alice pending 36 bruno failed 50
2
bruno ready 112 lina ready 33 farah closed 44 chen closed 55 dina ready 20 lina pending 15 bruno ready 93 kim failed 105
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004924
qwen/qwen3.7-plus
awkweave-0004925
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
28 birch ivan 20 fable ivan 11 delta jules 7 amber dina 1 delta alice 21 cobalt eli 29 amber farah
117
10 delta hana 19 amber ivan 28 birch eli 19 birch alice 3 cobalt farah 1 cobalt kim 11 birch alice 8 juniper jules 6 juniper kim
105
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004925-p1
Compute and display the sum of integer values in column 1.
{s+=$1}END{print s+0}
28 birch ivan 20 fable ivan 11 delta jules 7 amber dina 1 delta alice 21 cobalt eli 29 amber farah
117
10 delta hana 19 amber ivan 28 birch eli 19 birch alice 3 cobalt farah 1 cobalt kim 11 birch alice 8 juniper jules 6 juniper kim
105
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004925
qwen/qwen3.7-plus
awkweave-0004926
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
kim 28 delta dina 17 birch hana 4 harbor bruno 25 amber ivan 5 indigo chen 23 indigo chen 25 grove
18.14
lina 4 harbor gus 13 grove farah 13 birch farah 23 juniper chen 6 delta chen 20 indigo gus 16 ember bruno 11 harbor bruno 30 grove kim 18 harbor
15.40
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004926-p1
Calculate the average of column 2 and print it rounded to two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
kim 28 delta dina 17 birch hana 4 harbor bruno 25 amber ivan 5 indigo chen 23 indigo chen 25 grove
18.14
lina 4 harbor gus 13 grove farah 13 birch farah 23 juniper chen 6 delta chen 20 indigo gus 16 ember bruno 11 harbor bruno 30 grove kim 18 harbor
15.40
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004926
qwen/qwen3.7-plus
awkweave-0004927
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
ivan delta 29 hana harbor 10 dina ember 26 hana birch 28 lina fable 10 farah juniper 28 hana juniper 4 eli ember 9 lina harbor 15
4
farah juniper 10 bruno grove 7 alice harbor 6 alice delta 19 kim grove 5 bruno grove 18 jules grove 16 eli ember 5 chen harbor 15
5
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004927-p1
Identify and print the minimum numeric value found in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
ivan delta 29 hana harbor 10 dina ember 26 hana birch 28 lina fable 10 farah juniper 28 hana juniper 4 eli ember 9 lina harbor 15
4
farah juniper 10 bruno grove 7 alice harbor 6 alice delta 19 kim grove 5 bruno grove 18 jules grove 16 eli ember 5 chen harbor 15
5
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004927
qwen/qwen3.7-plus
awkweave-0004928
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
jules 23 birch chen 24 juniper hana 13 delta bruno 26 delta gus 13 indigo ivan 11 juniper jules 28 birch dina 5 indigo jules 24 juniper gus 14 fable
28
dina 23 ember gus 16 harbor dina 29 harbor farah 5 birch alice 24 grove alice 13 indigo eli 1 juniper hana 13 delta alice 19 cobalt
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004928-p1
Identify and print the maximum numeric value found in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
jules 23 birch chen 24 juniper hana 13 delta bruno 26 delta gus 13 indigo ivan 11 juniper jules 28 birch dina 5 indigo jules 24 juniper gus 14 fable
28
dina 23 ember gus 16 harbor dina 29 harbor farah 5 birch alice 24 grove alice 13 indigo eli 1 juniper hana 13 delta alice 19 cobalt
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004928
qwen/qwen3.7-plus
awkweave-0004929
Count all input records and print the total.
END{print NR}
alice 111 eli 10 bruno 81 ivan 22 chen 105 hana 100 dina 104
7
lina 55 chen 94 alice 83 lina 60 bruno 26 eli 53 eli 28 chen 120 gus 72
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004929-p1
Count the total number of input records and print the result.
END{print NR}
alice 111 eli 10 bruno 81 ivan 22 chen 105 hana 100 dina 104
7
lina 55 chen 94 alice 83 lina 60 bruno 26 eli 53 eli 28 chen 120 gus 72
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004929
qwen/qwen3.7-plus
awkweave-0004930
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
chen delta 72 ivan harbor 92 dina amber 44 ivan harbor 69 chen amber 45 dina amber 44 eli fable 50
chen delta 72 ivan harbor 92 dina amber 44 ivan harbor 69 chen amber 45 eli fable 50
eli fable 37 bruno birch 93 kim juniper 10 chen ember 19 eli fable 37 jules fable 20 farah juniper 104 dina cobalt 52 gus ember 32 jules juniper 116 chen grove 2
eli fable 37 bruno birch 93 kim juniper 10 chen ember 19 jules fable 20 farah juniper 104 dina cobalt 52 gus ember 32 jules juniper 116 chen grove 2
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004930-p1
Deduplicate lines by keeping the first instance of each unique line while maintaining the original sequence.
!seen[$0]++
chen delta 72 ivan harbor 92 dina amber 44 ivan harbor 69 chen amber 45 dina amber 44 eli fable 50
chen delta 72 ivan harbor 92 dina amber 44 ivan harbor 69 chen amber 45 eli fable 50
eli fable 37 bruno birch 93 kim juniper 10 chen ember 19 eli fable 37 jules fable 20 farah juniper 104 dina cobalt 52 gus ember 32 jules juniper 116 chen grove 2
eli fable 37 bruno birch 93 kim juniper 10 chen ember 19 jules fable 20 farah juniper 104 dina cobalt 52 gus ember 32 jules juniper 116 chen grove 2
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004930
qwen/qwen3.7-plus
awkweave-0004931
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
gus cobalt 42 jules fable 60 farah amber 78 ivan amber 0 hana harbor 26 farah cobalt 89 alice delta 77
gus cobalt 42 jules fable 60 farah amber 78 hana harbor 26 alice delta 77
eli fable 84 hana fable 43 alice delta 54 lina birch 22 chen grove 118 dina cobalt 2 alice delta 54
eli fable 84 alice delta 54 lina birch 22 chen grove 118 dina cobalt 2
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004931-p1
Retain only the initial row for every unique value found in the second column, preserving the input order.
!seen[$2]++
gus cobalt 42 jules fable 60 farah amber 78 ivan amber 0 hana harbor 26 farah cobalt 89 alice delta 77
gus cobalt 42 jules fable 60 farah amber 78 hana harbor 26 alice delta 77
eli fable 84 hana fable 43 alice delta 54 lina birch 22 chen grove 118 dina cobalt 2 alice delta 54
eli fable 84 alice delta 54 lina birch 22 chen grove 118 dina cobalt 2
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004931
qwen/qwen3.7-plus
awkweave-0004932
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
farah 29 ember eli 5 birch alice 7 delta alice 1 birch ivan 3 amber farah 23 birch ivan 19 amber gus 5 fable alice 17 harbor
farah 29 eli 34 alice 41 alice 42 ivan 45 farah 68 ivan 87 gus 92 alice 109
lina 12 delta bruno 15 indigo hana 22 fable hana 2 amber chen 13 harbor bruno 22 grove dina 5 juniper
lina 12 bruno 27 hana 49 hana 51 chen 64 bruno 86 dina 91
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004932-p1
Output the first column alongside the cumulative total of the second column, with values separated by a space.
{s+=$2;print $1,s}
farah 29 ember eli 5 birch alice 7 delta alice 1 birch ivan 3 amber farah 23 birch ivan 19 amber gus 5 fable alice 17 harbor
farah 29 eli 34 alice 41 alice 42 ivan 45 farah 68 ivan 87 gus 92 alice 109
lina 12 delta bruno 15 indigo hana 22 fable hana 2 amber chen 13 harbor bruno 22 grove dina 5 juniper
lina 12 bruno 27 hana 49 hana 51 chen 64 bruno 86 dina 91
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004932
qwen/qwen3.7-plus
awkweave-0004933
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
chen 26 18 delta bruno 12 8 amber kim 29 12 delta farah 13 25 birch gus 17 2 indigo eli 4 16 amber alice 11 30 ember chen 13 12 delta
chen 44 bruno 20 kim 41 farah 38 gus 19 eli 20 alice 41 chen 25
chen 29 21 birch farah 13 29 fable kim 16 3 ember eli 4 18 birch kim 7 19 cobalt chen 1 21 juniper chen 23 27 indigo eli 10 23 amber
chen 50 farah 42 kim 19 eli 22 kim 26 chen 22 chen 50 eli 33
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004933-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
chen 26 18 delta bruno 12 8 amber kim 29 12 delta farah 13 25 birch gus 17 2 indigo eli 4 16 amber alice 11 30 ember chen 13 12 delta
chen 44 bruno 20 kim 41 farah 38 gus 19 eli 20 alice 41 chen 25
chen 29 21 birch farah 13 29 fable kim 16 3 ember eli 4 18 birch kim 7 19 cobalt chen 1 21 juniper chen 23 27 indigo eli 10 23 amber
chen 50 farah 42 kim 19 eli 22 kim 26 chen 22 chen 50 eli 33
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004933
qwen/qwen3.7-plus
awkweave-0004934
Print column 1 and pass when column 2 is at least 26; otherwise print fail.
{print $1,($2>=26?"pass":"fail")}
chen 25 hana 17 eli 1 farah 24 eli 19 alice 4 alice 15 ivan 8
chen fail hana fail eli fail farah fail eli fail alice fail alice fail ivan fail
chen 6 farah 28 ivan 26 chen 20 ivan 23 farah 14
chen fail farah pass ivan pass chen fail ivan fail farah fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004934-p1
Output the first column and print 'pass' if the second column is 26 or greater; otherwise, print 'fail'.
{print $1,($2>=26?"pass":"fail")}
chen 25 hana 17 eli 1 farah 24 eli 19 alice 4 alice 15 ivan 8
chen fail hana fail eli fail farah fail eli fail alice fail alice fail ivan fail
chen 6 farah 28 ivan 26 chen 20 ivan 23 farah 14
chen fail farah pass ivan pass chen fail ivan fail farah fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004934
qwen/qwen3.7-plus
awkweave-0004935
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
eli fable 29 gus cobalt 100 jules harbor 33 ivan ember 31 ivan harbor 61 eli harbor 29 chen fable 50 ivan indigo 98 bruno ember 57 hana juniper 9
FABLE COBALT HARBOR EMBER HARBOR HARBOR FABLE INDIGO EMBER JUNIPER
lina indigo 55 eli ember 19 jules cobalt 77 chen birch 28 lina juniper 28 gus amber 0
INDIGO EMBER COBALT BIRCH JUNIPER AMBER
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004935-p1
Transform the second column to uppercase and output only that modified column.
{print toupper($2)}
eli fable 29 gus cobalt 100 jules harbor 33 ivan ember 31 ivan harbor 61 eli harbor 29 chen fable 50 ivan indigo 98 bruno ember 57 hana juniper 9
FABLE COBALT HARBOR EMBER HARBOR HARBOR FABLE INDIGO EMBER JUNIPER
lina indigo 55 eli ember 19 jules cobalt 77 chen birch 28 lina juniper 28 gus amber 0
INDIGO EMBER COBALT BIRCH JUNIPER AMBER
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004935
qwen/qwen3.7-plus
awkweave-0004936
From column 1, print 3 characters starting at character 1.
{print substr($1,1,3)}
amber 63 indigo 101 ember 53 amber 26 fable 52 birch 46 birch 3 grove 33 harbor 35 amber 61
amb ind emb amb fab bir bir gro har amb
delta 87 harbor 74 juniper 83 cobalt 59 juniper 76 fable 59
del har jun cob jun fab
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004936-p1
Extract and print the first 3 characters from the first column, starting at position 1.
{print substr($1,1,3)}
amber 63 indigo 101 ember 53 amber 26 fable 52 birch 46 birch 3 grove 33 harbor 35 amber 61
amb ind emb amb fab bir bir gro har amb
delta 87 harbor 74 juniper 83 cobalt 59 juniper 76 fable 59
del har jun cob jun fab
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004936
qwen/qwen3.7-plus
awkweave-0004937
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
grove_indigo 102 amber_indigo 109 cobalt_cobalt 86 harbor_delta 37 indigo_ember 74 grove_juniper 58 fable_birch 67 delta_indigo 89 ember_ember 91 cobalt_birch 70
grove indigo amber indigo cobalt cobalt harbor delta indigo ember grove juniper fable birch delta indigo ember ember cobalt birch
harbor_indigo 84 cobalt_fable 55 birch_birch 4 delta_amber 15 amber_harbor 82 birch_cobalt 74 harbor_juniper 43 grove_juniper 79 amber_juniper 15
harbor indigo cobalt fable birch birch delta amber amber harbor birch cobalt harbor juniper grove juniper amber juniper
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004937-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
grove_indigo 102 amber_indigo 109 cobalt_cobalt 86 harbor_delta 37 indigo_ember 74 grove_juniper 58 fable_birch 67 delta_indigo 89 ember_ember 91 cobalt_birch 70
grove indigo amber indigo cobalt cobalt harbor delta indigo ember grove juniper fable birch delta indigo ember ember cobalt birch
harbor_indigo 84 cobalt_fable 55 birch_birch 4 delta_amber 15 amber_harbor 82 birch_cobalt 74 harbor_juniper 43 grove_juniper 79 amber_juniper 15
harbor indigo cobalt fable birch birch delta amber amber harbor birch cobalt harbor juniper grove juniper amber juniper
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004937
qwen/qwen3.7-plus
awkweave-0004938
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)}
lina indigo 120 pending bruno delta 20 ready ivan ember 56 paused farah amber 31 active dina juniper 115 ready bruno juniper 68 ready bruno indigo 4 pending
pending 120 indigo lina ready 20 delta bruno paused 56 ember ivan active 31 amber farah ready 115 juniper dina ready 68 juniper bruno pending 4 indigo bruno
gus delta 77 ready alice birch 10 ready gus harbor 34 closed eli ember 14 pending hana fable 93 active jules amber 105 failed gus juniper 104 paused
ready 77 delta gus ready 10 birch alice closed 34 harbor gus pending 14 ember eli active 93 fable hana failed 105 amber jules paused 104 juniper gus
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004938-p1
Reverse the sequence of fields for every line and print all fields in the new order.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
lina indigo 120 pending bruno delta 20 ready ivan ember 56 paused farah amber 31 active dina juniper 115 ready bruno juniper 68 ready bruno indigo 4 pending
pending 120 indigo lina ready 20 delta bruno paused 56 ember ivan active 31 amber farah ready 115 juniper dina ready 68 juniper bruno pending 4 indigo bruno
gus delta 77 ready alice birch 10 ready gus harbor 34 closed eli ember 14 pending hana fable 93 active jules amber 105 failed gus juniper 104 paused
ready 77 delta gus ready 10 birch alice closed 34 harbor gus pending 14 ember eli active 93 fable hana failed 105 amber jules paused 104 juniper gus
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004938
qwen/qwen3.7-plus
awkweave-0004939
Print the number of whitespace-separated fields on each line.
{print NF}
jules birch 41 closed farah grove 115 failed hana ember 51 pending farah birch 33 pending gus ember 70 pending dina delta 32 failed eli juniper 39 active jules harbor 21 active
4 4 4 4 4 4 4 4
jules birch 40 failed alice juniper 99 failed farah harbor 78 failed alice juniper 43 pending bruno indigo 52 closed eli birch 76 ready gus delta 18 ready gus harbor 30 pending
4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0004939-p1
Output the count of whitespace-delimited fields present on each line.
{print NF}
jules birch 41 closed farah grove 115 failed hana ember 51 pending farah birch 33 pending gus ember 70 pending dina delta 32 failed eli juniper 39 active jules harbor 21 active
4 4 4 4 4 4 4 4
jules birch 40 failed alice juniper 99 failed farah harbor 78 failed alice juniper 43 pending bruno indigo 52 closed eli birch 76 ready gus delta 18 ready gus harbor 30 pending
4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0004939
qwen/qwen3.7-plus
awkweave-0004940
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]]}
chen beta 34 jules delta 18 jules alpha 57 eli alpha 13 gus alpha 78 hana delta 33 farah beta 70 bruno delta 22 chen alpha 13 kim gamma 80
beta 2 delta 3 alpha 4 gamma 1
bruno delta 74 lina delta 109 eli beta 18 kim delta 91 eli delta 112 bruno gamma 4
delta 4 beta 1 gamma 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null