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-0025611-p1
Calculate the sum of the third column for each group defined by the second column, presenting 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]]}
bruno alpha 4 kim gamma 10 jules beta 30 farah gamma 17 alice delta 29 gus beta 14
alpha 4 gamma 27 beta 44 delta 29
farah beta 14 hana alpha 10 kim alpha 18 alice alpha 26 hana delta 30 dina alpha 12 alice gamma 18 alice gamma 4 kim alpha 25
beta 14 alpha 91 delta 30 gamma 22
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025611
qwen/qwen3.7-plus
awkweave-0025612
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma grove 34 alpha amber 63 gamma cobalt 9 beta birch 14 beta harbor 93 gamma indigo 83 beta juniper 98 gamma cobalt 83
gamma 4 beta 3
gamma amber 66 delta indigo 108 gamma amber 108 beta juniper 88 beta fable 94 beta juniper 83 delta ember 79 alpha grove 55
gamma 2 delta 2 beta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025612-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]]}
gamma grove 34 alpha amber 63 gamma cobalt 9 beta birch 14 beta harbor 93 gamma indigo 83 beta juniper 98 gamma cobalt 83
gamma 4 beta 3
gamma amber 66 delta indigo 108 gamma amber 108 beta juniper 88 beta fable 94 beta juniper 83 delta ember 79 alpha grove 55
gamma 2 delta 2 beta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025612
qwen/qwen3.7-plus
awkweave-0025613
The first row is a header. Print the region column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
note region record_id score r001 hana 14 pending r002 kim 14 failed r003 gus 16 pending r004 gus 24 closed r005 alice 6 failed r006 gus 6 paused r007 gus 10 active
hana kim gus gus alice gus gus
note region record_id score r001 chen 10 ready r002 dina 4 closed r003 kim 26 paused r004 farah 19 closed r005 eli 27 paused r006 bruno 19 paused r007 ivan 23 paused
chen dina kim farah eli bruno ivan
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025613-p1
Skip the header row and output the region field for all remaining records.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
note region record_id score r001 hana 14 pending r002 kim 14 failed r003 gus 16 pending r004 gus 24 closed r005 alice 6 failed r006 gus 6 paused r007 gus 10 active
hana kim gus gus alice gus gus
note region record_id score r001 chen 10 ready r002 dina 4 closed r003 kim 26 paused r004 farah 19 closed r005 eli 27 paused r006 bruno 19 paused r007 ivan 23 paused
chen dina kim farah eli bruno ivan
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025613
qwen/qwen3.7-plus
awkweave-0025614
The first row is a header. Print display_name for data rows whose score is greater than 11.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>11{print $h["display_name"]}
record_id display_name score state r001 eli 5 pending r002 lina 8 closed r003 eli 8 closed r004 bruno 27 ready r005 bruno 29 pending r006 eli 25 active r007 eli 19 paused r008 dina 9 pending r009 alice 7 failed
bruno bruno eli eli
record_id display_name score state r001 chen 14 failed r002 alice 18 ready r003 eli 8 failed r004 eli 11 pending r005 kim 26 failed r006 gus 18 ready r007 gus 22 failed r008 ivan 13 paused
chen alice kim gus gus ivan
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025614-p1
Ignoring the header, display the display_name for any row where the score is strictly greater than 11.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>11{print $h["display_name"]}
record_id display_name score state r001 eli 5 pending r002 lina 8 closed r003 eli 8 closed r004 bruno 27 ready r005 bruno 29 pending r006 eli 25 active r007 eli 19 paused r008 dina 9 pending r009 alice 7 failed
bruno bruno eli eli
record_id display_name score state r001 chen 14 failed r002 alice 18 ready r003 eli 8 failed r004 eli 11 pending r005 kim 26 failed r006 gus 18 ready r007 gus 22 failed r008 ivan 13 paused
chen alice kim gus gus ivan
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025614
qwen/qwen3.7-plus
awkweave-0025615
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
dina 18 active eli 19 closed dina 14 paused chen 11 pending alice 16 closed jules 8 pending gus 8 failed
18 19 14 11 16 8 8
gus 4 paused gus 7 active gus 20 ready gus 13 paused hana 18 active eli 23 ready kim 30 pending
4 7 20 13 18 23 30
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025615-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
dina 18 active eli 19 closed dina 14 paused chen 11 pending alice 16 closed jules 8 pending gus 8 failed
18 19 14 11 16 8 8
gus 4 paused gus 7 active gus 20 ready gus 13 paused hana 18 active eli 23 ready kim 30 pending
4 7 20 13 18 23 30
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0025615
qwen/qwen3.7-plus
awkweave-0025616
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 11.
BEGIN{FS=OFS=","}$2>11{print $1}
farah,26,active alice,29,failed jules,11,ready ivan,9,pending dina,28,failed kim,7,pending alice,16,ready
farah alice dina alice
eli,5,failed eli,20,active bruno,6,ready dina,24,closed lina,3,pending hana,18,closed bruno,26,paused bruno,22,pending eli,11,closed
eli dina hana bruno bruno
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025616-p1
For simple CSV data without quoted commas, output the first column only if the second column is greater than 11.
BEGIN{FS=OFS=","}$2>11{print $1}
farah,26,active alice,29,failed jules,11,ready ivan,9,pending dina,28,failed kim,7,pending alice,16,ready
farah alice dina alice
eli,5,failed eli,20,active bruno,6,ready dina,24,closed lina,3,pending hana,18,closed bruno,26,paused bruno,22,pending eli,11,closed
eli dina hana bruno bruno
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025616
qwen/qwen3.7-plus
awkweave-0025617
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
hana cobalt 49 alice birch 55 hana indigo 29 alice delta 59 bruno indigo 83 alice indigo 54 lina amber 3
hana cobalt 49 alice birch 55 hana indigo 29 alice delta 59 bruno indigo 83 alice indigo 54 lina amber 3
gus birch 0 bruno delta 93 farah juniper 106 bruno grove 93 eli grove 116 chen cobalt 67 jules juniper 94 jules grove 74
gus birch 0 bruno delta 93 farah juniper 106 bruno grove 93 eli grove 116 chen cobalt 67 jules juniper 94 jules grove 74
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025617-p1
Remove leading and trailing spaces from each line and replace sequences of internal whitespace with a single space.
{$1=$1;print}
hana cobalt 49 alice birch 55 hana indigo 29 alice delta 59 bruno indigo 83 alice indigo 54 lina amber 3
hana cobalt 49 alice birch 55 hana indigo 29 alice delta 59 bruno indigo 83 alice indigo 54 lina amber 3
gus birch 0 bruno delta 93 farah juniper 106 bruno grove 93 eli grove 116 chen cobalt 67 jules juniper 94 jules grove 74
gus birch 0 bruno delta 93 farah juniper 106 bruno grove 93 eli grove 116 chen cobalt 67 jules juniper 94 jules grove 74
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025617
qwen/qwen3.7-plus
awkweave-0025618
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
dina juniper 42 pending kim indigo 82 closed lina cobalt 81 pending gus grove 7 pending kim ember 6 failed jules indigo 67 ready jules indigo 61 failed
dina juniper 42 pending
alice ember 80 pending eli fable 86 ready farah harbor 37 active jules indigo 46 pending eli delta 43 pending alice amber 21 failed dina birch 88 closed lina delta 21 paused kim indigo 106 pending chen harbor 4 ready
jules indigo 46 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025618-p1
Output the longest line from the input; if multiple lines share the maximum length, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
dina juniper 42 pending kim indigo 82 closed lina cobalt 81 pending gus grove 7 pending kim ember 6 failed jules indigo 67 ready jules indigo 61 failed
dina juniper 42 pending
alice ember 80 pending eli fable 86 ready farah harbor 37 active jules indigo 46 pending eli delta 43 pending alice amber 21 failed dina birch 88 closed lina delta 21 paused kim indigo 106 pending chen harbor 4 ready
jules indigo 46 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025618
qwen/qwen3.7-plus
awkweave-0025619
Print every 4th line starting at line 3 (then line 7, and so on).
NR%4==3
jules 27 kim 86 chen 12 alice 68 chen 4 jules 43
chen 12
kim 4 hana 35 alice 113 lina 47 farah 9 gus 57 eli 110 bruno 79 farah 24 hana 66
alice 113 eli 110
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025619-p1
Print lines 3, 7, 11, and so on, effectively selecting every fourth line starting from the third.
NR%4==3
jules 27 kim 86 chen 12 alice 68 chen 4 jules 43
chen 12
kim 4 hana 35 alice 113 lina 47 farah 9 gus 57 eli 110 bruno 79 farah 24 hana 66
alice 113 eli 110
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025619
qwen/qwen3.7-plus
awkweave-0025620
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta juniper 15 gamma indigo 22 gamma ember 15 alpha amber 51 alpha harbor 13 delta amber 12
5
alpha fable 14 delta birch 16 gamma birch 21 delta amber 76 beta ember 40 alpha delta 103 delta indigo 84
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025620-p1
Calculate and print only the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
beta juniper 15 gamma indigo 22 gamma ember 15 alpha amber 51 alpha harbor 13 delta amber 12
5
alpha fable 14 delta birch 16 gamma birch 21 delta amber 76 beta ember 40 alpha delta 103 delta indigo 84
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025620
qwen/qwen3.7-plus
awkweave-0025621
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}
ivan 19 0 gus 5 21 gus 6 24 lina 10 15 dina 7 16 farah 3 27 ivan 15 8 jules 23 10
gus 0.24 gus 0.25 lina 0.67 dina 0.44 farah 0.11 ivan 1.88 jules 2.30
ivan 25 0 gus 29 8 farah 30 30 ivan 1 7 hana 11 17 hana 29 12
gus 3.62 farah 1.00 ivan 0.14 hana 0.65 hana 2.42
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025621-p1
For each record, output the first column and the result of dividing the second column by the third (formatted to two decimal places), omitting rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 19 0 gus 5 21 gus 6 24 lina 10 15 dina 7 16 farah 3 27 ivan 15 8 jules 23 10
gus 0.24 gus 0.25 lina 0.67 dina 0.44 farah 0.11 ivan 1.88 jules 2.30
ivan 25 0 gus 29 8 farah 30 30 ivan 1 7 hana 11 17 hana 29 12
gus 3.62 farah 1.00 ivan 0.14 hana 0.65 hana 2.42
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025621
qwen/qwen3.7-plus
awkweave-0025622
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
chen juniper 17 jules grove 14 alice cobalt 9 bruno indigo 8 lina indigo 15 jules grove 24 eli indigo 14 gus grove 29 farah amber 29 alice fable 13
gus grove 29 farah amber 29 jules grove 24
ivan ember 20 hana harbor 3 bruno birch 10 jules juniper 7 bruno amber 20 ivan amber 7 farah amber 14
ivan ember 20 bruno amber 20 farah amber 14
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025622-p1
Output the top three records based on the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
chen juniper 17 jules grove 14 alice cobalt 9 bruno indigo 8 lina indigo 15 jules grove 24 eli indigo 14 gus grove 29 farah amber 29 alice fable 13
gus grove 29 farah amber 29 jules grove 24
ivan ember 20 hana harbor 3 bruno birch 10 jules juniper 7 bruno amber 20 ivan amber 7 farah amber 14
ivan ember 20 bruno amber 20 farah amber 14
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025622
qwen/qwen3.7-plus
awkweave-0025623
Select the 4th and 1st fields in that order.
{print $4, $1}
34 amber 74 lina failed eli 105 birch 22 chen active eli 73 birch 51 farah closed kim 112 indigo 47 ivan failed eli 110 juniper 112 eli failed lina 7 indigo 56 hana active farah
lina 34 chen 105 farah 73 ivan 112 eli 110 hana 7
33 ember 69 hana failed lina 5 grove 116 lina paused lina 87 fable 32 ivan pending farah 37 amber 5 eli closed alice 90 grove 1 lina paused chen 76 ember 35 bruno failed gus 31 ember 16 jules paused farah 73 amber 5 dina active farah 63 cobalt 86 farah ready gus
hana 33 lina 5 ivan 87 eli 37 lina 90 bruno 76 jules 31 dina 73 farah 63
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025623-p1
Extract and print the fourth field followed by the first field.
{print $4, $1}
34 amber 74 lina failed eli 105 birch 22 chen active eli 73 birch 51 farah closed kim 112 indigo 47 ivan failed eli 110 juniper 112 eli failed lina 7 indigo 56 hana active farah
lina 34 chen 105 farah 73 ivan 112 eli 110 hana 7
33 ember 69 hana failed lina 5 grove 116 lina paused lina 87 fable 32 ivan pending farah 37 amber 5 eli closed alice 90 grove 1 lina paused chen 76 ember 35 bruno failed gus 31 ember 16 jules paused farah 73 amber 5 dina active farah 63 cobalt 86 farah ready gus
hana 33 lina 5 ivan 87 eli 37 lina 90 bruno 76 jules 31 dina 73 farah 63
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025623
qwen/qwen3.7-plus
awkweave-0025624
Print the last field of every input line.
{print $NF}
ivan jules grove gus chen harbor gus gus delta alice bruno delta dina lina ember alice lina amber ivan kim ember
grove harbor delta delta ember amber ember
jules hana delta bruno lina ember jules dina amber ivan gus juniper eli gus harbor lina chen juniper gus lina ember ivan gus cobalt hana gus harbor lina bruno ember
delta ember amber juniper harbor juniper ember cobalt harbor ember
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025624-p1
Output the final field from each input line.
{print $NF}
ivan jules grove gus chen harbor gus gus delta alice bruno delta dina lina ember alice lina amber ivan kim ember
grove harbor delta delta ember amber ember
jules hana delta bruno lina ember jules dina amber ivan gus juniper eli gus harbor lina chen juniper gus lina ember ivan gus cobalt hana gus harbor lina bruno ember
delta ember amber juniper harbor juniper ember cobalt harbor ember
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025624
qwen/qwen3.7-plus
awkweave-0025625
Print the complete records where column 3 is at most 48.
$3 <= 48
closed jules 11 farah bruno active gus 67 gus ivan paused jules 70 ivan chen ready eli 38 alice bruno ready gus 71 chen dina pending dina 100 jules dina pending jules 17 farah jules
closed jules 11 farah bruno ready eli 38 alice bruno pending jules 17 farah jules
closed alice 94 gus alice active lina 115 ivan lina paused kim 53 kim ivan pending bruno 95 ivan farah failed farah 63 ivan jules paused alice 71 alice eli
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025625-p1
Display full records where the value in the third column is less than or equal to 48.
$3 <= 48
closed jules 11 farah bruno active gus 67 gus ivan paused jules 70 ivan chen ready eli 38 alice bruno ready gus 71 chen dina pending dina 100 jules dina pending jules 17 farah jules
closed jules 11 farah bruno ready eli 38 alice bruno pending jules 17 farah jules
closed alice 94 gus alice active lina 115 ivan lina paused kim 53 kim ivan pending bruno 95 ivan farah failed farah 63 ivan jules paused alice 71 alice eli
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025625
qwen/qwen3.7-plus
awkweave-0025626
Show whole lines whose 3rd field is between 7 and 28, inclusive.
$3 >= 7 && $3 <= 28
delta delta 29 delta grove grove 2 grove cobalt amber 11 birch birch juniper 10 cobalt indigo indigo 21 ember grove birch 22 juniper
cobalt amber 11 birch birch juniper 10 cobalt indigo indigo 21 ember grove birch 22 juniper
birch ember 7 juniper delta indigo 11 indigo indigo grove 14 fable juniper fable 29 delta harbor amber 7 grove birch fable 2 ember harbor ember 19 indigo
birch ember 7 juniper delta indigo 11 indigo indigo grove 14 fable harbor amber 7 grove harbor ember 19 indigo
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025626-p1
Show entire lines where the third field falls within the inclusive range of 7 to 28.
$3 >= 7 && $3 <= 28
delta delta 29 delta grove grove 2 grove cobalt amber 11 birch birch juniper 10 cobalt indigo indigo 21 ember grove birch 22 juniper
cobalt amber 11 birch birch juniper 10 cobalt indigo indigo 21 ember grove birch 22 juniper
birch ember 7 juniper delta indigo 11 indigo indigo grove 14 fable juniper fable 29 delta harbor amber 7 grove birch fable 2 ember harbor ember 19 indigo
birch ember 7 juniper delta indigo 11 indigo indigo grove 14 fable harbor amber 7 grove harbor ember 19 indigo
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025626
qwen/qwen3.7-plus
awkweave-0025627
Print column 2 only for rows where column 3 is exactly closed.
$3 == "closed"{print $2}
grove ivan closed 80 fable gus closed 32 delta bruno paused 119 birch jules failed 8 indigo ivan closed 103 delta bruno active 57 juniper chen pending 28
ivan gus ivan
grove eli pending 100 indigo dina active 43 harbor eli paused 82 juniper ivan active 35 indigo farah active 49 ember ivan closed 30 harbor alice active 77 harbor hana closed 48 grove jules closed 10 fable jules active 23
ivan hana jules
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025627-p1
Print only the second column for rows where the third column is exactly 'closed'.
$3 == "closed"{print $2}
grove ivan closed 80 fable gus closed 32 delta bruno paused 119 birch jules failed 8 indigo ivan closed 103 delta bruno active 57 juniper chen pending 28
ivan gus ivan
grove eli pending 100 indigo dina active 43 harbor eli paused 82 juniper ivan active 35 indigo farah active 49 ember ivan closed 30 harbor alice active 77 harbor hana closed 48 grove jules closed 10 fable jules active 23
ivan hana jules
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025627
qwen/qwen3.7-plus
awkweave-0025628
Print all fields from lines where field 2 begins with WARN.
$2 ~ /^WARN/
grove WARN 43 cobalt DEBUG 47 juniper WARN 7 grove DEBUG 74 fable WARN 44 ember INFO 34 fable ERROR 108 delta INFO 53 juniper WARN 21 delta INFO 23
grove WARN 43 juniper WARN 7 fable WARN 44 juniper WARN 21
cobalt DEBUG 32 harbor DEBUG 113 birch ERROR 33 harbor DEBUG 91 cobalt ERROR 5 indigo INFO 44
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025628-p1
Output all fields from lines where the second field starts with 'WARN'.
$2 ~ /^WARN/
grove WARN 43 cobalt DEBUG 47 juniper WARN 7 grove DEBUG 74 fable WARN 44 ember INFO 34 fable ERROR 108 delta INFO 53 juniper WARN 21 delta INFO 23
grove WARN 43 juniper WARN 7 fable WARN 44 juniper WARN 21
cobalt DEBUG 32 harbor DEBUG 113 birch ERROR 33 harbor DEBUG 91 cobalt ERROR 5 indigo INFO 44
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025628
qwen/qwen3.7-plus
awkweave-0025629
Print every line except those containing the exact text harbor.
$0 !~ /harbor/
indigo 67 ready harbor 94 paused indigo 71 paused amber 6 paused birch 82 failed cobalt 49 ready delta 65 closed grove 115 active harbor 27 ready amber 3 ready harbor 999 active
indigo 67 ready indigo 71 paused amber 6 paused birch 82 failed cobalt 49 ready delta 65 closed grove 115 active amber 3 ready
delta 107 failed amber 65 failed birch 109 ready harbor 40 pending birch 4 failed cobalt 119 paused delta 24 active fable 99 ready harbor 999 active
delta 107 failed amber 65 failed birch 109 ready birch 4 failed cobalt 119 paused delta 24 active fable 99 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025629-p1
Print every line that does not contain the exact string 'harbor'.
$0 !~ /harbor/
indigo 67 ready harbor 94 paused indigo 71 paused amber 6 paused birch 82 failed cobalt 49 ready delta 65 closed grove 115 active harbor 27 ready amber 3 ready harbor 999 active
indigo 67 ready indigo 71 paused amber 6 paused birch 82 failed cobalt 49 ready delta 65 closed grove 115 active amber 3 ready
delta 107 failed amber 65 failed birch 109 ready harbor 40 pending birch 4 failed cobalt 119 paused delta 24 active fable 99 ready harbor 999 active
delta 107 failed amber 65 failed birch 109 ready birch 4 failed cobalt 119 paused delta 24 active fable 99 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025629
qwen/qwen3.7-plus
awkweave-0025630
Print lines 4 through 5, including both endpoints.
NR >= 4 && NR <= 5
bruno ember 117 alice fable 80 gus harbor 21 dina juniper 86 eli cobalt 120 kim ember 45
dina juniper 86 eli cobalt 120
alice ember 17 dina grove 23 chen delta 66 dina harbor 81 gus juniper 64 hana fable 108 chen juniper 15 dina indigo 92
dina harbor 81 gus juniper 64
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025630-p1
Output lines 4 through 5, inclusive.
NR >= 4 && NR <= 5
bruno ember 117 alice fable 80 gus harbor 21 dina juniper 86 eli cobalt 120 kim ember 45
dina juniper 86 eli cobalt 120
alice ember 17 dina grove 23 chen delta 66 dina harbor 81 gus juniper 64 hana fable 108 chen juniper 15 dina indigo 92
dina harbor 81 gus juniper 64
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025630
qwen/qwen3.7-plus
awkweave-0025631
Output only the first 3 records.
NR <= 3
farah 30 birch bruno 9 fable hana 0 indigo kim 106 grove alice 33 birch lina 10 grove ivan 91 amber dina 110 fable chen 56 indigo alice 33 grove
farah 30 birch bruno 9 fable hana 0 indigo
eli 89 amber lina 95 indigo hana 92 juniper dina 64 delta gus 6 fable alice 57 harbor ivan 53 amber bruno 70 delta kim 57 juniper
eli 89 amber lina 95 indigo hana 92 juniper
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025631-p1
Display only the first 3 records.
NR <= 3
farah 30 birch bruno 9 fable hana 0 indigo kim 106 grove alice 33 birch lina 10 grove ivan 91 amber dina 110 fable chen 56 indigo alice 33 grove
farah 30 birch bruno 9 fable hana 0 indigo
eli 89 amber lina 95 indigo hana 92 juniper dina 64 delta gus 6 fable alice 57 harbor ivan 53 amber bruno 70 delta kim 57 juniper
eli 89 amber lina 95 indigo hana 92 juniper
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025631
qwen/qwen3.7-plus
awkweave-0025632
Skip the first line and print every remaining line unchanged.
NR > 1
kim 85 amber chen 52 grove alice 2 delta chen 23 fable lina 114 fable hana 87 ember chen 117 juniper
chen 52 grove alice 2 delta chen 23 fable lina 114 fable hana 87 ember chen 117 juniper
hana 63 juniper eli 57 indigo eli 51 indigo alice 109 delta farah 82 amber farah 78 cobalt chen 111 cobalt
eli 57 indigo eli 51 indigo alice 109 delta farah 82 amber farah 78 cobalt chen 111 cobalt
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025632-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
kim 85 amber chen 52 grove alice 2 delta chen 23 fable lina 114 fable hana 87 ember chen 117 juniper
chen 52 grove alice 2 delta chen 23 fable lina 114 fable hana 87 ember chen 117 juniper
hana 63 juniper eli 57 indigo eli 51 indigo alice 109 delta farah 82 amber farah 78 cobalt chen 111 cobalt
eli 57 indigo eli 51 indigo alice 109 delta farah 82 amber farah 78 cobalt chen 111 cobalt
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025632
qwen/qwen3.7-plus
awkweave-0025633
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
lina failed 79 eli closed 65 lina pending 17 chen paused 71 ivan ready 55 chen closed 115 alice active 88 gus pending 112 lina failed 52
2
kim failed 73 bruno paused 78 eli active 84 gus closed 40 farah paused 13 ivan ready 105 farah paused 58 chen paused 4 alice failed 8 kim closed 58
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025633-p1
Count the number of records with 'failed' in the second column; output 0 if the count is zero.
$2 == "failed"{n++}END{print n+0}
lina failed 79 eli closed 65 lina pending 17 chen paused 71 ivan ready 55 chen closed 115 alice active 88 gus pending 112 lina failed 52
2
kim failed 73 bruno paused 78 eli active 84 gus closed 40 farah paused 13 ivan ready 105 farah paused 58 chen paused 4 alice failed 8 kim closed 58
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025633
qwen/qwen3.7-plus
awkweave-0025634
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
gus delta 24 alice cobalt 16 kim cobalt 26 ivan ember 14 kim ember 23 alice harbor 18
121
ivan birch 7 gus ember 10 jules delta 24 chen amber 16 lina grove 12 alice cobalt 24 bruno fable 8
101
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025634-p1
Compute and print the total sum of integer values found in the third column.
{s+=$3}END{print s+0}
gus delta 24 alice cobalt 16 kim cobalt 26 ivan ember 14 kim ember 23 alice harbor 18
121
ivan birch 7 gus ember 10 jules delta 24 chen amber 16 lina grove 12 alice cobalt 24 bruno fable 8
101
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025634
qwen/qwen3.7-plus
awkweave-0025635
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
gus cobalt 29 dina juniper 20 kim indigo 21 dina amber 18 chen fable 6 dina ember 24 jules fable 17 jules delta 8
17.88
hana grove 17 dina harbor 21 hana delta 21 ivan juniper 22 dina fable 19 eli harbor 14 kim delta 23 ivan amber 4 lina fable 5 eli delta 19
16.50
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025635-p1
Print the average of the values in the third column, rounded to two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
gus cobalt 29 dina juniper 20 kim indigo 21 dina amber 18 chen fable 6 dina ember 24 jules fable 17 jules delta 8
17.88
hana grove 17 dina harbor 21 hana delta 21 ivan juniper 22 dina fable 19 eli harbor 14 kim delta 23 ivan amber 4 lina fable 5 eli delta 19
16.50
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025635
qwen/qwen3.7-plus
awkweave-0025636
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
14 grove chen 3 juniper lina 3 indigo dina 16 juniper dina 28 grove farah 8 delta farah 21 indigo alice 2 cobalt lina 17 birch lina
2
2 ember alice 26 harbor jules 10 juniper ivan 8 amber gus 4 indigo gus 25 juniper chen 15 harbor farah 4 birch bruno 19 ember farah 9 cobalt eli
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025636-p1
Identify and output the minimum number found in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
14 grove chen 3 juniper lina 3 indigo dina 16 juniper dina 28 grove farah 8 delta farah 21 indigo alice 2 cobalt lina 17 birch lina
2
2 ember alice 26 harbor jules 10 juniper ivan 8 amber gus 4 indigo gus 25 juniper chen 15 harbor farah 4 birch bruno 19 ember farah 9 cobalt eli
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025636
qwen/qwen3.7-plus
awkweave-0025637
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
27 amber ivan 19 indigo dina 6 harbor hana 20 amber kim 8 grove farah 20 amber hana 14 grove farah
27
30 cobalt dina 8 delta chen 25 fable hana 21 ember alice 1 fable dina 29 ember bruno 4 juniper alice 14 ember hana
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025637-p1
Identify and output the maximum number found in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
27 amber ivan 19 indigo dina 6 harbor hana 20 amber kim 8 grove farah 20 amber hana 14 grove farah
27
30 cobalt dina 8 delta chen 25 fable hana 21 ember alice 1 fable dina 29 ember bruno 4 juniper alice 14 ember hana
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025637
qwen/qwen3.7-plus
awkweave-0025638
Count all input records and print the total.
END{print NR}
kim 12 gus 55 jules 34 hana 105 bruno 39 bruno 115 kim 21 gus 53 lina 111
9
kim 110 dina 17 hana 35 farah 63 ivan 77 eli 35 farah 72 lina 52 ivan 116
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025638-p1
Calculate the total number of input records and display the count.
END{print NR}
kim 12 gus 55 jules 34 hana 105 bruno 39 bruno 115 kim 21 gus 53 lina 111
9
kim 110 dina 17 hana 35 farah 63 ivan 77 eli 35 farah 72 lina 52 ivan 116
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025638
qwen/qwen3.7-plus
awkweave-0025639
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
lina birch 109 alice cobalt 82 chen indigo 108 chen amber 106 gus grove 42 jules indigo 111 alice amber 71 gus amber 98 lina birch 109
lina birch 109 alice cobalt 82 chen indigo 108 chen amber 106 gus grove 42 jules indigo 111 alice amber 71 gus amber 98
gus indigo 5 gus indigo 5 eli birch 88 lina indigo 77 alice ember 21 kim ember 90 kim birch 109 bruno indigo 25 ivan birch 32
gus indigo 5 eli birch 88 lina indigo 77 alice ember 21 kim ember 90 kim birch 109 bruno indigo 25 ivan birch 32
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025639-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
lina birch 109 alice cobalt 82 chen indigo 108 chen amber 106 gus grove 42 jules indigo 111 alice amber 71 gus amber 98 lina birch 109
lina birch 109 alice cobalt 82 chen indigo 108 chen amber 106 gus grove 42 jules indigo 111 alice amber 71 gus amber 98
gus indigo 5 gus indigo 5 eli birch 88 lina indigo 77 alice ember 21 kim ember 90 kim birch 109 bruno indigo 25 ivan birch 32
gus indigo 5 eli birch 88 lina indigo 77 alice ember 21 kim ember 90 kim birch 109 bruno indigo 25 ivan birch 32
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025639
qwen/qwen3.7-plus
awkweave-0025640
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
ivan indigo 87 kim juniper 99 hana indigo 115 lina juniper 89 gus indigo 31 kim ember 23 alice birch 35 hana harbor 39 farah ember 29
ivan indigo 87 kim juniper 99 hana indigo 115 lina juniper 89 gus indigo 31 kim ember 23 alice birch 35 hana harbor 39 farah ember 29
chen ember 51 kim grove 72 chen indigo 76 kim indigo 103 hana grove 55 hana amber 79 alice harbor 57 jules delta 24 chen fable 30 alice birch 84
chen ember 51 kim grove 72 chen indigo 76 kim indigo 103 hana grove 55 hana amber 79 alice harbor 57 jules delta 24 chen fable 30 alice birch 84
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025640-p1
Retain only the initial line for every unique value in the third column, keeping the original input order.
!seen[$3]++
ivan indigo 87 kim juniper 99 hana indigo 115 lina juniper 89 gus indigo 31 kim ember 23 alice birch 35 hana harbor 39 farah ember 29
ivan indigo 87 kim juniper 99 hana indigo 115 lina juniper 89 gus indigo 31 kim ember 23 alice birch 35 hana harbor 39 farah ember 29
chen ember 51 kim grove 72 chen indigo 76 kim indigo 103 hana grove 55 hana amber 79 alice harbor 57 jules delta 24 chen fable 30 alice birch 84
chen ember 51 kim grove 72 chen indigo 76 kim indigo 103 hana grove 55 hana amber 79 alice harbor 57 jules delta 24 chen fable 30 alice birch 84
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025640
qwen/qwen3.7-plus
awkweave-0025641
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
farah 1 cobalt ivan 23 grove alice 18 indigo bruno 28 ember bruno 30 fable dina 1 cobalt gus 2 juniper
farah 1 ivan 24 alice 42 bruno 70 bruno 100 dina 101 gus 103
dina 6 juniper jules 2 grove alice 9 fable eli 14 ember gus 11 cobalt ivan 6 fable jules 5 grove chen 6 indigo
dina 6 jules 8 alice 17 eli 31 gus 42 ivan 48 jules 53 chen 59
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025641-p1
Output the first column alongside the cumulative sum of the second column for each record, using a space as the delimiter.
{s+=$2;print $1,s}
farah 1 cobalt ivan 23 grove alice 18 indigo bruno 28 ember bruno 30 fable dina 1 cobalt gus 2 juniper
farah 1 ivan 24 alice 42 bruno 70 bruno 100 dina 101 gus 103
dina 6 juniper jules 2 grove alice 9 fable eli 14 ember gus 11 cobalt ivan 6 fable jules 5 grove chen 6 indigo
dina 6 jules 8 alice 17 eli 31 gus 42 ivan 48 jules 53 chen 59
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025641
qwen/qwen3.7-plus
awkweave-0025642
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
gus 17 30 ember ivan 23 1 harbor gus 25 17 harbor lina 13 1 delta eli 26 2 juniper gus 21 9 fable farah 6 7 cobalt eli 27 12 harbor kim 10 15 harbor ivan 5 6 grove
gus 47 ivan 24 gus 42 lina 14 eli 28 gus 30 farah 13 eli 39 kim 25 ivan 11
gus 8 8 grove lina 11 12 cobalt eli 14 19 grove kim 1 20 amber dina 11 16 birch ivan 17 13 fable jules 24 25 delta lina 14 11 harbor
gus 16 lina 23 eli 33 kim 21 dina 27 ivan 30 jules 49 lina 25
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025642-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
gus 17 30 ember ivan 23 1 harbor gus 25 17 harbor lina 13 1 delta eli 26 2 juniper gus 21 9 fable farah 6 7 cobalt eli 27 12 harbor kim 10 15 harbor ivan 5 6 grove
gus 47 ivan 24 gus 42 lina 14 eli 28 gus 30 farah 13 eli 39 kim 25 ivan 11
gus 8 8 grove lina 11 12 cobalt eli 14 19 grove kim 1 20 amber dina 11 16 birch ivan 17 13 fable jules 24 25 delta lina 14 11 harbor
gus 16 lina 23 eli 33 kim 21 dina 27 ivan 30 jules 49 lina 25
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025642
qwen/qwen3.7-plus
awkweave-0025643
Print column 1 and pass when column 2 is at least 20; otherwise print fail.
{print $1,($2>=20?"pass":"fail")}
bruno 25 hana 21 dina 20 bruno 9 chen 3 lina 4 chen 8 farah 25
bruno pass hana pass dina pass bruno fail chen fail lina fail chen fail farah pass
hana 19 chen 12 lina 21 farah 18 chen 12 eli 22 kim 4 jules 4 alice 19
hana fail chen fail lina pass farah fail chen fail eli pass kim fail jules fail alice fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025643-p1
Display the first column and output 'pass' if the second column is 20 or greater; otherwise, output 'fail'.
{print $1,($2>=20?"pass":"fail")}
bruno 25 hana 21 dina 20 bruno 9 chen 3 lina 4 chen 8 farah 25
bruno pass hana pass dina pass bruno fail chen fail lina fail chen fail farah pass
hana 19 chen 12 lina 21 farah 18 chen 12 eli 22 kim 4 jules 4 alice 19
hana fail chen fail lina pass farah fail chen fail eli pass kim fail jules fail alice fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025643
qwen/qwen3.7-plus
awkweave-0025644
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
kim indigo 86 kim delta 102 eli juniper 51 gus juniper 113 kim fable 113 chen juniper 16 chen juniper 20 gus amber 112 bruno juniper 84 dina fable 96
KIM KIM ELI GUS KIM CHEN CHEN GUS BRUNO DINA
ivan ember 120 gus fable 3 farah amber 0 ivan fable 74 chen amber 61 chen ember 16 ivan delta 70 alice grove 44 ivan grove 10
IVAN GUS FARAH IVAN CHEN CHEN IVAN ALICE IVAN
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025644-p1
Transform the first column to uppercase letters and print only that column.
{print toupper($1)}
kim indigo 86 kim delta 102 eli juniper 51 gus juniper 113 kim fable 113 chen juniper 16 chen juniper 20 gus amber 112 bruno juniper 84 dina fable 96
KIM KIM ELI GUS KIM CHEN CHEN GUS BRUNO DINA
ivan ember 120 gus fable 3 farah amber 0 ivan fable 74 chen amber 61 chen ember 16 ivan delta 70 alice grove 44 ivan grove 10
IVAN GUS FARAH IVAN CHEN CHEN IVAN ALICE IVAN
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025644
qwen/qwen3.7-plus
awkweave-0025645
From column 1, print 4 characters starting at character 3.
{print substr($1,3,4)}
birch 117 ember 91 indigo 100 ember 4 cobalt 89 indigo 66
rch ber digo ber balt digo
harbor 70 cobalt 78 amber 82 indigo 96 juniper 25 harbor 28
rbor balt ber digo nipe rbor
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025645-p1
Extract and print a 4-character substring from the first column, beginning at the third character.
{print substr($1,3,4)}
birch 117 ember 91 indigo 100 ember 4 cobalt 89 indigo 66
rch ber digo ber balt digo
harbor 70 cobalt 78 amber 82 indigo 96 juniper 25 harbor 28
rbor balt ber digo nipe rbor
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025645
qwen/qwen3.7-plus
awkweave-0025646
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
ember_fable 41 juniper_cobalt 44 delta_delta 55 grove_amber 7 grove_delta 80 ember_delta 19
ember fable juniper cobalt delta delta grove amber grove delta ember delta
birch_indigo 50 ember_delta 113 cobalt_indigo 68 ember_birch 51 delta_birch 81 grove_harbor 81 indigo_grove 117 amber_indigo 26 birch_indigo 66
birch indigo ember delta cobalt indigo ember birch delta birch grove harbor indigo grove amber indigo birch indigo
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025646-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
ember_fable 41 juniper_cobalt 44 delta_delta 55 grove_amber 7 grove_delta 80 ember_delta 19
ember fable juniper cobalt delta delta grove amber grove delta ember delta
birch_indigo 50 ember_delta 113 cobalt_indigo 68 ember_birch 51 delta_birch 81 grove_harbor 81 indigo_grove 117 amber_indigo 26 birch_indigo 66
birch indigo ember delta cobalt indigo ember birch delta birch grove harbor indigo grove amber indigo birch indigo
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025646
qwen/qwen3.7-plus
awkweave-0025647
Reverse the order of fields on every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
lina grove 65 closed chen harbor 113 paused dina grove 79 ready ivan birch 103 paused dina fable 115 closed ivan fable 39 active chen harbor 57 paused chen ember 117 paused
closed 65 grove lina paused 113 harbor chen ready 79 grove dina paused 103 birch ivan closed 115 fable dina active 39 fable ivan paused 57 harbor chen paused 117 ember chen
chen grove 7 paused hana fable 84 pending dina cobalt 35 closed jules indigo 76 paused chen ember 73 failed dina fable 28 pending
paused 7 grove chen pending 84 fable hana closed 35 cobalt dina paused 76 indigo jules failed 73 ember chen pending 28 fable dina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025647-p1
Reverse the sequence of fields on each line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
lina grove 65 closed chen harbor 113 paused dina grove 79 ready ivan birch 103 paused dina fable 115 closed ivan fable 39 active chen harbor 57 paused chen ember 117 paused
closed 65 grove lina paused 113 harbor chen ready 79 grove dina paused 103 birch ivan closed 115 fable dina active 39 fable ivan paused 57 harbor chen paused 117 ember chen
chen grove 7 paused hana fable 84 pending dina cobalt 35 closed jules indigo 76 paused chen ember 73 failed dina fable 28 pending
paused 7 grove chen pending 84 fable hana closed 35 cobalt dina paused 76 indigo jules failed 73 ember chen pending 28 fable dina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025647
qwen/qwen3.7-plus
awkweave-0025648
Print the number of whitespace-separated fields on each line.
{print NF}
dina cobalt 105 pending alice cobalt 27 ready dina grove 71 paused chen harbor 107 pending gus cobalt 54 active lina juniper 71 ready eli indigo 9 pending
4 4 4 4 4 4 4
ivan delta 115 ready bruno cobalt 27 pending ivan indigo 104 closed chen ember 86 closed dina birch 116 closed jules indigo 109 ready gus juniper 44 pending hana delta 26 ready chen cobalt 34 paused
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025648-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
dina cobalt 105 pending alice cobalt 27 ready dina grove 71 paused chen harbor 107 pending gus cobalt 54 active lina juniper 71 ready eli indigo 9 pending
4 4 4 4 4 4 4
ivan delta 115 ready bruno cobalt 27 pending ivan indigo 104 closed chen ember 86 closed dina birch 116 closed jules indigo 109 ready gus juniper 44 pending hana delta 26 ready chen cobalt 34 paused
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025648
qwen/qwen3.7-plus
awkweave-0025649
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
chen gamma 77 gus delta 49 ivan alpha 82 bruno gamma 98 alice gamma 116 chen beta 107 dina gamma 70 alice gamma 43 ivan beta 10
gamma 5 delta 1 alpha 1 beta 2
bruno delta 112 hana alpha 109 hana delta 17 gus alpha 22 jules gamma 76 kim delta 52 bruno gamma 22 bruno beta 87 jules beta 114 dina delta 76
delta 4 alpha 2 gamma 2 beta 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025649-p1
Tally the occurrences of each unique value in the second column and display the value alongside its total, maintaining the order in which 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]]}
chen gamma 77 gus delta 49 ivan alpha 82 bruno gamma 98 alice gamma 116 chen beta 107 dina gamma 70 alice gamma 43 ivan beta 10
gamma 5 delta 1 alpha 1 beta 2
bruno delta 112 hana alpha 109 hana delta 17 gus alpha 22 jules gamma 76 kim delta 52 bruno gamma 22 bruno beta 87 jules beta 114 dina delta 76
delta 4 alpha 2 gamma 2 beta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025649
qwen/qwen3.7-plus
awkweave-0025650
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
eli beta 26 kim gamma 7 alice beta 9 dina beta 16 bruno beta 18 gus alpha 29 eli alpha 7 bruno delta 16 chen gamma 30
beta 69 gamma 37 alpha 36 delta 16
alice beta 3 lina gamma 24 kim alpha 5 lina beta 3 chen gamma 1 dina gamma 13 lina beta 19 jules alpha 17 chen alpha 1
beta 25 gamma 38 alpha 23
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025650-p1
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
eli beta 26 kim gamma 7 alice beta 9 dina beta 16 bruno beta 18 gus alpha 29 eli alpha 7 bruno delta 16 chen gamma 30
beta 69 gamma 37 alpha 36 delta 16
alice beta 3 lina gamma 24 kim alpha 5 lina beta 3 chen gamma 1 dina gamma 13 lina beta 19 jules alpha 17 chen alpha 1
beta 25 gamma 38 alpha 23
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0025650
qwen/qwen3.7-plus
awkweave-0025651
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma amber 76 delta grove 75 alpha fable 44 alpha grove 108 gamma ember 65 delta delta 66 alpha ember 117 delta fable 115
gamma 2 delta 3 alpha 3
beta birch 116 beta indigo 106 delta fable 23 gamma indigo 92 beta fable 34 gamma indigo 18 gamma cobalt 35 gamma juniper 51 gamma amber 45
beta 3 gamma 5
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025651-p1
List each duplicate entry from the first column along with its frequency, ordered by when it 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]]}
gamma amber 76 delta grove 75 alpha fable 44 alpha grove 108 gamma ember 65 delta delta 66 alpha ember 117 delta fable 115
gamma 2 delta 3 alpha 3
beta birch 116 beta indigo 106 delta fable 23 gamma indigo 92 beta fable 34 gamma indigo 18 gamma cobalt 35 gamma juniper 51 gamma amber 45
beta 3 gamma 5
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025651
qwen/qwen3.7-plus
awkweave-0025652
The first row is a header. Print the score column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
region display_name record_id score r001 hana 13 ready r002 farah 10 failed r003 gus 27 closed r004 chen 7 active r005 hana 16 pending r006 gus 17 active r007 jules 12 pending r008 lina 26 ready
ready failed closed active pending active pending ready
region display_name record_id score r001 chen 25 paused r002 ivan 9 pending r003 gus 13 paused r004 alice 19 ready r005 lina 8 closed r006 kim 7 closed r007 jules 30 active
paused pending paused ready closed closed active
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025652-p1
Treating the initial line as a header, output the values from the score column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
region display_name record_id score r001 hana 13 ready r002 farah 10 failed r003 gus 27 closed r004 chen 7 active r005 hana 16 pending r006 gus 17 active r007 jules 12 pending r008 lina 26 ready
ready failed closed active pending active pending ready
region display_name record_id score r001 chen 25 paused r002 ivan 9 pending r003 gus 13 paused r004 alice 19 ready r005 lina 8 closed r006 kim 7 closed r007 jules 30 active
paused pending paused ready closed closed active
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025652
qwen/qwen3.7-plus
awkweave-0025653
The first row is a header. Print display_name for data rows whose score is greater than 24.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>24{print $h["display_name"]}
record_id display_name score state r001 kim 8 pending r002 chen 4 ready r003 lina 3 failed r004 farah 10 closed r005 kim 24 pending r006 gus 15 active r007 lina 27 paused r008 lina 16 closed
lina
record_id display_name score state r001 lina 24 pending r002 ivan 17 active r003 ivan 9 ready r004 alice 12 active r005 hana 22 closed r006 gus 17 closed r007 lina 2 closed r008 chen 15 failed r009 bruno 6 active r010 dina 18 paused
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025653-p1
With the first line serving as a header, output the display_name field for any data row where the score exceeds 24.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>24{print $h["display_name"]}
record_id display_name score state r001 kim 8 pending r002 chen 4 ready r003 lina 3 failed r004 farah 10 closed r005 kim 24 pending r006 gus 15 active r007 lina 27 paused r008 lina 16 closed
lina
record_id display_name score state r001 lina 24 pending r002 ivan 17 active r003 ivan 9 ready r004 alice 12 active r005 hana 22 closed r006 gus 17 closed r007 lina 2 closed r008 chen 15 failed r009 bruno 6 active r010 dina 18 paused
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025653
qwen/qwen3.7-plus
awkweave-0025654
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 16 paused dina 29 active kim 8 closed lina 20 paused alice 21 pending bruno 8 pending
16 29 8 20 21 8
bruno 6 pending hana 5 active kim 26 ready bruno 12 paused ivan 6 paused farah 12 ready bruno 23 failed alice 3 pending jules 19 closed jules 4 closed
6 5 26 12 6 12 23 3 19 4
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025654-p1
Given tab-separated input, extract and print the second field from each record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 16 paused dina 29 active kim 8 closed lina 20 paused alice 21 pending bruno 8 pending
16 29 8 20 21 8
bruno 6 pending hana 5 active kim 26 ready bruno 12 paused ivan 6 paused farah 12 ready bruno 23 failed alice 3 pending jules 19 closed jules 4 closed
6 5 26 12 6 12 23 3 19 4
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025654
qwen/qwen3.7-plus
awkweave-0025655
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 11.
BEGIN{FS=OFS=","}$2>11{print $1}
gus,26,closed farah,29,paused alice,7,active alice,8,ready kim,21,pending eli,30,active hana,21,active jules,29,pending dina,11,failed
gus farah kim eli hana jules
dina,28,active hana,25,active alice,14,closed lina,5,ready dina,21,closed farah,20,paused hana,11,failed hana,9,closed eli,11,active
dina hana alice dina farah
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025655-p1
For simple comma-separated input without quoted commas, print the first column whenever the second column's value is greater than 11.
BEGIN{FS=OFS=","}$2>11{print $1}
gus,26,closed farah,29,paused alice,7,active alice,8,ready kim,21,pending eli,30,active hana,21,active jules,29,pending dina,11,failed
gus farah kim eli hana jules
dina,28,active hana,25,active alice,14,closed lina,5,ready dina,21,closed farah,20,paused hana,11,failed hana,9,closed eli,11,active
dina hana alice dina farah
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025655
qwen/qwen3.7-plus
awkweave-0025656
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
jules ember 108 alice harbor 59 ivan harbor 39 lina ember 6 chen birch 112 alice ember 45 eli grove 51
jules ember 108 alice harbor 59 ivan harbor 39 lina ember 6 chen birch 112 alice ember 45 eli grove 51
chen birch 86 bruno indigo 78 alice ember 56 lina juniper 60 bruno indigo 88 hana harbor 67 jules birch 106
chen birch 86 bruno indigo 78 alice ember 56 lina juniper 60 bruno indigo 88 hana harbor 67 jules birch 106
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025656-p1
Remove leading and trailing spaces and replace sequences of internal whitespace with a single space.
{$1=$1;print}
jules ember 108 alice harbor 59 ivan harbor 39 lina ember 6 chen birch 112 alice ember 45 eli grove 51
jules ember 108 alice harbor 59 ivan harbor 39 lina ember 6 chen birch 112 alice ember 45 eli grove 51
chen birch 86 bruno indigo 78 alice ember 56 lina juniper 60 bruno indigo 88 hana harbor 67 jules birch 106
chen birch 86 bruno indigo 78 alice ember 56 lina juniper 60 bruno indigo 88 hana harbor 67 jules birch 106
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025656
qwen/qwen3.7-plus
awkweave-0025657
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
bruno birch 31 pending alice harbor 20 pending jules birch 40 active dina fable 66 ready alice birch 29 pending farah juniper 83 pending kim harbor 32 closed chen harbor 100 ready alice harbor 107 pending jules ember 55 ready
farah juniper 83 pending
hana cobalt 116 active lina harbor 8 closed dina ember 80 active chen delta 24 closed hana grove 112 pending kim juniper 28 failed eli amber 2 paused chen grove 99 pending gus indigo 12 pending dina cobalt 97 active
hana cobalt 116 active
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025657-p1
Identify and output the longest line from the input; in case of a tie in length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
bruno birch 31 pending alice harbor 20 pending jules birch 40 active dina fable 66 ready alice birch 29 pending farah juniper 83 pending kim harbor 32 closed chen harbor 100 ready alice harbor 107 pending jules ember 55 ready
farah juniper 83 pending
hana cobalt 116 active lina harbor 8 closed dina ember 80 active chen delta 24 closed hana grove 112 pending kim juniper 28 failed eli amber 2 paused chen grove 99 pending gus indigo 12 pending dina cobalt 97 active
hana cobalt 116 active
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025657
qwen/qwen3.7-plus
awkweave-0025658
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
alice 69 farah 112 lina 110 jules 7 eli 80 bruno 30 gus 14 kim 82 lina 109 hana 73
alice 69 lina 110 eli 80 gus 14 lina 109
hana 41 dina 7 gus 81 ivan 55 eli 16 ivan 63 lina 25
hana 41 gus 81 eli 16 lina 25
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025658-p1
Output every other line, beginning with the first line (i.e., lines 1, 3, 5, etc.).
NR%2==1
alice 69 farah 112 lina 110 jules 7 eli 80 bruno 30 gus 14 kim 82 lina 109 hana 73
alice 69 lina 110 eli 80 gus 14 lina 109
hana 41 dina 7 gus 81 ivan 55 eli 16 ivan 63 lina 25
hana 41 gus 81 eli 16 lina 25
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025658
qwen/qwen3.7-plus
awkweave-0025659
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha harbor 87 delta amber 10 alpha juniper 82 delta delta 26 gamma cobalt 22 beta fable 115 beta amber 57 beta indigo 87 gamma indigo 45
7
delta harbor 28 delta birch 28 delta indigo 11 delta cobalt 78 beta harbor 117 delta ember 76 alpha indigo 108
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025659-p1
Determine the number of unique values present in the second column and print only that total count.
{if(!seen[$2]++)n++}END{print n+0}
alpha harbor 87 delta amber 10 alpha juniper 82 delta delta 26 gamma cobalt 22 beta fable 115 beta amber 57 beta indigo 87 gamma indigo 45
7
delta harbor 28 delta birch 28 delta indigo 11 delta cobalt 78 beta harbor 117 delta ember 76 alpha indigo 108
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025659
qwen/qwen3.7-plus
awkweave-0025660
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
farah 8 0 gus 18 30 hana 25 4 eli 11 28 jules 28 28 dina 9 14 dina 8 2 jules 15 6
gus 0.60 hana 6.25 eli 0.39 jules 1.00 dina 0.64 dina 4.00 jules 2.50
jules 8 0 chen 30 23 bruno 28 14 lina 24 5 dina 24 22 bruno 29 12 hana 9 18 hana 2 19 hana 23 4 eli 11 18
chen 1.30 bruno 2.00 lina 4.80 dina 1.09 bruno 2.42 hana 0.50 hana 0.11 hana 5.75 eli 0.61
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0025660-p1
For each row, output the first and second columns along with the result of dividing the second column by the third, formatted to two decimal places, while omitting any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
farah 8 0 gus 18 30 hana 25 4 eli 11 28 jules 28 28 dina 9 14 dina 8 2 jules 15 6
gus 0.60 hana 6.25 eli 0.39 jules 1.00 dina 0.64 dina 4.00 jules 2.50
jules 8 0 chen 30 23 bruno 28 14 lina 24 5 dina 24 22 bruno 29 12 hana 9 18 hana 2 19 hana 23 4 eli 11 18
chen 1.30 bruno 2.00 lina 4.80 dina 1.09 bruno 2.42 hana 0.50 hana 0.11 hana 5.75 eli 0.61
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0025660
qwen/qwen3.7-plus
awkweave-0025661
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]}
lina harbor 18 ivan ember 8 gus harbor 4 dina fable 4 bruno indigo 23 dina amber 19 ivan indigo 17 kim birch 23 dina ember 24
dina ember 24 bruno indigo 23 kim birch 23
gus delta 26 alice birch 29 alice fable 16 kim birch 11 lina harbor 16 farah grove 3
alice birch 29 gus delta 26 alice fable 16
top_three
3
train
original-grammar
CC-BY-4.0
null
null