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-0034771-p1
Extract and print a substring of length 2 from column 1, starting at the third character.
{print substr($1,3,2)}
birch 62 indigo 3 birch 89 ember 2 amber 15 amber 54
rc di rc be be be
harbor 99 cobalt 74 cobalt 18 birch 108 ember 22 indigo 59
rb ba ba rc be di
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034771
qwen/qwen3.7-plus
awkweave-0034772
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
juniper_birch 101 ember_birch 53 indigo_amber 84 cobalt_fable 118 amber_amber 56 amber_delta 44 fable_grove 32 juniper_juniper 103 harbor_ember 76
juniper birch ember birch indigo amber cobalt fable amber amber amber delta fable grove juniper juniper harbor ember
birch_amber 105 amber_harbor 17 amber_juniper 16 fable_amber 18 fable_juniper 63 cobalt_indigo 66 indigo_delta 46 grove_juniper 102
birch amber amber harbor amber juniper fable amber fable juniper cobalt indigo indigo delta grove juniper
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034772-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
juniper_birch 101 ember_birch 53 indigo_amber 84 cobalt_fable 118 amber_amber 56 amber_delta 44 fable_grove 32 juniper_juniper 103 harbor_ember 76
juniper birch ember birch indigo amber cobalt fable amber amber amber delta fable grove juniper juniper harbor ember
birch_amber 105 amber_harbor 17 amber_juniper 16 fable_amber 18 fable_juniper 63 cobalt_indigo 66 indigo_delta 46 grove_juniper 102
birch amber amber harbor amber juniper fable amber fable juniper cobalt indigo indigo delta grove juniper
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034772
qwen/qwen3.7-plus
awkweave-0034773
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)}
hana harbor 15 pending farah cobalt 120 ready jules amber 115 paused hana grove 51 pending hana juniper 85 ready bruno harbor 25 closed
pending 15 harbor hana ready 120 cobalt farah paused 115 amber jules pending 51 grove hana ready 85 juniper hana closed 25 harbor bruno
jules cobalt 8 closed dina birch 19 ready chen indigo 90 pending chen juniper 92 failed dina cobalt 24 paused ivan juniper 39 ready
closed 8 cobalt jules ready 19 birch dina pending 90 indigo chen failed 92 juniper chen paused 24 cobalt dina ready 39 juniper ivan
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034773-p1
Reverse the sequence of fields on each line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
hana harbor 15 pending farah cobalt 120 ready jules amber 115 paused hana grove 51 pending hana juniper 85 ready bruno harbor 25 closed
pending 15 harbor hana ready 120 cobalt farah paused 115 amber jules pending 51 grove hana ready 85 juniper hana closed 25 harbor bruno
jules cobalt 8 closed dina birch 19 ready chen indigo 90 pending chen juniper 92 failed dina cobalt 24 paused ivan juniper 39 ready
closed 8 cobalt jules ready 19 birch dina pending 90 indigo chen failed 92 juniper chen paused 24 cobalt dina ready 39 juniper ivan
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034773
qwen/qwen3.7-plus
awkweave-0034774
Print the number of whitespace-separated fields on each line.
{print NF}
gus cobalt 61 paused ivan fable 32 failed kim indigo 33 closed hana delta 22 active chen birch 35 paused gus indigo 94 closed chen indigo 120 pending hana fable 35 failed bruno amber 49 active dina grove 100 active
4 4 4 4 4 4 4 4 4 4
chen fable 54 closed eli fable 49 pending kim juniper 60 active alice birch 117 pending alice grove 53 active kim indigo 94 pending
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034774-p1
Output the count of whitespace-delimited fields for each line.
{print NF}
gus cobalt 61 paused ivan fable 32 failed kim indigo 33 closed hana delta 22 active chen birch 35 paused gus indigo 94 closed chen indigo 120 pending hana fable 35 failed bruno amber 49 active dina grove 100 active
4 4 4 4 4 4 4 4 4 4
chen fable 54 closed eli fable 49 pending kim juniper 60 active alice birch 117 pending alice grove 53 active kim indigo 94 pending
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034774
qwen/qwen3.7-plus
awkweave-0034775
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
chen delta 50 dina beta 120 hana beta 39 kim gamma 76 kim delta 72 farah delta 43 dina beta 9 alice gamma 67
delta 3 beta 3 gamma 2
dina gamma 45 dina delta 95 eli gamma 53 bruno alpha 64 farah delta 107 jules delta 74 chen gamma 109 dina beta 97
gamma 3 delta 3 alpha 1 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034775-p1
Tally the number of records for each distinct value in column 2, printing the value and its count in the order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
chen delta 50 dina beta 120 hana beta 39 kim gamma 76 kim delta 72 farah delta 43 dina beta 9 alice gamma 67
delta 3 beta 3 gamma 2
dina gamma 45 dina delta 95 eli gamma 53 bruno alpha 64 farah delta 107 jules delta 74 chen gamma 109 dina beta 97
gamma 3 delta 3 alpha 1 beta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034775
qwen/qwen3.7-plus
awkweave-0034776
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]]}
bruno beta 2 lina beta 4 ivan delta 16 eli gamma 14 lina gamma 27 kim delta 14 bruno alpha 8 jules alpha 20
beta 6 delta 30 gamma 41 alpha 28
jules delta 26 farah beta 6 eli alpha 1 farah delta 1 ivan gamma 25 gus gamma 12
delta 27 beta 6 alpha 1 gamma 37
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034776-p1
Calculate the sum of column 3 grouped by categories in column 2, displaying the results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
bruno beta 2 lina beta 4 ivan delta 16 eli gamma 14 lina gamma 27 kim delta 14 bruno alpha 8 jules alpha 20
beta 6 delta 30 gamma 41 alpha 28
jules delta 26 farah beta 6 eli alpha 1 farah delta 1 ivan gamma 25 gus gamma 12
delta 27 beta 6 alpha 1 gamma 37
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034776
qwen/qwen3.7-plus
awkweave-0034777
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma grove 30 gamma juniper 106 alpha amber 81 alpha indigo 96 gamma birch 49 delta harbor 92 delta fable 89
gamma 3 alpha 2 delta 2
gamma juniper 120 gamma amber 112 gamma birch 60 delta indigo 28 delta grove 97 delta fable 44 gamma delta 11
gamma 4 delta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034777-p1
List each duplicated value from column 1 along with its frequency, ordered by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma grove 30 gamma juniper 106 alpha amber 81 alpha indigo 96 gamma birch 49 delta harbor 92 delta fable 89
gamma 3 alpha 2 delta 2
gamma juniper 120 gamma amber 112 gamma birch 60 delta indigo 28 delta grove 97 delta fable 44 gamma delta 11
gamma 4 delta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034777
qwen/qwen3.7-plus
awkweave-0034778
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"]}
region state display_name note r001 hana 24 paused r002 farah 13 failed r003 ivan 19 pending r004 gus 29 failed r005 dina 9 ready r006 alice 3 active r007 dina 27 active
paused failed pending failed ready active active
region state display_name note r001 eli 16 closed r002 ivan 21 failed r003 bruno 27 paused r004 alice 21 paused r005 farah 15 failed r006 kim 30 active r007 kim 24 paused r008 chen 10 ready r009 ivan 14 closed r010 chen 21 paused
closed failed paused paused failed active paused ready closed paused
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034778-p1
Skip the header row and output the note column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
region state display_name note r001 hana 24 paused r002 farah 13 failed r003 ivan 19 pending r004 gus 29 failed r005 dina 9 ready r006 alice 3 active r007 dina 27 active
paused failed pending failed ready active active
region state display_name note r001 eli 16 closed r002 ivan 21 failed r003 bruno 27 paused r004 alice 21 paused r005 farah 15 failed r006 kim 30 active r007 kim 24 paused r008 chen 10 ready r009 ivan 14 closed r010 chen 21 paused
closed failed paused paused failed active paused ready closed paused
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034778
qwen/qwen3.7-plus
awkweave-0034779
The first row is a header. Print display_name for data rows whose score is greater than 22.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]}
record_id display_name score state r001 ivan 16 ready r002 dina 28 failed r003 farah 23 ready r004 eli 5 failed r005 bruno 25 failed r006 ivan 2 active
dina farah bruno
record_id display_name score state r001 dina 9 ready r002 bruno 7 active r003 jules 17 failed r004 dina 7 failed r005 bruno 10 pending r006 ivan 5 closed r007 hana 7 paused r008 chen 12 ready
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034779-p1
Ignoring the header, print the display_name field for any record where the score is strictly greater than 22.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]}
record_id display_name score state r001 ivan 16 ready r002 dina 28 failed r003 farah 23 ready r004 eli 5 failed r005 bruno 25 failed r006 ivan 2 active
dina farah bruno
record_id display_name score state r001 dina 9 ready r002 bruno 7 active r003 jules 17 failed r004 dina 7 failed r005 bruno 10 pending r006 ivan 5 closed r007 hana 7 paused r008 chen 12 ready
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034779
qwen/qwen3.7-plus
awkweave-0034780
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
jules 24 pending chen 13 active hana 10 closed ivan 13 paused bruno 29 ready lina 15 paused dina 14 pending
24 13 10 13 29 15 14
alice 11 ready lina 25 paused bruno 29 pending alice 5 active eli 18 active ivan 8 pending
11 25 29 5 18 8
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034780-p1
Given tab-separated input, extract and print the second column from every line.
BEGIN{FS=OFS="\t"}{print $2}
jules 24 pending chen 13 active hana 10 closed ivan 13 paused bruno 29 ready lina 15 paused dina 14 pending
24 13 10 13 29 15 14
alice 11 ready lina 25 paused bruno 29 pending alice 5 active eli 18 active ivan 8 pending
11 25 29 5 18 8
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034780
qwen/qwen3.7-plus
awkweave-0034781
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 15.
BEGIN{FS=OFS=","}$2>15{print $1}
ivan,12,ready jules,19,pending farah,6,closed lina,26,active chen,28,active bruno,13,ready dina,9,ready hana,27,failed eli,20,closed
jules lina chen hana eli
bruno,30,closed farah,26,closed chen,13,pending farah,8,ready dina,1,pending chen,17,closed
bruno farah chen
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034781-p1
For simple comma-separated input without quoted commas, print the first column only if the second column value is greater than 15.
BEGIN{FS=OFS=","}$2>15{print $1}
ivan,12,ready jules,19,pending farah,6,closed lina,26,active chen,28,active bruno,13,ready dina,9,ready hana,27,failed eli,20,closed
jules lina chen hana eli
bruno,30,closed farah,26,closed chen,13,pending farah,8,ready dina,1,pending chen,17,closed
bruno farah chen
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034781
qwen/qwen3.7-plus
awkweave-0034782
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
alice juniper 76 lina grove 104 dina harbor 27 alice indigo 11 kim birch 61 kim harbor 78 kim indigo 30 jules amber 13 eli indigo 1 eli indigo 2
alice juniper 76 lina grove 104 dina harbor 27 alice indigo 11 kim birch 61 kim harbor 78 kim indigo 30 jules amber 13 eli indigo 1 eli indigo 2
hana delta 105 hana grove 96 alice cobalt 40 lina grove 54 dina ember 61 kim juniper 93
hana delta 105 hana grove 96 alice cobalt 40 lina grove 54 dina ember 61 kim juniper 93
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034782-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
alice juniper 76 lina grove 104 dina harbor 27 alice indigo 11 kim birch 61 kim harbor 78 kim indigo 30 jules amber 13 eli indigo 1 eli indigo 2
alice juniper 76 lina grove 104 dina harbor 27 alice indigo 11 kim birch 61 kim harbor 78 kim indigo 30 jules amber 13 eli indigo 1 eli indigo 2
hana delta 105 hana grove 96 alice cobalt 40 lina grove 54 dina ember 61 kim juniper 93
hana delta 105 hana grove 96 alice cobalt 40 lina grove 54 dina ember 61 kim juniper 93
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034782
qwen/qwen3.7-plus
awkweave-0034783
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
kim delta 4 paused eli delta 34 ready lina fable 114 active gus amber 107 failed hana ember 19 pending bruno indigo 56 pending kim delta 19 paused bruno fable 49 ready
bruno indigo 56 pending
jules amber 45 failed hana ember 118 paused gus harbor 60 pending jules birch 88 paused hana harbor 4 pending gus grove 27 paused hana indigo 101 ready farah harbor 110 ready kim juniper 34 paused
farah harbor 110 ready
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034783-p1
Identify and print the longest line from the input; in case of a tie in length, select the first occurrence.
{if(length($0)>length(best))best=$0}END{print best}
kim delta 4 paused eli delta 34 ready lina fable 114 active gus amber 107 failed hana ember 19 pending bruno indigo 56 pending kim delta 19 paused bruno fable 49 ready
bruno indigo 56 pending
jules amber 45 failed hana ember 118 paused gus harbor 60 pending jules birch 88 paused hana harbor 4 pending gus grove 27 paused hana indigo 101 ready farah harbor 110 ready kim juniper 34 paused
farah harbor 110 ready
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034783
qwen/qwen3.7-plus
awkweave-0034784
Print every 4th line starting at line 1 (then line 5, and so on).
NR%4==1
chen 92 chen 6 lina 107 jules 92 jules 93 farah 52 bruno 88
chen 92 jules 93
jules 79 chen 112 kim 1 hana 20 chen 118 kim 94 bruno 59 gus 10
jules 79 chen 118
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034784-p1
Output every fourth line beginning with the first line (i.e., lines 1, 5, 9, etc.).
NR%4==1
chen 92 chen 6 lina 107 jules 92 jules 93 farah 52 bruno 88
chen 92 jules 93
jules 79 chen 112 kim 1 hana 20 chen 118 kim 94 bruno 59 gus 10
jules 79 chen 118
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034784
qwen/qwen3.7-plus
awkweave-0034785
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
gamma delta 103 beta fable 18 alpha juniper 74 delta grove 77 beta ember 36 delta juniper 39 alpha amber 33
6
beta delta 36 alpha amber 39 beta birch 8 gamma harbor 96 beta juniper 106 delta harbor 14 gamma harbor 97 alpha harbor 45 gamma juniper 5 gamma indigo 80
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034785-p1
Calculate the number of unique values in the second column and output only that total count.
{if(!seen[$2]++)n++}END{print n+0}
gamma delta 103 beta fable 18 alpha juniper 74 delta grove 77 beta ember 36 delta juniper 39 alpha amber 33
6
beta delta 36 alpha amber 39 beta birch 8 gamma harbor 96 beta juniper 106 delta harbor 14 gamma harbor 97 alpha harbor 45 gamma juniper 5 gamma indigo 80
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034785
qwen/qwen3.7-plus
awkweave-0034786
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}
jules 28 0 eli 29 10 eli 28 26 kim 2 14 bruno 3 10 lina 10 16 eli 1 22 dina 28 14 hana 16 1 lina 5 29
eli 2.90 eli 1.08 kim 0.14 bruno 0.30 lina 0.62 eli 0.05 dina 2.00 hana 16.00 lina 0.17
hana 30 0 farah 13 25 kim 7 17 jules 6 6 dina 14 2 hana 15 14 bruno 10 27
farah 0.52 kim 0.41 jules 1.00 dina 7.00 hana 1.07 bruno 0.37
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034786-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 rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
jules 28 0 eli 29 10 eli 28 26 kim 2 14 bruno 3 10 lina 10 16 eli 1 22 dina 28 14 hana 16 1 lina 5 29
eli 2.90 eli 1.08 kim 0.14 bruno 0.30 lina 0.62 eli 0.05 dina 2.00 hana 16.00 lina 0.17
hana 30 0 farah 13 25 kim 7 17 jules 6 6 dina 14 2 hana 15 14 bruno 10 27
farah 0.52 kim 0.41 jules 1.00 dina 7.00 hana 1.07 bruno 0.37
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034786
qwen/qwen3.7-plus
awkweave-0034787
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]}
alice ember 9 lina harbor 13 ivan amber 7 hana birch 30 alice fable 1 chen harbor 6 alice cobalt 13 farah birch 12 hana juniper 2
hana birch 30 lina harbor 13 alice cobalt 13
dina fable 12 chen delta 10 chen cobalt 15 eli indigo 5 chen birch 12 gus harbor 10 gus cobalt 3 gus grove 28
gus grove 28 chen cobalt 15 dina fable 12
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034787-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]}
alice ember 9 lina harbor 13 ivan amber 7 hana birch 30 alice fable 1 chen harbor 6 alice cobalt 13 farah birch 12 hana juniper 2
hana birch 30 lina harbor 13 alice cobalt 13
dina fable 12 chen delta 10 chen cobalt 15 eli indigo 5 chen birch 12 gus harbor 10 gus cobalt 3 gus grove 28
gus grove 28 chen cobalt 15 dina fable 12
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034787
qwen/qwen3.7-plus
awkweave-0034788
For each line, output fields 4 and 2, in that order.
{print $4, $2}
ivan pending lina ember 10 lina failed ivan fable 36 gus closed ivan fable 75 lina closed farah amber 102 bruno active gus cobalt 73 gus active dina grove 20
ember pending fable failed fable closed amber closed cobalt active grove active
ivan paused eli fable 39 farah pending jules ember 56 lina failed dina cobalt 26 kim pending gus amber 88 eli active lina birch 41 chen active alice amber 56 hana closed chen ember 28
fable paused ember pending cobalt failed amber pending birch active amber active ember closed
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034788-p1
For every line, print the fourth field followed by the second field.
{print $4, $2}
ivan pending lina ember 10 lina failed ivan fable 36 gus closed ivan fable 75 lina closed farah amber 102 bruno active gus cobalt 73 gus active dina grove 20
ember pending fable failed fable closed amber closed cobalt active grove active
ivan paused eli fable 39 farah pending jules ember 56 lina failed dina cobalt 26 kim pending gus amber 88 eli active lina birch 41 chen active alice amber 56 hana closed chen ember 28
fable paused ember pending cobalt failed amber pending birch active amber active ember closed
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034788
qwen/qwen3.7-plus
awkweave-0034789
Print the last field of every input line.
{print $NF}
birch 20 amber birch ready 17 hana amber 1 grove cobalt ready 88 kim harbor 91 juniper harbor pending 88 ivan juniper 47 grove fable paused 109 farah indigo 83 ember ember paused 63 dina grove 46 amber grove active 110 farah juniper 112 grove birch active 114 kim
hana kim ivan farah dina farah kim
amber 21 fable harbor paused 84 chen cobalt 24 grove ember active 107 kim ember 20 amber indigo failed 8 farah delta 115 ember juniper paused 95 lina grove 49 fable harbor pending 114 farah cobalt 100 grove grove pending 63 dina delta 53 amber juniper failed 73 hana ember 65 fable indigo active 70 hana
chen kim farah lina farah dina hana hana
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034789-p1
Extract and print the final field from each input line.
{print $NF}
birch 20 amber birch ready 17 hana amber 1 grove cobalt ready 88 kim harbor 91 juniper harbor pending 88 ivan juniper 47 grove fable paused 109 farah indigo 83 ember ember paused 63 dina grove 46 amber grove active 110 farah juniper 112 grove birch active 114 kim
hana kim ivan farah dina farah kim
amber 21 fable harbor paused 84 chen cobalt 24 grove ember active 107 kim ember 20 amber indigo failed 8 farah delta 115 ember juniper paused 95 lina grove 49 fable harbor pending 114 farah cobalt 100 grove grove pending 63 dina delta 53 amber juniper failed 73 hana ember 65 fable indigo active 70 hana
chen kim farah lina farah dina hana hana
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034789
qwen/qwen3.7-plus
awkweave-0034800
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
jules 20 delta farah 16 birch hana 13 cobalt alice 11 indigo alice 15 indigo lina 12 birch
14.50
jules 17 cobalt chen 7 juniper farah 4 birch farah 5 amber farah 13 indigo hana 16 ember
10.33
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034800-p1
Output the average of the values in the second column, formatted to two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
jules 20 delta farah 16 birch hana 13 cobalt alice 11 indigo alice 15 indigo lina 12 birch
14.50
jules 17 cobalt chen 7 juniper farah 4 birch farah 5 amber farah 13 indigo hana 16 ember
10.33
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034800
qwen/qwen3.7-plus
awkweave-0034801
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
chen fable 30 chen cobalt 10 eli cobalt 2 gus juniper 28 hana cobalt 14 kim birch 23 farah amber 25 hana ember 7 alice juniper 18 lina cobalt 17
2
gus delta 14 bruno cobalt 11 chen ember 13 ivan indigo 3 hana fable 23 kim birch 12 jules fable 4 hana juniper 18 kim juniper 7
3
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034801-p1
Identify and display the minimum number found in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
chen fable 30 chen cobalt 10 eli cobalt 2 gus juniper 28 hana cobalt 14 kim birch 23 farah amber 25 hana ember 7 alice juniper 18 lina cobalt 17
2
gus delta 14 bruno cobalt 11 chen ember 13 ivan indigo 3 hana fable 23 kim birch 12 jules fable 4 hana juniper 18 kim juniper 7
3
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034801
qwen/qwen3.7-plus
awkweave-0034802
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
17 grove kim 2 ember lina 12 amber jules 18 birch hana 22 harbor ivan 2 harbor gus 17 delta alice 25 harbor ivan 28 cobalt eli
28
25 ember farah 11 juniper farah 19 delta alice 26 indigo farah 25 harbor kim 5 amber farah 18 amber lina 17 delta jules 14 fable gus 15 ember alice
26
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034802-p1
Locate and output the maximum numeric value present in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
17 grove kim 2 ember lina 12 amber jules 18 birch hana 22 harbor ivan 2 harbor gus 17 delta alice 25 harbor ivan 28 cobalt eli
28
25 ember farah 11 juniper farah 19 delta alice 26 indigo farah 25 harbor kim 5 amber farah 18 amber lina 17 delta jules 14 fable gus 15 ember alice
26
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034802
qwen/qwen3.7-plus
awkweave-0034803
Count all input records and print the total.
END{print NR}
kim 105 chen 106 gus 49 gus 42 bruno 12 ivan 39 eli 23 kim 9
8
ivan 87 farah 102 gus 108 gus 13 lina 24 dina 24 gus 1
7
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034803-p1
Calculate the total number of input lines and print the count.
END{print NR}
kim 105 chen 106 gus 49 gus 42 bruno 12 ivan 39 eli 23 kim 9
8
ivan 87 farah 102 gus 108 gus 13 lina 24 dina 24 gus 1
7
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034803
qwen/qwen3.7-plus
awkweave-0034804
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
kim ember 26 alice grove 69 hana fable 9 kim birch 8 kim ember 26 bruno harbor 5 farah birch 14
kim ember 26 alice grove 69 hana fable 9 kim birch 8 bruno harbor 5 farah birch 14
chen juniper 116 chen juniper 116 dina ember 16 lina juniper 69 gus delta 67 dina juniper 4 ivan birch 106 hana amber 16
chen juniper 116 dina ember 16 lina juniper 69 gus delta 67 dina juniper 4 ivan birch 106 hana amber 16
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034804-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
kim ember 26 alice grove 69 hana fable 9 kim birch 8 kim ember 26 bruno harbor 5 farah birch 14
kim ember 26 alice grove 69 hana fable 9 kim birch 8 bruno harbor 5 farah birch 14
chen juniper 116 chen juniper 116 dina ember 16 lina juniper 69 gus delta 67 dina juniper 4 ivan birch 106 hana amber 16
chen juniper 116 dina ember 16 lina juniper 69 gus delta 67 dina juniper 4 ivan birch 106 hana amber 16
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034804
qwen/qwen3.7-plus
awkweave-0034805
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
bruno birch 94 gus ember 102 gus cobalt 67 hana juniper 13 alice indigo 57 bruno juniper 70 lina harbor 103 kim fable 35 chen cobalt 86
bruno birch 94 gus ember 102 gus cobalt 67 hana juniper 13 alice indigo 57 bruno juniper 70 lina harbor 103 kim fable 35 chen cobalt 86
alice fable 9 hana ember 28 chen amber 35 alice ember 77 alice birch 109 dina amber 34
alice fable 9 hana ember 28 chen amber 35 alice ember 77 alice birch 109 dina amber 34
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034805-p1
Retain only the initial line for every unique entry in column 3, keeping the original order intact.
!seen[$3]++
bruno birch 94 gus ember 102 gus cobalt 67 hana juniper 13 alice indigo 57 bruno juniper 70 lina harbor 103 kim fable 35 chen cobalt 86
bruno birch 94 gus ember 102 gus cobalt 67 hana juniper 13 alice indigo 57 bruno juniper 70 lina harbor 103 kim fable 35 chen cobalt 86
alice fable 9 hana ember 28 chen amber 35 alice ember 77 alice birch 109 dina amber 34
alice fable 9 hana ember 28 chen amber 35 alice ember 77 alice birch 109 dina amber 34
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034805
qwen/qwen3.7-plus
awkweave-0034806
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 23 juniper hana 21 harbor hana 26 grove jules 9 grove lina 25 harbor bruno 26 juniper eli 26 ember hana 10 ember lina 20 ember
ivan 23 hana 44 hana 70 jules 79 lina 104 bruno 130 eli 156 hana 166 lina 186
farah 26 grove dina 22 amber kim 10 ember alice 1 fable hana 23 birch lina 23 fable kim 28 grove hana 5 juniper jules 24 juniper bruno 4 birch
farah 26 dina 48 kim 58 alice 59 hana 82 lina 105 kim 133 hana 138 jules 162 bruno 166
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034806-p1
For each line, output the first column and the cumulative sum of the second column, separated by a space.
{s+=$2;print $1,s}
ivan 23 juniper hana 21 harbor hana 26 grove jules 9 grove lina 25 harbor bruno 26 juniper eli 26 ember hana 10 ember lina 20 ember
ivan 23 hana 44 hana 70 jules 79 lina 104 bruno 130 eli 156 hana 166 lina 186
farah 26 grove dina 22 amber kim 10 ember alice 1 fable hana 23 birch lina 23 fable kim 28 grove hana 5 juniper jules 24 juniper bruno 4 birch
farah 26 dina 48 kim 58 alice 59 hana 82 lina 105 kim 133 hana 138 jules 162 bruno 166
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034806
qwen/qwen3.7-plus
awkweave-0034807
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
hana 27 27 grove jules 11 4 harbor hana 15 6 indigo alice 22 9 fable eli 14 4 grove dina 2 10 cobalt bruno 5 14 fable dina 5 13 ember lina 24 28 birch dina 29 3 delta
hana 54 jules 15 hana 21 alice 31 eli 18 dina 12 bruno 19 dina 18 lina 52 dina 32
dina 21 14 harbor hana 25 29 grove ivan 27 20 birch gus 28 17 indigo lina 23 25 juniper dina 17 25 indigo farah 10 21 juniper jules 29 26 ember hana 16 7 harbor jules 12 15 harbor
dina 35 hana 54 ivan 47 gus 45 lina 48 dina 42 farah 31 jules 55 hana 23 jules 27
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034807-p1
Print the first field followed by the sum of the second and third fields for every row.
{print $1,$2+$3}
hana 27 27 grove jules 11 4 harbor hana 15 6 indigo alice 22 9 fable eli 14 4 grove dina 2 10 cobalt bruno 5 14 fable dina 5 13 ember lina 24 28 birch dina 29 3 delta
hana 54 jules 15 hana 21 alice 31 eli 18 dina 12 bruno 19 dina 18 lina 52 dina 32
dina 21 14 harbor hana 25 29 grove ivan 27 20 birch gus 28 17 indigo lina 23 25 juniper dina 17 25 indigo farah 10 21 juniper jules 29 26 ember hana 16 7 harbor jules 12 15 harbor
dina 35 hana 54 ivan 47 gus 45 lina 48 dina 42 farah 31 jules 55 hana 23 jules 27
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034807
qwen/qwen3.7-plus
awkweave-0034808
Print column 1 and pass when column 2 is at least 21; otherwise print fail.
{print $1,($2>=21?"pass":"fail")}
eli 4 chen 11 alice 11 dina 18 farah 14 gus 24 eli 3 lina 15 lina 13 bruno 10
eli fail chen fail alice fail dina fail farah fail gus pass eli fail lina fail lina fail bruno fail
ivan 7 jules 25 dina 5 gus 9 kim 6 eli 23 farah 23 kim 7 hana 3 lina 7
ivan fail jules pass dina fail gus fail kim fail eli pass farah pass kim fail hana fail lina fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034808-p1
Display the first column along with 'pass' if the second column is 21 or greater, otherwise display 'fail'.
{print $1,($2>=21?"pass":"fail")}
eli 4 chen 11 alice 11 dina 18 farah 14 gus 24 eli 3 lina 15 lina 13 bruno 10
eli fail chen fail alice fail dina fail farah fail gus pass eli fail lina fail lina fail bruno fail
ivan 7 jules 25 dina 5 gus 9 kim 6 eli 23 farah 23 kim 7 hana 3 lina 7
ivan fail jules pass dina fail gus fail kim fail eli pass farah pass kim fail hana fail lina fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034808
qwen/qwen3.7-plus
awkweave-0034809
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
ivan birch 120 gus cobalt 49 farah juniper 68 chen indigo 17 alice grove 59 bruno delta 113 kim juniper 86 bruno delta 52
IVAN GUS FARAH CHEN ALICE BRUNO KIM BRUNO
gus juniper 99 chen delta 104 farah fable 79 eli cobalt 19 eli juniper 10 gus indigo 5 eli ember 17
GUS CHEN FARAH ELI ELI GUS ELI
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034809-p1
Transform the first column to uppercase and output only that column.
{print toupper($1)}
ivan birch 120 gus cobalt 49 farah juniper 68 chen indigo 17 alice grove 59 bruno delta 113 kim juniper 86 bruno delta 52
IVAN GUS FARAH CHEN ALICE BRUNO KIM BRUNO
gus juniper 99 chen delta 104 farah fable 79 eli cobalt 19 eli juniper 10 gus indigo 5 eli ember 17
GUS CHEN FARAH ELI ELI GUS ELI
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034809
qwen/qwen3.7-plus
awkweave-0034810
From column 1, print 2 characters starting at character 2.
{print substr($1,2,2)}
fable 13 grove 68 delta 20 ember 104 juniper 84 juniper 63 ember 54 fable 23 indigo 15 birch 94
ab ro el mb un un mb ab nd ir
cobalt 34 delta 31 cobalt 108 harbor 55 cobalt 70 juniper 57 grove 112 delta 49 delta 27 cobalt 83
ob el ob ar ob un ro el el ob
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034810-p1
Extract and print a substring of length 2 from the first column, starting at the second character.
{print substr($1,2,2)}
fable 13 grove 68 delta 20 ember 104 juniper 84 juniper 63 ember 54 fable 23 indigo 15 birch 94
ab ro el mb un un mb ab nd ir
cobalt 34 delta 31 cobalt 108 harbor 55 cobalt 70 juniper 57 grove 112 delta 49 delta 27 cobalt 83
ob el ob ar ob un ro el el ob
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034810
qwen/qwen3.7-plus
awkweave-0034811
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
indigo_harbor 9 grove_cobalt 27 birch_ember 49 birch_juniper 17 fable_juniper 8 fable_indigo 89
indigo harbor grove cobalt birch ember birch juniper fable juniper fable indigo
fable_amber 95 juniper_delta 33 grove_delta 50 harbor_ember 32 birch_harbor 118 fable_cobalt 113 amber_juniper 114 harbor_fable 12 harbor_cobalt 29
fable amber juniper delta grove delta harbor ember birch harbor fable cobalt amber juniper harbor fable harbor cobalt
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034811-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
indigo_harbor 9 grove_cobalt 27 birch_ember 49 birch_juniper 17 fable_juniper 8 fable_indigo 89
indigo harbor grove cobalt birch ember birch juniper fable juniper fable indigo
fable_amber 95 juniper_delta 33 grove_delta 50 harbor_ember 32 birch_harbor 118 fable_cobalt 113 amber_juniper 114 harbor_fable 12 harbor_cobalt 29
fable amber juniper delta grove delta harbor ember birch harbor fable cobalt amber juniper harbor fable harbor cobalt
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034811
qwen/qwen3.7-plus
awkweave-0034812
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 fable 87 active farah birch 75 paused bruno birch 30 paused dina ember 36 ready hana cobalt 21 pending lina amber 51 closed bruno cobalt 51 ready ivan indigo 106 failed gus delta 60 active jules harbor 80 ready
active 87 fable kim paused 75 birch farah paused 30 birch bruno ready 36 ember dina pending 21 cobalt hana closed 51 amber lina ready 51 cobalt bruno failed 106 indigo ivan active 60 delta gus ready 80 harbor jules
hana birch 45 active chen delta 20 closed hana grove 100 active bruno ember 70 paused ivan indigo 97 ready bruno harbor 97 failed hana birch 108 pending
active 45 birch hana closed 20 delta chen active 100 grove hana paused 70 ember bruno ready 97 indigo ivan failed 97 harbor bruno pending 108 birch hana
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034812-p1
Reverse the field sequence on each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
kim fable 87 active farah birch 75 paused bruno birch 30 paused dina ember 36 ready hana cobalt 21 pending lina amber 51 closed bruno cobalt 51 ready ivan indigo 106 failed gus delta 60 active jules harbor 80 ready
active 87 fable kim paused 75 birch farah paused 30 birch bruno ready 36 ember dina pending 21 cobalt hana closed 51 amber lina ready 51 cobalt bruno failed 106 indigo ivan active 60 delta gus ready 80 harbor jules
hana birch 45 active chen delta 20 closed hana grove 100 active bruno ember 70 paused ivan indigo 97 ready bruno harbor 97 failed hana birch 108 pending
active 45 birch hana closed 20 delta chen active 100 grove hana paused 70 ember bruno ready 97 indigo ivan failed 97 harbor bruno pending 108 birch hana
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034812
qwen/qwen3.7-plus
awkweave-0034813
Print the number of whitespace-separated fields on each line.
{print NF}
ivan juniper 72 active ivan ember 87 ready lina harbor 111 pending lina cobalt 48 closed kim birch 20 ready eli delta 54 ready gus juniper 93 failed bruno amber 60 ready eli birch 84 paused
4 4 4 4 4 4 4 4 4
hana juniper 104 failed farah delta 63 closed gus indigo 55 active chen delta 116 active gus ember 19 active hana fable 58 ready kim harbor 66 paused bruno ember 32 closed eli juniper 0 paused jules juniper 35 closed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034813-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
ivan juniper 72 active ivan ember 87 ready lina harbor 111 pending lina cobalt 48 closed kim birch 20 ready eli delta 54 ready gus juniper 93 failed bruno amber 60 ready eli birch 84 paused
4 4 4 4 4 4 4 4 4
hana juniper 104 failed farah delta 63 closed gus indigo 55 active chen delta 116 active gus ember 19 active hana fable 58 ready kim harbor 66 paused bruno ember 32 closed eli juniper 0 paused jules juniper 35 closed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034813
qwen/qwen3.7-plus
awkweave-0034814
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]]}
alice alpha 28 chen gamma 55 bruno gamma 118 gus beta 20 dina beta 27 ivan alpha 115 gus beta 73 eli alpha 19 farah gamma 48 farah beta 91
alpha 3 gamma 3 beta 4
bruno alpha 51 kim gamma 42 jules beta 68 farah delta 9 alice gamma 84 eli alpha 50 farah beta 103 gus gamma 48
alpha 2 gamma 3 beta 2 delta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034814-p1
Tally records by the value in column 2, then print each unique value alongside 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]]}
alice alpha 28 chen gamma 55 bruno gamma 118 gus beta 20 dina beta 27 ivan alpha 115 gus beta 73 eli alpha 19 farah gamma 48 farah beta 91
alpha 3 gamma 3 beta 4
bruno alpha 51 kim gamma 42 jules beta 68 farah delta 9 alice gamma 84 eli alpha 50 farah beta 103 gus gamma 48
alpha 2 gamma 3 beta 2 delta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034814
qwen/qwen3.7-plus
awkweave-0034815
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 26 bruno beta 14 lina alpha 19 alice beta 11 gus delta 30 hana delta 15 eli beta 7 bruno delta 20 ivan delta 25 farah delta 1
alpha 45 beta 32 delta 91
lina delta 14 farah beta 1 kim beta 20 lina beta 22 alice beta 22 bruno beta 8 lina alpha 13 alice alpha 23 gus beta 21
delta 14 beta 94 alpha 36
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034815-p1
Calculate the sum of column 3 grouped by column 2, displaying the results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
farah alpha 26 bruno beta 14 lina alpha 19 alice beta 11 gus delta 30 hana delta 15 eli beta 7 bruno delta 20 ivan delta 25 farah delta 1
alpha 45 beta 32 delta 91
lina delta 14 farah beta 1 kim beta 20 lina beta 22 alice beta 22 bruno beta 8 lina alpha 13 alice alpha 23 gus beta 21
delta 14 beta 94 alpha 36
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034815
qwen/qwen3.7-plus
awkweave-0034816
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
alpha ember 0 beta delta 75 gamma grove 79 alpha delta 65 gamma fable 116 gamma cobalt 2 beta birch 66 delta delta 96
alpha 2 beta 2 gamma 3
beta grove 113 gamma indigo 4 gamma birch 72 alpha fable 85 alpha harbor 112 delta juniper 84
gamma 2 alpha 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034816-p1
List each duplicate value from column 1 with its frequency, ordered by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
alpha ember 0 beta delta 75 gamma grove 79 alpha delta 65 gamma fable 116 gamma cobalt 2 beta birch 66 delta delta 96
alpha 2 beta 2 gamma 3
beta grove 113 gamma indigo 4 gamma birch 72 alpha fable 85 alpha harbor 112 delta juniper 84
gamma 2 alpha 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034816
qwen/qwen3.7-plus
awkweave-0034817
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"]}
note state display_name region r001 eli 17 failed r002 dina 22 pending r003 dina 30 pending r004 gus 4 active r005 ivan 5 active r006 dina 5 ready r007 gus 13 failed r008 kim 4 active
eli dina dina gus ivan dina gus kim
note state display_name region r001 dina 27 ready r002 farah 27 paused r003 hana 2 pending r004 ivan 12 pending r005 bruno 17 paused r006 kim 9 ready r007 farah 19 failed
dina farah hana ivan bruno kim farah
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034817-p1
Skip the header row and output the state column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
note state display_name region r001 eli 17 failed r002 dina 22 pending r003 dina 30 pending r004 gus 4 active r005 ivan 5 active r006 dina 5 ready r007 gus 13 failed r008 kim 4 active
eli dina dina gus ivan dina gus kim
note state display_name region r001 dina 27 ready r002 farah 27 paused r003 hana 2 pending r004 ivan 12 pending r005 bruno 17 paused r006 kim 9 ready r007 farah 19 failed
dina farah hana ivan bruno kim farah
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034817
qwen/qwen3.7-plus
awkweave-0034818
The first row is a header. Print display_name for data rows whose score is greater than 11.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>11{print $h["display_name"]}
record_id display_name score state r001 chen 29 closed r002 jules 30 failed r003 hana 12 failed r004 gus 1 active r005 farah 25 ready r006 gus 5 pending r007 kim 8 active
chen jules hana farah
record_id display_name score state r001 chen 14 pending r002 gus 15 failed r003 chen 15 paused r004 bruno 11 active r005 ivan 20 ready r006 eli 10 pending r007 farah 13 active r008 dina 30 closed
chen gus chen ivan farah dina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034818-p1
Ignoring the header, print the display_name for rows where the score is greater than 11.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>11{print $h["display_name"]}
record_id display_name score state r001 chen 29 closed r002 jules 30 failed r003 hana 12 failed r004 gus 1 active r005 farah 25 ready r006 gus 5 pending r007 kim 8 active
chen jules hana farah
record_id display_name score state r001 chen 14 pending r002 gus 15 failed r003 chen 15 paused r004 bruno 11 active r005 ivan 20 ready r006 eli 10 pending r007 farah 13 active r008 dina 30 closed
chen gus chen ivan farah dina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034818
qwen/qwen3.7-plus
awkweave-0034819
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
eli 13 active farah 21 pending eli 7 pending ivan 5 failed gus 11 pending chen 20 closed dina 20 paused alice 10 ready kim 16 ready
13 21 7 5 11 20 20 10 16
chen 11 pending jules 27 ready dina 10 closed ivan 29 active kim 9 failed alice 11 ready
11 27 10 29 9 11
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034819-p1
Given tab-separated input, extract and print the second column from every record.
BEGIN{FS=OFS="\t"}{print $2}
eli 13 active farah 21 pending eli 7 pending ivan 5 failed gus 11 pending chen 20 closed dina 20 paused alice 10 ready kim 16 ready
13 21 7 5 11 20 20 10 16
chen 11 pending jules 27 ready dina 10 closed ivan 29 active kim 9 failed alice 11 ready
11 27 10 29 9 11
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034819
qwen/qwen3.7-plus
awkweave-0034820
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 16.
BEGIN{FS=OFS=","}$2>16{print $1}
hana,13,ready kim,12,active lina,5,failed jules,15,closed ivan,11,closed gus,16,active ivan,24,active farah,30,ready farah,19,closed eli,2,pending
ivan farah farah
jules,24,active lina,28,ready bruno,27,failed farah,20,ready farah,10,active dina,16,active gus,1,paused chen,29,ready
jules lina bruno farah chen
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034820-p1
For simple comma-separated data without quoted commas, print the first column if the second column value is greater than 16.
BEGIN{FS=OFS=","}$2>16{print $1}
hana,13,ready kim,12,active lina,5,failed jules,15,closed ivan,11,closed gus,16,active ivan,24,active farah,30,ready farah,19,closed eli,2,pending
ivan farah farah
jules,24,active lina,28,ready bruno,27,failed farah,20,ready farah,10,active dina,16,active gus,1,paused chen,29,ready
jules lina bruno farah chen
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034820
qwen/qwen3.7-plus
awkweave-0034821
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
chen fable 71 hana grove 85 lina harbor 97 ivan delta 19 kim grove 94 eli amber 22 jules grove 80 farah indigo 105 alice cobalt 46
chen fable 71 hana grove 85 lina harbor 97 ivan delta 19 kim grove 94 eli amber 22 jules grove 80 farah indigo 105 alice cobalt 46
kim ember 46 jules delta 12 gus grove 83 eli juniper 100 gus juniper 45 gus grove 83 ivan ember 114 gus fable 92 eli juniper 59 lina delta 54
kim ember 46 jules delta 12 gus grove 83 eli juniper 100 gus juniper 45 gus grove 83 ivan ember 114 gus fable 92 eli juniper 59 lina delta 54
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034821-p1
Remove leading and trailing whitespace, and replace internal whitespace sequences with a single space.
{$1=$1;print}
chen fable 71 hana grove 85 lina harbor 97 ivan delta 19 kim grove 94 eli amber 22 jules grove 80 farah indigo 105 alice cobalt 46
chen fable 71 hana grove 85 lina harbor 97 ivan delta 19 kim grove 94 eli amber 22 jules grove 80 farah indigo 105 alice cobalt 46
kim ember 46 jules delta 12 gus grove 83 eli juniper 100 gus juniper 45 gus grove 83 ivan ember 114 gus fable 92 eli juniper 59 lina delta 54
kim ember 46 jules delta 12 gus grove 83 eli juniper 100 gus juniper 45 gus grove 83 ivan ember 114 gus fable 92 eli juniper 59 lina delta 54
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034821
qwen/qwen3.7-plus
awkweave-0034822
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan ember 45 pending bruno cobalt 101 failed lina birch 118 failed hana juniper 15 closed alice birch 24 ready farah ember 111 active dina indigo 59 pending jules ember 32 failed kim cobalt 5 ready
bruno cobalt 101 failed
alice birch 113 ready jules grove 45 pending alice fable 71 pending gus indigo 108 paused farah juniper 0 active hana birch 98 ready kim cobalt 11 paused gus amber 11 ready
jules grove 45 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034822-p1
Identify and print the longest line from the input; if there is a tie in length, select the first one.
{if(length($0)>length(best))best=$0}END{print best}
ivan ember 45 pending bruno cobalt 101 failed lina birch 118 failed hana juniper 15 closed alice birch 24 ready farah ember 111 active dina indigo 59 pending jules ember 32 failed kim cobalt 5 ready
bruno cobalt 101 failed
alice birch 113 ready jules grove 45 pending alice fable 71 pending gus indigo 108 paused farah juniper 0 active hana birch 98 ready kim cobalt 11 paused gus amber 11 ready
jules grove 45 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034822
qwen/qwen3.7-plus
awkweave-0034823
Print every 4th line starting at line 2 (then line 6, and so on).
NR%4==2
chen 66 dina 116 chen 77 gus 45 alice 68 alice 47 alice 107 chen 32 jules 78
dina 116 alice 47
ivan 91 gus 116 jules 2 bruno 97 chen 108 lina 45 gus 87 jules 83 alice 48 chen 27
gus 116 lina 45 chen 27
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034823-p1
Print every fourth line beginning with line 2 (i.e., lines 2, 6, 10, etc.).
NR%4==2
chen 66 dina 116 chen 77 gus 45 alice 68 alice 47 alice 107 chen 32 jules 78
dina 116 alice 47
ivan 91 gus 116 jules 2 bruno 97 chen 108 lina 45 gus 87 jules 83 alice 48 chen 27
gus 116 lina 45 chen 27
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034823
qwen/qwen3.7-plus
awkweave-0034824
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
gamma grove 40 alpha harbor 5 delta cobalt 47 delta grove 91 delta birch 112 gamma fable 82 gamma birch 15
5
beta juniper 2 alpha cobalt 63 gamma harbor 70 alpha ember 16 alpha amber 73 delta cobalt 19
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034824-p1
Determine the number of unique entries in the second column and output just that total.
{if(!seen[$2]++)n++}END{print n+0}
gamma grove 40 alpha harbor 5 delta cobalt 47 delta grove 91 delta birch 112 gamma fable 82 gamma birch 15
5
beta juniper 2 alpha cobalt 63 gamma harbor 70 alpha ember 16 alpha amber 73 delta cobalt 19
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034824
qwen/qwen3.7-plus
awkweave-0034825
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 5 0 lina 30 2 hana 27 7 gus 18 20 dina 21 27 alice 30 26 jules 26 28
lina 15.00 hana 3.86 gus 0.90 dina 0.78 alice 1.15 jules 0.93
eli 1 0 kim 10 18 ivan 3 7 farah 15 27 ivan 8 1 ivan 9 18 eli 3 24 lina 8 25 gus 19 11
kim 0.56 ivan 0.43 farah 0.56 ivan 8.00 ivan 0.50 eli 0.12 lina 0.32 gus 1.73
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034825-p1
For every row where the third column is not zero, display the first and second columns along with the result of dividing the second by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 5 0 lina 30 2 hana 27 7 gus 18 20 dina 21 27 alice 30 26 jules 26 28
lina 15.00 hana 3.86 gus 0.90 dina 0.78 alice 1.15 jules 0.93
eli 1 0 kim 10 18 ivan 3 7 farah 15 27 ivan 8 1 ivan 9 18 eli 3 24 lina 8 25 gus 19 11
kim 0.56 ivan 0.43 farah 0.56 ivan 8.00 ivan 0.50 eli 0.12 lina 0.32 gus 1.73
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034825
qwen/qwen3.7-plus
awkweave-0034826
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]}
ivan juniper 14 lina amber 2 lina indigo 14 gus grove 21 alice ember 22 alice juniper 16 kim fable 16
alice ember 22 gus grove 21 alice juniper 16
gus cobalt 8 eli ember 8 ivan indigo 18 gus juniper 23 gus juniper 11 lina juniper 3
gus juniper 23 ivan indigo 18 gus juniper 11
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034826-p1
Retrieve the top three rows based on the highest numeric values in column 3, sorted in descending order, while maintaining the original input sequence 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]}
ivan juniper 14 lina amber 2 lina indigo 14 gus grove 21 alice ember 22 alice juniper 16 kim fable 16
alice ember 22 gus grove 21 alice juniper 16
gus cobalt 8 eli ember 8 ivan indigo 18 gus juniper 23 gus juniper 11 lina juniper 3
gus juniper 23 ivan indigo 18 gus juniper 11
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034826
qwen/qwen3.7-plus
awkweave-0034827
For each line, output fields 3 and 2, in that order.
{print $3, $2}
91 active closed kim 59 paused pending lina 56 failed active kim 117 paused failed farah 115 failed paused eli 66 active active hana 13 paused active gus 64 failed failed farah 82 failed failed ivan 60 active failed jules
closed active pending paused active failed failed paused paused failed active active active paused failed failed failed failed failed active
99 ready failed farah 29 failed pending eli 107 pending ready chen 85 ready active ivan 15 closed closed lina 33 paused pending kim 118 failed paused lina
failed ready pending failed ready pending active ready closed closed pending paused paused failed
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034827-p1
Output the third field followed by the second field for each line.
{print $3, $2}
91 active closed kim 59 paused pending lina 56 failed active kim 117 paused failed farah 115 failed paused eli 66 active active hana 13 paused active gus 64 failed failed farah 82 failed failed ivan 60 active failed jules
closed active pending paused active failed failed paused paused failed active active active paused failed failed failed failed failed active
99 ready failed farah 29 failed pending eli 107 pending ready chen 85 ready active ivan 15 closed closed lina 33 paused pending kim 118 failed paused lina
failed ready pending failed ready pending active ready closed closed pending paused paused failed
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034827
qwen/qwen3.7-plus
awkweave-0034828
Print the last field of every input line.
{print $NF}
paused 75 ivan 110 60 60 1 paused 25 lina 37 72 108 58 paused 51 kim 31 43 31 29 failed 30 eli 117 3 2 22 paused 10 bruno 116 65 115 39 pending 44 hana 53 51 56 61 ready 12 hana 21 95 108 91
1 58 29 22 39 61 91
ready 31 alice 66 40 61 47 active 54 lina 116 100 4 91 active 25 hana 50 9 94 65 pending 22 jules 118 47 12 83 ready 41 hana 120 113 56 1 ready 106 gus 88 101 86 83 active 10 bruno 13 49 72 96 pending 91 dina 28 119 105 46
47 91 65 83 1 83 96 46
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034828-p1
Display the final field from every line of input.
{print $NF}
paused 75 ivan 110 60 60 1 paused 25 lina 37 72 108 58 paused 51 kim 31 43 31 29 failed 30 eli 117 3 2 22 paused 10 bruno 116 65 115 39 pending 44 hana 53 51 56 61 ready 12 hana 21 95 108 91
1 58 29 22 39 61 91
ready 31 alice 66 40 61 47 active 54 lina 116 100 4 91 active 25 hana 50 9 94 65 pending 22 jules 118 47 12 83 ready 41 hana 120 113 56 1 ready 106 gus 88 101 86 83 active 10 bruno 13 49 72 96 pending 91 dina 28 119 105 46
47 91 65 83 1 83 96 46
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034828
qwen/qwen3.7-plus
awkweave-0034829
Print the complete records where column 2 is at least 22.
$2 >= 22
alice 41 ivan lina 20 ivan lina 108 lina lina 92 ivan bruno 54 chen gus 82 bruno farah 19 kim kim 45 chen
alice 41 ivan lina 108 lina lina 92 ivan bruno 54 chen gus 82 bruno kim 45 chen
alice 49 chen lina 88 hana ivan 120 hana eli 27 bruno dina 97 jules bruno 42 ivan lina 75 gus kim 26 lina jules 47 alice
alice 49 chen lina 88 hana ivan 120 hana eli 27 bruno dina 97 jules bruno 42 ivan lina 75 gus kim 26 lina jules 47 alice
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034829-p1
Show full records where the value in the second column is 22 or greater.
$2 >= 22
alice 41 ivan lina 20 ivan lina 108 lina lina 92 ivan bruno 54 chen gus 82 bruno farah 19 kim kim 45 chen
alice 41 ivan lina 108 lina lina 92 ivan bruno 54 chen gus 82 bruno kim 45 chen
alice 49 chen lina 88 hana ivan 120 hana eli 27 bruno dina 97 jules bruno 42 ivan lina 75 gus kim 26 lina jules 47 alice
alice 49 chen lina 88 hana ivan 120 hana eli 27 bruno dina 97 jules bruno 42 ivan lina 75 gus kim 26 lina jules 47 alice
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034829
qwen/qwen3.7-plus
awkweave-0034830
Show whole lines whose 2nd field is between 11 and 19, inclusive.
$2 >= 11 && $2 <= 19
bruno 12 paused ready farah 9 pending pending kim 1 pending failed alice 25 closed active jules 23 closed ready ivan 3 failed pending dina 20 paused paused
bruno 12 paused ready
bruno 6 paused closed farah 11 failed active dina 14 pending closed eli 4 closed failed hana 9 ready paused gus 9 paused closed bruno 4 paused paused
farah 11 failed active dina 14 pending closed
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034830-p1
Print entire lines where the second field falls within the inclusive range of 11 to 19.
$2 >= 11 && $2 <= 19
bruno 12 paused ready farah 9 pending pending kim 1 pending failed alice 25 closed active jules 23 closed ready ivan 3 failed pending dina 20 paused paused
bruno 12 paused ready
bruno 6 paused closed farah 11 failed active dina 14 pending closed eli 4 closed failed hana 9 ready paused gus 9 paused closed bruno 4 paused paused
farah 11 failed active dina 14 pending closed
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034830
qwen/qwen3.7-plus
awkweave-0034831
Print column 2 only for rows where column 3 is exactly paused.
$3 == "paused"{print $2}
harbor farah failed 4 amber ivan closed 62 harbor dina active 90 grove dina active 64 delta farah active 98 delta farah active 111 fable hana active 82 cobalt ivan closed 119 ember jules paused 108
jules
fable dina paused 44 harbor lina ready 54 fable dina active 87 grove farah closed 59 grove hana ready 44 amber alice closed 66 delta farah active 84 grove gus paused 55
dina gus
string_filter
1
train
original-grammar
CC-BY-4.0
null
null