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-0018940-p1
Display the count of whitespace-delimited fields present on each line.
{print NF}
eli cobalt 69 closed ivan fable 79 closed ivan grove 1 pending chen cobalt 55 closed dina fable 100 paused chen cobalt 34 closed eli harbor 58 active kim ember 65 ready farah harbor 50 paused hana grove 31 failed
4 4 4 4 4 4 4 4 4 4
lina harbor 113 paused eli birch 21 paused bruno juniper 13 failed kim ember 19 failed hana birch 3 active hana grove 83 failed hana ember 72 ready
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018940
qwen/qwen3.7-plus
awkweave-0018941
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]]}
farah gamma 46 alice delta 46 lina delta 28 ivan alpha 81 kim alpha 92 dina beta 46 gus gamma 94
gamma 2 delta 2 alpha 2 beta 1
lina gamma 26 eli alpha 78 farah delta 82 lina delta 108 jules alpha 30 jules delta 69 bruno beta 39 alice beta 41 jules alpha 99 gus delta 53
gamma 1 alpha 3 delta 4 beta 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018941-p1
Tally the number of records for each distinct value in column 2, then print each value with its corresponding count in the order they first appeared.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
farah gamma 46 alice delta 46 lina delta 28 ivan alpha 81 kim alpha 92 dina beta 46 gus gamma 94
gamma 2 delta 2 alpha 2 beta 1
lina gamma 26 eli alpha 78 farah delta 82 lina delta 108 jules alpha 30 jules delta 69 bruno beta 39 alice beta 41 jules alpha 99 gus delta 53
gamma 1 alpha 3 delta 4 beta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018941
qwen/qwen3.7-plus
awkweave-0018942
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]]}
jules alpha 25 jules gamma 17 dina alpha 2 gus gamma 17 bruno alpha 2 alice delta 8
alpha 29 gamma 34 delta 8
alice alpha 19 dina beta 15 alice gamma 28 chen gamma 7 chen beta 7 kim delta 14 kim delta 29
alpha 19 beta 22 gamma 35 delta 43
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018942-p1
Aggregate the sum of values in column 3 for each unique category found in column 2, listing the groups in the order they first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
jules alpha 25 jules gamma 17 dina alpha 2 gus gamma 17 bruno alpha 2 alice delta 8
alpha 29 gamma 34 delta 8
alice alpha 19 dina beta 15 alice gamma 28 chen gamma 7 chen beta 7 kim delta 14 kim delta 29
alpha 19 beta 22 gamma 35 delta 43
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018942
qwen/qwen3.7-plus
awkweave-0018943
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 indigo 61 gamma grove 31 beta harbor 35 alpha ember 88 alpha ember 105 gamma birch 56 delta delta 44 gamma indigo 33 gamma amber 97
gamma 5 alpha 2
gamma delta 2 alpha indigo 2 beta ember 16 gamma amber 5 beta indigo 30 delta amber 58 alpha amber 68 alpha grove 31
gamma 2 alpha 3 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018943-p1
List every value from column 1 that appears more than once, along with its occurrence count, sorted by the order of 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 indigo 61 gamma grove 31 beta harbor 35 alpha ember 88 alpha ember 105 gamma birch 56 delta delta 44 gamma indigo 33 gamma amber 97
gamma 5 alpha 2
gamma delta 2 alpha indigo 2 beta ember 16 gamma amber 5 beta indigo 30 delta amber 58 alpha amber 68 alpha grove 31
gamma 2 alpha 3 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018943
qwen/qwen3.7-plus
awkweave-0018944
The first row is a header. Print the record_id column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
score record_id region display_name r001 hana 4 paused r002 eli 29 closed r003 lina 6 failed r004 gus 10 ready r005 farah 18 active r006 chen 20 active r007 chen 19 pending r008 jules 11 active
hana eli lina gus farah chen chen jules
score record_id region display_name r001 dina 2 ready r002 chen 13 active r003 chen 24 failed r004 jules 8 closed r005 bruno 21 ready r006 gus 6 closed
dina chen chen jules bruno gus
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018944-p1
Treating the first row as a header, output the values from the record_id column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
score record_id region display_name r001 hana 4 paused r002 eli 29 closed r003 lina 6 failed r004 gus 10 ready r005 farah 18 active r006 chen 20 active r007 chen 19 pending r008 jules 11 active
hana eli lina gus farah chen chen jules
score record_id region display_name r001 dina 2 ready r002 chen 13 active r003 chen 24 failed r004 jules 8 closed r005 bruno 21 ready r006 gus 6 closed
dina chen chen jules bruno gus
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018944
qwen/qwen3.7-plus
awkweave-0018945
The first row is a header. Print display_name for data rows whose score is greater than 9.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>9{print $h["display_name"]}
record_id display_name score state r001 hana 14 failed r002 dina 1 active r003 eli 23 closed r004 bruno 13 pending r005 bruno 11 ready r006 jules 6 pending r007 bruno 26 failed r008 dina 26 paused r009 lina 1 pending
hana eli bruno bruno bruno dina
record_id display_name score state r001 ivan 7 failed r002 alice 4 failed r003 jules 16 ready r004 lina 16 pending r005 kim 26 paused r006 gus 14 closed r007 hana 19 paused r008 gus 10 failed
jules lina kim gus hana gus
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018945-p1
With the first row as a header, output the display_name field for any data row where the score exceeds 9.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>9{print $h["display_name"]}
record_id display_name score state r001 hana 14 failed r002 dina 1 active r003 eli 23 closed r004 bruno 13 pending r005 bruno 11 ready r006 jules 6 pending r007 bruno 26 failed r008 dina 26 paused r009 lina 1 pending
hana eli bruno bruno bruno dina
record_id display_name score state r001 ivan 7 failed r002 alice 4 failed r003 jules 16 ready r004 lina 16 pending r005 kim 26 paused r006 gus 14 closed r007 hana 19 paused r008 gus 10 failed
jules lina kim gus hana gus
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018945
qwen/qwen3.7-plus
awkweave-0018946
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
alice 3 failed lina 19 paused bruno 29 ready gus 11 failed bruno 30 closed farah 21 closed gus 9 paused dina 28 failed
alice lina bruno gus bruno farah gus dina
lina 20 pending ivan 3 paused eli 1 paused jules 27 closed jules 13 failed kim 13 failed
lina ivan eli jules jules kim
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018946-p1
Given tab-separated input, extract and print the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
alice 3 failed lina 19 paused bruno 29 ready gus 11 failed bruno 30 closed farah 21 closed gus 9 paused dina 28 failed
alice lina bruno gus bruno farah gus dina
lina 20 pending ivan 3 paused eli 1 paused jules 27 closed jules 13 failed kim 13 failed
lina ivan eli jules jules kim
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018946
qwen/qwen3.7-plus
awkweave-0018947
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 18.
BEGIN{FS=OFS=","}$2>18{print $1}
bruno,9,paused chen,19,active hana,23,ready jules,13,paused alice,24,failed gus,13,closed eli,15,ready jules,4,failed
chen hana alice
alice,29,active dina,24,active chen,13,failed gus,11,closed dina,7,failed ivan,8,paused farah,10,paused
alice dina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018947-p1
For simple comma-separated input without quoted commas, print the first column only when the second column is greater than 18.
BEGIN{FS=OFS=","}$2>18{print $1}
bruno,9,paused chen,19,active hana,23,ready jules,13,paused alice,24,failed gus,13,closed eli,15,ready jules,4,failed
chen hana alice
alice,29,active dina,24,active chen,13,failed gus,11,closed dina,7,failed ivan,8,paused farah,10,paused
alice dina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018947
qwen/qwen3.7-plus
awkweave-0018948
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
jules amber 84 ivan juniper 77 jules grove 52 hana ember 99 dina fable 0 bruno amber 120 lina ember 83
jules amber 84 ivan juniper 77 jules grove 52 hana ember 99 dina fable 0 bruno amber 120 lina ember 83
dina harbor 52 bruno juniper 73 lina harbor 4 chen indigo 45 gus juniper 114 hana delta 50 eli grove 100
dina harbor 52 bruno juniper 73 lina harbor 4 chen indigo 45 gus juniper 114 hana delta 50 eli grove 100
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018948-p1
Remove leading and trailing whitespace from the text, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
jules amber 84 ivan juniper 77 jules grove 52 hana ember 99 dina fable 0 bruno amber 120 lina ember 83
jules amber 84 ivan juniper 77 jules grove 52 hana ember 99 dina fable 0 bruno amber 120 lina ember 83
dina harbor 52 bruno juniper 73 lina harbor 4 chen indigo 45 gus juniper 114 hana delta 50 eli grove 100
dina harbor 52 bruno juniper 73 lina harbor 4 chen indigo 45 gus juniper 114 hana delta 50 eli grove 100
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018948
qwen/qwen3.7-plus
awkweave-0018949
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
hana delta 28 pending jules birch 96 ready alice ember 105 closed farah juniper 39 pending gus harbor 102 paused lina ember 4 active farah birch 83 closed hana harbor 86 pending
farah juniper 39 pending
jules grove 93 ready lina harbor 0 ready hana ember 15 ready chen birch 47 paused kim grove 4 failed bruno harbor 14 closed
bruno harbor 14 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018949-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}
hana delta 28 pending jules birch 96 ready alice ember 105 closed farah juniper 39 pending gus harbor 102 paused lina ember 4 active farah birch 83 closed hana harbor 86 pending
farah juniper 39 pending
jules grove 93 ready lina harbor 0 ready hana ember 15 ready chen birch 47 paused kim grove 4 failed bruno harbor 14 closed
bruno harbor 14 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018949
qwen/qwen3.7-plus
awkweave-0018950
Print every 3rd line starting at line 1 (then line 4, and so on).
NR%3==1
gus 90 eli 78 bruno 110 dina 40 hana 75 lina 0 alice 6 eli 35 hana 64
gus 90 dina 40 alice 6
kim 1 jules 112 eli 113 farah 73 hana 95 dina 51 lina 81 ivan 82 bruno 91
kim 1 farah 73 lina 81
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018950-p1
Output every third line of the input, beginning with line 1 (i.e., lines 1, 4, 7, etc.).
NR%3==1
gus 90 eli 78 bruno 110 dina 40 hana 75 lina 0 alice 6 eli 35 hana 64
gus 90 dina 40 alice 6
kim 1 jules 112 eli 113 farah 73 hana 95 dina 51 lina 81 ivan 82 bruno 91
kim 1 farah 73 lina 81
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018950
qwen/qwen3.7-plus
awkweave-0018951
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
delta harbor 7 alpha amber 10 gamma fable 11 beta delta 13 alpha delta 5 alpha juniper 29 beta delta 84 beta fable 54 delta amber 42
4
gamma cobalt 88 delta indigo 101 gamma amber 86 beta juniper 104 beta grove 56 beta birch 110
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018951-p1
Calculate the number of unique values in column 1 and print only this total count.
{if(!seen[$1]++)n++}END{print n+0}
delta harbor 7 alpha amber 10 gamma fable 11 beta delta 13 alpha delta 5 alpha juniper 29 beta delta 84 beta fable 54 delta amber 42
4
gamma cobalt 88 delta indigo 101 gamma amber 86 beta juniper 104 beta grove 56 beta birch 110
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018951
qwen/qwen3.7-plus
awkweave-0018952
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 12 0 eli 16 10 bruno 14 13 eli 28 17 eli 12 24 bruno 6 9 jules 26 4 gus 7 10
eli 1.60 bruno 1.08 eli 1.65 eli 0.50 bruno 0.67 jules 6.50 gus 0.70
farah 19 0 hana 28 1 hana 6 22 jules 12 24 jules 3 15 hana 10 17 gus 23 27
hana 28.00 hana 0.27 jules 0.50 jules 0.20 hana 0.59 gus 0.85
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018952-p1
For each row, output column 1 and the result of dividing column 2 by column 3 formatted to two decimal places, excluding any rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
jules 12 0 eli 16 10 bruno 14 13 eli 28 17 eli 12 24 bruno 6 9 jules 26 4 gus 7 10
eli 1.60 bruno 1.08 eli 1.65 eli 0.50 bruno 0.67 jules 6.50 gus 0.70
farah 19 0 hana 28 1 hana 6 22 jules 12 24 jules 3 15 hana 10 17 gus 23 27
hana 28.00 hana 0.27 jules 0.50 jules 0.20 hana 0.59 gus 0.85
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018952
qwen/qwen3.7-plus
awkweave-0018953
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
gus delta 13 alice birch 14 bruno delta 29 jules ember 4 dina delta 18 eli amber 25
bruno delta 29 eli amber 25 dina delta 18
farah delta 25 ivan grove 8 bruno ember 19 chen delta 13 chen juniper 20 bruno ember 20 hana delta 1
farah delta 25 chen juniper 20 bruno ember 20
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018953-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]}
gus delta 13 alice birch 14 bruno delta 29 jules ember 4 dina delta 18 eli amber 25
bruno delta 29 eli amber 25 dina delta 18
farah delta 25 ivan grove 8 bruno ember 19 chen delta 13 chen juniper 20 bruno ember 20 hana delta 1
farah delta 25 chen juniper 20 bruno ember 20
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018953
qwen/qwen3.7-plus
awkweave-0018954
For each line, output fields 5 and 3, in that order.
{print $5, $3}
active 6 indigo active active paused 102 fable ready closed paused 35 ember failed closed paused 12 delta ready paused failed 113 grove pending paused closed 79 birch closed failed closed 106 harbor pending ready closed 34 delta pending failed pending 20 cobalt failed paused paused 37 harbor closed failed
active indigo closed fable closed ember paused delta paused grove failed birch ready harbor failed delta paused cobalt failed harbor
active 48 amber active active ready 6 birch ready ready closed 53 harbor paused paused active 60 cobalt closed closed failed 8 cobalt active closed ready 29 fable closed failed ready 49 juniper closed paused pending 108 harbor failed paused pending 95 juniper active ready failed 110 birch active ready
active amber ready birch paused harbor closed cobalt closed cobalt failed fable paused juniper paused harbor ready juniper ready birch
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018954-p1
Extract the fifth and third fields from each line, maintaining that specific order.
{print $5, $3}
active 6 indigo active active paused 102 fable ready closed paused 35 ember failed closed paused 12 delta ready paused failed 113 grove pending paused closed 79 birch closed failed closed 106 harbor pending ready closed 34 delta pending failed pending 20 cobalt failed paused paused 37 harbor closed failed
active indigo closed fable closed ember paused delta paused grove failed birch ready harbor failed delta paused cobalt failed harbor
active 48 amber active active ready 6 birch ready ready closed 53 harbor paused paused active 60 cobalt closed closed failed 8 cobalt active closed ready 29 fable closed failed ready 49 juniper closed paused pending 108 harbor failed paused pending 95 juniper active ready failed 110 birch active ready
active amber ready birch paused harbor closed cobalt closed cobalt failed fable paused juniper paused harbor ready juniper ready birch
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018954
qwen/qwen3.7-plus
awkweave-0018955
Print the last field of every input line.
{print $NF}
amber eli kim 85 birch farah lina 109 indigo lina lina 17 ember alice alice 19 cobalt bruno dina 25 cobalt hana kim 95 ember jules bruno 100 fable alice gus 4
85 109 17 19 25 95 100 4
delta kim gus 82 harbor lina dina 1 indigo jules ivan 77 birch gus chen 3 birch hana bruno 57 cobalt eli lina 0 grove gus jules 53 harbor hana lina 25 indigo kim chen 109
82 1 77 3 57 0 53 25 109
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018955-p1
Display the final field found on every input line.
{print $NF}
amber eli kim 85 birch farah lina 109 indigo lina lina 17 ember alice alice 19 cobalt bruno dina 25 cobalt hana kim 95 ember jules bruno 100 fable alice gus 4
85 109 17 19 25 95 100 4
delta kim gus 82 harbor lina dina 1 indigo jules ivan 77 birch gus chen 3 birch hana bruno 57 cobalt eli lina 0 grove gus jules 53 harbor hana lina 25 indigo kim chen 109
82 1 77 3 57 0 53 25 109
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018955
qwen/qwen3.7-plus
awkweave-0018956
Print the complete records where column 1 is at least 29.
$1 >= 29
4 active pending failed ready 86 paused closed ready active 35 paused failed pending failed 5 pending ready pending closed 0 pending closed active closed 14 failed ready failed closed 42 ready active ready failed 64 active active pending pending 16 closed failed pending active 78 active failed ready failed
86 paused closed ready active 35 paused failed pending failed 42 ready active ready failed 64 active active pending pending 78 active failed ready failed
64 paused closed active pending 103 ready active ready paused 118 active active failed closed 105 paused pending paused closed 56 pending paused active closed 21 paused failed failed active
64 paused closed active pending 103 ready active ready paused 118 active active failed closed 105 paused pending paused closed 56 pending paused active closed
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018956-p1
Output full records where the value in the first column is greater than or equal to 29.
$1 >= 29
4 active pending failed ready 86 paused closed ready active 35 paused failed pending failed 5 pending ready pending closed 0 pending closed active closed 14 failed ready failed closed 42 ready active ready failed 64 active active pending pending 16 closed failed pending active 78 active failed ready failed
86 paused closed ready active 35 paused failed pending failed 42 ready active ready failed 64 active active pending pending 78 active failed ready failed
64 paused closed active pending 103 ready active ready paused 118 active active failed closed 105 paused pending paused closed 56 pending paused active closed 21 paused failed failed active
64 paused closed active pending 103 ready active ready paused 118 active active failed closed 105 paused pending paused closed 56 pending paused active closed
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018956
qwen/qwen3.7-plus
awkweave-0018957
Show whole lines whose 2nd field is between 10 and 25, inclusive.
$2 >= 10 && $2 <= 25
ember 23 gus dina fable 12 dina farah juniper 19 dina dina fable 7 chen bruno delta 8 farah jules cobalt 2 gus eli harbor 24 hana lina indigo 15 jules bruno amber 6 gus bruno cobalt 20 jules kim
ember 23 gus dina fable 12 dina farah juniper 19 dina dina harbor 24 hana lina indigo 15 jules bruno cobalt 20 jules kim
birch 24 farah alice indigo 15 hana gus grove 20 chen farah delta 27 alice farah cobalt 20 farah dina indigo 18 alice jules ember 18 farah kim ember 27 bruno alice cobalt 24 bruno hana indigo 21 kim bruno
birch 24 farah alice indigo 15 hana gus grove 20 chen farah cobalt 20 farah dina indigo 18 alice jules ember 18 farah kim cobalt 24 bruno hana indigo 21 kim bruno
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018957-p1
Show entire lines where the second field falls within the inclusive range of 10 to 25.
$2 >= 10 && $2 <= 25
ember 23 gus dina fable 12 dina farah juniper 19 dina dina fable 7 chen bruno delta 8 farah jules cobalt 2 gus eli harbor 24 hana lina indigo 15 jules bruno amber 6 gus bruno cobalt 20 jules kim
ember 23 gus dina fable 12 dina farah juniper 19 dina dina harbor 24 hana lina indigo 15 jules bruno cobalt 20 jules kim
birch 24 farah alice indigo 15 hana gus grove 20 chen farah delta 27 alice farah cobalt 20 farah dina indigo 18 alice jules ember 18 farah kim ember 27 bruno alice cobalt 24 bruno hana indigo 21 kim bruno
birch 24 farah alice indigo 15 hana gus grove 20 chen farah cobalt 20 farah dina indigo 18 alice jules ember 18 farah kim cobalt 24 bruno hana indigo 21 kim bruno
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018957
qwen/qwen3.7-plus
awkweave-0018958
Print column 3 only for rows where column 1 is exactly active.
$1 == "active"{print $3}
ready 29 gus indigo pending 87 chen indigo active 88 hana amber active 114 jules harbor closed 107 hana indigo active 102 eli indigo
hana jules eli
pending 110 kim indigo closed 41 jules birch active 100 jules birch closed 20 farah juniper pending 98 bruno grove failed 67 ivan birch failed 7 lina grove
jules
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018958-p1
Output only the third column for rows where the first column matches the string active exactly.
$1 == "active"{print $3}
ready 29 gus indigo pending 87 chen indigo active 88 hana amber active 114 jules harbor closed 107 hana indigo active 102 eli indigo
hana jules eli
pending 110 kim indigo closed 41 jules birch active 100 jules birch closed 20 farah juniper pending 98 bruno grove failed 67 ivan birch failed 7 lina grove
jules
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018958
qwen/qwen3.7-plus
awkweave-0018959
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
cobalt ERROR 78 grove DEBUG 20 juniper INFO 116 amber WARN 83 juniper INFO 100 cobalt DEBUG 36 delta WARN 119 grove DEBUG 111
cobalt ERROR 78
grove ERROR 106 cobalt DEBUG 105 amber DEBUG 61 juniper INFO 51 harbor DEBUG 112 juniper WARN 19
grove ERROR 106
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018959-p1
Print all fields from any line where the second field starts with the prefix ERROR.
$2 ~ /^ERROR/
cobalt ERROR 78 grove DEBUG 20 juniper INFO 116 amber WARN 83 juniper INFO 100 cobalt DEBUG 36 delta WARN 119 grove DEBUG 111
cobalt ERROR 78
grove ERROR 106 cobalt DEBUG 105 amber DEBUG 61 juniper INFO 51 harbor DEBUG 112 juniper WARN 19
grove ERROR 106
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018959
qwen/qwen3.7-plus
awkweave-0018960
Print every line except those containing the exact text ember.
$0 !~ /ember/
ember 78 closed birch 29 failed cobalt 18 ready delta 1 closed amber 118 failed ember 77 paused amber 98 closed birch 11 ready ember 999 active
birch 29 failed cobalt 18 ready delta 1 closed amber 118 failed amber 98 closed birch 11 ready
fable 118 paused indigo 32 paused indigo 19 ready fable 79 active grove 94 pending birch 45 ready cobalt 116 active birch 0 pending ember 999 active
fable 118 paused indigo 32 paused indigo 19 ready fable 79 active grove 94 pending birch 45 ready cobalt 116 active birch 0 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018960-p1
Output every line except those that contain the exact substring ember.
$0 !~ /ember/
ember 78 closed birch 29 failed cobalt 18 ready delta 1 closed amber 118 failed ember 77 paused amber 98 closed birch 11 ready ember 999 active
birch 29 failed cobalt 18 ready delta 1 closed amber 118 failed amber 98 closed birch 11 ready
fable 118 paused indigo 32 paused indigo 19 ready fable 79 active grove 94 pending birch 45 ready cobalt 116 active birch 0 pending ember 999 active
fable 118 paused indigo 32 paused indigo 19 ready fable 79 active grove 94 pending birch 45 ready cobalt 116 active birch 0 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018960
qwen/qwen3.7-plus
awkweave-0018961
Print lines 2 through 4, including both endpoints.
NR >= 2 && NR <= 4
jules amber 6 jules fable 111 lina cobalt 66 bruno harbor 62 kim cobalt 41 bruno delta 68 gus ember 18 farah grove 41 gus ember 28 alice ember 94
jules fable 111 lina cobalt 66 bruno harbor 62
dina delta 62 gus delta 22 farah juniper 4 farah fable 116 gus grove 52 hana birch 27
gus delta 22 farah juniper 4 farah fable 116
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018961-p1
Print lines 2 through 4, ensuring both the start and end lines are included.
NR >= 2 && NR <= 4
jules amber 6 jules fable 111 lina cobalt 66 bruno harbor 62 kim cobalt 41 bruno delta 68 gus ember 18 farah grove 41 gus ember 28 alice ember 94
jules fable 111 lina cobalt 66 bruno harbor 62
dina delta 62 gus delta 22 farah juniper 4 farah fable 116 gus grove 52 hana birch 27
gus delta 22 farah juniper 4 farah fable 116
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018961
qwen/qwen3.7-plus
awkweave-0018962
Output only the first 4 records.
NR <= 4
eli 83 harbor alice 79 birch alice 27 ember ivan 1 ember gus 114 amber gus 76 grove farah 111 cobalt
eli 83 harbor alice 79 birch alice 27 ember ivan 1 ember
farah 24 fable chen 103 grove alice 67 fable dina 46 amber gus 5 ember eli 101 amber farah 98 grove gus 15 indigo kim 59 fable eli 103 harbor
farah 24 fable chen 103 grove alice 67 fable dina 46 amber
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018962-p1
Output strictly the first 4 records.
NR <= 4
eli 83 harbor alice 79 birch alice 27 ember ivan 1 ember gus 114 amber gus 76 grove farah 111 cobalt
eli 83 harbor alice 79 birch alice 27 ember ivan 1 ember
farah 24 fable chen 103 grove alice 67 fable dina 46 amber gus 5 ember eli 101 amber farah 98 grove gus 15 indigo kim 59 fable eli 103 harbor
farah 24 fable chen 103 grove alice 67 fable dina 46 amber
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018962
qwen/qwen3.7-plus
awkweave-0018963
Skip the first line and print every remaining line unchanged.
NR > 1
jules 38 grove lina 84 amber dina 63 harbor lina 116 ember lina 95 amber ivan 61 grove
lina 84 amber dina 63 harbor lina 116 ember lina 95 amber ivan 61 grove
farah 73 harbor jules 62 ember lina 35 fable farah 39 juniper alice 115 fable gus 1 harbor lina 118 fable alice 17 indigo
jules 62 ember lina 35 fable farah 39 juniper alice 115 fable gus 1 harbor lina 118 fable alice 17 indigo
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018963-p1
Ignore the first line and print all subsequent lines without modification.
NR > 1
jules 38 grove lina 84 amber dina 63 harbor lina 116 ember lina 95 amber ivan 61 grove
lina 84 amber dina 63 harbor lina 116 ember lina 95 amber ivan 61 grove
farah 73 harbor jules 62 ember lina 35 fable farah 39 juniper alice 115 fable gus 1 harbor lina 118 fable alice 17 indigo
jules 62 ember lina 35 fable farah 39 juniper alice 115 fable gus 1 harbor lina 118 fable alice 17 indigo
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018963
qwen/qwen3.7-plus
awkweave-0018964
Count how many records have paused in column 2. Print 0 if there are none.
$2 == "paused"{n++}END{print n+0}
chen ready 2 farah pending 52 lina pending 58 farah ready 79 lina active 11 hana ready 62 chen paused 110 chen active 94
1
eli active 110 hana pending 14 lina failed 3 chen ready 10 chen ready 94 alice failed 55
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018964-p1
Count the number of records containing paused in the second column, outputting 0 if the count is zero.
$2 == "paused"{n++}END{print n+0}
chen ready 2 farah pending 52 lina pending 58 farah ready 79 lina active 11 hana ready 62 chen paused 110 chen active 94
1
eli active 110 hana pending 14 lina failed 3 chen ready 10 chen ready 94 alice failed 55
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018964
qwen/qwen3.7-plus
awkweave-0018965
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
amber kim 24 cobalt eli 12 birch lina 23 harbor bruno 3 birch hana 23 harbor bruno 29 juniper kim 16 amber farah 7 harbor hana 1 birch dina 29
167
birch hana 20 juniper hana 26 grove chen 4 grove lina 1 grove ivan 9 fable kim 26
86
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018965-p1
Compute and display the total sum of integer values located in the third column.
{s+=$3}END{print s+0}
amber kim 24 cobalt eli 12 birch lina 23 harbor bruno 3 birch hana 23 harbor bruno 29 juniper kim 16 amber farah 7 harbor hana 1 birch dina 29
167
birch hana 20 juniper hana 26 grove chen 4 grove lina 1 grove ivan 9 fable kim 26
86
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018965
qwen/qwen3.7-plus
awkweave-0018966
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
15 indigo ivan 11 delta dina 4 delta kim 26 cobalt jules 10 delta kim 23 cobalt gus 23 fable ivan
16.00
24 juniper alice 24 fable ivan 12 juniper ivan 18 juniper hana 4 fable bruno 22 indigo hana 15 indigo ivan 26 harbor dina 7 delta farah
16.89
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018966-p1
Output the average of the values in column 1, formatted to two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
15 indigo ivan 11 delta dina 4 delta kim 26 cobalt jules 10 delta kim 23 cobalt gus 23 fable ivan
16.00
24 juniper alice 24 fable ivan 12 juniper ivan 18 juniper hana 4 fable bruno 22 indigo hana 15 indigo ivan 26 harbor dina 7 delta farah
16.89
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018966
qwen/qwen3.7-plus
awkweave-0018967
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
eli birch 1 kim harbor 16 eli birch 24 dina grove 25 bruno cobalt 12 dina ember 18
1
gus birch 15 hana grove 11 jules cobalt 1 ivan harbor 26 lina harbor 8 eli grove 5 jules harbor 14
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018967-p1
Identify and display the minimum number found in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
eli birch 1 kim harbor 16 eli birch 24 dina grove 25 bruno cobalt 12 dina ember 18
1
gus birch 15 hana grove 11 jules cobalt 1 ivan harbor 26 lina harbor 8 eli grove 5 jules harbor 14
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018967
qwen/qwen3.7-plus
awkweave-0018968
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
28 jules birch 26 farah indigo 25 chen cobalt 10 chen ember 25 farah cobalt 29 jules birch 7 dina grove 7 bruno amber 1 chen birch 17 dina amber
29
5 eli indigo 16 alice cobalt 15 chen birch 26 lina grove 13 alice ember 29 gus amber
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018968-p1
Determine and output the maximum numeric value present in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
28 jules birch 26 farah indigo 25 chen cobalt 10 chen ember 25 farah cobalt 29 jules birch 7 dina grove 7 bruno amber 1 chen birch 17 dina amber
29
5 eli indigo 16 alice cobalt 15 chen birch 26 lina grove 13 alice ember 29 gus amber
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018968
qwen/qwen3.7-plus
awkweave-0018969
Count all input records and print the total.
END{print NR}
ivan 34 ivan 31 hana 68 gus 113 hana 84 kim 82 chen 10 alice 13 hana 62 dina 25
10
alice 66 jules 115 dina 93 farah 96 lina 82 farah 14
6
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018969-p1
Calculate the total number of input records and print the count.
END{print NR}
ivan 34 ivan 31 hana 68 gus 113 hana 84 kim 82 chen 10 alice 13 hana 62 dina 25
10
alice 66 jules 115 dina 93 farah 96 lina 82 farah 14
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018969
qwen/qwen3.7-plus
awkweave-0018970
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
kim harbor 83 hana indigo 105 jules juniper 24 farah grove 70 ivan fable 39 kim harbor 83 hana juniper 80 eli birch 70 alice grove 86 dina delta 64
kim harbor 83 hana indigo 105 jules juniper 24 farah grove 70 ivan fable 39 hana juniper 80 eli birch 70 alice grove 86 dina delta 64
dina ember 117 gus grove 75 bruno ember 50 chen grove 120 chen indigo 14 chen fable 15 chen fable 59 chen indigo 14 eli juniper 48 ivan amber 10
dina ember 117 gus grove 75 bruno ember 50 chen grove 120 chen indigo 14 chen fable 15 chen fable 59 eli juniper 48 ivan amber 10
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018970-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
kim harbor 83 hana indigo 105 jules juniper 24 farah grove 70 ivan fable 39 kim harbor 83 hana juniper 80 eli birch 70 alice grove 86 dina delta 64
kim harbor 83 hana indigo 105 jules juniper 24 farah grove 70 ivan fable 39 hana juniper 80 eli birch 70 alice grove 86 dina delta 64
dina ember 117 gus grove 75 bruno ember 50 chen grove 120 chen indigo 14 chen fable 15 chen fable 59 chen indigo 14 eli juniper 48 ivan amber 10
dina ember 117 gus grove 75 bruno ember 50 chen grove 120 chen indigo 14 chen fable 15 chen fable 59 eli juniper 48 ivan amber 10
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018970
qwen/qwen3.7-plus
awkweave-0018971
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
chen harbor 38 gus ember 89 kim cobalt 41 farah ember 6 alice harbor 32 dina ember 41 farah harbor 0 ivan ember 18 jules delta 74
chen harbor 38 gus ember 89 kim cobalt 41 farah ember 6 alice harbor 32 dina ember 41 ivan ember 18 jules delta 74
lina indigo 39 lina harbor 77 lina fable 1 ivan fable 66 dina fable 26 ivan birch 113 chen harbor 69
lina indigo 39 ivan fable 66 dina fable 26 chen harbor 69
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018971-p1
Retain only the initial line for every unique value in column 1, keeping the original order.
!seen[$1]++
chen harbor 38 gus ember 89 kim cobalt 41 farah ember 6 alice harbor 32 dina ember 41 farah harbor 0 ivan ember 18 jules delta 74
chen harbor 38 gus ember 89 kim cobalt 41 farah ember 6 alice harbor 32 dina ember 41 ivan ember 18 jules delta 74
lina indigo 39 lina harbor 77 lina fable 1 ivan fable 66 dina fable 26 ivan birch 113 chen harbor 69
lina indigo 39 ivan fable 66 dina fable 26 chen harbor 69
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018971
qwen/qwen3.7-plus
awkweave-0018972
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 7 ember bruno 1 birch jules 7 birch ivan 14 fable alice 23 grove lina 27 fable lina 6 amber bruno 29 ember hana 11 juniper
ivan 7 bruno 8 jules 15 ivan 29 alice 52 lina 79 lina 85 bruno 114 hana 125
hana 17 harbor kim 11 ember ivan 25 delta chen 11 fable hana 8 grove ivan 26 grove hana 9 grove lina 13 delta chen 24 harbor
hana 17 kim 28 ivan 53 chen 64 hana 72 ivan 98 hana 107 lina 120 chen 144
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018972-p1
For each entry, output column 1 alongside the cumulative total of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 7 ember bruno 1 birch jules 7 birch ivan 14 fable alice 23 grove lina 27 fable lina 6 amber bruno 29 ember hana 11 juniper
ivan 7 bruno 8 jules 15 ivan 29 alice 52 lina 79 lina 85 bruno 114 hana 125
hana 17 harbor kim 11 ember ivan 25 delta chen 11 fable hana 8 grove ivan 26 grove hana 9 grove lina 13 delta chen 24 harbor
hana 17 kim 28 ivan 53 chen 64 hana 72 ivan 98 hana 107 lina 120 chen 144
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018972
qwen/qwen3.7-plus
awkweave-0018973
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 20 8 ember lina 15 14 birch jules 29 5 juniper lina 20 11 birch dina 28 26 cobalt bruno 6 16 delta
bruno 28 lina 29 jules 34 lina 31 dina 54 bruno 22
dina 2 20 birch eli 29 22 harbor gus 30 13 juniper ivan 24 6 ember chen 12 26 grove ivan 10 15 ember
dina 22 eli 51 gus 43 ivan 30 chen 38 ivan 25
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018973-p1
Display field 1 followed by the sum of fields 2 and 3 for each row.
{print $1,$2+$3}
bruno 20 8 ember lina 15 14 birch jules 29 5 juniper lina 20 11 birch dina 28 26 cobalt bruno 6 16 delta
bruno 28 lina 29 jules 34 lina 31 dina 54 bruno 22
dina 2 20 birch eli 29 22 harbor gus 30 13 juniper ivan 24 6 ember chen 12 26 grove ivan 10 15 ember
dina 22 eli 51 gus 43 ivan 30 chen 38 ivan 25
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018973
qwen/qwen3.7-plus
awkweave-0018974
Print column 1 and pass when column 2 is at least 20; otherwise print fail.
{print $1,($2>=20?"pass":"fail")}
dina 29 jules 10 alice 18 hana 4 farah 13 jules 19 ivan 28
dina pass jules fail alice fail hana fail farah fail jules fail ivan pass
ivan 1 hana 28 bruno 14 chen 8 alice 6 eli 28 dina 5
ivan fail hana pass bruno fail chen fail alice fail eli pass dina fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018974-p1
Print column 1 with 'pass' if column 2 is 20 or greater, otherwise print 'fail'.
{print $1,($2>=20?"pass":"fail")}
dina 29 jules 10 alice 18 hana 4 farah 13 jules 19 ivan 28
dina pass jules fail alice fail hana fail farah fail jules fail ivan pass
ivan 1 hana 28 bruno 14 chen 8 alice 6 eli 28 dina 5
ivan fail hana pass bruno fail chen fail alice fail eli pass dina fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018974
qwen/qwen3.7-plus
awkweave-0018975
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
jules birch 27 ivan cobalt 7 hana grove 65 farah grove 115 gus birch 20 dina cobalt 68 chen ember 73
BIRCH COBALT GROVE GROVE BIRCH COBALT EMBER
chen harbor 67 bruno delta 31 gus juniper 89 farah delta 3 farah juniper 37 bruno harbor 72
HARBOR DELTA JUNIPER DELTA JUNIPER HARBOR
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018975-p1
Transform column 2 to uppercase and output only that column.
{print toupper($2)}
jules birch 27 ivan cobalt 7 hana grove 65 farah grove 115 gus birch 20 dina cobalt 68 chen ember 73
BIRCH COBALT GROVE GROVE BIRCH COBALT EMBER
chen harbor 67 bruno delta 31 gus juniper 89 farah delta 3 farah juniper 37 bruno harbor 72
HARBOR DELTA JUNIPER DELTA JUNIPER HARBOR
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018975
qwen/qwen3.7-plus
awkweave-0018976
From column 1, print 4 characters starting at character 2.
{print substr($1,2,4)}
grove 108 grove 110 fable 73 harbor 50 juniper 27 grove 43 harbor 8
rove rove able arbo unip rove arbo
juniper 38 grove 76 cobalt 97 birch 18 juniper 30 indigo 39 amber 43 indigo 27 juniper 28
unip rove obal irch unip ndig mber ndig unip
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018976-p1
Extract and print a 4-character substring from column 1, beginning at the second character.
{print substr($1,2,4)}
grove 108 grove 110 fable 73 harbor 50 juniper 27 grove 43 harbor 8
rove rove able arbo unip rove arbo
juniper 38 grove 76 cobalt 97 birch 18 juniper 30 indigo 39 amber 43 indigo 27 juniper 28
unip rove obal irch unip ndig mber ndig unip
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018976
qwen/qwen3.7-plus
awkweave-0018977
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
cobalt_juniper 6 amber_grove 69 fable_delta 15 amber_cobalt 85 delta_indigo 105 fable_ember 111 amber_birch 4 harbor_fable 83 fable_harbor 115
cobalt juniper amber grove fable delta amber cobalt delta indigo fable ember amber birch harbor fable fable harbor
ember_cobalt 48 amber_birch 106 fable_amber 50 cobalt_delta 8 juniper_harbor 75 delta_indigo 36 indigo_ember 104 ember_grove 35 juniper_delta 59 grove_cobalt 98
ember cobalt amber birch fable amber cobalt delta juniper harbor delta indigo indigo ember ember grove juniper delta grove cobalt
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018977-p1
Substitute all underscores in column 1 with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
cobalt_juniper 6 amber_grove 69 fable_delta 15 amber_cobalt 85 delta_indigo 105 fable_ember 111 amber_birch 4 harbor_fable 83 fable_harbor 115
cobalt juniper amber grove fable delta amber cobalt delta indigo fable ember amber birch harbor fable fable harbor
ember_cobalt 48 amber_birch 106 fable_amber 50 cobalt_delta 8 juniper_harbor 75 delta_indigo 36 indigo_ember 104 ember_grove 35 juniper_delta 59 grove_cobalt 98
ember cobalt amber birch fable amber cobalt delta juniper harbor delta indigo indigo ember ember grove juniper delta grove cobalt
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018977
qwen/qwen3.7-plus
awkweave-0018978
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)}
gus cobalt 68 closed eli fable 71 failed alice amber 71 active lina harbor 115 pending lina juniper 85 closed jules delta 111 closed gus indigo 116 ready ivan cobalt 9 ready ivan juniper 61 failed hana fable 104 ready
closed 68 cobalt gus failed 71 fable eli active 71 amber alice pending 115 harbor lina closed 85 juniper lina closed 111 delta jules ready 116 indigo gus ready 9 cobalt ivan failed 61 juniper ivan ready 104 fable hana
ivan delta 62 active hana cobalt 87 paused dina indigo 119 failed chen amber 85 paused alice cobalt 92 closed hana grove 3 ready gus ember 107 pending ivan delta 43 closed farah amber 113 pending
active 62 delta ivan paused 87 cobalt hana failed 119 indigo dina paused 85 amber chen closed 92 cobalt alice ready 3 grove hana pending 107 ember gus closed 43 delta ivan pending 113 amber farah
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018978-p1
Reverse the field sequence on each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
gus cobalt 68 closed eli fable 71 failed alice amber 71 active lina harbor 115 pending lina juniper 85 closed jules delta 111 closed gus indigo 116 ready ivan cobalt 9 ready ivan juniper 61 failed hana fable 104 ready
closed 68 cobalt gus failed 71 fable eli active 71 amber alice pending 115 harbor lina closed 85 juniper lina closed 111 delta jules ready 116 indigo gus ready 9 cobalt ivan failed 61 juniper ivan ready 104 fable hana
ivan delta 62 active hana cobalt 87 paused dina indigo 119 failed chen amber 85 paused alice cobalt 92 closed hana grove 3 ready gus ember 107 pending ivan delta 43 closed farah amber 113 pending
active 62 delta ivan paused 87 cobalt hana failed 119 indigo dina paused 85 amber chen closed 92 cobalt alice ready 3 grove hana pending 107 ember gus closed 43 delta ivan pending 113 amber farah
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018978
qwen/qwen3.7-plus
awkweave-0018979
Print the number of whitespace-separated fields on each line.
{print NF}
eli delta 17 failed bruno ember 78 failed eli delta 104 paused eli juniper 23 ready eli ember 95 active gus grove 35 closed chen juniper 30 active
4 4 4 4 4 4 4
lina amber 101 failed kim delta 48 ready farah ember 75 active eli cobalt 98 pending ivan cobalt 10 ready alice cobalt 41 active gus juniper 78 ready dina grove 35 closed gus indigo 100 ready chen juniper 118 active
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018979-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
eli delta 17 failed bruno ember 78 failed eli delta 104 paused eli juniper 23 ready eli ember 95 active gus grove 35 closed chen juniper 30 active
4 4 4 4 4 4 4
lina amber 101 failed kim delta 48 ready farah ember 75 active eli cobalt 98 pending ivan cobalt 10 ready alice cobalt 41 active gus juniper 78 ready dina grove 35 closed gus indigo 100 ready chen juniper 118 active
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018979
qwen/qwen3.7-plus
awkweave-0018980
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]]}
chen gamma 10 gus delta 4 ivan beta 107 gus alpha 80 lina delta 45 lina beta 19 dina delta 113 farah gamma 100
gamma 2 delta 3 beta 2 alpha 1
hana delta 103 chen delta 109 eli delta 120 bruno delta 35 dina alpha 22 eli beta 34 hana alpha 17 dina gamma 34
delta 4 alpha 2 beta 1 gamma 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018980-p1
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]]}
chen gamma 10 gus delta 4 ivan beta 107 gus alpha 80 lina delta 45 lina beta 19 dina delta 113 farah gamma 100
gamma 2 delta 3 beta 2 alpha 1
hana delta 103 chen delta 109 eli delta 120 bruno delta 35 dina alpha 22 eli beta 34 hana alpha 17 dina gamma 34
delta 4 alpha 2 beta 1 gamma 1
count_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0018980
qwen/qwen3.7-plus
awkweave-0018981
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]]}
jules gamma 8 lina alpha 21 bruno delta 26 kim gamma 24 gus beta 13 chen alpha 16 dina alpha 9 lina delta 16 kim alpha 20
gamma 32 alpha 66 delta 42 beta 13
farah alpha 21 kim alpha 27 kim beta 19 ivan beta 18 ivan delta 25 ivan beta 7 lina gamma 13 hana beta 29
alpha 48 beta 73 delta 25 gamma 13
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018981-p1
Calculate the sum of column 3 grouped by column 2 categories, displaying groups in the order they first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
jules gamma 8 lina alpha 21 bruno delta 26 kim gamma 24 gus beta 13 chen alpha 16 dina alpha 9 lina delta 16 kim alpha 20
gamma 32 alpha 66 delta 42 beta 13
farah alpha 21 kim alpha 27 kim beta 19 ivan beta 18 ivan delta 25 ivan beta 7 lina gamma 13 hana beta 29
alpha 48 beta 73 delta 25 gamma 13
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018981
qwen/qwen3.7-plus
awkweave-0018982
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]]}
beta harbor 118 delta cobalt 2 alpha indigo 64 gamma juniper 51 beta birch 56 gamma ember 36 gamma fable 38
beta 2 gamma 3
delta juniper 108 beta delta 18 delta birch 52 delta delta 75 delta amber 113 alpha birch 11 gamma ember 106 beta cobalt 17 gamma grove 36 gamma cobalt 101
delta 4 beta 2 gamma 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018982-p1
List duplicate values from column 1 alongside their occurrence counts, ordered by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta harbor 118 delta cobalt 2 alpha indigo 64 gamma juniper 51 beta birch 56 gamma ember 36 gamma fable 38
beta 2 gamma 3
delta juniper 108 beta delta 18 delta birch 52 delta delta 75 delta amber 113 alpha birch 11 gamma ember 106 beta cobalt 17 gamma grove 36 gamma cobalt 101
delta 4 beta 2 gamma 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018982
qwen/qwen3.7-plus
awkweave-0018983
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"]}
state display_name score region r001 ivan 11 closed r002 ivan 27 active r003 dina 23 pending r004 gus 5 active r005 farah 3 closed r006 dina 10 closed
ivan ivan dina gus farah dina
state display_name score region r001 hana 12 active r002 dina 28 paused r003 lina 28 failed r004 farah 14 pending r005 alice 11 failed r006 bruno 18 active r007 dina 5 pending r008 kim 23 paused r009 alice 7 ready
hana dina lina farah alice bruno dina kim alice
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018983-p1
Treating the first row as a header, output the display_name column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
state display_name score region r001 ivan 11 closed r002 ivan 27 active r003 dina 23 pending r004 gus 5 active r005 farah 3 closed r006 dina 10 closed
ivan ivan dina gus farah dina
state display_name score region r001 hana 12 active r002 dina 28 paused r003 lina 28 failed r004 farah 14 pending r005 alice 11 failed r006 bruno 18 active r007 dina 5 pending r008 kim 23 paused r009 alice 7 ready
hana dina lina farah alice bruno dina kim alice
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018983
qwen/qwen3.7-plus
awkweave-0018984
The first row is a header. Print display_name for data rows whose score is greater than 11.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>11{print $h["display_name"]}
record_id display_name score state r001 ivan 21 paused r002 dina 8 ready r003 hana 13 paused r004 gus 6 ready r005 ivan 9 paused r006 eli 25 failed r007 alice 29 failed r008 chen 20 ready
ivan hana eli alice chen
record_id display_name score state r001 ivan 22 active r002 farah 23 pending r003 dina 24 ready r004 eli 16 active r005 ivan 16 active r006 kim 16 failed r007 jules 18 closed r008 hana 13 ready r009 ivan 10 ready r010 bruno 17 closed
ivan farah dina eli ivan kim jules hana bruno
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018984-p1
With the first row as a header, output the display_name for data rows where the score is greater than 11.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>11{print $h["display_name"]}
record_id display_name score state r001 ivan 21 paused r002 dina 8 ready r003 hana 13 paused r004 gus 6 ready r005 ivan 9 paused r006 eli 25 failed r007 alice 29 failed r008 chen 20 ready
ivan hana eli alice chen
record_id display_name score state r001 ivan 22 active r002 farah 23 pending r003 dina 24 ready r004 eli 16 active r005 ivan 16 active r006 kim 16 failed r007 jules 18 closed r008 hana 13 ready r009 ivan 10 ready r010 bruno 17 closed
ivan farah dina eli ivan kim jules hana bruno
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018984
qwen/qwen3.7-plus
awkweave-0018985
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
alice 15 closed hana 2 paused farah 6 pending bruno 20 pending kim 10 paused chen 14 ready gus 6 failed hana 7 pending hana 18 failed ivan 6 paused
alice hana farah bruno kim chen gus hana hana ivan
bruno 6 closed bruno 4 closed bruno 25 active bruno 28 failed gus 10 paused farah 29 paused hana 20 ready
bruno bruno bruno bruno gus farah hana
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018985-p1
Given tab-separated input, output the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
alice 15 closed hana 2 paused farah 6 pending bruno 20 pending kim 10 paused chen 14 ready gus 6 failed hana 7 pending hana 18 failed ivan 6 paused
alice hana farah bruno kim chen gus hana hana ivan
bruno 6 closed bruno 4 closed bruno 25 active bruno 28 failed gus 10 paused farah 29 paused hana 20 ready
bruno bruno bruno bruno gus farah hana
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018985
qwen/qwen3.7-plus
awkweave-0018986
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 9.
BEGIN{FS=OFS=","}$2>9{print $1}
chen,6,ready ivan,16,closed farah,18,pending hana,4,paused farah,18,active jules,6,active
ivan farah farah
jules,23,closed kim,27,closed gus,1,pending farah,29,active ivan,1,active bruno,8,ready lina,29,pending eli,29,pending chen,27,active eli,3,ready
jules kim farah lina eli chen
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018986-p1
For simple comma-separated input without quoted commas, print the first column if the second column value exceeds 9.
BEGIN{FS=OFS=","}$2>9{print $1}
chen,6,ready ivan,16,closed farah,18,pending hana,4,paused farah,18,active jules,6,active
ivan farah farah
jules,23,closed kim,27,closed gus,1,pending farah,29,active ivan,1,active bruno,8,ready lina,29,pending eli,29,pending chen,27,active eli,3,ready
jules kim farah lina eli chen
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018986
qwen/qwen3.7-plus
awkweave-0018987
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
farah ember 58 farah delta 84 bruno cobalt 25 jules birch 68 gus amber 63 hana amber 114 chen birch 80 chen amber 71 lina ember 42
farah ember 58 farah delta 84 bruno cobalt 25 jules birch 68 gus amber 63 hana amber 114 chen birch 80 chen amber 71 lina ember 42
eli harbor 73 dina juniper 11 kim grove 1 kim fable 81 ivan ember 77 alice grove 61 bruno indigo 27 gus cobalt 11 chen grove 116 kim juniper 39
eli harbor 73 dina juniper 11 kim grove 1 kim fable 81 ivan ember 77 alice grove 61 bruno indigo 27 gus cobalt 11 chen grove 116 kim juniper 39
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018987-p1
Remove leading and trailing whitespace and replace internal whitespace sequences with single spaces.
{$1=$1;print}
farah ember 58 farah delta 84 bruno cobalt 25 jules birch 68 gus amber 63 hana amber 114 chen birch 80 chen amber 71 lina ember 42
farah ember 58 farah delta 84 bruno cobalt 25 jules birch 68 gus amber 63 hana amber 114 chen birch 80 chen amber 71 lina ember 42
eli harbor 73 dina juniper 11 kim grove 1 kim fable 81 ivan ember 77 alice grove 61 bruno indigo 27 gus cobalt 11 chen grove 116 kim juniper 39
eli harbor 73 dina juniper 11 kim grove 1 kim fable 81 ivan ember 77 alice grove 61 bruno indigo 27 gus cobalt 11 chen grove 116 kim juniper 39
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018987
qwen/qwen3.7-plus
awkweave-0018988
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
dina indigo 113 pending chen indigo 28 pending alice birch 25 ready bruno ember 51 ready lina birch 24 paused kim indigo 115 active lina delta 28 closed eli indigo 47 failed farah birch 86 failed
dina indigo 113 pending
ivan grove 56 active alice grove 74 closed hana fable 110 active hana indigo 62 paused alice indigo 84 ready farah cobalt 89 closed gus cobalt 3 pending
farah cobalt 89 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018988-p1
Identify and print the longest input line, retaining the earliest one in case of a tie.
{if(length($0)>length(best))best=$0}END{print best}
dina indigo 113 pending chen indigo 28 pending alice birch 25 ready bruno ember 51 ready lina birch 24 paused kim indigo 115 active lina delta 28 closed eli indigo 47 failed farah birch 86 failed
dina indigo 113 pending
ivan grove 56 active alice grove 74 closed hana fable 110 active hana indigo 62 paused alice indigo 84 ready farah cobalt 89 closed gus cobalt 3 pending
farah cobalt 89 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018988
qwen/qwen3.7-plus
awkweave-0018989
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
lina 64 alice 101 hana 116 eli 72 ivan 79 alice 18 farah 16
lina 64 hana 116 ivan 79 farah 16
chen 32 jules 23 bruno 34 eli 25 chen 74 lina 117 chen 76
chen 32 bruno 34 chen 74 chen 76
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018989-p1
Output every second line, beginning with line 1 (i.e., lines 1, 3, etc.).
NR%2==1
lina 64 alice 101 hana 116 eli 72 ivan 79 alice 18 farah 16
lina 64 hana 116 ivan 79 farah 16
chen 32 jules 23 bruno 34 eli 25 chen 74 lina 117 chen 76
chen 32 bruno 34 chen 74 chen 76
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018989
qwen/qwen3.7-plus
awkweave-0019000
Print lines 2 through 5, including both endpoints.
NR >= 2 && NR <= 5
chen amber 31 hana birch 116 chen grove 52 hana grove 0 gus amber 37 dina birch 47
hana birch 116 chen grove 52 hana grove 0 gus amber 37
ivan amber 5 eli amber 78 ivan delta 55 jules harbor 18 hana ember 50 jules fable 97 alice grove 60 eli fable 17 eli birch 0 alice grove 27
eli amber 78 ivan delta 55 jules harbor 18 hana ember 50
line_range
1
train
original-grammar
CC-BY-4.0
null
null