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-0036221-p1
Skip the header row and output the 'note' column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
display_name state region note r001 eli 20 paused r002 bruno 16 pending r003 kim 17 active r004 gus 28 failed r005 kim 1 paused r006 farah 4 closed r007 alice 15 closed
paused pending active failed paused closed closed
display_name state region note r001 hana 7 active r002 eli 19 closed r003 lina 27 ready r004 eli 28 closed r005 chen 9 closed r006 eli 14 ready
active closed ready closed closed ready
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036221
qwen/qwen3.7-plus
awkweave-0036222
The first row is a header. Print display_name for data rows whose score is greater than 18.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]}
record_id display_name score state r001 alice 24 ready r002 farah 7 ready r003 farah 20 failed r004 chen 10 failed r005 chen 9 ready r006 hana 5 active r007 alice 5 pending r008 gus 26 paused r009 ivan 3 closed
alice farah gus
record_id display_name score state r001 jules 12 closed r002 farah 2 closed r003 gus 27 active r004 jules 9 closed r005 ivan 28 closed r006 lina 21 active r007 gus 17 closed
gus ivan lina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036222-p1
Ignoring the header row, output the 'display_name' for data rows where the 'score' exceeds 18.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]}
record_id display_name score state r001 alice 24 ready r002 farah 7 ready r003 farah 20 failed r004 chen 10 failed r005 chen 9 ready r006 hana 5 active r007 alice 5 pending r008 gus 26 paused r009 ivan 3 closed
alice farah gus
record_id display_name score state r001 jules 12 closed r002 farah 2 closed r003 gus 27 active r004 jules 9 closed r005 ivan 28 closed r006 lina 21 active r007 gus 17 closed
gus ivan lina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036222
qwen/qwen3.7-plus
awkweave-0036223
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
jules 30 failed gus 13 paused lina 26 pending hana 5 paused ivan 10 closed kim 16 active bruno 2 active
failed paused pending paused closed active active
gus 14 active hana 11 failed bruno 7 closed eli 17 paused gus 9 paused ivan 12 paused
active failed closed paused paused paused
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036223-p1
Given tab-separated input, output column 3 for every record.
BEGIN{FS=OFS="\t"}{print $3}
jules 30 failed gus 13 paused lina 26 pending hana 5 paused ivan 10 closed kim 16 active bruno 2 active
failed paused pending paused closed active active
gus 14 active hana 11 failed bruno 7 closed eli 17 paused gus 9 paused ivan 12 paused
active failed closed paused paused paused
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036223
qwen/qwen3.7-plus
awkweave-0036224
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 21.
BEGIN{FS=OFS=","}$2>21{print $1}
alice,12,closed kim,29,closed bruno,17,paused ivan,27,closed kim,17,closed hana,15,paused chen,3,closed
kim ivan
kim,24,ready alice,13,active eli,1,pending ivan,19,closed alice,25,paused chen,13,failed lina,1,paused dina,12,ready gus,16,paused
kim alice
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036224-p1
Given comma-separated input without quoted commas, output the first field whenever the second field is greater than 21.
BEGIN{FS=OFS=","}$2>21{print $1}
alice,12,closed kim,29,closed bruno,17,paused ivan,27,closed kim,17,closed hana,15,paused chen,3,closed
kim ivan
kim,24,ready alice,13,active eli,1,pending ivan,19,closed alice,25,paused chen,13,failed lina,1,paused dina,12,ready gus,16,paused
kim alice
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036224
qwen/qwen3.7-plus
awkweave-0036225
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
hana juniper 120 gus grove 93 farah juniper 30 bruno ember 18 kim juniper 5 eli juniper 93
hana juniper 120 gus grove 93 farah juniper 30 bruno ember 18 kim juniper 5 eli juniper 93
lina birch 36 gus fable 119 eli juniper 115 chen cobalt 85 lina grove 31 lina amber 35 alice fable 71 bruno grove 108 alice fable 6 farah fable 89
lina birch 36 gus fable 119 eli juniper 115 chen cobalt 85 lina grove 31 lina amber 35 alice fable 71 bruno grove 108 alice fable 6 farah fable 89
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036225-p1
Remove leading and trailing whitespace, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
hana juniper 120 gus grove 93 farah juniper 30 bruno ember 18 kim juniper 5 eli juniper 93
hana juniper 120 gus grove 93 farah juniper 30 bruno ember 18 kim juniper 5 eli juniper 93
lina birch 36 gus fable 119 eli juniper 115 chen cobalt 85 lina grove 31 lina amber 35 alice fable 71 bruno grove 108 alice fable 6 farah fable 89
lina birch 36 gus fable 119 eli juniper 115 chen cobalt 85 lina grove 31 lina amber 35 alice fable 71 bruno grove 108 alice fable 6 farah fable 89
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036225
qwen/qwen3.7-plus
awkweave-0036226
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
kim fable 11 closed alice harbor 61 closed chen grove 61 active jules juniper 16 active kim indigo 77 pending lina fable 99 active ivan delta 27 closed ivan birch 101 pending dina indigo 59 pending
jules juniper 16 active
chen fable 44 failed alice delta 80 ready lina birch 26 pending jules amber 13 paused chen harbor 73 closed dina indigo 0 paused farah fable 65 active
lina birch 26 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036226-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}
kim fable 11 closed alice harbor 61 closed chen grove 61 active jules juniper 16 active kim indigo 77 pending lina fable 99 active ivan delta 27 closed ivan birch 101 pending dina indigo 59 pending
jules juniper 16 active
chen fable 44 failed alice delta 80 ready lina birch 26 pending jules amber 13 paused chen harbor 73 closed dina indigo 0 paused farah fable 65 active
lina birch 26 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036226
qwen/qwen3.7-plus
awkweave-0036227
Print every 4th line starting at line 1 (then line 5, and so on).
NR%4==1
bruno 4 chen 111 farah 53 dina 24 kim 78 dina 54 kim 73 alice 63 alice 81
bruno 4 kim 78 alice 81
alice 10 ivan 103 hana 36 jules 76 jules 91 dina 3 ivan 107 gus 108 bruno 49
alice 10 jules 91 bruno 49
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036227-p1
Output every fourth line beginning with the first line (i.e., lines 1, 5, 9, etc.).
NR%4==1
bruno 4 chen 111 farah 53 dina 24 kim 78 dina 54 kim 73 alice 63 alice 81
bruno 4 kim 78 alice 81
alice 10 ivan 103 hana 36 jules 76 jules 91 dina 3 ivan 107 gus 108 bruno 49
alice 10 jules 91 bruno 49
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036227
qwen/qwen3.7-plus
awkweave-0036228
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta juniper 23 beta fable 58 delta indigo 94 delta grove 32 delta ember 66 beta ember 94
5
beta fable 71 beta ember 55 delta delta 94 gamma fable 47 beta ember 37 alpha harbor 10 delta delta 77 gamma harbor 39
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036228-p1
Calculate the number of unique values in the second column and print only that total count.
{if(!seen[$2]++)n++}END{print n+0}
beta juniper 23 beta fable 58 delta indigo 94 delta grove 32 delta ember 66 beta ember 94
5
beta fable 71 beta ember 55 delta delta 94 gamma fable 47 beta ember 37 alpha harbor 10 delta delta 77 gamma harbor 39
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036228
qwen/qwen3.7-plus
awkweave-0036229
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 28 0 gus 6 23 lina 21 13 bruno 24 10 ivan 7 24 hana 10 25
gus 0.26 lina 1.62 bruno 2.40 ivan 0.29 hana 0.40
bruno 21 0 alice 11 19 alice 2 18 hana 30 25 gus 26 8 hana 5 21 bruno 14 1 farah 10 11 ivan 22 24
alice 0.58 alice 0.11 hana 1.20 gus 3.25 hana 0.24 bruno 14.00 farah 0.91 ivan 0.92
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036229-p1
For each row where the third column is non-zero, print the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 28 0 gus 6 23 lina 21 13 bruno 24 10 ivan 7 24 hana 10 25
gus 0.26 lina 1.62 bruno 2.40 ivan 0.29 hana 0.40
bruno 21 0 alice 11 19 alice 2 18 hana 30 25 gus 26 8 hana 5 21 bruno 14 1 farah 10 11 ivan 22 24
alice 0.58 alice 0.11 hana 1.20 gus 3.25 hana 0.24 bruno 14.00 farah 0.91 ivan 0.92
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036229
qwen/qwen3.7-plus
awkweave-0036230
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]}
gus birch 22 ivan cobalt 3 lina delta 21 chen harbor 17 farah harbor 1 kim harbor 25 lina indigo 18 gus harbor 17
kim harbor 25 gus birch 22 lina delta 21
alice amber 27 farah grove 29 jules fable 6 bruno amber 19 alice fable 12 eli indigo 11 gus delta 4 dina delta 13 lina juniper 5 lina juniper 2
farah grove 29 alice amber 27 bruno amber 19
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036230-p1
Output the three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
gus birch 22 ivan cobalt 3 lina delta 21 chen harbor 17 farah harbor 1 kim harbor 25 lina indigo 18 gus harbor 17
kim harbor 25 gus birch 22 lina delta 21
alice amber 27 farah grove 29 jules fable 6 bruno amber 19 alice fable 12 eli indigo 11 gus delta 4 dina delta 13 lina juniper 5 lina juniper 2
farah grove 29 alice amber 27 bruno amber 19
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036230
qwen/qwen3.7-plus
awkweave-0036231
Print column 6 followed by column 3 for every record.
{print $6, $3}
closed 40 delta hana 50 juniper paused 58 birch ivan 103 cobalt pending 57 grove kim 66 amber pending 113 delta lina 96 juniper active 118 delta gus 86 delta ready 66 cobalt eli 97 ember
juniper delta cobalt birch amber grove juniper delta delta delta ember cobalt
active 5 juniper lina 71 juniper ready 6 ember hana 45 grove pending 80 indigo jules 116 indigo ready 29 grove ivan 103 delta closed 56 indigo dina 13 cobalt paused 55 grove farah 112 harbor active 49 juniper gus 45 birch
juniper juniper grove ember indigo indigo delta grove cobalt indigo harbor grove birch juniper
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036231-p1
For every record, print the sixth column followed by the third column.
{print $6, $3}
closed 40 delta hana 50 juniper paused 58 birch ivan 103 cobalt pending 57 grove kim 66 amber pending 113 delta lina 96 juniper active 118 delta gus 86 delta ready 66 cobalt eli 97 ember
juniper delta cobalt birch amber grove juniper delta delta delta ember cobalt
active 5 juniper lina 71 juniper ready 6 ember hana 45 grove pending 80 indigo jules 116 indigo ready 29 grove ivan 103 delta closed 56 indigo dina 13 cobalt paused 55 grove farah 112 harbor active 49 juniper gus 45 birch
juniper juniper grove ember indigo indigo delta grove cobalt indigo harbor grove birch juniper
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036231
qwen/qwen3.7-plus
awkweave-0036232
Print the last field of every input line.
{print $NF}
failed 105 kim paused jules bruno ready 38 farah failed kim alice closed 29 dina failed hana eli ready 33 farah active ivan jules paused 20 alice active chen kim closed 50 gus failed ivan kim paused 66 hana paused bruno lina ready 4 dina ready farah hana pending 90 bruno active jules bruno
bruno alice eli jules kim kim lina hana bruno
failed 38 chen active ivan gus pending 13 kim pending bruno ivan active 88 lina closed alice farah active 85 chen active kim ivan active 61 kim closed hana lina closed 41 lina ready kim alice failed 109 hana active gus alice paused 50 farah failed farah dina closed 74 kim closed eli alice
gus ivan farah ivan lina alice alice dina alice
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036232-p1
Print the final field of each input line.
{print $NF}
failed 105 kim paused jules bruno ready 38 farah failed kim alice closed 29 dina failed hana eli ready 33 farah active ivan jules paused 20 alice active chen kim closed 50 gus failed ivan kim paused 66 hana paused bruno lina ready 4 dina ready farah hana pending 90 bruno active jules bruno
bruno alice eli jules kim kim lina hana bruno
failed 38 chen active ivan gus pending 13 kim pending bruno ivan active 88 lina closed alice farah active 85 chen active kim ivan active 61 kim closed hana lina closed 41 lina ready kim alice failed 109 hana active gus alice paused 50 farah failed farah dina closed 74 kim closed eli alice
gus ivan farah ivan lina alice alice dina alice
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036232
qwen/qwen3.7-plus
awkweave-0036233
Print the complete records where column 1 is at least 23.
$1 >= 23
114 indigo closed 46 cobalt paused 72 delta ready 108 indigo failed 1 ember paused 0 birch paused 46 fable failed 70 cobalt active 35 ember ready 81 indigo ready
114 indigo closed 46 cobalt paused 72 delta ready 108 indigo failed 46 fable failed 70 cobalt active 35 ember ready 81 indigo ready
64 ember ready 2 indigo pending 103 fable ready 3 grove failed 82 cobalt failed 53 cobalt paused 117 indigo pending 102 fable closed 12 amber closed 101 birch pending
64 ember ready 103 fable ready 82 cobalt failed 53 cobalt paused 117 indigo pending 102 fable closed 101 birch pending
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036233-p1
Output the full records where the value in the first column is 23 or higher.
$1 >= 23
114 indigo closed 46 cobalt paused 72 delta ready 108 indigo failed 1 ember paused 0 birch paused 46 fable failed 70 cobalt active 35 ember ready 81 indigo ready
114 indigo closed 46 cobalt paused 72 delta ready 108 indigo failed 46 fable failed 70 cobalt active 35 ember ready 81 indigo ready
64 ember ready 2 indigo pending 103 fable ready 3 grove failed 82 cobalt failed 53 cobalt paused 117 indigo pending 102 fable closed 12 amber closed 101 birch pending
64 ember ready 103 fable ready 82 cobalt failed 53 cobalt paused 117 indigo pending 102 fable closed 101 birch pending
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036233
qwen/qwen3.7-plus
awkweave-0036234
Show whole lines whose 2nd field is between 8 and 22, inclusive.
$2 >= 8 && $2 <= 22
grove 5 active harbor amber 30 ready ember grove 14 pending fable grove 17 paused harbor cobalt 22 ready juniper indigo 11 ready delta grove 24 pending delta birch 2 ready ember
grove 14 pending fable grove 17 paused harbor cobalt 22 ready juniper indigo 11 ready delta
fable 19 failed birch harbor 4 pending cobalt fable 13 failed delta juniper 14 active juniper harbor 1 closed delta harbor 2 paused juniper ember 1 failed juniper fable 8 ready fable amber 21 pending harbor
fable 19 failed birch fable 13 failed delta juniper 14 active juniper fable 8 ready fable amber 21 pending harbor
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036234-p1
Display entire lines where the second field falls within the inclusive range of 8 to 22.
$2 >= 8 && $2 <= 22
grove 5 active harbor amber 30 ready ember grove 14 pending fable grove 17 paused harbor cobalt 22 ready juniper indigo 11 ready delta grove 24 pending delta birch 2 ready ember
grove 14 pending fable grove 17 paused harbor cobalt 22 ready juniper indigo 11 ready delta
fable 19 failed birch harbor 4 pending cobalt fable 13 failed delta juniper 14 active juniper harbor 1 closed delta harbor 2 paused juniper ember 1 failed juniper fable 8 ready fable amber 21 pending harbor
fable 19 failed birch fable 13 failed delta juniper 14 active juniper fable 8 ready fable amber 21 pending harbor
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036234
qwen/qwen3.7-plus
awkweave-0036235
Print column 4 only for rows where column 2 is exactly closed.
$2 == "closed"{print $4}
indigo paused 31 dina fable closed 93 kim fable pending 14 farah grove failed 20 hana indigo pending 64 ivan fable active 98 lina delta ready 83 eli indigo paused 46 kim
kim
delta active 103 chen grove active 29 bruno harbor failed 9 alice amber ready 113 eli ember closed 27 kim grove paused 88 bruno amber closed 18 dina ember ready 16 chen amber paused 9 ivan juniper closed 22 farah
kim dina farah
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036235-p1
Print only the fourth column for rows where the second column is exactly 'closed'.
$2 == "closed"{print $4}
indigo paused 31 dina fable closed 93 kim fable pending 14 farah grove failed 20 hana indigo pending 64 ivan fable active 98 lina delta ready 83 eli indigo paused 46 kim
kim
delta active 103 chen grove active 29 bruno harbor failed 9 alice amber ready 113 eli ember closed 27 kim grove paused 88 bruno amber closed 18 dina ember ready 16 chen amber paused 9 ivan juniper closed 22 farah
kim dina farah
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036235
qwen/qwen3.7-plus
awkweave-0036236
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
delta ERROR 103 ember DEBUG 99 harbor ERROR 17 grove WARN 15 amber INFO 3 amber INFO 40
delta ERROR 103 harbor ERROR 17
delta WARN 19 delta WARN 32 fable DEBUG 110 ember DEBUG 42 delta DEBUG 36 amber INFO 57 ember WARN 93
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036236-p1
Output the entire line for any record where the second field starts with ERROR.
$2 ~ /^ERROR/
delta ERROR 103 ember DEBUG 99 harbor ERROR 17 grove WARN 15 amber INFO 3 amber INFO 40
delta ERROR 103 harbor ERROR 17
delta WARN 19 delta WARN 32 fable DEBUG 110 ember DEBUG 42 delta DEBUG 36 amber INFO 57 ember WARN 93
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036236
qwen/qwen3.7-plus
awkweave-0036237
Print every line except those containing the exact text fable.
$0 !~ /fable/
ember 16 closed harbor 4 failed cobalt 9 closed ember 114 pending harbor 34 closed birch 114 failed fable 999 active
ember 16 closed harbor 4 failed cobalt 9 closed ember 114 pending harbor 34 closed birch 114 failed
cobalt 19 paused juniper 114 paused indigo 96 pending birch 99 ready indigo 51 pending fable 74 closed birch 97 ready cobalt 32 ready harbor 105 failed fable 999 active
cobalt 19 paused juniper 114 paused indigo 96 pending birch 99 ready indigo 51 pending birch 97 ready cobalt 32 ready harbor 105 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036237-p1
Display all lines that do not contain the exact string fable.
$0 !~ /fable/
ember 16 closed harbor 4 failed cobalt 9 closed ember 114 pending harbor 34 closed birch 114 failed fable 999 active
ember 16 closed harbor 4 failed cobalt 9 closed ember 114 pending harbor 34 closed birch 114 failed
cobalt 19 paused juniper 114 paused indigo 96 pending birch 99 ready indigo 51 pending fable 74 closed birch 97 ready cobalt 32 ready harbor 105 failed fable 999 active
cobalt 19 paused juniper 114 paused indigo 96 pending birch 99 ready indigo 51 pending birch 97 ready cobalt 32 ready harbor 105 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036237
qwen/qwen3.7-plus
awkweave-0036238
Print lines 4 through 6, including both endpoints.
NR >= 4 && NR <= 6
bruno ember 21 hana ember 38 alice birch 101 hana ember 104 bruno fable 105 eli ember 111 kim ember 42 lina grove 6
hana ember 104 bruno fable 105 eli ember 111
bruno cobalt 19 alice grove 61 lina fable 14 chen birch 67 farah cobalt 59 dina grove 64 hana indigo 13 gus birch 93
chen birch 67 farah cobalt 59 dina grove 64
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036238-p1
Print lines 4 to 6, inclusive of both the start and end lines.
NR >= 4 && NR <= 6
bruno ember 21 hana ember 38 alice birch 101 hana ember 104 bruno fable 105 eli ember 111 kim ember 42 lina grove 6
hana ember 104 bruno fable 105 eli ember 111
bruno cobalt 19 alice grove 61 lina fable 14 chen birch 67 farah cobalt 59 dina grove 64 hana indigo 13 gus birch 93
chen birch 67 farah cobalt 59 dina grove 64
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036238
qwen/qwen3.7-plus
awkweave-0036239
Output only the first 5 records.
NR <= 5
hana 81 juniper ivan 23 fable gus 79 amber bruno 109 fable gus 104 delta bruno 0 amber
hana 81 juniper ivan 23 fable gus 79 amber bruno 109 fable gus 104 delta
ivan 96 cobalt bruno 111 grove lina 15 cobalt farah 21 cobalt farah 70 grove ivan 116 delta
ivan 96 cobalt bruno 111 grove lina 15 cobalt farah 21 cobalt farah 70 grove
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036239-p1
Restrict the output to the first 5 records only.
NR <= 5
hana 81 juniper ivan 23 fable gus 79 amber bruno 109 fable gus 104 delta bruno 0 amber
hana 81 juniper ivan 23 fable gus 79 amber bruno 109 fable gus 104 delta
ivan 96 cobalt bruno 111 grove lina 15 cobalt farah 21 cobalt farah 70 grove ivan 116 delta
ivan 96 cobalt bruno 111 grove lina 15 cobalt farah 21 cobalt farah 70 grove
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036239
qwen/qwen3.7-plus
awkweave-0036240
Skip the first line and print every remaining line unchanged.
NR > 1
alice 33 indigo dina 64 delta farah 73 delta kim 34 amber gus 28 juniper hana 46 fable eli 66 cobalt
dina 64 delta farah 73 delta kim 34 amber gus 28 juniper hana 46 fable eli 66 cobalt
kim 93 ember hana 54 birch farah 42 juniper lina 68 juniper ivan 81 harbor kim 5 ember bruno 19 juniper hana 59 birch
hana 54 birch farah 42 juniper lina 68 juniper ivan 81 harbor kim 5 ember bruno 19 juniper hana 59 birch
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036240-p1
Omit the header line and print the rest of the input as-is.
NR > 1
alice 33 indigo dina 64 delta farah 73 delta kim 34 amber gus 28 juniper hana 46 fable eli 66 cobalt
dina 64 delta farah 73 delta kim 34 amber gus 28 juniper hana 46 fable eli 66 cobalt
kim 93 ember hana 54 birch farah 42 juniper lina 68 juniper ivan 81 harbor kim 5 ember bruno 19 juniper hana 59 birch
hana 54 birch farah 42 juniper lina 68 juniper ivan 81 harbor kim 5 ember bruno 19 juniper hana 59 birch
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036240
qwen/qwen3.7-plus
awkweave-0036241
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
hana ready 46 dina active 84 gus active 57 farah ready 65 farah pending 74 dina active 70 kim pending 77
2
dina active 104 ivan failed 33 lina paused 116 eli active 18 dina closed 68 bruno failed 71 bruno failed 66 chen failed 62 chen failed 111 lina failed 62
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036241-p1
Count the number of entries with pending in the second column; output 0 if the count is zero.
$2 == "pending"{n++}END{print n+0}
hana ready 46 dina active 84 gus active 57 farah ready 65 farah pending 74 dina active 70 kim pending 77
2
dina active 104 ivan failed 33 lina paused 116 eli active 18 dina closed 68 bruno failed 71 bruno failed 66 chen failed 62 chen failed 111 lina failed 62
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036241
qwen/qwen3.7-plus
awkweave-0036242
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
farah cobalt 9 kim ember 23 chen grove 8 kim indigo 3 jules indigo 9 farah harbor 1 alice ember 3
56
farah ember 18 farah ember 17 ivan indigo 7 farah ember 11 lina delta 13 gus juniper 20 chen cobalt 1 gus amber 24 kim amber 30
141
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036242-p1
Compute and display the total sum of integer values found in the third column.
{s+=$3}END{print s+0}
farah cobalt 9 kim ember 23 chen grove 8 kim indigo 3 jules indigo 9 farah harbor 1 alice ember 3
56
farah ember 18 farah ember 17 ivan indigo 7 farah ember 11 lina delta 13 gus juniper 20 chen cobalt 1 gus amber 24 kim amber 30
141
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036242
qwen/qwen3.7-plus
awkweave-0036243
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
fable 9 bruno ember 26 bruno grove 27 lina ember 13 bruno ember 3 jules delta 6 farah
14.00
ember 23 dina grove 30 kim delta 9 gus cobalt 7 kim harbor 13 ivan indigo 26 chen harbor 7 gus
16.43
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036243-p1
Calculate the average of the values in column 2 and format the result to two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
fable 9 bruno ember 26 bruno grove 27 lina ember 13 bruno ember 3 jules delta 6 farah
14.00
ember 23 dina grove 30 kim delta 9 gus cobalt 7 kim harbor 13 ivan indigo 26 chen harbor 7 gus
16.43
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036243
qwen/qwen3.7-plus
awkweave-0036244
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
17 jules grove 7 jules delta 18 bruno indigo 6 farah juniper 19 hana ember 16 lina harbor
6
19 bruno amber 6 hana indigo 7 alice ember 11 alice delta 5 eli ember 10 alice amber 16 lina cobalt 17 alice birch
5
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036244-p1
Identify and output the minimum numeric value present in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
17 jules grove 7 jules delta 18 bruno indigo 6 farah juniper 19 hana ember 16 lina harbor
6
19 bruno amber 6 hana indigo 7 alice ember 11 alice delta 5 eli ember 10 alice amber 16 lina cobalt 17 alice birch
5
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036244
qwen/qwen3.7-plus
awkweave-0036245
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
grove kim 27 indigo bruno 25 ember lina 13 indigo hana 1 fable jules 10 ember farah 11 juniper ivan 4 cobalt lina 2
27
fable kim 29 juniper dina 29 birch dina 5 indigo jules 9 indigo hana 1 indigo alice 10 delta bruno 1 indigo lina 17
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036245-p1
Identify and output the maximum numeric value present in the third column.
NR==1||$3>extreme{extreme=$3}END{print extreme}
grove kim 27 indigo bruno 25 ember lina 13 indigo hana 1 fable jules 10 ember farah 11 juniper ivan 4 cobalt lina 2
27
fable kim 29 juniper dina 29 birch dina 5 indigo jules 9 indigo hana 1 indigo alice 10 delta bruno 1 indigo lina 17
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036245
qwen/qwen3.7-plus
awkweave-0036246
Count all input records and print the total.
END{print NR}
gus 119 dina 22 farah 53 kim 30 jules 69 bruno 53
6
gus 83 lina 82 dina 119 gus 14 bruno 117 bruno 119 jules 43 jules 90 farah 23
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036246-p1
Print the total number of input records.
END{print NR}
gus 119 dina 22 farah 53 kim 30 jules 69 bruno 53
6
gus 83 lina 82 dina 119 gus 14 bruno 117 bruno 119 jules 43 jules 90 farah 23
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036246
qwen/qwen3.7-plus
awkweave-0036247
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
lina grove 103 kim ember 19 dina amber 68 eli harbor 103 lina grove 103 chen harbor 69 dina juniper 57
lina grove 103 kim ember 19 dina amber 68 eli harbor 103 chen harbor 69 dina juniper 57
gus fable 1 farah harbor 47 eli ember 17 gus fable 56 eli juniper 56 eli juniper 56 farah cobalt 107 lina indigo 38 eli birch 17 ivan cobalt 63
gus fable 1 farah harbor 47 eli ember 17 gus fable 56 eli juniper 56 farah cobalt 107 lina indigo 38 eli birch 17 ivan cobalt 63
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036247-p1
Eliminate duplicate lines while keeping the first instance of each and maintaining the original sequence.
!seen[$0]++
lina grove 103 kim ember 19 dina amber 68 eli harbor 103 lina grove 103 chen harbor 69 dina juniper 57
lina grove 103 kim ember 19 dina amber 68 eli harbor 103 chen harbor 69 dina juniper 57
gus fable 1 farah harbor 47 eli ember 17 gus fable 56 eli juniper 56 eli juniper 56 farah cobalt 107 lina indigo 38 eli birch 17 ivan cobalt 63
gus fable 1 farah harbor 47 eli ember 17 gus fable 56 eli juniper 56 farah cobalt 107 lina indigo 38 eli birch 17 ivan cobalt 63
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036247
qwen/qwen3.7-plus
awkweave-0036248
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
alice fable 95 bruno birch 41 alice indigo 96 hana fable 95 bruno ember 32 gus birch 101
alice fable 95 bruno birch 41 alice indigo 96 bruno ember 32
bruno delta 38 ivan fable 110 dina harbor 68 ivan birch 30 lina ember 58 hana indigo 43 jules fable 31 dina harbor 8
bruno delta 38 ivan fable 110 dina harbor 68 ivan birch 30 lina ember 58 hana indigo 43
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036248-p1
Retain only the first occurrence of each unique value in column 2, maintaining the original input sequence.
!seen[$2]++
alice fable 95 bruno birch 41 alice indigo 96 hana fable 95 bruno ember 32 gus birch 101
alice fable 95 bruno birch 41 alice indigo 96 bruno ember 32
bruno delta 38 ivan fable 110 dina harbor 68 ivan birch 30 lina ember 58 hana indigo 43 jules fable 31 dina harbor 8
bruno delta 38 ivan fable 110 dina harbor 68 ivan birch 30 lina ember 58 hana indigo 43
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036248
qwen/qwen3.7-plus
awkweave-0036249
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
alice 5 delta hana 29 harbor dina 24 ember dina 19 amber chen 19 indigo lina 18 birch kim 21 harbor eli 3 indigo jules 4 harbor
alice 5 hana 34 dina 58 dina 77 chen 96 lina 114 kim 135 eli 138 jules 142
farah 11 cobalt dina 30 indigo dina 22 delta bruno 26 cobalt bruno 6 ember gus 22 grove gus 14 indigo
farah 11 dina 41 dina 63 bruno 89 bruno 95 gus 117 gus 131
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036249-p1
Output column 1 alongside the cumulative total of column 2 for each row, using a space as the delimiter.
{s+=$2;print $1,s}
alice 5 delta hana 29 harbor dina 24 ember dina 19 amber chen 19 indigo lina 18 birch kim 21 harbor eli 3 indigo jules 4 harbor
alice 5 hana 34 dina 58 dina 77 chen 96 lina 114 kim 135 eli 138 jules 142
farah 11 cobalt dina 30 indigo dina 22 delta bruno 26 cobalt bruno 6 ember gus 22 grove gus 14 indigo
farah 11 dina 41 dina 63 bruno 89 bruno 95 gus 117 gus 131
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036249
qwen/qwen3.7-plus
awkweave-0036250
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
jules 17 4 ember eli 29 11 amber ivan 5 2 juniper dina 28 26 amber bruno 20 16 fable chen 30 21 indigo jules 5 30 ember
jules 21 eli 40 ivan 7 dina 54 bruno 36 chen 51 jules 35
kim 1 5 ember jules 7 21 amber jules 11 17 harbor hana 20 29 amber ivan 15 1 amber hana 27 13 birch ivan 3 5 ember farah 15 12 juniper kim 17 11 birch dina 25 12 indigo
kim 6 jules 28 jules 28 hana 49 ivan 16 hana 40 ivan 8 farah 27 kim 28 dina 37
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036250-p1
For every line, display field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
jules 17 4 ember eli 29 11 amber ivan 5 2 juniper dina 28 26 amber bruno 20 16 fable chen 30 21 indigo jules 5 30 ember
jules 21 eli 40 ivan 7 dina 54 bruno 36 chen 51 jules 35
kim 1 5 ember jules 7 21 amber jules 11 17 harbor hana 20 29 amber ivan 15 1 amber hana 27 13 birch ivan 3 5 ember farah 15 12 juniper kim 17 11 birch dina 25 12 indigo
kim 6 jules 28 jules 28 hana 49 ivan 16 hana 40 ivan 8 farah 27 kim 28 dina 37
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036250
qwen/qwen3.7-plus
awkweave-0036251
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
ivan 16 farah 15 bruno 27 hana 8 kim 15 eli 29 dina 22 alice 30
ivan fail farah fail bruno pass hana fail kim fail eli pass dina fail alice pass
eli 16 farah 9 dina 24 hana 20 farah 5 farah 6 ivan 24 kim 22 ivan 1
eli fail farah fail dina fail hana fail farah fail farah fail ivan fail kim fail ivan fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036251-p1
Output column 1 paired with 'pass' if column 2 is 25 or greater; otherwise, output it with 'fail'.
{print $1,($2>=25?"pass":"fail")}
ivan 16 farah 15 bruno 27 hana 8 kim 15 eli 29 dina 22 alice 30
ivan fail farah fail bruno pass hana fail kim fail eli pass dina fail alice pass
eli 16 farah 9 dina 24 hana 20 farah 5 farah 6 ivan 24 kim 22 ivan 1
eli fail farah fail dina fail hana fail farah fail farah fail ivan fail kim fail ivan fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036251
qwen/qwen3.7-plus
awkweave-0036252
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
farah harbor 23 hana fable 51 lina amber 46 eli amber 100 kim ember 80 dina harbor 110 alice harbor 59 farah grove 6
FARAH HANA LINA ELI KIM DINA ALICE FARAH
dina juniper 20 eli amber 57 lina amber 102 chen delta 59 eli harbor 36 eli grove 35
DINA ELI LINA CHEN ELI ELI
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036252-p1
Transform column 1 to uppercase and output only this modified column.
{print toupper($1)}
farah harbor 23 hana fable 51 lina amber 46 eli amber 100 kim ember 80 dina harbor 110 alice harbor 59 farah grove 6
FARAH HANA LINA ELI KIM DINA ALICE FARAH
dina juniper 20 eli amber 57 lina amber 102 chen delta 59 eli harbor 36 eli grove 35
DINA ELI LINA CHEN ELI ELI
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036252
qwen/qwen3.7-plus
awkweave-0036253
From column 1, print 4 characters starting at character 1.
{print substr($1,1,4)}
grove 94 cobalt 63 fable 49 ember 99 ember 109 cobalt 107 amber 10
grov coba fabl embe embe coba ambe
delta 108 fable 23 grove 101 grove 2 birch 14 cobalt 100
delt fabl grov grov birc coba
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036253-p1
Extract and print the first 4 characters from column 1.
{print substr($1,1,4)}
grove 94 cobalt 63 fable 49 ember 99 ember 109 cobalt 107 amber 10
grov coba fabl embe embe coba ambe
delta 108 fable 23 grove 101 grove 2 birch 14 cobalt 100
delt fabl grov grov birc coba
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036253
qwen/qwen3.7-plus
awkweave-0036254
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
ember_delta 103 cobalt_cobalt 50 cobalt_cobalt 107 grove_indigo 101 fable_delta 91 cobalt_ember 78 ember_birch 77
ember delta cobalt cobalt cobalt cobalt grove indigo fable delta cobalt ember ember birch
birch_ember 38 birch_amber 114 fable_juniper 118 delta_amber 98 birch_indigo 99 cobalt_fable 70 delta_birch 27 indigo_fable 11 amber_ember 89 grove_cobalt 36
birch ember birch amber fable juniper delta amber birch indigo cobalt fable delta birch indigo fable amber ember grove cobalt
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036254-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
ember_delta 103 cobalt_cobalt 50 cobalt_cobalt 107 grove_indigo 101 fable_delta 91 cobalt_ember 78 ember_birch 77
ember delta cobalt cobalt cobalt cobalt grove indigo fable delta cobalt ember ember birch
birch_ember 38 birch_amber 114 fable_juniper 118 delta_amber 98 birch_indigo 99 cobalt_fable 70 delta_birch 27 indigo_fable 11 amber_ember 89 grove_cobalt 36
birch ember birch amber fable juniper delta amber birch indigo cobalt fable delta birch indigo fable amber ember grove cobalt
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036254
qwen/qwen3.7-plus
awkweave-0036255
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)}
farah grove 37 active kim birch 22 active chen birch 22 ready ivan indigo 80 active lina fable 4 paused gus fable 62 pending alice harbor 66 active lina amber 48 closed eli grove 25 active farah grove 108 pending
active 37 grove farah active 22 birch kim ready 22 birch chen active 80 indigo ivan paused 4 fable lina pending 62 fable gus active 66 harbor alice closed 48 amber lina active 25 grove eli pending 108 grove farah
dina grove 31 closed kim cobalt 58 ready gus harbor 4 ready lina juniper 98 failed chen ember 28 active alice amber 49 failed gus grove 22 pending eli grove 0 paused farah grove 119 closed
closed 31 grove dina ready 58 cobalt kim ready 4 harbor gus failed 98 juniper lina active 28 ember chen failed 49 amber alice pending 22 grove gus paused 0 grove eli closed 119 grove farah
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036255-p1
Reverse the sequence of fields for each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
farah grove 37 active kim birch 22 active chen birch 22 ready ivan indigo 80 active lina fable 4 paused gus fable 62 pending alice harbor 66 active lina amber 48 closed eli grove 25 active farah grove 108 pending
active 37 grove farah active 22 birch kim ready 22 birch chen active 80 indigo ivan paused 4 fable lina pending 62 fable gus active 66 harbor alice closed 48 amber lina active 25 grove eli pending 108 grove farah
dina grove 31 closed kim cobalt 58 ready gus harbor 4 ready lina juniper 98 failed chen ember 28 active alice amber 49 failed gus grove 22 pending eli grove 0 paused farah grove 119 closed
closed 31 grove dina ready 58 cobalt kim ready 4 harbor gus failed 98 juniper lina active 28 ember chen failed 49 amber alice pending 22 grove gus paused 0 grove eli closed 119 grove farah
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036255
qwen/qwen3.7-plus
awkweave-0036256
Print the number of whitespace-separated fields on each line.
{print NF}
ivan juniper 120 pending eli grove 42 ready jules juniper 102 closed lina harbor 111 active kim birch 40 ready lina harbor 8 closed farah fable 67 pending bruno harbor 92 pending
4 4 4 4 4 4 4 4
chen fable 97 paused kim delta 28 closed chen juniper 29 pending jules fable 33 closed chen fable 27 paused gus fable 70 pending
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036256-p1
Output the count of whitespace-delimited fields present in each line.
{print NF}
ivan juniper 120 pending eli grove 42 ready jules juniper 102 closed lina harbor 111 active kim birch 40 ready lina harbor 8 closed farah fable 67 pending bruno harbor 92 pending
4 4 4 4 4 4 4 4
chen fable 97 paused kim delta 28 closed chen juniper 29 pending jules fable 33 closed chen fable 27 paused gus fable 70 pending
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036256
qwen/qwen3.7-plus
awkweave-0036257
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]]}
hana beta 107 kim gamma 8 bruno alpha 40 jules beta 29 jules beta 87 lina delta 48 farah delta 21
beta 3 gamma 1 alpha 1 delta 2
alice alpha 54 chen alpha 18 hana beta 74 bruno delta 72 gus alpha 54 kim beta 104 bruno beta 50 lina alpha 76 alice delta 79
alpha 4 beta 3 delta 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036257-p1
Tally the number of records for each distinct value in column 2, listing each 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]]}
hana beta 107 kim gamma 8 bruno alpha 40 jules beta 29 jules beta 87 lina delta 48 farah delta 21
beta 3 gamma 1 alpha 1 delta 2
alice alpha 54 chen alpha 18 hana beta 74 bruno delta 72 gus alpha 54 kim beta 104 bruno beta 50 lina alpha 76 alice delta 79
alpha 4 beta 3 delta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036257
qwen/qwen3.7-plus
awkweave-0036258
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]]}
hana delta 21 farah beta 9 kim beta 8 hana alpha 18 dina alpha 17 alice beta 18 dina gamma 8 lina beta 19 eli delta 24 farah delta 24
delta 69 beta 54 alpha 35 gamma 8
chen gamma 26 hana delta 16 bruno beta 14 gus gamma 25 farah gamma 12 alice beta 26 alice beta 13 dina alpha 1 dina alpha 30 kim beta 20
gamma 63 delta 16 beta 73 alpha 31
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036258-p1
Calculate the sum of column 3 grouped by column 2 categories, presenting the results in the order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
hana delta 21 farah beta 9 kim beta 8 hana alpha 18 dina alpha 17 alice beta 18 dina gamma 8 lina beta 19 eli delta 24 farah delta 24
delta 69 beta 54 alpha 35 gamma 8
chen gamma 26 hana delta 16 bruno beta 14 gus gamma 25 farah gamma 12 alice beta 26 alice beta 13 dina alpha 1 dina alpha 30 kim beta 20
gamma 63 delta 16 beta 73 alpha 31
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036258
qwen/qwen3.7-plus
awkweave-0036259
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 harbor 14 alpha birch 21 beta grove 61 gamma amber 57 delta delta 59 beta juniper 106 delta amber 17
gamma 2 beta 2 delta 2
gamma amber 83 alpha indigo 115 beta fable 59 gamma delta 66 gamma harbor 66 beta fable 51 gamma delta 77
gamma 4 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036259-p1
List each duplicated value from column 1 along with its frequency, ordered by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma harbor 14 alpha birch 21 beta grove 61 gamma amber 57 delta delta 59 beta juniper 106 delta amber 17
gamma 2 beta 2 delta 2
gamma amber 83 alpha indigo 115 beta fable 59 gamma delta 66 gamma harbor 66 beta fable 51 gamma delta 77
gamma 4 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036259
qwen/qwen3.7-plus
awkweave-0036260
The first row is a header. Print the region column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
score state display_name region r001 dina 13 closed r002 lina 16 paused r003 hana 18 closed r004 jules 4 paused r005 ivan 20 paused r006 jules 26 closed r007 eli 16 pending r008 dina 20 ready r009 hana 27 failed r010 kim 19 failed
closed paused closed paused paused closed pending ready failed failed
score state display_name region r001 jules 16 paused r002 eli 13 paused r003 dina 13 pending r004 bruno 19 pending r005 kim 30 ready r006 bruno 6 ready r007 ivan 12 failed r008 gus 5 ready
paused paused pending pending ready ready failed ready
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036260-p1
Skip the header row and output the 'region' column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
score state display_name region r001 dina 13 closed r002 lina 16 paused r003 hana 18 closed r004 jules 4 paused r005 ivan 20 paused r006 jules 26 closed r007 eli 16 pending r008 dina 20 ready r009 hana 27 failed r010 kim 19 failed
closed paused closed paused paused closed pending ready failed failed
score state display_name region r001 jules 16 paused r002 eli 13 paused r003 dina 13 pending r004 bruno 19 pending r005 kim 30 ready r006 bruno 6 ready r007 ivan 12 failed r008 gus 5 ready
paused paused pending pending ready ready failed ready
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036260
qwen/qwen3.7-plus
awkweave-0036261
The first row is a header. Print display_name for data rows whose score is greater than 9.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>9{print $h["display_name"]}
record_id display_name score state r001 jules 20 failed r002 farah 6 pending r003 hana 14 pending r004 farah 25 failed r005 alice 13 ready r006 ivan 15 failed r007 chen 1 closed r008 kim 18 paused
jules hana farah alice ivan kim
record_id display_name score state r001 farah 26 ready r002 kim 5 active r003 alice 1 ready r004 jules 21 ready r005 kim 20 ready r006 gus 4 ready r007 alice 16 failed r008 dina 20 active r009 dina 28 ready
farah jules kim alice dina dina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036261-p1
Ignoring the header, print the 'display_name' field for any record where the 'score' is strictly greater than 9.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>9{print $h["display_name"]}
record_id display_name score state r001 jules 20 failed r002 farah 6 pending r003 hana 14 pending r004 farah 25 failed r005 alice 13 ready r006 ivan 15 failed r007 chen 1 closed r008 kim 18 paused
jules hana farah alice ivan kim
record_id display_name score state r001 farah 26 ready r002 kim 5 active r003 alice 1 ready r004 jules 21 ready r005 kim 20 ready r006 gus 4 ready r007 alice 16 failed r008 dina 20 active r009 dina 28 ready
farah jules kim alice dina dina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036261
qwen/qwen3.7-plus
awkweave-0036262
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
eli 7 active alice 12 failed ivan 18 active eli 4 active kim 30 closed gus 10 active hana 9 closed hana 21 closed alice 17 active hana 22 failed
active failed active active closed active closed closed active failed
bruno 20 ready hana 19 closed lina 6 pending eli 13 failed kim 10 failed eli 29 closed hana 26 pending kim 3 pending hana 12 failed alice 6 failed
ready closed pending failed failed closed pending pending failed failed
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036262-p1
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
eli 7 active alice 12 failed ivan 18 active eli 4 active kim 30 closed gus 10 active hana 9 closed hana 21 closed alice 17 active hana 22 failed
active failed active active closed active closed closed active failed
bruno 20 ready hana 19 closed lina 6 pending eli 13 failed kim 10 failed eli 29 closed hana 26 pending kim 3 pending hana 12 failed alice 6 failed
ready closed pending failed failed closed pending pending failed failed
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0036262
qwen/qwen3.7-plus
awkweave-0036263
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 17.
BEGIN{FS=OFS=","}$2>17{print $1}
chen,19,active bruno,24,paused chen,22,failed jules,10,ready dina,21,active kim,23,paused gus,11,ready
chen bruno chen dina kim
chen,9,closed eli,3,closed chen,12,failed ivan,15,failed dina,17,ready bruno,5,pending hana,15,paused kim,3,closed
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036263-p1
Process simple CSV data without quoted commas; output the first column only if the second column's value is greater than 17.
BEGIN{FS=OFS=","}$2>17{print $1}
chen,19,active bruno,24,paused chen,22,failed jules,10,ready dina,21,active kim,23,paused gus,11,ready
chen bruno chen dina kim
chen,9,closed eli,3,closed chen,12,failed ivan,15,failed dina,17,ready bruno,5,pending hana,15,paused kim,3,closed
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036263
qwen/qwen3.7-plus
awkweave-0036264
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
chen fable 89 chen harbor 100 gus indigo 75 jules delta 69 eli indigo 21 eli amber 54 kim amber 41 ivan amber 107
chen fable 89 chen harbor 100 gus indigo 75 jules delta 69 eli indigo 21 eli amber 54 kim amber 41 ivan amber 107
eli juniper 30 bruno grove 65 kim birch 102 dina fable 90 chen fable 118 alice indigo 55
eli juniper 30 bruno grove 65 kim birch 102 dina fable 90 chen fable 118 alice indigo 55
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036264-p1
Remove leading and trailing whitespace, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
chen fable 89 chen harbor 100 gus indigo 75 jules delta 69 eli indigo 21 eli amber 54 kim amber 41 ivan amber 107
chen fable 89 chen harbor 100 gus indigo 75 jules delta 69 eli indigo 21 eli amber 54 kim amber 41 ivan amber 107
eli juniper 30 bruno grove 65 kim birch 102 dina fable 90 chen fable 118 alice indigo 55
eli juniper 30 bruno grove 65 kim birch 102 dina fable 90 chen fable 118 alice indigo 55
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036264
qwen/qwen3.7-plus
awkweave-0036265
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
lina cobalt 64 pending dina birch 118 ready lina grove 75 active lina harbor 68 closed farah grove 100 pending bruno harbor 32 paused bruno juniper 11 paused
farah grove 100 pending
jules delta 91 failed eli fable 82 ready hana indigo 62 active gus birch 33 closed hana juniper 113 pending alice juniper 21 active chen fable 41 paused
hana juniper 113 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036265-p1
Identify and print the longest line from the input; in case of a tie in length, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
lina cobalt 64 pending dina birch 118 ready lina grove 75 active lina harbor 68 closed farah grove 100 pending bruno harbor 32 paused bruno juniper 11 paused
farah grove 100 pending
jules delta 91 failed eli fable 82 ready hana indigo 62 active gus birch 33 closed hana juniper 113 pending alice juniper 21 active chen fable 41 paused
hana juniper 113 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036265
qwen/qwen3.7-plus
awkweave-0036266
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
hana 90 bruno 79 farah 60 gus 44 chen 51 ivan 80 kim 91 hana 29
bruno 79 chen 51 hana 29
farah 31 chen 83 kim 14 alice 26 alice 0 eli 105
chen 83 alice 0
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036266-p1
Output every third line beginning with line 2 (i.e., lines 2, 5, 8, etc.).
NR%3==2
hana 90 bruno 79 farah 60 gus 44 chen 51 ivan 80 kim 91 hana 29
bruno 79 chen 51 hana 29
farah 31 chen 83 kim 14 alice 26 alice 0 eli 105
chen 83 alice 0
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036266
qwen/qwen3.7-plus
awkweave-0036267
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha fable 34 gamma juniper 119 gamma grove 40 alpha birch 41 alpha cobalt 27 beta juniper 120
5
gamma grove 110 delta amber 110 beta ember 70 beta fable 53 delta ember 107 gamma harbor 24 alpha birch 10 beta cobalt 86 alpha juniper 32
8
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036267-p1
Calculate the number of unique values found in the second column and print just that total count.
{if(!seen[$2]++)n++}END{print n+0}
alpha fable 34 gamma juniper 119 gamma grove 40 alpha birch 41 alpha cobalt 27 beta juniper 120
5
gamma grove 110 delta amber 110 beta ember 70 beta fable 53 delta ember 107 gamma harbor 24 alpha birch 10 beta cobalt 86 alpha juniper 32
8
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036267
qwen/qwen3.7-plus
awkweave-0036268
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}
hana 12 0 lina 4 22 farah 1 23 bruno 11 2 dina 17 4 eli 1 29 gus 6 11 alice 16 15
lina 0.18 farah 0.04 bruno 5.50 dina 4.25 eli 0.03 gus 0.55 alice 1.07
jules 8 0 ivan 4 28 jules 5 16 lina 5 12 dina 9 8 chen 12 4 chen 18 28 gus 19 2 jules 28 28 farah 1 2
ivan 0.14 jules 0.31 lina 0.42 dina 1.12 chen 3.00 chen 0.64 gus 9.50 jules 1.00 farah 0.50
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036268-p1
For each row, output the first column and the result of dividing the second column by the third (formatted to two decimal places), omitting any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
hana 12 0 lina 4 22 farah 1 23 bruno 11 2 dina 17 4 eli 1 29 gus 6 11 alice 16 15
lina 0.18 farah 0.04 bruno 5.50 dina 4.25 eli 0.03 gus 0.55 alice 1.07
jules 8 0 ivan 4 28 jules 5 16 lina 5 12 dina 9 8 chen 12 4 chen 18 28 gus 19 2 jules 28 28 farah 1 2
ivan 0.14 jules 0.31 lina 0.42 dina 1.12 chen 3.00 chen 0.64 gus 9.50 jules 1.00 farah 0.50
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036268
qwen/qwen3.7-plus
awkweave-0036269
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]}
gus juniper 19 lina amber 7 chen ember 3 chen cobalt 15 chen indigo 13 lina fable 18 jules juniper 5 chen birch 15
gus juniper 19 lina fable 18 chen cobalt 15
bruno grove 2 gus amber 23 kim ember 29 bruno indigo 4 chen ember 18 gus indigo 29
kim ember 29 gus indigo 29 gus amber 23
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036269-p1
Select the top three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
gus juniper 19 lina amber 7 chen ember 3 chen cobalt 15 chen indigo 13 lina fable 18 jules juniper 5 chen birch 15
gus juniper 19 lina fable 18 chen cobalt 15
bruno grove 2 gus amber 23 kim ember 29 bruno indigo 4 chen ember 18 gus indigo 29
kim ember 29 gus indigo 29 gus amber 23
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036269
qwen/qwen3.7-plus
awkweave-0036270
For each line, output fields 3 and 1, in that order.
{print $3, $1}
bruno dina chen birch 76 33 jules farah farah ember 29 27 alice jules bruno birch 118 2 chen bruno hana juniper 68 81 eli kim alice birch 56 5 dina hana kim juniper 26 27 chen bruno gus indigo 108 64 eli chen eli juniper 33 120
chen bruno farah jules bruno alice hana chen alice eli kim dina gus chen eli eli
chen ivan eli grove 29 87 bruno dina chen fable 47 37 lina dina bruno cobalt 90 28 lina chen eli juniper 16 88 bruno chen chen fable 60 76 ivan bruno alice grove 68 10 dina chen gus juniper 115 16
eli chen chen bruno bruno lina eli lina chen bruno alice ivan gus dina
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0036270-p1
For every line, print the third field followed by the first field.
{print $3, $1}
bruno dina chen birch 76 33 jules farah farah ember 29 27 alice jules bruno birch 118 2 chen bruno hana juniper 68 81 eli kim alice birch 56 5 dina hana kim juniper 26 27 chen bruno gus indigo 108 64 eli chen eli juniper 33 120
chen bruno farah jules bruno alice hana chen alice eli kim dina gus chen eli eli
chen ivan eli grove 29 87 bruno dina chen fable 47 37 lina dina bruno cobalt 90 28 lina chen eli juniper 16 88 bruno chen chen fable 60 76 ivan bruno alice grove 68 10 dina chen gus juniper 115 16
eli chen chen bruno bruno lina eli lina chen bruno alice ivan gus dina
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0036270
qwen/qwen3.7-plus
awkweave-0036271
Print the last field of every input line.
{print $NF}
harbor paused 95 gus indigo fable cobalt closed 39 dina grove delta grove failed 100 chen ember birch delta ready 79 lina harbor indigo delta closed 118 alice grove grove juniper active 85 ivan grove grove juniper closed 54 hana juniper delta indigo pending 51 ivan cobalt fable harbor ready 78 lina birch amber harbor p...
fable delta birch indigo grove grove delta fable amber cobalt
juniper active 62 dina fable juniper fable closed 17 farah birch juniper delta active 7 lina harbor indigo ember ready 16 gus harbor fable grove active 45 dina fable delta fable ready 35 hana ember juniper birch pending 119 lina delta delta amber pending 116 ivan ember indigo
juniper juniper indigo fable delta juniper delta indigo
last_field
1
train
original-grammar
CC-BY-4.0
null
null