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-0011880-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)}
dina juniper 84 active farah delta 51 failed hana grove 77 active kim fable 58 pending jules ember 96 closed chen fable 48 active
active 84 juniper dina failed 51 delta farah active 77 grove hana pending 58 fable kim closed 96 ember jules active 48 fable chen
kim ember 76 active farah cobalt 23 active bruno fable 32 pending dina juniper 90 ready bruno fable 117 failed gus grove 53 paused lina birch 27 pending gus delta 4 active chen indigo 16 paused
active 76 ember kim active 23 cobalt farah pending 32 fable bruno ready 90 juniper dina failed 117 fable bruno paused 53 grove gus pending 27 birch lina active 4 delta gus paused 16 indigo chen
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011880
qwen/qwen3.7-plus
awkweave-0011881
Print the number of whitespace-separated fields on each line.
{print NF}
hana birch 9 paused kim cobalt 115 failed kim delta 24 active dina indigo 40 active dina indigo 40 failed hana cobalt 42 paused chen juniper 120 paused chen cobalt 87 active hana amber 16 pending
4 4 4 4 4 4 4 4 4
dina juniper 106 ready hana delta 4 active hana amber 19 closed chen ember 68 pending kim indigo 110 active eli amber 61 pending alice grove 10 pending farah grove 38 closed
4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011881-p1
Display the count of whitespace-delimited fields present on each line.
{print NF}
hana birch 9 paused kim cobalt 115 failed kim delta 24 active dina indigo 40 active dina indigo 40 failed hana cobalt 42 paused chen juniper 120 paused chen cobalt 87 active hana amber 16 pending
4 4 4 4 4 4 4 4 4
dina juniper 106 ready hana delta 4 active hana amber 19 closed chen ember 68 pending kim indigo 110 active eli amber 61 pending alice grove 10 pending farah grove 38 closed
4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011881
qwen/qwen3.7-plus
awkweave-0011882
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]]}
gus alpha 10 hana beta 38 eli beta 7 lina alpha 83 dina delta 31 ivan gamma 61
alpha 2 beta 2 delta 1 gamma 1
ivan delta 1 gus alpha 33 chen delta 45 jules alpha 3 jules alpha 87 lina alpha 84 gus alpha 65 dina delta 71
delta 3 alpha 5
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011882-p1
Tally the number of records for each distinct value in the second column, printing the value and its count 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]]}
gus alpha 10 hana beta 38 eli beta 7 lina alpha 83 dina delta 31 ivan gamma 61
alpha 2 beta 2 delta 1 gamma 1
ivan delta 1 gus alpha 33 chen delta 45 jules alpha 3 jules alpha 87 lina alpha 84 gus alpha 65 dina delta 71
delta 3 alpha 5
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011882
qwen/qwen3.7-plus
awkweave-0011883
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]]}
gus alpha 24 gus gamma 7 farah alpha 20 bruno alpha 30 alice delta 22 kim alpha 5 lina delta 21 kim alpha 29
alpha 108 gamma 7 delta 43
bruno alpha 25 kim alpha 12 jules gamma 26 kim alpha 4 lina beta 24 dina gamma 3 dina gamma 18 lina beta 8 alice alpha 8
alpha 49 gamma 47 beta 32
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011883-p1
Calculate the sum of the third column for each group defined by the second column, outputting the results in the order of the groups' 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]]}
gus alpha 24 gus gamma 7 farah alpha 20 bruno alpha 30 alice delta 22 kim alpha 5 lina delta 21 kim alpha 29
alpha 108 gamma 7 delta 43
bruno alpha 25 kim alpha 12 jules gamma 26 kim alpha 4 lina beta 24 dina gamma 3 dina gamma 18 lina beta 8 alice alpha 8
alpha 49 gamma 47 beta 32
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011883
qwen/qwen3.7-plus
awkweave-0011884
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
delta indigo 106 alpha fable 73 gamma juniper 82 delta cobalt 120 delta harbor 103 delta cobalt 117 alpha amber 75 delta fable 6 gamma amber 103
delta 5 alpha 2 gamma 2
gamma birch 77 gamma cobalt 86 gamma indigo 65 delta cobalt 80 gamma fable 101 gamma amber 90
gamma 5
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011884-p1
List each unique value from the first column along with its frequency, ordered by when it first appears.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
delta indigo 106 alpha fable 73 gamma juniper 82 delta cobalt 120 delta harbor 103 delta cobalt 117 alpha amber 75 delta fable 6 gamma amber 103
delta 5 alpha 2 gamma 2
gamma birch 77 gamma cobalt 86 gamma indigo 65 delta cobalt 80 gamma fable 101 gamma amber 90
gamma 5
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011884
qwen/qwen3.7-plus
awkweave-0011885
The first row is a header. Print the record_id column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
note region record_id state r001 ivan 21 failed r002 kim 24 active r003 hana 17 closed r004 lina 8 active r005 hana 28 paused r006 farah 11 active r007 bruno 13 active r008 kim 15 active r009 alice 1 closed r010 farah 12 closed
21 24 17 8 28 11 13 15 1 12
note region record_id state r001 gus 19 pending r002 eli 7 closed r003 ivan 17 paused r004 ivan 26 failed r005 kim 29 pending r006 dina 17 ready r007 jules 8 closed r008 farah 6 pending
19 7 17 26 29 17 8 6
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011885-p1
Treat the initial row as a header and output the record_id field for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
note region record_id state r001 ivan 21 failed r002 kim 24 active r003 hana 17 closed r004 lina 8 active r005 hana 28 paused r006 farah 11 active r007 bruno 13 active r008 kim 15 active r009 alice 1 closed r010 farah 12 closed
21 24 17 8 28 11 13 15 1 12
note region record_id state r001 gus 19 pending r002 eli 7 closed r003 ivan 17 paused r004 ivan 26 failed r005 kim 29 pending r006 dina 17 ready r007 jules 8 closed r008 farah 6 pending
19 7 17 26 29 17 8 6
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011885
qwen/qwen3.7-plus
awkweave-0011886
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 dina 25 active r002 ivan 6 paused r003 chen 1 closed r004 jules 9 pending r005 chen 7 active r006 hana 30 closed
dina hana
record_id display_name score state r001 eli 29 paused r002 eli 2 ready r003 lina 7 closed r004 bruno 17 failed r005 bruno 12 failed r006 gus 8 ready r007 alice 7 closed r008 ivan 8 ready
eli bruno
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011886-p1
Ignoring the header row, output the display_name field for any record where the score is strictly 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 dina 25 active r002 ivan 6 paused r003 chen 1 closed r004 jules 9 pending r005 chen 7 active r006 hana 30 closed
dina hana
record_id display_name score state r001 eli 29 paused r002 eli 2 ready r003 lina 7 closed r004 bruno 17 failed r005 bruno 12 failed r006 gus 8 ready r007 alice 7 closed r008 ivan 8 ready
eli bruno
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011886
qwen/qwen3.7-plus
awkweave-0011887
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
bruno 14 pending farah 5 failed lina 22 closed lina 27 pending dina 5 paused dina 29 pending hana 16 active
14 5 22 27 5 29 16
bruno 10 failed farah 28 failed bruno 2 closed ivan 16 failed bruno 22 pending kim 26 failed chen 3 pending
10 28 2 16 22 26 3
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011887-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
bruno 14 pending farah 5 failed lina 22 closed lina 27 pending dina 5 paused dina 29 pending hana 16 active
14 5 22 27 5 29 16
bruno 10 failed farah 28 failed bruno 2 closed ivan 16 failed bruno 22 pending kim 26 failed chen 3 pending
10 28 2 16 22 26 3
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0011887
qwen/qwen3.7-plus
awkweave-0011888
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}
kim,17,ready chen,8,active dina,12,paused gus,2,ready dina,11,failed jules,15,closed dina,11,ready lina,29,paused
lina
hana,18,pending gus,18,paused dina,22,ready hana,27,paused bruno,16,ready gus,20,active
dina hana gus
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011888-p1
For simple CSV input without quoted commas, print the first column only if the value in the second column is greater than 18.
BEGIN{FS=OFS=","}$2>18{print $1}
kim,17,ready chen,8,active dina,12,paused gus,2,ready dina,11,failed jules,15,closed dina,11,ready lina,29,paused
lina
hana,18,pending gus,18,paused dina,22,ready hana,27,paused bruno,16,ready gus,20,active
dina hana gus
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011888
qwen/qwen3.7-plus
awkweave-0011889
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
bruno delta 31 gus birch 111 gus fable 43 farah grove 78 lina cobalt 62 kim harbor 75 hana harbor 63 dina fable 82 eli cobalt 44 chen amber 29
bruno delta 31 gus birch 111 gus fable 43 farah grove 78 lina cobalt 62 kim harbor 75 hana harbor 63 dina fable 82 eli cobalt 44 chen amber 29
alice indigo 104 dina cobalt 94 chen grove 33 eli juniper 85 dina amber 109 chen delta 90 farah ember 66 jules ember 76 hana birch 76
alice indigo 104 dina cobalt 94 chen grove 33 eli juniper 85 dina amber 109 chen delta 90 farah ember 66 jules ember 76 hana birch 76
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011889-p1
Remove leading and trailing whitespace from the text, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
bruno delta 31 gus birch 111 gus fable 43 farah grove 78 lina cobalt 62 kim harbor 75 hana harbor 63 dina fable 82 eli cobalt 44 chen amber 29
bruno delta 31 gus birch 111 gus fable 43 farah grove 78 lina cobalt 62 kim harbor 75 hana harbor 63 dina fable 82 eli cobalt 44 chen amber 29
alice indigo 104 dina cobalt 94 chen grove 33 eli juniper 85 dina amber 109 chen delta 90 farah ember 66 jules ember 76 hana birch 76
alice indigo 104 dina cobalt 94 chen grove 33 eli juniper 85 dina amber 109 chen delta 90 farah ember 66 jules ember 76 hana birch 76
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011889
qwen/qwen3.7-plus
awkweave-0011900
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
ERROR cobalt 72 INFO birch 81 DEBUG cobalt 27 WARN fable 28 ERROR juniper 94 DEBUG cobalt 87 DEBUG cobalt 77 INFO amber 38 INFO grove 22 ERROR indigo 104
ERROR cobalt 72 ERROR juniper 94 ERROR indigo 104
WARN harbor 86 DEBUG fable 49 DEBUG fable 14 INFO fable 86 ERROR birch 7 ERROR ember 82 INFO delta 31
ERROR birch 7 ERROR ember 82
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011900-p1
Output all fields from any line where the first field starts with the string ERROR.
$1 ~ /^ERROR/
ERROR cobalt 72 INFO birch 81 DEBUG cobalt 27 WARN fable 28 ERROR juniper 94 DEBUG cobalt 87 DEBUG cobalt 77 INFO amber 38 INFO grove 22 ERROR indigo 104
ERROR cobalt 72 ERROR juniper 94 ERROR indigo 104
WARN harbor 86 DEBUG fable 49 DEBUG fable 14 INFO fable 86 ERROR birch 7 ERROR ember 82 INFO delta 31
ERROR birch 7 ERROR ember 82
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011900
qwen/qwen3.7-plus
awkweave-0011901
Print every line except those containing the exact text cobalt.
$0 !~ /cobalt/
birch 54 active ember 8 active fable 68 failed ember 89 paused indigo 53 failed juniper 84 failed delta 97 ready harbor 25 pending cobalt 999 active
birch 54 active ember 8 active fable 68 failed ember 89 paused indigo 53 failed juniper 84 failed delta 97 ready harbor 25 pending
harbor 112 active juniper 4 active ember 119 failed fable 80 failed fable 71 ready birch 43 pending juniper 49 closed indigo 72 active indigo 23 active cobalt 999 active
harbor 112 active juniper 4 active ember 119 failed fable 80 failed fable 71 ready birch 43 pending juniper 49 closed indigo 72 active indigo 23 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011901-p1
Print every line from the input, excluding those that contain the exact substring cobalt.
$0 !~ /cobalt/
birch 54 active ember 8 active fable 68 failed ember 89 paused indigo 53 failed juniper 84 failed delta 97 ready harbor 25 pending cobalt 999 active
birch 54 active ember 8 active fable 68 failed ember 89 paused indigo 53 failed juniper 84 failed delta 97 ready harbor 25 pending
harbor 112 active juniper 4 active ember 119 failed fable 80 failed fable 71 ready birch 43 pending juniper 49 closed indigo 72 active indigo 23 active cobalt 999 active
harbor 112 active juniper 4 active ember 119 failed fable 80 failed fable 71 ready birch 43 pending juniper 49 closed indigo 72 active indigo 23 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011901
qwen/qwen3.7-plus
awkweave-0011902
Print lines 2 through 5, including both endpoints.
NR >= 2 && NR <= 5
alice indigo 82 lina cobalt 108 eli indigo 14 alice juniper 85 ivan cobalt 117 lina delta 61 kim delta 107 eli delta 29
lina cobalt 108 eli indigo 14 alice juniper 85 ivan cobalt 117
ivan fable 120 gus grove 92 lina birch 12 alice ember 84 chen grove 59 lina harbor 100 chen birch 56
gus grove 92 lina birch 12 alice ember 84 chen grove 59
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011902-p1
Output lines 2 through 5, inclusive of both the start and end lines.
NR >= 2 && NR <= 5
alice indigo 82 lina cobalt 108 eli indigo 14 alice juniper 85 ivan cobalt 117 lina delta 61 kim delta 107 eli delta 29
lina cobalt 108 eli indigo 14 alice juniper 85 ivan cobalt 117
ivan fable 120 gus grove 92 lina birch 12 alice ember 84 chen grove 59 lina harbor 100 chen birch 56
gus grove 92 lina birch 12 alice ember 84 chen grove 59
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011902
qwen/qwen3.7-plus
awkweave-0011903
Output only the first 4 records.
NR <= 4
kim 8 juniper ivan 29 harbor eli 38 ember gus 116 grove hana 6 amber hana 46 indigo
kim 8 juniper ivan 29 harbor eli 38 ember gus 116 grove
kim 66 juniper farah 78 ember farah 28 juniper hana 9 cobalt bruno 49 harbor ivan 81 ember eli 70 amber
kim 66 juniper farah 78 ember farah 28 juniper hana 9 cobalt
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011903-p1
Restrict the output to only the first 4 records.
NR <= 4
kim 8 juniper ivan 29 harbor eli 38 ember gus 116 grove hana 6 amber hana 46 indigo
kim 8 juniper ivan 29 harbor eli 38 ember gus 116 grove
kim 66 juniper farah 78 ember farah 28 juniper hana 9 cobalt bruno 49 harbor ivan 81 ember eli 70 amber
kim 66 juniper farah 78 ember farah 28 juniper hana 9 cobalt
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011903
qwen/qwen3.7-plus
awkweave-0011904
Skip the first line and print every remaining line unchanged.
NR > 1
jules 19 ember farah 64 amber hana 26 birch dina 112 harbor hana 72 juniper ivan 49 ember dina 107 amber farah 8 indigo alice 47 harbor eli 77 harbor
farah 64 amber hana 26 birch dina 112 harbor hana 72 juniper ivan 49 ember dina 107 amber farah 8 indigo alice 47 harbor eli 77 harbor
bruno 48 grove gus 84 delta chen 107 indigo farah 79 amber bruno 59 delta lina 80 indigo farah 92 ember lina 77 grove
gus 84 delta chen 107 indigo farah 79 amber bruno 59 delta lina 80 indigo farah 92 ember lina 77 grove
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011904-p1
Omit the first line and print all remaining lines exactly as they appear.
NR > 1
jules 19 ember farah 64 amber hana 26 birch dina 112 harbor hana 72 juniper ivan 49 ember dina 107 amber farah 8 indigo alice 47 harbor eli 77 harbor
farah 64 amber hana 26 birch dina 112 harbor hana 72 juniper ivan 49 ember dina 107 amber farah 8 indigo alice 47 harbor eli 77 harbor
bruno 48 grove gus 84 delta chen 107 indigo farah 79 amber bruno 59 delta lina 80 indigo farah 92 ember lina 77 grove
gus 84 delta chen 107 indigo farah 79 amber bruno 59 delta lina 80 indigo farah 92 ember lina 77 grove
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011904
qwen/qwen3.7-plus
awkweave-0011905
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
jules ready 58 jules ready 90 eli pending 41 jules active 15 bruno ready 31 kim active 95 gus paused 13
1
eli failed 29 chen ready 78 gus closed 95 dina pending 2 chen failed 40 kim failed 113 kim paused 35 kim pending 106
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011905-p1
Calculate the total number of records where the second column contains pending, and output 0 if no such records exist.
$2 == "pending"{n++}END{print n+0}
jules ready 58 jules ready 90 eli pending 41 jules active 15 bruno ready 31 kim active 95 gus paused 13
1
eli failed 29 chen ready 78 gus closed 95 dina pending 2 chen failed 40 kim failed 113 kim paused 35 kim pending 106
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011905
qwen/qwen3.7-plus
awkweave-0011906
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
24 birch jules 8 amber dina 22 harbor jules 3 amber chen 13 harbor bruno 3 grove lina 28 indigo bruno
101
28 cobalt chen 15 juniper gus 13 indigo eli 1 fable chen 8 indigo gus 28 birch farah 23 amber ivan 17 amber gus 26 juniper eli 16 juniper jules
175
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011906-p1
Compute the total of all integer values in the first column and output the result.
{s+=$1}END{print s+0}
24 birch jules 8 amber dina 22 harbor jules 3 amber chen 13 harbor bruno 3 grove lina 28 indigo bruno
101
28 cobalt chen 15 juniper gus 13 indigo eli 1 fable chen 8 indigo gus 28 birch farah 23 amber ivan 17 amber gus 26 juniper eli 16 juniper jules
175
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011906
qwen/qwen3.7-plus
awkweave-0011907
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
26 birch gus 16 ember lina 22 grove hana 18 birch gus 3 indigo jules 29 fable hana 16 juniper eli 21 indigo gus 28 delta farah 5 delta dina
18.40
23 fable kim 3 ember dina 2 amber farah 11 birch alice 29 indigo eli 10 fable ivan 18 indigo lina
13.71
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011907-p1
Output the average of the values in column 1, formatted to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
26 birch gus 16 ember lina 22 grove hana 18 birch gus 3 indigo jules 29 fable hana 16 juniper eli 21 indigo gus 28 delta farah 5 delta dina
18.40
23 fable kim 3 ember dina 2 amber farah 11 birch alice 29 indigo eli 10 fable ivan 18 indigo lina
13.71
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011907
qwen/qwen3.7-plus
awkweave-0011908
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
cobalt 16 chen cobalt 4 eli harbor 24 ivan birch 6 farah indigo 8 hana grove 5 alice birch 7 ivan amber 24 dina
4
delta 25 eli fable 21 kim delta 3 kim fable 12 chen ember 7 bruno amber 25 jules grove 14 farah ember 9 ivan amber 6 jules
3
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011908-p1
Identify and display the minimum numeric value found in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
cobalt 16 chen cobalt 4 eli harbor 24 ivan birch 6 farah indigo 8 hana grove 5 alice birch 7 ivan amber 24 dina
4
delta 25 eli fable 21 kim delta 3 kim fable 12 chen ember 7 bruno amber 25 jules grove 14 farah ember 9 ivan amber 6 jules
3
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011908
qwen/qwen3.7-plus
awkweave-0011909
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
6 chen delta 4 kim grove 15 kim delta 23 farah birch 3 kim fable 30 farah delta 19 chen indigo 23 alice ember 17 kim fable
30
27 jules harbor 20 farah cobalt 5 kim grove 30 bruno amber 12 lina ember 20 lina juniper 28 jules grove 9 jules juniper
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011909-p1
Identify and display the maximum numeric value found in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
6 chen delta 4 kim grove 15 kim delta 23 farah birch 3 kim fable 30 farah delta 19 chen indigo 23 alice ember 17 kim fable
30
27 jules harbor 20 farah cobalt 5 kim grove 30 bruno amber 12 lina ember 20 lina juniper 28 jules grove 9 jules juniper
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011909
qwen/qwen3.7-plus
awkweave-0011910
Count all input records and print the total.
END{print NR}
jules 89 chen 46 lina 55 dina 16 chen 100 kim 81
6
dina 74 gus 110 gus 71 farah 77 chen 83 hana 28 dina 6 ivan 59 ivan 6
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011910-p1
Count the total number of input lines and print that count.
END{print NR}
jules 89 chen 46 lina 55 dina 16 chen 100 kim 81
6
dina 74 gus 110 gus 71 farah 77 chen 83 hana 28 dina 6 ivan 59 ivan 6
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011910
qwen/qwen3.7-plus
awkweave-0011911
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
eli juniper 116 alice birch 108 dina delta 109 bruno cobalt 43 alice grove 38 jules ember 108 farah cobalt 15 alice grove 38 ivan cobalt 71 bruno delta 18 chen indigo 92
eli juniper 116 alice birch 108 dina delta 109 bruno cobalt 43 alice grove 38 jules ember 108 farah cobalt 15 ivan cobalt 71 bruno delta 18 chen indigo 92
hana ember 94 alice ember 70 farah ember 97 hana grove 76 hana juniper 76 gus indigo 64 gus grove 119 eli fable 30 hana indigo 9 hana juniper 76 jules birch 85
hana ember 94 alice ember 70 farah ember 97 hana grove 76 hana juniper 76 gus indigo 64 gus grove 119 eli fable 30 hana indigo 9 jules birch 85
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011911-p1
Eliminate duplicate lines by keeping only the first instance of each, maintaining the original sequence.
!seen[$0]++
eli juniper 116 alice birch 108 dina delta 109 bruno cobalt 43 alice grove 38 jules ember 108 farah cobalt 15 alice grove 38 ivan cobalt 71 bruno delta 18 chen indigo 92
eli juniper 116 alice birch 108 dina delta 109 bruno cobalt 43 alice grove 38 jules ember 108 farah cobalt 15 ivan cobalt 71 bruno delta 18 chen indigo 92
hana ember 94 alice ember 70 farah ember 97 hana grove 76 hana juniper 76 gus indigo 64 gus grove 119 eli fable 30 hana indigo 9 hana juniper 76 jules birch 85
hana ember 94 alice ember 70 farah ember 97 hana grove 76 hana juniper 76 gus indigo 64 gus grove 119 eli fable 30 hana indigo 9 jules birch 85
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011911
qwen/qwen3.7-plus
awkweave-0011912
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
kim grove 52 kim indigo 81 chen fable 107 alice amber 106 gus juniper 46 farah fable 91 hana juniper 35 ivan amber 46 gus delta 82 ivan grove 48
kim grove 52 kim indigo 81 chen fable 107 alice amber 106 gus juniper 46 farah fable 91 hana juniper 35 gus delta 82 ivan grove 48
dina grove 115 gus cobalt 120 lina delta 108 dina delta 74 kim juniper 77 gus fable 103 bruno harbor 108
dina grove 115 gus cobalt 120 lina delta 108 dina delta 74 kim juniper 77 gus fable 103
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011912-p1
Retain only the initial line for every unique value in column 3, keeping the original order intact.
!seen[$3]++
kim grove 52 kim indigo 81 chen fable 107 alice amber 106 gus juniper 46 farah fable 91 hana juniper 35 ivan amber 46 gus delta 82 ivan grove 48
kim grove 52 kim indigo 81 chen fable 107 alice amber 106 gus juniper 46 farah fable 91 hana juniper 35 gus delta 82 ivan grove 48
dina grove 115 gus cobalt 120 lina delta 108 dina delta 74 kim juniper 77 gus fable 103 bruno harbor 108
dina grove 115 gus cobalt 120 lina delta 108 dina delta 74 kim juniper 77 gus fable 103
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011912
qwen/qwen3.7-plus
awkweave-0011913
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
bruno 11 harbor dina 27 grove dina 6 harbor ivan 8 indigo hana 19 juniper gus 29 grove jules 26 indigo
bruno 11 dina 38 dina 44 ivan 52 hana 71 gus 100 jules 126
gus 17 harbor chen 1 juniper hana 18 cobalt bruno 24 ember alice 13 harbor chen 22 indigo bruno 24 fable jules 4 ember dina 5 indigo
gus 17 chen 18 hana 36 bruno 60 alice 73 chen 95 bruno 119 jules 123 dina 128
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011913-p1
For each line, output the value from column 1 alongside the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
bruno 11 harbor dina 27 grove dina 6 harbor ivan 8 indigo hana 19 juniper gus 29 grove jules 26 indigo
bruno 11 dina 38 dina 44 ivan 52 hana 71 gus 100 jules 126
gus 17 harbor chen 1 juniper hana 18 cobalt bruno 24 ember alice 13 harbor chen 22 indigo bruno 24 fable jules 4 ember dina 5 indigo
gus 17 chen 18 hana 36 bruno 60 alice 73 chen 95 bruno 119 jules 123 dina 128
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011913
qwen/qwen3.7-plus
awkweave-0011914
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 5 1 amber bruno 24 3 grove alice 23 7 indigo alice 25 15 harbor lina 9 24 harbor dina 8 25 juniper
bruno 6 bruno 27 alice 30 alice 40 lina 33 dina 33
chen 24 30 indigo gus 7 14 amber chen 23 5 harbor kim 11 21 amber dina 19 30 birch farah 13 12 amber dina 29 15 juniper
chen 54 gus 21 chen 28 kim 32 dina 49 farah 25 dina 44
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011914-p1
For every row, output the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
bruno 5 1 amber bruno 24 3 grove alice 23 7 indigo alice 25 15 harbor lina 9 24 harbor dina 8 25 juniper
bruno 6 bruno 27 alice 30 alice 40 lina 33 dina 33
chen 24 30 indigo gus 7 14 amber chen 23 5 harbor kim 11 21 amber dina 19 30 birch farah 13 12 amber dina 29 15 juniper
chen 54 gus 21 chen 28 kim 32 dina 49 farah 25 dina 44
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011914
qwen/qwen3.7-plus
awkweave-0011915
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
chen 16 dina 9 dina 28 lina 30 lina 21 eli 13 dina 7 gus 4
chen fail dina fail dina pass lina pass lina fail eli fail dina fail gus fail
bruno 1 eli 3 jules 16 ivan 27 hana 17 gus 7
bruno fail eli fail jules fail ivan pass hana fail gus fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011915-p1
Output the value from column 1 along with 'pass' if column 2 is 25 or greater, otherwise output 'fail'.
{print $1,($2>=25?"pass":"fail")}
chen 16 dina 9 dina 28 lina 30 lina 21 eli 13 dina 7 gus 4
chen fail dina fail dina pass lina pass lina fail eli fail dina fail gus fail
bruno 1 eli 3 jules 16 ivan 27 hana 17 gus 7
bruno fail eli fail jules fail ivan pass hana fail gus fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011915
qwen/qwen3.7-plus
awkweave-0011916
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
kim delta 11 eli birch 108 jules amber 53 kim birch 71 jules delta 10 lina cobalt 61 farah grove 22 ivan fable 74 ivan indigo 36
DELTA BIRCH AMBER BIRCH DELTA COBALT GROVE FABLE INDIGO
ivan grove 48 dina juniper 36 alice indigo 10 alice amber 60 lina indigo 19 kim amber 18 jules birch 98 eli harbor 90
GROVE JUNIPER INDIGO AMBER INDIGO AMBER BIRCH HARBOR
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011916-p1
Transform the text in column 2 to uppercase and print only that modified column.
{print toupper($2)}
kim delta 11 eli birch 108 jules amber 53 kim birch 71 jules delta 10 lina cobalt 61 farah grove 22 ivan fable 74 ivan indigo 36
DELTA BIRCH AMBER BIRCH DELTA COBALT GROVE FABLE INDIGO
ivan grove 48 dina juniper 36 alice indigo 10 alice amber 60 lina indigo 19 kim amber 18 jules birch 98 eli harbor 90
GROVE JUNIPER INDIGO AMBER INDIGO AMBER BIRCH HARBOR
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011916
qwen/qwen3.7-plus
awkweave-0011917
From column 1, print 4 characters starting at character 1.
{print substr($1,1,4)}
harbor 106 ember 15 indigo 61 ember 31 cobalt 43 fable 13 cobalt 7 fable 83 cobalt 78
harb embe indi embe coba fabl coba fabl coba
cobalt 57 ember 68 juniper 109 grove 51 birch 64 harbor 89 ember 112 juniper 24
coba embe juni grov birc harb embe juni
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011917-p1
Extract and print the first 4 characters from the value in column 1.
{print substr($1,1,4)}
harbor 106 ember 15 indigo 61 ember 31 cobalt 43 fable 13 cobalt 7 fable 83 cobalt 78
harb embe indi embe coba fabl coba fabl coba
cobalt 57 ember 68 juniper 109 grove 51 birch 64 harbor 89 ember 112 juniper 24
coba embe juni grov birc harb embe juni
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011917
qwen/qwen3.7-plus
awkweave-0011918
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
grove_delta 8 indigo_cobalt 95 cobalt_juniper 111 juniper_grove 84 birch_grove 84 cobalt_grove 15 fable_fable 90
grove delta indigo cobalt cobalt juniper juniper grove birch grove cobalt grove fable fable
amber_grove 41 indigo_amber 36 harbor_grove 120 grove_harbor 95 juniper_ember 4 amber_delta 82 juniper_cobalt 31 cobalt_juniper 30 amber_amber 14 cobalt_indigo 6
amber grove indigo amber harbor grove grove harbor juniper ember amber delta juniper cobalt cobalt juniper amber amber cobalt indigo
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011918-p1
Output the values from column 1 after replacing all underscores with spaces.
{gsub(/_/," ",$1);print $1}
grove_delta 8 indigo_cobalt 95 cobalt_juniper 111 juniper_grove 84 birch_grove 84 cobalt_grove 15 fable_fable 90
grove delta indigo cobalt cobalt juniper juniper grove birch grove cobalt grove fable fable
amber_grove 41 indigo_amber 36 harbor_grove 120 grove_harbor 95 juniper_ember 4 amber_delta 82 juniper_cobalt 31 cobalt_juniper 30 amber_amber 14 cobalt_indigo 6
amber grove indigo amber harbor grove grove harbor juniper ember amber delta juniper cobalt cobalt juniper amber amber cobalt indigo
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011918
qwen/qwen3.7-plus
awkweave-0011919
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)}
farah birch 7 ready dina fable 94 pending gus amber 82 failed jules ember 51 failed ivan harbor 76 pending eli ember 50 active chen harbor 27 ready jules birch 52 active alice fable 35 closed gus indigo 114 ready
ready 7 birch farah pending 94 fable dina failed 82 amber gus failed 51 ember jules pending 76 harbor ivan active 50 ember eli ready 27 harbor chen active 52 birch jules closed 35 fable alice ready 114 indigo gus
gus birch 20 ready ivan fable 8 paused ivan juniper 38 pending farah indigo 97 ready gus fable 34 active kim indigo 57 closed hana fable 9 pending chen cobalt 46 active
ready 20 birch gus paused 8 fable ivan pending 38 juniper ivan ready 97 indigo farah active 34 fable gus closed 57 indigo kim pending 9 fable hana active 46 cobalt chen
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011919-p1
Reverse the field sequence for each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
farah birch 7 ready dina fable 94 pending gus amber 82 failed jules ember 51 failed ivan harbor 76 pending eli ember 50 active chen harbor 27 ready jules birch 52 active alice fable 35 closed gus indigo 114 ready
ready 7 birch farah pending 94 fable dina failed 82 amber gus failed 51 ember jules pending 76 harbor ivan active 50 ember eli ready 27 harbor chen active 52 birch jules closed 35 fable alice ready 114 indigo gus
gus birch 20 ready ivan fable 8 paused ivan juniper 38 pending farah indigo 97 ready gus fable 34 active kim indigo 57 closed hana fable 9 pending chen cobalt 46 active
ready 20 birch gus paused 8 fable ivan pending 38 juniper ivan ready 97 indigo farah active 34 fable gus closed 57 indigo kim pending 9 fable hana active 46 cobalt chen
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011919
qwen/qwen3.7-plus
awkweave-0011920
Print the number of whitespace-separated fields on each line.
{print NF}
hana indigo 29 active dina birch 16 active bruno harbor 58 active lina amber 16 failed eli indigo 8 failed gus fable 56 ready hana cobalt 83 failed
4 4 4 4 4 4 4
ivan fable 109 active dina birch 89 closed dina grove 78 failed eli grove 63 closed dina harbor 20 failed gus harbor 97 closed chen ember 99 ready dina fable 85 ready hana juniper 75 closed lina ember 53 closed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011920-p1
Display the count of whitespace-delimited fields for every line.
{print NF}
hana indigo 29 active dina birch 16 active bruno harbor 58 active lina amber 16 failed eli indigo 8 failed gus fable 56 ready hana cobalt 83 failed
4 4 4 4 4 4 4
ivan fable 109 active dina birch 89 closed dina grove 78 failed eli grove 63 closed dina harbor 20 failed gus harbor 97 closed chen ember 99 ready dina fable 85 ready hana juniper 75 closed lina ember 53 closed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011920
qwen/qwen3.7-plus
awkweave-0011921
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
farah alpha 55 kim alpha 4 ivan gamma 112 dina beta 88 farah beta 38 alice gamma 26
alpha 2 gamma 2 beta 2
alice delta 49 hana gamma 87 alice alpha 78 farah alpha 33 dina alpha 26 jules beta 108 hana delta 105 gus gamma 44 jules gamma 16
delta 2 gamma 3 alpha 3 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011921-p1
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
farah alpha 55 kim alpha 4 ivan gamma 112 dina beta 88 farah beta 38 alice gamma 26
alpha 2 gamma 2 beta 2
alice delta 49 hana gamma 87 alice alpha 78 farah alpha 33 dina alpha 26 jules beta 108 hana delta 105 gus gamma 44 jules gamma 16
delta 2 gamma 3 alpha 3 beta 1
count_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0011921
qwen/qwen3.7-plus
awkweave-0011922
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
chen beta 12 alice gamma 20 dina beta 11 gus alpha 2 gus alpha 20 bruno gamma 27 chen gamma 29 farah gamma 30 farah alpha 21
beta 23 gamma 106 alpha 43
hana beta 16 bruno alpha 19 kim alpha 15 ivan alpha 25 hana gamma 23 farah gamma 26 gus alpha 22
beta 16 alpha 81 gamma 49
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011922-p1
Calculate the sum of column 3 grouped by column 2 categories, listing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
chen beta 12 alice gamma 20 dina beta 11 gus alpha 2 gus alpha 20 bruno gamma 27 chen gamma 29 farah gamma 30 farah alpha 21
beta 23 gamma 106 alpha 43
hana beta 16 bruno alpha 19 kim alpha 15 ivan alpha 25 hana gamma 23 farah gamma 26 gus alpha 22
beta 16 alpha 81 gamma 49
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011922
qwen/qwen3.7-plus
awkweave-0011923
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 cobalt 85 gamma birch 93 delta ember 72 gamma grove 71 beta delta 73 gamma ember 112 gamma indigo 101 alpha birch 62 delta amber 2
alpha 2 gamma 4 delta 2
alpha birch 116 alpha birch 38 beta delta 89 alpha grove 116 alpha ember 0 delta juniper 85 alpha harbor 46 beta ember 65 alpha fable 81
alpha 6 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011923-p1
List duplicate values from column 1 alongside their occurrence counts, 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 cobalt 85 gamma birch 93 delta ember 72 gamma grove 71 beta delta 73 gamma ember 112 gamma indigo 101 alpha birch 62 delta amber 2
alpha 2 gamma 4 delta 2
alpha birch 116 alpha birch 38 beta delta 89 alpha grove 116 alpha ember 0 delta juniper 85 alpha harbor 46 beta ember 65 alpha fable 81
alpha 6 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011923
qwen/qwen3.7-plus
awkweave-0011924
The first row is a header. Print the note column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
record_id state region note r001 dina 5 ready r002 ivan 22 pending r003 eli 4 failed r004 dina 15 ready r005 kim 25 pending r006 ivan 21 ready
ready pending failed ready pending ready
record_id state region note r001 jules 13 paused r002 lina 23 paused r003 kim 18 active r004 dina 27 active r005 jules 11 closed r006 jules 18 paused r007 hana 13 closed r008 farah 2 failed
paused paused active active closed paused closed failed
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011924-p1
Treating the first row as a header, output the note column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
record_id state region note r001 dina 5 ready r002 ivan 22 pending r003 eli 4 failed r004 dina 15 ready r005 kim 25 pending r006 ivan 21 ready
ready pending failed ready pending ready
record_id state region note r001 jules 13 paused r002 lina 23 paused r003 kim 18 active r004 dina 27 active r005 jules 11 closed r006 jules 18 paused r007 hana 13 closed r008 farah 2 failed
paused paused active active closed paused closed failed
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011924
qwen/qwen3.7-plus
awkweave-0011925
The first row is a header. Print display_name for data rows whose score is greater than 19.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>19{print $h["display_name"]}
record_id display_name score state r001 dina 8 pending r002 dina 7 ready r003 ivan 26 failed r004 chen 27 paused r005 kim 14 active r006 kim 13 ready r007 kim 26 active r008 farah 1 ready r009 ivan 2 pending r010 chen 9 closed
ivan chen kim
record_id display_name score state r001 bruno 6 closed r002 gus 17 paused r003 hana 17 paused r004 dina 7 paused r005 farah 6 closed r006 hana 20 failed r007 dina 19 ready r008 kim 27 closed
hana kim
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011925-p1
With the first row as a header, output the display_name field for data rows where score is greater than 19.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>19{print $h["display_name"]}
record_id display_name score state r001 dina 8 pending r002 dina 7 ready r003 ivan 26 failed r004 chen 27 paused r005 kim 14 active r006 kim 13 ready r007 kim 26 active r008 farah 1 ready r009 ivan 2 pending r010 chen 9 closed
ivan chen kim
record_id display_name score state r001 bruno 6 closed r002 gus 17 paused r003 hana 17 paused r004 dina 7 paused r005 farah 6 closed r006 hana 20 failed r007 dina 19 ready r008 kim 27 closed
hana kim
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011925
qwen/qwen3.7-plus
awkweave-0011926
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
eli 5 closed eli 8 ready bruno 23 active chen 24 paused hana 7 pending bruno 5 failed eli 25 paused lina 1 failed
eli eli bruno chen hana bruno eli lina
farah 11 failed farah 13 active eli 3 ready farah 12 ready chen 3 failed eli 25 closed farah 2 failed
farah farah eli farah chen eli farah
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011926-p1
Given tab-separated input, output the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
eli 5 closed eli 8 ready bruno 23 active chen 24 paused hana 7 pending bruno 5 failed eli 25 paused lina 1 failed
eli eli bruno chen hana bruno eli lina
farah 11 failed farah 13 active eli 3 ready farah 12 ready chen 3 failed eli 25 closed farah 2 failed
farah farah eli farah chen eli farah
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011926
qwen/qwen3.7-plus
awkweave-0011927
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 14.
BEGIN{FS=OFS=","}$2>14{print $1}
ivan,10,active lina,29,pending farah,27,pending hana,29,failed jules,26,active farah,29,active eli,5,closed dina,28,active chen,15,closed dina,21,pending
lina farah hana jules farah dina chen dina
gus,2,ready lina,2,paused kim,8,failed bruno,28,closed kim,3,ready eli,3,paused eli,1,active
bruno
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011927-p1
For simple comma-separated input without quoted commas, output column 1 whenever column 2 is greater than 14.
BEGIN{FS=OFS=","}$2>14{print $1}
ivan,10,active lina,29,pending farah,27,pending hana,29,failed jules,26,active farah,29,active eli,5,closed dina,28,active chen,15,closed dina,21,pending
lina farah hana jules farah dina chen dina
gus,2,ready lina,2,paused kim,8,failed bruno,28,closed kim,3,ready eli,3,paused eli,1,active
bruno
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011927
qwen/qwen3.7-plus
awkweave-0011928
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
dina fable 80 chen delta 68 eli harbor 38 jules indigo 98 alice grove 120 hana birch 106 ivan grove 109 kim birch 111
dina fable 80 chen delta 68 eli harbor 38 jules indigo 98 alice grove 120 hana birch 106 ivan grove 109 kim birch 111
lina harbor 103 eli amber 41 kim ember 57 farah ember 25 chen juniper 82 hana fable 52 ivan grove 24 farah amber 41
lina harbor 103 eli amber 41 kim ember 57 farah ember 25 chen juniper 82 hana fable 52 ivan grove 24 farah amber 41
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011928-p1
Remove leading and trailing whitespace and reduce internal whitespace sequences to single spaces.
{$1=$1;print}
dina fable 80 chen delta 68 eli harbor 38 jules indigo 98 alice grove 120 hana birch 106 ivan grove 109 kim birch 111
dina fable 80 chen delta 68 eli harbor 38 jules indigo 98 alice grove 120 hana birch 106 ivan grove 109 kim birch 111
lina harbor 103 eli amber 41 kim ember 57 farah ember 25 chen juniper 82 hana fable 52 ivan grove 24 farah amber 41
lina harbor 103 eli amber 41 kim ember 57 farah ember 25 chen juniper 82 hana fable 52 ivan grove 24 farah amber 41
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011928
qwen/qwen3.7-plus
awkweave-0011929
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
eli indigo 47 active alice amber 56 pending ivan birch 89 pending chen birch 76 ready lina cobalt 58 failed ivan indigo 109 failed ivan juniper 5 failed hana harbor 39 pending dina fable 51 active dina juniper 15 failed
alice amber 56 pending
gus grove 86 active hana cobalt 109 paused dina delta 67 pending ivan grove 65 failed kim juniper 98 pending hana harbor 15 active alice grove 108 pending chen cobalt 76 paused lina delta 59 active hana harbor 66 paused
alice grove 108 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011929-p1
Identify and print the longest input line, retaining the first one in case of a tie.
{if(length($0)>length(best))best=$0}END{print best}
eli indigo 47 active alice amber 56 pending ivan birch 89 pending chen birch 76 ready lina cobalt 58 failed ivan indigo 109 failed ivan juniper 5 failed hana harbor 39 pending dina fable 51 active dina juniper 15 failed
alice amber 56 pending
gus grove 86 active hana cobalt 109 paused dina delta 67 pending ivan grove 65 failed kim juniper 98 pending hana harbor 15 active alice grove 108 pending chen cobalt 76 paused lina delta 59 active hana harbor 66 paused
alice grove 108 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011929
qwen/qwen3.7-plus
awkweave-0011930
Print every 4th line starting at line 1 (then line 5, and so on).
NR%4==1
hana 53 dina 82 kim 78 lina 103 bruno 116 bruno 101 alice 67
hana 53 bruno 116
gus 69 chen 73 lina 105 dina 105 dina 26 hana 116
gus 69 dina 26
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011930-p1
Output lines 1, 5, 9, and so on, selecting every 4th line starting from the first.
NR%4==1
hana 53 dina 82 kim 78 lina 103 bruno 116 bruno 101 alice 67
hana 53 bruno 116
gus 69 chen 73 lina 105 dina 105 dina 26 hana 116
gus 69 dina 26
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011930
qwen/qwen3.7-plus
awkweave-0011931
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
delta indigo 79 alpha harbor 112 beta birch 73 beta cobalt 30 beta ember 48 beta cobalt 89 delta grove 19 gamma delta 109 alpha delta 45 beta grove 11
7
gamma delta 106 delta delta 61 gamma grove 98 alpha delta 119 delta fable 30 gamma birch 35
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011931-p1
Calculate the number of unique entries in the second column and display only that total.
{if(!seen[$2]++)n++}END{print n+0}
delta indigo 79 alpha harbor 112 beta birch 73 beta cobalt 30 beta ember 48 beta cobalt 89 delta grove 19 gamma delta 109 alpha delta 45 beta grove 11
7
gamma delta 106 delta delta 61 gamma grove 98 alpha delta 119 delta fable 30 gamma birch 35
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011931
qwen/qwen3.7-plus
awkweave-0011932
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}
chen 6 0 dina 26 6 alice 3 14 jules 19 29 bruno 29 17 farah 16 10 hana 10 15 farah 19 24 jules 27 5
dina 4.33 alice 0.21 jules 0.66 bruno 1.71 farah 1.60 hana 0.67 farah 0.79 jules 5.40
chen 4 0 jules 6 12 jules 3 15 gus 19 15 farah 10 29 alice 13 25 ivan 12 1 farah 12 7
jules 0.50 jules 0.20 gus 1.27 farah 0.34 alice 0.52 ivan 12.00 farah 1.71
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011932-p1
For each row where the third column is not zero, print the first column and the result of dividing the second column by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
chen 6 0 dina 26 6 alice 3 14 jules 19 29 bruno 29 17 farah 16 10 hana 10 15 farah 19 24 jules 27 5
dina 4.33 alice 0.21 jules 0.66 bruno 1.71 farah 1.60 hana 0.67 farah 0.79 jules 5.40
chen 4 0 jules 6 12 jules 3 15 gus 19 15 farah 10 29 alice 13 25 ivan 12 1 farah 12 7
jules 0.50 jules 0.20 gus 1.27 farah 0.34 alice 0.52 ivan 12.00 farah 1.71
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011932
qwen/qwen3.7-plus
awkweave-0011933
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
jules ember 7 dina grove 19 kim indigo 23 jules birch 10 farah ember 20 bruno cobalt 3 alice delta 2
kim indigo 23 farah ember 20 dina grove 19
chen amber 12 farah fable 21 hana amber 21 farah harbor 23 farah juniper 3 jules amber 18 eli fable 9 dina delta 22 alice indigo 1
farah harbor 23 dina delta 22 farah fable 21
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011933-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]}
jules ember 7 dina grove 19 kim indigo 23 jules birch 10 farah ember 20 bruno cobalt 3 alice delta 2
kim indigo 23 farah ember 20 dina grove 19
chen amber 12 farah fable 21 hana amber 21 farah harbor 23 farah juniper 3 jules amber 18 eli fable 9 dina delta 22 alice indigo 1
farah harbor 23 dina delta 22 farah fable 21
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011933
qwen/qwen3.7-plus
awkweave-0011934
For each line, output fields 4 and 1, in that order.
{print $4, $1}
ready alice dina active pending ivan hana closed closed hana chen failed pending lina farah paused active kim bruno active active bruno eli closed
active ready closed pending failed closed paused pending active active closed active
paused bruno farah ready ready chen gus closed paused chen farah active ready gus ivan active paused gus bruno ready closed lina alice active ready hana dina active paused eli chen active
ready paused closed ready active paused active ready ready paused active closed active ready active paused
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011934-p1
Output the fourth field followed by the first field for every line.
{print $4, $1}
ready alice dina active pending ivan hana closed closed hana chen failed pending lina farah paused active kim bruno active active bruno eli closed
active ready closed pending failed closed paused pending active active closed active
paused bruno farah ready ready chen gus closed paused chen farah active ready gus ivan active paused gus bruno ready closed lina alice active ready hana dina active paused eli chen active
ready paused closed ready active paused active ready ready paused active closed active ready active paused
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011934
qwen/qwen3.7-plus
awkweave-0011935
Print the last field of every input line.
{print $NF}
48 38 96 82 115 69 80 111 14 70 42 109 81 60 57 85 99 94 40 58 13 49 7 111 81 75 54
96 69 14 109 57 94 13 111 54
76 109 5 38 97 4 48 89 19 52 115 50 6 111 91 44 69 62 5 83 106 55 34 15 17 112 37
5 4 19 50 91 62 106 15 37
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011935-p1
Print the final field from each line of input.
{print $NF}
48 38 96 82 115 69 80 111 14 70 42 109 81 60 57 85 99 94 40 58 13 49 7 111 81 75 54
96 69 14 109 57 94 13 111 54
76 109 5 38 97 4 48 89 19 52 115 50 6 111 91 44 69 62 5 83 106 55 34 15 17 112 37
5 4 19 50 91 62 106 15 37
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011935
qwen/qwen3.7-plus
awkweave-0011936
Print the complete records where column 2 is at least 31.
$2 >= 31
ember 26 cobalt ember 86 grove amber 108 fable ember 40 indigo delta 78 indigo fable 32 delta cobalt 99 amber cobalt 28 birch
ember 86 grove amber 108 fable ember 40 indigo delta 78 indigo fable 32 delta cobalt 99 amber
delta 39 delta juniper 46 ember fable 87 amber juniper 104 juniper cobalt 95 cobalt indigo 43 ember ember 27 harbor grove 89 cobalt delta 101 cobalt
delta 39 delta juniper 46 ember fable 87 amber juniper 104 juniper cobalt 95 cobalt indigo 43 ember grove 89 cobalt delta 101 cobalt
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011936-p1
Output full records where the value in the second column is 31 or greater.
$2 >= 31
ember 26 cobalt ember 86 grove amber 108 fable ember 40 indigo delta 78 indigo fable 32 delta cobalt 99 amber cobalt 28 birch
ember 86 grove amber 108 fable ember 40 indigo delta 78 indigo fable 32 delta cobalt 99 amber
delta 39 delta juniper 46 ember fable 87 amber juniper 104 juniper cobalt 95 cobalt indigo 43 ember ember 27 harbor grove 89 cobalt delta 101 cobalt
delta 39 delta juniper 46 ember fable 87 amber juniper 104 juniper cobalt 95 cobalt indigo 43 ember grove 89 cobalt delta 101 cobalt
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011936
qwen/qwen3.7-plus
awkweave-0011937
Show whole lines whose 3rd field is between 7 and 18, inclusive.
$3 >= 7 && $3 <= 18
active active 9 farah ready closed 2 alice paused failed 11 bruno pending failed 7 bruno paused closed 8 farah pending failed 1 jules paused closed 10 bruno pending pending 9 dina closed failed 23 hana
active active 9 farah paused failed 11 bruno pending failed 7 bruno paused closed 8 farah paused closed 10 bruno pending pending 9 dina
closed failed 23 lina paused paused 10 hana ready active 9 alice pending ready 13 chen closed failed 3 bruno active failed 10 hana failed ready 21 dina closed pending 11 ivan ready pending 21 eli
paused paused 10 hana ready active 9 alice pending ready 13 chen active failed 10 hana closed pending 11 ivan
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011937-p1
Display entire lines where the third field falls within the inclusive range of 7 to 18.
$3 >= 7 && $3 <= 18
active active 9 farah ready closed 2 alice paused failed 11 bruno pending failed 7 bruno paused closed 8 farah pending failed 1 jules paused closed 10 bruno pending pending 9 dina closed failed 23 hana
active active 9 farah paused failed 11 bruno pending failed 7 bruno paused closed 8 farah paused closed 10 bruno pending pending 9 dina
closed failed 23 lina paused paused 10 hana ready active 9 alice pending ready 13 chen closed failed 3 bruno active failed 10 hana failed ready 21 dina closed pending 11 ivan ready pending 21 eli
paused paused 10 hana ready active 9 alice pending ready 13 chen active failed 10 hana closed pending 11 ivan
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011937
qwen/qwen3.7-plus
awkweave-0011938
Print column 1 only for rows where column 4 is exactly ready.
$4 == "ready"{print $1}
eli 89 ember pending farah 109 ember pending hana 116 harbor active lina 23 indigo closed kim 58 birch ready hana 16 indigo active
kim
hana 31 harbor failed lina 74 amber paused lina 44 grove closed eli 70 ember failed lina 6 grove ready dina 109 cobalt failed hana 77 indigo active ivan 52 amber active
lina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011938-p1
Print only the first column for rows where the fourth column matches the text 'ready' exactly.
$4 == "ready"{print $1}
eli 89 ember pending farah 109 ember pending hana 116 harbor active lina 23 indigo closed kim 58 birch ready hana 16 indigo active
kim
hana 31 harbor failed lina 74 amber paused lina 44 grove closed eli 70 ember failed lina 6 grove ready dina 109 cobalt failed hana 77 indigo active ivan 52 amber active
lina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011938
qwen/qwen3.7-plus
awkweave-0011939
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
WARN 119 fable WARN 84 juniper ERROR 1 delta INFO 62 juniper DEBUG 92 ember DEBUG 12 grove WARN 87 amber DEBUG 99 delta DEBUG 19 grove
ERROR 1 delta
ERROR 91 amber DEBUG 105 birch ERROR 9 juniper INFO 21 cobalt INFO 104 harbor WARN 119 juniper INFO 120 fable
ERROR 91 amber ERROR 9 juniper
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011939-p1
Output all fields from lines where the first field starts with the string 'ERROR'.
$1 ~ /^ERROR/
WARN 119 fable WARN 84 juniper ERROR 1 delta INFO 62 juniper DEBUG 92 ember DEBUG 12 grove WARN 87 amber DEBUG 99 delta DEBUG 19 grove
ERROR 1 delta
ERROR 91 amber DEBUG 105 birch ERROR 9 juniper INFO 21 cobalt INFO 104 harbor WARN 119 juniper INFO 120 fable
ERROR 91 amber ERROR 9 juniper
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011939
qwen/qwen3.7-plus
awkweave-0011940
Print every line except those containing the exact text fable.
$0 !~ /fable/
amber 114 paused fable 34 pending indigo 86 paused cobalt 101 pending fable 99 closed fable 34 active delta 55 ready birch 105 failed fable 36 failed cobalt 73 ready fable 999 active
amber 114 paused indigo 86 paused cobalt 101 pending delta 55 ready birch 105 failed cobalt 73 ready
cobalt 117 pending indigo 62 pending grove 33 ready ember 117 closed birch 25 active cobalt 81 closed birch 33 active amber 56 closed fable 999 active
cobalt 117 pending indigo 62 pending grove 33 ready ember 117 closed birch 25 active cobalt 81 closed birch 33 active amber 56 closed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null