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-0022611-p1
Ignore the header row and print display_name for rows 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 lina 21 ready r002 ivan 6 paused r003 hana 27 ready r004 alice 28 ready r005 ivan 8 ready r006 hana 20 ready
lina hana alice hana
record_id display_name score state r001 lina 29 ready r002 jules 25 ready r003 dina 27 paused r004 dina 18 pending r005 gus 7 ready r006 farah 29 failed
lina jules dina dina farah
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022611
qwen/qwen3.7-plus
awkweave-0022612
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
alice 23 paused eli 27 failed alice 16 active kim 1 failed lina 24 failed kim 26 pending
23 27 16 1 24 26
bruno 15 pending dina 20 paused gus 14 failed eli 29 closed jules 26 active hana 3 active eli 8 closed farah 26 closed lina 27 paused
15 20 14 29 26 3 8 26 27
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022612-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
alice 23 paused eli 27 failed alice 16 active kim 1 failed lina 24 failed kim 26 pending
23 27 16 1 24 26
bruno 15 pending dina 20 paused gus 14 failed eli 29 closed jules 26 active hana 3 active eli 8 closed farah 26 closed lina 27 paused
15 20 14 29 26 3 8 26 27
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0022612
qwen/qwen3.7-plus
awkweave-0022613
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 14.
BEGIN{FS=OFS=","}$2>14{print $1}
chen,13,active dina,20,pending jules,23,closed gus,17,pending hana,6,closed jules,9,active
dina jules gus
alice,10,active ivan,28,active lina,16,active dina,4,ready ivan,25,ready eli,11,pending eli,28,failed
ivan lina ivan eli
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022613-p1
Output the first field of comma-separated records where the second field is greater than 14, assuming no quoted commas.
BEGIN{FS=OFS=","}$2>14{print $1}
chen,13,active dina,20,pending jules,23,closed gus,17,pending hana,6,closed jules,9,active
dina jules gus
alice,10,active ivan,28,active lina,16,active dina,4,ready ivan,25,ready eli,11,pending eli,28,failed
ivan lina ivan eli
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022613
qwen/qwen3.7-plus
awkweave-0022614
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
jules harbor 1 chen grove 53 ivan juniper 19 kim cobalt 9 jules amber 17 ivan cobalt 39 jules juniper 87 jules juniper 97 alice indigo 31
jules harbor 1 chen grove 53 ivan juniper 19 kim cobalt 9 jules amber 17 ivan cobalt 39 jules juniper 87 jules juniper 97 alice indigo 31
bruno delta 59 hana indigo 19 ivan ember 56 dina delta 25 hana ember 56 chen ember 12 kim delta 9 chen fable 44 jules cobalt 69
bruno delta 59 hana indigo 19 ivan ember 56 dina delta 25 hana ember 56 chen ember 12 kim delta 9 chen fable 44 jules cobalt 69
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022614-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
jules harbor 1 chen grove 53 ivan juniper 19 kim cobalt 9 jules amber 17 ivan cobalt 39 jules juniper 87 jules juniper 97 alice indigo 31
jules harbor 1 chen grove 53 ivan juniper 19 kim cobalt 9 jules amber 17 ivan cobalt 39 jules juniper 87 jules juniper 97 alice indigo 31
bruno delta 59 hana indigo 19 ivan ember 56 dina delta 25 hana ember 56 chen ember 12 kim delta 9 chen fable 44 jules cobalt 69
bruno delta 59 hana indigo 19 ivan ember 56 dina delta 25 hana ember 56 chen ember 12 kim delta 9 chen fable 44 jules cobalt 69
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022614
qwen/qwen3.7-plus
awkweave-0022615
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah harbor 63 ready jules harbor 54 failed dina grove 75 pending jules ember 75 active ivan ember 77 closed jules ember 74 active eli fable 21 ready jules harbor 6 failed
jules harbor 54 failed
lina harbor 57 ready chen birch 16 pending hana delta 109 failed jules cobalt 78 failed kim amber 101 active gus juniper 28 paused chen fable 75 closed
jules cobalt 78 failed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022615-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}
farah harbor 63 ready jules harbor 54 failed dina grove 75 pending jules ember 75 active ivan ember 77 closed jules ember 74 active eli fable 21 ready jules harbor 6 failed
jules harbor 54 failed
lina harbor 57 ready chen birch 16 pending hana delta 109 failed jules cobalt 78 failed kim amber 101 active gus juniper 28 paused chen fable 75 closed
jules cobalt 78 failed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022615
qwen/qwen3.7-plus
awkweave-0022616
Print every 4th line starting at line 3 (then line 7, and so on).
NR%4==3
gus 92 hana 16 jules 75 gus 62 eli 89 kim 106 ivan 31
jules 75 ivan 31
bruno 7 kim 26 lina 45 lina 115 dina 7 farah 15 farah 95 kim 66 farah 17 lina 26
lina 45 farah 95
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022616-p1
Output every fourth line beginning with line 3 (i.e., lines 3, 7, 11, etc.).
NR%4==3
gus 92 hana 16 jules 75 gus 62 eli 89 kim 106 ivan 31
jules 75 ivan 31
bruno 7 kim 26 lina 45 lina 115 dina 7 farah 15 farah 95 kim 66 farah 17 lina 26
lina 45 farah 95
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022616
qwen/qwen3.7-plus
awkweave-0022617
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
gamma harbor 108 gamma indigo 17 gamma delta 83 delta fable 33 delta cobalt 18 alpha cobalt 46 gamma birch 88 gamma indigo 101 beta delta 104 alpha cobalt 19
4
delta juniper 62 beta harbor 12 alpha grove 99 beta birch 97 delta ember 20 beta indigo 66 alpha delta 98 alpha harbor 44
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022617-p1
Calculate and print only the total number of unique values found in the first column.
{if(!seen[$1]++)n++}END{print n+0}
gamma harbor 108 gamma indigo 17 gamma delta 83 delta fable 33 delta cobalt 18 alpha cobalt 46 gamma birch 88 gamma indigo 101 beta delta 104 alpha cobalt 19
4
delta juniper 62 beta harbor 12 alpha grove 99 beta birch 97 delta ember 20 beta indigo 66 alpha delta 98 alpha harbor 44
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022617
qwen/qwen3.7-plus
awkweave-0022618
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}
bruno 19 0 dina 16 15 hana 18 30 gus 14 3 chen 1 3 bruno 9 12 chen 2 3 chen 30 23
dina 1.07 hana 0.60 gus 4.67 chen 0.33 bruno 0.75 chen 0.67 chen 1.30
ivan 26 0 hana 25 12 kim 13 28 eli 16 25 alice 26 22 alice 26 25 farah 10 13
hana 2.08 kim 0.46 eli 0.64 alice 1.18 alice 1.04 farah 0.77
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022618-p1
For each row where the third column is non-zero, output the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
bruno 19 0 dina 16 15 hana 18 30 gus 14 3 chen 1 3 bruno 9 12 chen 2 3 chen 30 23
dina 1.07 hana 0.60 gus 4.67 chen 0.33 bruno 0.75 chen 0.67 chen 1.30
ivan 26 0 hana 25 12 kim 13 28 eli 16 25 alice 26 22 alice 26 25 farah 10 13
hana 2.08 kim 0.46 eli 0.64 alice 1.18 alice 1.04 farah 0.77
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022618
qwen/qwen3.7-plus
awkweave-0022619
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
ivan juniper 29 hana fable 4 kim fable 12 ivan amber 29 kim cobalt 2 lina fable 7
ivan juniper 29 ivan amber 29 kim fable 12
jules fable 13 dina grove 11 dina fable 3 jules grove 1 farah indigo 19 bruno grove 28
bruno grove 28 farah indigo 19 jules fable 13
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022619-p1
Display 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]}
ivan juniper 29 hana fable 4 kim fable 12 ivan amber 29 kim cobalt 2 lina fable 7
ivan juniper 29 ivan amber 29 kim fable 12
jules fable 13 dina grove 11 dina fable 3 jules grove 1 farah indigo 19 bruno grove 28
bruno grove 28 farah indigo 19 jules fable 13
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022619
qwen/qwen3.7-plus
awkweave-0022620
Print column 5 followed by column 4 for every record.
{print $5, $4}
closed amber dina hana 7 amber paused cobalt farah eli 68 delta closed amber jules farah 31 fable active birch eli chen 109 grove closed ember alice chen 30 amber active birch gus eli 58 amber ready fable bruno jules 6 fable paused indigo chen farah 81 fable
7 hana 68 eli 31 farah 109 chen 30 chen 58 eli 6 jules 81 farah
active indigo jules alice 15 grove failed delta alice kim 105 amber ready indigo kim dina 114 harbor ready amber lina kim 29 indigo paused cobalt hana hana 55 birch paused indigo kim hana 14 delta failed fable farah ivan 71 cobalt active juniper chen kim 85 fable
15 alice 105 kim 114 dina 29 kim 55 hana 14 hana 71 ivan 85 kim
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022620-p1
For every record, output the fifth column followed by the fourth column.
{print $5, $4}
closed amber dina hana 7 amber paused cobalt farah eli 68 delta closed amber jules farah 31 fable active birch eli chen 109 grove closed ember alice chen 30 amber active birch gus eli 58 amber ready fable bruno jules 6 fable paused indigo chen farah 81 fable
7 hana 68 eli 31 farah 109 chen 30 chen 58 eli 6 jules 81 farah
active indigo jules alice 15 grove failed delta alice kim 105 amber ready indigo kim dina 114 harbor ready amber lina kim 29 indigo paused cobalt hana hana 55 birch paused indigo kim hana 14 delta failed fable farah ivan 71 cobalt active juniper chen kim 85 fable
15 alice 105 kim 114 dina 29 kim 55 hana 14 hana 71 ivan 85 kim
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022620
qwen/qwen3.7-plus
awkweave-0022621
Print the last field of every input line.
{print $NF}
paused birch 55 bruno juniper active delta 27 alice birch pending fable 56 chen grove pending juniper 64 kim grove failed indigo 94 kim harbor pending grove 50 chen grove paused ember 34 alice indigo
juniper birch grove grove harbor grove indigo
failed harbor 32 ivan ember paused cobalt 47 alice amber pending fable 34 lina birch pending fable 2 chen juniper ready ember 2 alice ember closed harbor 117 jules fable paused harbor 12 dina birch active juniper 22 eli fable
ember amber birch juniper ember fable birch fable
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022621-p1
Print the final field from each line of input.
{print $NF}
paused birch 55 bruno juniper active delta 27 alice birch pending fable 56 chen grove pending juniper 64 kim grove failed indigo 94 kim harbor pending grove 50 chen grove paused ember 34 alice indigo
juniper birch grove grove harbor grove indigo
failed harbor 32 ivan ember paused cobalt 47 alice amber pending fable 34 lina birch pending fable 2 chen juniper ready ember 2 alice ember closed harbor 117 jules fable paused harbor 12 dina birch active juniper 22 eli fable
ember amber birch juniper ember fable birch fable
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022621
qwen/qwen3.7-plus
awkweave-0022622
Print the complete records where column 2 is less than 67.
$2 < 67
lina 37 hana jules 73 kim kim 21 ivan chen 58 farah jules 49 chen eli 69 eli gus 66 kim
lina 37 hana kim 21 ivan chen 58 farah jules 49 chen gus 66 kim
kim 105 alice kim 82 alice gus 5 ivan dina 114 dina dina 98 jules bruno 97 eli
gus 5 ivan
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022622-p1
Output the full records where the value in the second column is less than 67.
$2 < 67
lina 37 hana jules 73 kim kim 21 ivan chen 58 farah jules 49 chen eli 69 eli gus 66 kim
lina 37 hana kim 21 ivan chen 58 farah jules 49 chen gus 66 kim
kim 105 alice kim 82 alice gus 5 ivan dina 114 dina dina 98 jules bruno 97 eli
gus 5 ivan
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022622
qwen/qwen3.7-plus
awkweave-0022623
Show whole lines whose 2nd field is between 5 and 22, inclusive.
$2 >= 5 && $2 <= 22
delta 16 cobalt ready ember 14 indigo failed juniper 14 delta failed indigo 29 amber closed birch 30 fable active amber 24 fable paused ember 7 birch paused harbor 25 birch pending harbor 1 delta active
delta 16 cobalt ready ember 14 indigo failed juniper 14 delta failed ember 7 birch paused
amber 30 ember paused birch 28 fable failed cobalt 26 ember active indigo 12 grove failed grove 27 ember ready grove 6 juniper closed fable 29 indigo failed ember 23 amber closed
indigo 12 grove failed grove 6 juniper closed
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022623-p1
Display entire lines where the second field falls within the inclusive range of 5 to 22.
$2 >= 5 && $2 <= 22
delta 16 cobalt ready ember 14 indigo failed juniper 14 delta failed indigo 29 amber closed birch 30 fable active amber 24 fable paused ember 7 birch paused harbor 25 birch pending harbor 1 delta active
delta 16 cobalt ready ember 14 indigo failed juniper 14 delta failed ember 7 birch paused
amber 30 ember paused birch 28 fable failed cobalt 26 ember active indigo 12 grove failed grove 27 ember ready grove 6 juniper closed fable 29 indigo failed ember 23 amber closed
indigo 12 grove failed grove 6 juniper closed
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022623
qwen/qwen3.7-plus
awkweave-0022624
Print column 3 only for rows where column 4 is exactly active.
$4 == "active"{print $3}
birch 112 alice active indigo 20 jules paused grove 78 alice paused ember 4 lina pending birch 117 alice ready fable 116 lina active delta 27 hana closed delta 113 chen pending
alice lina
delta 96 bruno active grove 85 ivan closed ember 15 ivan ready harbor 54 chen pending amber 90 gus active fable 95 jules closed
bruno gus
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022624-p1
Display the third column exclusively for rows where the fourth column matches 'active' exactly.
$4 == "active"{print $3}
birch 112 alice active indigo 20 jules paused grove 78 alice paused ember 4 lina pending birch 117 alice ready fable 116 lina active delta 27 hana closed delta 113 chen pending
alice lina
delta 96 bruno active grove 85 ivan closed ember 15 ivan ready harbor 54 chen pending amber 90 gus active fable 95 jules closed
bruno gus
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022624
qwen/qwen3.7-plus
awkweave-0022625
Print all fields from lines where field 1 begins with INFO.
$1 ~ /^INFO/
WARN 106 cobalt INFO 115 cobalt WARN 80 juniper INFO 90 birch DEBUG 11 amber DEBUG 113 cobalt WARN 66 delta ERROR 18 indigo DEBUG 18 delta WARN 3 harbor
INFO 115 cobalt INFO 90 birch
INFO 49 harbor ERROR 14 fable WARN 48 juniper ERROR 82 cobalt ERROR 89 harbor ERROR 52 fable DEBUG 27 fable WARN 8 ember
INFO 49 harbor
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022625-p1
Output every field from lines whose first field starts with the string 'INFO'.
$1 ~ /^INFO/
WARN 106 cobalt INFO 115 cobalt WARN 80 juniper INFO 90 birch DEBUG 11 amber DEBUG 113 cobalt WARN 66 delta ERROR 18 indigo DEBUG 18 delta WARN 3 harbor
INFO 115 cobalt INFO 90 birch
INFO 49 harbor ERROR 14 fable WARN 48 juniper ERROR 82 cobalt ERROR 89 harbor ERROR 52 fable DEBUG 27 fable WARN 8 ember
INFO 49 harbor
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022625
qwen/qwen3.7-plus
awkweave-0022626
Print every line except those containing the exact text birch.
$0 !~ /birch/
ember 98 closed harbor 67 active cobalt 114 paused fable 38 failed ember 22 paused harbor 114 closed birch 999 active
ember 98 closed harbor 67 active cobalt 114 paused fable 38 failed ember 22 paused harbor 114 closed
birch 3 paused ember 71 paused delta 85 pending grove 48 failed juniper 35 active delta 25 failed birch 999 active
ember 71 paused delta 85 pending grove 48 failed juniper 35 active delta 25 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022626-p1
Print all lines that do not contain the exact substring 'birch'.
$0 !~ /birch/
ember 98 closed harbor 67 active cobalt 114 paused fable 38 failed ember 22 paused harbor 114 closed birch 999 active
ember 98 closed harbor 67 active cobalt 114 paused fable 38 failed ember 22 paused harbor 114 closed
birch 3 paused ember 71 paused delta 85 pending grove 48 failed juniper 35 active delta 25 failed birch 999 active
ember 71 paused delta 85 pending grove 48 failed juniper 35 active delta 25 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022626
qwen/qwen3.7-plus
awkweave-0022627
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
eli ember 3 bruno fable 81 jules harbor 43 chen grove 45 kim birch 16 hana harbor 109
chen grove 45 kim birch 16 hana harbor 109
chen ember 66 hana delta 28 alice amber 91 gus birch 74 kim cobalt 5 chen cobalt 28 kim delta 119 kim harbor 18
gus birch 74 kim cobalt 5 chen cobalt 28 kim delta 119
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022627-p1
Output lines 4 to 7, inclusive of both the start and end lines.
NR >= 4 && NR <= 7
eli ember 3 bruno fable 81 jules harbor 43 chen grove 45 kim birch 16 hana harbor 109
chen grove 45 kim birch 16 hana harbor 109
chen ember 66 hana delta 28 alice amber 91 gus birch 74 kim cobalt 5 chen cobalt 28 kim delta 119 kim harbor 18
gus birch 74 kim cobalt 5 chen cobalt 28 kim delta 119
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022627
qwen/qwen3.7-plus
awkweave-0022628
Output only the first 4 records.
NR <= 4
farah 69 ember kim 34 grove hana 50 birch ivan 102 delta lina 36 juniper jules 4 indigo alice 43 indigo
farah 69 ember kim 34 grove hana 50 birch ivan 102 delta
dina 4 amber hana 111 indigo kim 45 fable ivan 63 birch jules 4 delta eli 36 fable lina 41 fable bruno 38 fable farah 50 amber
dina 4 amber hana 111 indigo kim 45 fable ivan 63 birch
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022628-p1
Display only the initial 4 records.
NR <= 4
farah 69 ember kim 34 grove hana 50 birch ivan 102 delta lina 36 juniper jules 4 indigo alice 43 indigo
farah 69 ember kim 34 grove hana 50 birch ivan 102 delta
dina 4 amber hana 111 indigo kim 45 fable ivan 63 birch jules 4 delta eli 36 fable lina 41 fable bruno 38 fable farah 50 amber
dina 4 amber hana 111 indigo kim 45 fable ivan 63 birch
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022628
qwen/qwen3.7-plus
awkweave-0022629
Skip the first line and print every remaining line unchanged.
NR > 1
dina 118 birch farah 53 cobalt chen 51 delta gus 12 fable chen 104 amber kim 104 amber
farah 53 cobalt chen 51 delta gus 12 fable chen 104 amber kim 104 amber
dina 5 juniper ivan 27 harbor hana 105 harbor dina 96 ember bruno 1 birch hana 27 indigo
ivan 27 harbor hana 105 harbor dina 96 ember bruno 1 birch hana 27 indigo
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022629-p1
Omit the first line and output all subsequent lines without modification.
NR > 1
dina 118 birch farah 53 cobalt chen 51 delta gus 12 fable chen 104 amber kim 104 amber
farah 53 cobalt chen 51 delta gus 12 fable chen 104 amber kim 104 amber
dina 5 juniper ivan 27 harbor hana 105 harbor dina 96 ember bruno 1 birch hana 27 indigo
ivan 27 harbor hana 105 harbor dina 96 ember bruno 1 birch hana 27 indigo
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022629
qwen/qwen3.7-plus
awkweave-0022630
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
eli active 107 gus active 18 kim pending 115 farah ready 72 dina failed 61 ivan ready 6 jules pending 101
1
chen ready 75 jules active 2 kim closed 106 farah ready 74 eli ready 112 bruno failed 69 dina pending 80 jules active 43 alice ready 21 hana pending 4
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022630-p1
Count the number of records where column 2 is 'failed', printing 0 if no such records exist.
$2 == "failed"{n++}END{print n+0}
eli active 107 gus active 18 kim pending 115 farah ready 72 dina failed 61 ivan ready 6 jules pending 101
1
chen ready 75 jules active 2 kim closed 106 farah ready 74 eli ready 112 bruno failed 69 dina pending 80 jules active 43 alice ready 21 hana pending 4
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022630
qwen/qwen3.7-plus
awkweave-0022631
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
alice cobalt 4 jules grove 13 chen harbor 12 ivan fable 6 bruno ember 16 hana delta 21 alice cobalt 19 farah juniper 17
108
hana grove 23 lina delta 9 farah juniper 15 jules delta 14 eli amber 29 farah juniper 22
112
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022631-p1
Compute and display the total sum of integer values found in column 3.
{s+=$3}END{print s+0}
alice cobalt 4 jules grove 13 chen harbor 12 ivan fable 6 bruno ember 16 hana delta 21 alice cobalt 19 farah juniper 17
108
hana grove 23 lina delta 9 farah juniper 15 jules delta 14 eli amber 29 farah juniper 22
112
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022631
qwen/qwen3.7-plus
awkweave-0022632
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
chen indigo 23 hana fable 16 kim grove 29 kim juniper 22 ivan grove 15 jules juniper 23 ivan birch 4 chen fable 12 jules grove 29
19.22
kim delta 11 gus harbor 20 gus fable 9 jules indigo 17 ivan amber 11 gus grove 18 bruno cobalt 11 lina indigo 29 dina juniper 5 farah indigo 12
14.30
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022632-p1
Calculate and print the average of column 3, formatted to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
chen indigo 23 hana fable 16 kim grove 29 kim juniper 22 ivan grove 15 jules juniper 23 ivan birch 4 chen fable 12 jules grove 29
19.22
kim delta 11 gus harbor 20 gus fable 9 jules indigo 17 ivan amber 11 gus grove 18 bruno cobalt 11 lina indigo 29 dina juniper 5 farah indigo 12
14.30
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022632
qwen/qwen3.7-plus
awkweave-0022633
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
dina indigo 17 kim delta 25 eli grove 27 chen birch 29 farah cobalt 4 alice cobalt 10 farah delta 17 lina amber 24 gus amber 16 bruno harbor 25
4
farah indigo 19 lina fable 6 kim harbor 19 dina cobalt 11 eli grove 2 farah juniper 11 hana delta 16
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022633-p1
Identify and output the minimum numeric value present in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
dina indigo 17 kim delta 25 eli grove 27 chen birch 29 farah cobalt 4 alice cobalt 10 farah delta 17 lina amber 24 gus amber 16 bruno harbor 25
4
farah indigo 19 lina fable 6 kim harbor 19 dina cobalt 11 eli grove 2 farah juniper 11 hana delta 16
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022633
qwen/qwen3.7-plus
awkweave-0022634
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
1 amber jules 9 birch eli 30 delta eli 27 indigo chen 22 juniper jules 23 delta dina 12 harbor hana 12 fable chen 18 ember kim 12 amber ivan
30
15 harbor hana 13 delta bruno 22 grove hana 19 harbor dina 11 cobalt ivan 5 amber hana 25 delta lina
25
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022634-p1
Identify and output the maximum numeric value present in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
1 amber jules 9 birch eli 30 delta eli 27 indigo chen 22 juniper jules 23 delta dina 12 harbor hana 12 fable chen 18 ember kim 12 amber ivan
30
15 harbor hana 13 delta bruno 22 grove hana 19 harbor dina 11 cobalt ivan 5 amber hana 25 delta lina
25
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022634
qwen/qwen3.7-plus
awkweave-0022635
Count all input records and print the total.
END{print NR}
bruno 27 kim 46 jules 109 gus 27 dina 66 ivan 40 eli 32 hana 14
8
alice 40 alice 114 chen 59 farah 91 jules 19 lina 85 hana 45 ivan 76 dina 84 eli 74
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022635-p1
Count the total number of input records and print the result.
END{print NR}
bruno 27 kim 46 jules 109 gus 27 dina 66 ivan 40 eli 32 hana 14
8
alice 40 alice 114 chen 59 farah 91 jules 19 lina 85 hana 45 ivan 76 dina 84 eli 74
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022635
qwen/qwen3.7-plus
awkweave-0022636
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
gus amber 104 eli juniper 73 jules cobalt 96 gus birch 110 bruno delta 38 farah fable 99 bruno delta 38 ivan indigo 30 alice grove 64
gus amber 104 eli juniper 73 jules cobalt 96 gus birch 110 bruno delta 38 farah fable 99 ivan indigo 30 alice grove 64
chen juniper 1 hana harbor 57 lina indigo 70 alice indigo 44 gus indigo 58 lina delta 111 gus indigo 58 hana ember 12
chen juniper 1 hana harbor 57 lina indigo 70 alice indigo 44 gus indigo 58 lina delta 111 hana ember 12
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022636-p1
Eliminate exact duplicate lines while maintaining the original sequence and keeping only the first instance of each.
!seen[$0]++
gus amber 104 eli juniper 73 jules cobalt 96 gus birch 110 bruno delta 38 farah fable 99 bruno delta 38 ivan indigo 30 alice grove 64
gus amber 104 eli juniper 73 jules cobalt 96 gus birch 110 bruno delta 38 farah fable 99 ivan indigo 30 alice grove 64
chen juniper 1 hana harbor 57 lina indigo 70 alice indigo 44 gus indigo 58 lina delta 111 gus indigo 58 hana ember 12
chen juniper 1 hana harbor 57 lina indigo 70 alice indigo 44 gus indigo 58 lina delta 111 hana ember 12
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022636
qwen/qwen3.7-plus
awkweave-0022637
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
gus cobalt 77 bruno indigo 84 chen indigo 97 jules ember 89 kim delta 68 ivan ember 74
gus cobalt 77 bruno indigo 84 chen indigo 97 jules ember 89 kim delta 68 ivan ember 74
jules cobalt 106 eli harbor 83 dina birch 81 farah amber 62 gus delta 54 kim grove 86 gus ember 5 kim birch 75
jules cobalt 106 eli harbor 83 dina birch 81 farah amber 62 gus delta 54 kim grove 86 gus ember 5 kim birch 75
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022637-p1
Retain only the initial line for every unique value found in the third column, ensuring the input order is preserved.
!seen[$3]++
gus cobalt 77 bruno indigo 84 chen indigo 97 jules ember 89 kim delta 68 ivan ember 74
gus cobalt 77 bruno indigo 84 chen indigo 97 jules ember 89 kim delta 68 ivan ember 74
jules cobalt 106 eli harbor 83 dina birch 81 farah amber 62 gus delta 54 kim grove 86 gus ember 5 kim birch 75
jules cobalt 106 eli harbor 83 dina birch 81 farah amber 62 gus delta 54 kim grove 86 gus ember 5 kim birch 75
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022637
qwen/qwen3.7-plus
awkweave-0022638
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
gus 3 amber jules 27 ember chen 13 ember chen 24 indigo farah 28 indigo farah 2 juniper farah 15 cobalt alice 4 indigo
gus 3 jules 30 chen 43 chen 67 farah 95 farah 97 farah 112 alice 116
ivan 8 delta bruno 27 delta gus 6 delta hana 20 juniper chen 8 delta alice 21 indigo ivan 17 fable jules 26 cobalt
ivan 8 bruno 35 gus 41 hana 61 chen 69 alice 90 ivan 107 jules 133
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022638-p1
Output the first column alongside the cumulative total of the second column for each record, using a space as the delimiter.
{s+=$2;print $1,s}
gus 3 amber jules 27 ember chen 13 ember chen 24 indigo farah 28 indigo farah 2 juniper farah 15 cobalt alice 4 indigo
gus 3 jules 30 chen 43 chen 67 farah 95 farah 97 farah 112 alice 116
ivan 8 delta bruno 27 delta gus 6 delta hana 20 juniper chen 8 delta alice 21 indigo ivan 17 fable jules 26 cobalt
ivan 8 bruno 35 gus 41 hana 61 chen 69 alice 90 ivan 107 jules 133
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022638
qwen/qwen3.7-plus
awkweave-0022639
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
dina 16 29 fable alice 21 15 fable dina 13 24 birch bruno 23 15 amber kim 3 16 delta dina 24 1 juniper jules 2 25 delta
dina 45 alice 36 dina 37 bruno 38 kim 19 dina 25 jules 27
farah 12 8 delta bruno 5 14 amber alice 23 27 juniper chen 8 12 delta chen 30 26 juniper farah 16 27 ember jules 23 21 amber farah 18 12 amber
farah 20 bruno 19 alice 50 chen 20 chen 56 farah 43 jules 44 farah 30
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022639-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
dina 16 29 fable alice 21 15 fable dina 13 24 birch bruno 23 15 amber kim 3 16 delta dina 24 1 juniper jules 2 25 delta
dina 45 alice 36 dina 37 bruno 38 kim 19 dina 25 jules 27
farah 12 8 delta bruno 5 14 amber alice 23 27 juniper chen 8 12 delta chen 30 26 juniper farah 16 27 ember jules 23 21 amber farah 18 12 amber
farah 20 bruno 19 alice 50 chen 20 chen 56 farah 43 jules 44 farah 30
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022639
qwen/qwen3.7-plus
awkweave-0022640
Print column 1 and pass when column 2 is at least 20; otherwise print fail.
{print $1,($2>=20?"pass":"fail")}
alice 19 bruno 2 eli 10 bruno 7 lina 29 gus 6 kim 5
alice fail bruno fail eli fail bruno fail lina pass gus fail kim fail
jules 30 bruno 26 lina 3 bruno 14 dina 11 lina 16 eli 3
jules pass bruno pass lina fail bruno fail dina fail lina fail eli fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022640-p1
Output the value in column 1 along with 'pass' if column 2 is 20 or greater; otherwise, output 'fail'.
{print $1,($2>=20?"pass":"fail")}
alice 19 bruno 2 eli 10 bruno 7 lina 29 gus 6 kim 5
alice fail bruno fail eli fail bruno fail lina pass gus fail kim fail
jules 30 bruno 26 lina 3 bruno 14 dina 11 lina 16 eli 3
jules pass bruno pass lina fail bruno fail dina fail lina fail eli fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022640
qwen/qwen3.7-plus
awkweave-0022641
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
farah juniper 46 eli juniper 46 farah juniper 13 jules cobalt 60 kim juniper 28 kim harbor 33 hana indigo 12
JUNIPER JUNIPER JUNIPER COBALT JUNIPER HARBOR INDIGO
chen indigo 104 kim amber 47 farah harbor 0 gus amber 108 farah grove 68 gus grove 54 farah indigo 51 bruno ember 45
INDIGO AMBER HARBOR AMBER GROVE GROVE INDIGO EMBER
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022641-p1
Transform the content of column 2 to uppercase and output only that modified column.
{print toupper($2)}
farah juniper 46 eli juniper 46 farah juniper 13 jules cobalt 60 kim juniper 28 kim harbor 33 hana indigo 12
JUNIPER JUNIPER JUNIPER COBALT JUNIPER HARBOR INDIGO
chen indigo 104 kim amber 47 farah harbor 0 gus amber 108 farah grove 68 gus grove 54 farah indigo 51 bruno ember 45
INDIGO AMBER HARBOR AMBER GROVE GROVE INDIGO EMBER
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022641
qwen/qwen3.7-plus
awkweave-0022642
From column 1, print 3 characters starting at character 2.
{print substr($1,2,3)}
amber 26 indigo 75 grove 64 delta 78 delta 78 ember 90 juniper 120
mbe ndi rov elt elt mbe uni
birch 98 amber 62 ember 49 cobalt 98 juniper 82 birch 95 ember 76
irc mbe mbe oba uni irc mbe
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022642-p1
Extract and print a substring of length 3 from column 1, beginning at the second character.
{print substr($1,2,3)}
amber 26 indigo 75 grove 64 delta 78 delta 78 ember 90 juniper 120
mbe ndi rov elt elt mbe uni
birch 98 amber 62 ember 49 cobalt 98 juniper 82 birch 95 ember 76
irc mbe mbe oba uni irc mbe
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022642
qwen/qwen3.7-plus
awkweave-0022643
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
cobalt_amber 55 birch_juniper 57 harbor_ember 85 grove_fable 92 grove_indigo 93 ember_cobalt 38 harbor_cobalt 90 ember_ember 11 harbor_birch 30 indigo_birch 18
cobalt amber birch juniper harbor ember grove fable grove indigo ember cobalt harbor cobalt ember ember harbor birch indigo birch
harbor_fable 34 harbor_delta 67 delta_harbor 113 birch_grove 60 ember_birch 75 cobalt_birch 33 ember_delta 99 cobalt_fable 25 harbor_ember 113 birch_birch 112
harbor fable harbor delta delta harbor birch grove ember birch cobalt birch ember delta cobalt fable harbor ember birch birch
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022643-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
cobalt_amber 55 birch_juniper 57 harbor_ember 85 grove_fable 92 grove_indigo 93 ember_cobalt 38 harbor_cobalt 90 ember_ember 11 harbor_birch 30 indigo_birch 18
cobalt amber birch juniper harbor ember grove fable grove indigo ember cobalt harbor cobalt ember ember harbor birch indigo birch
harbor_fable 34 harbor_delta 67 delta_harbor 113 birch_grove 60 ember_birch 75 cobalt_birch 33 ember_delta 99 cobalt_fable 25 harbor_ember 113 birch_birch 112
harbor fable harbor delta delta harbor birch grove ember birch cobalt birch ember delta cobalt fable harbor ember birch birch
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022643
qwen/qwen3.7-plus
awkweave-0022644
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)}
ivan juniper 1 ready farah juniper 88 pending ivan amber 0 paused hana cobalt 115 active kim birch 94 paused bruno delta 10 failed chen harbor 105 closed kim harbor 31 closed kim fable 20 ready jules harbor 62 closed
ready 1 juniper ivan pending 88 juniper farah paused 0 amber ivan active 115 cobalt hana paused 94 birch kim failed 10 delta bruno closed 105 harbor chen closed 31 harbor kim ready 20 fable kim closed 62 harbor jules
alice harbor 108 ready alice fable 97 failed alice birch 42 pending eli delta 10 paused dina ember 49 failed bruno harbor 28 pending bruno ember 80 failed lina cobalt 23 paused
ready 108 harbor alice failed 97 fable alice pending 42 birch alice paused 10 delta eli failed 49 ember dina pending 28 harbor bruno failed 80 ember bruno paused 23 cobalt lina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022644-p1
Reverse the sequence of fields for every line and print all fields in the new order.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
ivan juniper 1 ready farah juniper 88 pending ivan amber 0 paused hana cobalt 115 active kim birch 94 paused bruno delta 10 failed chen harbor 105 closed kim harbor 31 closed kim fable 20 ready jules harbor 62 closed
ready 1 juniper ivan pending 88 juniper farah paused 0 amber ivan active 115 cobalt hana paused 94 birch kim failed 10 delta bruno closed 105 harbor chen closed 31 harbor kim ready 20 fable kim closed 62 harbor jules
alice harbor 108 ready alice fable 97 failed alice birch 42 pending eli delta 10 paused dina ember 49 failed bruno harbor 28 pending bruno ember 80 failed lina cobalt 23 paused
ready 108 harbor alice failed 97 fable alice pending 42 birch alice paused 10 delta eli failed 49 ember dina pending 28 harbor bruno failed 80 ember bruno paused 23 cobalt lina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022644
qwen/qwen3.7-plus
awkweave-0022645
Print the number of whitespace-separated fields on each line.
{print NF}
gus delta 109 active chen ember 34 failed chen birch 102 closed lina fable 38 paused alice indigo 24 closed gus delta 117 closed kim ember 29 failed farah cobalt 68 closed farah grove 76 closed hana indigo 51 pending
4 4 4 4 4 4 4 4 4 4
jules indigo 25 active bruno indigo 12 closed jules indigo 73 closed bruno birch 70 closed hana ember 108 active chen birch 77 failed eli harbor 26 closed
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022645-p1
Output the count of whitespace-delimited fields present on each line.
{print NF}
gus delta 109 active chen ember 34 failed chen birch 102 closed lina fable 38 paused alice indigo 24 closed gus delta 117 closed kim ember 29 failed farah cobalt 68 closed farah grove 76 closed hana indigo 51 pending
4 4 4 4 4 4 4 4 4 4
jules indigo 25 active bruno indigo 12 closed jules indigo 73 closed bruno birch 70 closed hana ember 108 active chen birch 77 failed eli harbor 26 closed
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022645
qwen/qwen3.7-plus
awkweave-0022646
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 48 chen alpha 45 lina delta 19 alice beta 36 dina delta 119 kim beta 31 chen gamma 52 ivan delta 40 kim gamma 36 bruno alpha 94
beta 3 alpha 2 delta 3 gamma 2
gus delta 114 alice alpha 116 chen gamma 16 ivan gamma 36 eli alpha 111 ivan beta 76
delta 1 alpha 2 gamma 2 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022646-p1
Tally the number of records for each distinct value in column 2, printing the value and its count in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
hana beta 48 chen alpha 45 lina delta 19 alice beta 36 dina delta 119 kim beta 31 chen gamma 52 ivan delta 40 kim gamma 36 bruno alpha 94
beta 3 alpha 2 delta 3 gamma 2
gus delta 114 alice alpha 116 chen gamma 16 ivan gamma 36 eli alpha 111 ivan beta 76
delta 1 alpha 2 gamma 2 beta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022646
qwen/qwen3.7-plus
awkweave-0022647
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]]}
lina gamma 16 farah alpha 17 ivan beta 27 ivan delta 26 eli delta 13 jules beta 21
gamma 16 alpha 17 beta 48 delta 39
gus gamma 9 ivan delta 12 hana gamma 11 bruno delta 20 hana beta 6 gus alpha 29 dina delta 8 gus gamma 11 farah gamma 17
gamma 48 delta 40 beta 6 alpha 29
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022647-p1
Calculate the sum of column 3 grouped by the categories in column 2, displaying the results in the order of the category's 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]]}
lina gamma 16 farah alpha 17 ivan beta 27 ivan delta 26 eli delta 13 jules beta 21
gamma 16 alpha 17 beta 48 delta 39
gus gamma 9 ivan delta 12 hana gamma 11 bruno delta 20 hana beta 6 gus alpha 29 dina delta 8 gus gamma 11 farah gamma 17
gamma 48 delta 40 beta 6 alpha 29
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022647
qwen/qwen3.7-plus
awkweave-0022648
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma ember 28 gamma indigo 118 gamma juniper 5 gamma indigo 85 beta harbor 30 beta indigo 33 delta delta 114 delta fable 44 alpha cobalt 61
gamma 4 beta 2 delta 2
delta juniper 59 alpha harbor 16 beta indigo 12 beta delta 110 alpha fable 106 delta amber 78 beta delta 112 beta amber 45 gamma indigo 80
delta 2 alpha 2 beta 4
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022648-p1
List each unique value from the first column along with its frequency, ordered by when it first appears.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma ember 28 gamma indigo 118 gamma juniper 5 gamma indigo 85 beta harbor 30 beta indigo 33 delta delta 114 delta fable 44 alpha cobalt 61
gamma 4 beta 2 delta 2
delta juniper 59 alpha harbor 16 beta indigo 12 beta delta 110 alpha fable 106 delta amber 78 beta delta 112 beta amber 45 gamma indigo 80
delta 2 alpha 2 beta 4
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022648
qwen/qwen3.7-plus
awkweave-0022649
The first row is a header. Print the display_name column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
record_id display_name state note r001 dina 5 failed r002 kim 23 paused r003 lina 17 paused r004 jules 25 failed r005 lina 17 closed r006 gus 21 pending r007 alice 22 paused
dina kim lina jules lina gus alice
record_id display_name state note r001 hana 27 ready r002 jules 19 pending r003 farah 5 failed r004 dina 10 failed r005 dina 11 failed r006 bruno 3 ready r007 dina 30 ready r008 chen 20 closed r009 farah 21 ready
hana jules farah dina dina bruno dina chen farah
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022649-p1
Treating the initial row as a header, output the display_name field for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
record_id display_name state note r001 dina 5 failed r002 kim 23 paused r003 lina 17 paused r004 jules 25 failed r005 lina 17 closed r006 gus 21 pending r007 alice 22 paused
dina kim lina jules lina gus alice
record_id display_name state note r001 hana 27 ready r002 jules 19 pending r003 farah 5 failed r004 dina 10 failed r005 dina 11 failed r006 bruno 3 ready r007 dina 30 ready r008 chen 20 closed r009 farah 21 ready
hana jules farah dina dina bruno dina chen farah
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022649
qwen/qwen3.7-plus
awkweave-0022650
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 lina 21 failed r002 dina 6 ready r003 ivan 16 pending r004 bruno 16 closed r005 jules 27 ready r006 hana 24 pending r007 farah 13 ready
jules hana
record_id display_name score state r001 kim 19 closed r002 hana 29 failed r003 chen 3 active r004 chen 25 failed r005 alice 17 closed r006 lina 28 active r007 lina 11 ready
hana chen lina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022650-p1
With the first line as a header, output the display_name for any data row where the score exceeds 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 lina 21 failed r002 dina 6 ready r003 ivan 16 pending r004 bruno 16 closed r005 jules 27 ready r006 hana 24 pending r007 farah 13 ready
jules hana
record_id display_name score state r001 kim 19 closed r002 hana 29 failed r003 chen 3 active r004 chen 25 failed r005 alice 17 closed r006 lina 28 active r007 lina 11 ready
hana chen lina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022650
qwen/qwen3.7-plus
awkweave-0022651
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
alice 27 closed chen 10 closed ivan 11 pending farah 27 failed eli 2 closed jules 21 failed ivan 3 ready dina 29 active dina 24 paused gus 25 paused
alice chen ivan farah eli jules ivan dina dina gus
farah 5 closed gus 22 failed bruno 8 active bruno 23 failed eli 18 pending farah 5 paused jules 11 ready
farah gus bruno bruno eli farah jules
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022651-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
alice 27 closed chen 10 closed ivan 11 pending farah 27 failed eli 2 closed jules 21 failed ivan 3 ready dina 29 active dina 24 paused gus 25 paused
alice chen ivan farah eli jules ivan dina dina gus
farah 5 closed gus 22 failed bruno 8 active bruno 23 failed eli 18 pending farah 5 paused jules 11 ready
farah gus bruno bruno eli farah jules
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0022651
qwen/qwen3.7-plus
awkweave-0022652
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 15.
BEGIN{FS=OFS=","}$2>15{print $1}
chen,9,failed ivan,18,paused eli,7,ready hana,23,active dina,28,ready hana,21,pending dina,28,failed ivan,18,ready kim,9,active jules,1,ready
ivan hana dina hana dina ivan
farah,13,closed farah,27,paused alice,12,active ivan,12,paused kim,21,active ivan,8,closed
farah kim
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022652-p1
For simple CSV input without quoted commas, print the first column only if the second column is greater than 15.
BEGIN{FS=OFS=","}$2>15{print $1}
chen,9,failed ivan,18,paused eli,7,ready hana,23,active dina,28,ready hana,21,pending dina,28,failed ivan,18,ready kim,9,active jules,1,ready
ivan hana dina hana dina ivan
farah,13,closed farah,27,paused alice,12,active ivan,12,paused kim,21,active ivan,8,closed
farah kim
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022652
qwen/qwen3.7-plus
awkweave-0022653
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina harbor 96 kim indigo 8 hana delta 54 kim delta 62 chen amber 7 gus indigo 86 dina harbor 95
lina harbor 96 kim indigo 8 hana delta 54 kim delta 62 chen amber 7 gus indigo 86 dina harbor 95
chen ember 16 kim indigo 51 hana indigo 75 gus grove 27 gus birch 44 alice ember 48
chen ember 16 kim indigo 51 hana indigo 75 gus grove 27 gus birch 44 alice ember 48
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022653-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
lina harbor 96 kim indigo 8 hana delta 54 kim delta 62 chen amber 7 gus indigo 86 dina harbor 95
lina harbor 96 kim indigo 8 hana delta 54 kim delta 62 chen amber 7 gus indigo 86 dina harbor 95
chen ember 16 kim indigo 51 hana indigo 75 gus grove 27 gus birch 44 alice ember 48
chen ember 16 kim indigo 51 hana indigo 75 gus grove 27 gus birch 44 alice ember 48
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022653
qwen/qwen3.7-plus
awkweave-0022654
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah delta 38 paused hana birch 55 closed gus indigo 79 closed lina fable 84 pending lina grove 78 closed jules delta 66 paused alice delta 63 ready gus juniper 98 ready farah harbor 37 paused
farah harbor 37 paused
ivan birch 95 active gus delta 3 failed lina harbor 90 pending eli ember 40 ready chen harbor 85 ready chen grove 19 ready farah indigo 51 active dina amber 71 closed lina delta 20 pending jules indigo 86 paused
lina harbor 90 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022654-p1
Identify and output the longest line from the input; if multiple lines share the maximum length, select the first one.
{if(length($0)>length(best))best=$0}END{print best}
farah delta 38 paused hana birch 55 closed gus indigo 79 closed lina fable 84 pending lina grove 78 closed jules delta 66 paused alice delta 63 ready gus juniper 98 ready farah harbor 37 paused
farah harbor 37 paused
ivan birch 95 active gus delta 3 failed lina harbor 90 pending eli ember 40 ready chen harbor 85 ready chen grove 19 ready farah indigo 51 active dina amber 71 closed lina delta 20 pending jules indigo 86 paused
lina harbor 90 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022654
qwen/qwen3.7-plus
awkweave-0022655
Print every 3rd line starting at line 1 (then line 4, and so on).
NR%3==1
gus 120 bruno 35 kim 45 lina 77 gus 26 jules 61 kim 107 lina 21 jules 32 kim 6
gus 120 lina 77 kim 107 kim 6
jules 68 gus 100 hana 4 bruno 55 jules 56 chen 118 gus 101 farah 112 kim 38 gus 117
jules 68 bruno 55 gus 101 gus 117
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022655-p1
Output every third line, beginning with line 1 (i.e., lines 1, 4, 7, etc.).
NR%3==1
gus 120 bruno 35 kim 45 lina 77 gus 26 jules 61 kim 107 lina 21 jules 32 kim 6
gus 120 lina 77 kim 107 kim 6
jules 68 gus 100 hana 4 bruno 55 jules 56 chen 118 gus 101 farah 112 kim 38 gus 117
jules 68 bruno 55 gus 101 gus 117
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022655
qwen/qwen3.7-plus
awkweave-0022656
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
alpha birch 15 delta amber 20 gamma indigo 105 delta ember 14 alpha harbor 81 beta ember 2 alpha ember 78 gamma fable 34 gamma birch 41
4
beta harbor 81 beta grove 4 alpha delta 94 alpha harbor 113 alpha fable 14 beta grove 79 delta grove 30 beta grove 69 gamma fable 83 delta delta 49
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022656-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}
alpha birch 15 delta amber 20 gamma indigo 105 delta ember 14 alpha harbor 81 beta ember 2 alpha ember 78 gamma fable 34 gamma birch 41
4
beta harbor 81 beta grove 4 alpha delta 94 alpha harbor 113 alpha fable 14 beta grove 79 delta grove 30 beta grove 69 gamma fable 83 delta delta 49
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022656
qwen/qwen3.7-plus
awkweave-0022657
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 11 0 kim 8 16 alice 26 17 jules 25 16 hana 25 3 dina 16 12 alice 20 15 ivan 30 11
kim 0.50 alice 1.53 jules 1.56 hana 8.33 dina 1.33 alice 1.33 ivan 2.73
farah 20 0 bruno 18 13 dina 9 30 jules 28 13 hana 30 18 bruno 22 3 farah 26 16 gus 26 5 farah 16 5
bruno 1.38 dina 0.30 jules 2.15 hana 1.67 bruno 7.33 farah 1.62 gus 5.20 farah 3.20
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022657-p1
For each row where the third column is not zero, print the first column and the result of dividing the second column by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 11 0 kim 8 16 alice 26 17 jules 25 16 hana 25 3 dina 16 12 alice 20 15 ivan 30 11
kim 0.50 alice 1.53 jules 1.56 hana 8.33 dina 1.33 alice 1.33 ivan 2.73
farah 20 0 bruno 18 13 dina 9 30 jules 28 13 hana 30 18 bruno 22 3 farah 26 16 gus 26 5 farah 16 5
bruno 1.38 dina 0.30 jules 2.15 hana 1.67 bruno 7.33 farah 1.62 gus 5.20 farah 3.20
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022657
qwen/qwen3.7-plus
awkweave-0022658
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 grove 21 dina grove 3 jules cobalt 13 alice delta 1 alice cobalt 19 hana birch 15 bruno grove 10 eli amber 20
bruno grove 21 eli amber 20 alice cobalt 19
chen harbor 16 eli fable 26 dina harbor 28 ivan grove 17 dina cobalt 30 hana indigo 7 bruno delta 9 gus indigo 23 gus amber 12 farah ember 22
dina cobalt 30 dina harbor 28 eli fable 26
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022658-p1
Output the full records corresponding to the top three highest numeric values in column 3, sorted in descending order; maintain 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 grove 21 dina grove 3 jules cobalt 13 alice delta 1 alice cobalt 19 hana birch 15 bruno grove 10 eli amber 20
bruno grove 21 eli amber 20 alice cobalt 19
chen harbor 16 eli fable 26 dina harbor 28 ivan grove 17 dina cobalt 30 hana indigo 7 bruno delta 9 gus indigo 23 gus amber 12 farah ember 22
dina cobalt 30 dina harbor 28 eli fable 26
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022658
qwen/qwen3.7-plus
awkweave-0022659
Select the 6th and 1st fields in that order.
{print $6, $1}
paused 91 active failed 2 26 pending 65 active paused 84 108 pending 27 pending paused 22 41 paused 80 closed active 97 68 active 21 ready failed 11 63 closed 11 ready closed 34 114 closed 68 closed closed 45 58
26 paused 108 pending 41 pending 68 paused 63 active 114 closed 58 closed
paused 55 failed closed 16 55 active 62 ready closed 48 93 failed 95 pending active 6 84 ready 84 failed failed 2 74 pending 95 closed ready 52 84 active 98 pending closed 66 84 ready 107 paused closed 120 107
55 paused 93 active 84 failed 74 ready 84 pending 84 active 107 ready
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022659-p1
Extract and display the 6th field followed by the 1st field.
{print $6, $1}
paused 91 active failed 2 26 pending 65 active paused 84 108 pending 27 pending paused 22 41 paused 80 closed active 97 68 active 21 ready failed 11 63 closed 11 ready closed 34 114 closed 68 closed closed 45 58
26 paused 108 pending 41 pending 68 paused 63 active 114 closed 58 closed
paused 55 failed closed 16 55 active 62 ready closed 48 93 failed 95 pending active 6 84 ready 84 failed failed 2 74 pending 95 closed ready 52 84 active 98 pending closed 66 84 ready 107 paused closed 120 107
55 paused 93 active 84 failed 74 ready 84 pending 84 active 107 ready
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022659
qwen/qwen3.7-plus
awkweave-0022660
Print the last field of every input line.
{print $NF}
alice juniper 13 kim birch 104 alice delta 47 lina amber 97 jules indigo 50 jules harbor 107 eli grove 22
13 104 47 97 50 107 22
lina indigo 67 dina indigo 90 chen cobalt 105 chen harbor 18 alice amber 49 gus cobalt 18
67 90 105 18 49 18
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022660-p1
Output the final field from each input line.
{print $NF}
alice juniper 13 kim birch 104 alice delta 47 lina amber 97 jules indigo 50 jules harbor 107 eli grove 22
13 104 47 97 50 107 22
lina indigo 67 dina indigo 90 chen cobalt 105 chen harbor 18 alice amber 49 gus cobalt 18
67 90 105 18 49 18
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022660
qwen/qwen3.7-plus
awkweave-0022661
Print the complete records where column 1 is at most 74.
$1 <= 74
46 ember kim 5 birch eli 53 harbor bruno 42 fable ivan 98 ember kim 40 harbor lina 0 delta kim
46 ember kim 5 birch eli 53 harbor bruno 42 fable ivan 40 harbor lina 0 delta kim
95 fable lina 13 fable bruno 70 fable alice 117 indigo chen 47 fable lina 89 fable dina 10 delta ivan 56 grove bruno
13 fable bruno 70 fable alice 47 fable lina 10 delta ivan 56 grove bruno
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null