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-0045112-p1
Identify duplicate values in the first column, printing each repeated value and its frequency 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]]}
alpha indigo 1 beta cobalt 67 delta ember 113 alpha delta 89 alpha juniper 62 gamma amber 0 delta fable 79
alpha 3 delta 2
alpha fable 31 gamma amber 50 alpha harbor 27 alpha birch 77 alpha amber 58 beta fable 69 alpha fable 18 beta cobalt 62 gamma amber 21
alpha 5 gamma 2 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045112
qwen/qwen3.7-plus
awkweave-0045113
The first row is a header. Print the score column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
region record_id display_name score r001 lina 21 failed r002 alice 26 closed r003 gus 25 closed r004 jules 3 closed r005 hana 21 failed r006 ivan 27 paused r007 kim 30 paused
failed closed closed closed failed paused paused
region record_id display_name score r001 kim 28 failed r002 hana 8 failed r003 bruno 19 ready r004 kim 24 pending r005 farah 18 pending r006 eli 17 closed
failed failed ready pending pending closed
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045113-p1
Treating the initial 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"]}
region record_id display_name score r001 lina 21 failed r002 alice 26 closed r003 gus 25 closed r004 jules 3 closed r005 hana 21 failed r006 ivan 27 paused r007 kim 30 paused
failed closed closed closed failed paused paused
region record_id display_name score r001 kim 28 failed r002 hana 8 failed r003 bruno 19 ready r004 kim 24 pending r005 farah 18 pending r006 eli 17 closed
failed failed ready pending pending closed
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045113
qwen/qwen3.7-plus
awkweave-0045114
The first row is a header. Print display_name for data rows whose score is greater than 20.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>20{print $h["display_name"]}
record_id display_name score state r001 bruno 18 ready r002 hana 10 ready r003 ivan 16 pending r004 alice 6 paused r005 jules 27 closed r006 hana 13 pending r007 hana 6 failed r008 kim 8 closed r009 farah 8 active r010 lina 2 ready
jules
record_id display_name score state r001 chen 16 active r002 gus 20 active r003 farah 8 pending r004 gus 2 failed r005 alice 29 ready r006 dina 18 failed
alice
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045114-p1
With the first row as a header, print the display_name field for data rows where the score exceeds 20.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>20{print $h["display_name"]}
record_id display_name score state r001 bruno 18 ready r002 hana 10 ready r003 ivan 16 pending r004 alice 6 paused r005 jules 27 closed r006 hana 13 pending r007 hana 6 failed r008 kim 8 closed r009 farah 8 active r010 lina 2 ready
jules
record_id display_name score state r001 chen 16 active r002 gus 20 active r003 farah 8 pending r004 gus 2 failed r005 alice 29 ready r006 dina 18 failed
alice
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045114
qwen/qwen3.7-plus
awkweave-0045115
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
lina 14 closed eli 22 ready gus 30 ready alice 21 failed gus 20 pending lina 25 ready alice 11 ready jules 25 active farah 9 paused jules 13 active
closed ready ready failed pending ready ready active paused active
eli 28 paused kim 26 ready bruno 18 active gus 5 pending chen 2 paused hana 24 ready jules 19 failed farah 6 paused chen 14 paused
paused ready active pending paused ready failed paused paused
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045115-p1
Given tab-separated input, extract and print the third column from every record.
BEGIN{FS=OFS="\t"}{print $3}
lina 14 closed eli 22 ready gus 30 ready alice 21 failed gus 20 pending lina 25 ready alice 11 ready jules 25 active farah 9 paused jules 13 active
closed ready ready failed pending ready ready active paused active
eli 28 paused kim 26 ready bruno 18 active gus 5 pending chen 2 paused hana 24 ready jules 19 failed farah 6 paused chen 14 paused
paused ready active pending paused ready failed paused paused
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045115
qwen/qwen3.7-plus
awkweave-0045116
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 13.
BEGIN{FS=OFS=","}$2>13{print $1}
dina,19,paused jules,3,pending eli,5,failed jules,16,failed chen,11,closed gus,13,ready ivan,28,pending
dina jules ivan
chen,17,paused hana,1,failed eli,3,paused dina,24,active ivan,13,pending bruno,24,paused chen,21,ready
chen dina bruno chen
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045116-p1
For simple comma-separated data without quoted commas, print the first column if the value in the second column is greater than 13.
BEGIN{FS=OFS=","}$2>13{print $1}
dina,19,paused jules,3,pending eli,5,failed jules,16,failed chen,11,closed gus,13,ready ivan,28,pending
dina jules ivan
chen,17,paused hana,1,failed eli,3,paused dina,24,active ivan,13,pending bruno,24,paused chen,21,ready
chen dina bruno chen
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045116
qwen/qwen3.7-plus
awkweave-0045117
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
kim grove 43 eli fable 61 gus amber 39 farah delta 16 eli delta 18 chen amber 94 bruno cobalt 9 chen harbor 30 gus delta 73 chen grove 43
kim grove 43 eli fable 61 gus amber 39 farah delta 16 eli delta 18 chen amber 94 bruno cobalt 9 chen harbor 30 gus delta 73 chen grove 43
jules birch 68 kim harbor 81 alice ember 38 bruno grove 72 chen birch 82 kim delta 25 ivan harbor 36 chen grove 117 chen juniper 101
jules birch 68 kim harbor 81 alice ember 38 bruno grove 72 chen birch 82 kim delta 25 ivan harbor 36 chen grove 117 chen juniper 101
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045117-p1
Remove leading and trailing whitespace, and reduce any internal whitespace sequences to a single space.
{$1=$1;print}
kim grove 43 eli fable 61 gus amber 39 farah delta 16 eli delta 18 chen amber 94 bruno cobalt 9 chen harbor 30 gus delta 73 chen grove 43
kim grove 43 eli fable 61 gus amber 39 farah delta 16 eli delta 18 chen amber 94 bruno cobalt 9 chen harbor 30 gus delta 73 chen grove 43
jules birch 68 kim harbor 81 alice ember 38 bruno grove 72 chen birch 82 kim delta 25 ivan harbor 36 chen grove 117 chen juniper 101
jules birch 68 kim harbor 81 alice ember 38 bruno grove 72 chen birch 82 kim delta 25 ivan harbor 36 chen grove 117 chen juniper 101
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045117
qwen/qwen3.7-plus
awkweave-0045118
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan cobalt 95 closed ivan juniper 39 paused lina delta 103 paused kim delta 113 pending kim amber 81 ready gus amber 115 pending bruno amber 120 ready lina juniper 47 pending lina grove 70 failed jules indigo 53 active
lina juniper 47 pending
ivan cobalt 11 paused alice fable 117 failed ivan delta 85 paused hana ember 24 failed chen juniper 101 pending lina fable 70 failed
chen juniper 101 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045118-p1
Output the longest line from the input, selecting the first one encountered if there is a tie in length.
{if(length($0)>length(best))best=$0}END{print best}
ivan cobalt 95 closed ivan juniper 39 paused lina delta 103 paused kim delta 113 pending kim amber 81 ready gus amber 115 pending bruno amber 120 ready lina juniper 47 pending lina grove 70 failed jules indigo 53 active
lina juniper 47 pending
ivan cobalt 11 paused alice fable 117 failed ivan delta 85 paused hana ember 24 failed chen juniper 101 pending lina fable 70 failed
chen juniper 101 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045118
qwen/qwen3.7-plus
awkweave-0045119
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
lina 50 gus 48 eli 66 bruno 113 alice 87 ivan 19
gus 48 bruno 113 ivan 19
chen 22 bruno 68 chen 51 eli 23 lina 64 hana 17 lina 7
bruno 68 eli 23 hana 17
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045119-p1
Print lines 2, 4, 6, and so on, effectively outputting every second line starting from the second.
NR%2==0
lina 50 gus 48 eli 66 bruno 113 alice 87 ivan 19
gus 48 bruno 113 ivan 19
chen 22 bruno 68 chen 51 eli 23 lina 64 hana 17 lina 7
bruno 68 eli 23 hana 17
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045119
qwen/qwen3.7-plus
awkweave-0045120
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta indigo 95 alpha grove 71 delta delta 34 gamma delta 71 beta indigo 70 alpha fable 75
4
beta cobalt 88 delta fable 79 alpha juniper 47 gamma harbor 67 delta delta 38 beta ember 67 gamma delta 1 beta indigo 52 delta juniper 95 beta cobalt 14
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045120-p1
Calculate and display only the total number of unique values found in the first column.
{if(!seen[$1]++)n++}END{print n+0}
beta indigo 95 alpha grove 71 delta delta 34 gamma delta 71 beta indigo 70 alpha fable 75
4
beta cobalt 88 delta fable 79 alpha juniper 47 gamma harbor 67 delta delta 38 beta ember 67 gamma delta 1 beta indigo 52 delta juniper 95 beta cobalt 14
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045120
qwen/qwen3.7-plus
awkweave-0045121
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}
kim 5 0 lina 29 20 ivan 6 26 chen 27 23 bruno 21 13 ivan 28 16 eli 10 18 chen 30 14 eli 4 21 kim 2 22
lina 1.45 ivan 0.23 chen 1.17 bruno 1.62 ivan 1.75 eli 0.56 chen 2.14 eli 0.19 kim 0.09
gus 7 0 chen 11 4 bruno 1 27 bruno 22 23 chen 7 26 jules 1 4 dina 10 18 lina 28 29
chen 2.75 bruno 0.04 bruno 0.96 chen 0.27 jules 0.25 dina 0.56 lina 0.97
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045121-p1
For each row where the third column is not 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}
kim 5 0 lina 29 20 ivan 6 26 chen 27 23 bruno 21 13 ivan 28 16 eli 10 18 chen 30 14 eli 4 21 kim 2 22
lina 1.45 ivan 0.23 chen 1.17 bruno 1.62 ivan 1.75 eli 0.56 chen 2.14 eli 0.19 kim 0.09
gus 7 0 chen 11 4 bruno 1 27 bruno 22 23 chen 7 26 jules 1 4 dina 10 18 lina 28 29
chen 2.75 bruno 0.04 bruno 0.96 chen 0.27 jules 0.25 dina 0.56 lina 0.97
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045121
qwen/qwen3.7-plus
awkweave-0045122
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 birch 23 gus fable 19 jules juniper 26 chen ember 21 gus fable 10 jules indigo 1 alice harbor 25
jules juniper 26 alice harbor 25 chen birch 23
bruno delta 6 chen ember 21 farah harbor 26 chen harbor 29 alice harbor 9 hana indigo 14 bruno delta 1 farah cobalt 18 farah harbor 13
chen harbor 29 farah harbor 26 chen ember 21
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045122-p1
Display the full records corresponding to the top three highest numeric values in column 3, sorted in descending order, while maintaining 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 birch 23 gus fable 19 jules juniper 26 chen ember 21 gus fable 10 jules indigo 1 alice harbor 25
jules juniper 26 alice harbor 25 chen birch 23
bruno delta 6 chen ember 21 farah harbor 26 chen harbor 29 alice harbor 9 hana indigo 14 bruno delta 1 farah cobalt 18 farah harbor 13
chen harbor 29 farah harbor 26 chen ember 21
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045122
qwen/qwen3.7-plus
awkweave-0045123
Select the 3rd and 2nd fields in that order.
{print $3, $2}
ready lina 69 ready pending chen 48 failed active farah 34 ready active kim 73 failed ready jules 67 closed ready alice 30 ready active bruno 65 failed active alice 22 ready failed jules 43 ready paused gus 118 paused
69 lina 48 chen 34 farah 73 kim 67 jules 30 alice 65 bruno 22 alice 43 jules 118 gus
active kim 77 active pending gus 72 ready closed eli 44 ready closed farah 107 closed paused eli 89 closed ready kim 57 paused failed lina 63 failed closed farah 62 paused
77 kim 72 gus 44 eli 107 farah 89 eli 57 kim 63 lina 62 farah
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045123-p1
Extract and print the third field followed by the second field for each record.
{print $3, $2}
ready lina 69 ready pending chen 48 failed active farah 34 ready active kim 73 failed ready jules 67 closed ready alice 30 ready active bruno 65 failed active alice 22 ready failed jules 43 ready paused gus 118 paused
69 lina 48 chen 34 farah 73 kim 67 jules 30 alice 65 bruno 22 alice 43 jules 118 gus
active kim 77 active pending gus 72 ready closed eli 44 ready closed farah 107 closed paused eli 89 closed ready kim 57 paused failed lina 63 failed closed farah 62 paused
77 kim 72 gus 44 eli 107 farah 89 eli 57 kim 63 lina 62 farah
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045123
qwen/qwen3.7-plus
awkweave-0045124
Print the last field of every input line.
{print $NF}
closed active ember ready closed grove failed pending grove paused failed cobalt failed closed birch failed closed delta pending closed amber ready failed indigo ready ready juniper paused pending grove failed pending juniper ready failed amber
grove cobalt delta indigo grove amber
active failed cobalt paused paused fable pending active amber failed ready harbor paused active indigo pending ready grove paused ready grove failed closed indigo pending failed cobalt pending pending ember failed paused birch active active juniper failed closed indigo pending pending indigo
fable harbor grove indigo ember juniper indigo
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045124-p1
Output the final field from every line of input.
{print $NF}
closed active ember ready closed grove failed pending grove paused failed cobalt failed closed birch failed closed delta pending closed amber ready failed indigo ready ready juniper paused pending grove failed pending juniper ready failed amber
grove cobalt delta indigo grove amber
active failed cobalt paused paused fable pending active amber failed ready harbor paused active indigo pending ready grove paused ready grove failed closed indigo pending failed cobalt pending pending ember failed paused birch active active juniper failed closed indigo pending pending indigo
fable harbor grove indigo ember juniper indigo
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045124
qwen/qwen3.7-plus
awkweave-0045125
Print the complete records where column 2 is at most 74.
$2 <= 74
alice 16 amber hana 6 amber chen 86 harbor eli 84 grove alice 5 birch ivan 7 ember
alice 16 amber hana 6 amber alice 5 birch ivan 7 ember
gus 72 indigo kim 95 indigo eli 15 harbor dina 5 cobalt dina 42 indigo chen 28 juniper gus 55 juniper
gus 72 indigo eli 15 harbor dina 5 cobalt dina 42 indigo chen 28 juniper gus 55 juniper
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045125-p1
Print the entire records where the value in the second column is less than or equal to 74.
$2 <= 74
alice 16 amber hana 6 amber chen 86 harbor eli 84 grove alice 5 birch ivan 7 ember
alice 16 amber hana 6 amber alice 5 birch ivan 7 ember
gus 72 indigo kim 95 indigo eli 15 harbor dina 5 cobalt dina 42 indigo chen 28 juniper gus 55 juniper
gus 72 indigo eli 15 harbor dina 5 cobalt dina 42 indigo chen 28 juniper gus 55 juniper
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045125
qwen/qwen3.7-plus
awkweave-0045126
Show whole lines whose 3rd field is between 12 and 29, inclusive.
$3 >= 12 && $3 <= 29
ember farah 18 grove delta eli 29 indigo amber lina 15 birch amber hana 23 amber juniper kim 27 birch juniper ivan 20 harbor harbor dina 8 cobalt
ember farah 18 grove delta eli 29 indigo amber lina 15 birch amber hana 23 amber juniper kim 27 birch juniper ivan 20 harbor
fable bruno 8 juniper birch chen 30 birch grove eli 20 cobalt cobalt hana 8 juniper grove jules 25 cobalt harbor jules 5 ember ember farah 23 birch amber lina 28 cobalt
grove eli 20 cobalt grove jules 25 cobalt ember farah 23 birch amber lina 28 cobalt
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045126-p1
Display complete lines where the third field falls within the inclusive range of 12 to 29.
$3 >= 12 && $3 <= 29
ember farah 18 grove delta eli 29 indigo amber lina 15 birch amber hana 23 amber juniper kim 27 birch juniper ivan 20 harbor harbor dina 8 cobalt
ember farah 18 grove delta eli 29 indigo amber lina 15 birch amber hana 23 amber juniper kim 27 birch juniper ivan 20 harbor
fable bruno 8 juniper birch chen 30 birch grove eli 20 cobalt cobalt hana 8 juniper grove jules 25 cobalt harbor jules 5 ember ember farah 23 birch amber lina 28 cobalt
grove eli 20 cobalt grove jules 25 cobalt ember farah 23 birch amber lina 28 cobalt
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045126
qwen/qwen3.7-plus
awkweave-0045127
Print column 3 only for rows where column 4 is exactly pending.
$4 == "pending"{print $3}
juniper 11 jules closed delta 91 hana pending indigo 90 farah paused indigo 19 hana active fable 61 ivan paused fable 96 chen failed delta 114 alice active amber 60 alice failed cobalt 5 gus pending
hana gus
harbor 42 chen ready fable 98 hana pending delta 20 eli ready grove 97 hana ready ember 76 chen ready cobalt 108 gus pending juniper 108 eli ready indigo 89 chen active juniper 42 bruno active
hana gus
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045127-p1
Output only the third column for rows where the fourth column contains exactly the text pending.
$4 == "pending"{print $3}
juniper 11 jules closed delta 91 hana pending indigo 90 farah paused indigo 19 hana active fable 61 ivan paused fable 96 chen failed delta 114 alice active amber 60 alice failed cobalt 5 gus pending
hana gus
harbor 42 chen ready fable 98 hana pending delta 20 eli ready grove 97 hana ready ember 76 chen ready cobalt 108 gus pending juniper 108 eli ready indigo 89 chen active juniper 42 bruno active
hana gus
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045127
qwen/qwen3.7-plus
awkweave-0045128
Print all fields from lines where field 1 begins with WARN.
$1 ~ /^WARN/
ERROR 36 indigo INFO 108 grove DEBUG 29 delta WARN 116 amber DEBUG 12 amber ERROR 11 juniper INFO 40 harbor DEBUG 37 delta
WARN 116 amber
WARN 11 grove DEBUG 95 birch WARN 102 juniper INFO 43 ember DEBUG 41 indigo WARN 107 ember ERROR 11 harbor WARN 109 grove
WARN 11 grove WARN 102 juniper WARN 107 ember WARN 109 grove
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045128-p1
Print all fields from any line where the first field starts with the string WARN.
$1 ~ /^WARN/
ERROR 36 indigo INFO 108 grove DEBUG 29 delta WARN 116 amber DEBUG 12 amber ERROR 11 juniper INFO 40 harbor DEBUG 37 delta
WARN 116 amber
WARN 11 grove DEBUG 95 birch WARN 102 juniper INFO 43 ember DEBUG 41 indigo WARN 107 ember ERROR 11 harbor WARN 109 grove
WARN 11 grove WARN 102 juniper WARN 107 ember WARN 109 grove
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045128
qwen/qwen3.7-plus
awkweave-0045129
Print every line except those containing the exact text delta.
$0 !~ /delta/
harbor 10 pending indigo 33 active ember 118 active amber 102 closed juniper 61 closed harbor 114 pending birch 22 ready delta 999 active
harbor 10 pending indigo 33 active ember 118 active amber 102 closed juniper 61 closed harbor 114 pending birch 22 ready
cobalt 117 pending birch 31 paused amber 66 ready grove 111 pending indigo 21 pending harbor 85 active ember 41 pending harbor 45 active juniper 51 closed delta 999 active
cobalt 117 pending birch 31 paused amber 66 ready grove 111 pending indigo 21 pending harbor 85 active ember 41 pending harbor 45 active juniper 51 closed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045129-p1
Output every line except those that contain the exact substring delta.
$0 !~ /delta/
harbor 10 pending indigo 33 active ember 118 active amber 102 closed juniper 61 closed harbor 114 pending birch 22 ready delta 999 active
harbor 10 pending indigo 33 active ember 118 active amber 102 closed juniper 61 closed harbor 114 pending birch 22 ready
cobalt 117 pending birch 31 paused amber 66 ready grove 111 pending indigo 21 pending harbor 85 active ember 41 pending harbor 45 active juniper 51 closed delta 999 active
cobalt 117 pending birch 31 paused amber 66 ready grove 111 pending indigo 21 pending harbor 85 active ember 41 pending harbor 45 active juniper 51 closed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045129
qwen/qwen3.7-plus
awkweave-0045130
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
jules cobalt 46 gus birch 94 eli cobalt 25 kim fable 22 hana birch 87 hana birch 3 farah grove 15 bruno ember 55
gus birch 94 eli cobalt 25
eli harbor 10 bruno harbor 74 jules grove 27 kim cobalt 104 bruno delta 3 kim grove 14 alice birch 13 kim amber 52 lina cobalt 14 hana amber 57
bruno harbor 74 jules grove 27
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045130-p1
Display lines 2 to 3, inclusive.
NR >= 2 && NR <= 3
jules cobalt 46 gus birch 94 eli cobalt 25 kim fable 22 hana birch 87 hana birch 3 farah grove 15 bruno ember 55
gus birch 94 eli cobalt 25
eli harbor 10 bruno harbor 74 jules grove 27 kim cobalt 104 bruno delta 3 kim grove 14 alice birch 13 kim amber 52 lina cobalt 14 hana amber 57
bruno harbor 74 jules grove 27
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045130
qwen/qwen3.7-plus
awkweave-0045131
Output only the first 2 records.
NR <= 2
bruno 36 ember ivan 102 indigo bruno 80 harbor eli 1 juniper dina 56 juniper chen 37 grove ivan 15 harbor dina 102 amber eli 55 indigo jules 58 fable
bruno 36 ember ivan 102 indigo
gus 59 birch farah 16 indigo chen 117 birch eli 25 fable kim 32 harbor alice 113 fable
gus 59 birch farah 16 indigo
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045131-p1
Output just the initial 2 records.
NR <= 2
bruno 36 ember ivan 102 indigo bruno 80 harbor eli 1 juniper dina 56 juniper chen 37 grove ivan 15 harbor dina 102 amber eli 55 indigo jules 58 fable
bruno 36 ember ivan 102 indigo
gus 59 birch farah 16 indigo chen 117 birch eli 25 fable kim 32 harbor alice 113 fable
gus 59 birch farah 16 indigo
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045131
qwen/qwen3.7-plus
awkweave-0045132
Skip the first line and print every remaining line unchanged.
NR > 1
eli 52 harbor dina 7 delta gus 73 cobalt jules 106 indigo farah 107 harbor eli 7 indigo farah 90 juniper eli 97 grove eli 39 amber dina 104 amber
dina 7 delta gus 73 cobalt jules 106 indigo farah 107 harbor eli 7 indigo farah 90 juniper eli 97 grove eli 39 amber dina 104 amber
gus 68 juniper chen 109 cobalt kim 76 amber kim 20 indigo farah 63 indigo lina 65 cobalt
chen 109 cobalt kim 76 amber kim 20 indigo farah 63 indigo lina 65 cobalt
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045132-p1
Omit the first line and output all subsequent lines as they are.
NR > 1
eli 52 harbor dina 7 delta gus 73 cobalt jules 106 indigo farah 107 harbor eli 7 indigo farah 90 juniper eli 97 grove eli 39 amber dina 104 amber
dina 7 delta gus 73 cobalt jules 106 indigo farah 107 harbor eli 7 indigo farah 90 juniper eli 97 grove eli 39 amber dina 104 amber
gus 68 juniper chen 109 cobalt kim 76 amber kim 20 indigo farah 63 indigo lina 65 cobalt
chen 109 cobalt kim 76 amber kim 20 indigo farah 63 indigo lina 65 cobalt
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045132
qwen/qwen3.7-plus
awkweave-0045133
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
dina closed 60 eli active 85 gus failed 86 bruno ready 18 bruno active 17 jules paused 33
1
alice active 10 hana closed 43 alice closed 11 alice active 28 gus active 18 dina pending 47 kim paused 39 eli failed 30
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045133-p1
Tally the records where column 2 is 'closed' and print the count; output 0 if none match.
$2 == "closed"{n++}END{print n+0}
dina closed 60 eli active 85 gus failed 86 bruno ready 18 bruno active 17 jules paused 33
1
alice active 10 hana closed 43 alice closed 11 alice active 28 gus active 18 dina pending 47 kim paused 39 eli failed 30
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045133
qwen/qwen3.7-plus
awkweave-0045134
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
15 kim ember 29 chen birch 1 gus birch 7 dina amber 18 eli cobalt 17 hana grove
87
6 farah amber 11 alice harbor 3 chen delta 27 bruno birch 14 jules indigo 10 jules birch
71
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045134-p1
Compute and display the total sum of integer values in column 1.
{s+=$1}END{print s+0}
15 kim ember 29 chen birch 1 gus birch 7 dina amber 18 eli cobalt 17 hana grove
87
6 farah amber 11 alice harbor 3 chen delta 27 bruno birch 14 jules indigo 10 jules birch
71
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045134
qwen/qwen3.7-plus
awkweave-0045135
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
11 indigo eli 26 cobalt dina 29 fable alice 3 delta chen 23 cobalt bruno 3 indigo bruno 23 indigo lina
16.86
26 harbor lina 23 ember farah 18 ember gus 15 indigo alice 23 birch kim 3 amber alice
18.00
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045135-p1
Print the average of column 1, formatted to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
11 indigo eli 26 cobalt dina 29 fable alice 3 delta chen 23 cobalt bruno 3 indigo bruno 23 indigo lina
16.86
26 harbor lina 23 ember farah 18 ember gus 15 indigo alice 23 birch kim 3 amber alice
18.00
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045135
qwen/qwen3.7-plus
awkweave-0045136
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
24 grove dina 19 indigo lina 12 ember dina 9 amber farah 24 birch bruno 2 birch jules
2
25 amber lina 6 fable hana 15 juniper farah 13 harbor kim 14 juniper bruno 2 ember farah
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045136-p1
Identify and output the minimum numeric value found in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
24 grove dina 19 indigo lina 12 ember dina 9 amber farah 24 birch bruno 2 birch jules
2
25 amber lina 6 fable hana 15 juniper farah 13 harbor kim 14 juniper bruno 2 ember farah
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045136
qwen/qwen3.7-plus
awkweave-0045137
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
birch farah 30 fable chen 28 birch alice 13 delta lina 29 fable bruno 24 ember farah 26 birch bruno 12
30
ember hana 24 cobalt jules 16 fable chen 9 ember eli 28 harbor eli 18 indigo dina 30 amber jules 24 juniper hana 1
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045137-p1
Identify and output the maximum numeric value found in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
birch farah 30 fable chen 28 birch alice 13 delta lina 29 fable bruno 24 ember farah 26 birch bruno 12
30
ember hana 24 cobalt jules 16 fable chen 9 ember eli 28 harbor eli 18 indigo dina 30 amber jules 24 juniper hana 1
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045137
qwen/qwen3.7-plus
awkweave-0045138
Count all input records and print the total.
END{print NR}
alice 48 ivan 22 chen 65 ivan 9 hana 100 eli 34 ivan 100 alice 1 eli 37 kim 54
10
gus 98 ivan 99 kim 53 eli 48 eli 46 lina 98 gus 110 ivan 115 hana 73
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045138-p1
Count the total number of input records and print the result.
END{print NR}
alice 48 ivan 22 chen 65 ivan 9 hana 100 eli 34 ivan 100 alice 1 eli 37 kim 54
10
gus 98 ivan 99 kim 53 eli 48 eli 46 lina 98 gus 110 ivan 115 hana 73
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045138
qwen/qwen3.7-plus
awkweave-0045139
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
kim birch 21 ivan fable 61 chen grove 40 farah amber 21 gus indigo 91 chen grove 40 bruno fable 84
kim birch 21 ivan fable 61 chen grove 40 farah amber 21 gus indigo 91 bruno fable 84
lina harbor 44 gus fable 15 kim indigo 83 eli amber 66 chen amber 106 eli ember 111 eli birch 118 eli ember 111 alice harbor 103 ivan juniper 43
lina harbor 44 gus fable 15 kim indigo 83 eli amber 66 chen amber 106 eli ember 111 eli birch 118 alice harbor 103 ivan juniper 43
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045139-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
kim birch 21 ivan fable 61 chen grove 40 farah amber 21 gus indigo 91 chen grove 40 bruno fable 84
kim birch 21 ivan fable 61 chen grove 40 farah amber 21 gus indigo 91 bruno fable 84
lina harbor 44 gus fable 15 kim indigo 83 eli amber 66 chen amber 106 eli ember 111 eli birch 118 eli ember 111 alice harbor 103 ivan juniper 43
lina harbor 44 gus fable 15 kim indigo 83 eli amber 66 chen amber 106 eli ember 111 eli birch 118 alice harbor 103 ivan juniper 43
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045139
qwen/qwen3.7-plus
awkweave-0045140
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
hana indigo 28 jules ember 99 gus juniper 93 dina fable 51 lina harbor 9 farah grove 6
hana indigo 28 jules ember 99 gus juniper 93 dina fable 51 lina harbor 9 farah grove 6
eli amber 13 eli fable 49 eli birch 68 jules cobalt 77 alice grove 46 lina harbor 82 bruno amber 109
eli amber 13 jules cobalt 77 alice grove 46 lina harbor 82 bruno amber 109
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045140-p1
Retain only the first occurrence for each unique value in column 1, preserving the input order.
!seen[$1]++
hana indigo 28 jules ember 99 gus juniper 93 dina fable 51 lina harbor 9 farah grove 6
hana indigo 28 jules ember 99 gus juniper 93 dina fable 51 lina harbor 9 farah grove 6
eli amber 13 eli fable 49 eli birch 68 jules cobalt 77 alice grove 46 lina harbor 82 bruno amber 109
eli amber 13 jules cobalt 77 alice grove 46 lina harbor 82 bruno amber 109
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045140
qwen/qwen3.7-plus
awkweave-0045141
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
bruno 26 grove hana 25 fable ivan 27 amber alice 24 fable dina 30 indigo dina 22 birch lina 16 amber alice 18 cobalt
bruno 26 hana 51 ivan 78 alice 102 dina 132 dina 154 lina 170 alice 188
gus 3 fable hana 29 delta eli 13 amber ivan 23 fable alice 29 grove lina 13 amber eli 4 indigo gus 20 birch jules 29 cobalt eli 21 amber
gus 3 hana 32 eli 45 ivan 68 alice 97 lina 110 eli 114 gus 134 jules 163 eli 184
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045141-p1
For every record, output column 1 followed by the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
bruno 26 grove hana 25 fable ivan 27 amber alice 24 fable dina 30 indigo dina 22 birch lina 16 amber alice 18 cobalt
bruno 26 hana 51 ivan 78 alice 102 dina 132 dina 154 lina 170 alice 188
gus 3 fable hana 29 delta eli 13 amber ivan 23 fable alice 29 grove lina 13 amber eli 4 indigo gus 20 birch jules 29 cobalt eli 21 amber
gus 3 hana 32 eli 45 ivan 68 alice 97 lina 110 eli 114 gus 134 jules 163 eli 184
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045141
qwen/qwen3.7-plus
awkweave-0045142
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
farah 28 30 cobalt eli 19 20 juniper chen 12 4 indigo bruno 28 2 fable jules 8 4 ember ivan 2 3 grove dina 28 21 birch bruno 28 12 ember gus 19 18 delta
farah 58 eli 39 chen 16 bruno 30 jules 12 ivan 5 dina 49 bruno 40 gus 37
gus 11 17 harbor eli 6 19 harbor chen 13 22 juniper jules 7 15 birch chen 19 2 cobalt lina 7 23 amber
gus 28 eli 25 chen 35 jules 22 chen 21 lina 30
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045142-p1
For each line, output the first field followed by the total of the second and third fields.
{print $1,$2+$3}
farah 28 30 cobalt eli 19 20 juniper chen 12 4 indigo bruno 28 2 fable jules 8 4 ember ivan 2 3 grove dina 28 21 birch bruno 28 12 ember gus 19 18 delta
farah 58 eli 39 chen 16 bruno 30 jules 12 ivan 5 dina 49 bruno 40 gus 37
gus 11 17 harbor eli 6 19 harbor chen 13 22 juniper jules 7 15 birch chen 19 2 cobalt lina 7 23 amber
gus 28 eli 25 chen 35 jules 22 chen 21 lina 30
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045142
qwen/qwen3.7-plus
awkweave-0045143
Print column 1 and pass when column 2 is at least 27; otherwise print fail.
{print $1,($2>=27?"pass":"fail")}
eli 18 hana 28 kim 19 eli 20 bruno 26 eli 26
eli fail hana pass kim fail eli fail bruno fail eli fail
gus 30 kim 8 gus 20 farah 3 alice 7 ivan 20 chen 25 jules 12 jules 6 hana 9
gus pass kim fail gus fail farah fail alice fail ivan fail chen fail jules fail jules fail hana fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045143-p1
Output the first column; if the second column is 27 or higher, print 'pass', otherwise print 'fail'.
{print $1,($2>=27?"pass":"fail")}
eli 18 hana 28 kim 19 eli 20 bruno 26 eli 26
eli fail hana pass kim fail eli fail bruno fail eli fail
gus 30 kim 8 gus 20 farah 3 alice 7 ivan 20 chen 25 jules 12 jules 6 hana 9
gus pass kim fail gus fail farah fail alice fail ivan fail chen fail jules fail jules fail hana fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045143
qwen/qwen3.7-plus
awkweave-0045144
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
ivan birch 110 ivan birch 21 lina grove 79 alice birch 75 dina amber 82 bruno fable 12 chen grove 57 dina delta 72
IVAN IVAN LINA ALICE DINA BRUNO CHEN DINA
chen ember 72 dina delta 41 eli delta 22 dina cobalt 80 ivan grove 89 jules grove 65 chen fable 22 ivan harbor 39 bruno ember 49
CHEN DINA ELI DINA IVAN JULES CHEN IVAN BRUNO
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045144-p1
Transform the first column to uppercase and display only that modified column.
{print toupper($1)}
ivan birch 110 ivan birch 21 lina grove 79 alice birch 75 dina amber 82 bruno fable 12 chen grove 57 dina delta 72
IVAN IVAN LINA ALICE DINA BRUNO CHEN DINA
chen ember 72 dina delta 41 eli delta 22 dina cobalt 80 ivan grove 89 jules grove 65 chen fable 22 ivan harbor 39 bruno ember 49
CHEN DINA ELI DINA IVAN JULES CHEN IVAN BRUNO
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045144
qwen/qwen3.7-plus
awkweave-0045145
From column 1, print 3 characters starting at character 2.
{print substr($1,2,3)}
delta 90 ember 106 juniper 115 ember 58 juniper 84 juniper 11
elt mbe uni mbe uni uni
fable 22 delta 76 fable 35 harbor 49 birch 17 grove 37 juniper 29
abl elt abl arb irc rov uni
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045145-p1
Extract and print a 3-character substring from the first column, starting at the second character.
{print substr($1,2,3)}
delta 90 ember 106 juniper 115 ember 58 juniper 84 juniper 11
elt mbe uni mbe uni uni
fable 22 delta 76 fable 35 harbor 49 birch 17 grove 37 juniper 29
abl elt abl arb irc rov uni
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045145
qwen/qwen3.7-plus
awkweave-0045146
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
ember_cobalt 30 juniper_harbor 51 fable_birch 58 juniper_amber 116 indigo_delta 114 birch_juniper 27 birch_amber 60
ember cobalt juniper harbor fable birch juniper amber indigo delta birch juniper birch amber
cobalt_juniper 36 delta_delta 10 birch_grove 37 grove_cobalt 96 ember_fable 95 amber_grove 4 fable_harbor 50 juniper_birch 99
cobalt juniper delta delta birch grove grove cobalt ember fable amber grove fable harbor juniper birch
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045146-p1
Substitute all underscores in the first column with spaces and output the result.
{gsub(/_/," ",$1);print $1}
ember_cobalt 30 juniper_harbor 51 fable_birch 58 juniper_amber 116 indigo_delta 114 birch_juniper 27 birch_amber 60
ember cobalt juniper harbor fable birch juniper amber indigo delta birch juniper birch amber
cobalt_juniper 36 delta_delta 10 birch_grove 37 grove_cobalt 96 ember_fable 95 amber_grove 4 fable_harbor 50 juniper_birch 99
cobalt juniper delta delta birch grove grove cobalt ember fable amber grove fable harbor juniper birch
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045146
qwen/qwen3.7-plus
awkweave-0045147
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)}
kim birch 116 failed hana harbor 115 active jules ember 71 ready dina birch 103 pending bruno ember 3 failed hana grove 14 pending eli indigo 40 failed
failed 116 birch kim active 115 harbor hana ready 71 ember jules pending 103 birch dina failed 3 ember bruno pending 14 grove hana failed 40 indigo eli
ivan juniper 97 ready gus grove 15 paused gus harbor 51 pending lina indigo 15 ready jules amber 90 failed farah delta 101 active alice grove 41 paused
ready 97 juniper ivan paused 15 grove gus pending 51 harbor gus ready 15 indigo lina failed 90 amber jules active 101 delta farah paused 41 grove alice
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045147-p1
Reverse the sequence of fields for every line and print all of them.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
kim birch 116 failed hana harbor 115 active jules ember 71 ready dina birch 103 pending bruno ember 3 failed hana grove 14 pending eli indigo 40 failed
failed 116 birch kim active 115 harbor hana ready 71 ember jules pending 103 birch dina failed 3 ember bruno pending 14 grove hana failed 40 indigo eli
ivan juniper 97 ready gus grove 15 paused gus harbor 51 pending lina indigo 15 ready jules amber 90 failed farah delta 101 active alice grove 41 paused
ready 97 juniper ivan paused 15 grove gus pending 51 harbor gus ready 15 indigo lina failed 90 amber jules active 101 delta farah paused 41 grove alice
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045147
qwen/qwen3.7-plus
awkweave-0045148
Print the number of whitespace-separated fields on each line.
{print NF}
ivan ember 105 ready ivan grove 104 active kim cobalt 117 failed lina harbor 58 paused lina harbor 5 failed chen fable 93 paused eli harbor 113 ready
4 4 4 4 4 4 4
kim juniper 24 ready dina juniper 76 ready alice ember 84 paused dina grove 91 ready farah grove 10 active hana cobalt 85 active chen fable 80 pending
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045148-p1
Output the count of whitespace-delimited fields for each line.
{print NF}
ivan ember 105 ready ivan grove 104 active kim cobalt 117 failed lina harbor 58 paused lina harbor 5 failed chen fable 93 paused eli harbor 113 ready
4 4 4 4 4 4 4
kim juniper 24 ready dina juniper 76 ready alice ember 84 paused dina grove 91 ready farah grove 10 active hana cobalt 85 active chen fable 80 pending
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045148
qwen/qwen3.7-plus
awkweave-0045149
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]]}
dina alpha 63 alice delta 54 bruno beta 98 kim beta 11 eli beta 112 lina delta 116 kim gamma 18 dina beta 40 alice alpha 66
alpha 2 delta 2 beta 4 gamma 1
eli gamma 87 ivan beta 89 chen beta 42 hana alpha 14 lina beta 10 kim alpha 116 chen delta 0 bruno beta 85 bruno delta 12
gamma 1 beta 4 alpha 2 delta 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045149-p1
Tally the number of records for each unique value in the second column, printing the value and its count in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
dina alpha 63 alice delta 54 bruno beta 98 kim beta 11 eli beta 112 lina delta 116 kim gamma 18 dina beta 40 alice alpha 66
alpha 2 delta 2 beta 4 gamma 1
eli gamma 87 ivan beta 89 chen beta 42 hana alpha 14 lina beta 10 kim alpha 116 chen delta 0 bruno beta 85 bruno delta 12
gamma 1 beta 4 alpha 2 delta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045149
qwen/qwen3.7-plus
awkweave-0045150
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]]}
farah alpha 22 farah gamma 24 ivan alpha 25 ivan beta 16 lina alpha 11 jules delta 19 bruno alpha 25 bruno gamma 8 dina beta 7 dina gamma 22
alpha 83 gamma 54 beta 23 delta 19
ivan alpha 7 dina alpha 4 farah gamma 21 jules beta 20 ivan delta 18 alice beta 15 dina beta 22 ivan beta 14 lina alpha 5
alpha 16 gamma 21 beta 71 delta 18
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045150-p1
Calculate the sum of the third column grouped by the second column, displaying 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]]}
farah alpha 22 farah gamma 24 ivan alpha 25 ivan beta 16 lina alpha 11 jules delta 19 bruno alpha 25 bruno gamma 8 dina beta 7 dina gamma 22
alpha 83 gamma 54 beta 23 delta 19
ivan alpha 7 dina alpha 4 farah gamma 21 jules beta 20 ivan delta 18 alice beta 15 dina beta 22 ivan beta 14 lina alpha 5
alpha 16 gamma 21 beta 71 delta 18
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045150
qwen/qwen3.7-plus
awkweave-0045151
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 birch 31 beta harbor 59 delta cobalt 25 delta delta 107 delta amber 36 beta grove 82
delta 4 beta 2
delta indigo 29 delta delta 101 beta grove 91 gamma juniper 79 delta cobalt 55 alpha juniper 63 gamma birch 26 alpha amber 109 alpha ember 84 alpha fable 120
delta 3 gamma 2 alpha 4
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045151-p1
List each duplicate value from the first column along with its occurrence count, 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 birch 31 beta harbor 59 delta cobalt 25 delta delta 107 delta amber 36 beta grove 82
delta 4 beta 2
delta indigo 29 delta delta 101 beta grove 91 gamma juniper 79 delta cobalt 55 alpha juniper 63 gamma birch 26 alpha amber 109 alpha ember 84 alpha fable 120
delta 3 gamma 2 alpha 4
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045151
qwen/qwen3.7-plus
awkweave-0045152
The first row is a header. Print the state column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
record_id score state note r001 kim 22 paused r002 jules 26 ready r003 kim 9 failed r004 eli 21 closed r005 alice 30 failed r006 eli 22 paused r007 alice 4 pending r008 kim 4 closed r009 dina 7 ready r010 lina 19 ready
22 26 9 21 30 22 4 4 7 19
record_id score state note r001 chen 8 failed r002 bruno 20 closed r003 bruno 4 active r004 dina 27 failed r005 eli 14 ready r006 hana 30 paused r007 hana 26 pending r008 gus 10 pending r009 dina 14 ready r010 eli 25 pending
8 20 4 27 14 30 26 10 14 25
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045152-p1
Skip the header row and print the 'state' column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
record_id score state note r001 kim 22 paused r002 jules 26 ready r003 kim 9 failed r004 eli 21 closed r005 alice 30 failed r006 eli 22 paused r007 alice 4 pending r008 kim 4 closed r009 dina 7 ready r010 lina 19 ready
22 26 9 21 30 22 4 4 7 19
record_id score state note r001 chen 8 failed r002 bruno 20 closed r003 bruno 4 active r004 dina 27 failed r005 eli 14 ready r006 hana 30 paused r007 hana 26 pending r008 gus 10 pending r009 dina 14 ready r010 eli 25 pending
8 20 4 27 14 30 26 10 14 25
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045152
qwen/qwen3.7-plus
awkweave-0045153
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 chen 11 active r002 jules 13 closed r003 ivan 18 ready r004 farah 21 failed r005 lina 23 failed r006 lina 18 closed r007 kim 26 failed r008 kim 16 active r009 hana 7 paused r010 kim 8 paused
ivan farah lina lina kim kim
record_id display_name score state r001 chen 25 pending r002 dina 8 paused r003 dina 18 pending r004 alice 4 active r005 alice 20 pending r006 ivan 14 paused r007 kim 13 failed r008 kim 17 closed
chen dina alice ivan kim
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045153-p1
Ignoring the header, print the 'display_name' for rows where the 'score' exceeds 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 chen 11 active r002 jules 13 closed r003 ivan 18 ready r004 farah 21 failed r005 lina 23 failed r006 lina 18 closed r007 kim 26 failed r008 kim 16 active r009 hana 7 paused r010 kim 8 paused
ivan farah lina lina kim kim
record_id display_name score state r001 chen 25 pending r002 dina 8 paused r003 dina 18 pending r004 alice 4 active r005 alice 20 pending r006 ivan 14 paused r007 kim 13 failed r008 kim 17 closed
chen dina alice ivan kim
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045153
qwen/qwen3.7-plus
awkweave-0045154
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
dina 21 paused eli 23 ready hana 18 failed chen 19 paused dina 1 ready ivan 30 paused ivan 30 closed eli 12 ready hana 17 failed hana 5 pending
21 23 18 19 1 30 30 12 17 5
chen 16 ready alice 5 failed kim 12 active farah 20 paused alice 22 paused eli 12 active lina 8 ready eli 22 paused farah 22 pending kim 16 ready
16 5 12 20 22 12 8 22 22 16
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045154-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
dina 21 paused eli 23 ready hana 18 failed chen 19 paused dina 1 ready ivan 30 paused ivan 30 closed eli 12 ready hana 17 failed hana 5 pending
21 23 18 19 1 30 30 12 17 5
chen 16 ready alice 5 failed kim 12 active farah 20 paused alice 22 paused eli 12 active lina 8 ready eli 22 paused farah 22 pending kim 16 ready
16 5 12 20 22 12 8 22 22 16
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0045154
qwen/qwen3.7-plus
awkweave-0045155
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 24.
BEGIN{FS=OFS=","}$2>24{print $1}
alice,14,active ivan,8,ready farah,28,closed ivan,5,pending chen,16,paused ivan,25,ready lina,25,active dina,30,failed kim,17,paused eli,12,active
farah ivan lina dina
chen,5,closed gus,8,ready eli,27,active ivan,2,active eli,19,ready ivan,21,pending
eli
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045155-p1
Output the first column of comma-separated rows where the second column is greater than 24, assuming no quoted commas.
BEGIN{FS=OFS=","}$2>24{print $1}
alice,14,active ivan,8,ready farah,28,closed ivan,5,pending chen,16,paused ivan,25,ready lina,25,active dina,30,failed kim,17,paused eli,12,active
farah ivan lina dina
chen,5,closed gus,8,ready eli,27,active ivan,2,active eli,19,ready ivan,21,pending
eli
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045155
qwen/qwen3.7-plus
awkweave-0045156
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
gus juniper 67 hana harbor 107 kim delta 87 gus fable 59 hana fable 110 bruno harbor 105 eli harbor 34 ivan harbor 54
gus juniper 67 hana harbor 107 kim delta 87 gus fable 59 hana fable 110 bruno harbor 105 eli harbor 34 ivan harbor 54
ivan ember 113 dina cobalt 110 farah ember 73 lina cobalt 6 chen ember 103 alice ember 34
ivan ember 113 dina cobalt 110 farah ember 73 lina cobalt 6 chen ember 103 alice ember 34
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045156-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
gus juniper 67 hana harbor 107 kim delta 87 gus fable 59 hana fable 110 bruno harbor 105 eli harbor 34 ivan harbor 54
gus juniper 67 hana harbor 107 kim delta 87 gus fable 59 hana fable 110 bruno harbor 105 eli harbor 34 ivan harbor 54
ivan ember 113 dina cobalt 110 farah ember 73 lina cobalt 6 chen ember 103 alice ember 34
ivan ember 113 dina cobalt 110 farah ember 73 lina cobalt 6 chen ember 103 alice ember 34
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045156
qwen/qwen3.7-plus
awkweave-0045157
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
dina ember 48 closed bruno cobalt 22 pending alice indigo 42 ready bruno fable 67 active gus delta 88 ready eli birch 10 ready kim delta 31 active jules fable 14 active jules juniper 41 failed farah fable 81 active
bruno cobalt 22 pending
farah amber 39 closed alice ember 13 pending farah indigo 67 paused hana grove 73 ready hana delta 15 closed eli juniper 2 ready
alice ember 13 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045157-p1
Identify and print the longest line in the input; if multiple lines share the maximum length, output the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
dina ember 48 closed bruno cobalt 22 pending alice indigo 42 ready bruno fable 67 active gus delta 88 ready eli birch 10 ready kim delta 31 active jules fable 14 active jules juniper 41 failed farah fable 81 active
bruno cobalt 22 pending
farah amber 39 closed alice ember 13 pending farah indigo 67 paused hana grove 73 ready hana delta 15 closed eli juniper 2 ready
alice ember 13 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045157
qwen/qwen3.7-plus
awkweave-0045158
Print every 4th line starting at line 2 (then line 6, and so on).
NR%4==2
bruno 15 ivan 65 ivan 35 alice 36 ivan 100 dina 12 eli 81 bruno 104 hana 18 jules 99
ivan 65 dina 12 jules 99
hana 113 dina 116 gus 94 ivan 16 bruno 20 farah 95
dina 116 farah 95
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045158-p1
Print lines 2, 6, 10, and so on, effectively selecting every fourth line starting from the second.
NR%4==2
bruno 15 ivan 65 ivan 35 alice 36 ivan 100 dina 12 eli 81 bruno 104 hana 18 jules 99
ivan 65 dina 12 jules 99
hana 113 dina 116 gus 94 ivan 16 bruno 20 farah 95
dina 116 farah 95
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045158
qwen/qwen3.7-plus
awkweave-0045159
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta juniper 35 alpha fable 24 beta grove 22 gamma ember 17 alpha indigo 42 alpha amber 106 beta grove 102
6
delta ember 22 delta juniper 88 delta birch 37 beta ember 71 delta birch 25 delta fable 76 alpha ember 107
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045159-p1
Calculate and output only the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
beta juniper 35 alpha fable 24 beta grove 22 gamma ember 17 alpha indigo 42 alpha amber 106 beta grove 102
6
delta ember 22 delta juniper 88 delta birch 37 beta ember 71 delta birch 25 delta fable 76 alpha ember 107
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045159
qwen/qwen3.7-plus
awkweave-0045160
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}
lina 17 0 jules 29 13 hana 5 19 hana 22 28 eli 16 6 bruno 24 19 kim 9 26 alice 15 7 alice 30 10 jules 9 2
jules 2.23 hana 0.26 hana 0.79 eli 2.67 bruno 1.26 kim 0.35 alice 2.14 alice 3.00 jules 4.50
bruno 10 0 eli 24 28 jules 13 22 lina 12 11 bruno 13 28 kim 16 9
eli 0.86 jules 0.59 lina 1.09 bruno 0.46 kim 1.78
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045160-p1
For each row where the third column is non-zero, print the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
lina 17 0 jules 29 13 hana 5 19 hana 22 28 eli 16 6 bruno 24 19 kim 9 26 alice 15 7 alice 30 10 jules 9 2
jules 2.23 hana 0.26 hana 0.79 eli 2.67 bruno 1.26 kim 0.35 alice 2.14 alice 3.00 jules 4.50
bruno 10 0 eli 24 28 jules 13 22 lina 12 11 bruno 13 28 kim 16 9
eli 0.86 jules 0.59 lina 1.09 bruno 0.46 kim 1.78
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045160
qwen/qwen3.7-plus
awkweave-0045161
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
eli amber 11 ivan fable 16 ivan fable 10 alice ember 24 alice grove 28 hana delta 11 eli grove 14
alice grove 28 alice ember 24 ivan fable 16
farah grove 16 dina juniper 9 farah amber 20 gus ember 16 eli amber 23 eli delta 10 gus fable 1 hana cobalt 25 lina grove 2
hana cobalt 25 eli amber 23 farah amber 20
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045161-p1
Output the three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
eli amber 11 ivan fable 16 ivan fable 10 alice ember 24 alice grove 28 hana delta 11 eli grove 14
alice grove 28 alice ember 24 ivan fable 16
farah grove 16 dina juniper 9 farah amber 20 gus ember 16 eli amber 23 eli delta 10 gus fable 1 hana cobalt 25 lina grove 2
hana cobalt 25 eli amber 23 farah amber 20
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045161
qwen/qwen3.7-plus
awkweave-0045162
For each line, output fields 5 and 3, in that order.
{print $5, $3}
failed farah 67 failed ember paused alice 19 closed fable pending lina 73 paused amber pending eli 18 pending harbor closed gus 4 failed ember paused gus 37 paused indigo paused alice 60 failed juniper closed lina 5 active indigo ready farah 2 closed harbor pending kim 103 paused delta
ember 67 fable 19 amber 73 harbor 18 ember 4 indigo 37 juniper 60 indigo 5 harbor 2 delta 103
active lina 91 failed indigo paused jules 7 failed harbor closed farah 101 active juniper paused kim 44 failed cobalt pending ivan 81 pending grove pending hana 114 failed delta
indigo 91 harbor 7 juniper 101 cobalt 44 grove 81 delta 114
project_fields
1
train
original-grammar
CC-BY-4.0
null
null