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-0045612-p1
Transform the first column to uppercase and output only that column.
{print toupper($1)}
alice ember 56 chen fable 97 kim fable 59 bruno indigo 109 gus birch 94 dina ember 96 hana ember 4 alice amber 28 lina indigo 9 ivan amber 68
ALICE CHEN KIM BRUNO GUS DINA HANA ALICE LINA IVAN
eli harbor 13 farah cobalt 50 lina delta 51 lina indigo 51 eli grove 96 lina birch 91 eli birch 4 gus birch 41
ELI FARAH LINA LINA ELI LINA ELI GUS
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045612
qwen/qwen3.7-plus
awkweave-0045613
From column 1, print 2 characters starting at character 1.
{print substr($1,1,2)}
fable 1 delta 87 fable 108 ember 63 harbor 85 grove 110 birch 100
fa de fa em ha gr bi
birch 31 fable 107 amber 120 fable 6 birch 59 birch 23 cobalt 64 grove 60
bi fa am fa bi bi co gr
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045613-p1
Extract and print the first two characters from the first column.
{print substr($1,1,2)}
fable 1 delta 87 fable 108 ember 63 harbor 85 grove 110 birch 100
fa de fa em ha gr bi
birch 31 fable 107 amber 120 fable 6 birch 59 birch 23 cobalt 64 grove 60
bi fa am fa bi bi co gr
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045613
qwen/qwen3.7-plus
awkweave-0045614
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
birch_harbor 77 ember_juniper 61 juniper_birch 22 indigo_juniper 25 harbor_juniper 64 cobalt_ember 114 amber_fable 36
birch harbor ember juniper juniper birch indigo juniper harbor juniper cobalt ember amber fable
delta_delta 74 indigo_delta 0 birch_cobalt 115 grove_birch 87 fable_birch 38 indigo_delta 77 delta_delta 21
delta delta indigo delta birch cobalt grove birch fable birch indigo delta delta delta
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045614-p1
Substitute all underscores in the first column with spaces and display the results.
{gsub(/_/," ",$1);print $1}
birch_harbor 77 ember_juniper 61 juniper_birch 22 indigo_juniper 25 harbor_juniper 64 cobalt_ember 114 amber_fable 36
birch harbor ember juniper juniper birch indigo juniper harbor juniper cobalt ember amber fable
delta_delta 74 indigo_delta 0 birch_cobalt 115 grove_birch 87 fable_birch 38 indigo_delta 77 delta_delta 21
delta delta indigo delta birch cobalt grove birch fable birch indigo delta delta delta
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045614
qwen/qwen3.7-plus
awkweave-0045615
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 juniper 29 pending chen fable 51 paused chen ember 96 pending bruno juniper 81 failed gus ember 109 pending kim indigo 118 failed
pending 29 juniper hana paused 51 fable chen pending 96 ember chen failed 81 juniper bruno pending 109 ember gus failed 118 indigo kim
hana amber 75 ready gus delta 107 active bruno fable 87 paused gus grove 52 pending bruno juniper 17 closed alice delta 86 pending eli amber 72 ready lina indigo 11 ready
ready 75 amber hana active 107 delta gus paused 87 fable bruno pending 52 grove gus closed 17 juniper bruno pending 86 delta alice ready 72 amber eli ready 11 indigo lina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045615-p1
Reverse the sequence of fields on each line and output all of them.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
hana juniper 29 pending chen fable 51 paused chen ember 96 pending bruno juniper 81 failed gus ember 109 pending kim indigo 118 failed
pending 29 juniper hana paused 51 fable chen pending 96 ember chen failed 81 juniper bruno pending 109 ember gus failed 118 indigo kim
hana amber 75 ready gus delta 107 active bruno fable 87 paused gus grove 52 pending bruno juniper 17 closed alice delta 86 pending eli amber 72 ready lina indigo 11 ready
ready 75 amber hana active 107 delta gus paused 87 fable bruno pending 52 grove gus closed 17 juniper bruno pending 86 delta alice ready 72 amber eli ready 11 indigo lina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045615
qwen/qwen3.7-plus
awkweave-0045616
Print the number of whitespace-separated fields on each line.
{print NF}
kim amber 64 paused gus juniper 44 active kim amber 37 closed alice ember 80 pending ivan amber 120 paused gus grove 17 closed hana juniper 22 pending ivan birch 32 failed
4 4 4 4 4 4 4 4
kim amber 22 pending chen cobalt 13 ready farah harbor 60 failed eli delta 75 pending alice grove 33 closed chen harbor 95 pending
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045616-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
kim amber 64 paused gus juniper 44 active kim amber 37 closed alice ember 80 pending ivan amber 120 paused gus grove 17 closed hana juniper 22 pending ivan birch 32 failed
4 4 4 4 4 4 4 4
kim amber 22 pending chen cobalt 13 ready farah harbor 60 failed eli delta 75 pending alice grove 33 closed chen harbor 95 pending
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045616
qwen/qwen3.7-plus
awkweave-0045617
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]]}
eli gamma 89 alice beta 10 alice gamma 101 gus gamma 107 farah delta 102 lina gamma 63 kim gamma 120 jules beta 21 jules gamma 60
gamma 6 beta 2 delta 1
ivan beta 31 jules gamma 49 farah gamma 40 lina alpha 118 eli alpha 21 dina delta 89 kim delta 60 alice gamma 101 lina delta 80 lina beta 87
beta 2 gamma 3 alpha 2 delta 3
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045617-p1
Tally the records for each unique value in column 2, 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]]}
eli gamma 89 alice beta 10 alice gamma 101 gus gamma 107 farah delta 102 lina gamma 63 kim gamma 120 jules beta 21 jules gamma 60
gamma 6 beta 2 delta 1
ivan beta 31 jules gamma 49 farah gamma 40 lina alpha 118 eli alpha 21 dina delta 89 kim delta 60 alice gamma 101 lina delta 80 lina beta 87
beta 2 gamma 3 alpha 2 delta 3
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045617
qwen/qwen3.7-plus
awkweave-0045618
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]]}
ivan gamma 3 farah beta 23 chen gamma 25 chen beta 2 hana gamma 23 dina delta 12 ivan gamma 29 bruno beta 17
gamma 80 beta 42 delta 12
lina delta 2 farah alpha 3 chen alpha 26 gus beta 23 kim delta 4 gus alpha 11 bruno alpha 25 chen alpha 23
delta 6 alpha 88 beta 23
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045618-p1
Calculate the sum of column 3 grouped by column 2, displaying the 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]]}
ivan gamma 3 farah beta 23 chen gamma 25 chen beta 2 hana gamma 23 dina delta 12 ivan gamma 29 bruno beta 17
gamma 80 beta 42 delta 12
lina delta 2 farah alpha 3 chen alpha 26 gus beta 23 kim delta 4 gus alpha 11 bruno alpha 25 chen alpha 23
delta 6 alpha 88 beta 23
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045618
qwen/qwen3.7-plus
awkweave-0045619
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 ember 93 gamma grove 71 alpha ember 16 alpha grove 81 delta harbor 30 delta cobalt 103 alpha fable 96 gamma amber 7 beta amber 48
gamma 3 alpha 3 delta 2
delta birch 99 alpha fable 13 beta birch 71 alpha juniper 90 delta harbor 45 alpha indigo 47
delta 2 alpha 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045619-p1
List each duplicate value from column 1 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]]}
gamma ember 93 gamma grove 71 alpha ember 16 alpha grove 81 delta harbor 30 delta cobalt 103 alpha fable 96 gamma amber 7 beta amber 48
gamma 3 alpha 3 delta 2
delta birch 99 alpha fable 13 beta birch 71 alpha juniper 90 delta harbor 45 alpha indigo 47
delta 2 alpha 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045619
qwen/qwen3.7-plus
awkweave-0045620
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"]}
record_id note score display_name r001 farah 30 paused r002 dina 30 pending r003 farah 13 closed r004 kim 19 pending r005 bruno 10 closed r006 bruno 27 ready r007 farah 22 ready r008 eli 12 closed r009 lina 4 closed r010 jules 5 ready
30 30 13 19 10 27 22 12 4 5
record_id note score display_name r001 alice 27 closed r002 hana 9 ready r003 farah 20 pending r004 jules 18 paused r005 jules 10 pending r006 gus 15 active r007 hana 1 ready
27 9 20 18 10 15 1
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045620-p1
Treating the first row as a header, output the score column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
record_id note score display_name r001 farah 30 paused r002 dina 30 pending r003 farah 13 closed r004 kim 19 pending r005 bruno 10 closed r006 bruno 27 ready r007 farah 22 ready r008 eli 12 closed r009 lina 4 closed r010 jules 5 ready
30 30 13 19 10 27 22 12 4 5
record_id note score display_name r001 alice 27 closed r002 hana 9 ready r003 farah 20 pending r004 jules 18 paused r005 jules 10 pending r006 gus 15 active r007 hana 1 ready
27 9 20 18 10 15 1
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045620
qwen/qwen3.7-plus
awkweave-0045621
The first row is a header. Print display_name for data rows whose score is greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 dina 27 ready r002 farah 22 closed r003 lina 30 active r004 lina 26 closed r005 chen 2 closed r006 hana 10 pending r007 eli 28 failed r008 hana 4 paused
dina farah lina lina eli
record_id display_name score state r001 alice 10 failed r002 lina 5 ready r003 kim 14 active r004 ivan 28 failed r005 kim 25 paused r006 chen 3 failed r007 jules 30 failed r008 gus 7 pending r009 dina 11 pending r010 dina 28 closed
ivan kim jules dina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045621-p1
With the first row as a header, print the display_name for data rows where the score is greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 dina 27 ready r002 farah 22 closed r003 lina 30 active r004 lina 26 closed r005 chen 2 closed r006 hana 10 pending r007 eli 28 failed r008 hana 4 paused
dina farah lina lina eli
record_id display_name score state r001 alice 10 failed r002 lina 5 ready r003 kim 14 active r004 ivan 28 failed r005 kim 25 paused r006 chen 3 failed r007 jules 30 failed r008 gus 7 pending r009 dina 11 pending r010 dina 28 closed
ivan kim jules dina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045621
qwen/qwen3.7-plus
awkweave-0045622
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
farah 9 active farah 1 active gus 26 closed eli 30 failed farah 29 pending chen 29 failed hana 16 failed bruno 19 ready
active active closed failed pending failed failed ready
kim 5 failed kim 6 ready chen 16 pending lina 21 pending ivan 26 active bruno 5 paused hana 27 paused
failed ready pending pending active paused paused
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045622-p1
Given tab-separated input, output the third column from every record.
BEGIN{FS=OFS="\t"}{print $3}
farah 9 active farah 1 active gus 26 closed eli 30 failed farah 29 pending chen 29 failed hana 16 failed bruno 19 ready
active active closed failed pending failed failed ready
kim 5 failed kim 6 ready chen 16 pending lina 21 pending ivan 26 active bruno 5 paused hana 27 paused
failed ready pending pending active paused paused
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045622
qwen/qwen3.7-plus
awkweave-0045623
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 8.
BEGIN{FS=OFS=","}$2>8{print $1}
ivan,3,failed hana,23,active kim,19,ready kim,13,ready lina,14,ready chen,25,failed eli,17,failed kim,4,failed kim,17,ready
hana kim kim lina chen eli kim
bruno,16,closed dina,27,ready alice,19,ready bruno,1,ready kim,29,ready chen,21,ready dina,2,closed kim,28,pending dina,15,paused eli,13,failed
bruno dina alice kim chen kim dina eli
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045623-p1
For simple comma-separated data without quoted commas, print the first column if the second column is greater than 8.
BEGIN{FS=OFS=","}$2>8{print $1}
ivan,3,failed hana,23,active kim,19,ready kim,13,ready lina,14,ready chen,25,failed eli,17,failed kim,4,failed kim,17,ready
hana kim kim lina chen eli kim
bruno,16,closed dina,27,ready alice,19,ready bruno,1,ready kim,29,ready chen,21,ready dina,2,closed kim,28,pending dina,15,paused eli,13,failed
bruno dina alice kim chen kim dina eli
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045623
qwen/qwen3.7-plus
awkweave-0045624
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
eli amber 80 jules amber 84 jules cobalt 101 farah fable 90 lina amber 114 dina harbor 53 jules fable 79 chen delta 51
eli amber 80 jules amber 84 jules cobalt 101 farah fable 90 lina amber 114 dina harbor 53 jules fable 79 chen delta 51
eli ember 118 dina birch 110 kim fable 55 jules ember 99 chen juniper 40 lina grove 61 chen indigo 77 eli fable 69 bruno indigo 97 hana birch 14
eli ember 118 dina birch 110 kim fable 55 jules ember 99 chen juniper 40 lina grove 61 chen indigo 77 eli fable 69 bruno indigo 97 hana birch 14
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045624-p1
Remove leading and trailing whitespace, then replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
eli amber 80 jules amber 84 jules cobalt 101 farah fable 90 lina amber 114 dina harbor 53 jules fable 79 chen delta 51
eli amber 80 jules amber 84 jules cobalt 101 farah fable 90 lina amber 114 dina harbor 53 jules fable 79 chen delta 51
eli ember 118 dina birch 110 kim fable 55 jules ember 99 chen juniper 40 lina grove 61 chen indigo 77 eli fable 69 bruno indigo 97 hana birch 14
eli ember 118 dina birch 110 kim fable 55 jules ember 99 chen juniper 40 lina grove 61 chen indigo 77 eli fable 69 bruno indigo 97 hana birch 14
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045624
qwen/qwen3.7-plus
awkweave-0045625
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah indigo 53 active chen delta 70 active kim amber 81 paused gus birch 98 paused dina cobalt 111 paused farah juniper 24 ready eli grove 96 failed
farah indigo 53 active
ivan cobalt 111 pending hana cobalt 1 ready alice fable 100 pending eli grove 59 paused eli amber 83 pending jules juniper 76 paused dina indigo 45 ready lina fable 44 failed
ivan cobalt 111 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045625-p1
Identify and output the longest line from the input; if multiple lines share the maximum length, select the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
farah indigo 53 active chen delta 70 active kim amber 81 paused gus birch 98 paused dina cobalt 111 paused farah juniper 24 ready eli grove 96 failed
farah indigo 53 active
ivan cobalt 111 pending hana cobalt 1 ready alice fable 100 pending eli grove 59 paused eli amber 83 pending jules juniper 76 paused dina indigo 45 ready lina fable 44 failed
ivan cobalt 111 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045625
qwen/qwen3.7-plus
awkweave-0045626
Print every 4th line starting at line 2 (then line 6, and so on).
NR%4==2
gus 50 kim 26 dina 9 lina 73 hana 105 alice 73 gus 15 chen 99 farah 114
kim 26 alice 73
farah 30 chen 82 chen 70 lina 38 alice 0 jules 92 lina 18
chen 82 jules 92
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045626-p1
Output every fourth line beginning with line 2 (i.e., lines 2, 6, 10, etc.).
NR%4==2
gus 50 kim 26 dina 9 lina 73 hana 105 alice 73 gus 15 chen 99 farah 114
kim 26 alice 73
farah 30 chen 82 chen 70 lina 38 alice 0 jules 92 lina 18
chen 82 jules 92
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045626
qwen/qwen3.7-plus
awkweave-0045627
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha grove 102 beta grove 98 gamma delta 115 beta juniper 108 delta indigo 39 alpha grove 65 gamma fable 18 alpha juniper 32 gamma amber 46 alpha cobalt 21
7
alpha birch 8 gamma delta 95 gamma fable 2 alpha amber 8 gamma cobalt 32 gamma grove 9 beta grove 3 gamma grove 35
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045627-p1
Calculate the number of unique values in the second column and display only that total count.
{if(!seen[$2]++)n++}END{print n+0}
alpha grove 102 beta grove 98 gamma delta 115 beta juniper 108 delta indigo 39 alpha grove 65 gamma fable 18 alpha juniper 32 gamma amber 46 alpha cobalt 21
7
alpha birch 8 gamma delta 95 gamma fable 2 alpha amber 8 gamma cobalt 32 gamma grove 9 beta grove 3 gamma grove 35
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045627
qwen/qwen3.7-plus
awkweave-0045628
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}
eli 16 0 ivan 28 23 kim 8 24 lina 30 30 hana 9 28 dina 12 20 alice 11 24 chen 4 12 kim 12 9
ivan 1.22 kim 0.33 lina 1.00 hana 0.32 dina 0.60 alice 0.46 chen 0.33 kim 1.33
farah 18 0 gus 12 7 jules 7 3 alice 19 15 alice 9 5 bruno 23 14 ivan 14 16 ivan 6 10
gus 1.71 jules 2.33 alice 1.27 alice 1.80 bruno 1.64 ivan 0.88 ivan 0.60
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045628-p1
For each row, output the first column and the result of dividing the second column by the third column rounded to two decimal places, omitting any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
eli 16 0 ivan 28 23 kim 8 24 lina 30 30 hana 9 28 dina 12 20 alice 11 24 chen 4 12 kim 12 9
ivan 1.22 kim 0.33 lina 1.00 hana 0.32 dina 0.60 alice 0.46 chen 0.33 kim 1.33
farah 18 0 gus 12 7 jules 7 3 alice 19 15 alice 9 5 bruno 23 14 ivan 14 16 ivan 6 10
gus 1.71 jules 2.33 alice 1.27 alice 1.80 bruno 1.64 ivan 0.88 ivan 0.60
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045628
qwen/qwen3.7-plus
awkweave-0045629
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]}
dina harbor 7 eli ember 10 ivan delta 23 gus ember 27 gus birch 14 kim ember 19
gus ember 27 ivan delta 23 kim ember 19
ivan ember 21 eli fable 15 ivan harbor 14 ivan delta 10 alice delta 14 farah grove 5 gus ember 20
ivan ember 21 gus ember 20 eli fable 15
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045629-p1
Display the full records corresponding to the three highest numeric values in the third column, 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]}
dina harbor 7 eli ember 10 ivan delta 23 gus ember 27 gus birch 14 kim ember 19
gus ember 27 ivan delta 23 kim ember 19
ivan ember 21 eli fable 15 ivan harbor 14 ivan delta 10 alice delta 14 farah grove 5 gus ember 20
ivan ember 21 gus ember 20 eli fable 15
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045629
qwen/qwen3.7-plus
awkweave-0045630
For each line, output fields 4 and 3, in that order.
{print $4, $3}
ready 14 81 farah ready 15 113 hana ready 28 80 alice paused 109 108 bruno failed 54 68 alice paused 56 94 chen failed 104 72 jules
farah 81 hana 113 alice 80 bruno 108 alice 68 chen 94 jules 72
ready 102 50 bruno failed 49 34 dina closed 9 6 dina pending 35 51 lina paused 118 10 bruno pending 57 5 kim closed 43 26 chen closed 99 1 ivan ready 44 21 bruno
bruno 50 dina 34 dina 6 lina 51 bruno 10 kim 5 chen 26 ivan 1 bruno 21
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045630-p1
For every line, print the fourth field followed by the third field.
{print $4, $3}
ready 14 81 farah ready 15 113 hana ready 28 80 alice paused 109 108 bruno failed 54 68 alice paused 56 94 chen failed 104 72 jules
farah 81 hana 113 alice 80 bruno 108 alice 68 chen 94 jules 72
ready 102 50 bruno failed 49 34 dina closed 9 6 dina pending 35 51 lina paused 118 10 bruno pending 57 5 kim closed 43 26 chen closed 99 1 ivan ready 44 21 bruno
bruno 50 dina 34 dina 6 lina 51 bruno 10 kim 5 chen 26 ivan 1 bruno 21
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045630
qwen/qwen3.7-plus
awkweave-0045631
Print the last field of every input line.
{print $NF}
75 ready paused 43 107 ready failed 64 68 ready paused 49 0 pending active 39 66 active paused 21 120 active pending 86 5 paused closed 21
43 64 49 39 21 86 21
97 pending failed 107 3 closed ready 84 28 paused closed 27 40 ready ready 5 20 active paused 71 1 closed active 79 70 pending failed 56 7 paused ready 108
107 84 27 5 71 79 56 108
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045631-p1
Output the final field from each input line.
{print $NF}
75 ready paused 43 107 ready failed 64 68 ready paused 49 0 pending active 39 66 active paused 21 120 active pending 86 5 paused closed 21
43 64 49 39 21 86 21
97 pending failed 107 3 closed ready 84 28 paused closed 27 40 ready ready 5 20 active paused 71 1 closed active 79 70 pending failed 56 7 paused ready 108
107 84 27 5 71 79 56 108
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045631
qwen/qwen3.7-plus
awkweave-0045632
Print the complete records where column 3 is greater than 65.
$3 > 65
eli chen 62 juniper alice hana hana 57 juniper gus kim kim 87 cobalt ivan farah gus 119 juniper dina gus gus 8 grove chen gus eli 75 harbor gus
kim kim 87 cobalt ivan farah gus 119 juniper dina gus eli 75 harbor gus
gus alice 30 indigo alice alice ivan 71 birch gus kim alice 13 harbor eli hana gus 8 birch gus chen chen 78 delta ivan ivan bruno 63 amber eli kim gus 92 fable chen gus gus 39 delta hana lina jules 63 cobalt dina
alice ivan 71 birch gus chen chen 78 delta ivan kim gus 92 fable chen
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045632-p1
Print the entire records for which the value in the third column exceeds 65.
$3 > 65
eli chen 62 juniper alice hana hana 57 juniper gus kim kim 87 cobalt ivan farah gus 119 juniper dina gus gus 8 grove chen gus eli 75 harbor gus
kim kim 87 cobalt ivan farah gus 119 juniper dina gus eli 75 harbor gus
gus alice 30 indigo alice alice ivan 71 birch gus kim alice 13 harbor eli hana gus 8 birch gus chen chen 78 delta ivan ivan bruno 63 amber eli kim gus 92 fable chen gus gus 39 delta hana lina jules 63 cobalt dina
alice ivan 71 birch gus chen chen 78 delta ivan kim gus 92 fable chen
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045632
qwen/qwen3.7-plus
awkweave-0045633
Show whole lines whose 3rd field is between 3 and 25, inclusive.
$3 >= 3 && $3 <= 25
hana alice 25 paused kim gus 18 active gus farah 11 closed bruno ivan 17 closed ivan jules 2 active eli lina 27 pending eli eli 14 pending lina gus 11 pending
hana alice 25 paused kim gus 18 active gus farah 11 closed bruno ivan 17 closed eli eli 14 pending lina gus 11 pending
hana chen 22 closed hana chen 11 ready gus farah 4 failed lina kim 18 ready kim gus 25 ready chen farah 7 pending gus hana 6 paused lina jules 25 paused eli bruno 2 active dina gus 8 paused
hana chen 22 closed hana chen 11 ready gus farah 4 failed lina kim 18 ready kim gus 25 ready chen farah 7 pending gus hana 6 paused lina jules 25 paused dina gus 8 paused
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045633-p1
Display complete lines where the third field falls within the inclusive range of 3 to 25.
$3 >= 3 && $3 <= 25
hana alice 25 paused kim gus 18 active gus farah 11 closed bruno ivan 17 closed ivan jules 2 active eli lina 27 pending eli eli 14 pending lina gus 11 pending
hana alice 25 paused kim gus 18 active gus farah 11 closed bruno ivan 17 closed eli eli 14 pending lina gus 11 pending
hana chen 22 closed hana chen 11 ready gus farah 4 failed lina kim 18 ready kim gus 25 ready chen farah 7 pending gus hana 6 paused lina jules 25 paused eli bruno 2 active dina gus 8 paused
hana chen 22 closed hana chen 11 ready gus farah 4 failed lina kim 18 ready kim gus 25 ready chen farah 7 pending gus hana 6 paused lina jules 25 paused dina gus 8 paused
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045633
qwen/qwen3.7-plus
awkweave-0045634
Print column 2 only for rows where column 3 is exactly closed.
$3 == "closed"{print $2}
juniper ivan pending 118 cobalt lina failed 19 cobalt lina closed 26 grove chen paused 70 cobalt bruno active 5 fable kim paused 18 indigo farah ready 47 ember alice ready 64
lina
amber gus active 92 harbor chen pending 80 cobalt farah pending 49 harbor ivan pending 46 indigo dina closed 22 amber hana paused 115 cobalt ivan active 82 delta kim failed 57 delta farah ready 64
dina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045634-p1
Output only the second column for rows where the third column contains the exact value 'closed'.
$3 == "closed"{print $2}
juniper ivan pending 118 cobalt lina failed 19 cobalt lina closed 26 grove chen paused 70 cobalt bruno active 5 fable kim paused 18 indigo farah ready 47 ember alice ready 64
lina
amber gus active 92 harbor chen pending 80 cobalt farah pending 49 harbor ivan pending 46 indigo dina closed 22 amber hana paused 115 cobalt ivan active 82 delta kim failed 57 delta farah ready 64
dina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045634
qwen/qwen3.7-plus
awkweave-0045635
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
cobalt WARN 104 delta ERROR 25 harbor DEBUG 90 birch WARN 89 fable ERROR 40 juniper ERROR 71 juniper INFO 115
delta ERROR 25 fable ERROR 40 juniper ERROR 71
indigo INFO 77 grove INFO 36 birch DEBUG 19 ember INFO 79 fable WARN 87 cobalt INFO 93
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045635-p1
Print all fields from any line where the second field starts with the string 'ERROR'.
$2 ~ /^ERROR/
cobalt WARN 104 delta ERROR 25 harbor DEBUG 90 birch WARN 89 fable ERROR 40 juniper ERROR 71 juniper INFO 115
delta ERROR 25 fable ERROR 40 juniper ERROR 71
indigo INFO 77 grove INFO 36 birch DEBUG 19 ember INFO 79 fable WARN 87 cobalt INFO 93
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045635
qwen/qwen3.7-plus
awkweave-0045636
Print every line except those containing the exact text fable.
$0 !~ /fable/
fable 31 closed delta 113 failed amber 101 failed birch 71 pending ember 6 failed grove 37 failed ember 5 ready indigo 29 closed harbor 26 paused fable 999 active
delta 113 failed amber 101 failed birch 71 pending ember 6 failed grove 37 failed ember 5 ready indigo 29 closed harbor 26 paused
delta 114 pending harbor 28 pending indigo 44 ready cobalt 119 failed harbor 51 failed indigo 50 pending ember 16 failed cobalt 28 pending fable 999 active
delta 114 pending harbor 28 pending indigo 44 ready cobalt 119 failed harbor 51 failed indigo 50 pending ember 16 failed cobalt 28 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045636-p1
Display all lines that do not contain the exact string fable.
$0 !~ /fable/
fable 31 closed delta 113 failed amber 101 failed birch 71 pending ember 6 failed grove 37 failed ember 5 ready indigo 29 closed harbor 26 paused fable 999 active
delta 113 failed amber 101 failed birch 71 pending ember 6 failed grove 37 failed ember 5 ready indigo 29 closed harbor 26 paused
delta 114 pending harbor 28 pending indigo 44 ready cobalt 119 failed harbor 51 failed indigo 50 pending ember 16 failed cobalt 28 pending fable 999 active
delta 114 pending harbor 28 pending indigo 44 ready cobalt 119 failed harbor 51 failed indigo 50 pending ember 16 failed cobalt 28 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045636
qwen/qwen3.7-plus
awkweave-0045637
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
gus indigo 51 jules indigo 112 ivan ember 52 chen harbor 118 ivan delta 66 chen ember 87 dina amber 99
chen harbor 118 ivan delta 66 chen ember 87 dina amber 99
ivan harbor 2 lina ember 46 chen harbor 63 jules cobalt 52 bruno amber 43 kim fable 116 hana ember 82 dina amber 120
jules cobalt 52 bruno amber 43 kim fable 116 hana ember 82
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045637-p1
Output lines 4 to 7, inclusive of both the start and end lines.
NR >= 4 && NR <= 7
gus indigo 51 jules indigo 112 ivan ember 52 chen harbor 118 ivan delta 66 chen ember 87 dina amber 99
chen harbor 118 ivan delta 66 chen ember 87 dina amber 99
ivan harbor 2 lina ember 46 chen harbor 63 jules cobalt 52 bruno amber 43 kim fable 116 hana ember 82 dina amber 120
jules cobalt 52 bruno amber 43 kim fable 116 hana ember 82
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045637
qwen/qwen3.7-plus
awkweave-0045638
Output only the first 4 records.
NR <= 4
bruno 60 indigo lina 68 harbor lina 46 fable bruno 35 fable gus 54 ember chen 33 birch hana 85 juniper eli 10 birch lina 72 cobalt
bruno 60 indigo lina 68 harbor lina 46 fable bruno 35 fable
kim 37 harbor jules 41 amber farah 27 fable gus 4 cobalt kim 24 indigo ivan 116 grove jules 116 indigo bruno 11 harbor hana 107 grove
kim 37 harbor jules 41 amber farah 27 fable gus 4 cobalt
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045638-p1
Show only the initial 4 records.
NR <= 4
bruno 60 indigo lina 68 harbor lina 46 fable bruno 35 fable gus 54 ember chen 33 birch hana 85 juniper eli 10 birch lina 72 cobalt
bruno 60 indigo lina 68 harbor lina 46 fable bruno 35 fable
kim 37 harbor jules 41 amber farah 27 fable gus 4 cobalt kim 24 indigo ivan 116 grove jules 116 indigo bruno 11 harbor hana 107 grove
kim 37 harbor jules 41 amber farah 27 fable gus 4 cobalt
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045638
qwen/qwen3.7-plus
awkweave-0045639
Skip the first line and print every remaining line unchanged.
NR > 1
bruno 73 birch eli 107 indigo kim 4 grove dina 65 amber jules 102 amber farah 115 birch kim 80 ember farah 116 delta
eli 107 indigo kim 4 grove dina 65 amber jules 102 amber farah 115 birch kim 80 ember farah 116 delta
ivan 87 ember alice 12 juniper hana 74 fable bruno 39 indigo dina 92 indigo bruno 22 fable lina 98 ember ivan 112 birch jules 118 birch dina 65 juniper
alice 12 juniper hana 74 fable bruno 39 indigo dina 92 indigo bruno 22 fable lina 98 ember ivan 112 birch jules 118 birch dina 65 juniper
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045639-p1
Omit the first line and output the rest of the lines as they are.
NR > 1
bruno 73 birch eli 107 indigo kim 4 grove dina 65 amber jules 102 amber farah 115 birch kim 80 ember farah 116 delta
eli 107 indigo kim 4 grove dina 65 amber jules 102 amber farah 115 birch kim 80 ember farah 116 delta
ivan 87 ember alice 12 juniper hana 74 fable bruno 39 indigo dina 92 indigo bruno 22 fable lina 98 ember ivan 112 birch jules 118 birch dina 65 juniper
alice 12 juniper hana 74 fable bruno 39 indigo dina 92 indigo bruno 22 fable lina 98 ember ivan 112 birch jules 118 birch dina 65 juniper
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045639
qwen/qwen3.7-plus
awkweave-0045640
Count how many records have ready in column 2. Print 0 if there are none.
$2 == "ready"{n++}END{print n+0}
lina active 88 eli active 25 ivan pending 102 farah failed 41 gus closed 51 farah active 113 bruno active 110 eli paused 96 bruno ready 39
1
farah pending 85 bruno active 72 gus failed 100 kim closed 81 kim pending 62 gus closed 38 farah active 108
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045640-p1
Determine the number of records where column 2 is ready. Output 0 if no such records exist.
$2 == "ready"{n++}END{print n+0}
lina active 88 eli active 25 ivan pending 102 farah failed 41 gus closed 51 farah active 113 bruno active 110 eli paused 96 bruno ready 39
1
farah pending 85 bruno active 72 gus failed 100 kim closed 81 kim pending 62 gus closed 38 farah active 108
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045640
qwen/qwen3.7-plus
awkweave-0045641
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
dina 26 juniper eli 17 indigo eli 4 harbor bruno 27 birch jules 5 delta farah 21 amber
100
jules 5 fable hana 16 grove eli 28 ember gus 15 amber alice 27 harbor ivan 4 harbor
95
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045641-p1
Compute and display the total sum of integer values in column 2.
{s+=$2}END{print s+0}
dina 26 juniper eli 17 indigo eli 4 harbor bruno 27 birch jules 5 delta farah 21 amber
100
jules 5 fable hana 16 grove eli 28 ember gus 15 amber alice 27 harbor ivan 4 harbor
95
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045641
qwen/qwen3.7-plus
awkweave-0045642
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
5 farah amber 8 gus delta 24 alice indigo 16 ivan amber 10 gus cobalt 7 lina amber 14 farah harbor 20 alice delta 12 gus amber 4 farah birch
12.00
29 lina grove 8 bruno fable 9 gus juniper 23 chen grove 2 eli harbor 21 alice grove 28 gus delta 2 alice birch
15.25
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045642-p1
Calculate the average of column 1 and print it rounded to two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
5 farah amber 8 gus delta 24 alice indigo 16 ivan amber 10 gus cobalt 7 lina amber 14 farah harbor 20 alice delta 12 gus amber 4 farah birch
12.00
29 lina grove 8 bruno fable 9 gus juniper 23 chen grove 2 eli harbor 21 alice grove 28 gus delta 2 alice birch
15.25
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045642
qwen/qwen3.7-plus
awkweave-0045643
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
gus amber 8 jules fable 11 gus birch 10 ivan harbor 3 bruno indigo 18 hana birch 6 ivan birch 28 ivan delta 17 alice ember 2
2
chen delta 12 gus amber 4 alice juniper 6 lina ember 18 farah juniper 2 alice amber 8 chen harbor 26
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045643-p1
Identify and output the minimum numeric value found in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
gus amber 8 jules fable 11 gus birch 10 ivan harbor 3 bruno indigo 18 hana birch 6 ivan birch 28 ivan delta 17 alice ember 2
2
chen delta 12 gus amber 4 alice juniper 6 lina ember 18 farah juniper 2 alice amber 8 chen harbor 26
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045643
qwen/qwen3.7-plus
awkweave-0045644
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
delta gus 23 indigo hana 22 harbor hana 28 ember dina 2 birch hana 8 fable farah 11 cobalt jules 15 harbor dina 22 ember kim 21 harbor farah 23
28
fable bruno 22 birch gus 26 birch dina 7 indigo hana 2 juniper bruno 4 cobalt farah 29
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045644-p1
Identify and output the maximum numeric value found in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
delta gus 23 indigo hana 22 harbor hana 28 ember dina 2 birch hana 8 fable farah 11 cobalt jules 15 harbor dina 22 ember kim 21 harbor farah 23
28
fable bruno 22 birch gus 26 birch dina 7 indigo hana 2 juniper bruno 4 cobalt farah 29
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045644
qwen/qwen3.7-plus
awkweave-0045645
Count all input records and print the total.
END{print NR}
alice 117 bruno 19 lina 10 farah 86 kim 12 dina 2 gus 59 jules 43
8
ivan 82 hana 106 ivan 85 eli 89 dina 44 hana 64 ivan 11 eli 65
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045645-p1
Count the total number of input records and print the result.
END{print NR}
alice 117 bruno 19 lina 10 farah 86 kim 12 dina 2 gus 59 jules 43
8
ivan 82 hana 106 ivan 85 eli 89 dina 44 hana 64 ivan 11 eli 65
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045645
qwen/qwen3.7-plus
awkweave-0045646
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
ivan indigo 17 alice juniper 79 hana birch 34 kim harbor 3 jules fable 29 kim harbor 3 eli harbor 53 alice juniper 53
ivan indigo 17 alice juniper 79 hana birch 34 kim harbor 3 jules fable 29 eli harbor 53 alice juniper 53
hana grove 29 lina harbor 67 lina amber 31 ivan indigo 64 gus fable 96 gus fable 96 hana harbor 71 bruno cobalt 39 bruno juniper 71
hana grove 29 lina harbor 67 lina amber 31 ivan indigo 64 gus fable 96 hana harbor 71 bruno cobalt 39 bruno juniper 71
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045646-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
ivan indigo 17 alice juniper 79 hana birch 34 kim harbor 3 jules fable 29 kim harbor 3 eli harbor 53 alice juniper 53
ivan indigo 17 alice juniper 79 hana birch 34 kim harbor 3 jules fable 29 eli harbor 53 alice juniper 53
hana grove 29 lina harbor 67 lina amber 31 ivan indigo 64 gus fable 96 gus fable 96 hana harbor 71 bruno cobalt 39 bruno juniper 71
hana grove 29 lina harbor 67 lina amber 31 ivan indigo 64 gus fable 96 hana harbor 71 bruno cobalt 39 bruno juniper 71
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045646
qwen/qwen3.7-plus
awkweave-0045647
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
farah ember 15 farah juniper 2 eli harbor 120 eli amber 74 gus grove 8 kim birch 59 eli cobalt 54 eli birch 72
farah ember 15 eli harbor 120 gus grove 8 kim birch 59
farah harbor 107 chen delta 3 lina birch 24 farah delta 61 ivan cobalt 41 hana fable 20
farah harbor 107 chen delta 3 lina birch 24 ivan cobalt 41 hana fable 20
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045647-p1
Retain only the first occurrence of each unique value in column 1, keeping the original input order.
!seen[$1]++
farah ember 15 farah juniper 2 eli harbor 120 eli amber 74 gus grove 8 kim birch 59 eli cobalt 54 eli birch 72
farah ember 15 eli harbor 120 gus grove 8 kim birch 59
farah harbor 107 chen delta 3 lina birch 24 farah delta 61 ivan cobalt 41 hana fable 20
farah harbor 107 chen delta 3 lina birch 24 ivan cobalt 41 hana fable 20
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045647
qwen/qwen3.7-plus
awkweave-0045648
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
farah 12 ember kim 30 indigo kim 15 cobalt chen 21 fable jules 3 fable kim 3 fable jules 12 indigo
farah 12 kim 42 kim 57 chen 78 jules 81 kim 84 jules 96
farah 9 cobalt ivan 14 juniper chen 24 grove ivan 12 grove jules 18 ember farah 13 juniper lina 9 harbor
farah 9 ivan 23 chen 47 ivan 59 jules 77 farah 90 lina 99
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045648-p1
Output the first column and the cumulative total of the second column for every record, separated by a space.
{s+=$2;print $1,s}
farah 12 ember kim 30 indigo kim 15 cobalt chen 21 fable jules 3 fable kim 3 fable jules 12 indigo
farah 12 kim 42 kim 57 chen 78 jules 81 kim 84 jules 96
farah 9 cobalt ivan 14 juniper chen 24 grove ivan 12 grove jules 18 ember farah 13 juniper lina 9 harbor
farah 9 ivan 23 chen 47 ivan 59 jules 77 farah 90 lina 99
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045648
qwen/qwen3.7-plus
awkweave-0045649
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
jules 15 3 amber chen 13 9 juniper lina 19 10 birch ivan 29 19 grove farah 9 18 cobalt farah 20 15 grove gus 3 17 grove
jules 18 chen 22 lina 29 ivan 48 farah 27 farah 35 gus 20
bruno 4 12 harbor kim 26 29 amber lina 4 29 birch alice 16 4 indigo lina 7 23 cobalt alice 5 24 amber
bruno 16 kim 55 lina 33 alice 20 lina 30 alice 29
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045649-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
jules 15 3 amber chen 13 9 juniper lina 19 10 birch ivan 29 19 grove farah 9 18 cobalt farah 20 15 grove gus 3 17 grove
jules 18 chen 22 lina 29 ivan 48 farah 27 farah 35 gus 20
bruno 4 12 harbor kim 26 29 amber lina 4 29 birch alice 16 4 indigo lina 7 23 cobalt alice 5 24 amber
bruno 16 kim 55 lina 33 alice 20 lina 30 alice 29
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045649
qwen/qwen3.7-plus
awkweave-0045650
Print column 1 and pass when column 2 is at least 21; otherwise print fail.
{print $1,($2>=21?"pass":"fail")}
jules 6 dina 2 farah 26 farah 30 gus 12 dina 25 bruno 25 farah 27
jules fail dina fail farah pass farah pass gus fail dina pass bruno pass farah pass
ivan 5 jules 12 bruno 21 chen 4 chen 28 jules 18 dina 3 gus 4 eli 23
ivan fail jules fail bruno pass chen fail chen pass jules fail dina fail gus fail eli pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045650-p1
Print the first column along with 'pass' if the second column is 21 or greater; otherwise, print 'fail'.
{print $1,($2>=21?"pass":"fail")}
jules 6 dina 2 farah 26 farah 30 gus 12 dina 25 bruno 25 farah 27
jules fail dina fail farah pass farah pass gus fail dina pass bruno pass farah pass
ivan 5 jules 12 bruno 21 chen 4 chen 28 jules 18 dina 3 gus 4 eli 23
ivan fail jules fail bruno pass chen fail chen pass jules fail dina fail gus fail eli pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045650
qwen/qwen3.7-plus
awkweave-0045651
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
dina amber 36 ivan juniper 35 jules fable 45 lina harbor 87 dina delta 113 kim indigo 46 alice amber 77 jules birch 43 kim indigo 31 lina amber 114
DINA IVAN JULES LINA DINA KIM ALICE JULES KIM LINA
jules indigo 56 bruno cobalt 56 farah ember 84 chen birch 37 ivan amber 79 dina harbor 17 alice delta 59 eli indigo 26
JULES BRUNO FARAH CHEN IVAN DINA ALICE ELI
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045651-p1
Transform the first column to uppercase and output only that modified column.
{print toupper($1)}
dina amber 36 ivan juniper 35 jules fable 45 lina harbor 87 dina delta 113 kim indigo 46 alice amber 77 jules birch 43 kim indigo 31 lina amber 114
DINA IVAN JULES LINA DINA KIM ALICE JULES KIM LINA
jules indigo 56 bruno cobalt 56 farah ember 84 chen birch 37 ivan amber 79 dina harbor 17 alice delta 59 eli indigo 26
JULES BRUNO FARAH CHEN IVAN DINA ALICE ELI
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045651
qwen/qwen3.7-plus
awkweave-0045652
From column 1, print 4 characters starting at character 2.
{print substr($1,2,4)}
amber 116 birch 86 cobalt 55 fable 65 juniper 4 indigo 2 harbor 26 birch 62
mber irch obal able unip ndig arbo irch
cobalt 88 cobalt 11 grove 52 cobalt 108 amber 98 indigo 2 juniper 103 fable 60 birch 79 harbor 95
obal obal rove obal mber ndig unip able irch arbo
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045652-p1
Extract and print a 4-character substring from the first column, starting at the second character.
{print substr($1,2,4)}
amber 116 birch 86 cobalt 55 fable 65 juniper 4 indigo 2 harbor 26 birch 62
mber irch obal able unip ndig arbo irch
cobalt 88 cobalt 11 grove 52 cobalt 108 amber 98 indigo 2 juniper 103 fable 60 birch 79 harbor 95
obal obal rove obal mber ndig unip able irch arbo
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045652
qwen/qwen3.7-plus
awkweave-0045653
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
delta_indigo 99 delta_juniper 35 amber_harbor 114 juniper_delta 4 cobalt_ember 27 juniper_ember 100 grove_ember 8 fable_amber 86 juniper_ember 29 harbor_birch 108
delta indigo delta juniper amber harbor juniper delta cobalt ember juniper ember grove ember fable amber juniper ember harbor birch
birch_grove 108 birch_delta 48 grove_juniper 30 cobalt_harbor 100 amber_grove 38 ember_delta 36 birch_amber 81
birch grove birch delta grove juniper cobalt harbor amber grove ember delta birch amber
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045653-p1
Substitute all underscores in the first column with spaces and print the updated values.
{gsub(/_/," ",$1);print $1}
delta_indigo 99 delta_juniper 35 amber_harbor 114 juniper_delta 4 cobalt_ember 27 juniper_ember 100 grove_ember 8 fable_amber 86 juniper_ember 29 harbor_birch 108
delta indigo delta juniper amber harbor juniper delta cobalt ember juniper ember grove ember fable amber juniper ember harbor birch
birch_grove 108 birch_delta 48 grove_juniper 30 cobalt_harbor 100 amber_grove 38 ember_delta 36 birch_amber 81
birch grove birch delta grove juniper cobalt harbor amber grove ember delta birch amber
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045653
qwen/qwen3.7-plus
awkweave-0045654
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 cobalt 84 paused eli cobalt 25 pending dina indigo 7 failed jules indigo 117 paused lina amber 79 ready hana delta 24 closed dina fable 88 active
paused 84 cobalt hana pending 25 cobalt eli failed 7 indigo dina paused 117 indigo jules ready 79 amber lina closed 24 delta hana active 88 fable dina
hana amber 18 failed dina fable 39 ready gus delta 107 pending farah fable 61 failed jules ember 18 ready bruno fable 38 closed
failed 18 amber hana ready 39 fable dina pending 107 delta gus failed 61 fable farah ready 18 ember jules closed 38 fable bruno
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045654-p1
Reverse the sequence of fields on each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
hana cobalt 84 paused eli cobalt 25 pending dina indigo 7 failed jules indigo 117 paused lina amber 79 ready hana delta 24 closed dina fable 88 active
paused 84 cobalt hana pending 25 cobalt eli failed 7 indigo dina paused 117 indigo jules ready 79 amber lina closed 24 delta hana active 88 fable dina
hana amber 18 failed dina fable 39 ready gus delta 107 pending farah fable 61 failed jules ember 18 ready bruno fable 38 closed
failed 18 amber hana ready 39 fable dina pending 107 delta gus failed 61 fable farah ready 18 ember jules closed 38 fable bruno
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045654
qwen/qwen3.7-plus
awkweave-0045655
Print the number of whitespace-separated fields on each line.
{print NF}
kim ember 69 pending dina indigo 60 ready eli amber 17 active alice fable 24 ready chen harbor 30 active ivan indigo 48 active chen grove 64 active chen grove 1 ready lina cobalt 50 closed gus indigo 82 failed
4 4 4 4 4 4 4 4 4 4
ivan ember 111 pending chen juniper 31 failed jules grove 17 active bruno birch 76 active bruno delta 17 failed jules cobalt 116 paused alice harbor 53 closed bruno birch 117 closed eli birch 35 failed gus harbor 58 active
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045655-p1
Display the count of whitespace-delimited fields for every line.
{print NF}
kim ember 69 pending dina indigo 60 ready eli amber 17 active alice fable 24 ready chen harbor 30 active ivan indigo 48 active chen grove 64 active chen grove 1 ready lina cobalt 50 closed gus indigo 82 failed
4 4 4 4 4 4 4 4 4 4
ivan ember 111 pending chen juniper 31 failed jules grove 17 active bruno birch 76 active bruno delta 17 failed jules cobalt 116 paused alice harbor 53 closed bruno birch 117 closed eli birch 35 failed gus harbor 58 active
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045655
qwen/qwen3.7-plus
awkweave-0045656
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]]}
eli delta 51 alice delta 75 farah gamma 73 lina alpha 67 jules beta 50 eli alpha 102
delta 2 gamma 1 alpha 2 beta 1
farah gamma 53 chen beta 65 dina alpha 9 ivan beta 83 hana alpha 99 bruno beta 85
gamma 1 beta 3 alpha 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045656-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]]}
eli delta 51 alice delta 75 farah gamma 73 lina alpha 67 jules beta 50 eli alpha 102
delta 2 gamma 1 alpha 2 beta 1
farah gamma 53 chen beta 65 dina alpha 9 ivan beta 83 hana alpha 99 bruno beta 85
gamma 1 beta 3 alpha 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045656
qwen/qwen3.7-plus
awkweave-0045657
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]]}
alice alpha 30 jules delta 12 gus beta 2 ivan beta 6 gus delta 22 chen alpha 1
alpha 31 delta 34 beta 8
ivan beta 29 chen gamma 16 kim gamma 13 alice alpha 15 eli delta 29 ivan beta 23 jules delta 15 lina delta 6
beta 52 gamma 29 alpha 15 delta 50
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045657-p1
Calculate the sum of the third column for each group defined by the second column, outputting results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
alice alpha 30 jules delta 12 gus beta 2 ivan beta 6 gus delta 22 chen alpha 1
alpha 31 delta 34 beta 8
ivan beta 29 chen gamma 16 kim gamma 13 alice alpha 15 eli delta 29 ivan beta 23 jules delta 15 lina delta 6
beta 52 gamma 29 alpha 15 delta 50
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045657
qwen/qwen3.7-plus
awkweave-0045658
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 fable 19 delta ember 38 delta amber 81 alpha fable 15 gamma fable 21 gamma cobalt 2 alpha harbor 97 beta amber 41
delta 3 alpha 2 gamma 2
beta grove 39 gamma cobalt 45 gamma fable 110 delta cobalt 37 delta fable 20 delta amber 13 gamma delta 34 beta fable 113 delta fable 31 alpha fable 39
beta 2 gamma 3 delta 4
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045658-p1
List each duplicate value from the first column alongside 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 fable 19 delta ember 38 delta amber 81 alpha fable 15 gamma fable 21 gamma cobalt 2 alpha harbor 97 beta amber 41
delta 3 alpha 2 gamma 2
beta grove 39 gamma cobalt 45 gamma fable 110 delta cobalt 37 delta fable 20 delta amber 13 gamma delta 34 beta fable 113 delta fable 31 alpha fable 39
beta 2 gamma 3 delta 4
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045658
qwen/qwen3.7-plus
awkweave-0045659
The first row is a header. Print the display_name column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
score record_id display_name region r001 gus 28 ready r002 hana 22 failed r003 jules 3 paused r004 ivan 14 paused r005 lina 8 paused r006 bruno 25 active r007 jules 19 paused r008 gus 20 paused r009 hana 1 ready
28 22 3 14 8 25 19 20 1
score record_id display_name region r001 chen 1 paused r002 eli 6 closed r003 bruno 6 closed r004 farah 17 active r005 farah 6 closed r006 bruno 18 failed r007 farah 9 paused r008 jules 5 active
1 6 6 17 6 18 9 5
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045659-p1
Skip the header row and print the values from the display_name column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
score record_id display_name region r001 gus 28 ready r002 hana 22 failed r003 jules 3 paused r004 ivan 14 paused r005 lina 8 paused r006 bruno 25 active r007 jules 19 paused r008 gus 20 paused r009 hana 1 ready
28 22 3 14 8 25 19 20 1
score record_id display_name region r001 chen 1 paused r002 eli 6 closed r003 bruno 6 closed r004 farah 17 active r005 farah 6 closed r006 bruno 18 failed r007 farah 9 paused r008 jules 5 active
1 6 6 17 6 18 9 5
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045659
qwen/qwen3.7-plus
awkweave-0045660
The first row is a header. Print display_name for data rows whose score is greater than 10.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>10{print $h["display_name"]}
record_id display_name score state r001 chen 1 failed r002 ivan 1 active r003 ivan 17 closed r004 lina 7 active r005 alice 15 active r006 chen 12 closed r007 bruno 3 paused
ivan alice chen
record_id display_name score state r001 lina 12 closed r002 kim 10 paused r003 eli 29 closed r004 bruno 11 closed r005 hana 4 ready r006 lina 9 pending r007 lina 12 ready r008 farah 5 failed r009 farah 28 failed
lina eli bruno lina farah
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045660-p1
Skip the header row and output the display_name field for any data rows where the score exceeds 10.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>10{print $h["display_name"]}
record_id display_name score state r001 chen 1 failed r002 ivan 1 active r003 ivan 17 closed r004 lina 7 active r005 alice 15 active r006 chen 12 closed r007 bruno 3 paused
ivan alice chen
record_id display_name score state r001 lina 12 closed r002 kim 10 paused r003 eli 29 closed r004 bruno 11 closed r005 hana 4 ready r006 lina 9 pending r007 lina 12 ready r008 farah 5 failed r009 farah 28 failed
lina eli bruno lina farah
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045660
qwen/qwen3.7-plus
awkweave-0045661
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
hana 26 failed chen 7 failed alice 24 ready lina 16 ready dina 21 active hana 25 pending ivan 6 pending hana 18 ready
hana chen alice lina dina hana ivan hana
hana 9 closed lina 13 pending dina 23 ready dina 4 active lina 23 pending ivan 14 failed ivan 23 ready jules 7 pending
hana lina dina dina lina ivan ivan jules
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045661-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
hana 26 failed chen 7 failed alice 24 ready lina 16 ready dina 21 active hana 25 pending ivan 6 pending hana 18 ready
hana chen alice lina dina hana ivan hana
hana 9 closed lina 13 pending dina 23 ready dina 4 active lina 23 pending ivan 14 failed ivan 23 ready jules 7 pending
hana lina dina dina lina ivan ivan jules
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0045661
qwen/qwen3.7-plus
awkweave-0045662
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 8.
BEGIN{FS=OFS=","}$2>8{print $1}
alice,23,active jules,29,pending gus,21,ready chen,18,paused farah,28,ready farah,20,active ivan,8,failed gus,7,failed
alice jules gus chen farah farah
dina,16,pending farah,20,failed ivan,19,paused chen,15,paused lina,4,closed dina,22,closed bruno,5,pending gus,12,pending
dina farah ivan chen dina gus
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null