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-0045502-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]]}
delta ember 3 alpha cobalt 27 gamma indigo 73 gamma indigo 70 delta fable 42 alpha cobalt 29 gamma birch 12 beta birch 36 delta juniper 87 beta birch 67
delta 3 alpha 2 gamma 3 beta 2
alpha grove 99 alpha ember 34 delta harbor 63 beta delta 59 beta indigo 60 beta amber 20 alpha indigo 95
alpha 3 beta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045502
qwen/qwen3.7-plus
awkweave-0045503
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 note state score r001 jules 18 ready r002 jules 7 closed r003 hana 30 failed r004 bruno 17 ready r005 farah 22 paused r006 dina 18 ready
18 7 30 17 22 18
region note state score r001 farah 24 failed r002 bruno 8 closed r003 jules 8 pending r004 ivan 24 ready r005 hana 14 active r006 bruno 27 pending
24 8 8 24 14 27
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045503-p1
Treating the first line as a header, output the contents of the state column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
region note state score r001 jules 18 ready r002 jules 7 closed r003 hana 30 failed r004 bruno 17 ready r005 farah 22 paused r006 dina 18 ready
18 7 30 17 22 18
region note state score r001 farah 24 failed r002 bruno 8 closed r003 jules 8 pending r004 ivan 24 ready r005 hana 14 active r006 bruno 27 pending
24 8 8 24 14 27
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045503
qwen/qwen3.7-plus
awkweave-0045504
The first row is a header. Print display_name for data rows whose score is greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 eli 2 closed r002 ivan 8 pending r003 lina 17 ready r004 alice 27 closed r005 dina 13 active r006 jules 30 active
lina alice jules
record_id display_name score state r001 alice 1 failed r002 farah 29 paused r003 chen 8 pending r004 eli 4 closed r005 chen 6 closed r006 kim 7 ready r007 ivan 14 active r008 hana 30 closed
farah hana
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045504-p1
Ignoring the header row, print the display_name field for any record where the score exceeds 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 eli 2 closed r002 ivan 8 pending r003 lina 17 ready r004 alice 27 closed r005 dina 13 active r006 jules 30 active
lina alice jules
record_id display_name score state r001 alice 1 failed r002 farah 29 paused r003 chen 8 pending r004 eli 4 closed r005 chen 6 closed r006 kim 7 ready r007 ivan 14 active r008 hana 30 closed
farah hana
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045504
qwen/qwen3.7-plus
awkweave-0045505
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
chen 24 active eli 21 failed dina 15 failed kim 29 pending bruno 22 active hana 12 paused lina 29 closed lina 20 paused
chen eli dina kim bruno hana lina lina
jules 9 failed jules 28 failed chen 23 active eli 11 ready alice 26 ready ivan 9 closed dina 12 ready ivan 12 paused
jules jules chen eli alice ivan dina ivan
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045505-p1
Given tab-separated input, extract and print the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
chen 24 active eli 21 failed dina 15 failed kim 29 pending bruno 22 active hana 12 paused lina 29 closed lina 20 paused
chen eli dina kim bruno hana lina lina
jules 9 failed jules 28 failed chen 23 active eli 11 ready alice 26 ready ivan 9 closed dina 12 ready ivan 12 paused
jules jules chen eli alice ivan dina ivan
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045505
qwen/qwen3.7-plus
awkweave-0045506
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 9.
BEGIN{FS=OFS=","}$2>9{print $1}
farah,21,failed hana,8,failed eli,28,failed kim,10,failed kim,24,active farah,15,paused lina,2,active chen,5,failed
farah eli kim kim farah
eli,2,failed jules,18,failed ivan,12,ready alice,7,ready kim,2,paused chen,26,paused lina,18,ready ivan,29,paused ivan,8,ready farah,14,ready
jules ivan chen lina ivan farah
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045506-p1
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 9.
BEGIN{FS=OFS=","}$2>9{print $1}
farah,21,failed hana,8,failed eli,28,failed kim,10,failed kim,24,active farah,15,paused lina,2,active chen,5,failed
farah eli kim kim farah
eli,2,failed jules,18,failed ivan,12,ready alice,7,ready kim,2,paused chen,26,paused lina,18,ready ivan,29,paused ivan,8,ready farah,14,ready
jules ivan chen lina ivan farah
csv_filter
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0045506
qwen/qwen3.7-plus
awkweave-0045507
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
ivan delta 18 gus fable 70 lina cobalt 84 eli indigo 48 jules grove 96 ivan amber 112 hana birch 118 alice amber 74 kim grove 13 alice grove 26
ivan delta 18 gus fable 70 lina cobalt 84 eli indigo 48 jules grove 96 ivan amber 112 hana birch 118 alice amber 74 kim grove 13 alice grove 26
kim grove 69 gus ember 6 lina delta 82 gus birch 61 ivan grove 50 alice ember 60
kim grove 69 gus ember 6 lina delta 82 gus birch 61 ivan grove 50 alice ember 60
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045507-p1
Remove leading and trailing whitespace, then replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
ivan delta 18 gus fable 70 lina cobalt 84 eli indigo 48 jules grove 96 ivan amber 112 hana birch 118 alice amber 74 kim grove 13 alice grove 26
ivan delta 18 gus fable 70 lina cobalt 84 eli indigo 48 jules grove 96 ivan amber 112 hana birch 118 alice amber 74 kim grove 13 alice grove 26
kim grove 69 gus ember 6 lina delta 82 gus birch 61 ivan grove 50 alice ember 60
kim grove 69 gus ember 6 lina delta 82 gus birch 61 ivan grove 50 alice ember 60
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045507
qwen/qwen3.7-plus
awkweave-0045508
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
kim ember 80 paused gus delta 5 ready hana birch 115 ready kim indigo 109 pending eli ember 2 pending bruno juniper 111 failed dina juniper 114 active farah birch 18 paused
bruno juniper 111 failed
lina cobalt 5 closed jules delta 35 active jules cobalt 103 pending eli ember 1 active gus ember 61 failed gus ember 84 active gus harbor 79 paused
jules cobalt 103 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045508-p1
Identify and display the longest line in the input; if multiple lines share the maximum length, select the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
kim ember 80 paused gus delta 5 ready hana birch 115 ready kim indigo 109 pending eli ember 2 pending bruno juniper 111 failed dina juniper 114 active farah birch 18 paused
bruno juniper 111 failed
lina cobalt 5 closed jules delta 35 active jules cobalt 103 pending eli ember 1 active gus ember 61 failed gus ember 84 active gus harbor 79 paused
jules cobalt 103 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045508
qwen/qwen3.7-plus
awkweave-0045509
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
dina 103 farah 113 eli 31 farah 15 ivan 120 kim 101
farah 113 ivan 120
eli 29 eli 59 bruno 1 chen 93 chen 94 hana 106 bruno 78
eli 59 chen 94
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045509-p1
Output every third line beginning with line 2 (i.e., lines 2, 5, 8, ...).
NR%3==2
dina 103 farah 113 eli 31 farah 15 ivan 120 kim 101
farah 113 ivan 120
eli 29 eli 59 bruno 1 chen 93 chen 94 hana 106 bruno 78
eli 59 chen 94
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045509
qwen/qwen3.7-plus
awkweave-0045510
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
delta amber 51 delta grove 34 beta ember 84 alpha ember 119 alpha harbor 8 beta birch 81 gamma delta 36 alpha birch 71 beta grove 28
6
delta cobalt 108 alpha amber 81 gamma fable 119 alpha amber 33 beta birch 64 delta amber 30 delta ember 118 alpha amber 53
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045510-p1
Calculate and print the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
delta amber 51 delta grove 34 beta ember 84 alpha ember 119 alpha harbor 8 beta birch 81 gamma delta 36 alpha birch 71 beta grove 28
6
delta cobalt 108 alpha amber 81 gamma fable 119 alpha amber 33 beta birch 64 delta amber 30 delta ember 118 alpha amber 53
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045510
qwen/qwen3.7-plus
awkweave-0045511
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 24 0 ivan 30 4 alice 24 18 gus 15 13 alice 8 9 chen 3 26 farah 2 30 gus 16 7 chen 19 21
ivan 7.50 alice 1.33 gus 1.15 alice 0.89 chen 0.12 farah 0.07 gus 2.29 chen 0.90
farah 29 0 gus 7 29 kim 6 10 hana 7 7 chen 4 9 ivan 28 20 gus 20 4 ivan 20 22 eli 24 23 dina 28 28
gus 0.24 kim 0.60 hana 1.00 chen 0.44 ivan 1.40 gus 5.00 ivan 0.91 eli 1.04 dina 1.00
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045511-p1
For each record, output the first column and the result of dividing the second column by the third column formatted to two decimal places, omitting any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
chen 24 0 ivan 30 4 alice 24 18 gus 15 13 alice 8 9 chen 3 26 farah 2 30 gus 16 7 chen 19 21
ivan 7.50 alice 1.33 gus 1.15 alice 0.89 chen 0.12 farah 0.07 gus 2.29 chen 0.90
farah 29 0 gus 7 29 kim 6 10 hana 7 7 chen 4 9 ivan 28 20 gus 20 4 ivan 20 22 eli 24 23 dina 28 28
gus 0.24 kim 0.60 hana 1.00 chen 0.44 ivan 1.40 gus 5.00 ivan 0.91 eli 1.04 dina 1.00
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045511
qwen/qwen3.7-plus
awkweave-0045512
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]}
eli juniper 21 hana juniper 27 chen harbor 5 bruno grove 23 chen delta 16 farah juniper 27 jules indigo 20 lina delta 27
hana juniper 27 farah juniper 27 lina delta 27
dina ember 14 kim amber 26 ivan indigo 20 lina fable 7 lina indigo 15 alice delta 13
kim amber 26 ivan indigo 20 lina indigo 15
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045512-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]}
eli juniper 21 hana juniper 27 chen harbor 5 bruno grove 23 chen delta 16 farah juniper 27 jules indigo 20 lina delta 27
hana juniper 27 farah juniper 27 lina delta 27
dina ember 14 kim amber 26 ivan indigo 20 lina fable 7 lina indigo 15 alice delta 13
kim amber 26 ivan indigo 20 lina indigo 15
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045512
qwen/qwen3.7-plus
awkweave-0045513
Select the 3rd and 2nd fields in that order.
{print $3, $2}
amber ember 100 ivan kim delta amber 93 ivan jules birch cobalt 48 ivan chen grove ember 37 dina kim indigo ember 24 dina eli fable juniper 35 gus alice indigo grove 83 lina farah birch amber 98 kim gus fable indigo 15 hana dina ember juniper 70 farah alice
100 ember 93 amber 48 cobalt 37 ember 24 ember 35 juniper 83 grove 98 amber 15 indigo 70 juniper
birch juniper 50 ivan bruno harbor fable 76 eli jules ember indigo 65 alice kim grove fable 96 gus farah indigo fable 44 jules hana indigo birch 118 farah jules cobalt juniper 105 dina chen indigo fable 97 ivan gus fable grove 50 hana gus juniper ember 10 gus kim
50 juniper 76 fable 65 indigo 96 fable 44 fable 118 birch 105 juniper 97 fable 50 grove 10 ember
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045513-p1
Extract and print the third field followed by the second field.
{print $3, $2}
amber ember 100 ivan kim delta amber 93 ivan jules birch cobalt 48 ivan chen grove ember 37 dina kim indigo ember 24 dina eli fable juniper 35 gus alice indigo grove 83 lina farah birch amber 98 kim gus fable indigo 15 hana dina ember juniper 70 farah alice
100 ember 93 amber 48 cobalt 37 ember 24 ember 35 juniper 83 grove 98 amber 15 indigo 70 juniper
birch juniper 50 ivan bruno harbor fable 76 eli jules ember indigo 65 alice kim grove fable 96 gus farah indigo fable 44 jules hana indigo birch 118 farah jules cobalt juniper 105 dina chen indigo fable 97 ivan gus fable grove 50 hana gus juniper ember 10 gus kim
50 juniper 76 fable 65 indigo 96 fable 44 fable 118 birch 105 juniper 97 fable 50 grove 10 ember
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045513
qwen/qwen3.7-plus
awkweave-0045514
Print the last field of every input line.
{print $NF}
delta pending amber amber fable ready harbor amber ember paused cobalt harbor grove failed harbor grove ember ready juniper juniper fable ready grove grove harbor closed birch delta ember failed birch birch
amber amber harbor grove juniper grove delta birch
birch ready indigo fable cobalt pending indigo amber birch failed harbor ember ember paused birch fable fable closed fable birch amber pending grove delta indigo active indigo fable birch failed ember indigo delta pending fable cobalt
fable amber ember fable birch delta fable indigo cobalt
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045514-p1
Output the final field from every line of input.
{print $NF}
delta pending amber amber fable ready harbor amber ember paused cobalt harbor grove failed harbor grove ember ready juniper juniper fable ready grove grove harbor closed birch delta ember failed birch birch
amber amber harbor grove juniper grove delta birch
birch ready indigo fable cobalt pending indigo amber birch failed harbor ember ember paused birch fable fable closed fable birch amber pending grove delta indigo active indigo fable birch failed ember indigo delta pending fable cobalt
fable amber ember fable birch delta fable indigo cobalt
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045514
qwen/qwen3.7-plus
awkweave-0045515
Print the complete records where column 2 is greater than 65.
$2 > 65
grove 43 failed eli grove 105 pending hana delta 71 paused ivan delta 22 active jules fable 76 ready dina fable 78 active bruno amber 64 active lina ember 70 failed lina
grove 105 pending hana delta 71 paused ivan fable 76 ready dina fable 78 active bruno ember 70 failed lina
delta 62 pending eli indigo 61 ready ivan cobalt 96 paused dina indigo 44 closed gus amber 18 closed jules juniper 58 pending kim amber 118 paused alice
cobalt 96 paused dina amber 118 paused alice
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045515-p1
Print entire records where the value in the second column exceeds 65.
$2 > 65
grove 43 failed eli grove 105 pending hana delta 71 paused ivan delta 22 active jules fable 76 ready dina fable 78 active bruno amber 64 active lina ember 70 failed lina
grove 105 pending hana delta 71 paused ivan fable 76 ready dina fable 78 active bruno ember 70 failed lina
delta 62 pending eli indigo 61 ready ivan cobalt 96 paused dina indigo 44 closed gus amber 18 closed jules juniper 58 pending kim amber 118 paused alice
cobalt 96 paused dina amber 118 paused alice
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045515
qwen/qwen3.7-plus
awkweave-0045516
Show whole lines whose 1st field is between 11 and 24, inclusive.
$1 >= 11 && $1 <= 24
15 cobalt farah paused 10 birch eli closed 13 grove kim active 19 amber hana pending 24 grove kim failed 5 ember farah failed 16 delta farah failed 22 delta bruno pending 1 grove farah pending 4 delta chen failed
15 cobalt farah paused 13 grove kim active 19 amber hana pending 24 grove kim failed 16 delta farah failed 22 delta bruno pending
14 grove eli failed 20 grove chen failed 1 ember gus closed 8 amber farah ready 29 birch hana paused 7 ember dina paused 27 ember hana failed
14 grove eli failed 20 grove chen failed
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045516-p1
Display full lines where the first field falls within the inclusive range of 11 to 24.
$1 >= 11 && $1 <= 24
15 cobalt farah paused 10 birch eli closed 13 grove kim active 19 amber hana pending 24 grove kim failed 5 ember farah failed 16 delta farah failed 22 delta bruno pending 1 grove farah pending 4 delta chen failed
15 cobalt farah paused 13 grove kim active 19 amber hana pending 24 grove kim failed 16 delta farah failed 22 delta bruno pending
14 grove eli failed 20 grove chen failed 1 ember gus closed 8 amber farah ready 29 birch hana paused 7 ember dina paused 27 ember hana failed
14 grove eli failed 20 grove chen failed
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045516
qwen/qwen3.7-plus
awkweave-0045517
Print column 2 only for rows where column 4 is exactly closed.
$4 == "closed"{print $2}
indigo lina 103 closed cobalt gus 102 active cobalt alice 94 failed amber eli 59 ready indigo ivan 114 failed harbor alice 20 active harbor eli 8 active amber alice 23 closed amber eli 120 ready
lina alice
juniper bruno 32 closed juniper ivan 74 pending birch alice 11 failed birch lina 98 failed amber hana 105 closed juniper eli 11 pending indigo hana 31 ready juniper eli 98 closed amber gus 1 active harbor jules 91 ready
bruno hana eli
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045517-p1
Output only the second column for rows where the fourth column is exactly equal to 'closed'.
$4 == "closed"{print $2}
indigo lina 103 closed cobalt gus 102 active cobalt alice 94 failed amber eli 59 ready indigo ivan 114 failed harbor alice 20 active harbor eli 8 active amber alice 23 closed amber eli 120 ready
lina alice
juniper bruno 32 closed juniper ivan 74 pending birch alice 11 failed birch lina 98 failed amber hana 105 closed juniper eli 11 pending indigo hana 31 ready juniper eli 98 closed amber gus 1 active harbor jules 91 ready
bruno hana eli
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045517
qwen/qwen3.7-plus
awkweave-0045518
Print all fields from lines where field 3 begins with INFO.
$3 ~ /^INFO/
49 juniper WARN 17 cobalt INFO 110 juniper WARN 64 indigo ERROR 24 cobalt WARN 70 delta WARN 89 juniper ERROR 55 juniper INFO 57 ember INFO 0 juniper DEBUG
17 cobalt INFO 55 juniper INFO 57 ember INFO
111 amber ERROR 37 amber INFO 38 grove WARN 21 indigo DEBUG 22 fable WARN 45 harbor ERROR 24 birch INFO 61 juniper INFO 22 delta WARN
37 amber INFO 24 birch INFO 61 juniper INFO
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045518-p1
Output the complete lines where the third field starts with INFO.
$3 ~ /^INFO/
49 juniper WARN 17 cobalt INFO 110 juniper WARN 64 indigo ERROR 24 cobalt WARN 70 delta WARN 89 juniper ERROR 55 juniper INFO 57 ember INFO 0 juniper DEBUG
17 cobalt INFO 55 juniper INFO 57 ember INFO
111 amber ERROR 37 amber INFO 38 grove WARN 21 indigo DEBUG 22 fable WARN 45 harbor ERROR 24 birch INFO 61 juniper INFO 22 delta WARN
37 amber INFO 24 birch INFO 61 juniper INFO
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045518
qwen/qwen3.7-plus
awkweave-0045519
Print every line except those containing the exact text grove.
$0 !~ /grove/
indigo 73 paused delta 45 active cobalt 96 paused fable 29 closed harbor 116 paused grove 89 paused juniper 84 active birch 4 pending grove 999 active
indigo 73 paused delta 45 active cobalt 96 paused fable 29 closed harbor 116 paused juniper 84 active birch 4 pending
cobalt 116 active grove 33 pending ember 53 paused amber 61 failed grove 112 ready cobalt 105 failed ember 61 active ember 79 closed harbor 23 paused grove 999 active
cobalt 116 active ember 53 paused amber 61 failed cobalt 105 failed ember 61 active ember 79 closed harbor 23 paused
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045519-p1
Display all lines that do not contain the exact string grove.
$0 !~ /grove/
indigo 73 paused delta 45 active cobalt 96 paused fable 29 closed harbor 116 paused grove 89 paused juniper 84 active birch 4 pending grove 999 active
indigo 73 paused delta 45 active cobalt 96 paused fable 29 closed harbor 116 paused juniper 84 active birch 4 pending
cobalt 116 active grove 33 pending ember 53 paused amber 61 failed grove 112 ready cobalt 105 failed ember 61 active ember 79 closed harbor 23 paused grove 999 active
cobalt 116 active ember 53 paused amber 61 failed cobalt 105 failed ember 61 active ember 79 closed harbor 23 paused
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045519
qwen/qwen3.7-plus
awkweave-0045520
Print lines 4 through 5, including both endpoints.
NR >= 4 && NR <= 5
alice fable 3 eli fable 23 alice harbor 90 jules ember 69 dina birch 43 gus juniper 88
jules ember 69 dina birch 43
jules juniper 17 hana cobalt 106 bruno harbor 32 bruno indigo 73 bruno juniper 77 jules grove 14 dina cobalt 33 jules birch 68 alice juniper 63 eli birch 35
bruno indigo 73 bruno juniper 77
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045520-p1
Show lines 4 to 5, inclusive.
NR >= 4 && NR <= 5
alice fable 3 eli fable 23 alice harbor 90 jules ember 69 dina birch 43 gus juniper 88
jules ember 69 dina birch 43
jules juniper 17 hana cobalt 106 bruno harbor 32 bruno indigo 73 bruno juniper 77 jules grove 14 dina cobalt 33 jules birch 68 alice juniper 63 eli birch 35
bruno indigo 73 bruno juniper 77
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045520
qwen/qwen3.7-plus
awkweave-0045521
Output only the first 2 records.
NR <= 2
gus 23 juniper eli 66 fable gus 70 ember dina 20 grove bruno 71 grove dina 35 fable
gus 23 juniper eli 66 fable
jules 79 harbor ivan 49 birch lina 101 harbor farah 83 cobalt jules 53 harbor dina 42 indigo
jules 79 harbor ivan 49 birch
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045521-p1
Print only the first 2 records.
NR <= 2
gus 23 juniper eli 66 fable gus 70 ember dina 20 grove bruno 71 grove dina 35 fable
gus 23 juniper eli 66 fable
jules 79 harbor ivan 49 birch lina 101 harbor farah 83 cobalt jules 53 harbor dina 42 indigo
jules 79 harbor ivan 49 birch
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045521
qwen/qwen3.7-plus
awkweave-0045522
Skip the first line and print every remaining line unchanged.
NR > 1
jules 2 ember dina 96 amber farah 106 amber dina 93 amber bruno 108 indigo alice 62 amber gus 28 delta farah 107 harbor jules 10 ember lina 12 juniper
dina 96 amber farah 106 amber dina 93 amber bruno 108 indigo alice 62 amber gus 28 delta farah 107 harbor jules 10 ember lina 12 juniper
dina 38 ember chen 26 ember alice 5 juniper alice 84 fable dina 53 cobalt chen 39 fable lina 53 juniper bruno 28 amber farah 91 juniper
chen 26 ember alice 5 juniper alice 84 fable dina 53 cobalt chen 39 fable lina 53 juniper bruno 28 amber farah 91 juniper
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045522-p1
Omit the first line and output the rest as-is.
NR > 1
jules 2 ember dina 96 amber farah 106 amber dina 93 amber bruno 108 indigo alice 62 amber gus 28 delta farah 107 harbor jules 10 ember lina 12 juniper
dina 96 amber farah 106 amber dina 93 amber bruno 108 indigo alice 62 amber gus 28 delta farah 107 harbor jules 10 ember lina 12 juniper
dina 38 ember chen 26 ember alice 5 juniper alice 84 fable dina 53 cobalt chen 39 fable lina 53 juniper bruno 28 amber farah 91 juniper
chen 26 ember alice 5 juniper alice 84 fable dina 53 cobalt chen 39 fable lina 53 juniper bruno 28 amber farah 91 juniper
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045522
qwen/qwen3.7-plus
awkweave-0045523
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
bruno active 69 eli active 48 gus closed 84 hana paused 3 hana ready 73 hana active 33 jules closed 53
0
alice failed 116 ivan active 56 gus failed 53 jules pending 111 gus paused 18 jules pending 29 ivan failed 78 alice active 54 eli closed 5
3
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045523-p1
Count records with 'failed' in column 2; output 0 if none exist.
$2 == "failed"{n++}END{print n+0}
bruno active 69 eli active 48 gus closed 84 hana paused 3 hana ready 73 hana active 33 jules closed 53
0
alice failed 116 ivan active 56 gus failed 53 jules pending 111 gus paused 18 jules pending 29 ivan failed 78 alice active 54 eli closed 5
3
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045523
qwen/qwen3.7-plus
awkweave-0045524
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
grove 22 ivan ember 18 jules grove 9 ivan fable 10 hana indigo 19 gus delta 4 dina harbor 30 kim amber 13 bruno
125
harbor 21 alice fable 26 eli delta 21 alice amber 28 eli fable 1 bruno harbor 26 jules birch 24 lina
147
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045524-p1
Compute and print the sum of integer values in column 2.
{s+=$2}END{print s+0}
grove 22 ivan ember 18 jules grove 9 ivan fable 10 hana indigo 19 gus delta 4 dina harbor 30 kim amber 13 bruno
125
harbor 21 alice fable 26 eli delta 21 alice amber 28 eli fable 1 bruno harbor 26 jules birch 24 lina
147
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045524
qwen/qwen3.7-plus
awkweave-0045525
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
ivan amber 13 farah ember 18 jules amber 19 chen cobalt 4 ivan ember 25 farah indigo 30 dina fable 2 chen harbor 3 ivan cobalt 12 gus ember 24
15.00
kim delta 5 lina juniper 10 ivan ember 22 bruno fable 15 lina indigo 9 gus delta 24 farah cobalt 23 alice indigo 17
15.62
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045525-p1
Print the average of column 3, rounded to two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
ivan amber 13 farah ember 18 jules amber 19 chen cobalt 4 ivan ember 25 farah indigo 30 dina fable 2 chen harbor 3 ivan cobalt 12 gus ember 24
15.00
kim delta 5 lina juniper 10 ivan ember 22 bruno fable 15 lina indigo 9 gus delta 24 farah cobalt 23 alice indigo 17
15.62
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045525
qwen/qwen3.7-plus
awkweave-0045526
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
8 harbor gus 16 juniper jules 13 fable jules 1 fable hana 8 juniper ivan 22 amber lina 15 juniper hana
1
7 amber ivan 29 ember hana 21 grove eli 1 grove alice 9 ember kim 11 cobalt farah 12 amber eli
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045526-p1
Identify and print the minimum numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
8 harbor gus 16 juniper jules 13 fable jules 1 fable hana 8 juniper ivan 22 amber lina 15 juniper hana
1
7 amber ivan 29 ember hana 21 grove eli 1 grove alice 9 ember kim 11 cobalt farah 12 amber eli
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045526
qwen/qwen3.7-plus
awkweave-0045527
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
eli 25 birch ivan 14 indigo eli 28 amber hana 14 fable hana 8 grove bruno 18 grove lina 27 juniper alice 8 grove
28
gus 12 grove farah 22 harbor farah 12 juniper bruno 23 delta gus 29 juniper hana 17 grove
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045527-p1
Identify and print the maximum numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
eli 25 birch ivan 14 indigo eli 28 amber hana 14 fable hana 8 grove bruno 18 grove lina 27 juniper alice 8 grove
28
gus 12 grove farah 22 harbor farah 12 juniper bruno 23 delta gus 29 juniper hana 17 grove
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045527
qwen/qwen3.7-plus
awkweave-0045528
Count all input records and print the total.
END{print NR}
alice 92 ivan 47 gus 30 lina 52 eli 65 ivan 9
6
chen 83 chen 22 kim 64 kim 2 jules 57 hana 56 dina 51 bruno 97 kim 79 eli 76
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045528-p1
Count the total number of input records and print the result.
END{print NR}
alice 92 ivan 47 gus 30 lina 52 eli 65 ivan 9
6
chen 83 chen 22 kim 64 kim 2 jules 57 hana 56 dina 51 bruno 97 kim 79 eli 76
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045528
qwen/qwen3.7-plus
awkweave-0045529
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
dina grove 49 jules ember 118 jules ember 118 ivan birch 38 jules grove 103 dina birch 85 kim harbor 9
dina grove 49 jules ember 118 ivan birch 38 jules grove 103 dina birch 85 kim harbor 9
alice grove 9 gus amber 18 jules cobalt 63 kim amber 35 ivan cobalt 77 ivan cobalt 77 farah delta 75 bruno cobalt 43
alice grove 9 gus amber 18 jules cobalt 63 kim amber 35 ivan cobalt 77 farah delta 75 bruno cobalt 43
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045529-p1
Eliminate exact duplicate lines while keeping the first occurrence and maintaining original order.
!seen[$0]++
dina grove 49 jules ember 118 jules ember 118 ivan birch 38 jules grove 103 dina birch 85 kim harbor 9
dina grove 49 jules ember 118 ivan birch 38 jules grove 103 dina birch 85 kim harbor 9
alice grove 9 gus amber 18 jules cobalt 63 kim amber 35 ivan cobalt 77 ivan cobalt 77 farah delta 75 bruno cobalt 43
alice grove 9 gus amber 18 jules cobalt 63 kim amber 35 ivan cobalt 77 farah delta 75 bruno cobalt 43
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045529
qwen/qwen3.7-plus
awkweave-0045530
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
ivan fable 100 jules amber 117 eli delta 79 chen fable 61 dina birch 61 farah birch 97 lina amber 111 farah grove 113
ivan fable 100 jules amber 117 eli delta 79 chen fable 61 farah birch 97 lina amber 111 farah grove 113
kim grove 113 jules fable 58 bruno harbor 35 hana harbor 78 kim harbor 17 farah grove 45 bruno amber 95 lina harbor 23 farah harbor 3 kim cobalt 119
kim grove 113 jules fable 58 bruno harbor 35 hana harbor 78 kim harbor 17 farah grove 45 bruno amber 95 lina harbor 23 farah harbor 3 kim cobalt 119
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045530-p1
Retain only the first occurrence of each unique value in column 3, maintaining the original input sequence.
!seen[$3]++
ivan fable 100 jules amber 117 eli delta 79 chen fable 61 dina birch 61 farah birch 97 lina amber 111 farah grove 113
ivan fable 100 jules amber 117 eli delta 79 chen fable 61 farah birch 97 lina amber 111 farah grove 113
kim grove 113 jules fable 58 bruno harbor 35 hana harbor 78 kim harbor 17 farah grove 45 bruno amber 95 lina harbor 23 farah harbor 3 kim cobalt 119
kim grove 113 jules fable 58 bruno harbor 35 hana harbor 78 kim harbor 17 farah grove 45 bruno amber 95 lina harbor 23 farah harbor 3 kim cobalt 119
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045530
qwen/qwen3.7-plus
awkweave-0045531
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
gus 30 juniper eli 13 cobalt jules 5 birch gus 16 harbor hana 19 harbor alice 14 juniper farah 7 delta
gus 30 eli 43 jules 48 gus 64 hana 83 alice 97 farah 104
alice 19 birch bruno 27 juniper kim 6 amber alice 21 harbor alice 7 cobalt chen 17 juniper lina 13 cobalt eli 24 indigo chen 26 birch hana 6 indigo
alice 19 bruno 46 kim 52 alice 73 alice 80 chen 97 lina 110 eli 134 chen 160 hana 166
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045531-p1
Output column 1 alongside the cumulative total of column 2 for every record, using a space as the delimiter.
{s+=$2;print $1,s}
gus 30 juniper eli 13 cobalt jules 5 birch gus 16 harbor hana 19 harbor alice 14 juniper farah 7 delta
gus 30 eli 43 jules 48 gus 64 hana 83 alice 97 farah 104
alice 19 birch bruno 27 juniper kim 6 amber alice 21 harbor alice 7 cobalt chen 17 juniper lina 13 cobalt eli 24 indigo chen 26 birch hana 6 indigo
alice 19 bruno 46 kim 52 alice 73 alice 80 chen 97 lina 110 eli 134 chen 160 hana 166
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045531
qwen/qwen3.7-plus
awkweave-0045532
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
hana 23 22 cobalt alice 2 30 cobalt alice 28 3 amber chen 5 16 delta bruno 12 28 harbor ivan 10 11 grove kim 11 10 birch hana 29 21 ember hana 2 13 amber hana 3 19 delta
hana 45 alice 32 alice 31 chen 21 bruno 40 ivan 21 kim 21 hana 50 hana 15 hana 22
chen 30 28 delta gus 19 7 birch eli 9 6 fable bruno 14 6 birch farah 1 11 fable kim 10 1 amber hana 30 8 grove
chen 58 gus 26 eli 15 bruno 20 farah 12 kim 11 hana 38
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045532-p1
For each row, display field 1 followed by the combined total of fields 2 and 3.
{print $1,$2+$3}
hana 23 22 cobalt alice 2 30 cobalt alice 28 3 amber chen 5 16 delta bruno 12 28 harbor ivan 10 11 grove kim 11 10 birch hana 29 21 ember hana 2 13 amber hana 3 19 delta
hana 45 alice 32 alice 31 chen 21 bruno 40 ivan 21 kim 21 hana 50 hana 15 hana 22
chen 30 28 delta gus 19 7 birch eli 9 6 fable bruno 14 6 birch farah 1 11 fable kim 10 1 amber hana 30 8 grove
chen 58 gus 26 eli 15 bruno 20 farah 12 kim 11 hana 38
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045532
qwen/qwen3.7-plus
awkweave-0045533
Print column 1 and pass when column 2 is at least 26; otherwise print fail.
{print $1,($2>=26?"pass":"fail")}
farah 12 gus 2 kim 3 jules 22 alice 2 chen 16 hana 20 chen 28 eli 22
farah fail gus fail kim fail jules fail alice fail chen fail hana fail chen pass eli fail
kim 11 farah 8 chen 23 alice 15 hana 5 bruno 9
kim fail farah fail chen fail alice fail hana fail bruno fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045533-p1
Output column 1 with the label 'pass' if column 2 is 26 or greater, otherwise output 'fail'.
{print $1,($2>=26?"pass":"fail")}
farah 12 gus 2 kim 3 jules 22 alice 2 chen 16 hana 20 chen 28 eli 22
farah fail gus fail kim fail jules fail alice fail chen fail hana fail chen pass eli fail
kim 11 farah 8 chen 23 alice 15 hana 5 bruno 9
kim fail farah fail chen fail alice fail hana fail bruno fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045533
qwen/qwen3.7-plus
awkweave-0045534
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
bruno juniper 42 lina juniper 12 lina fable 56 ivan juniper 75 hana indigo 80 lina harbor 27 hana juniper 102 alice grove 7 bruno birch 115 gus ember 101
BRUNO LINA LINA IVAN HANA LINA HANA ALICE BRUNO GUS
kim grove 41 lina indigo 35 lina indigo 110 dina juniper 42 kim fable 112 farah harbor 22 eli cobalt 90 eli ember 62
KIM LINA LINA DINA KIM FARAH ELI ELI
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045534-p1
Transform column 1 to uppercase letters and print exclusively that column.
{print toupper($1)}
bruno juniper 42 lina juniper 12 lina fable 56 ivan juniper 75 hana indigo 80 lina harbor 27 hana juniper 102 alice grove 7 bruno birch 115 gus ember 101
BRUNO LINA LINA IVAN HANA LINA HANA ALICE BRUNO GUS
kim grove 41 lina indigo 35 lina indigo 110 dina juniper 42 kim fable 112 farah harbor 22 eli cobalt 90 eli ember 62
KIM LINA LINA DINA KIM FARAH ELI ELI
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045534
qwen/qwen3.7-plus
awkweave-0045535
From column 1, print 4 characters starting at character 3.
{print substr($1,3,4)}
fable 104 grove 113 delta 88 ember 109 birch 18 juniper 75
ble ove lta ber rch nipe
birch 73 delta 102 juniper 67 harbor 44 indigo 18 cobalt 29 amber 14
rch lta nipe rbor digo balt ber
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045535-p1
From column 1, print 4 characters starting at character 3.
{print substr($1,3,4)}
fable 104 grove 113 delta 88 ember 109 birch 18 juniper 75
ble ove lta ber rch nipe
birch 73 delta 102 juniper 67 harbor 44 indigo 18 cobalt 29 amber 14
rch lta nipe rbor digo balt ber
substring
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0045535
qwen/qwen3.7-plus
awkweave-0045536
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
grove_fable 57 grove_harbor 19 juniper_fable 40 juniper_birch 39 cobalt_grove 43 juniper_birch 95 harbor_indigo 1 cobalt_harbor 69
grove fable grove harbor juniper fable juniper birch cobalt grove juniper birch harbor indigo cobalt harbor
delta_cobalt 73 ember_indigo 104 cobalt_birch 110 indigo_fable 15 juniper_harbor 99 fable_indigo 27 harbor_juniper 30 delta_ember 26
delta cobalt ember indigo cobalt birch indigo fable juniper harbor fable indigo harbor juniper delta ember
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045536-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
grove_fable 57 grove_harbor 19 juniper_fable 40 juniper_birch 39 cobalt_grove 43 juniper_birch 95 harbor_indigo 1 cobalt_harbor 69
grove fable grove harbor juniper fable juniper birch cobalt grove juniper birch harbor indigo cobalt harbor
delta_cobalt 73 ember_indigo 104 cobalt_birch 110 indigo_fable 15 juniper_harbor 99 fable_indigo 27 harbor_juniper 30 delta_ember 26
delta cobalt ember indigo cobalt birch indigo fable juniper harbor fable indigo harbor juniper delta ember
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045536
qwen/qwen3.7-plus
awkweave-0045537
Reverse the order of fields on every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
alice birch 60 paused gus birch 109 paused bruno indigo 0 paused hana delta 40 paused bruno grove 32 paused ivan birch 20 failed
paused 60 birch alice paused 109 birch gus paused 0 indigo bruno paused 40 delta hana paused 32 grove bruno failed 20 birch ivan
ivan ember 104 ready ivan juniper 115 failed ivan grove 5 pending lina delta 61 pending chen cobalt 104 failed ivan fable 16 pending ivan amber 81 paused lina indigo 3 active
ready 104 ember ivan failed 115 juniper ivan pending 5 grove ivan pending 61 delta lina failed 104 cobalt chen pending 16 fable ivan paused 81 amber ivan active 3 indigo lina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045537-p1
Reverse the sequence of fields for every line and print the complete set of fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
alice birch 60 paused gus birch 109 paused bruno indigo 0 paused hana delta 40 paused bruno grove 32 paused ivan birch 20 failed
paused 60 birch alice paused 109 birch gus paused 0 indigo bruno paused 40 delta hana paused 32 grove bruno failed 20 birch ivan
ivan ember 104 ready ivan juniper 115 failed ivan grove 5 pending lina delta 61 pending chen cobalt 104 failed ivan fable 16 pending ivan amber 81 paused lina indigo 3 active
ready 104 ember ivan failed 115 juniper ivan pending 5 grove ivan pending 61 delta lina failed 104 cobalt chen pending 16 fable ivan paused 81 amber ivan active 3 indigo lina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045537
qwen/qwen3.7-plus
awkweave-0045538
Print the number of whitespace-separated fields on each line.
{print NF}
eli grove 27 pending dina harbor 115 failed chen cobalt 2 ready ivan juniper 71 closed kim fable 13 closed jules cobalt 20 paused jules fable 115 failed lina birch 35 paused kim harbor 76 closed
4 4 4 4 4 4 4 4 4
alice indigo 60 active hana indigo 86 ready bruno delta 74 paused dina delta 50 closed kim ember 78 pending gus grove 86 paused bruno ember 56 active ivan cobalt 92 active farah amber 52 ready alice birch 118 pending
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045538-p1
Display the count of whitespace-delimited fields present on each line.
{print NF}
eli grove 27 pending dina harbor 115 failed chen cobalt 2 ready ivan juniper 71 closed kim fable 13 closed jules cobalt 20 paused jules fable 115 failed lina birch 35 paused kim harbor 76 closed
4 4 4 4 4 4 4 4 4
alice indigo 60 active hana indigo 86 ready bruno delta 74 paused dina delta 50 closed kim ember 78 pending gus grove 86 paused bruno ember 56 active ivan cobalt 92 active farah amber 52 ready alice birch 118 pending
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045538
qwen/qwen3.7-plus
awkweave-0045539
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 gamma 56 hana delta 98 farah gamma 101 bruno delta 95 gus delta 33 eli delta 100 ivan delta 112
gamma 2 delta 5
eli gamma 74 gus beta 44 lina delta 109 farah beta 11 kim gamma 79 hana gamma 18 lina alpha 2 lina alpha 115 farah delta 87 alice gamma 119
gamma 4 beta 2 delta 2 alpha 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045539-p1
Tally the number of records for each distinct value in column 2, listing each 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]]}
farah gamma 56 hana delta 98 farah gamma 101 bruno delta 95 gus delta 33 eli delta 100 ivan delta 112
gamma 2 delta 5
eli gamma 74 gus beta 44 lina delta 109 farah beta 11 kim gamma 79 hana gamma 18 lina alpha 2 lina alpha 115 farah delta 87 alice gamma 119
gamma 4 beta 2 delta 2 alpha 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045539
qwen/qwen3.7-plus
awkweave-0045540
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]]}
jules gamma 10 dina alpha 11 dina delta 13 eli gamma 16 jules gamma 11 jules delta 5 lina delta 30 chen alpha 5 alice beta 19
gamma 37 alpha 16 delta 48 beta 19
gus delta 30 alice alpha 3 lina alpha 4 bruno delta 14 dina gamma 6 chen gamma 28 eli gamma 3 alice gamma 14 bruno alpha 22
delta 44 alpha 29 gamma 51
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045540-p1
Calculate the sum of column 3 for each group defined by column 2, presenting the results in the 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]]}
jules gamma 10 dina alpha 11 dina delta 13 eli gamma 16 jules gamma 11 jules delta 5 lina delta 30 chen alpha 5 alice beta 19
gamma 37 alpha 16 delta 48 beta 19
gus delta 30 alice alpha 3 lina alpha 4 bruno delta 14 dina gamma 6 chen gamma 28 eli gamma 3 alice gamma 14 bruno alpha 22
delta 44 alpha 29 gamma 51
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045540
qwen/qwen3.7-plus
awkweave-0045541
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 103 gamma juniper 84 delta indigo 30 gamma indigo 4 alpha juniper 114 delta harbor 50
delta 3 gamma 2
beta amber 107 beta indigo 48 beta fable 100 beta cobalt 63 gamma harbor 6 delta harbor 75 beta harbor 73
beta 5
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045541-p1
List each duplicate value from column 1 along with its frequency, ordered by when the value first appeared.
{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 103 gamma juniper 84 delta indigo 30 gamma indigo 4 alpha juniper 114 delta harbor 50
delta 3 gamma 2
beta amber 107 beta indigo 48 beta fable 100 beta cobalt 63 gamma harbor 6 delta harbor 75 beta harbor 73
beta 5
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045541
qwen/qwen3.7-plus
awkweave-0045542
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"]}
score state note record_id r001 chen 10 closed r002 eli 4 failed r003 dina 25 ready r004 lina 23 closed r005 ivan 12 failed r006 farah 9 paused r007 chen 27 closed r008 bruno 6 paused
chen eli dina lina ivan farah chen bruno
score state note record_id r001 ivan 7 closed r002 hana 19 failed r003 chen 21 paused r004 ivan 23 ready r005 gus 2 failed r006 hana 5 closed r007 alice 1 pending r008 eli 1 active r009 eli 10 closed
ivan hana chen ivan gus hana alice eli eli
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045542-p1
Skip the header row and output the state column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
score state note record_id r001 chen 10 closed r002 eli 4 failed r003 dina 25 ready r004 lina 23 closed r005 ivan 12 failed r006 farah 9 paused r007 chen 27 closed r008 bruno 6 paused
chen eli dina lina ivan farah chen bruno
score state note record_id r001 ivan 7 closed r002 hana 19 failed r003 chen 21 paused r004 ivan 23 ready r005 gus 2 failed r006 hana 5 closed r007 alice 1 pending r008 eli 1 active r009 eli 10 closed
ivan hana chen ivan gus hana alice eli eli
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045542
qwen/qwen3.7-plus
awkweave-0045543
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 kim 26 failed r002 bruno 16 ready r003 alice 16 failed r004 kim 3 paused r005 eli 5 paused r006 farah 6 paused r007 gus 6 ready r008 gus 29 pending r009 dina 19 failed r010 gus 28 active
kim gus gus
record_id display_name score state r001 chen 7 failed r002 farah 9 paused r003 ivan 22 failed r004 chen 8 failed r005 kim 26 active r006 hana 19 ready
ivan kim
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045543-p1
Ignoring the header, output the display_name field for records where the score is strictly greater than 19.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>19{print $h["display_name"]}
record_id display_name score state r001 kim 26 failed r002 bruno 16 ready r003 alice 16 failed r004 kim 3 paused r005 eli 5 paused r006 farah 6 paused r007 gus 6 ready r008 gus 29 pending r009 dina 19 failed r010 gus 28 active
kim gus gus
record_id display_name score state r001 chen 7 failed r002 farah 9 paused r003 ivan 22 failed r004 chen 8 failed r005 kim 26 active r006 hana 19 ready
ivan kim
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045543
qwen/qwen3.7-plus
awkweave-0045544
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
eli 13 failed gus 3 active jules 26 pending hana 29 paused chen 17 pending gus 17 failed lina 22 closed
eli gus jules hana chen gus lina
kim 16 active kim 14 closed hana 11 ready eli 27 active hana 1 failed lina 14 pending eli 23 active farah 7 paused chen 4 active farah 18 paused
kim kim hana eli hana lina eli farah chen farah
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045544-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
eli 13 failed gus 3 active jules 26 pending hana 29 paused chen 17 pending gus 17 failed lina 22 closed
eli gus jules hana chen gus lina
kim 16 active kim 14 closed hana 11 ready eli 27 active hana 1 failed lina 14 pending eli 23 active farah 7 paused chen 4 active farah 18 paused
kim kim hana eli hana lina eli farah chen farah
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0045544
qwen/qwen3.7-plus
awkweave-0045545
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}
alice,19,failed kim,14,paused chen,29,pending ivan,25,failed hana,6,active gus,28,closed farah,27,active eli,6,failed farah,24,paused bruno,17,closed
alice chen ivan gus farah farah bruno
gus,21,paused bruno,4,pending hana,6,pending alice,3,pending jules,29,ready gus,30,ready bruno,24,paused dina,9,ready hana,19,closed
gus jules gus bruno hana
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045545-p1
For simple comma-separated data without quoted commas, print the first column if the second column is greater than 14.
BEGIN{FS=OFS=","}$2>14{print $1}
alice,19,failed kim,14,paused chen,29,pending ivan,25,failed hana,6,active gus,28,closed farah,27,active eli,6,failed farah,24,paused bruno,17,closed
alice chen ivan gus farah farah bruno
gus,21,paused bruno,4,pending hana,6,pending alice,3,pending jules,29,ready gus,30,ready bruno,24,paused dina,9,ready hana,19,closed
gus jules gus bruno hana
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045545
qwen/qwen3.7-plus
awkweave-0045546
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
gus cobalt 118 lina amber 24 ivan indigo 30 alice harbor 111 lina grove 101 farah ember 109
gus cobalt 118 lina amber 24 ivan indigo 30 alice harbor 111 lina grove 101 farah ember 109
bruno grove 18 jules grove 112 bruno birch 32 bruno fable 81 hana delta 35 bruno grove 91 dina fable 5 eli harbor 10 jules birch 94
bruno grove 18 jules grove 112 bruno birch 32 bruno fable 81 hana delta 35 bruno grove 91 dina fable 5 eli harbor 10 jules birch 94
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045546-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
gus cobalt 118 lina amber 24 ivan indigo 30 alice harbor 111 lina grove 101 farah ember 109
gus cobalt 118 lina amber 24 ivan indigo 30 alice harbor 111 lina grove 101 farah ember 109
bruno grove 18 jules grove 112 bruno birch 32 bruno fable 81 hana delta 35 bruno grove 91 dina fable 5 eli harbor 10 jules birch 94
bruno grove 18 jules grove 112 bruno birch 32 bruno fable 81 hana delta 35 bruno grove 91 dina fable 5 eli harbor 10 jules birch 94
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045546
qwen/qwen3.7-plus
awkweave-0045547
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
jules grove 27 closed lina harbor 86 ready gus amber 110 closed kim grove 72 paused hana harbor 16 failed kim delta 72 failed alice ember 114 active chen ember 44 paused ivan birch 3 closed alice cobalt 0 closed
alice ember 114 active
alice cobalt 104 active ivan cobalt 36 ready dina ember 110 ready bruno birch 59 failed bruno delta 22 pending eli juniper 35 closed jules harbor 43 closed dina delta 64 pending gus harbor 90 closed
alice cobalt 104 active
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045547-p1
Output the longest line from the input; in case of a tie in length, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
jules grove 27 closed lina harbor 86 ready gus amber 110 closed kim grove 72 paused hana harbor 16 failed kim delta 72 failed alice ember 114 active chen ember 44 paused ivan birch 3 closed alice cobalt 0 closed
alice ember 114 active
alice cobalt 104 active ivan cobalt 36 ready dina ember 110 ready bruno birch 59 failed bruno delta 22 pending eli juniper 35 closed jules harbor 43 closed dina delta 64 pending gus harbor 90 closed
alice cobalt 104 active
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045547
qwen/qwen3.7-plus
awkweave-0045548
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
farah 51 kim 75 lina 48 jules 109 chen 68 hana 112 bruno 111
farah 51 lina 48 chen 68 bruno 111
eli 41 kim 33 kim 97 eli 47 farah 46 alice 102 bruno 29 hana 9 chen 44
eli 41 kim 97 farah 46 bruno 29 chen 44
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045548-p1
Print lines 1, 3, 5, and so on (every second line starting from the first).
NR%2==1
farah 51 kim 75 lina 48 jules 109 chen 68 hana 112 bruno 111
farah 51 lina 48 chen 68 bruno 111
eli 41 kim 33 kim 97 eli 47 farah 46 alice 102 bruno 29 hana 9 chen 44
eli 41 kim 97 farah 46 bruno 29 chen 44
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045548
qwen/qwen3.7-plus
awkweave-0045549
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
alpha fable 14 beta indigo 72 gamma harbor 76 delta juniper 114 beta harbor 95 delta delta 80
4
alpha cobalt 78 gamma delta 48 alpha indigo 29 gamma grove 81 alpha juniper 108 delta delta 116 alpha amber 67
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045549-p1
Calculate the number of unique values in the first column and output only that count.
{if(!seen[$1]++)n++}END{print n+0}
alpha fable 14 beta indigo 72 gamma harbor 76 delta juniper 114 beta harbor 95 delta delta 80
4
alpha cobalt 78 gamma delta 48 alpha indigo 29 gamma grove 81 alpha juniper 108 delta delta 116 alpha amber 67
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045549
qwen/qwen3.7-plus
awkweave-0045550
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
hana 13 0 kim 10 10 dina 1 8 hana 3 2 gus 16 23 alice 6 8
kim 1.00 dina 0.12 hana 1.50 gus 0.70 alice 0.75
kim 30 0 ivan 27 8 ivan 30 27 jules 17 9 gus 3 26 lina 30 22
ivan 3.38 ivan 1.11 jules 1.89 gus 0.12 lina 1.36
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045550-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}
hana 13 0 kim 10 10 dina 1 8 hana 3 2 gus 16 23 alice 6 8
kim 1.00 dina 0.12 hana 1.50 gus 0.70 alice 0.75
kim 30 0 ivan 27 8 ivan 30 27 jules 17 9 gus 3 26 lina 30 22
ivan 3.38 ivan 1.11 jules 1.89 gus 0.12 lina 1.36
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045550
qwen/qwen3.7-plus
awkweave-0045551
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 juniper 7 kim grove 20 bruno grove 20 ivan delta 8 jules ember 17 ivan delta 11 jules juniper 26 jules birch 30
jules birch 30 jules juniper 26 kim grove 20
chen fable 16 ivan cobalt 25 hana grove 2 ivan cobalt 8 alice grove 25 gus indigo 23 alice harbor 23 farah delta 4
ivan cobalt 25 alice grove 25 gus indigo 23
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045551-p1
Output the three records with the highest numeric values in column 3, sorted in descending order; maintain 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 juniper 7 kim grove 20 bruno grove 20 ivan delta 8 jules ember 17 ivan delta 11 jules juniper 26 jules birch 30
jules birch 30 jules juniper 26 kim grove 20
chen fable 16 ivan cobalt 25 hana grove 2 ivan cobalt 8 alice grove 25 gus indigo 23 alice harbor 23 farah delta 4
ivan cobalt 25 alice grove 25 gus indigo 23
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045551
qwen/qwen3.7-plus
awkweave-0045552
Select the 5th and 4th fields in that order.
{print $5, $4}
active pending delta juniper 117 ready pending delta delta 117 ready pending fable grove 68 active closed delta birch 71 closed active indigo grove 47 pending ready amber ember 31 active paused fable indigo 83 active pending harbor amber 64
117 juniper 117 delta 68 grove 71 birch 47 grove 31 ember 83 indigo 64 amber
active ready amber birch 82 pending closed grove juniper 70 closed active juniper cobalt 56 paused closed juniper ember 10 paused active harbor delta 89 paused failed harbor fable 73 ready paused juniper delta 10
82 birch 70 juniper 56 cobalt 10 ember 89 delta 73 fable 10 delta
project_fields
1
train
original-grammar
CC-BY-4.0
null
null