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-0052833
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
gus gamma 8 lina delta 27 ivan alpha 6 eli gamma 4 dina alpha 9 lina delta 29 alice alpha 17 lina delta 30
gamma 12 delta 86 alpha 32
kim alpha 30 dina beta 22 hana delta 24 farah beta 25 bruno gamma 10 hana beta 4 ivan gamma 4 farah alpha 17 farah delta 7
alpha 47 beta 51 delta 31 gamma 14
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052833-p1
Calculate the sum of the third column for each group defined by the second column, listing the results in the order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
gus gamma 8 lina delta 27 ivan alpha 6 eli gamma 4 dina alpha 9 lina delta 29 alice alpha 17 lina delta 30
gamma 12 delta 86 alpha 32
kim alpha 30 dina beta 22 hana delta 24 farah beta 25 bruno gamma 10 hana beta 4 ivan gamma 4 farah alpha 17 farah delta 7
alpha 47 beta 51 delta 31 gamma 14
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052833
qwen/qwen3.7-plus
awkweave-0052834
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]]}
beta fable 5 alpha ember 89 alpha indigo 108 beta ember 85 alpha amber 116 delta grove 107 beta juniper 33 beta grove 57 delta amber 71 alpha delta 23
beta 4 alpha 4 delta 2
alpha ember 100 gamma birch 71 alpha fable 51 beta birch 57 alpha indigo 100 gamma fable 10 alpha fable 55 beta indigo 68 gamma cobalt 28 beta delta 32
alpha 4 gamma 3 beta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052834-p1
List each duplicate value from the first column along with its frequency, ordered by when the value first appeared.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta fable 5 alpha ember 89 alpha indigo 108 beta ember 85 alpha amber 116 delta grove 107 beta juniper 33 beta grove 57 delta amber 71 alpha delta 23
beta 4 alpha 4 delta 2
alpha ember 100 gamma birch 71 alpha fable 51 beta birch 57 alpha indigo 100 gamma fable 10 alpha fable 55 beta indigo 68 gamma cobalt 28 beta delta 32
alpha 4 gamma 3 beta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052834
qwen/qwen3.7-plus
awkweave-0052835
The first row is a header. Print the note column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
state score note display_name r001 farah 25 paused r002 dina 21 pending r003 gus 3 pending r004 ivan 21 paused r005 dina 14 closed r006 hana 27 pending r007 gus 21 ready r008 farah 19 ready
25 21 3 21 14 27 21 19
state score note display_name r001 gus 15 ready r002 chen 24 ready r003 gus 15 active r004 ivan 17 closed r005 chen 10 ready r006 alice 12 failed r007 jules 12 ready r008 gus 18 ready r009 chen 23 failed
15 24 15 17 10 12 12 18 23
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052835-p1
Skip the header row and print the contents of the note column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
state score note display_name r001 farah 25 paused r002 dina 21 pending r003 gus 3 pending r004 ivan 21 paused r005 dina 14 closed r006 hana 27 pending r007 gus 21 ready r008 farah 19 ready
25 21 3 21 14 27 21 19
state score note display_name r001 gus 15 ready r002 chen 24 ready r003 gus 15 active r004 ivan 17 closed r005 chen 10 ready r006 alice 12 failed r007 jules 12 ready r008 gus 18 ready r009 chen 23 failed
15 24 15 17 10 12 12 18 23
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052835
qwen/qwen3.7-plus
awkweave-0052836
The first row is a header. Print display_name for data rows whose score is greater than 17.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>17{print $h["display_name"]}
record_id display_name score state r001 gus 9 pending r002 dina 15 ready r003 lina 13 ready r004 kim 14 pending r005 jules 24 failed r006 lina 30 paused r007 hana 25 failed r008 dina 17 ready
jules lina hana
record_id display_name score state r001 gus 30 failed r002 gus 15 pending r003 hana 3 pending r004 ivan 4 failed r005 jules 11 pending r006 eli 23 closed r007 alice 27 active
gus eli alice
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052836-p1
Skip the header row and output the display_name for any data rows where the score is strictly greater than 17.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>17{print $h["display_name"]}
record_id display_name score state r001 gus 9 pending r002 dina 15 ready r003 lina 13 ready r004 kim 14 pending r005 jules 24 failed r006 lina 30 paused r007 hana 25 failed r008 dina 17 ready
jules lina hana
record_id display_name score state r001 gus 30 failed r002 gus 15 pending r003 hana 3 pending r004 ivan 4 failed r005 jules 11 pending r006 eli 23 closed r007 alice 27 active
gus eli alice
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052836
qwen/qwen3.7-plus
awkweave-0052837
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
dina 20 failed hana 2 ready ivan 20 paused farah 8 failed gus 18 ready lina 3 active lina 15 failed chen 19 pending hana 16 ready
failed ready paused failed ready active failed pending ready
farah 3 ready gus 10 closed bruno 8 paused eli 14 failed kim 13 ready bruno 28 ready ivan 11 paused jules 28 closed bruno 12 ready bruno 24 closed
ready closed paused failed ready ready paused closed ready closed
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052837-p1
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
dina 20 failed hana 2 ready ivan 20 paused farah 8 failed gus 18 ready lina 3 active lina 15 failed chen 19 pending hana 16 ready
failed ready paused failed ready active failed pending ready
farah 3 ready gus 10 closed bruno 8 paused eli 14 failed kim 13 ready bruno 28 ready ivan 11 paused jules 28 closed bruno 12 ready bruno 24 closed
ready closed paused failed ready ready paused closed ready closed
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0052837
qwen/qwen3.7-plus
awkweave-0052838
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 21.
BEGIN{FS=OFS=","}$2>21{print $1}
jules,10,ready farah,28,ready chen,10,pending alice,30,ready dina,24,failed kim,14,pending kim,3,paused bruno,14,failed chen,7,ready
farah alice dina
ivan,23,ready alice,21,failed jules,14,ready ivan,28,pending eli,5,active kim,2,paused eli,19,active lina,24,ready
ivan ivan lina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052838-p1
For simple CSV input without quoted commas, print the first column whenever the second column value is greater than 21.
BEGIN{FS=OFS=","}$2>21{print $1}
jules,10,ready farah,28,ready chen,10,pending alice,30,ready dina,24,failed kim,14,pending kim,3,paused bruno,14,failed chen,7,ready
farah alice dina
ivan,23,ready alice,21,failed jules,14,ready ivan,28,pending eli,5,active kim,2,paused eli,19,active lina,24,ready
ivan ivan lina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052838
qwen/qwen3.7-plus
awkweave-0052839
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
ivan fable 111 gus birch 8 bruno indigo 103 dina harbor 106 ivan fable 106 eli fable 54 dina fable 79
ivan fable 111 gus birch 8 bruno indigo 103 dina harbor 106 ivan fable 106 eli fable 54 dina fable 79
lina amber 107 kim harbor 54 jules juniper 7 ivan juniper 30 lina indigo 92 kim juniper 54 kim indigo 56
lina amber 107 kim harbor 54 jules juniper 7 ivan juniper 30 lina indigo 92 kim juniper 54 kim indigo 56
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052839-p1
Remove leading and trailing whitespace from each line and replace sequences of internal whitespace with a single space.
{$1=$1;print}
ivan fable 111 gus birch 8 bruno indigo 103 dina harbor 106 ivan fable 106 eli fable 54 dina fable 79
ivan fable 111 gus birch 8 bruno indigo 103 dina harbor 106 ivan fable 106 eli fable 54 dina fable 79
lina amber 107 kim harbor 54 jules juniper 7 ivan juniper 30 lina indigo 92 kim juniper 54 kim indigo 56
lina amber 107 kim harbor 54 jules juniper 7 ivan juniper 30 lina indigo 92 kim juniper 54 kim indigo 56
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052839
qwen/qwen3.7-plus
awkweave-0052840
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah amber 80 ready dina fable 43 pending farah grove 13 active lina cobalt 64 ready kim grove 33 active jules juniper 27 ready eli harbor 19 pending
jules juniper 27 ready
bruno juniper 16 paused alice fable 53 active farah indigo 15 ready hana ember 41 failed jules juniper 23 closed chen ember 37 pending
bruno juniper 16 paused
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052840-p1
Identify and print 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}
farah amber 80 ready dina fable 43 pending farah grove 13 active lina cobalt 64 ready kim grove 33 active jules juniper 27 ready eli harbor 19 pending
jules juniper 27 ready
bruno juniper 16 paused alice fable 53 active farah indigo 15 ready hana ember 41 failed jules juniper 23 closed chen ember 37 pending
bruno juniper 16 paused
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052840
qwen/qwen3.7-plus
awkweave-0052841
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
eli 80 hana 96 kim 82 bruno 46 eli 48 farah 91
eli 80 kim 82 eli 48
kim 85 eli 39 ivan 75 ivan 49 lina 85 gus 2
kim 85 ivan 75 lina 85
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052841-p1
Output every other line starting from the first line (i.e., lines 1, 3, 5, etc.).
NR%2==1
eli 80 hana 96 kim 82 bruno 46 eli 48 farah 91
eli 80 kim 82 eli 48
kim 85 eli 39 ivan 75 ivan 49 lina 85 gus 2
kim 85 ivan 75 lina 85
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052841
qwen/qwen3.7-plus
awkweave-0052842
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha amber 86 gamma fable 47 gamma indigo 113 alpha indigo 32 alpha ember 69 gamma cobalt 21 beta grove 30 gamma harbor 25 beta indigo 75
7
beta grove 32 alpha delta 75 delta amber 36 delta indigo 120 gamma juniper 55 delta cobalt 63 alpha amber 49 alpha ember 43 beta juniper 10
7
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052842-p1
Calculate the number of unique values in the second column and print only that total count.
{if(!seen[$2]++)n++}END{print n+0}
alpha amber 86 gamma fable 47 gamma indigo 113 alpha indigo 32 alpha ember 69 gamma cobalt 21 beta grove 30 gamma harbor 25 beta indigo 75
7
beta grove 32 alpha delta 75 delta amber 36 delta indigo 120 gamma juniper 55 delta cobalt 63 alpha amber 49 alpha ember 43 beta juniper 10
7
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052842
qwen/qwen3.7-plus
awkweave-0052843
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}
gus 7 0 eli 20 25 alice 26 29 kim 23 23 dina 15 8 chen 28 23 jules 25 26 farah 9 3
eli 0.80 alice 0.90 kim 1.00 dina 1.88 chen 1.22 jules 0.96 farah 3.00
farah 8 0 ivan 16 28 gus 2 19 eli 24 22 gus 30 6 chen 7 30 gus 20 10
ivan 0.57 gus 0.11 eli 1.09 gus 5.00 chen 0.23 gus 2.00
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052843-p1
For each row, output the first column and the result of dividing the second column by the third column formatted to two decimal places, excluding any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 7 0 eli 20 25 alice 26 29 kim 23 23 dina 15 8 chen 28 23 jules 25 26 farah 9 3
eli 0.80 alice 0.90 kim 1.00 dina 1.88 chen 1.22 jules 0.96 farah 3.00
farah 8 0 ivan 16 28 gus 2 19 eli 24 22 gus 30 6 chen 7 30 gus 20 10
ivan 0.57 gus 0.11 eli 1.09 gus 5.00 chen 0.23 gus 2.00
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052843
qwen/qwen3.7-plus
awkweave-0052844
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 harbor 16 farah harbor 5 alice birch 21 dina ember 28 lina birch 8 jules indigo 25 gus cobalt 29
gus cobalt 29 dina ember 28 jules indigo 25
eli harbor 21 lina cobalt 30 bruno grove 20 bruno birch 17 hana cobalt 12 kim harbor 3
lina cobalt 30 eli harbor 21 bruno grove 20
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052844-p1
Select the top three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
chen harbor 16 farah harbor 5 alice birch 21 dina ember 28 lina birch 8 jules indigo 25 gus cobalt 29
gus cobalt 29 dina ember 28 jules indigo 25
eli harbor 21 lina cobalt 30 bruno grove 20 bruno birch 17 hana cobalt 12 kim harbor 3
lina cobalt 30 eli harbor 21 bruno grove 20
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052844
qwen/qwen3.7-plus
awkweave-0052845
Print column 3 followed by column 1 for every record.
{print $3, $1}
105 20 hana closed 20 40 jules ready 42 19 bruno paused 107 12 ivan failed 48 45 lina pending 26 0 hana paused 27 48 bruno failed 45 33 ivan closed 110 82 ivan failed
hana 105 jules 20 bruno 42 ivan 107 lina 48 hana 26 bruno 27 ivan 45 ivan 110
12 43 chen active 70 21 lina paused 106 73 farah ready 13 81 jules failed 4 7 chen paused 84 54 bruno paused 51 47 hana active 85 6 ivan failed 35 24 eli ready
chen 12 lina 70 farah 106 jules 13 chen 4 bruno 84 hana 51 ivan 85 eli 35
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052845-p1
For every record, print the third column followed by the first column.
{print $3, $1}
105 20 hana closed 20 40 jules ready 42 19 bruno paused 107 12 ivan failed 48 45 lina pending 26 0 hana paused 27 48 bruno failed 45 33 ivan closed 110 82 ivan failed
hana 105 jules 20 bruno 42 ivan 107 lina 48 hana 26 bruno 27 ivan 45 ivan 110
12 43 chen active 70 21 lina paused 106 73 farah ready 13 81 jules failed 4 7 chen paused 84 54 bruno paused 51 47 hana active 85 6 ivan failed 35 24 eli ready
chen 12 lina 70 farah 106 jules 13 chen 4 bruno 84 hana 51 ivan 85 eli 35
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052845
qwen/qwen3.7-plus
awkweave-0052846
Print the last field of every input line.
{print $NF}
birch ember 41 active active fable fable 117 paused active grove fable 33 pending ready juniper grove 72 closed failed ember delta 99 pending pending grove harbor 56 ready ready cobalt birch 27 failed active grove delta 12 closed active
active active ready failed pending ready active active
birch cobalt 73 closed failed delta cobalt 98 ready paused juniper fable 80 failed failed juniper fable 113 active ready fable cobalt 2 ready closed harbor amber 13 failed failed cobalt fable 106 closed failed amber ember 36 closed paused
failed paused failed ready closed failed failed paused
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052846-p1
Extract and print the final field from every line of input.
{print $NF}
birch ember 41 active active fable fable 117 paused active grove fable 33 pending ready juniper grove 72 closed failed ember delta 99 pending pending grove harbor 56 ready ready cobalt birch 27 failed active grove delta 12 closed active
active active ready failed pending ready active active
birch cobalt 73 closed failed delta cobalt 98 ready paused juniper fable 80 failed failed juniper fable 113 active ready fable cobalt 2 ready closed harbor amber 13 failed failed cobalt fable 106 closed failed amber ember 36 closed paused
failed paused failed ready closed failed failed paused
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052846
qwen/qwen3.7-plus
awkweave-0052847
Print the complete records where column 4 is at least 65.
$4 >= 65
paused fable alice 62 bruno paused grove hana 90 jules paused harbor alice 72 jules pending fable ivan 120 eli active delta ivan 114 jules active ember eli 81 jules pending ember ivan 33 bruno closed cobalt lina 76 kim
paused grove hana 90 jules paused harbor alice 72 jules pending fable ivan 120 eli active delta ivan 114 jules active ember eli 81 jules closed cobalt lina 76 kim
failed fable dina 9 chen closed amber alice 110 kim pending indigo kim 47 ivan active birch eli 50 bruno failed delta jules 72 bruno failed grove bruno 91 eli paused juniper ivan 26 lina closed delta farah 58 hana ready grove ivan 112 chen
closed amber alice 110 kim failed delta jules 72 bruno failed grove bruno 91 eli ready grove ivan 112 chen
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052847-p1
Output full records where the value in the fourth column is greater than or equal to 65.
$4 >= 65
paused fable alice 62 bruno paused grove hana 90 jules paused harbor alice 72 jules pending fable ivan 120 eli active delta ivan 114 jules active ember eli 81 jules pending ember ivan 33 bruno closed cobalt lina 76 kim
paused grove hana 90 jules paused harbor alice 72 jules pending fable ivan 120 eli active delta ivan 114 jules active ember eli 81 jules closed cobalt lina 76 kim
failed fable dina 9 chen closed amber alice 110 kim pending indigo kim 47 ivan active birch eli 50 bruno failed delta jules 72 bruno failed grove bruno 91 eli paused juniper ivan 26 lina closed delta farah 58 hana ready grove ivan 112 chen
closed amber alice 110 kim failed delta jules 72 bruno failed grove bruno 91 eli ready grove ivan 112 chen
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052847
qwen/qwen3.7-plus
awkweave-0052848
Show whole lines whose 3rd field is between 3 and 24, inclusive.
$3 >= 3 && $3 <= 24
failed ready 22 delta failed closed 18 indigo active active 30 ember failed active 22 ember closed pending 16 delta pending ready 27 juniper ready failed 19 harbor
failed ready 22 delta failed closed 18 indigo failed active 22 ember closed pending 16 delta ready failed 19 harbor
failed failed 8 juniper ready ready 9 grove pending pending 22 grove ready active 6 delta failed active 30 birch failed pending 16 amber failed paused 25 indigo closed pending 3 cobalt ready failed 4 grove
failed failed 8 juniper ready ready 9 grove pending pending 22 grove ready active 6 delta failed pending 16 amber closed pending 3 cobalt ready failed 4 grove
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052848-p1
Display entire lines where the third field falls within the inclusive range of 3 to 24.
$3 >= 3 && $3 <= 24
failed ready 22 delta failed closed 18 indigo active active 30 ember failed active 22 ember closed pending 16 delta pending ready 27 juniper ready failed 19 harbor
failed ready 22 delta failed closed 18 indigo failed active 22 ember closed pending 16 delta ready failed 19 harbor
failed failed 8 juniper ready ready 9 grove pending pending 22 grove ready active 6 delta failed active 30 birch failed pending 16 amber failed paused 25 indigo closed pending 3 cobalt ready failed 4 grove
failed failed 8 juniper ready ready 9 grove pending pending 22 grove ready active 6 delta failed pending 16 amber closed pending 3 cobalt ready failed 4 grove
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052848
qwen/qwen3.7-plus
awkweave-0052849
Print column 2 only for rows where column 1 is exactly closed.
$1 == "closed"{print $2}
failed ivan 101 birch ready jules 68 grove pending alice 119 cobalt ready bruno 2 delta closed kim 74 ember pending gus 108 cobalt paused dina 11 delta closed ivan 64 fable
kim ivan
closed dina 11 fable failed farah 48 delta closed ivan 74 harbor paused jules 115 indigo closed jules 114 cobalt failed kim 3 birch pending gus 31 amber failed gus 34 grove
dina ivan jules
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052849-p1
Output only the second column for rows where the first column is exactly 'closed'.
$1 == "closed"{print $2}
failed ivan 101 birch ready jules 68 grove pending alice 119 cobalt ready bruno 2 delta closed kim 74 ember pending gus 108 cobalt paused dina 11 delta closed ivan 64 fable
kim ivan
closed dina 11 fable failed farah 48 delta closed ivan 74 harbor paused jules 115 indigo closed jules 114 cobalt failed kim 3 birch pending gus 31 amber failed gus 34 grove
dina ivan jules
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052849
qwen/qwen3.7-plus
awkweave-0052850
Print all fields from lines where field 3 begins with WARN.
$3 ~ /^WARN/
ember 66 INFO juniper 44 INFO delta 10 DEBUG ember 3 WARN cobalt 44 INFO fable 56 DEBUG amber 9 WARN
ember 3 WARN amber 9 WARN
fable 52 INFO birch 35 WARN amber 74 DEBUG amber 107 ERROR juniper 114 WARN juniper 20 INFO birch 8 ERROR birch 112 DEBUG ember 42 INFO indigo 110 INFO
birch 35 WARN juniper 114 WARN
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052850-p1
Print all fields from lines where the third field starts with 'WARN'.
$3 ~ /^WARN/
ember 66 INFO juniper 44 INFO delta 10 DEBUG ember 3 WARN cobalt 44 INFO fable 56 DEBUG amber 9 WARN
ember 3 WARN amber 9 WARN
fable 52 INFO birch 35 WARN amber 74 DEBUG amber 107 ERROR juniper 114 WARN juniper 20 INFO birch 8 ERROR birch 112 DEBUG ember 42 INFO indigo 110 INFO
birch 35 WARN juniper 114 WARN
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052850
qwen/qwen3.7-plus
awkweave-0052851
Print every line except those containing the exact text ember.
$0 !~ /ember/
ember 8 closed ember 19 pending amber 57 failed harbor 77 ready delta 6 active juniper 6 closed birch 17 closed juniper 49 pending harbor 22 pending juniper 114 failed ember 999 active
amber 57 failed harbor 77 ready delta 6 active juniper 6 closed birch 17 closed juniper 49 pending harbor 22 pending juniper 114 failed
grove 29 pending birch 88 closed fable 3 pending fable 106 paused ember 105 failed ember 119 ready ember 25 closed birch 54 pending ember 999 active
grove 29 pending birch 88 closed fable 3 pending fable 106 paused birch 54 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052851-p1
Print every line that does not contain the exact string 'ember'.
$0 !~ /ember/
ember 8 closed ember 19 pending amber 57 failed harbor 77 ready delta 6 active juniper 6 closed birch 17 closed juniper 49 pending harbor 22 pending juniper 114 failed ember 999 active
amber 57 failed harbor 77 ready delta 6 active juniper 6 closed birch 17 closed juniper 49 pending harbor 22 pending juniper 114 failed
grove 29 pending birch 88 closed fable 3 pending fable 106 paused ember 105 failed ember 119 ready ember 25 closed birch 54 pending ember 999 active
grove 29 pending birch 88 closed fable 3 pending fable 106 paused birch 54 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052851
qwen/qwen3.7-plus
awkweave-0052852
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
gus fable 98 kim cobalt 87 dina amber 84 gus amber 111 alice birch 40 bruno grove 68 chen ember 11
kim cobalt 87 dina amber 84
eli cobalt 22 dina indigo 108 chen cobalt 27 chen birch 111 jules delta 4 kim delta 30 dina cobalt 92 farah harbor 3 kim harbor 77 hana birch 23
dina indigo 108 chen cobalt 27
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052852-p1
Output lines 2 through 3, inclusive of both endpoints.
NR >= 2 && NR <= 3
gus fable 98 kim cobalt 87 dina amber 84 gus amber 111 alice birch 40 bruno grove 68 chen ember 11
kim cobalt 87 dina amber 84
eli cobalt 22 dina indigo 108 chen cobalt 27 chen birch 111 jules delta 4 kim delta 30 dina cobalt 92 farah harbor 3 kim harbor 77 hana birch 23
dina indigo 108 chen cobalt 27
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052852
qwen/qwen3.7-plus
awkweave-0052853
Output only the first 3 records.
NR <= 3
alice 115 delta farah 14 indigo eli 25 juniper alice 76 grove dina 77 amber jules 97 indigo bruno 103 amber ivan 73 delta
alice 115 delta farah 14 indigo eli 25 juniper
farah 109 fable farah 100 cobalt bruno 17 harbor lina 76 ember gus 108 birch chen 58 fable gus 79 grove lina 103 grove farah 58 juniper gus 116 cobalt
farah 109 fable farah 100 cobalt bruno 17 harbor
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052853-p1
Display only the first three records.
NR <= 3
alice 115 delta farah 14 indigo eli 25 juniper alice 76 grove dina 77 amber jules 97 indigo bruno 103 amber ivan 73 delta
alice 115 delta farah 14 indigo eli 25 juniper
farah 109 fable farah 100 cobalt bruno 17 harbor lina 76 ember gus 108 birch chen 58 fable gus 79 grove lina 103 grove farah 58 juniper gus 116 cobalt
farah 109 fable farah 100 cobalt bruno 17 harbor
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052853
qwen/qwen3.7-plus
awkweave-0052854
Skip the first line and print every remaining line unchanged.
NR > 1
bruno 74 harbor lina 43 cobalt eli 109 grove chen 37 amber farah 36 juniper gus 12 birch ivan 83 amber chen 10 cobalt
lina 43 cobalt eli 109 grove chen 37 amber farah 36 juniper gus 12 birch ivan 83 amber chen 10 cobalt
gus 32 fable lina 60 cobalt chen 91 fable ivan 68 delta bruno 27 harbor alice 97 ember dina 17 grove chen 93 birch
lina 60 cobalt chen 91 fable ivan 68 delta bruno 27 harbor alice 97 ember dina 17 grove chen 93 birch
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052854-p1
Omit the first line and print all subsequent lines without modification.
NR > 1
bruno 74 harbor lina 43 cobalt eli 109 grove chen 37 amber farah 36 juniper gus 12 birch ivan 83 amber chen 10 cobalt
lina 43 cobalt eli 109 grove chen 37 amber farah 36 juniper gus 12 birch ivan 83 amber chen 10 cobalt
gus 32 fable lina 60 cobalt chen 91 fable ivan 68 delta bruno 27 harbor alice 97 ember dina 17 grove chen 93 birch
lina 60 cobalt chen 91 fable ivan 68 delta bruno 27 harbor alice 97 ember dina 17 grove chen 93 birch
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052854
qwen/qwen3.7-plus
awkweave-0052855
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
dina paused 23 hana ready 98 bruno active 20 ivan active 89 dina closed 30 alice paused 92 hana active 14 ivan closed 32 farah pending 115 gus pending 27
2
farah active 44 jules active 37 bruno paused 9 jules active 20 ivan closed 39 ivan active 64 alice closed 77 eli closed 69 dina failed 62 alice failed 113
3
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052855-p1
Count the number of records with 'closed' in the second column, printing 0 if none exist.
$2 == "closed"{n++}END{print n+0}
dina paused 23 hana ready 98 bruno active 20 ivan active 89 dina closed 30 alice paused 92 hana active 14 ivan closed 32 farah pending 115 gus pending 27
2
farah active 44 jules active 37 bruno paused 9 jules active 20 ivan closed 39 ivan active 64 alice closed 77 eli closed 69 dina failed 62 alice failed 113
3
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052855
qwen/qwen3.7-plus
awkweave-0052856
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
fable farah 30 delta farah 9 harbor ivan 6 harbor kim 24 harbor gus 24 cobalt dina 17 birch lina 23 harbor eli 28 amber bruno 1 juniper lina 13
175
grove hana 23 fable hana 20 harbor lina 5 birch kim 8 harbor farah 23 birch eli 29 fable farah 11 fable lina 17 cobalt ivan 7
143
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052856-p1
Compute and display the sum of integer values in the third column.
{s+=$3}END{print s+0}
fable farah 30 delta farah 9 harbor ivan 6 harbor kim 24 harbor gus 24 cobalt dina 17 birch lina 23 harbor eli 28 amber bruno 1 juniper lina 13
175
grove hana 23 fable hana 20 harbor lina 5 birch kim 8 harbor farah 23 birch eli 29 fable farah 11 fable lina 17 cobalt ivan 7
143
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052856
qwen/qwen3.7-plus
awkweave-0052857
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
jules delta 24 alice fable 12 bruno juniper 6 dina fable 26 hana cobalt 13 jules indigo 10 gus fable 10 eli fable 13 alice grove 12
14.00
eli fable 3 eli ember 25 jules cobalt 3 hana harbor 3 bruno ember 17 farah indigo 13 dina juniper 28 jules grove 2
11.75
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052857-p1
Calculate and print the average of the third column, rounded to two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
jules delta 24 alice fable 12 bruno juniper 6 dina fable 26 hana cobalt 13 jules indigo 10 gus fable 10 eli fable 13 alice grove 12
14.00
eli fable 3 eli ember 25 jules cobalt 3 hana harbor 3 bruno ember 17 farah indigo 13 dina juniper 28 jules grove 2
11.75
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052857
qwen/qwen3.7-plus
awkweave-0052858
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
jules 10 cobalt bruno 14 indigo dina 10 fable ivan 28 ember gus 27 delta eli 10 juniper hana 28 cobalt
10
ivan 4 birch alice 25 birch eli 29 juniper eli 13 fable hana 12 amber lina 8 amber dina 18 juniper kim 24 juniper alice 17 ember
4
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052858-p1
Identify and print the minimum numeric value found in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
jules 10 cobalt bruno 14 indigo dina 10 fable ivan 28 ember gus 27 delta eli 10 juniper hana 28 cobalt
10
ivan 4 birch alice 25 birch eli 29 juniper eli 13 fable hana 12 amber lina 8 amber dina 18 juniper kim 24 juniper alice 17 ember
4
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052858
qwen/qwen3.7-plus
awkweave-0052859
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
indigo chen 17 juniper chen 22 ember gus 24 ember ivan 8 juniper farah 20 cobalt alice 17 delta ivan 29 cobalt dina 19
29
indigo ivan 10 delta chen 30 grove kim 4 ember hana 12 grove ivan 23 amber hana 13
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052859-p1
Identify and print the maximum numeric value found in the third column.
NR==1||$3>extreme{extreme=$3}END{print extreme}
indigo chen 17 juniper chen 22 ember gus 24 ember ivan 8 juniper farah 20 cobalt alice 17 delta ivan 29 cobalt dina 19
29
indigo ivan 10 delta chen 30 grove kim 4 ember hana 12 grove ivan 23 amber hana 13
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052859
qwen/qwen3.7-plus
awkweave-0052860
Count all input records and print the total.
END{print NR}
bruno 88 gus 42 alice 77 alice 34 bruno 111 eli 66 lina 113
7
eli 77 bruno 106 gus 97 gus 93 kim 86 lina 61 alice 103 gus 42 dina 15
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052860-p1
Calculate the total number of input records and output the count.
END{print NR}
bruno 88 gus 42 alice 77 alice 34 bruno 111 eli 66 lina 113
7
eli 77 bruno 106 gus 97 gus 93 kim 86 lina 61 alice 103 gus 42 dina 15
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052860
qwen/qwen3.7-plus
awkweave-0052861
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
eli birch 32 ivan birch 39 gus birch 49 gus grove 109 hana grove 88 kim juniper 46 gus grove 109 gus amber 86 hana ember 40 lina delta 38
eli birch 32 ivan birch 39 gus birch 49 gus grove 109 hana grove 88 kim juniper 46 gus amber 86 hana ember 40 lina delta 38
hana amber 109 farah harbor 33 hana amber 109 gus fable 60 bruno juniper 69 jules juniper 91 hana birch 34
hana amber 109 farah harbor 33 gus fable 60 bruno juniper 69 jules juniper 91 hana birch 34
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052861-p1
Eliminate exact duplicate lines while maintaining the original sequence and keeping the first instance of each.
!seen[$0]++
eli birch 32 ivan birch 39 gus birch 49 gus grove 109 hana grove 88 kim juniper 46 gus grove 109 gus amber 86 hana ember 40 lina delta 38
eli birch 32 ivan birch 39 gus birch 49 gus grove 109 hana grove 88 kim juniper 46 gus amber 86 hana ember 40 lina delta 38
hana amber 109 farah harbor 33 hana amber 109 gus fable 60 bruno juniper 69 jules juniper 91 hana birch 34
hana amber 109 farah harbor 33 gus fable 60 bruno juniper 69 jules juniper 91 hana birch 34
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052861
qwen/qwen3.7-plus
awkweave-0052862
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
farah cobalt 96 ivan amber 14 hana indigo 5 alice juniper 98 gus indigo 93 ivan grove 18
farah cobalt 96 ivan amber 14 hana indigo 5 alice juniper 98 gus indigo 93 ivan grove 18
ivan birch 104 bruno harbor 101 kim birch 102 eli delta 33 hana birch 9 chen grove 90 jules grove 112 bruno ember 78 lina fable 0
ivan birch 104 bruno harbor 101 kim birch 102 eli delta 33 hana birch 9 chen grove 90 jules grove 112 bruno ember 78 lina fable 0
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052862-p1
Retain only the initial line for every unique value found in the third column, ensuring the original input order is preserved.
!seen[$3]++
farah cobalt 96 ivan amber 14 hana indigo 5 alice juniper 98 gus indigo 93 ivan grove 18
farah cobalt 96 ivan amber 14 hana indigo 5 alice juniper 98 gus indigo 93 ivan grove 18
ivan birch 104 bruno harbor 101 kim birch 102 eli delta 33 hana birch 9 chen grove 90 jules grove 112 bruno ember 78 lina fable 0
ivan birch 104 bruno harbor 101 kim birch 102 eli delta 33 hana birch 9 chen grove 90 jules grove 112 bruno ember 78 lina fable 0
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052862
qwen/qwen3.7-plus
awkweave-0052863
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
eli 27 juniper ivan 15 amber alice 20 birch chen 1 juniper farah 7 indigo lina 5 fable hana 7 cobalt alice 11 indigo
eli 27 ivan 42 alice 62 chen 63 farah 70 lina 75 hana 82 alice 93
bruno 6 ember kim 18 grove dina 20 delta gus 17 amber jules 12 amber bruno 17 indigo
bruno 6 kim 24 dina 44 gus 61 jules 73 bruno 90
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052863-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}
eli 27 juniper ivan 15 amber alice 20 birch chen 1 juniper farah 7 indigo lina 5 fable hana 7 cobalt alice 11 indigo
eli 27 ivan 42 alice 62 chen 63 farah 70 lina 75 hana 82 alice 93
bruno 6 ember kim 18 grove dina 20 delta gus 17 amber jules 12 amber bruno 17 indigo
bruno 6 kim 24 dina 44 gus 61 jules 73 bruno 90
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052863
qwen/qwen3.7-plus
awkweave-0052864
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
chen 18 23 grove gus 27 28 harbor farah 12 25 fable dina 16 1 juniper bruno 12 15 birch lina 19 14 grove hana 24 16 delta
chen 41 gus 55 farah 37 dina 17 bruno 27 lina 33 hana 40
chen 4 29 harbor alice 30 27 juniper jules 6 19 harbor ivan 25 6 cobalt farah 16 27 fable gus 22 4 indigo lina 14 3 grove
chen 33 alice 57 jules 25 ivan 31 farah 43 gus 26 lina 17
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052864-p1
For each row, display the first field followed by the total of the second and third fields.
{print $1,$2+$3}
chen 18 23 grove gus 27 28 harbor farah 12 25 fable dina 16 1 juniper bruno 12 15 birch lina 19 14 grove hana 24 16 delta
chen 41 gus 55 farah 37 dina 17 bruno 27 lina 33 hana 40
chen 4 29 harbor alice 30 27 juniper jules 6 19 harbor ivan 25 6 cobalt farah 16 27 fable gus 22 4 indigo lina 14 3 grove
chen 33 alice 57 jules 25 ivan 31 farah 43 gus 26 lina 17
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052864
qwen/qwen3.7-plus
awkweave-0052865
Print column 1 and pass when column 2 is at least 21; otherwise print fail.
{print $1,($2>=21?"pass":"fail")}
ivan 2 gus 30 hana 17 gus 16 hana 4 dina 3 bruno 30 chen 5 kim 7 chen 2
ivan fail gus pass hana fail gus fail hana fail dina fail bruno pass chen fail kim fail chen fail
gus 25 ivan 1 ivan 9 dina 2 kim 17 bruno 26 chen 19 jules 25 ivan 25
gus pass ivan fail ivan fail dina fail kim fail bruno pass chen fail jules pass ivan pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052865-p1
Output the first column along with 'pass' if the second column is 21 or greater; otherwise, output 'fail'.
{print $1,($2>=21?"pass":"fail")}
ivan 2 gus 30 hana 17 gus 16 hana 4 dina 3 bruno 30 chen 5 kim 7 chen 2
ivan fail gus pass hana fail gus fail hana fail dina fail bruno pass chen fail kim fail chen fail
gus 25 ivan 1 ivan 9 dina 2 kim 17 bruno 26 chen 19 jules 25 ivan 25
gus pass ivan fail ivan fail dina fail kim fail bruno pass chen fail jules pass ivan pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052865
qwen/qwen3.7-plus
awkweave-0052866
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
jules cobalt 79 jules delta 57 ivan delta 117 kim juniper 33 hana amber 82 kim harbor 95
COBALT DELTA DELTA JUNIPER AMBER HARBOR
jules fable 13 alice grove 28 chen delta 89 chen birch 39 jules ember 98 farah birch 19 hana birch 93 hana fable 40 ivan harbor 24 kim indigo 11
FABLE GROVE DELTA BIRCH EMBER BIRCH BIRCH FABLE HARBOR INDIGO
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052866-p1
Transform the second column to uppercase and display only that modified column.
{print toupper($2)}
jules cobalt 79 jules delta 57 ivan delta 117 kim juniper 33 hana amber 82 kim harbor 95
COBALT DELTA DELTA JUNIPER AMBER HARBOR
jules fable 13 alice grove 28 chen delta 89 chen birch 39 jules ember 98 farah birch 19 hana birch 93 hana fable 40 ivan harbor 24 kim indigo 11
FABLE GROVE DELTA BIRCH EMBER BIRCH BIRCH FABLE HARBOR INDIGO
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052866
qwen/qwen3.7-plus
awkweave-0052867
From column 1, print 2 characters starting at character 1.
{print substr($1,1,2)}
birch 24 delta 83 juniper 117 cobalt 118 cobalt 15 delta 96 fable 8 cobalt 30 ember 28
bi de ju co co de fa co em
harbor 118 delta 18 delta 88 grove 117 fable 13 amber 48 ember 27 birch 51 delta 103
ha de de gr fa am em bi de
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052867-p1
Extract and print the first two characters from the first column.
{print substr($1,1,2)}
birch 24 delta 83 juniper 117 cobalt 118 cobalt 15 delta 96 fable 8 cobalt 30 ember 28
bi de ju co co de fa co em
harbor 118 delta 18 delta 88 grove 117 fable 13 amber 48 ember 27 birch 51 delta 103
ha de de gr fa am em bi de
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052867
qwen/qwen3.7-plus
awkweave-0052868
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
fable_harbor 92 grove_harbor 115 harbor_delta 16 harbor_indigo 23 amber_harbor 107 amber_grove 1 birch_delta 104
fable harbor grove harbor harbor delta harbor indigo amber harbor amber grove birch delta
amber_indigo 58 cobalt_cobalt 111 juniper_amber 31 juniper_amber 98 ember_cobalt 11 ember_juniper 18 birch_amber 61 cobalt_harbor 117 birch_ember 3 juniper_indigo 7
amber indigo cobalt cobalt juniper amber juniper amber ember cobalt ember juniper birch amber cobalt harbor birch ember juniper indigo
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052868-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
fable_harbor 92 grove_harbor 115 harbor_delta 16 harbor_indigo 23 amber_harbor 107 amber_grove 1 birch_delta 104
fable harbor grove harbor harbor delta harbor indigo amber harbor amber grove birch delta
amber_indigo 58 cobalt_cobalt 111 juniper_amber 31 juniper_amber 98 ember_cobalt 11 ember_juniper 18 birch_amber 61 cobalt_harbor 117 birch_ember 3 juniper_indigo 7
amber indigo cobalt cobalt juniper amber juniper amber ember cobalt ember juniper birch amber cobalt harbor birch ember juniper indigo
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052868
qwen/qwen3.7-plus
awkweave-0052869
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 cobalt 64 active chen delta 49 closed chen juniper 38 failed kim fable 92 pending lina fable 98 pending alice harbor 33 pending hana juniper 12 active
active 64 cobalt lina closed 49 delta chen failed 38 juniper chen pending 92 fable kim pending 98 fable lina pending 33 harbor alice active 12 juniper hana
dina harbor 115 closed jules indigo 97 ready alice delta 7 ready hana grove 29 ready gus delta 88 closed kim delta 109 failed kim cobalt 110 closed jules delta 9 ready
closed 115 harbor dina ready 97 indigo jules ready 7 delta alice ready 29 grove hana closed 88 delta gus failed 109 delta kim closed 110 cobalt kim ready 9 delta jules
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052869-p1
Invert the sequence of fields for every line and print all fields in the new order.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
lina cobalt 64 active chen delta 49 closed chen juniper 38 failed kim fable 92 pending lina fable 98 pending alice harbor 33 pending hana juniper 12 active
active 64 cobalt lina closed 49 delta chen failed 38 juniper chen pending 92 fable kim pending 98 fable lina pending 33 harbor alice active 12 juniper hana
dina harbor 115 closed jules indigo 97 ready alice delta 7 ready hana grove 29 ready gus delta 88 closed kim delta 109 failed kim cobalt 110 closed jules delta 9 ready
closed 115 harbor dina ready 97 indigo jules ready 7 delta alice ready 29 grove hana closed 88 delta gus failed 109 delta kim closed 110 cobalt kim ready 9 delta jules
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052869
qwen/qwen3.7-plus
awkweave-0052870
Print the number of whitespace-separated fields on each line.
{print NF}
alice harbor 57 closed jules amber 27 paused farah harbor 106 closed ivan fable 48 failed kim indigo 64 active bruno ember 16 ready chen harbor 117 paused alice birch 9 failed eli juniper 73 active alice harbor 104 pending
4 4 4 4 4 4 4 4 4 4
kim birch 89 paused farah delta 64 closed hana juniper 51 ready ivan amber 41 ready chen fable 77 paused jules birch 29 paused lina indigo 60 active alice delta 89 ready
4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052870-p1
Display the count of whitespace-delimited fields present on each line.
{print NF}
alice harbor 57 closed jules amber 27 paused farah harbor 106 closed ivan fable 48 failed kim indigo 64 active bruno ember 16 ready chen harbor 117 paused alice birch 9 failed eli juniper 73 active alice harbor 104 pending
4 4 4 4 4 4 4 4 4 4
kim birch 89 paused farah delta 64 closed hana juniper 51 ready ivan amber 41 ready chen fable 77 paused jules birch 29 paused lina indigo 60 active alice delta 89 ready
4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052870
qwen/qwen3.7-plus
awkweave-0052871
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
farah alpha 80 farah alpha 82 hana beta 23 kim beta 44 eli beta 15 hana gamma 103 alice gamma 94
alpha 2 beta 3 gamma 2
bruno gamma 87 chen delta 54 farah beta 20 hana beta 88 bruno alpha 8 lina beta 107 lina alpha 72 jules alpha 117 dina gamma 55 farah alpha 90
gamma 2 delta 1 beta 3 alpha 4
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052871-p1
Tally the number of records for each distinct value in the second column and print each value with its count, ordered by first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
farah alpha 80 farah alpha 82 hana beta 23 kim beta 44 eli beta 15 hana gamma 103 alice gamma 94
alpha 2 beta 3 gamma 2
bruno gamma 87 chen delta 54 farah beta 20 hana beta 88 bruno alpha 8 lina beta 107 lina alpha 72 jules alpha 117 dina gamma 55 farah alpha 90
gamma 2 delta 1 beta 3 alpha 4
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052871
qwen/qwen3.7-plus
awkweave-0052872
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
jules beta 19 ivan alpha 15 dina alpha 4 jules beta 17 eli delta 22 bruno delta 16 jules delta 9 bruno delta 5
beta 36 alpha 19 delta 52
alice alpha 12 lina delta 24 gus beta 19 bruno beta 15 kim alpha 5 bruno alpha 21 alice gamma 7 ivan beta 1
alpha 38 delta 24 beta 35 gamma 7
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052872-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]]}
jules beta 19 ivan alpha 15 dina alpha 4 jules beta 17 eli delta 22 bruno delta 16 jules delta 9 bruno delta 5
beta 36 alpha 19 delta 52
alice alpha 12 lina delta 24 gus beta 19 bruno beta 15 kim alpha 5 bruno alpha 21 alice gamma 7 ivan beta 1
alpha 38 delta 24 beta 35 gamma 7
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0052872
qwen/qwen3.7-plus
awkweave-0052873
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]]}
beta delta 93 delta ember 67 delta indigo 55 beta cobalt 66 beta amber 95 delta delta 106 delta amber 15 delta amber 72 delta indigo 57 beta grove 74
beta 4 delta 6
delta harbor 55 gamma harbor 71 alpha birch 66 delta juniper 40 gamma grove 65 beta harbor 103
delta 2 gamma 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052873-p1
Identify duplicate entries in column 1, count their occurrences, and list them alongside their counts in the order they first appear.
{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]]}
beta delta 93 delta ember 67 delta indigo 55 beta cobalt 66 beta amber 95 delta delta 106 delta amber 15 delta amber 72 delta indigo 57 beta grove 74
beta 4 delta 6
delta harbor 55 gamma harbor 71 alpha birch 66 delta juniper 40 gamma grove 65 beta harbor 103
delta 2 gamma 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052873
qwen/qwen3.7-plus
awkweave-0052874
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 score region record_id r001 kim 2 active r002 bruno 5 active r003 farah 17 paused r004 hana 6 active r005 alice 30 closed r006 jules 1 pending r007 hana 18 paused r008 hana 20 ready r009 jules 26 active
kim bruno farah hana alice jules hana hana jules
display_name score region record_id r001 dina 28 ready r002 hana 18 failed r003 ivan 21 active r004 kim 10 paused r005 gus 30 closed r006 gus 3 active r007 kim 11 failed r008 bruno 7 closed
dina hana ivan kim gus gus kim bruno
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052874-p1
Treating the first line as a header, extract and display 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"]}
display_name score region record_id r001 kim 2 active r002 bruno 5 active r003 farah 17 paused r004 hana 6 active r005 alice 30 closed r006 jules 1 pending r007 hana 18 paused r008 hana 20 ready r009 jules 26 active
kim bruno farah hana alice jules hana hana jules
display_name score region record_id r001 dina 28 ready r002 hana 18 failed r003 ivan 21 active r004 kim 10 paused r005 gus 30 closed r006 gus 3 active r007 kim 11 failed r008 bruno 7 closed
dina hana ivan kim gus gus kim bruno
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052874
qwen/qwen3.7-plus
awkweave-0052875
The first row is a header. Print display_name for data rows whose score is greater than 13.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>13{print $h["display_name"]}
record_id display_name score state r001 jules 12 paused r002 dina 27 ready r003 bruno 25 failed r004 farah 11 ready r005 bruno 11 ready r006 ivan 16 closed r007 gus 12 active r008 alice 29 closed r009 bruno 18 ready
dina bruno ivan alice bruno
record_id display_name score state r001 kim 10 closed r002 farah 25 paused r003 eli 3 failed r004 gus 4 active r005 bruno 26 paused r006 eli 14 active r007 farah 1 pending r008 jules 15 active r009 kim 9 ready
farah bruno eli jules
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052875-p1
With the first row considered a header, output the display_name field for any data row where the score value is strictly greater than 13.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>13{print $h["display_name"]}
record_id display_name score state r001 jules 12 paused r002 dina 27 ready r003 bruno 25 failed r004 farah 11 ready r005 bruno 11 ready r006 ivan 16 closed r007 gus 12 active r008 alice 29 closed r009 bruno 18 ready
dina bruno ivan alice bruno
record_id display_name score state r001 kim 10 closed r002 farah 25 paused r003 eli 3 failed r004 gus 4 active r005 bruno 26 paused r006 eli 14 active r007 farah 1 pending r008 jules 15 active r009 kim 9 ready
farah bruno eli jules
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052875
qwen/qwen3.7-plus
awkweave-0052876
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
bruno 15 pending bruno 25 ready farah 19 pending farah 16 failed eli 30 active gus 22 ready jules 1 closed bruno 25 ready
15 25 19 16 30 22 1 25
jules 5 pending dina 22 closed bruno 18 failed kim 23 active hana 26 active hana 28 active lina 22 active eli 7 closed eli 30 failed bruno 9 paused
5 22 18 23 26 28 22 7 30 9
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052876-p1
Given tab-separated input, extract and print the second column from every record.
BEGIN{FS=OFS="\t"}{print $2}
bruno 15 pending bruno 25 ready farah 19 pending farah 16 failed eli 30 active gus 22 ready jules 1 closed bruno 25 ready
15 25 19 16 30 22 1 25
jules 5 pending dina 22 closed bruno 18 failed kim 23 active hana 26 active hana 28 active lina 22 active eli 7 closed eli 30 failed bruno 9 paused
5 22 18 23 26 28 22 7 30 9
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052876
qwen/qwen3.7-plus
awkweave-0052877
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 8.
BEGIN{FS=OFS=","}$2>8{print $1}
dina,1,paused jules,13,ready ivan,19,paused farah,9,active lina,28,ready lina,27,active kim,7,pending eli,16,failed ivan,29,paused dina,27,active
jules ivan farah lina lina eli ivan dina
ivan,8,failed alice,23,ready gus,29,ready jules,20,closed chen,1,failed kim,30,closed lina,9,ready
alice gus jules kim lina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052877-p1
For simple comma-separated input without quoted fields, print the first column only if the value in the second column is greater than 8.
BEGIN{FS=OFS=","}$2>8{print $1}
dina,1,paused jules,13,ready ivan,19,paused farah,9,active lina,28,ready lina,27,active kim,7,pending eli,16,failed ivan,29,paused dina,27,active
jules ivan farah lina lina eli ivan dina
ivan,8,failed alice,23,ready gus,29,ready jules,20,closed chen,1,failed kim,30,closed lina,9,ready
alice gus jules kim lina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052877
qwen/qwen3.7-plus
awkweave-0052878
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
dina cobalt 46 gus birch 20 jules cobalt 110 lina birch 77 chen indigo 104 bruno delta 16
dina cobalt 46 gus birch 20 jules cobalt 110 lina birch 77 chen indigo 104 bruno delta 16
jules fable 3 ivan amber 20 alice delta 8 dina grove 9 bruno amber 1 kim amber 79 lina fable 69 dina fable 22
jules fable 3 ivan amber 20 alice delta 8 dina grove 9 bruno amber 1 kim amber 79 lina fable 69 dina fable 22
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052878-p1
Remove leading and trailing whitespace from the text, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
dina cobalt 46 gus birch 20 jules cobalt 110 lina birch 77 chen indigo 104 bruno delta 16
dina cobalt 46 gus birch 20 jules cobalt 110 lina birch 77 chen indigo 104 bruno delta 16
jules fable 3 ivan amber 20 alice delta 8 dina grove 9 bruno amber 1 kim amber 79 lina fable 69 dina fable 22
jules fable 3 ivan amber 20 alice delta 8 dina grove 9 bruno amber 1 kim amber 79 lina fable 69 dina fable 22
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052878
qwen/qwen3.7-plus
awkweave-0052879
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
chen indigo 23 failed alice harbor 85 ready gus juniper 72 closed dina grove 19 active eli delta 44 paused bruno delta 76 paused dina harbor 89 active chen indigo 70 ready jules amber 87 paused
chen indigo 23 failed
gus amber 36 ready lina juniper 26 ready alice amber 34 active lina delta 78 active farah ember 15 pending lina fable 4 pending alice harbor 83 paused
farah ember 15 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052879-p1
Identify and output the longest line from the input; if multiple lines share the maximum length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
chen indigo 23 failed alice harbor 85 ready gus juniper 72 closed dina grove 19 active eli delta 44 paused bruno delta 76 paused dina harbor 89 active chen indigo 70 ready jules amber 87 paused
chen indigo 23 failed
gus amber 36 ready lina juniper 26 ready alice amber 34 active lina delta 78 active farah ember 15 pending lina fable 4 pending alice harbor 83 paused
farah ember 15 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052879
qwen/qwen3.7-plus
awkweave-0052880
Print every 4th line starting at line 3 (then line 7, and so on).
NR%4==3
chen 64 alice 9 farah 41 kim 9 gus 65 chen 61 farah 116
farah 41 farah 116
ivan 26 farah 21 chen 63 hana 92 ivan 93 bruno 42 dina 55 kim 31
chen 63 dina 55
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052880-p1
Output every fourth line of the input, beginning with line 3 (i.e., lines 3, 7, 11, etc.).
NR%4==3
chen 64 alice 9 farah 41 kim 9 gus 65 chen 61 farah 116
farah 41 farah 116
ivan 26 farah 21 chen 63 hana 92 ivan 93 bruno 42 dina 55 kim 31
chen 63 dina 55
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052880
qwen/qwen3.7-plus
awkweave-0052881
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
delta ember 62 alpha cobalt 74 gamma fable 93 gamma indigo 45 delta ember 118 beta delta 13 beta birch 12 gamma amber 99 beta cobalt 82
7
gamma delta 10 delta indigo 52 beta amber 20 alpha birch 95 beta harbor 78 gamma amber 2 alpha indigo 7
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052881-p1
Determine the number of unique values present in column 2 and print only this total count.
{if(!seen[$2]++)n++}END{print n+0}
delta ember 62 alpha cobalt 74 gamma fable 93 gamma indigo 45 delta ember 118 beta delta 13 beta birch 12 gamma amber 99 beta cobalt 82
7
gamma delta 10 delta indigo 52 beta amber 20 alpha birch 95 beta harbor 78 gamma amber 2 alpha indigo 7
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052881
qwen/qwen3.7-plus
awkweave-0052882
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 24 0 dina 14 29 gus 30 16 farah 28 15 kim 29 3 bruno 1 22 ivan 16 14
dina 0.48 gus 1.88 farah 1.87 kim 9.67 bruno 0.05 ivan 1.14
eli 21 0 kim 10 15 ivan 17 24 bruno 26 26 farah 28 13 bruno 16 15 gus 4 3 ivan 2 1 chen 9 8 gus 5 1
kim 0.67 ivan 0.71 bruno 1.00 farah 2.15 bruno 1.07 gus 1.33 ivan 2.00 chen 1.12 gus 5.00
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0052882-p1
For each row, output column 1 and the result of dividing column 2 by column 3 formatted to two decimal places, excluding any rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
farah 24 0 dina 14 29 gus 30 16 farah 28 15 kim 29 3 bruno 1 22 ivan 16 14
dina 0.48 gus 1.88 farah 1.87 kim 9.67 bruno 0.05 ivan 1.14
eli 21 0 kim 10 15 ivan 17 24 bruno 26 26 farah 28 13 bruno 16 15 gus 4 3 ivan 2 1 chen 9 8 gus 5 1
kim 0.67 ivan 0.71 bruno 1.00 farah 2.15 bruno 1.07 gus 1.33 ivan 2.00 chen 1.12 gus 5.00
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0052882
qwen/qwen3.7-plus