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-0009000-p1
Skip the header row and output the display_name field for any record where the score exceeds 8.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>8{print $h["display_name"]}
record_id display_name score state r001 dina 12 closed r002 chen 3 ready r003 bruno 9 pending r004 kim 14 paused r005 eli 2 failed r006 bruno 11 closed r007 ivan 30 closed r008 eli 17 closed r009 dina 16 ready
dina bruno kim bruno ivan eli dina
record_id display_name score state r001 dina 16 active r002 jules 11 pending r003 ivan 5 closed r004 chen 11 pending r005 dina 24 closed r006 hana 25 closed r007 jules 10 failed r008 dina 28 paused r009 bruno 6 ready r010 bruno 8 pending
dina jules chen dina hana jules dina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009000
qwen/qwen3.7-plus
awkweave-0009001
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
ivan 17 ready hana 19 ready hana 15 active farah 18 active alice 17 closed hana 17 paused kim 8 pending eli 11 active chen 26 failed
ivan hana hana farah alice hana kim eli chen
gus 17 active dina 24 closed ivan 5 active dina 30 active dina 23 pending hana 3 ready lina 16 paused farah 14 ready bruno 30 closed
gus dina ivan dina dina hana lina farah bruno
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009001-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
ivan 17 ready hana 19 ready hana 15 active farah 18 active alice 17 closed hana 17 paused kim 8 pending eli 11 active chen 26 failed
ivan hana hana farah alice hana kim eli chen
gus 17 active dina 24 closed ivan 5 active dina 30 active dina 23 pending hana 3 ready lina 16 paused farah 14 ready bruno 30 closed
gus dina ivan dina dina hana lina farah bruno
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0009001
qwen/qwen3.7-plus
awkweave-0009002
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 11.
BEGIN{FS=OFS=","}$2>11{print $1}
dina,4,ready eli,12,pending jules,26,failed alice,30,active dina,26,paused dina,16,closed gus,23,paused bruno,30,pending jules,24,closed chen,17,active
eli jules alice dina dina gus bruno jules chen
dina,19,pending chen,22,paused jules,27,active chen,1,ready dina,24,closed dina,13,failed gus,27,failed eli,16,closed jules,11,ready dina,9,active
dina chen jules dina dina gus eli
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009002-p1
Process simple CSV data without quoted commas; output the first column only if the second column is greater than 11.
BEGIN{FS=OFS=","}$2>11{print $1}
dina,4,ready eli,12,pending jules,26,failed alice,30,active dina,26,paused dina,16,closed gus,23,paused bruno,30,pending jules,24,closed chen,17,active
eli jules alice dina dina gus bruno jules chen
dina,19,pending chen,22,paused jules,27,active chen,1,ready dina,24,closed dina,13,failed gus,27,failed eli,16,closed jules,11,ready dina,9,active
dina chen jules dina dina gus eli
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009002
qwen/qwen3.7-plus
awkweave-0009003
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
chen ember 36 kim birch 98 farah juniper 20 kim juniper 27 farah indigo 37 eli juniper 54 alice birch 120
chen ember 36 kim birch 98 farah juniper 20 kim juniper 27 farah indigo 37 eli juniper 54 alice birch 120
dina ember 28 dina juniper 115 hana harbor 82 bruno cobalt 101 eli indigo 74 bruno birch 115 gus cobalt 66 ivan fable 59 ivan indigo 64
dina ember 28 dina juniper 115 hana harbor 82 bruno cobalt 101 eli indigo 74 bruno birch 115 gus cobalt 66 ivan fable 59 ivan indigo 64
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009003-p1
Remove leading and trailing whitespace from each line and replace sequences of internal whitespace with a single space.
{$1=$1;print}
chen ember 36 kim birch 98 farah juniper 20 kim juniper 27 farah indigo 37 eli juniper 54 alice birch 120
chen ember 36 kim birch 98 farah juniper 20 kim juniper 27 farah indigo 37 eli juniper 54 alice birch 120
dina ember 28 dina juniper 115 hana harbor 82 bruno cobalt 101 eli indigo 74 bruno birch 115 gus cobalt 66 ivan fable 59 ivan indigo 64
dina ember 28 dina juniper 115 hana harbor 82 bruno cobalt 101 eli indigo 74 bruno birch 115 gus cobalt 66 ivan fable 59 ivan indigo 64
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009003
qwen/qwen3.7-plus
awkweave-0009004
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
bruno amber 96 pending ivan grove 24 active farah juniper 117 failed kim grove 102 pending kim cobalt 58 paused farah grove 55 failed eli ember 24 pending
farah juniper 117 failed
dina juniper 20 pending hana juniper 29 paused bruno indigo 41 closed hana delta 39 paused dina indigo 62 ready lina fable 27 active gus birch 43 closed hana fable 2 failed bruno indigo 112 ready bruno grove 51 paused
dina juniper 20 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009004-p1
Identify and print the longest line in the input; if multiple lines share the maximum length, select the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
bruno amber 96 pending ivan grove 24 active farah juniper 117 failed kim grove 102 pending kim cobalt 58 paused farah grove 55 failed eli ember 24 pending
farah juniper 117 failed
dina juniper 20 pending hana juniper 29 paused bruno indigo 41 closed hana delta 39 paused dina indigo 62 ready lina fable 27 active gus birch 43 closed hana fable 2 failed bruno indigo 112 ready bruno grove 51 paused
dina juniper 20 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009004
qwen/qwen3.7-plus
awkweave-0009005
Print every 4th line starting at line 2 (then line 6, and so on).
NR%4==2
eli 63 ivan 83 ivan 106 chen 82 farah 116 gus 16 lina 37 dina 107 bruno 41
ivan 83 gus 16
alice 66 farah 61 chen 101 dina 77 eli 2 eli 5 eli 69 eli 12 farah 94 chen 110
farah 61 eli 5 chen 110
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009005-p1
Output every fourth line beginning with line 2 (i.e., lines 2, 6, 10, etc.).
NR%4==2
eli 63 ivan 83 ivan 106 chen 82 farah 116 gus 16 lina 37 dina 107 bruno 41
ivan 83 gus 16
alice 66 farah 61 chen 101 dina 77 eli 2 eli 5 eli 69 eli 12 farah 94 chen 110
farah 61 eli 5 chen 110
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009005
qwen/qwen3.7-plus
awkweave-0009006
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
delta harbor 61 gamma amber 78 beta amber 19 gamma harbor 8 beta amber 111 beta indigo 59 delta amber 99
3
alpha cobalt 77 gamma cobalt 89 alpha amber 64 delta harbor 107 alpha juniper 52 delta harbor 61 beta ember 24
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009006-p1
Calculate the number of unique values in the first column and print only that total count.
{if(!seen[$1]++)n++}END{print n+0}
delta harbor 61 gamma amber 78 beta amber 19 gamma harbor 8 beta amber 111 beta indigo 59 delta amber 99
3
alpha cobalt 77 gamma cobalt 89 alpha amber 64 delta harbor 107 alpha juniper 52 delta harbor 61 beta ember 24
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009006
qwen/qwen3.7-plus
awkweave-0009007
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 3 0 ivan 14 6 lina 29 22 jules 24 5 gus 11 7 gus 17 16 chen 5 8 farah 25 9 chen 8 4
ivan 2.33 lina 1.32 jules 4.80 gus 1.57 gus 1.06 chen 0.62 farah 2.78 chen 2.00
gus 23 0 ivan 20 24 dina 26 17 bruno 14 23 gus 22 23 jules 21 20 lina 9 29
ivan 0.83 dina 1.53 bruno 0.61 gus 0.96 jules 1.05 lina 0.31
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009007-p1
For each row, output the first column and the result of dividing the second column by the third column rounded to two decimal places, skipping any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
eli 3 0 ivan 14 6 lina 29 22 jules 24 5 gus 11 7 gus 17 16 chen 5 8 farah 25 9 chen 8 4
ivan 2.33 lina 1.32 jules 4.80 gus 1.57 gus 1.06 chen 0.62 farah 2.78 chen 2.00
gus 23 0 ivan 20 24 dina 26 17 bruno 14 23 gus 22 23 jules 21 20 lina 9 29
ivan 0.83 dina 1.53 bruno 0.61 gus 0.96 jules 1.05 lina 0.31
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009007
qwen/qwen3.7-plus
awkweave-0009008
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
eli cobalt 24 lina juniper 10 farah birch 18 hana amber 17 alice amber 19 farah ember 6 dina juniper 10 jules grove 24 dina juniper 6 alice juniper 27
alice juniper 27 eli cobalt 24 jules grove 24
dina cobalt 29 ivan delta 12 chen amber 26 ivan harbor 14 ivan juniper 8 alice ember 5
dina cobalt 29 chen amber 26 ivan harbor 14
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009008-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]}
eli cobalt 24 lina juniper 10 farah birch 18 hana amber 17 alice amber 19 farah ember 6 dina juniper 10 jules grove 24 dina juniper 6 alice juniper 27
alice juniper 27 eli cobalt 24 jules grove 24
dina cobalt 29 ivan delta 12 chen amber 26 ivan harbor 14 ivan juniper 8 alice ember 5
dina cobalt 29 chen amber 26 ivan harbor 14
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009008
qwen/qwen3.7-plus
awkweave-0009009
For each line, output fields 4 and 1, in that order.
{print $4, $1}
delta juniper failed pending fable indigo failed failed fable indigo ready ready birch amber ready pending amber harbor pending active cobalt ember active ready
pending delta failed fable ready fable pending birch active amber ready cobalt
ember ember failed ready birch harbor paused paused cobalt harbor paused paused delta cobalt ready closed harbor ember failed paused amber fable ready pending amber juniper paused active
ready ember paused birch paused cobalt closed delta paused harbor pending amber active amber
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009009-p1
For every line, print the fourth field followed by the first field.
{print $4, $1}
delta juniper failed pending fable indigo failed failed fable indigo ready ready birch amber ready pending amber harbor pending active cobalt ember active ready
pending delta failed fable ready fable pending birch active amber ready cobalt
ember ember failed ready birch harbor paused paused cobalt harbor paused paused delta cobalt ready closed harbor ember failed paused amber fable ready pending amber juniper paused active
ready ember paused birch paused cobalt closed delta paused harbor pending amber active amber
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009009
qwen/qwen3.7-plus
awkweave-0009010
Print the last field of every input line.
{print $NF}
91 failed 2 harbor 45 farah 79 failed 59 indigo 7 hana 119 pending 16 cobalt 74 kim 101 paused 23 ember 92 gus 27 paused 106 harbor 74 dina 34 failed 48 birch 84 bruno 83 closed 3 fable 54 dina 64 paused 117 indigo 118 gus 14 closed 54 harbor 110 alice
farah hana kim gus dina bruno dina gus alice
108 active 63 amber 93 jules 43 ready 6 juniper 56 jules 64 paused 83 juniper 3 ivan 74 pending 29 delta 114 hana 60 closed 120 amber 95 alice 66 paused 24 fable 59 hana 44 failed 15 indigo 23 eli 97 pending 52 birch 6 lina
jules jules ivan hana alice hana eli lina
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009010-p1
Extract and print the final field from each input line.
{print $NF}
91 failed 2 harbor 45 farah 79 failed 59 indigo 7 hana 119 pending 16 cobalt 74 kim 101 paused 23 ember 92 gus 27 paused 106 harbor 74 dina 34 failed 48 birch 84 bruno 83 closed 3 fable 54 dina 64 paused 117 indigo 118 gus 14 closed 54 harbor 110 alice
farah hana kim gus dina bruno dina gus alice
108 active 63 amber 93 jules 43 ready 6 juniper 56 jules 64 paused 83 juniper 3 ivan 74 pending 29 delta 114 hana 60 closed 120 amber 95 alice 66 paused 24 fable 59 hana 44 failed 15 indigo 23 eli 97 pending 52 birch 6 lina
jules jules ivan hana alice hana eli lina
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009010
qwen/qwen3.7-plus
awkweave-0009011
Print the complete records where column 4 is at most 45.
$4 <= 45
lina paused ready 9 closed bruno ready ready 51 closed lina closed pending 47 active kim paused closed 17 ready gus paused failed 113 closed farah pending ready 117 ready gus ready closed 70 closed jules active closed 115 paused
lina paused ready 9 closed kim paused closed 17 ready
lina pending ready 5 ready lina active active 0 pending dina pending failed 50 ready chen failed ready 71 closed eli pending active 64 ready kim active pending 37 closed
lina pending ready 5 ready lina active active 0 pending kim active pending 37 closed
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009011-p1
Output all complete records where the value in the fourth column is less than or equal to 45.
$4 <= 45
lina paused ready 9 closed bruno ready ready 51 closed lina closed pending 47 active kim paused closed 17 ready gus paused failed 113 closed farah pending ready 117 ready gus ready closed 70 closed jules active closed 115 paused
lina paused ready 9 closed kim paused closed 17 ready
lina pending ready 5 ready lina active active 0 pending dina pending failed 50 ready chen failed ready 71 closed eli pending active 64 ready kim active pending 37 closed
lina pending ready 5 ready lina active active 0 pending kim active pending 37 closed
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009011
qwen/qwen3.7-plus
awkweave-0009012
Show whole lines whose 2nd field is between 12 and 21, inclusive.
$2 >= 12 && $2 <= 21
juniper 5 delta birch delta 12 harbor grove fable 16 delta amber cobalt 30 grove grove harbor 22 indigo ember amber 21 indigo grove
delta 12 harbor grove fable 16 delta amber amber 21 indigo grove
harbor 15 juniper delta harbor 22 amber grove ember 13 fable delta birch 18 cobalt juniper grove 24 delta cobalt indigo 25 amber fable
harbor 15 juniper delta ember 13 fable delta birch 18 cobalt juniper
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009012-p1
Display complete lines where the second field falls within the inclusive range of 12 to 21.
$2 >= 12 && $2 <= 21
juniper 5 delta birch delta 12 harbor grove fable 16 delta amber cobalt 30 grove grove harbor 22 indigo ember amber 21 indigo grove
delta 12 harbor grove fable 16 delta amber amber 21 indigo grove
harbor 15 juniper delta harbor 22 amber grove ember 13 fable delta birch 18 cobalt juniper grove 24 delta cobalt indigo 25 amber fable
harbor 15 juniper delta ember 13 fable delta birch 18 cobalt juniper
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009012
qwen/qwen3.7-plus
awkweave-0009013
Print column 4 only for rows where column 3 is exactly ready.
$3 == "ready"{print $4}
amber 65 failed kim birch 28 active eli delta 50 failed kim grove 76 active dina amber 85 active dina birch 25 ready jules birch 118 failed bruno harbor 7 failed farah harbor 25 failed farah cobalt 68 pending eli
jules
fable 37 paused dina fable 113 ready farah juniper 5 closed ivan indigo 41 pending jules harbor 15 pending jules grove 55 failed alice grove 119 ready bruno amber 81 closed alice fable 21 ready jules indigo 31 active gus
farah bruno jules
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009013-p1
Output only the fourth column for rows in which the third column is exactly ready.
$3 == "ready"{print $4}
amber 65 failed kim birch 28 active eli delta 50 failed kim grove 76 active dina amber 85 active dina birch 25 ready jules birch 118 failed bruno harbor 7 failed farah harbor 25 failed farah cobalt 68 pending eli
jules
fable 37 paused dina fable 113 ready farah juniper 5 closed ivan indigo 41 pending jules harbor 15 pending jules grove 55 failed alice grove 119 ready bruno amber 81 closed alice fable 21 ready jules indigo 31 active gus
farah bruno jules
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009013
qwen/qwen3.7-plus
awkweave-0009014
Print all fields from lines where field 1 begins with WARN.
$1 ~ /^WARN/
DEBUG 61 fable DEBUG 61 indigo DEBUG 107 fable DEBUG 12 amber WARN 111 juniper ERROR 21 indigo ERROR 91 grove DEBUG 6 harbor WARN 95 harbor
WARN 111 juniper WARN 95 harbor
DEBUG 61 juniper DEBUG 83 grove WARN 53 juniper INFO 44 ember INFO 44 cobalt ERROR 81 delta ERROR 105 juniper WARN 46 juniper
WARN 53 juniper WARN 46 juniper
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009014-p1
Print all fields from lines where the first field starts with WARN.
$1 ~ /^WARN/
DEBUG 61 fable DEBUG 61 indigo DEBUG 107 fable DEBUG 12 amber WARN 111 juniper ERROR 21 indigo ERROR 91 grove DEBUG 6 harbor WARN 95 harbor
WARN 111 juniper WARN 95 harbor
DEBUG 61 juniper DEBUG 83 grove WARN 53 juniper INFO 44 ember INFO 44 cobalt ERROR 81 delta ERROR 105 juniper WARN 46 juniper
WARN 53 juniper WARN 46 juniper
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009014
qwen/qwen3.7-plus
awkweave-0009015
Print every line except those containing the exact text fable.
$0 !~ /fable/
grove 47 active birch 25 closed delta 111 pending amber 72 paused grove 10 failed harbor 63 pending fable 65 pending indigo 17 ready fable 999 active
grove 47 active birch 25 closed delta 111 pending amber 72 paused grove 10 failed harbor 63 pending indigo 17 ready
ember 42 closed delta 2 pending fable 24 ready cobalt 120 active delta 50 pending indigo 44 active juniper 60 ready indigo 92 active grove 12 ready fable 999 active
ember 42 closed delta 2 pending cobalt 120 active delta 50 pending indigo 44 active juniper 60 ready indigo 92 active grove 12 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009015-p1
Output every line that does not contain the exact string fable.
$0 !~ /fable/
grove 47 active birch 25 closed delta 111 pending amber 72 paused grove 10 failed harbor 63 pending fable 65 pending indigo 17 ready fable 999 active
grove 47 active birch 25 closed delta 111 pending amber 72 paused grove 10 failed harbor 63 pending indigo 17 ready
ember 42 closed delta 2 pending fable 24 ready cobalt 120 active delta 50 pending indigo 44 active juniper 60 ready indigo 92 active grove 12 ready fable 999 active
ember 42 closed delta 2 pending cobalt 120 active delta 50 pending indigo 44 active juniper 60 ready indigo 92 active grove 12 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009015
qwen/qwen3.7-plus
awkweave-0009016
Print lines 4 through 6, including both endpoints.
NR >= 4 && NR <= 6
gus amber 82 lina harbor 81 dina fable 74 eli harbor 47 farah delta 28 chen juniper 42 farah amber 115 bruno fable 30 chen indigo 21 lina cobalt 5
eli harbor 47 farah delta 28 chen juniper 42
chen harbor 23 alice cobalt 2 alice cobalt 106 alice harbor 34 farah indigo 30 gus cobalt 51 bruno indigo 38
alice harbor 34 farah indigo 30 gus cobalt 51
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009016-p1
Print lines 4 through 6, inclusive of both endpoints.
NR >= 4 && NR <= 6
gus amber 82 lina harbor 81 dina fable 74 eli harbor 47 farah delta 28 chen juniper 42 farah amber 115 bruno fable 30 chen indigo 21 lina cobalt 5
eli harbor 47 farah delta 28 chen juniper 42
chen harbor 23 alice cobalt 2 alice cobalt 106 alice harbor 34 farah indigo 30 gus cobalt 51 bruno indigo 38
alice harbor 34 farah indigo 30 gus cobalt 51
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009016
qwen/qwen3.7-plus
awkweave-0009017
Output only the first 4 records.
NR <= 4
ivan 28 delta chen 46 grove bruno 40 delta eli 107 amber kim 117 amber chen 58 delta eli 84 grove kim 6 fable lina 106 fable ivan 105 ember
ivan 28 delta chen 46 grove bruno 40 delta eli 107 amber
kim 22 amber kim 97 indigo alice 48 juniper bruno 101 birch hana 54 delta hana 64 delta bruno 90 birch farah 107 juniper
kim 22 amber kim 97 indigo alice 48 juniper bruno 101 birch
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009017-p1
Output only the first 4 records.
NR <= 4
ivan 28 delta chen 46 grove bruno 40 delta eli 107 amber kim 117 amber chen 58 delta eli 84 grove kim 6 fable lina 106 fable ivan 105 ember
ivan 28 delta chen 46 grove bruno 40 delta eli 107 amber
kim 22 amber kim 97 indigo alice 48 juniper bruno 101 birch hana 54 delta hana 64 delta bruno 90 birch farah 107 juniper
kim 22 amber kim 97 indigo alice 48 juniper bruno 101 birch
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0009017
qwen/qwen3.7-plus
awkweave-0009018
Skip the first line and print every remaining line unchanged.
NR > 1
eli 59 indigo hana 7 juniper lina 104 delta bruno 9 amber chen 35 cobalt kim 103 cobalt
hana 7 juniper lina 104 delta bruno 9 amber chen 35 cobalt kim 103 cobalt
eli 59 harbor dina 54 grove bruno 33 ember alice 41 fable chen 11 delta farah 84 ember
dina 54 grove bruno 33 ember alice 41 fable chen 11 delta farah 84 ember
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009018-p1
Omit the first line and print all subsequent lines without modification.
NR > 1
eli 59 indigo hana 7 juniper lina 104 delta bruno 9 amber chen 35 cobalt kim 103 cobalt
hana 7 juniper lina 104 delta bruno 9 amber chen 35 cobalt kim 103 cobalt
eli 59 harbor dina 54 grove bruno 33 ember alice 41 fable chen 11 delta farah 84 ember
dina 54 grove bruno 33 ember alice 41 fable chen 11 delta farah 84 ember
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009018
qwen/qwen3.7-plus
awkweave-0009019
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
bruno closed 25 gus ready 13 ivan active 34 jules closed 88 lina ready 14 kim pending 5 chen paused 86 gus active 50 chen ready 93 kim active 16
0
hana closed 76 bruno failed 107 kim closed 59 jules active 28 gus closed 39 chen active 1
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009019-p1
Count the number of records where column 2 is failed, printing 0 if none are found.
$2 == "failed"{n++}END{print n+0}
bruno closed 25 gus ready 13 ivan active 34 jules closed 88 lina ready 14 kim pending 5 chen paused 86 gus active 50 chen ready 93 kim active 16
0
hana closed 76 bruno failed 107 kim closed 59 jules active 28 gus closed 39 chen active 1
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009019
qwen/qwen3.7-plus
awkweave-0009020
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
juniper 15 lina juniper 9 gus juniper 7 kim cobalt 16 hana ember 9 ivan delta 19 eli indigo 25 hana cobalt 18 jules fable 23 kim
141
cobalt 23 hana ember 22 hana birch 13 hana grove 10 gus cobalt 19 hana delta 6 bruno juniper 12 bruno birch 27 jules
132
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009020-p1
Compute and display the sum of integer values in column 2.
{s+=$2}END{print s+0}
juniper 15 lina juniper 9 gus juniper 7 kim cobalt 16 hana ember 9 ivan delta 19 eli indigo 25 hana cobalt 18 jules fable 23 kim
141
cobalt 23 hana ember 22 hana birch 13 hana grove 10 gus cobalt 19 hana delta 6 bruno juniper 12 bruno birch 27 jules
132
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009020
qwen/qwen3.7-plus
awkweave-0009021
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
bruno 28 grove lina 2 cobalt jules 17 harbor ivan 16 cobalt chen 14 fable gus 12 amber farah 15 fable alice 8 indigo alice 3 amber
12.78
gus 16 ember bruno 29 indigo kim 28 juniper kim 18 birch kim 7 cobalt hana 21 birch bruno 25 amber jules 24 amber gus 7 cobalt farah 1 ember
17.60
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009021-p1
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
bruno 28 grove lina 2 cobalt jules 17 harbor ivan 16 cobalt chen 14 fable gus 12 amber farah 15 fable alice 8 indigo alice 3 amber
12.78
gus 16 ember bruno 29 indigo kim 28 juniper kim 18 birch kim 7 cobalt hana 21 birch bruno 25 amber jules 24 amber gus 7 cobalt farah 1 ember
17.60
average_field
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0009021
qwen/qwen3.7-plus
awkweave-0009022
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
ivan 5 harbor chen 5 indigo alice 5 fable lina 5 harbor gus 17 grove kim 4 birch hana 29 indigo kim 15 ember
4
eli 7 fable dina 7 ember farah 22 fable eli 4 ember hana 29 delta bruno 22 ember dina 22 juniper farah 20 birch kim 22 ember
4
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009022-p1
Identify and print the minimum numeric value found in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
ivan 5 harbor chen 5 indigo alice 5 fable lina 5 harbor gus 17 grove kim 4 birch hana 29 indigo kim 15 ember
4
eli 7 fable dina 7 ember farah 22 fable eli 4 ember hana 29 delta bruno 22 ember dina 22 juniper farah 20 birch kim 22 ember
4
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009022
qwen/qwen3.7-plus
awkweave-0009023
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
9 harbor lina 4 amber dina 6 harbor gus 29 ember eli 8 fable kim 24 ember lina 19 harbor gus 18 harbor gus
29
25 cobalt kim 4 ember hana 24 indigo dina 19 amber jules 21 amber farah 9 cobalt ivan 23 harbor ivan 20 cobalt chen 17 harbor farah
25
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009023-p1
Identify and print the maximum numeric value found in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
9 harbor lina 4 amber dina 6 harbor gus 29 ember eli 8 fable kim 24 ember lina 19 harbor gus 18 harbor gus
29
25 cobalt kim 4 ember hana 24 indigo dina 19 amber jules 21 amber farah 9 cobalt ivan 23 harbor ivan 20 cobalt chen 17 harbor farah
25
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009023
qwen/qwen3.7-plus
awkweave-0009024
Count all input records and print the total.
END{print NR}
hana 77 lina 35 bruno 14 dina 48 farah 102 alice 108 chen 118 jules 112 eli 28
9
dina 59 ivan 86 dina 0 lina 52 farah 77 alice 26 lina 25 kim 71
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009024-p1
Output the total count of all input records.
END{print NR}
hana 77 lina 35 bruno 14 dina 48 farah 102 alice 108 chen 118 jules 112 eli 28
9
dina 59 ivan 86 dina 0 lina 52 farah 77 alice 26 lina 25 kim 71
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009024
qwen/qwen3.7-plus
awkweave-0009025
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
ivan grove 120 alice birch 72 ivan grove 120 dina harbor 120 farah ember 30 hana cobalt 101 gus amber 35 jules grove 90 alice indigo 51
ivan grove 120 alice birch 72 dina harbor 120 farah ember 30 hana cobalt 101 gus amber 35 jules grove 90 alice indigo 51
alice indigo 61 hana delta 21 hana delta 119 hana delta 21 bruno harbor 5 hana delta 40 farah birch 59
alice indigo 61 hana delta 21 hana delta 119 bruno harbor 5 hana delta 40 farah birch 59
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009025-p1
Eliminate duplicate lines by keeping only the first instance of each, maintaining the original sequence.
!seen[$0]++
ivan grove 120 alice birch 72 ivan grove 120 dina harbor 120 farah ember 30 hana cobalt 101 gus amber 35 jules grove 90 alice indigo 51
ivan grove 120 alice birch 72 dina harbor 120 farah ember 30 hana cobalt 101 gus amber 35 jules grove 90 alice indigo 51
alice indigo 61 hana delta 21 hana delta 119 hana delta 21 bruno harbor 5 hana delta 40 farah birch 59
alice indigo 61 hana delta 21 hana delta 119 bruno harbor 5 hana delta 40 farah birch 59
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009025
qwen/qwen3.7-plus
awkweave-0009026
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
bruno birch 40 eli indigo 61 dina cobalt 92 dina birch 80 bruno grove 103 chen birch 58 alice ember 109 kim juniper 51
bruno birch 40 eli indigo 61 dina cobalt 92 dina birch 80 bruno grove 103 chen birch 58 alice ember 109 kim juniper 51
gus indigo 65 dina cobalt 59 gus birch 1 hana indigo 106 ivan ember 80 dina cobalt 82
gus indigo 65 dina cobalt 59 gus birch 1 hana indigo 106 ivan ember 80 dina cobalt 82
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009026-p1
Retain only the initial row for every unique value found in column 3, keeping the original input order.
!seen[$3]++
bruno birch 40 eli indigo 61 dina cobalt 92 dina birch 80 bruno grove 103 chen birch 58 alice ember 109 kim juniper 51
bruno birch 40 eli indigo 61 dina cobalt 92 dina birch 80 bruno grove 103 chen birch 58 alice ember 109 kim juniper 51
gus indigo 65 dina cobalt 59 gus birch 1 hana indigo 106 ivan ember 80 dina cobalt 82
gus indigo 65 dina cobalt 59 gus birch 1 hana indigo 106 ivan ember 80 dina cobalt 82
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009026
qwen/qwen3.7-plus
awkweave-0009027
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 24 ember farah 11 juniper chen 5 delta alice 13 ember bruno 12 fable eli 4 ember
ivan 24 farah 35 chen 40 alice 53 bruno 65 eli 69
alice 11 birch eli 15 grove hana 14 ember dina 6 juniper gus 17 amber lina 23 fable ivan 28 fable
alice 11 eli 26 hana 40 dina 46 gus 63 lina 86 ivan 114
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009027-p1
For each entry, output column 1 alongside the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 24 ember farah 11 juniper chen 5 delta alice 13 ember bruno 12 fable eli 4 ember
ivan 24 farah 35 chen 40 alice 53 bruno 65 eli 69
alice 11 birch eli 15 grove hana 14 ember dina 6 juniper gus 17 amber lina 23 fable ivan 28 fable
alice 11 eli 26 hana 40 dina 46 gus 63 lina 86 ivan 114
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009027
qwen/qwen3.7-plus
awkweave-0009028
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
gus 2 15 juniper gus 4 3 birch ivan 25 18 cobalt farah 18 15 ember alice 13 17 juniper ivan 15 28 amber chen 27 18 amber
gus 17 gus 7 ivan 43 farah 33 alice 30 ivan 43 chen 45
gus 14 3 harbor chen 10 21 delta farah 24 6 indigo gus 6 12 grove hana 5 6 cobalt lina 22 2 ember
gus 17 chen 31 farah 30 gus 18 hana 11 lina 24
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009028-p1
Display field 1 followed by the sum of fields 2 and 3 for every row.
{print $1,$2+$3}
gus 2 15 juniper gus 4 3 birch ivan 25 18 cobalt farah 18 15 ember alice 13 17 juniper ivan 15 28 amber chen 27 18 amber
gus 17 gus 7 ivan 43 farah 33 alice 30 ivan 43 chen 45
gus 14 3 harbor chen 10 21 delta farah 24 6 indigo gus 6 12 grove hana 5 6 cobalt lina 22 2 ember
gus 17 chen 31 farah 30 gus 18 hana 11 lina 24
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009028
qwen/qwen3.7-plus
awkweave-0009029
Print column 1 and pass when column 2 is at least 23; otherwise print fail.
{print $1,($2>=23?"pass":"fail")}
lina 18 dina 12 farah 28 lina 5 dina 10 gus 29
lina fail dina fail farah pass lina fail dina fail gus pass
gus 10 farah 20 alice 19 eli 17 dina 13 chen 2
gus fail farah fail alice fail eli fail dina fail chen fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009029-p1
Output column 1 with 'pass' if column 2 is 23 or greater, otherwise output 'fail'.
{print $1,($2>=23?"pass":"fail")}
lina 18 dina 12 farah 28 lina 5 dina 10 gus 29
lina fail dina fail farah pass lina fail dina fail gus pass
gus 10 farah 20 alice 19 eli 17 dina 13 chen 2
gus fail farah fail alice fail eli fail dina fail chen fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009029
qwen/qwen3.7-plus
awkweave-0009030
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
gus harbor 21 kim delta 75 lina cobalt 70 ivan delta 58 ivan harbor 49 hana fable 45 jules fable 22
HARBOR DELTA COBALT DELTA HARBOR FABLE FABLE
ivan ember 64 dina cobalt 2 lina juniper 16 ivan delta 59 gus fable 31 eli grove 10 dina grove 58 farah indigo 21
EMBER COBALT JUNIPER DELTA FABLE GROVE GROVE INDIGO
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009030-p1
Transform column 2 to uppercase and display only that column.
{print toupper($2)}
gus harbor 21 kim delta 75 lina cobalt 70 ivan delta 58 ivan harbor 49 hana fable 45 jules fable 22
HARBOR DELTA COBALT DELTA HARBOR FABLE FABLE
ivan ember 64 dina cobalt 2 lina juniper 16 ivan delta 59 gus fable 31 eli grove 10 dina grove 58 farah indigo 21
EMBER COBALT JUNIPER DELTA FABLE GROVE GROVE INDIGO
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009030
qwen/qwen3.7-plus
awkweave-0009031
From column 1, print 4 characters starting at character 2.
{print substr($1,2,4)}
birch 115 juniper 3 harbor 104 grove 1 grove 92 harbor 35
irch unip arbo rove rove arbo
birch 113 delta 17 ember 83 cobalt 100 indigo 33 ember 59 ember 38 delta 114 ember 35 cobalt 19
irch elta mber obal ndig mber mber elta mber obal
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009031-p1
Extract and print a 4-character substring from column 1, starting at the second character.
{print substr($1,2,4)}
birch 115 juniper 3 harbor 104 grove 1 grove 92 harbor 35
irch unip arbo rove rove arbo
birch 113 delta 17 ember 83 cobalt 100 indigo 33 ember 59 ember 38 delta 114 ember 35 cobalt 19
irch elta mber obal ndig mber mber elta mber obal
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009031
qwen/qwen3.7-plus
awkweave-0009032
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
grove_amber 61 cobalt_harbor 116 harbor_delta 103 delta_cobalt 65 ember_indigo 36 delta_amber 24 indigo_juniper 86
grove amber cobalt harbor harbor delta delta cobalt ember indigo delta amber indigo juniper
grove_fable 63 delta_indigo 81 grove_cobalt 80 fable_cobalt 118 fable_birch 29 amber_indigo 46 juniper_delta 26 birch_birch 56 fable_ember 13
grove fable delta indigo grove cobalt fable cobalt fable birch amber indigo juniper delta birch birch fable ember
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009032-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
grove_amber 61 cobalt_harbor 116 harbor_delta 103 delta_cobalt 65 ember_indigo 36 delta_amber 24 indigo_juniper 86
grove amber cobalt harbor harbor delta delta cobalt ember indigo delta amber indigo juniper
grove_fable 63 delta_indigo 81 grove_cobalt 80 fable_cobalt 118 fable_birch 29 amber_indigo 46 juniper_delta 26 birch_birch 56 fable_ember 13
grove fable delta indigo grove cobalt fable cobalt fable birch amber indigo juniper delta birch birch fable ember
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009032
qwen/qwen3.7-plus
awkweave-0009033
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)}
lina grove 64 failed gus delta 31 closed jules amber 81 ready dina fable 16 pending farah grove 35 ready kim cobalt 119 failed
failed 64 grove lina closed 31 delta gus ready 81 amber jules pending 16 fable dina ready 35 grove farah failed 119 cobalt kim
farah cobalt 77 ready dina amber 90 ready jules fable 25 active lina indigo 106 paused gus cobalt 19 failed eli amber 24 closed
ready 77 cobalt farah ready 90 amber dina active 25 fable jules paused 106 indigo lina failed 19 cobalt gus closed 24 amber eli
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009033-p1
Reverse the sequence of fields for each line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
lina grove 64 failed gus delta 31 closed jules amber 81 ready dina fable 16 pending farah grove 35 ready kim cobalt 119 failed
failed 64 grove lina closed 31 delta gus ready 81 amber jules pending 16 fable dina ready 35 grove farah failed 119 cobalt kim
farah cobalt 77 ready dina amber 90 ready jules fable 25 active lina indigo 106 paused gus cobalt 19 failed eli amber 24 closed
ready 77 cobalt farah ready 90 amber dina active 25 fable jules paused 106 indigo lina failed 19 cobalt gus closed 24 amber eli
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009033
qwen/qwen3.7-plus
awkweave-0009034
Print the number of whitespace-separated fields on each line.
{print NF}
alice fable 32 paused alice delta 18 paused hana harbor 67 paused jules ember 91 pending dina fable 50 closed alice amber 82 paused kim cobalt 67 closed kim harbor 104 closed chen harbor 85 failed
4 4 4 4 4 4 4 4 4
eli ember 4 closed lina harbor 53 paused chen grove 114 ready farah cobalt 98 closed farah birch 12 pending lina fable 82 pending
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009034-p1
Print the count of whitespace-delimited fields for each line.
{print NF}
alice fable 32 paused alice delta 18 paused hana harbor 67 paused jules ember 91 pending dina fable 50 closed alice amber 82 paused kim cobalt 67 closed kim harbor 104 closed chen harbor 85 failed
4 4 4 4 4 4 4 4 4
eli ember 4 closed lina harbor 53 paused chen grove 114 ready farah cobalt 98 closed farah birch 12 pending lina fable 82 pending
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009034
qwen/qwen3.7-plus
awkweave-0009035
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
dina gamma 45 dina delta 76 farah delta 66 lina beta 103 farah beta 90 lina gamma 12 bruno beta 106 alice alpha 71 eli delta 94 alice beta 43
gamma 2 delta 3 beta 4 alpha 1
gus delta 48 jules beta 82 kim gamma 103 bruno alpha 98 gus alpha 69 chen alpha 14 alice gamma 67 bruno alpha 34
delta 1 beta 1 gamma 2 alpha 4
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009035-p1
Tally the number of records for each unique value in column 2, printing the value and its count in the order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
dina gamma 45 dina delta 76 farah delta 66 lina beta 103 farah beta 90 lina gamma 12 bruno beta 106 alice alpha 71 eli delta 94 alice beta 43
gamma 2 delta 3 beta 4 alpha 1
gus delta 48 jules beta 82 kim gamma 103 bruno alpha 98 gus alpha 69 chen alpha 14 alice gamma 67 bruno alpha 34
delta 1 beta 1 gamma 2 alpha 4
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009035
qwen/qwen3.7-plus
awkweave-0009036
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
ivan alpha 7 bruno alpha 3 chen alpha 10 lina gamma 14 farah beta 22 bruno alpha 21 ivan alpha 5
alpha 46 gamma 14 beta 22
eli delta 22 lina delta 13 eli beta 6 hana gamma 24 kim alpha 27 eli alpha 5 jules alpha 11 ivan alpha 1
delta 35 beta 6 gamma 24 alpha 44
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009036-p1
Aggregate the sum of values in column 3 for each unique category found in column 2, and output the results maintaining the order in which each category first appeared.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
ivan alpha 7 bruno alpha 3 chen alpha 10 lina gamma 14 farah beta 22 bruno alpha 21 ivan alpha 5
alpha 46 gamma 14 beta 22
eli delta 22 lina delta 13 eli beta 6 hana gamma 24 kim alpha 27 eli alpha 5 jules alpha 11 ivan alpha 1
delta 35 beta 6 gamma 24 alpha 44
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009036
qwen/qwen3.7-plus
awkweave-0009037
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 amber 116 delta ember 104 alpha birch 99 alpha juniper 70 gamma indigo 66 alpha indigo 16 gamma indigo 63 gamma indigo 27 beta birch 104
gamma 4 alpha 3
beta delta 88 alpha amber 52 beta amber 8 beta ember 117 gamma cobalt 43 alpha birch 61
beta 3 alpha 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009037-p1
Identify all values in column 1 that appear more than once, outputting each repeated value alongside its occurrence count, sorted by the order of their 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 amber 116 delta ember 104 alpha birch 99 alpha juniper 70 gamma indigo 66 alpha indigo 16 gamma indigo 63 gamma indigo 27 beta birch 104
gamma 4 alpha 3
beta delta 88 alpha amber 52 beta amber 8 beta ember 117 gamma cobalt 43 alpha birch 61
beta 3 alpha 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009037
qwen/qwen3.7-plus
awkweave-0009038
The first row is a header. Print the score column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
region state score record_id r001 dina 23 pending r002 kim 7 ready r003 bruno 4 active r004 gus 24 failed r005 dina 1 paused r006 lina 12 failed r007 ivan 9 ready r008 jules 27 paused r009 hana 2 failed r010 farah 16 failed
23 7 4 24 1 12 9 27 2 16
region state score record_id r001 farah 4 failed r002 hana 27 ready r003 hana 2 paused r004 ivan 19 pending r005 hana 22 paused r006 hana 1 active r007 hana 17 paused r008 farah 5 ready r009 farah 27 ready
4 27 2 19 22 1 17 5 27
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009038-p1
Treating the first line as a header, extract and print the values from the score column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
region state score record_id r001 dina 23 pending r002 kim 7 ready r003 bruno 4 active r004 gus 24 failed r005 dina 1 paused r006 lina 12 failed r007 ivan 9 ready r008 jules 27 paused r009 hana 2 failed r010 farah 16 failed
23 7 4 24 1 12 9 27 2 16
region state score record_id r001 farah 4 failed r002 hana 27 ready r003 hana 2 paused r004 ivan 19 pending r005 hana 22 paused r006 hana 1 active r007 hana 17 paused r008 farah 5 ready r009 farah 27 ready
4 27 2 19 22 1 17 5 27
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009038
qwen/qwen3.7-plus
awkweave-0009039
The first row is a header. Print display_name for data rows whose score is greater than 22.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]}
record_id display_name score state r001 eli 21 paused r002 jules 20 failed r003 lina 28 ready r004 bruno 30 active r005 bruno 18 failed r006 gus 20 failed r007 kim 22 ready
lina bruno
record_id display_name score state r001 lina 20 ready r002 lina 28 ready r003 gus 27 pending r004 jules 15 ready r005 bruno 5 pending r006 bruno 29 closed
lina gus bruno
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009039-p1
Ignoring the header row, output the display_name field for every record where the score value is strictly greater than 22.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]}
record_id display_name score state r001 eli 21 paused r002 jules 20 failed r003 lina 28 ready r004 bruno 30 active r005 bruno 18 failed r006 gus 20 failed r007 kim 22 ready
lina bruno
record_id display_name score state r001 lina 20 ready r002 lina 28 ready r003 gus 27 pending r004 jules 15 ready r005 bruno 5 pending r006 bruno 29 closed
lina gus bruno
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009039
qwen/qwen3.7-plus
awkweave-0009040
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
farah 16 failed lina 6 failed chen 10 paused hana 14 ready eli 30 paused chen 5 failed bruno 6 failed
failed failed paused ready paused failed failed
lina 11 ready eli 30 pending gus 5 failed jules 24 paused ivan 21 closed gus 28 ready chen 5 paused kim 25 closed bruno 18 failed gus 6 failed
ready pending failed paused closed ready paused closed failed failed
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009040-p1
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
farah 16 failed lina 6 failed chen 10 paused hana 14 ready eli 30 paused chen 5 failed bruno 6 failed
failed failed paused ready paused failed failed
lina 11 ready eli 30 pending gus 5 failed jules 24 paused ivan 21 closed gus 28 ready chen 5 paused kim 25 closed bruno 18 failed gus 6 failed
ready pending failed paused closed ready paused closed failed failed
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0009040
qwen/qwen3.7-plus
awkweave-0009041
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 8.
BEGIN{FS=OFS=","}$2>8{print $1}
lina,3,active bruno,14,active jules,15,closed lina,23,failed bruno,27,failed farah,30,active eli,29,pending
bruno jules lina bruno farah eli
hana,9,pending gus,13,active farah,11,ready hana,18,failed bruno,26,closed farah,13,active lina,6,closed lina,10,active
hana gus farah hana bruno farah lina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009041-p1
For simple comma-separated input without quoted fields, print the first column only if the value in the second column is greater than 8.
BEGIN{FS=OFS=","}$2>8{print $1}
lina,3,active bruno,14,active jules,15,closed lina,23,failed bruno,27,failed farah,30,active eli,29,pending
bruno jules lina bruno farah eli
hana,9,pending gus,13,active farah,11,ready hana,18,failed bruno,26,closed farah,13,active lina,6,closed lina,10,active
hana gus farah hana bruno farah lina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009041
qwen/qwen3.7-plus
awkweave-0009042
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
alice juniper 70 gus delta 24 alice birch 68 kim delta 33 ivan indigo 15 gus cobalt 56 farah juniper 7 jules juniper 95
alice juniper 70 gus delta 24 alice birch 68 kim delta 33 ivan indigo 15 gus cobalt 56 farah juniper 7 jules juniper 95
kim amber 70 gus juniper 93 hana fable 91 dina juniper 65 hana cobalt 92 lina amber 49 chen ember 101 bruno ember 28
kim amber 70 gus juniper 93 hana fable 91 dina juniper 65 hana cobalt 92 lina amber 49 chen ember 101 bruno ember 28
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009042-p1
Remove leading and trailing whitespace from the text, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
alice juniper 70 gus delta 24 alice birch 68 kim delta 33 ivan indigo 15 gus cobalt 56 farah juniper 7 jules juniper 95
alice juniper 70 gus delta 24 alice birch 68 kim delta 33 ivan indigo 15 gus cobalt 56 farah juniper 7 jules juniper 95
kim amber 70 gus juniper 93 hana fable 91 dina juniper 65 hana cobalt 92 lina amber 49 chen ember 101 bruno ember 28
kim amber 70 gus juniper 93 hana fable 91 dina juniper 65 hana cobalt 92 lina amber 49 chen ember 101 bruno ember 28
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009042
qwen/qwen3.7-plus
awkweave-0009043
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah birch 108 pending alice indigo 59 closed kim cobalt 36 failed farah juniper 52 closed gus indigo 76 closed lina fable 42 paused ivan delta 10 active farah grove 77 ready
farah birch 108 pending
farah ember 102 closed hana indigo 35 pending ivan amber 78 active alice delta 103 ready eli delta 38 active farah birch 26 ready ivan delta 92 pending alice birch 70 closed
farah ember 102 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009043-p1
Identify and output the longest line from the input; if multiple lines share the maximum length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah birch 108 pending alice indigo 59 closed kim cobalt 36 failed farah juniper 52 closed gus indigo 76 closed lina fable 42 paused ivan delta 10 active farah grove 77 ready
farah birch 108 pending
farah ember 102 closed hana indigo 35 pending ivan amber 78 active alice delta 103 ready eli delta 38 active farah birch 26 ready ivan delta 92 pending alice birch 70 closed
farah ember 102 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009043
qwen/qwen3.7-plus
awkweave-0009044
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
jules 61 hana 55 alice 113 bruno 24 bruno 82 lina 119 farah 39 bruno 29 eli 34
hana 55 bruno 82 bruno 29
alice 83 dina 7 alice 91 chen 67 kim 104 eli 66 alice 11
dina 7 kim 104
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009044-p1
Output every third line of the input, beginning with line 2 (i.e., lines 2, 5, 8, etc.).
NR%3==2
jules 61 hana 55 alice 113 bruno 24 bruno 82 lina 119 farah 39 bruno 29 eli 34
hana 55 bruno 82 bruno 29
alice 83 dina 7 alice 91 chen 67 kim 104 eli 66 alice 11
dina 7 kim 104
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009044
qwen/qwen3.7-plus
awkweave-0009045
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha birch 30 alpha indigo 14 delta amber 91 gamma juniper 38 beta indigo 25 alpha fable 115
5
gamma grove 4 delta delta 45 delta fable 11 gamma amber 6 alpha fable 73 gamma delta 66 alpha juniper 48
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009045-p1
Calculate the number of unique values present in column 2 and output only this total count.
{if(!seen[$2]++)n++}END{print n+0}
alpha birch 30 alpha indigo 14 delta amber 91 gamma juniper 38 beta indigo 25 alpha fable 115
5
gamma grove 4 delta delta 45 delta fable 11 gamma amber 6 alpha fable 73 gamma delta 66 alpha juniper 48
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009045
qwen/qwen3.7-plus
awkweave-0009046
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
jules 29 0 lina 17 19 gus 10 3 kim 21 25 gus 16 30 eli 27 8 ivan 22 19 lina 7 8
lina 0.89 gus 3.33 kim 0.84 gus 0.53 eli 3.38 ivan 1.16 lina 0.88
jules 5 0 alice 12 13 dina 5 9 lina 17 1 chen 19 10 eli 16 30 farah 17 17 kim 21 5 alice 26 21
alice 0.92 dina 0.56 lina 17.00 chen 1.90 eli 0.53 farah 1.00 kim 4.20 alice 1.24
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009046-p1
For each row where column 3 is non-zero, print column 1 and the result of dividing column 2 by column 3, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
jules 29 0 lina 17 19 gus 10 3 kim 21 25 gus 16 30 eli 27 8 ivan 22 19 lina 7 8
lina 0.89 gus 3.33 kim 0.84 gus 0.53 eli 3.38 ivan 1.16 lina 0.88
jules 5 0 alice 12 13 dina 5 9 lina 17 1 chen 19 10 eli 16 30 farah 17 17 kim 21 5 alice 26 21
alice 0.92 dina 0.56 lina 17.00 chen 1.90 eli 0.53 farah 1.00 kim 4.20 alice 1.24
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009046
qwen/qwen3.7-plus
awkweave-0009047
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]}
bruno ember 1 chen delta 2 alice grove 8 kim amber 10 gus birch 25 eli delta 21
gus birch 25 eli delta 21 kim amber 10
bruno cobalt 24 lina harbor 18 gus indigo 16 gus amber 16 chen ember 7 kim cobalt 7 farah cobalt 11 bruno ember 11 chen birch 29 alice fable 8
chen birch 29 bruno cobalt 24 lina harbor 18
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009047-p1
Output the three full 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]}
bruno ember 1 chen delta 2 alice grove 8 kim amber 10 gus birch 25 eli delta 21
gus birch 25 eli delta 21 kim amber 10
bruno cobalt 24 lina harbor 18 gus indigo 16 gus amber 16 chen ember 7 kim cobalt 7 farah cobalt 11 bruno ember 11 chen birch 29 alice fable 8
chen birch 29 bruno cobalt 24 lina harbor 18
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009047
qwen/qwen3.7-plus
awkweave-0009048
Select the 4th and 3rd fields in that order.
{print $4, $3}
72 ready bruno bruno jules 120 closed bruno kim chen 8 closed kim eli jules 35 closed farah jules gus 50 ready gus dina gus 13 failed jules jules lina 51 paused ivan eli kim 81 pending lina chen jules
bruno bruno kim bruno eli kim jules farah dina gus jules jules eli ivan chen lina
88 pending kim gus alice 109 closed alice kim alice 38 paused lina dina chen 32 paused chen farah lina 30 active eli alice hana 47 pending bruno chen chen 40 closed jules ivan jules 61 pending chen kim lina
gus kim kim alice dina lina farah chen alice eli chen bruno ivan jules kim chen
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009048-p1
Extract the fourth field followed by the third field.
{print $4, $3}
72 ready bruno bruno jules 120 closed bruno kim chen 8 closed kim eli jules 35 closed farah jules gus 50 ready gus dina gus 13 failed jules jules lina 51 paused ivan eli kim 81 pending lina chen jules
bruno bruno kim bruno eli kim jules farah dina gus jules jules eli ivan chen lina
88 pending kim gus alice 109 closed alice kim alice 38 paused lina dina chen 32 paused chen farah lina 30 active eli alice hana 47 pending bruno chen chen 40 closed jules ivan jules 61 pending chen kim lina
gus kim kim alice dina lina farah chen alice eli chen bruno ivan jules kim chen
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009048
qwen/qwen3.7-plus
awkweave-0009049
Print the last field of every input line.
{print $NF}
amber grove ember juniper amber amber grove cobalt cobalt grove ember juniper ember juniper harbor fable fable birch
ember amber cobalt juniper harbor birch
grove harbor amber delta delta fable delta delta delta harbor fable indigo grove juniper amber birch amber grove cobalt harbor amber indigo ember amber
amber fable delta indigo amber grove amber amber
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0009049-p1
Output the final field from each line of input.
{print $NF}
amber grove ember juniper amber amber grove cobalt cobalt grove ember juniper ember juniper harbor fable fable birch
ember amber cobalt juniper harbor birch
grove harbor amber delta delta fable delta delta delta harbor fable indigo grove juniper amber birch amber grove cobalt harbor amber indigo ember amber
amber fable delta indigo amber grove amber amber
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0009049
qwen/qwen3.7-plus
awkweave-0009050
Print the complete records where column 1 is at least 77.
$1 >= 77
65 indigo gus 14 indigo jules 17 juniper ivan 36 juniper farah 13 harbor chen 105 birch kim 43 indigo lina 54 harbor kim
105 birch kim
98 birch chen 102 harbor eli 70 juniper chen 49 amber ivan 115 indigo eli 10 juniper alice 116 fable eli 80 birch chen
98 birch chen 102 harbor eli 115 indigo eli 116 fable eli 80 birch chen
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null