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-0010440-p1
Calculate the sum of the third column grouped by the second column, displaying the results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
alice alpha 15 hana alpha 11 gus gamma 4 chen gamma 11 bruno alpha 10 hana alpha 14
alpha 50 gamma 15
eli delta 15 eli delta 8 bruno alpha 10 farah gamma 24 chen delta 12 jules gamma 18 kim gamma 4 eli gamma 18
delta 35 alpha 10 gamma 64
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010440
qwen/qwen3.7-plus
awkweave-0010441
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 ember 58 gamma juniper 21 alpha harbor 98 delta grove 28 gamma ember 36 alpha indigo 104
delta 2 gamma 2 alpha 2
gamma fable 105 beta cobalt 27 beta fable 6 delta delta 53 delta cobalt 13 gamma fable 44 alpha birch 65
gamma 2 beta 2 delta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010441-p1
List each duplicate value from the first column 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 58 gamma juniper 21 alpha harbor 98 delta grove 28 gamma ember 36 alpha indigo 104
delta 2 gamma 2 alpha 2
gamma fable 105 beta cobalt 27 beta fable 6 delta delta 53 delta cobalt 13 gamma fable 44 alpha birch 65
gamma 2 beta 2 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010441
qwen/qwen3.7-plus
awkweave-0010442
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"]}
display_name region score record_id r001 farah 7 pending r002 ivan 26 paused r003 alice 10 paused r004 bruno 3 pending r005 lina 16 active r006 bruno 28 paused r007 eli 26 pending r008 dina 28 pending r009 kim 8 closed r010 bruno 18 paused
7 26 10 3 16 28 26 28 8 18
display_name region score record_id r001 eli 8 failed r002 hana 8 paused r003 eli 24 ready r004 lina 18 pending r005 bruno 13 paused r006 jules 15 ready r007 bruno 29 failed
8 8 24 18 13 15 29
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010442-p1
Skip the header row and output the values from the score column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
display_name region score record_id r001 farah 7 pending r002 ivan 26 paused r003 alice 10 paused r004 bruno 3 pending r005 lina 16 active r006 bruno 28 paused r007 eli 26 pending r008 dina 28 pending r009 kim 8 closed r010 bruno 18 paused
7 26 10 3 16 28 26 28 8 18
display_name region score record_id r001 eli 8 failed r002 hana 8 paused r003 eli 24 ready r004 lina 18 pending r005 bruno 13 paused r006 jules 15 ready r007 bruno 29 failed
8 8 24 18 13 15 29
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010442
qwen/qwen3.7-plus
awkweave-0010443
The first row is a header. Print display_name for data rows whose score is greater than 21.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>21{print $h["display_name"]}
record_id display_name score state r001 hana 7 active r002 jules 11 ready r003 chen 29 failed r004 chen 15 paused r005 alice 24 closed r006 jules 5 ready r007 gus 1 paused r008 chen 1 pending r009 farah 26 closed r010 gus 3 closed
chen alice farah
record_id display_name score state r001 farah 19 pending r002 farah 27 failed r003 hana 29 active r004 lina 2 closed r005 jules 4 ready r006 chen 6 active
farah hana
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010443-p1
Ignoring the header, print the display_name for rows where the score is greater than 21.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>21{print $h["display_name"]}
record_id display_name score state r001 hana 7 active r002 jules 11 ready r003 chen 29 failed r004 chen 15 paused r005 alice 24 closed r006 jules 5 ready r007 gus 1 paused r008 chen 1 pending r009 farah 26 closed r010 gus 3 closed
chen alice farah
record_id display_name score state r001 farah 19 pending r002 farah 27 failed r003 hana 29 active r004 lina 2 closed r005 jules 4 ready r006 chen 6 active
farah hana
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010443
qwen/qwen3.7-plus
awkweave-0010444
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
eli 30 pending kim 4 pending lina 26 pending farah 22 paused alice 5 ready farah 30 active jules 15 pending hana 2 failed
eli kim lina farah alice farah jules hana
dina 24 active lina 17 closed kim 20 pending farah 23 ready hana 11 pending kim 29 closed
dina lina kim farah hana kim
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010444-p1
Given tab-separated input, output the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
eli 30 pending kim 4 pending lina 26 pending farah 22 paused alice 5 ready farah 30 active jules 15 pending hana 2 failed
eli kim lina farah alice farah jules hana
dina 24 active lina 17 closed kim 20 pending farah 23 ready hana 11 pending kim 29 closed
dina lina kim farah hana kim
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010444
qwen/qwen3.7-plus
awkweave-0010445
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 10.
BEGIN{FS=OFS=","}$2>10{print $1}
gus,10,active lina,7,failed chen,15,paused hana,27,failed lina,2,active jules,20,paused eli,6,ready bruno,4,active chen,11,pending
chen hana jules chen
lina,27,closed gus,7,active jules,8,closed hana,20,ready gus,7,ready eli,28,closed jules,7,pending ivan,8,active
lina hana eli
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010445-p1
For simple comma-separated input without quoted commas, print the first column if the second column is greater than 10.
BEGIN{FS=OFS=","}$2>10{print $1}
gus,10,active lina,7,failed chen,15,paused hana,27,failed lina,2,active jules,20,paused eli,6,ready bruno,4,active chen,11,pending
chen hana jules chen
lina,27,closed gus,7,active jules,8,closed hana,20,ready gus,7,ready eli,28,closed jules,7,pending ivan,8,active
lina hana eli
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010445
qwen/qwen3.7-plus
awkweave-0010446
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
chen amber 18 eli amber 108 kim grove 27 eli delta 14 kim birch 6 chen delta 26 hana ember 11 farah amber 24 jules birch 38 hana birch 100
chen amber 18 eli amber 108 kim grove 27 eli delta 14 kim birch 6 chen delta 26 hana ember 11 farah amber 24 jules birch 38 hana birch 100
gus birch 116 hana harbor 61 hana fable 34 eli harbor 97 farah birch 97 jules delta 42 eli grove 92 bruno delta 20 hana ember 88 jules amber 105
gus birch 116 hana harbor 61 hana fable 34 eli harbor 97 farah birch 97 jules delta 42 eli grove 92 bruno delta 20 hana ember 88 jules amber 105
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010446-p1
Remove leading and trailing whitespace and replace internal whitespace sequences with a single space.
{$1=$1;print}
chen amber 18 eli amber 108 kim grove 27 eli delta 14 kim birch 6 chen delta 26 hana ember 11 farah amber 24 jules birch 38 hana birch 100
chen amber 18 eli amber 108 kim grove 27 eli delta 14 kim birch 6 chen delta 26 hana ember 11 farah amber 24 jules birch 38 hana birch 100
gus birch 116 hana harbor 61 hana fable 34 eli harbor 97 farah birch 97 jules delta 42 eli grove 92 bruno delta 20 hana ember 88 jules amber 105
gus birch 116 hana harbor 61 hana fable 34 eli harbor 97 farah birch 97 jules delta 42 eli grove 92 bruno delta 20 hana ember 88 jules amber 105
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010446
qwen/qwen3.7-plus
awkweave-0010447
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
gus amber 30 pending lina birch 78 active alice ember 79 failed hana cobalt 64 closed ivan fable 14 ready hana amber 14 paused dina delta 0 paused alice amber 64 ready hana delta 93 closed
alice ember 79 failed
jules fable 110 closed gus harbor 3 failed bruno ember 77 closed dina birch 56 active kim cobalt 65 pending dina amber 31 failed chen amber 88 pending
jules fable 110 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010447-p1
Identify and print the longest line from the input, selecting the first one in case of a tie.
{if(length($0)>length(best))best=$0}END{print best}
gus amber 30 pending lina birch 78 active alice ember 79 failed hana cobalt 64 closed ivan fable 14 ready hana amber 14 paused dina delta 0 paused alice amber 64 ready hana delta 93 closed
alice ember 79 failed
jules fable 110 closed gus harbor 3 failed bruno ember 77 closed dina birch 56 active kim cobalt 65 pending dina amber 31 failed chen amber 88 pending
jules fable 110 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010447
qwen/qwen3.7-plus
awkweave-0010448
Print every 4th line starting at line 4 (then line 8, and so on).
NR%4==0
lina 52 gus 2 jules 39 jules 57 gus 37 farah 30 eli 66 ivan 70 hana 12 chen 88
jules 57 ivan 70
hana 86 ivan 68 eli 77 lina 20 alice 118 chen 76 bruno 13 jules 42 eli 25 alice 32
lina 20 jules 42
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010448-p1
Output every fourth line beginning with line 4 (i.e., lines 4, 8, etc.).
NR%4==0
lina 52 gus 2 jules 39 jules 57 gus 37 farah 30 eli 66 ivan 70 hana 12 chen 88
jules 57 ivan 70
hana 86 ivan 68 eli 77 lina 20 alice 118 chen 76 bruno 13 jules 42 eli 25 alice 32
lina 20 jules 42
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010448
qwen/qwen3.7-plus
awkweave-0010449
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha fable 118 alpha delta 20 delta juniper 112 beta ember 6 alpha juniper 68 beta cobalt 112 delta juniper 76 delta grove 62
6
beta grove 86 alpha fable 18 delta harbor 18 gamma delta 8 delta birch 40 beta delta 118 gamma fable 50
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010449-p1
Calculate and display the number of unique entries in the second column.
{if(!seen[$2]++)n++}END{print n+0}
alpha fable 118 alpha delta 20 delta juniper 112 beta ember 6 alpha juniper 68 beta cobalt 112 delta juniper 76 delta grove 62
6
beta grove 86 alpha fable 18 delta harbor 18 gamma delta 8 delta birch 40 beta delta 118 gamma fable 50
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010449
qwen/qwen3.7-plus
awkweave-0010450
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 lina 28 4 chen 11 9 lina 13 19 chen 5 18 hana 7 30
lina 7.00 chen 1.22 lina 0.68 chen 0.28 hana 0.23
eli 15 0 kim 3 19 ivan 28 30 jules 30 11 dina 7 19 farah 17 4
kim 0.16 ivan 0.93 jules 2.73 dina 0.37 farah 4.25
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010450-p1
For each row where the third column is non-zero, output the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 19 0 lina 28 4 chen 11 9 lina 13 19 chen 5 18 hana 7 30
lina 7.00 chen 1.22 lina 0.68 chen 0.28 hana 0.23
eli 15 0 kim 3 19 ivan 28 30 jules 30 11 dina 7 19 farah 17 4
kim 0.16 ivan 0.93 jules 2.73 dina 0.37 farah 4.25
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010450
qwen/qwen3.7-plus
awkweave-0010451
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
jules grove 22 kim juniper 24 jules delta 6 lina amber 10 ivan indigo 15 ivan grove 16 farah delta 29
farah delta 29 kim juniper 24 jules grove 22
gus delta 24 chen birch 15 bruno cobalt 2 bruno cobalt 11 lina delta 2 chen delta 15 jules indigo 21 bruno harbor 16 hana cobalt 21
gus delta 24 jules indigo 21 hana cobalt 21
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010451-p1
Display the top three records with the highest numeric values in column 3, sorted in descending order, maintaining original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
jules grove 22 kim juniper 24 jules delta 6 lina amber 10 ivan indigo 15 ivan grove 16 farah delta 29
farah delta 29 kim juniper 24 jules grove 22
gus delta 24 chen birch 15 bruno cobalt 2 bruno cobalt 11 lina delta 2 chen delta 15 jules indigo 21 bruno harbor 16 hana cobalt 21
gus delta 24 jules indigo 21 hana cobalt 21
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010451
qwen/qwen3.7-plus
awkweave-0010452
Print column 5 followed by column 3 for every record.
{print $5, $3}
82 closed kim active chen delta 55 pending bruno closed jules ember 75 closed jules paused dina birch 15 active farah ready kim amber 5 pending kim ready lina birch 0 paused eli failed gus juniper
chen kim jules bruno dina jules kim farah lina kim gus eli
76 pending ivan closed ivan fable 18 active chen active eli delta 22 pending alice ready dina birch 51 pending lina active farah delta 39 failed chen closed lina delta 54 active eli closed farah grove 31 closed gus pending dina fable 35 ready bruno pending dina grove 32 pending chen failed alice grove 16 pending dina a...
ivan ivan eli chen dina alice farah lina lina chen farah eli dina gus dina bruno alice chen gus dina
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010452-p1
Output the fifth column followed by the third column for all records.
{print $5, $3}
82 closed kim active chen delta 55 pending bruno closed jules ember 75 closed jules paused dina birch 15 active farah ready kim amber 5 pending kim ready lina birch 0 paused eli failed gus juniper
chen kim jules bruno dina jules kim farah lina kim gus eli
76 pending ivan closed ivan fable 18 active chen active eli delta 22 pending alice ready dina birch 51 pending lina active farah delta 39 failed chen closed lina delta 54 active eli closed farah grove 31 closed gus pending dina fable 35 ready bruno pending dina grove 32 pending chen failed alice grove 16 pending dina a...
ivan ivan eli chen dina alice farah lina lina chen farah eli dina gus dina bruno alice chen gus dina
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010452
qwen/qwen3.7-plus
awkweave-0010453
Print the last field of every input line.
{print $NF}
76 active hana birch 32 ready farah fable 120 ready ivan indigo 10 ready dina harbor 6 paused hana harbor 89 closed hana juniper 33 ready bruno fable 38 active farah cobalt 60 paused bruno ember 57 active kim fable
birch fable indigo harbor harbor juniper fable cobalt ember fable
37 active bruno cobalt 23 failed kim harbor 77 paused lina cobalt 90 paused hana ember 26 active lina indigo 110 failed bruno indigo 106 paused jules cobalt 52 failed kim ember 22 closed lina harbor
cobalt harbor cobalt ember indigo indigo cobalt ember harbor
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010453-p1
Print the final field from each input line.
{print $NF}
76 active hana birch 32 ready farah fable 120 ready ivan indigo 10 ready dina harbor 6 paused hana harbor 89 closed hana juniper 33 ready bruno fable 38 active farah cobalt 60 paused bruno ember 57 active kim fable
birch fable indigo harbor harbor juniper fable cobalt ember fable
37 active bruno cobalt 23 failed kim harbor 77 paused lina cobalt 90 paused hana ember 26 active lina indigo 110 failed bruno indigo 106 paused jules cobalt 52 failed kim ember 22 closed lina harbor
cobalt harbor cobalt ember indigo indigo cobalt ember harbor
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010453
qwen/qwen3.7-plus
awkweave-0010454
Print the complete records where column 1 is at most 49.
$1 <= 49
61 indigo amber 25 harbor delta 118 juniper indigo 86 grove amber 45 harbor indigo 62 fable delta 116 delta cobalt 69 cobalt cobalt 117 cobalt indigo 19 grove fable
25 harbor delta 45 harbor indigo 19 grove fable
46 delta fable 37 delta delta 96 amber grove 28 cobalt harbor 97 fable grove 120 fable grove 14 cobalt cobalt
46 delta fable 37 delta delta 28 cobalt harbor 14 cobalt cobalt
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010454-p1
Output full records where the value in the first column is less than or equal to 49.
$1 <= 49
61 indigo amber 25 harbor delta 118 juniper indigo 86 grove amber 45 harbor indigo 62 fable delta 116 delta cobalt 69 cobalt cobalt 117 cobalt indigo 19 grove fable
25 harbor delta 45 harbor indigo 19 grove fable
46 delta fable 37 delta delta 96 amber grove 28 cobalt harbor 97 fable grove 120 fable grove 14 cobalt cobalt
46 delta fable 37 delta delta 28 cobalt harbor 14 cobalt cobalt
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010454
qwen/qwen3.7-plus
awkweave-0010455
Show whole lines whose 2nd field is between 3 and 27, inclusive.
$2 >= 3 && $2 <= 27
failed 28 paused harbor pending 24 failed birch pending 18 active ember failed 16 pending amber pending 3 closed birch closed 1 closed ember active 16 pending ember closed 8 failed ember closed 27 closed harbor active 24 active birch
pending 24 failed birch pending 18 active ember failed 16 pending amber pending 3 closed birch active 16 pending ember closed 8 failed ember closed 27 closed harbor active 24 active birch
closed 8 pending amber failed 12 closed birch pending 19 ready delta pending 23 active delta closed 12 active indigo pending 4 pending juniper ready 13 ready grove failed 2 paused amber
closed 8 pending amber failed 12 closed birch pending 19 ready delta pending 23 active delta closed 12 active indigo pending 4 pending juniper ready 13 ready grove
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010455-p1
Display entire lines where the second field falls within the inclusive range of 3 to 27.
$2 >= 3 && $2 <= 27
failed 28 paused harbor pending 24 failed birch pending 18 active ember failed 16 pending amber pending 3 closed birch closed 1 closed ember active 16 pending ember closed 8 failed ember closed 27 closed harbor active 24 active birch
pending 24 failed birch pending 18 active ember failed 16 pending amber pending 3 closed birch active 16 pending ember closed 8 failed ember closed 27 closed harbor active 24 active birch
closed 8 pending amber failed 12 closed birch pending 19 ready delta pending 23 active delta closed 12 active indigo pending 4 pending juniper ready 13 ready grove failed 2 paused amber
closed 8 pending amber failed 12 closed birch pending 19 ready delta pending 23 active delta closed 12 active indigo pending 4 pending juniper ready 13 ready grove
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010455
qwen/qwen3.7-plus
awkweave-0010456
Print column 4 only for rows where column 2 is exactly paused.
$2 == "paused"{print $4}
delta paused 87 farah juniper paused 79 kim ember active 89 jules indigo closed 106 alice delta failed 116 bruno amber paused 10 lina indigo pending 103 eli grove pending 38 gus fable failed 87 hana birch ready 77 ivan
farah kim lina
fable ready 85 eli grove paused 22 farah fable active 7 eli amber failed 117 kim fable paused 104 ivan juniper paused 19 dina indigo pending 80 eli
farah ivan dina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010456-p1
Output only the fourth column for rows where the second column equals 'paused'.
$2 == "paused"{print $4}
delta paused 87 farah juniper paused 79 kim ember active 89 jules indigo closed 106 alice delta failed 116 bruno amber paused 10 lina indigo pending 103 eli grove pending 38 gus fable failed 87 hana birch ready 77 ivan
farah kim lina
fable ready 85 eli grove paused 22 farah fable active 7 eli amber failed 117 kim fable paused 104 ivan juniper paused 19 dina indigo pending 80 eli
farah ivan dina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010456
qwen/qwen3.7-plus
awkweave-0010457
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
26 ERROR indigo 17 WARN amber 92 INFO grove 35 WARN harbor 102 DEBUG fable 115 ERROR grove 102 INFO ember 49 INFO juniper 93 DEBUG juniper 44 ERROR delta
26 ERROR indigo 115 ERROR grove 44 ERROR delta
109 WARN delta 51 ERROR birch 3 INFO juniper 94 DEBUG delta 16 DEBUG indigo 90 INFO indigo
51 ERROR birch
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010457-p1
Print all fields from lines where the second field starts with 'ERROR'.
$2 ~ /^ERROR/
26 ERROR indigo 17 WARN amber 92 INFO grove 35 WARN harbor 102 DEBUG fable 115 ERROR grove 102 INFO ember 49 INFO juniper 93 DEBUG juniper 44 ERROR delta
26 ERROR indigo 115 ERROR grove 44 ERROR delta
109 WARN delta 51 ERROR birch 3 INFO juniper 94 DEBUG delta 16 DEBUG indigo 90 INFO indigo
51 ERROR birch
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010457
qwen/qwen3.7-plus
awkweave-0010458
Print every line except those containing the exact text fable.
$0 !~ /fable/
cobalt 100 pending amber 41 failed ember 77 pending cobalt 109 paused fable 19 pending delta 101 active birch 104 failed delta 7 pending indigo 28 paused indigo 43 active fable 999 active
cobalt 100 pending amber 41 failed ember 77 pending cobalt 109 paused delta 101 active birch 104 failed delta 7 pending indigo 28 paused indigo 43 active
fable 2 active harbor 24 pending indigo 40 active indigo 17 pending juniper 0 closed birch 108 closed fable 999 active
harbor 24 pending indigo 40 active indigo 17 pending juniper 0 closed birch 108 closed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010458-p1
Output every line that does not contain the exact string 'fable'.
$0 !~ /fable/
cobalt 100 pending amber 41 failed ember 77 pending cobalt 109 paused fable 19 pending delta 101 active birch 104 failed delta 7 pending indigo 28 paused indigo 43 active fable 999 active
cobalt 100 pending amber 41 failed ember 77 pending cobalt 109 paused delta 101 active birch 104 failed delta 7 pending indigo 28 paused indigo 43 active
fable 2 active harbor 24 pending indigo 40 active indigo 17 pending juniper 0 closed birch 108 closed fable 999 active
harbor 24 pending indigo 40 active indigo 17 pending juniper 0 closed birch 108 closed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010458
qwen/qwen3.7-plus
awkweave-0010459
Print lines 3 through 6, including both endpoints.
NR >= 3 && NR <= 6
farah amber 79 eli harbor 64 lina indigo 116 bruno cobalt 91 hana delta 105 jules grove 22 chen delta 58 gus indigo 10 ivan delta 40 alice ember 47
lina indigo 116 bruno cobalt 91 hana delta 105 jules grove 22
jules fable 21 kim indigo 100 bruno delta 48 bruno ember 16 gus grove 70 chen birch 59 farah amber 58 alice amber 84 hana amber 30
bruno delta 48 bruno ember 16 gus grove 70 chen birch 59
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010459-p1
Print lines 3 through 6, inclusive.
NR >= 3 && NR <= 6
farah amber 79 eli harbor 64 lina indigo 116 bruno cobalt 91 hana delta 105 jules grove 22 chen delta 58 gus indigo 10 ivan delta 40 alice ember 47
lina indigo 116 bruno cobalt 91 hana delta 105 jules grove 22
jules fable 21 kim indigo 100 bruno delta 48 bruno ember 16 gus grove 70 chen birch 59 farah amber 58 alice amber 84 hana amber 30
bruno delta 48 bruno ember 16 gus grove 70 chen birch 59
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010459
qwen/qwen3.7-plus
awkweave-0010460
Output only the first 4 records.
NR <= 4
chen 114 ember lina 43 grove ivan 38 fable dina 33 indigo kim 59 amber eli 30 birch gus 75 fable alice 27 indigo eli 58 delta
chen 114 ember lina 43 grove ivan 38 fable dina 33 indigo
gus 10 indigo hana 78 grove gus 83 indigo chen 17 indigo jules 30 indigo jules 118 birch alice 29 delta farah 36 amber alice 115 harbor
gus 10 indigo hana 78 grove gus 83 indigo chen 17 indigo
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010460-p1
Display only the initial 4 entries.
NR <= 4
chen 114 ember lina 43 grove ivan 38 fable dina 33 indigo kim 59 amber eli 30 birch gus 75 fable alice 27 indigo eli 58 delta
chen 114 ember lina 43 grove ivan 38 fable dina 33 indigo
gus 10 indigo hana 78 grove gus 83 indigo chen 17 indigo jules 30 indigo jules 118 birch alice 29 delta farah 36 amber alice 115 harbor
gus 10 indigo hana 78 grove gus 83 indigo chen 17 indigo
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010460
qwen/qwen3.7-plus
awkweave-0010461
Skip the first line and print every remaining line unchanged.
NR > 1
eli 67 birch hana 37 harbor lina 119 fable ivan 6 fable alice 43 harbor ivan 93 juniper farah 117 amber jules 95 juniper jules 34 cobalt eli 13 juniper
hana 37 harbor lina 119 fable ivan 6 fable alice 43 harbor ivan 93 juniper farah 117 amber jules 95 juniper jules 34 cobalt eli 13 juniper
bruno 7 juniper chen 94 birch dina 75 birch chen 30 juniper bruno 67 indigo chen 68 ember dina 26 cobalt chen 91 harbor eli 35 harbor dina 75 harbor
chen 94 birch dina 75 birch chen 30 juniper bruno 67 indigo chen 68 ember dina 26 cobalt chen 91 harbor eli 35 harbor dina 75 harbor
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010461-p1
Omit the first line and output all subsequent lines exactly as they appear.
NR > 1
eli 67 birch hana 37 harbor lina 119 fable ivan 6 fable alice 43 harbor ivan 93 juniper farah 117 amber jules 95 juniper jules 34 cobalt eli 13 juniper
hana 37 harbor lina 119 fable ivan 6 fable alice 43 harbor ivan 93 juniper farah 117 amber jules 95 juniper jules 34 cobalt eli 13 juniper
bruno 7 juniper chen 94 birch dina 75 birch chen 30 juniper bruno 67 indigo chen 68 ember dina 26 cobalt chen 91 harbor eli 35 harbor dina 75 harbor
chen 94 birch dina 75 birch chen 30 juniper bruno 67 indigo chen 68 ember dina 26 cobalt chen 91 harbor eli 35 harbor dina 75 harbor
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010461
qwen/qwen3.7-plus
awkweave-0010462
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
kim failed 28 bruno paused 87 gus closed 83 lina closed 58 gus pending 103 ivan failed 45 alice paused 87 jules pending 107
0
ivan closed 56 bruno failed 75 farah active 98 bruno active 78 kim closed 54 eli ready 76 ivan ready 110 dina pending 33 alice active 17 kim active 61
4
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010462-p1
Tally the number of records where column 2 contains 'active', outputting 0 if no matches are found.
$2 == "active"{n++}END{print n+0}
kim failed 28 bruno paused 87 gus closed 83 lina closed 58 gus pending 103 ivan failed 45 alice paused 87 jules pending 107
0
ivan closed 56 bruno failed 75 farah active 98 bruno active 78 kim closed 54 eli ready 76 ivan ready 110 dina pending 33 alice active 17 kim active 61
4
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010462
qwen/qwen3.7-plus
awkweave-0010463
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
bruno 28 harbor eli 10 amber kim 5 juniper gus 3 birch lina 14 delta kim 26 cobalt
86
gus 17 fable ivan 5 birch kim 4 indigo kim 25 fable farah 22 harbor hana 27 juniper dina 18 amber alice 13 grove hana 6 cobalt jules 21 harbor
158
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010463-p1
Compute and display the total sum of integer values found in column 2.
{s+=$2}END{print s+0}
bruno 28 harbor eli 10 amber kim 5 juniper gus 3 birch lina 14 delta kim 26 cobalt
86
gus 17 fable ivan 5 birch kim 4 indigo kim 25 fable farah 22 harbor hana 27 juniper dina 18 amber alice 13 grove hana 6 cobalt jules 21 harbor
158
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010463
qwen/qwen3.7-plus
awkweave-0010464
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
27 ivan indigo 12 jules birch 12 farah birch 19 dina harbor 2 gus juniper 8 alice cobalt 25 chen amber
15.00
23 ivan grove 13 farah birch 15 bruno indigo 8 kim amber 18 jules indigo 24 eli cobalt 17 ivan birch 4 hana delta
15.25
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010464-p1
Output the average of column 1, formatted to precisely two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
27 ivan indigo 12 jules birch 12 farah birch 19 dina harbor 2 gus juniper 8 alice cobalt 25 chen amber
15.00
23 ivan grove 13 farah birch 15 bruno indigo 8 kim amber 18 jules indigo 24 eli cobalt 17 ivan birch 4 hana delta
15.25
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010464
qwen/qwen3.7-plus
awkweave-0010465
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
juniper eli 27 harbor bruno 8 indigo lina 18 juniper ivan 20 grove jules 19 cobalt alice 9
8
harbor farah 8 delta dina 22 birch chen 19 fable ivan 25 cobalt farah 4 birch alice 7 birch kim 14
4
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010465-p1
Identify and print the minimum numeric value present in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
juniper eli 27 harbor bruno 8 indigo lina 18 juniper ivan 20 grove jules 19 cobalt alice 9
8
harbor farah 8 delta dina 22 birch chen 19 fable ivan 25 cobalt farah 4 birch alice 7 birch kim 14
4
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010465
qwen/qwen3.7-plus
awkweave-0010466
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
chen delta 16 ivan ember 25 bruno ember 7 alice indigo 19 ivan birch 19 bruno ember 5 hana amber 12 alice birch 12 chen birch 18 hana juniper 14
25
lina grove 21 hana juniper 28 hana delta 9 ivan fable 20 farah delta 3 ivan indigo 15
28
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010466-p1
Identify and print the maximum numeric value present in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
chen delta 16 ivan ember 25 bruno ember 7 alice indigo 19 ivan birch 19 bruno ember 5 hana amber 12 alice birch 12 chen birch 18 hana juniper 14
25
lina grove 21 hana juniper 28 hana delta 9 ivan fable 20 farah delta 3 ivan indigo 15
28
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010466
qwen/qwen3.7-plus
awkweave-0010467
Count all input records and print the total.
END{print NR}
ivan 11 kim 79 kim 29 jules 52 hana 80 farah 76 chen 17 kim 28
8
ivan 112 lina 91 chen 16 jules 120 ivan 116 dina 111 alice 14 alice 95 bruno 20 eli 70
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010467-p1
Count the total number of input records and print the result.
END{print NR}
ivan 11 kim 79 kim 29 jules 52 hana 80 farah 76 chen 17 kim 28
8
ivan 112 lina 91 chen 16 jules 120 ivan 116 dina 111 alice 14 alice 95 bruno 20 eli 70
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010467
qwen/qwen3.7-plus
awkweave-0010468
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
lina birch 20 dina delta 28 chen birch 1 kim birch 8 hana indigo 95 alice harbor 41 chen birch 1 hana harbor 35 chen cobalt 54 alice amber 69
lina birch 20 dina delta 28 chen birch 1 kim birch 8 hana indigo 95 alice harbor 41 hana harbor 35 chen cobalt 54 alice amber 69
gus harbor 92 eli indigo 29 jules birch 62 farah cobalt 48 ivan harbor 116 farah birch 81 chen indigo 29 jules harbor 21 jules juniper 97 ivan harbor 116
gus harbor 92 eli indigo 29 jules birch 62 farah cobalt 48 ivan harbor 116 farah birch 81 chen indigo 29 jules harbor 21 jules juniper 97
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010468-p1
Eliminate exact duplicate lines while maintaining the original order and keeping the first instance of each.
!seen[$0]++
lina birch 20 dina delta 28 chen birch 1 kim birch 8 hana indigo 95 alice harbor 41 chen birch 1 hana harbor 35 chen cobalt 54 alice amber 69
lina birch 20 dina delta 28 chen birch 1 kim birch 8 hana indigo 95 alice harbor 41 hana harbor 35 chen cobalt 54 alice amber 69
gus harbor 92 eli indigo 29 jules birch 62 farah cobalt 48 ivan harbor 116 farah birch 81 chen indigo 29 jules harbor 21 jules juniper 97 ivan harbor 116
gus harbor 92 eli indigo 29 jules birch 62 farah cobalt 48 ivan harbor 116 farah birch 81 chen indigo 29 jules harbor 21 jules juniper 97
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010468
qwen/qwen3.7-plus
awkweave-0010469
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
hana indigo 14 hana harbor 60 lina cobalt 2 gus cobalt 12 kim delta 8 gus amber 90 alice grove 33 gus juniper 52 chen delta 60 hana juniper 88
hana indigo 14 hana harbor 60 lina cobalt 2 gus cobalt 12 kim delta 8 gus amber 90 alice grove 33 gus juniper 52 hana juniper 88
jules ember 85 ivan juniper 93 dina harbor 74 ivan birch 98 dina fable 46 kim birch 98 kim harbor 73 farah harbor 95 bruno harbor 90
jules ember 85 ivan juniper 93 dina harbor 74 ivan birch 98 dina fable 46 kim harbor 73 farah harbor 95 bruno harbor 90
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010469-p1
Retain only the first occurrence for each unique value in column 3, preserving the original input sequence.
!seen[$3]++
hana indigo 14 hana harbor 60 lina cobalt 2 gus cobalt 12 kim delta 8 gus amber 90 alice grove 33 gus juniper 52 chen delta 60 hana juniper 88
hana indigo 14 hana harbor 60 lina cobalt 2 gus cobalt 12 kim delta 8 gus amber 90 alice grove 33 gus juniper 52 hana juniper 88
jules ember 85 ivan juniper 93 dina harbor 74 ivan birch 98 dina fable 46 kim birch 98 kim harbor 73 farah harbor 95 bruno harbor 90
jules ember 85 ivan juniper 93 dina harbor 74 ivan birch 98 dina fable 46 kim harbor 73 farah harbor 95 bruno harbor 90
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010469
qwen/qwen3.7-plus
awkweave-0010470
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
lina 11 juniper chen 6 cobalt dina 16 delta gus 2 ember eli 14 grove dina 18 harbor hana 18 delta kim 5 grove
lina 11 chen 17 dina 33 gus 35 eli 49 dina 67 hana 85 kim 90
eli 23 grove dina 19 harbor hana 2 cobalt alice 21 cobalt farah 1 indigo gus 18 amber jules 21 cobalt hana 9 birch alice 6 birch
eli 23 dina 42 hana 44 alice 65 farah 66 gus 84 jules 105 hana 114 alice 120
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010470-p1
For each record, output column 1 alongside the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
lina 11 juniper chen 6 cobalt dina 16 delta gus 2 ember eli 14 grove dina 18 harbor hana 18 delta kim 5 grove
lina 11 chen 17 dina 33 gus 35 eli 49 dina 67 hana 85 kim 90
eli 23 grove dina 19 harbor hana 2 cobalt alice 21 cobalt farah 1 indigo gus 18 amber jules 21 cobalt hana 9 birch alice 6 birch
eli 23 dina 42 hana 44 alice 65 farah 66 gus 84 jules 105 hana 114 alice 120
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010470
qwen/qwen3.7-plus
awkweave-0010471
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
ivan 11 5 indigo farah 6 29 amber eli 29 21 cobalt hana 23 28 ember eli 6 19 harbor kim 16 8 ember kim 21 7 cobalt chen 28 24 amber gus 16 17 harbor kim 17 16 birch
ivan 16 farah 35 eli 50 hana 51 eli 25 kim 24 kim 28 chen 52 gus 33 kim 33
hana 1 5 fable jules 1 7 grove eli 16 29 harbor dina 12 20 delta bruno 26 13 cobalt jules 16 11 delta chen 15 7 indigo farah 28 9 grove
hana 6 jules 8 eli 45 dina 32 bruno 39 jules 27 chen 22 farah 37
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010471-p1
For every row, output field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
ivan 11 5 indigo farah 6 29 amber eli 29 21 cobalt hana 23 28 ember eli 6 19 harbor kim 16 8 ember kim 21 7 cobalt chen 28 24 amber gus 16 17 harbor kim 17 16 birch
ivan 16 farah 35 eli 50 hana 51 eli 25 kim 24 kim 28 chen 52 gus 33 kim 33
hana 1 5 fable jules 1 7 grove eli 16 29 harbor dina 12 20 delta bruno 26 13 cobalt jules 16 11 delta chen 15 7 indigo farah 28 9 grove
hana 6 jules 8 eli 45 dina 32 bruno 39 jules 27 chen 22 farah 37
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010471
qwen/qwen3.7-plus
awkweave-0010472
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
dina 15 ivan 12 gus 29 kim 8 ivan 6 farah 23 hana 2
dina fail ivan fail gus pass kim fail ivan fail farah fail hana fail
chen 21 eli 11 farah 2 kim 24 hana 28 chen 13 farah 14
chen fail eli fail farah fail kim fail hana pass chen fail farah fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010472-p1
Output the first column; if the second column is 25 or higher, print 'pass', otherwise print 'fail'.
{print $1,($2>=25?"pass":"fail")}
dina 15 ivan 12 gus 29 kim 8 ivan 6 farah 23 hana 2
dina fail ivan fail gus pass kim fail ivan fail farah fail hana fail
chen 21 eli 11 farah 2 kim 24 hana 28 chen 13 farah 14
chen fail eli fail farah fail kim fail hana pass chen fail farah fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010472
qwen/qwen3.7-plus
awkweave-0010473
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
dina cobalt 68 chen indigo 47 bruno harbor 106 kim fable 37 ivan juniper 47 ivan birch 4 ivan delta 113 dina juniper 31
DINA CHEN BRUNO KIM IVAN IVAN IVAN DINA
farah cobalt 7 alice juniper 8 gus fable 50 alice harbor 103 alice grove 17 lina fable 119 kim harbor 65
FARAH ALICE GUS ALICE ALICE LINA KIM
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010473-p1
Transform the first column to uppercase and output only that column.
{print toupper($1)}
dina cobalt 68 chen indigo 47 bruno harbor 106 kim fable 37 ivan juniper 47 ivan birch 4 ivan delta 113 dina juniper 31
DINA CHEN BRUNO KIM IVAN IVAN IVAN DINA
farah cobalt 7 alice juniper 8 gus fable 50 alice harbor 103 alice grove 17 lina fable 119 kim harbor 65
FARAH ALICE GUS ALICE ALICE LINA KIM
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010473
qwen/qwen3.7-plus
awkweave-0010474
From column 1, print 3 characters starting at character 2.
{print substr($1,2,3)}
juniper 39 indigo 9 ember 78 grove 65 fable 32 juniper 103 fable 13 grove 54
uni ndi mbe rov abl uni abl rov
delta 99 cobalt 40 harbor 33 harbor 26 amber 118 amber 117 fable 65 harbor 49
elt oba arb arb mbe mbe abl arb
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010474-p1
Extract and print a substring of length 3 from the first column, starting at the second character.
{print substr($1,2,3)}
juniper 39 indigo 9 ember 78 grove 65 fable 32 juniper 103 fable 13 grove 54
uni ndi mbe rov abl uni abl rov
delta 99 cobalt 40 harbor 33 harbor 26 amber 118 amber 117 fable 65 harbor 49
elt oba arb arb mbe mbe abl arb
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010474
qwen/qwen3.7-plus
awkweave-0010475
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
birch_birch 18 delta_cobalt 28 grove_fable 6 harbor_juniper 55 harbor_indigo 58 ember_birch 90
birch birch delta cobalt grove fable harbor juniper harbor indigo ember birch
birch_indigo 73 amber_harbor 95 grove_birch 6 grove_ember 66 ember_birch 39 indigo_grove 88 juniper_amber 101 indigo_amber 44
birch indigo amber harbor grove birch grove ember ember birch indigo grove juniper amber indigo amber
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010475-p1
Substitute all underscores in the first column with spaces and display the modified values.
{gsub(/_/," ",$1);print $1}
birch_birch 18 delta_cobalt 28 grove_fable 6 harbor_juniper 55 harbor_indigo 58 ember_birch 90
birch birch delta cobalt grove fable harbor juniper harbor indigo ember birch
birch_indigo 73 amber_harbor 95 grove_birch 6 grove_ember 66 ember_birch 39 indigo_grove 88 juniper_amber 101 indigo_amber 44
birch indigo amber harbor grove birch grove ember ember birch indigo grove juniper amber indigo amber
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010475
qwen/qwen3.7-plus
awkweave-0010476
Reverse the order of fields on every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
lina indigo 21 paused jules grove 66 pending bruno grove 18 active farah grove 120 paused farah ember 61 failed jules cobalt 55 ready lina cobalt 78 paused
paused 21 indigo lina pending 66 grove jules active 18 grove bruno paused 120 grove farah failed 61 ember farah ready 55 cobalt jules paused 78 cobalt lina
lina cobalt 1 closed dina juniper 73 pending kim delta 9 active bruno fable 12 failed gus grove 7 active dina harbor 20 active kim delta 7 active
closed 1 cobalt lina pending 73 juniper dina active 9 delta kim failed 12 fable bruno active 7 grove gus active 20 harbor dina active 7 delta kim
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010476-p1
Reverse the sequence of fields for each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
lina indigo 21 paused jules grove 66 pending bruno grove 18 active farah grove 120 paused farah ember 61 failed jules cobalt 55 ready lina cobalt 78 paused
paused 21 indigo lina pending 66 grove jules active 18 grove bruno paused 120 grove farah failed 61 ember farah ready 55 cobalt jules paused 78 cobalt lina
lina cobalt 1 closed dina juniper 73 pending kim delta 9 active bruno fable 12 failed gus grove 7 active dina harbor 20 active kim delta 7 active
closed 1 cobalt lina pending 73 juniper dina active 9 delta kim failed 12 fable bruno active 7 grove gus active 20 harbor dina active 7 delta kim
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010476
qwen/qwen3.7-plus
awkweave-0010477
Print the number of whitespace-separated fields on each line.
{print NF}
gus birch 29 pending alice harbor 119 paused lina ember 22 paused lina ember 78 closed bruno grove 75 active lina amber 42 closed chen fable 82 active ivan delta 98 paused kim fable 42 paused gus fable 12 pending
4 4 4 4 4 4 4 4 4 4
farah cobalt 18 paused ivan harbor 79 closed dina grove 58 closed dina ember 64 failed jules ember 62 paused kim juniper 5 active eli fable 85 failed
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010477-p1
Display the count of whitespace-delimited fields for every line.
{print NF}
gus birch 29 pending alice harbor 119 paused lina ember 22 paused lina ember 78 closed bruno grove 75 active lina amber 42 closed chen fable 82 active ivan delta 98 paused kim fable 42 paused gus fable 12 pending
4 4 4 4 4 4 4 4 4 4
farah cobalt 18 paused ivan harbor 79 closed dina grove 58 closed dina ember 64 failed jules ember 62 paused kim juniper 5 active eli fable 85 failed
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010477
qwen/qwen3.7-plus
awkweave-0010478
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
chen beta 63 gus beta 97 hana beta 7 dina beta 117 dina beta 75 alice delta 46 farah gamma 65 dina alpha 18 farah gamma 107
beta 5 delta 1 gamma 2 alpha 1
bruno alpha 16 jules delta 47 gus delta 23 farah gamma 74 jules alpha 51 eli gamma 25
alpha 2 delta 2 gamma 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010478-p1
Tally the records for each unique value in the second column and print each value alongside its count, maintaining the order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
chen beta 63 gus beta 97 hana beta 7 dina beta 117 dina beta 75 alice delta 46 farah gamma 65 dina alpha 18 farah gamma 107
beta 5 delta 1 gamma 2 alpha 1
bruno alpha 16 jules delta 47 gus delta 23 farah gamma 74 jules alpha 51 eli gamma 25
alpha 2 delta 2 gamma 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010478
qwen/qwen3.7-plus
awkweave-0010479
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
chen gamma 18 jules gamma 23 farah alpha 11 lina delta 5 eli gamma 9 hana gamma 13 kim alpha 28 gus gamma 13 farah gamma 20 dina gamma 23
gamma 119 alpha 39 delta 5
ivan gamma 14 hana beta 1 gus beta 19 kim alpha 27 alice alpha 24 eli alpha 14
gamma 14 beta 20 alpha 65
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010479-p1
Calculate the sum of the third column for each group defined by the second column, outputting the results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
chen gamma 18 jules gamma 23 farah alpha 11 lina delta 5 eli gamma 9 hana gamma 13 kim alpha 28 gus gamma 13 farah gamma 20 dina gamma 23
gamma 119 alpha 39 delta 5
ivan gamma 14 hana beta 1 gus beta 19 kim alpha 27 alice alpha 24 eli alpha 14
gamma 14 beta 20 alpha 65
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010479
qwen/qwen3.7-plus
awkweave-0010480
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
alpha fable 111 delta amber 67 gamma harbor 24 gamma harbor 8 beta cobalt 39 alpha harbor 34 delta grove 50 alpha juniper 58
alpha 3 delta 2 gamma 2
delta harbor 3 gamma indigo 39 gamma juniper 47 alpha fable 68 gamma amber 51 beta harbor 58 gamma delta 64 beta harbor 81
gamma 4 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010480-p1
List each duplicate value from the first column along with its frequency, ordered by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
alpha fable 111 delta amber 67 gamma harbor 24 gamma harbor 8 beta cobalt 39 alpha harbor 34 delta grove 50 alpha juniper 58
alpha 3 delta 2 gamma 2
delta harbor 3 gamma indigo 39 gamma juniper 47 alpha fable 68 gamma amber 51 beta harbor 58 gamma delta 64 beta harbor 81
gamma 4 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010480
qwen/qwen3.7-plus
awkweave-0010481
The first row is a header. Print the score column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
note state region score r001 farah 8 pending r002 chen 24 failed r003 dina 4 failed r004 gus 29 failed r005 farah 15 closed r006 hana 22 ready r007 jules 15 pending r008 alice 29 pending r009 farah 12 pending r010 hana 14 closed
pending failed failed failed closed ready pending pending pending closed
note state region score r001 bruno 6 ready r002 bruno 25 active r003 farah 3 pending r004 alice 30 ready r005 bruno 25 failed r006 bruno 6 ready
ready active pending ready failed ready
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010481-p1
Treating the first row 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"]}
note state region score r001 farah 8 pending r002 chen 24 failed r003 dina 4 failed r004 gus 29 failed r005 farah 15 closed r006 hana 22 ready r007 jules 15 pending r008 alice 29 pending r009 farah 12 pending r010 hana 14 closed
pending failed failed failed closed ready pending pending pending closed
note state region score r001 bruno 6 ready r002 bruno 25 active r003 farah 3 pending r004 alice 30 ready r005 bruno 25 failed r006 bruno 6 ready
ready active pending ready failed ready
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010481
qwen/qwen3.7-plus
awkweave-0010482
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 dina 13 paused r002 jules 20 active r003 hana 28 paused r004 chen 20 closed r005 hana 10 ready r006 eli 11 failed r007 alice 17 failed
hana
record_id display_name score state r001 lina 9 paused r002 kim 27 pending r003 jules 8 closed r004 jules 11 ready r005 lina 6 paused r006 farah 3 active r007 ivan 17 pending r008 bruno 16 paused
kim
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010482-p1
With the first row as a header, print the display_name column for data rows 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 dina 13 paused r002 jules 20 active r003 hana 28 paused r004 chen 20 closed r005 hana 10 ready r006 eli 11 failed r007 alice 17 failed
hana
record_id display_name score state r001 lina 9 paused r002 kim 27 pending r003 jules 8 closed r004 jules 11 ready r005 lina 6 paused r006 farah 3 active r007 ivan 17 pending r008 bruno 16 paused
kim
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010482
qwen/qwen3.7-plus
awkweave-0010483
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
lina 20 active alice 25 closed bruno 5 failed farah 15 paused lina 4 failed bruno 13 active dina 26 ready jules 9 failed
active closed failed paused failed active ready failed
dina 29 closed bruno 2 pending eli 9 ready lina 7 closed farah 14 ready hana 27 pending alice 30 paused ivan 23 ready kim 24 closed kim 17 pending
closed pending ready closed ready pending paused ready closed pending
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010483-p1
Given tab-separated input, output the third column for every record.
BEGIN{FS=OFS="\t"}{print $3}
lina 20 active alice 25 closed bruno 5 failed farah 15 paused lina 4 failed bruno 13 active dina 26 ready jules 9 failed
active closed failed paused failed active ready failed
dina 29 closed bruno 2 pending eli 9 ready lina 7 closed farah 14 ready hana 27 pending alice 30 paused ivan 23 ready kim 24 closed kim 17 pending
closed pending ready closed ready pending paused ready closed pending
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010483
qwen/qwen3.7-plus
awkweave-0010484
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}
alice,25,paused chen,17,ready gus,14,closed hana,29,pending hana,21,ready gus,23,active
alice chen gus hana hana gus
dina,21,ready lina,1,ready hana,29,paused kim,11,closed alice,16,pending eli,27,failed gus,9,closed
dina hana kim alice eli
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010484-p1
Given comma-separated input without quoted commas, output the first field whenever the second field is greater than 9.
BEGIN{FS=OFS=","}$2>9{print $1}
alice,25,paused chen,17,ready gus,14,closed hana,29,pending hana,21,ready gus,23,active
alice chen gus hana hana gus
dina,21,ready lina,1,ready hana,29,paused kim,11,closed alice,16,pending eli,27,failed gus,9,closed
dina hana kim alice eli
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010484
qwen/qwen3.7-plus
awkweave-0010485
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
ivan juniper 4 alice cobalt 56 kim cobalt 2 alice grove 2 hana cobalt 116 gus juniper 106
ivan juniper 4 alice cobalt 56 kim cobalt 2 alice grove 2 hana cobalt 116 gus juniper 106
ivan grove 40 ivan cobalt 110 jules harbor 2 farah cobalt 104 kim ember 51 hana harbor 94 hana grove 75 bruno harbor 68 chen amber 98
ivan grove 40 ivan cobalt 110 jules harbor 2 farah cobalt 104 kim ember 51 hana harbor 94 hana grove 75 bruno harbor 68 chen amber 98
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010485-p1
Remove leading and trailing whitespace from each line and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
ivan juniper 4 alice cobalt 56 kim cobalt 2 alice grove 2 hana cobalt 116 gus juniper 106
ivan juniper 4 alice cobalt 56 kim cobalt 2 alice grove 2 hana cobalt 116 gus juniper 106
ivan grove 40 ivan cobalt 110 jules harbor 2 farah cobalt 104 kim ember 51 hana harbor 94 hana grove 75 bruno harbor 68 chen amber 98
ivan grove 40 ivan cobalt 110 jules harbor 2 farah cobalt 104 kim ember 51 hana harbor 94 hana grove 75 bruno harbor 68 chen amber 98
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010485
qwen/qwen3.7-plus
awkweave-0010486
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
alice ember 98 closed jules grove 0 ready gus amber 59 ready chen juniper 15 closed gus harbor 17 active chen fable 83 ready
chen juniper 15 closed
dina grove 73 failed bruno delta 106 ready bruno indigo 70 paused bruno fable 38 active dina delta 12 closed jules cobalt 4 ready
bruno indigo 70 paused
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010486-p1
Identify and output 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}
alice ember 98 closed jules grove 0 ready gus amber 59 ready chen juniper 15 closed gus harbor 17 active chen fable 83 ready
chen juniper 15 closed
dina grove 73 failed bruno delta 106 ready bruno indigo 70 paused bruno fable 38 active dina delta 12 closed jules cobalt 4 ready
bruno indigo 70 paused
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010486
qwen/qwen3.7-plus
awkweave-0010487
Print every 3rd line starting at line 3 (then line 6, and so on).
NR%3==0
farah 60 lina 19 lina 14 gus 40 eli 35 eli 72 gus 54 kim 1 chen 39
lina 14 eli 72 chen 39
gus 24 lina 94 chen 99 jules 12 lina 35 dina 23 eli 61
chen 99 dina 23
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010487-p1
Output every third line beginning with line 3 (i.e., lines 3, 6, 9, etc.).
NR%3==0
farah 60 lina 19 lina 14 gus 40 eli 35 eli 72 gus 54 kim 1 chen 39
lina 14 eli 72 chen 39
gus 24 lina 94 chen 99 jules 12 lina 35 dina 23 eli 61
chen 99 dina 23
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010487
qwen/qwen3.7-plus
awkweave-0010488
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
gamma delta 98 delta indigo 89 beta birch 93 delta amber 68 gamma juniper 73 alpha ember 47 alpha fable 46
7
beta delta 20 alpha juniper 13 gamma delta 95 alpha fable 85 gamma grove 105 alpha birch 11 beta cobalt 72
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010488-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}
gamma delta 98 delta indigo 89 beta birch 93 delta amber 68 gamma juniper 73 alpha ember 47 alpha fable 46
7
beta delta 20 alpha juniper 13 gamma delta 95 alpha fable 85 gamma grove 105 alpha birch 11 beta cobalt 72
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010488
qwen/qwen3.7-plus
awkweave-0010489
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}
dina 16 0 bruno 12 11 kim 9 6 ivan 4 22 bruno 24 8 hana 28 29 hana 22 28
bruno 1.09 kim 1.50 ivan 0.18 bruno 3.00 hana 0.97 hana 0.79
alice 13 0 lina 29 10 eli 27 30 ivan 24 30 kim 20 9 alice 11 10 dina 23 19 chen 14 14
lina 2.90 eli 0.90 ivan 0.80 kim 2.22 alice 1.10 dina 1.21 chen 1.00
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0010489-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}
dina 16 0 bruno 12 11 kim 9 6 ivan 4 22 bruno 24 8 hana 28 29 hana 22 28
bruno 1.09 kim 1.50 ivan 0.18 bruno 3.00 hana 0.97 hana 0.79
alice 13 0 lina 29 10 eli 27 30 ivan 24 30 kim 20 9 alice 11 10 dina 23 19 chen 14 14
lina 2.90 eli 0.90 ivan 0.80 kim 2.22 alice 1.10 dina 1.21 chen 1.00
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0010489
qwen/qwen3.7-plus
awkweave-0010500
Skip the first line and print every remaining line unchanged.
NR > 1
farah 12 juniper chen 14 juniper hana 45 cobalt ivan 76 ember kim 61 ember dina 86 juniper gus 113 ember alice 87 ember dina 17 birch
chen 14 juniper hana 45 cobalt ivan 76 ember kim 61 ember dina 86 juniper gus 113 ember alice 87 ember dina 17 birch
dina 79 cobalt jules 65 amber kim 104 fable bruno 37 amber gus 118 amber lina 83 cobalt chen 50 fable
jules 65 amber kim 104 fable bruno 37 amber gus 118 amber lina 83 cobalt chen 50 fable
skip_header
1
train
original-grammar
CC-BY-4.0
null
null