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-0021441
The first row is a header. Print display_name for data rows whose score is greater than 23.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>23{print $h["display_name"]}
record_id display_name score state r001 lina 2 active r002 kim 2 pending r003 bruno 12 pending r004 kim 9 active r005 ivan 10 failed r006 lina 5 paused r007 farah 22 pending r008 jules 12 active r009 bruno 5 pending r010 jules 27 active
jules
record_id display_name score state r001 farah 8 failed r002 farah 8 active r003 bruno 13 ready r004 lina 21 failed r005 chen 24 closed r006 jules 9 pending
chen
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021441-p1
Ignoring the header, print the display_name for any record where the score is strictly greater than 23.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>23{print $h["display_name"]}
record_id display_name score state r001 lina 2 active r002 kim 2 pending r003 bruno 12 pending r004 kim 9 active r005 ivan 10 failed r006 lina 5 paused r007 farah 22 pending r008 jules 12 active r009 bruno 5 pending r010 jules 27 active
jules
record_id display_name score state r001 farah 8 failed r002 farah 8 active r003 bruno 13 ready r004 lina 21 failed r005 chen 24 closed r006 jules 9 pending
chen
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021441
qwen/qwen3.7-plus
awkweave-0021442
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
alice 16 ready alice 21 closed lina 18 paused gus 5 ready kim 12 pending hana 22 paused kim 30 ready dina 16 failed
16 21 18 5 12 22 30 16
dina 17 closed lina 3 ready lina 21 closed hana 15 pending lina 21 closed hana 4 active eli 1 failed
17 3 21 15 21 4 1
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021442-p1
Given tab-separated input, extract and print the second field from each record.
BEGIN{FS=OFS="\t"}{print $2}
alice 16 ready alice 21 closed lina 18 paused gus 5 ready kim 12 pending hana 22 paused kim 30 ready dina 16 failed
16 21 18 5 12 22 30 16
dina 17 closed lina 3 ready lina 21 closed hana 15 pending lina 21 closed hana 4 active eli 1 failed
17 3 21 15 21 4 1
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021442
qwen/qwen3.7-plus
awkweave-0021443
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 24.
BEGIN{FS=OFS=","}$2>24{print $1}
ivan,29,closed dina,20,paused jules,9,paused chen,9,ready ivan,18,failed farah,29,pending
ivan farah
chen,22,pending gus,7,closed hana,13,active jules,3,pending gus,2,ready kim,25,pending ivan,1,pending gus,28,failed ivan,15,active gus,4,pending
kim gus
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021443-p1
For simple comma-separated input without quoted commas, print the first column if the second column value is greater than 24.
BEGIN{FS=OFS=","}$2>24{print $1}
ivan,29,closed dina,20,paused jules,9,paused chen,9,ready ivan,18,failed farah,29,pending
ivan farah
chen,22,pending gus,7,closed hana,13,active jules,3,pending gus,2,ready kim,25,pending ivan,1,pending gus,28,failed ivan,15,active gus,4,pending
kim gus
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021443
qwen/qwen3.7-plus
awkweave-0021444
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina juniper 108 dina fable 83 chen grove 70 kim indigo 25 jules harbor 8 dina grove 114 gus birch 103 eli juniper 3
lina juniper 108 dina fable 83 chen grove 70 kim indigo 25 jules harbor 8 dina grove 114 gus birch 103 eli juniper 3
chen cobalt 36 jules ember 54 bruno juniper 100 chen delta 38 eli ember 14 farah fable 101 hana indigo 3
chen cobalt 36 jules ember 54 bruno juniper 100 chen delta 38 eli ember 14 farah fable 101 hana indigo 3
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021444-p1
Remove leading and trailing whitespace and replace sequences of internal whitespace with a single space.
{$1=$1;print}
lina juniper 108 dina fable 83 chen grove 70 kim indigo 25 jules harbor 8 dina grove 114 gus birch 103 eli juniper 3
lina juniper 108 dina fable 83 chen grove 70 kim indigo 25 jules harbor 8 dina grove 114 gus birch 103 eli juniper 3
chen cobalt 36 jules ember 54 bruno juniper 100 chen delta 38 eli ember 14 farah fable 101 hana indigo 3
chen cobalt 36 jules ember 54 bruno juniper 100 chen delta 38 eli ember 14 farah fable 101 hana indigo 3
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021444
qwen/qwen3.7-plus
awkweave-0021445
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah harbor 87 pending bruno ember 26 paused farah indigo 15 paused dina harbor 108 pending farah juniper 107 failed alice grove 25 failed kim indigo 6 closed alice grove 110 active
farah juniper 107 failed
chen harbor 118 active farah ember 28 closed farah delta 112 active lina amber 56 ready kim indigo 5 paused dina grove 12 failed farah birch 30 active alice birch 76 failed
chen harbor 118 active
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021445-p1
Identify and output the longest line from the input; in case of a tie in length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah harbor 87 pending bruno ember 26 paused farah indigo 15 paused dina harbor 108 pending farah juniper 107 failed alice grove 25 failed kim indigo 6 closed alice grove 110 active
farah juniper 107 failed
chen harbor 118 active farah ember 28 closed farah delta 112 active lina amber 56 ready kim indigo 5 paused dina grove 12 failed farah birch 30 active alice birch 76 failed
chen harbor 118 active
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021445
qwen/qwen3.7-plus
awkweave-0021446
Print every 3rd line starting at line 1 (then line 4, and so on).
NR%3==1
dina 70 alice 115 hana 25 bruno 61 farah 41 bruno 109 dina 99
dina 70 bruno 61 dina 99
dina 62 gus 47 dina 44 gus 14 eli 8 dina 44 hana 55 chen 110 hana 116
dina 62 gus 14 hana 55
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021446-p1
Print lines 1, 4, 7, and so on, effectively selecting every third line starting from the first.
NR%3==1
dina 70 alice 115 hana 25 bruno 61 farah 41 bruno 109 dina 99
dina 70 bruno 61 dina 99
dina 62 gus 47 dina 44 gus 14 eli 8 dina 44 hana 55 chen 110 hana 116
dina 62 gus 14 hana 55
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021446
qwen/qwen3.7-plus
awkweave-0021447
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
delta harbor 117 alpha juniper 102 alpha delta 46 gamma indigo 114 delta ember 36 beta juniper 43 beta ember 75 beta delta 72 delta fable 118
6
gamma grove 107 gamma fable 20 delta birch 74 gamma grove 61 gamma delta 25 gamma grove 79 beta ember 61 beta delta 35 alpha ember 54 gamma birch 104
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021447-p1
Determine the number of unique values in the second column and output only that total count.
{if(!seen[$2]++)n++}END{print n+0}
delta harbor 117 alpha juniper 102 alpha delta 46 gamma indigo 114 delta ember 36 beta juniper 43 beta ember 75 beta delta 72 delta fable 118
6
gamma grove 107 gamma fable 20 delta birch 74 gamma grove 61 gamma delta 25 gamma grove 79 beta ember 61 beta delta 35 alpha ember 54 gamma birch 104
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021447
qwen/qwen3.7-plus
awkweave-0021448
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 10 0 bruno 17 23 farah 4 7 jules 17 16 farah 13 25 alice 23 15
bruno 0.74 farah 0.57 jules 1.06 farah 0.52 alice 1.53
jules 17 0 ivan 19 14 jules 7 26 dina 19 2 chen 24 28 farah 18 8 farah 28 30 farah 22 17
ivan 1.36 jules 0.27 dina 9.50 chen 0.86 farah 2.25 farah 0.93 farah 1.29
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021448-p1
For each row, output the first and second columns along with the result of dividing the second column by the third, formatted to two decimal places, while omitting any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 10 0 bruno 17 23 farah 4 7 jules 17 16 farah 13 25 alice 23 15
bruno 0.74 farah 0.57 jules 1.06 farah 0.52 alice 1.53
jules 17 0 ivan 19 14 jules 7 26 dina 19 2 chen 24 28 farah 18 8 farah 28 30 farah 22 17
ivan 1.36 jules 0.27 dina 9.50 chen 0.86 farah 2.25 farah 0.93 farah 1.29
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021448
qwen/qwen3.7-plus
awkweave-0021449
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]}
hana juniper 13 jules fable 1 jules grove 8 gus indigo 6 lina grove 2 jules harbor 24 jules ember 13 hana amber 14
jules harbor 24 hana amber 14 hana juniper 13
lina ember 23 kim indigo 14 dina cobalt 28 lina cobalt 20 eli delta 28 dina harbor 16 dina grove 23
dina cobalt 28 eli delta 28 lina ember 23
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021449-p1
Display the three full records that have the largest numeric values in the third column, sorted in descending order, 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]}
hana juniper 13 jules fable 1 jules grove 8 gus indigo 6 lina grove 2 jules harbor 24 jules ember 13 hana amber 14
jules harbor 24 hana amber 14 hana juniper 13
lina ember 23 kim indigo 14 dina cobalt 28 lina cobalt 20 eli delta 28 dina harbor 16 dina grove 23
dina cobalt 28 eli delta 28 lina ember 23
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021449
qwen/qwen3.7-plus
awkweave-0021450
Select the 6th and 1st fields in that order.
{print $6, $1}
ready alice 85 dina juniper 92 ready farah 31 hana harbor 106 active jules 99 gus grove 55 closed kim 71 alice amber 97 pending alice 15 jules indigo 66 closed farah 76 ivan birch 81 paused jules 46 eli juniper 21 paused gus 18 jules cobalt 22 closed dina 46 chen fable 61
92 ready 106 ready 55 active 97 closed 66 pending 81 closed 21 paused 22 paused 61 closed
ready farah 31 farah cobalt 115 closed bruno 59 alice cobalt 19 ready alice 99 alice indigo 58 ready bruno 110 bruno juniper 98 paused gus 68 eli birch 115 closed farah 102 gus harbor 31 paused eli 30 eli ember 46 pending farah 70 jules grove 49
115 ready 19 closed 58 ready 98 ready 115 paused 31 closed 46 paused 49 pending
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021450-p1
Extract and display the sixth field followed by the first field, in that specific order.
{print $6, $1}
ready alice 85 dina juniper 92 ready farah 31 hana harbor 106 active jules 99 gus grove 55 closed kim 71 alice amber 97 pending alice 15 jules indigo 66 closed farah 76 ivan birch 81 paused jules 46 eli juniper 21 paused gus 18 jules cobalt 22 closed dina 46 chen fable 61
92 ready 106 ready 55 active 97 closed 66 pending 81 closed 21 paused 22 paused 61 closed
ready farah 31 farah cobalt 115 closed bruno 59 alice cobalt 19 ready alice 99 alice indigo 58 ready bruno 110 bruno juniper 98 paused gus 68 eli birch 115 closed farah 102 gus harbor 31 paused eli 30 eli ember 46 pending farah 70 jules grove 49
115 ready 19 closed 58 ready 98 ready 115 paused 31 closed 46 paused 49 pending
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021450
qwen/qwen3.7-plus
awkweave-0021451
Print the last field of every input line.
{print $NF}
gus paused active 18 bruno paused closed 89 alice closed failed 88 hana paused failed 10 ivan ready active 45 hana pending closed 57
18 89 88 10 45 57
alice failed paused 55 kim paused failed 38 chen paused closed 100 gus ready failed 14 bruno ready active 117 bruno active active 96 farah paused ready 70
55 38 100 14 117 96 70
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021451-p1
Output the final field from every line of input.
{print $NF}
gus paused active 18 bruno paused closed 89 alice closed failed 88 hana paused failed 10 ivan ready active 45 hana pending closed 57
18 89 88 10 45 57
alice failed paused 55 kim paused failed 38 chen paused closed 100 gus ready failed 14 bruno ready active 117 bruno active active 96 farah paused ready 70
55 38 100 14 117 96 70
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021451
qwen/qwen3.7-plus
awkweave-0021452
Print the complete records where column 2 is greater than 71.
$2 > 71
cobalt 45 pending juniper 22 failed delta 113 ready grove 6 closed indigo 76 pending birch 43 active cobalt 19 closed ember 92 paused fable 53 failed
delta 113 ready indigo 76 pending ember 92 paused
delta 68 paused delta 115 failed indigo 110 active ember 27 active juniper 68 failed fable 67 closed delta 51 failed birch 9 failed
delta 115 failed indigo 110 active
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021452-p1
Print the entire records for which the value in the second column exceeds 71.
$2 > 71
cobalt 45 pending juniper 22 failed delta 113 ready grove 6 closed indigo 76 pending birch 43 active cobalt 19 closed ember 92 paused fable 53 failed
delta 113 ready indigo 76 pending ember 92 paused
delta 68 paused delta 115 failed indigo 110 active ember 27 active juniper 68 failed fable 67 closed delta 51 failed birch 9 failed
delta 115 failed indigo 110 active
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021452
qwen/qwen3.7-plus
awkweave-0021453
Show whole lines whose 2nd field is between 5 and 25, inclusive.
$2 >= 5 && $2 <= 25
kim 21 failed cobalt farah 6 failed ember dina 23 failed ember kim 8 paused indigo kim 26 failed fable dina 23 paused indigo hana 18 ready birch kim 24 closed cobalt
kim 21 failed cobalt farah 6 failed ember dina 23 failed ember kim 8 paused indigo dina 23 paused indigo hana 18 ready birch kim 24 closed cobalt
gus 11 pending harbor ivan 21 active harbor ivan 29 paused juniper lina 2 paused cobalt hana 15 closed cobalt farah 13 pending grove bruno 3 pending fable farah 20 pending grove dina 25 failed amber
gus 11 pending harbor ivan 21 active harbor hana 15 closed cobalt farah 13 pending grove farah 20 pending grove dina 25 failed amber
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021453-p1
Display complete lines where the second field falls within the inclusive range of 5 to 25.
$2 >= 5 && $2 <= 25
kim 21 failed cobalt farah 6 failed ember dina 23 failed ember kim 8 paused indigo kim 26 failed fable dina 23 paused indigo hana 18 ready birch kim 24 closed cobalt
kim 21 failed cobalt farah 6 failed ember dina 23 failed ember kim 8 paused indigo dina 23 paused indigo hana 18 ready birch kim 24 closed cobalt
gus 11 pending harbor ivan 21 active harbor ivan 29 paused juniper lina 2 paused cobalt hana 15 closed cobalt farah 13 pending grove bruno 3 pending fable farah 20 pending grove dina 25 failed amber
gus 11 pending harbor ivan 21 active harbor hana 15 closed cobalt farah 13 pending grove farah 20 pending grove dina 25 failed amber
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021453
qwen/qwen3.7-plus
awkweave-0021454
Print column 1 only for rows where column 2 is exactly active.
$2 == "active"{print $1}
alice active 51 fable lina active 102 ember jules paused 60 grove jules failed 17 juniper dina paused 37 juniper hana failed 51 ember
alice lina
dina paused 118 grove farah closed 62 juniper alice ready 79 fable jules ready 2 amber dina active 17 grove ivan paused 19 fable chen paused 33 ember kim pending 61 harbor gus closed 4 harbor jules active 3 cobalt
dina jules
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021454-p1
Output only the first column for rows where the second column contains the exact value 'active'.
$2 == "active"{print $1}
alice active 51 fable lina active 102 ember jules paused 60 grove jules failed 17 juniper dina paused 37 juniper hana failed 51 ember
alice lina
dina paused 118 grove farah closed 62 juniper alice ready 79 fable jules ready 2 amber dina active 17 grove ivan paused 19 fable chen paused 33 ember kim pending 61 harbor gus closed 4 harbor jules active 3 cobalt
dina jules
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021454
qwen/qwen3.7-plus
awkweave-0021455
Print all fields from lines where field 1 begins with INFO.
$1 ~ /^INFO/
DEBUG 86 delta DEBUG 119 juniper DEBUG 100 cobalt DEBUG 7 grove DEBUG 51 fable INFO 90 grove ERROR 43 harbor INFO 67 amber
INFO 90 grove INFO 67 amber
WARN 112 ember INFO 83 juniper ERROR 91 cobalt WARN 33 delta WARN 4 cobalt ERROR 28 delta WARN 118 harbor WARN 14 grove INFO 72 indigo
INFO 83 juniper INFO 72 indigo
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021455-p1
Print all fields from lines where the first field starts with the string 'INFO'.
$1 ~ /^INFO/
DEBUG 86 delta DEBUG 119 juniper DEBUG 100 cobalt DEBUG 7 grove DEBUG 51 fable INFO 90 grove ERROR 43 harbor INFO 67 amber
INFO 90 grove INFO 67 amber
WARN 112 ember INFO 83 juniper ERROR 91 cobalt WARN 33 delta WARN 4 cobalt ERROR 28 delta WARN 118 harbor WARN 14 grove INFO 72 indigo
INFO 83 juniper INFO 72 indigo
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021455
qwen/qwen3.7-plus
awkweave-0021456
Print every line except those containing the exact text delta.
$0 !~ /delta/
indigo 86 failed ember 111 failed juniper 62 paused delta 16 failed cobalt 5 active delta 89 paused birch 78 paused indigo 64 paused birch 107 active delta 999 active
indigo 86 failed ember 111 failed juniper 62 paused cobalt 5 active birch 78 paused indigo 64 paused birch 107 active
amber 37 active harbor 22 ready indigo 95 failed grove 14 failed harbor 103 closed amber 5 failed fable 0 active juniper 77 pending juniper 72 ready delta 999 active
amber 37 active harbor 22 ready indigo 95 failed grove 14 failed harbor 103 closed amber 5 failed fable 0 active juniper 77 pending juniper 72 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021456-p1
Output every line except those that contain the exact string 'delta'.
$0 !~ /delta/
indigo 86 failed ember 111 failed juniper 62 paused delta 16 failed cobalt 5 active delta 89 paused birch 78 paused indigo 64 paused birch 107 active delta 999 active
indigo 86 failed ember 111 failed juniper 62 paused cobalt 5 active birch 78 paused indigo 64 paused birch 107 active
amber 37 active harbor 22 ready indigo 95 failed grove 14 failed harbor 103 closed amber 5 failed fable 0 active juniper 77 pending juniper 72 ready delta 999 active
amber 37 active harbor 22 ready indigo 95 failed grove 14 failed harbor 103 closed amber 5 failed fable 0 active juniper 77 pending juniper 72 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021456
qwen/qwen3.7-plus
awkweave-0021457
Print lines 3 through 5, including both endpoints.
NR >= 3 && NR <= 5
gus amber 26 kim harbor 93 kim grove 43 chen grove 48 lina grove 10 farah delta 22 gus indigo 40 gus indigo 80 farah delta 24
kim grove 43 chen grove 48 lina grove 10
kim fable 120 farah grove 21 dina grove 1 chen grove 70 jules grove 77 farah fable 108 lina fable 53
dina grove 1 chen grove 70 jules grove 77
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021457-p1
Print lines 3 through 5, inclusive of both the start and end lines.
NR >= 3 && NR <= 5
gus amber 26 kim harbor 93 kim grove 43 chen grove 48 lina grove 10 farah delta 22 gus indigo 40 gus indigo 80 farah delta 24
kim grove 43 chen grove 48 lina grove 10
kim fable 120 farah grove 21 dina grove 1 chen grove 70 jules grove 77 farah fable 108 lina fable 53
dina grove 1 chen grove 70 jules grove 77
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021457
qwen/qwen3.7-plus
awkweave-0021458
Output only the first 3 records.
NR <= 3
ivan 68 birch gus 4 juniper farah 81 amber jules 57 amber ivan 94 amber alice 14 grove bruno 14 harbor chen 61 indigo
ivan 68 birch gus 4 juniper farah 81 amber
bruno 120 grove lina 117 birch lina 96 cobalt gus 58 fable bruno 119 amber farah 53 delta
bruno 120 grove lina 117 birch lina 96 cobalt
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021458-p1
Output only the first three records.
NR <= 3
ivan 68 birch gus 4 juniper farah 81 amber jules 57 amber ivan 94 amber alice 14 grove bruno 14 harbor chen 61 indigo
ivan 68 birch gus 4 juniper farah 81 amber
bruno 120 grove lina 117 birch lina 96 cobalt gus 58 fable bruno 119 amber farah 53 delta
bruno 120 grove lina 117 birch lina 96 cobalt
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021458
qwen/qwen3.7-plus
awkweave-0021459
Skip the first line and print every remaining line unchanged.
NR > 1
gus 4 ember bruno 62 grove eli 60 amber dina 22 amber eli 119 amber kim 64 delta jules 16 cobalt
bruno 62 grove eli 60 amber dina 22 amber eli 119 amber kim 64 delta jules 16 cobalt
hana 33 juniper alice 114 amber eli 117 grove chen 93 ember jules 108 birch gus 47 cobalt hana 104 indigo gus 54 juniper hana 28 juniper
alice 114 amber eli 117 grove chen 93 ember jules 108 birch gus 47 cobalt hana 104 indigo gus 54 juniper hana 28 juniper
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021459-p1
Ignore the first line and print all subsequent lines exactly as they appear.
NR > 1
gus 4 ember bruno 62 grove eli 60 amber dina 22 amber eli 119 amber kim 64 delta jules 16 cobalt
bruno 62 grove eli 60 amber dina 22 amber eli 119 amber kim 64 delta jules 16 cobalt
hana 33 juniper alice 114 amber eli 117 grove chen 93 ember jules 108 birch gus 47 cobalt hana 104 indigo gus 54 juniper hana 28 juniper
alice 114 amber eli 117 grove chen 93 ember jules 108 birch gus 47 cobalt hana 104 indigo gus 54 juniper hana 28 juniper
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021459
qwen/qwen3.7-plus
awkweave-0021460
Count how many records have paused in column 2. Print 0 if there are none.
$2 == "paused"{n++}END{print n+0}
alice closed 16 chen paused 67 kim ready 105 chen pending 78 dina active 73 hana failed 92 dina pending 26 kim failed 17 farah paused 45 eli pending 54
2
lina failed 119 gus active 19 gus pending 96 lina active 52 eli ready 2 alice pending 8
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021460-p1
Determine the number of entries where column 2 contains 'paused', outputting 0 if no such records exist.
$2 == "paused"{n++}END{print n+0}
alice closed 16 chen paused 67 kim ready 105 chen pending 78 dina active 73 hana failed 92 dina pending 26 kim failed 17 farah paused 45 eli pending 54
2
lina failed 119 gus active 19 gus pending 96 lina active 52 eli ready 2 alice pending 8
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021460
qwen/qwen3.7-plus
awkweave-0021461
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
amber 23 hana birch 4 chen juniper 27 alice birch 15 alice harbor 25 lina juniper 11 farah fable 3 gus amber 19 gus
127
indigo 18 chen ember 3 lina indigo 18 farah ember 24 kim cobalt 16 dina delta 28 eli amber 25 kim juniper 22 kim delta 2 chen
156
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021461-p1
Compute and display the total sum of all integer values found in column 2.
{s+=$2}END{print s+0}
amber 23 hana birch 4 chen juniper 27 alice birch 15 alice harbor 25 lina juniper 11 farah fable 3 gus amber 19 gus
127
indigo 18 chen ember 3 lina indigo 18 farah ember 24 kim cobalt 16 dina delta 28 eli amber 25 kim juniper 22 kim delta 2 chen
156
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021461
qwen/qwen3.7-plus
awkweave-0021462
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
27 alice delta 16 bruno ember 21 chen birch 18 bruno indigo 3 eli amber 21 jules harbor 7 dina amber 10 chen fable
15.38
2 kim delta 23 bruno harbor 7 lina harbor 8 farah delta 13 gus cobalt 11 eli grove 25 bruno birch
12.71
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021462-p1
Output the average of the values in column 1, formatted to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
27 alice delta 16 bruno ember 21 chen birch 18 bruno indigo 3 eli amber 21 jules harbor 7 dina amber 10 chen fable
15.38
2 kim delta 23 bruno harbor 7 lina harbor 8 farah delta 13 gus cobalt 11 eli grove 25 bruno birch
12.71
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021462
qwen/qwen3.7-plus
awkweave-0021463
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
10 dina harbor 14 lina indigo 14 gus harbor 15 hana fable 8 kim birch 2 hana amber
2
29 gus delta 26 farah juniper 21 farah indigo 4 chen delta 5 lina birch 20 farah harbor 19 jules fable
4
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021463-p1
Identify and print the minimum numeric value present in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
10 dina harbor 14 lina indigo 14 gus harbor 15 hana fable 8 kim birch 2 hana amber
2
29 gus delta 26 farah juniper 21 farah indigo 4 chen delta 5 lina birch 20 farah harbor 19 jules fable
4
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021463
qwen/qwen3.7-plus
awkweave-0021464
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
2 eli birch 28 dina juniper 26 alice indigo 19 alice delta 21 eli fable 13 bruno grove 3 jules ember 3 gus juniper 18 gus grove
28
25 chen fable 30 dina delta 1 lina amber 28 chen ember 1 jules fable 29 kim grove 24 jules harbor 6 eli birch 12 lina delta
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021464-p1
Identify and print the maximum numeric value present in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
2 eli birch 28 dina juniper 26 alice indigo 19 alice delta 21 eli fable 13 bruno grove 3 jules ember 3 gus juniper 18 gus grove
28
25 chen fable 30 dina delta 1 lina amber 28 chen ember 1 jules fable 29 kim grove 24 jules harbor 6 eli birch 12 lina delta
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021464
qwen/qwen3.7-plus
awkweave-0021465
Count all input records and print the total.
END{print NR}
kim 80 hana 84 gus 19 chen 92 chen 17 farah 88 eli 46
7
hana 31 farah 33 eli 111 dina 5 dina 11 ivan 55 lina 35 hana 107 dina 0
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021465-p1
Count the total number of input lines and print the result.
END{print NR}
kim 80 hana 84 gus 19 chen 92 chen 17 farah 88 eli 46
7
hana 31 farah 33 eli 111 dina 5 dina 11 ivan 55 lina 35 hana 107 dina 0
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021465
qwen/qwen3.7-plus
awkweave-0021466
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
bruno indigo 60 gus harbor 1 ivan indigo 65 lina fable 70 lina amber 22 gus harbor 1 eli harbor 37
bruno indigo 60 gus harbor 1 ivan indigo 65 lina fable 70 lina amber 22 eli harbor 37
chen juniper 0 ivan amber 96 kim indigo 77 chen birch 34 bruno fable 47 dina juniper 79 chen juniper 0 chen fable 31
chen juniper 0 ivan amber 96 kim indigo 77 chen birch 34 bruno fable 47 dina juniper 79 chen fable 31
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021466-p1
Eliminate exact duplicate lines while maintaining the original order and keeping only the first instance of each.
!seen[$0]++
bruno indigo 60 gus harbor 1 ivan indigo 65 lina fable 70 lina amber 22 gus harbor 1 eli harbor 37
bruno indigo 60 gus harbor 1 ivan indigo 65 lina fable 70 lina amber 22 eli harbor 37
chen juniper 0 ivan amber 96 kim indigo 77 chen birch 34 bruno fable 47 dina juniper 79 chen juniper 0 chen fable 31
chen juniper 0 ivan amber 96 kim indigo 77 chen birch 34 bruno fable 47 dina juniper 79 chen fable 31
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021466
qwen/qwen3.7-plus
awkweave-0021467
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
farah ember 13 alice amber 49 dina ember 82 ivan grove 27 bruno fable 40 dina fable 104
farah ember 13 alice amber 49 dina ember 82 ivan grove 27 bruno fable 40 dina fable 104
alice fable 74 jules delta 6 gus fable 73 alice amber 10 chen juniper 60 ivan fable 65 bruno indigo 48 bruno juniper 94
alice fable 74 jules delta 6 gus fable 73 alice amber 10 chen juniper 60 ivan fable 65 bruno indigo 48 bruno juniper 94
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021467-p1
Retain only the first occurrence for every unique value in column 3, preserving the original input sequence.
!seen[$3]++
farah ember 13 alice amber 49 dina ember 82 ivan grove 27 bruno fable 40 dina fable 104
farah ember 13 alice amber 49 dina ember 82 ivan grove 27 bruno fable 40 dina fable 104
alice fable 74 jules delta 6 gus fable 73 alice amber 10 chen juniper 60 ivan fable 65 bruno indigo 48 bruno juniper 94
alice fable 74 jules delta 6 gus fable 73 alice amber 10 chen juniper 60 ivan fable 65 bruno indigo 48 bruno juniper 94
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021467
qwen/qwen3.7-plus
awkweave-0021468
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
jules 14 ember gus 4 grove gus 24 juniper ivan 15 grove gus 28 juniper chen 25 indigo chen 4 amber lina 24 delta chen 26 juniper lina 18 fable
jules 14 gus 18 gus 42 ivan 57 gus 85 chen 110 chen 114 lina 138 chen 164 lina 182
hana 28 juniper lina 19 delta farah 16 delta jules 19 amber farah 6 delta kim 19 juniper lina 8 grove
hana 28 lina 47 farah 63 jules 82 farah 88 kim 107 lina 115
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021468-p1
For each line, output column 1 alongside the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
jules 14 ember gus 4 grove gus 24 juniper ivan 15 grove gus 28 juniper chen 25 indigo chen 4 amber lina 24 delta chen 26 juniper lina 18 fable
jules 14 gus 18 gus 42 ivan 57 gus 85 chen 110 chen 114 lina 138 chen 164 lina 182
hana 28 juniper lina 19 delta farah 16 delta jules 19 amber farah 6 delta kim 19 juniper lina 8 grove
hana 28 lina 47 farah 63 jules 82 farah 88 kim 107 lina 115
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021468
qwen/qwen3.7-plus
awkweave-0021469
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 25 10 delta eli 23 18 harbor eli 11 23 indigo chen 22 26 birch jules 30 4 birch dina 28 18 harbor hana 27 17 ember hana 10 8 birch
bruno 35 eli 41 eli 34 chen 48 jules 34 dina 46 hana 44 hana 18
lina 6 2 amber farah 30 26 juniper hana 24 24 cobalt hana 11 8 ember bruno 30 24 fable hana 4 15 fable eli 2 20 amber lina 28 12 ember
lina 8 farah 56 hana 48 hana 19 bruno 54 hana 19 eli 22 lina 40
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021469-p1
Print field 1 followed by the sum of fields 2 and 3 for each row.
{print $1,$2+$3}
bruno 25 10 delta eli 23 18 harbor eli 11 23 indigo chen 22 26 birch jules 30 4 birch dina 28 18 harbor hana 27 17 ember hana 10 8 birch
bruno 35 eli 41 eli 34 chen 48 jules 34 dina 46 hana 44 hana 18
lina 6 2 amber farah 30 26 juniper hana 24 24 cobalt hana 11 8 ember bruno 30 24 fable hana 4 15 fable eli 2 20 amber lina 28 12 ember
lina 8 farah 56 hana 48 hana 19 bruno 54 hana 19 eli 22 lina 40
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021469
qwen/qwen3.7-plus
awkweave-0021470
Print column 1 and pass when column 2 is at least 24; otherwise print fail.
{print $1,($2>=24?"pass":"fail")}
farah 6 farah 15 kim 29 lina 8 farah 10 dina 14 gus 28
farah fail farah fail kim pass lina fail farah fail dina fail gus pass
dina 22 eli 12 kim 8 eli 11 dina 6 jules 20 ivan 27 lina 9 kim 12 kim 17
dina fail eli fail kim fail eli fail dina fail jules fail ivan pass lina fail kim fail kim fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021470-p1
Print column 1 and output 'pass' if column 2 is greater than or equal to 24; otherwise, output 'fail'.
{print $1,($2>=24?"pass":"fail")}
farah 6 farah 15 kim 29 lina 8 farah 10 dina 14 gus 28
farah fail farah fail kim pass lina fail farah fail dina fail gus pass
dina 22 eli 12 kim 8 eli 11 dina 6 jules 20 ivan 27 lina 9 kim 12 kim 17
dina fail eli fail kim fail eli fail dina fail jules fail ivan pass lina fail kim fail kim fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021470
qwen/qwen3.7-plus
awkweave-0021471
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
dina harbor 97 dina birch 84 alice juniper 119 dina ember 107 chen juniper 66 ivan cobalt 65 kim fable 36 ivan grove 23 jules cobalt 7 bruno ember 30
HARBOR BIRCH JUNIPER EMBER JUNIPER COBALT FABLE GROVE COBALT EMBER
eli indigo 25 bruno birch 83 bruno juniper 60 ivan juniper 24 kim amber 99 jules juniper 115 gus juniper 58 lina amber 36 gus ember 51
INDIGO BIRCH JUNIPER JUNIPER AMBER JUNIPER JUNIPER AMBER EMBER
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021471-p1
Transform column 2 to uppercase characters and print only that modified column.
{print toupper($2)}
dina harbor 97 dina birch 84 alice juniper 119 dina ember 107 chen juniper 66 ivan cobalt 65 kim fable 36 ivan grove 23 jules cobalt 7 bruno ember 30
HARBOR BIRCH JUNIPER EMBER JUNIPER COBALT FABLE GROVE COBALT EMBER
eli indigo 25 bruno birch 83 bruno juniper 60 ivan juniper 24 kim amber 99 jules juniper 115 gus juniper 58 lina amber 36 gus ember 51
INDIGO BIRCH JUNIPER JUNIPER AMBER JUNIPER JUNIPER AMBER EMBER
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021471
qwen/qwen3.7-plus
awkweave-0021472
From column 1, print 3 characters starting at character 3.
{print substr($1,3,3)}
fable 59 cobalt 13 amber 84 fable 105 birch 84 indigo 35 juniper 118 ember 120 cobalt 56 amber 92
ble bal ber ble rch dig nip ber bal ber
delta 118 ember 85 cobalt 47 fable 26 grove 88 ember 107 juniper 74
lta ber bal ble ove ber nip
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021472-p1
Extract and print a 3-character substring from column 1, beginning at the 3rd character.
{print substr($1,3,3)}
fable 59 cobalt 13 amber 84 fable 105 birch 84 indigo 35 juniper 118 ember 120 cobalt 56 amber 92
ble bal ber ble rch dig nip ber bal ber
delta 118 ember 85 cobalt 47 fable 26 grove 88 ember 107 juniper 74
lta ber bal ble ove ber nip
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021472
qwen/qwen3.7-plus
awkweave-0021473
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
indigo_amber 93 ember_indigo 72 ember_juniper 11 birch_ember 18 grove_harbor 98 birch_delta 34 harbor_birch 15 juniper_cobalt 22 ember_harbor 113
indigo amber ember indigo ember juniper birch ember grove harbor birch delta harbor birch juniper cobalt ember harbor
juniper_harbor 29 grove_indigo 57 fable_juniper 56 grove_birch 89 ember_juniper 102 grove_cobalt 106 fable_amber 17 delta_delta 98 amber_indigo 3
juniper harbor grove indigo fable juniper grove birch ember juniper grove cobalt fable amber delta delta amber indigo
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021473-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
indigo_amber 93 ember_indigo 72 ember_juniper 11 birch_ember 18 grove_harbor 98 birch_delta 34 harbor_birch 15 juniper_cobalt 22 ember_harbor 113
indigo amber ember indigo ember juniper birch ember grove harbor birch delta harbor birch juniper cobalt ember harbor
juniper_harbor 29 grove_indigo 57 fable_juniper 56 grove_birch 89 ember_juniper 102 grove_cobalt 106 fable_amber 17 delta_delta 98 amber_indigo 3
juniper harbor grove indigo fable juniper grove birch ember juniper grove cobalt fable amber delta delta amber indigo
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021473
qwen/qwen3.7-plus
awkweave-0021474
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 grove 76 active jules amber 14 closed eli grove 66 ready jules juniper 73 pending eli grove 15 pending gus fable 84 pending kim birch 98 closed eli grove 19 closed dina juniper 73 pending
active 76 grove hana closed 14 amber jules ready 66 grove eli pending 73 juniper jules pending 15 grove eli pending 84 fable gus closed 98 birch kim closed 19 grove eli pending 73 juniper dina
jules grove 65 closed bruno harbor 53 ready chen juniper 120 closed farah birch 3 pending ivan amber 93 failed bruno fable 84 failed lina delta 0 failed bruno birch 23 ready
closed 65 grove jules ready 53 harbor bruno closed 120 juniper chen pending 3 birch farah failed 93 amber ivan failed 84 fable bruno failed 0 delta lina ready 23 birch bruno
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021474-p1
Reverse the sequence of fields on each line and display all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
hana grove 76 active jules amber 14 closed eli grove 66 ready jules juniper 73 pending eli grove 15 pending gus fable 84 pending kim birch 98 closed eli grove 19 closed dina juniper 73 pending
active 76 grove hana closed 14 amber jules ready 66 grove eli pending 73 juniper jules pending 15 grove eli pending 84 fable gus closed 98 birch kim closed 19 grove eli pending 73 juniper dina
jules grove 65 closed bruno harbor 53 ready chen juniper 120 closed farah birch 3 pending ivan amber 93 failed bruno fable 84 failed lina delta 0 failed bruno birch 23 ready
closed 65 grove jules ready 53 harbor bruno closed 120 juniper chen pending 3 birch farah failed 93 amber ivan failed 84 fable bruno failed 0 delta lina ready 23 birch bruno
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021474
qwen/qwen3.7-plus
awkweave-0021475
Print the number of whitespace-separated fields on each line.
{print NF}
chen ember 98 closed lina juniper 95 active hana fable 100 active hana fable 92 closed bruno amber 113 closed jules ember 89 paused chen juniper 52 paused
4 4 4 4 4 4 4
chen delta 6 closed hana birch 65 ready ivan juniper 115 paused jules birch 11 failed hana grove 61 closed kim ember 41 paused lina fable 86 pending hana grove 116 paused
4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021475-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
chen ember 98 closed lina juniper 95 active hana fable 100 active hana fable 92 closed bruno amber 113 closed jules ember 89 paused chen juniper 52 paused
4 4 4 4 4 4 4
chen delta 6 closed hana birch 65 ready ivan juniper 115 paused jules birch 11 failed hana grove 61 closed kim ember 41 paused lina fable 86 pending hana grove 116 paused
4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021475
qwen/qwen3.7-plus
awkweave-0021476
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]]}
jules alpha 36 hana alpha 57 lina delta 63 lina delta 79 hana gamma 54 farah alpha 42
alpha 3 delta 2 gamma 1
bruno delta 89 ivan gamma 50 chen gamma 104 lina alpha 105 alice delta 39 bruno beta 27
delta 2 gamma 2 alpha 1 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021476-p1
Tally the occurrences of each unique value in column 2. Display each value alongside its count, sorted by 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]]}
jules alpha 36 hana alpha 57 lina delta 63 lina delta 79 hana gamma 54 farah alpha 42
alpha 3 delta 2 gamma 1
bruno delta 89 ivan gamma 50 chen gamma 104 lina alpha 105 alice delta 39 bruno beta 27
delta 2 gamma 2 alpha 1 beta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021476
qwen/qwen3.7-plus
awkweave-0021477
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]]}
dina alpha 6 eli delta 18 chen alpha 20 lina delta 12 chen beta 25 alice gamma 30
alpha 26 delta 30 beta 25 gamma 30
bruno delta 26 hana gamma 26 alice alpha 13 bruno beta 21 ivan gamma 23 eli alpha 15 eli alpha 22 alice gamma 8 bruno beta 21 lina beta 30
delta 26 gamma 57 alpha 50 beta 72
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021477-p1
Calculate the sum of column 3 grouped by column 2 categories, presenting 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]]}
dina alpha 6 eli delta 18 chen alpha 20 lina delta 12 chen beta 25 alice gamma 30
alpha 26 delta 30 beta 25 gamma 30
bruno delta 26 hana gamma 26 alice alpha 13 bruno beta 21 ivan gamma 23 eli alpha 15 eli alpha 22 alice gamma 8 bruno beta 21 lina beta 30
delta 26 gamma 57 alpha 50 beta 72
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021477
qwen/qwen3.7-plus
awkweave-0021478
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 cobalt 90 delta juniper 45 beta grove 3 delta amber 51 beta indigo 110 delta grove 1
delta 3 beta 2
beta fable 50 gamma ember 94 gamma juniper 64 alpha delta 71 gamma grove 17 delta ember 25 alpha ember 2 gamma harbor 43 beta harbor 28 beta birch 100
beta 3 gamma 4 alpha 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021478-p1
List each duplicate 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]]}
alpha cobalt 90 delta juniper 45 beta grove 3 delta amber 51 beta indigo 110 delta grove 1
delta 3 beta 2
beta fable 50 gamma ember 94 gamma juniper 64 alpha delta 71 gamma grove 17 delta ember 25 alpha ember 2 gamma harbor 43 beta harbor 28 beta birch 100
beta 3 gamma 4 alpha 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021478
qwen/qwen3.7-plus
awkweave-0021479
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 state display_name record_id r001 kim 27 failed r002 jules 3 failed r003 ivan 7 closed r004 eli 19 active r005 lina 15 paused r006 farah 28 active r007 ivan 28 ready r008 chen 8 closed
27 3 7 19 15 28 28 8
score state display_name record_id r001 hana 23 pending r002 lina 12 pending r003 kim 9 active r004 ivan 16 failed r005 eli 15 active r006 alice 30 failed r007 farah 24 active
23 12 9 16 15 30 24
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021479-p1
Treating the first row as a header, output the 'display_name' column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
score state display_name record_id r001 kim 27 failed r002 jules 3 failed r003 ivan 7 closed r004 eli 19 active r005 lina 15 paused r006 farah 28 active r007 ivan 28 ready r008 chen 8 closed
27 3 7 19 15 28 28 8
score state display_name record_id r001 hana 23 pending r002 lina 12 pending r003 kim 9 active r004 ivan 16 failed r005 eli 15 active r006 alice 30 failed r007 farah 24 active
23 12 9 16 15 30 24
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021479
qwen/qwen3.7-plus
awkweave-0021480
The first row is a header. Print display_name for data rows whose score is greater than 15.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>15{print $h["display_name"]}
record_id display_name score state r001 farah 6 active r002 ivan 28 paused r003 dina 14 closed r004 ivan 5 paused r005 kim 21 closed r006 jules 5 active r007 gus 2 failed r008 hana 1 paused
ivan kim
record_id display_name score state r001 bruno 11 active r002 eli 12 pending r003 ivan 6 ready r004 eli 26 failed r005 chen 26 active r006 hana 1 closed r007 eli 23 active
eli chen eli
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021480-p1
With the first row as a header, print the 'display_name' for data rows where the 'score' is greater than 15.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>15{print $h["display_name"]}
record_id display_name score state r001 farah 6 active r002 ivan 28 paused r003 dina 14 closed r004 ivan 5 paused r005 kim 21 closed r006 jules 5 active r007 gus 2 failed r008 hana 1 paused
ivan kim
record_id display_name score state r001 bruno 11 active r002 eli 12 pending r003 ivan 6 ready r004 eli 26 failed r005 chen 26 active r006 hana 1 closed r007 eli 23 active
eli chen eli
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021480
qwen/qwen3.7-plus
awkweave-0021481
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
ivan 7 ready chen 19 closed dina 23 closed eli 23 closed bruno 6 paused hana 14 failed bruno 19 active eli 8 closed alice 7 closed hana 22 ready
ready closed closed closed paused failed active closed closed ready
bruno 19 pending bruno 10 ready bruno 14 failed farah 3 closed jules 27 failed jules 27 closed
pending ready failed closed failed closed
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021481-p1
Given tab-separated input, output the third column from each record.
BEGIN{FS=OFS="\t"}{print $3}
ivan 7 ready chen 19 closed dina 23 closed eli 23 closed bruno 6 paused hana 14 failed bruno 19 active eli 8 closed alice 7 closed hana 22 ready
ready closed closed closed paused failed active closed closed ready
bruno 19 pending bruno 10 ready bruno 14 failed farah 3 closed jules 27 failed jules 27 closed
pending ready failed closed failed closed
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021481
qwen/qwen3.7-plus
awkweave-0021482
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 18.
BEGIN{FS=OFS=","}$2>18{print $1}
farah,14,active ivan,12,failed gus,13,failed eli,30,closed jules,14,pending gus,15,failed gus,20,failed
eli gus
chen,2,active ivan,14,paused gus,14,failed bruno,3,failed farah,2,paused dina,9,closed jules,30,paused gus,19,paused dina,27,active alice,30,pending
jules gus dina alice
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021482-p1
For simple comma-separated input without quoted commas, print column 1 if the value in column 2 is greater than 18.
BEGIN{FS=OFS=","}$2>18{print $1}
farah,14,active ivan,12,failed gus,13,failed eli,30,closed jules,14,pending gus,15,failed gus,20,failed
eli gus
chen,2,active ivan,14,paused gus,14,failed bruno,3,failed farah,2,paused dina,9,closed jules,30,paused gus,19,paused dina,27,active alice,30,pending
jules gus dina alice
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021482
qwen/qwen3.7-plus
awkweave-0021483
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
farah indigo 36 gus amber 0 kim birch 5 dina indigo 52 dina cobalt 25 hana grove 108
farah indigo 36 gus amber 0 kim birch 5 dina indigo 52 dina cobalt 25 hana grove 108
gus ember 10 lina grove 20 farah ember 39 lina juniper 120 chen amber 71 eli harbor 21
gus ember 10 lina grove 20 farah ember 39 lina juniper 120 chen amber 71 eli harbor 21
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021483-p1
Remove leading and trailing whitespace, and replace internal sequences of whitespace with a single space.
{$1=$1;print}
farah indigo 36 gus amber 0 kim birch 5 dina indigo 52 dina cobalt 25 hana grove 108
farah indigo 36 gus amber 0 kim birch 5 dina indigo 52 dina cobalt 25 hana grove 108
gus ember 10 lina grove 20 farah ember 39 lina juniper 120 chen amber 71 eli harbor 21
gus ember 10 lina grove 20 farah ember 39 lina juniper 120 chen amber 71 eli harbor 21
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021483
qwen/qwen3.7-plus
awkweave-0021484
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan fable 108 active lina cobalt 28 active chen delta 44 active kim cobalt 39 pending alice grove 46 paused farah cobalt 48 closed farah harbor 92 paused
farah cobalt 48 closed
alice ember 117 pending hana indigo 44 ready bruno birch 5 failed gus ember 29 failed hana cobalt 42 failed ivan ember 8 pending eli indigo 0 failed
alice ember 117 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021484-p1
Output the longest line from the input, selecting the first one if there is a tie in length.
{if(length($0)>length(best))best=$0}END{print best}
ivan fable 108 active lina cobalt 28 active chen delta 44 active kim cobalt 39 pending alice grove 46 paused farah cobalt 48 closed farah harbor 92 paused
farah cobalt 48 closed
alice ember 117 pending hana indigo 44 ready bruno birch 5 failed gus ember 29 failed hana cobalt 42 failed ivan ember 8 pending eli indigo 0 failed
alice ember 117 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021484
qwen/qwen3.7-plus
awkweave-0021485
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
farah 83 hana 103 kim 34 alice 104 jules 60 hana 50 chen 26 farah 20 farah 80
farah 83 kim 34 jules 60 chen 26 farah 80
bruno 99 chen 2 jules 88 eli 41 gus 0 dina 77 chen 10 farah 38 dina 64 dina 74
bruno 99 jules 88 gus 0 chen 10 dina 64
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021485-p1
Print lines 1, 3, 5, and so on, effectively outputting every second line starting from the first.
NR%2==1
farah 83 hana 103 kim 34 alice 104 jules 60 hana 50 chen 26 farah 20 farah 80
farah 83 kim 34 jules 60 chen 26 farah 80
bruno 99 chen 2 jules 88 eli 41 gus 0 dina 77 chen 10 farah 38 dina 64 dina 74
bruno 99 jules 88 gus 0 chen 10 dina 64
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021485
qwen/qwen3.7-plus
awkweave-0021486
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta birch 91 delta amber 30 beta indigo 40 gamma ember 93 beta fable 119 gamma grove 72 alpha amber 85
4
beta delta 104 gamma birch 90 gamma fable 76 gamma ember 53 delta cobalt 102 delta indigo 95 delta fable 59 beta amber 78
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021486-p1
Determine the number of unique values in the first column and display only that count.
{if(!seen[$1]++)n++}END{print n+0}
beta birch 91 delta amber 30 beta indigo 40 gamma ember 93 beta fable 119 gamma grove 72 alpha amber 85
4
beta delta 104 gamma birch 90 gamma fable 76 gamma ember 53 delta cobalt 102 delta indigo 95 delta fable 59 beta amber 78
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021486
qwen/qwen3.7-plus
awkweave-0021487
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 12 0 hana 6 21 bruno 19 24 hana 11 21 hana 3 11 lina 4 2 alice 1 21 dina 19 26 eli 14 28 jules 21 21
hana 0.29 bruno 0.79 hana 0.52 hana 0.27 lina 2.00 alice 0.05 dina 0.73 eli 0.50 jules 1.00
bruno 3 0 lina 17 22 alice 26 5 kim 25 13 kim 10 29 hana 1 21 alice 26 17 bruno 20 29 jules 13 8 gus 17 19
lina 0.77 alice 5.20 kim 1.92 kim 0.34 hana 0.05 alice 1.53 bruno 0.69 jules 1.62 gus 0.89
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021487-p1
For each row where the third column is not zero, output the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
eli 12 0 hana 6 21 bruno 19 24 hana 11 21 hana 3 11 lina 4 2 alice 1 21 dina 19 26 eli 14 28 jules 21 21
hana 0.29 bruno 0.79 hana 0.52 hana 0.27 lina 2.00 alice 0.05 dina 0.73 eli 0.50 jules 1.00
bruno 3 0 lina 17 22 alice 26 5 kim 25 13 kim 10 29 hana 1 21 alice 26 17 bruno 20 29 jules 13 8 gus 17 19
lina 0.77 alice 5.20 kim 1.92 kim 0.34 hana 0.05 alice 1.53 bruno 0.69 jules 1.62 gus 0.89
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021487
qwen/qwen3.7-plus
awkweave-0021488
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]}
lina birch 4 dina indigo 26 lina birch 3 ivan harbor 27 jules indigo 17 bruno fable 9 bruno amber 11 jules cobalt 16 farah indigo 15
ivan harbor 27 dina indigo 26 jules indigo 17
eli birch 7 jules grove 13 lina amber 21 eli harbor 19 kim juniper 27 ivan fable 29 jules indigo 3 hana delta 20 dina juniper 3 chen birch 26
ivan fable 29 kim juniper 27 chen birch 26
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021488-p1
Display the three records with the highest numeric values in the third column, 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]}
lina birch 4 dina indigo 26 lina birch 3 ivan harbor 27 jules indigo 17 bruno fable 9 bruno amber 11 jules cobalt 16 farah indigo 15
ivan harbor 27 dina indigo 26 jules indigo 17
eli birch 7 jules grove 13 lina amber 21 eli harbor 19 kim juniper 27 ivan fable 29 jules indigo 3 hana delta 20 dina juniper 3 chen birch 26
ivan fable 29 kim juniper 27 chen birch 26
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021488
qwen/qwen3.7-plus
awkweave-0021489
Select the 3rd and 2nd fields in that order.
{print $3, $2}
harbor alice alice 102 amber lina ivan 53 cobalt hana ivan 74 juniper ivan eli 84 juniper gus eli 23 juniper eli ivan 53
alice alice ivan lina ivan hana eli ivan eli gus ivan eli
indigo dina chen 120 fable gus farah 57 cobalt lina lina 15 indigo eli lina 42 harbor dina chen 71 grove chen bruno 38 juniper bruno hana 50 ember chen eli 58
chen dina farah gus lina lina lina eli chen dina bruno chen hana bruno eli chen
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021489-p1
Extract and print the third field followed by the second field.
{print $3, $2}
harbor alice alice 102 amber lina ivan 53 cobalt hana ivan 74 juniper ivan eli 84 juniper gus eli 23 juniper eli ivan 53
alice alice ivan lina ivan hana eli ivan eli gus ivan eli
indigo dina chen 120 fable gus farah 57 cobalt lina lina 15 indigo eli lina 42 harbor dina chen 71 grove chen bruno 38 juniper bruno hana 50 ember chen eli 58
chen dina farah gus lina lina lina eli chen dina bruno chen hana bruno eli chen
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021489
qwen/qwen3.7-plus
awkweave-0021500
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
chen harbor 14 jules birch 30 farah birch 23 kim ember 15 dina delta 10 lina juniper 18 chen delta 23
133
dina ember 20 alice grove 28 kim delta 6 kim birch 3 alice amber 11 farah harbor 26 hana delta 22 bruno cobalt 28
144
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021500-p1
Compute the sum of all integer values in the third column and print the result.
{s+=$3}END{print s+0}
chen harbor 14 jules birch 30 farah birch 23 kim ember 15 dina delta 10 lina juniper 18 chen delta 23
133
dina ember 20 alice grove 28 kim delta 6 kim birch 3 alice amber 11 farah harbor 26 hana delta 22 bruno cobalt 28
144
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021500
qwen/qwen3.7-plus