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-0015160-p1
Identify duplicate values in column 1 and print each repeated value with its frequency, ordered by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta grove 25 gamma harbor 95 alpha grove 15 gamma fable 53 beta fable 105 beta fable 72
beta 3 gamma 2
alpha juniper 37 delta birch 106 gamma indigo 48 alpha harbor 76 delta amber 56 alpha grove 26
alpha 3 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015160
qwen/qwen3.7-plus
awkweave-0015161
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"]}
state record_id score display_name r001 bruno 15 ready r002 ivan 6 active r003 hana 25 failed r004 alice 14 closed r005 alice 11 failed r006 farah 10 failed r007 alice 30 pending r008 ivan 8 pending r009 gus 13 active
bruno ivan hana alice alice farah alice ivan gus
state record_id score display_name r001 eli 25 paused r002 dina 23 closed r003 chen 23 active r004 lina 28 paused r005 alice 16 closed r006 bruno 24 pending r007 gus 15 active r008 alice 9 pending r009 chen 7 failed r010 ivan 10 active
eli dina chen lina alice bruno gus alice chen ivan
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015161-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"]}
state record_id score display_name r001 bruno 15 ready r002 ivan 6 active r003 hana 25 failed r004 alice 14 closed r005 alice 11 failed r006 farah 10 failed r007 alice 30 pending r008 ivan 8 pending r009 gus 13 active
bruno ivan hana alice alice farah alice ivan gus
state record_id score display_name r001 eli 25 paused r002 dina 23 closed r003 chen 23 active r004 lina 28 paused r005 alice 16 closed r006 bruno 24 pending r007 gus 15 active r008 alice 9 pending r009 chen 7 failed r010 ivan 10 active
eli dina chen lina alice bruno gus alice chen ivan
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015161
qwen/qwen3.7-plus
awkweave-0015162
The first row is a header. Print display_name for data rows whose score is greater than 12.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>12{print $h["display_name"]}
record_id display_name score state r001 gus 21 paused r002 gus 18 pending r003 farah 19 failed r004 kim 20 active r005 eli 9 paused r006 farah 12 ready
gus gus farah kim
record_id display_name score state r001 dina 14 closed r002 lina 24 active r003 bruno 23 ready r004 kim 17 pending r005 kim 28 closed r006 dina 9 active r007 lina 28 ready r008 jules 7 failed r009 bruno 2 failed
dina lina bruno kim kim lina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015162-p1
With the first row as a header, print the display_name field for data rows where the score is strictly greater than 12.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>12{print $h["display_name"]}
record_id display_name score state r001 gus 21 paused r002 gus 18 pending r003 farah 19 failed r004 kim 20 active r005 eli 9 paused r006 farah 12 ready
gus gus farah kim
record_id display_name score state r001 dina 14 closed r002 lina 24 active r003 bruno 23 ready r004 kim 17 pending r005 kim 28 closed r006 dina 9 active r007 lina 28 ready r008 jules 7 failed r009 bruno 2 failed
dina lina bruno kim kim lina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015162
qwen/qwen3.7-plus
awkweave-0015163
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
jules 13 paused lina 10 pending jules 26 failed lina 17 closed kim 3 pending farah 22 paused alice 19 failed hana 13 active
paused pending failed closed pending paused failed active
jules 20 paused ivan 12 failed hana 29 failed kim 3 pending alice 19 closed ivan 17 closed
paused failed failed pending closed closed
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015163-p1
Given tab-separated input, extract and print the third column from every record.
BEGIN{FS=OFS="\t"}{print $3}
jules 13 paused lina 10 pending jules 26 failed lina 17 closed kim 3 pending farah 22 paused alice 19 failed hana 13 active
paused pending failed closed pending paused failed active
jules 20 paused ivan 12 failed hana 29 failed kim 3 pending alice 19 closed ivan 17 closed
paused failed failed pending closed closed
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015163
qwen/qwen3.7-plus
awkweave-0015164
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 8.
BEGIN{FS=OFS=","}$2>8{print $1}
ivan,18,paused farah,2,closed hana,27,active bruno,22,pending gus,12,failed hana,11,failed alice,4,closed jules,21,ready alice,19,closed farah,14,paused
ivan hana bruno gus hana jules alice farah
jules,28,active gus,9,closed ivan,24,active lina,22,ready dina,26,closed chen,9,closed lina,3,paused dina,28,ready chen,7,pending
jules gus ivan lina dina chen dina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015164-p1
For simple comma-separated input without quoted commas, print the first column if the second column's value is greater than 8.
BEGIN{FS=OFS=","}$2>8{print $1}
ivan,18,paused farah,2,closed hana,27,active bruno,22,pending gus,12,failed hana,11,failed alice,4,closed jules,21,ready alice,19,closed farah,14,paused
ivan hana bruno gus hana jules alice farah
jules,28,active gus,9,closed ivan,24,active lina,22,ready dina,26,closed chen,9,closed lina,3,paused dina,28,ready chen,7,pending
jules gus ivan lina dina chen dina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015164
qwen/qwen3.7-plus
awkweave-0015165
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
chen birch 70 chen fable 17 alice grove 14 lina delta 94 bruno delta 39 chen amber 118 kim cobalt 13 eli indigo 52 bruno indigo 19 bruno cobalt 10
chen birch 70 chen fable 17 alice grove 14 lina delta 94 bruno delta 39 chen amber 118 kim cobalt 13 eli indigo 52 bruno indigo 19 bruno cobalt 10
farah cobalt 2 kim delta 50 gus juniper 83 bruno amber 84 hana indigo 98 alice fable 53 kim delta 65
farah cobalt 2 kim delta 50 gus juniper 83 bruno amber 84 hana indigo 98 alice fable 53 kim delta 65
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015165-p1
Remove leading and trailing whitespace and replace sequences of internal whitespace with a single space.
{$1=$1;print}
chen birch 70 chen fable 17 alice grove 14 lina delta 94 bruno delta 39 chen amber 118 kim cobalt 13 eli indigo 52 bruno indigo 19 bruno cobalt 10
chen birch 70 chen fable 17 alice grove 14 lina delta 94 bruno delta 39 chen amber 118 kim cobalt 13 eli indigo 52 bruno indigo 19 bruno cobalt 10
farah cobalt 2 kim delta 50 gus juniper 83 bruno amber 84 hana indigo 98 alice fable 53 kim delta 65
farah cobalt 2 kim delta 50 gus juniper 83 bruno amber 84 hana indigo 98 alice fable 53 kim delta 65
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015165
qwen/qwen3.7-plus
awkweave-0015166
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
lina ember 17 closed hana juniper 67 closed gus indigo 101 active eli grove 90 active hana juniper 104 pending ivan ember 93 paused chen amber 9 failed jules grove 22 ready
hana juniper 104 pending
dina cobalt 40 closed ivan harbor 65 paused bruno fable 106 paused gus indigo 83 ready dina harbor 46 paused farah fable 48 ready
bruno fable 106 paused
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015166-p1
Output the longest line from the input, selecting the first one encountered if there is a tie in length.
{if(length($0)>length(best))best=$0}END{print best}
lina ember 17 closed hana juniper 67 closed gus indigo 101 active eli grove 90 active hana juniper 104 pending ivan ember 93 paused chen amber 9 failed jules grove 22 ready
hana juniper 104 pending
dina cobalt 40 closed ivan harbor 65 paused bruno fable 106 paused gus indigo 83 ready dina harbor 46 paused farah fable 48 ready
bruno fable 106 paused
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015166
qwen/qwen3.7-plus
awkweave-0015167
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
ivan 68 bruno 90 dina 76 alice 19 gus 31 alice 117 farah 41 alice 102 dina 26
bruno 90 alice 19 alice 117 alice 102
jules 63 kim 70 lina 76 lina 69 dina 87 farah 63 jules 2 chen 49
kim 70 lina 69 farah 63 chen 49
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015167-p1
Print lines 2, 4, 6, and so on, effectively outputting every second line starting from the second line.
NR%2==0
ivan 68 bruno 90 dina 76 alice 19 gus 31 alice 117 farah 41 alice 102 dina 26
bruno 90 alice 19 alice 117 alice 102
jules 63 kim 70 lina 76 lina 69 dina 87 farah 63 jules 2 chen 49
kim 70 lina 69 farah 63 chen 49
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015167
qwen/qwen3.7-plus
awkweave-0015168
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
delta juniper 101 alpha delta 87 delta birch 119 delta cobalt 90 delta birch 44 delta indigo 22 delta birch 70 beta juniper 37
5
delta birch 48 alpha cobalt 104 beta cobalt 93 beta cobalt 107 alpha indigo 105 alpha indigo 92 delta grove 100
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015168-p1
Calculate and display only the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
delta juniper 101 alpha delta 87 delta birch 119 delta cobalt 90 delta birch 44 delta indigo 22 delta birch 70 beta juniper 37
5
delta birch 48 alpha cobalt 104 beta cobalt 93 beta cobalt 107 alpha indigo 105 alpha indigo 92 delta grove 100
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015168
qwen/qwen3.7-plus
awkweave-0015169
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}
chen 26 0 dina 14 7 lina 17 27 gus 8 14 gus 3 14 lina 24 20 kim 3 10 ivan 12 3
dina 2.00 lina 0.63 gus 0.57 gus 0.21 lina 1.20 kim 0.30 ivan 4.00
eli 23 0 ivan 30 13 kim 1 22 ivan 8 21 jules 4 17 eli 24 26 ivan 9 5 chen 18 7
ivan 2.31 kim 0.05 ivan 0.38 jules 0.24 eli 0.92 ivan 1.80 chen 2.57
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015169-p1
For each row where the third column is not zero, output the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
chen 26 0 dina 14 7 lina 17 27 gus 8 14 gus 3 14 lina 24 20 kim 3 10 ivan 12 3
dina 2.00 lina 0.63 gus 0.57 gus 0.21 lina 1.20 kim 0.30 ivan 4.00
eli 23 0 ivan 30 13 kim 1 22 ivan 8 21 jules 4 17 eli 24 26 ivan 9 5 chen 18 7
ivan 2.31 kim 0.05 ivan 0.38 jules 0.24 eli 0.92 ivan 1.80 chen 2.57
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015169
qwen/qwen3.7-plus
awkweave-0015170
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
hana indigo 4 dina juniper 20 chen cobalt 6 kim harbor 4 hana juniper 12 alice indigo 16
dina juniper 20 alice indigo 16 hana juniper 12
gus grove 12 chen fable 28 ivan amber 3 dina juniper 1 lina fable 7 alice birch 18
chen fable 28 alice birch 18 gus grove 12
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015170-p1
Display the full records corresponding to the top three 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]}
hana indigo 4 dina juniper 20 chen cobalt 6 kim harbor 4 hana juniper 12 alice indigo 16
dina juniper 20 alice indigo 16 hana juniper 12
gus grove 12 chen fable 28 ivan amber 3 dina juniper 1 lina fable 7 alice birch 18
chen fable 28 alice birch 18 gus grove 12
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015170
qwen/qwen3.7-plus
awkweave-0015171
Print column 4 followed by column 3 for every record.
{print $4, $3}
farah delta harbor failed chen indigo cobalt failed chen birch indigo active ivan delta amber ready bruno indigo amber pending gus delta amber failed alice grove cobalt pending dina cobalt birch active chen juniper indigo failed eli indigo juniper failed
failed harbor failed cobalt active indigo ready amber pending amber failed amber pending cobalt active birch failed indigo failed juniper
kim ember ember paused hana ember grove ready lina fable juniper closed bruno indigo harbor active dina amber juniper closed lina delta amber closed
paused ember ready grove closed juniper active harbor closed juniper closed amber
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015171-p1
Output the fourth column followed by the third column for every record in the input.
{print $4, $3}
farah delta harbor failed chen indigo cobalt failed chen birch indigo active ivan delta amber ready bruno indigo amber pending gus delta amber failed alice grove cobalt pending dina cobalt birch active chen juniper indigo failed eli indigo juniper failed
failed harbor failed cobalt active indigo ready amber pending amber failed amber pending cobalt active birch failed indigo failed juniper
kim ember ember paused hana ember grove ready lina fable juniper closed bruno indigo harbor active dina amber juniper closed lina delta amber closed
paused ember ready grove closed juniper active harbor closed juniper closed amber
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015171
qwen/qwen3.7-plus
awkweave-0015172
Print the last field of every input line.
{print $NF}
juniper delta pending harbor alice indigo fable ready grove dina amber indigo paused indigo alice indigo fable failed amber bruno birch harbor active cobalt hana delta birch ready fable gus indigo ember active fable gus ember amber active indigo dina
alice dina alice bruno hana gus gus dina
cobalt indigo ready ember ivan amber juniper pending fable gus grove fable pending harbor kim ember ember closed cobalt kim indigo cobalt failed grove farah grove grove paused indigo chen indigo fable failed grove lina birch ember pending birch dina harbor amber failed cobalt alice indigo harbor active grove hana
ivan gus kim kim farah chen lina dina alice hana
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015172-p1
Print the final field of each input line.
{print $NF}
juniper delta pending harbor alice indigo fable ready grove dina amber indigo paused indigo alice indigo fable failed amber bruno birch harbor active cobalt hana delta birch ready fable gus indigo ember active fable gus ember amber active indigo dina
alice dina alice bruno hana gus gus dina
cobalt indigo ready ember ivan amber juniper pending fable gus grove fable pending harbor kim ember ember closed cobalt kim indigo cobalt failed grove farah grove grove paused indigo chen indigo fable failed grove lina birch ember pending birch dina harbor amber failed cobalt alice indigo harbor active grove hana
ivan gus kim kim farah chen lina dina alice hana
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015172
qwen/qwen3.7-plus
awkweave-0015173
Print the complete records where column 1 is at most 34.
$1 <= 34
92 delta eli ember 34 birch gus ember 26 delta gus cobalt 58 ember alice ember 30 amber farah grove 39 ember kim amber
34 birch gus ember 26 delta gus cobalt 30 amber farah grove
7 amber bruno amber 25 birch alice fable 82 grove alice ember 115 fable ivan cobalt 10 indigo ivan grove 86 delta ivan harbor 3 grove dina birch 28 harbor hana cobalt 111 birch chen grove
7 amber bruno amber 25 birch alice fable 10 indigo ivan grove 3 grove dina birch 28 harbor hana cobalt
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015173-p1
Output the complete records for which the value in the first column is less than or equal to 34.
$1 <= 34
92 delta eli ember 34 birch gus ember 26 delta gus cobalt 58 ember alice ember 30 amber farah grove 39 ember kim amber
34 birch gus ember 26 delta gus cobalt 30 amber farah grove
7 amber bruno amber 25 birch alice fable 82 grove alice ember 115 fable ivan cobalt 10 indigo ivan grove 86 delta ivan harbor 3 grove dina birch 28 harbor hana cobalt 111 birch chen grove
7 amber bruno amber 25 birch alice fable 10 indigo ivan grove 3 grove dina birch 28 harbor hana cobalt
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015173
qwen/qwen3.7-plus
awkweave-0015174
Show whole lines whose 2nd field is between 4 and 27, inclusive.
$2 >= 4 && $2 <= 27
paused 29 fable delta ready 10 harbor delta pending 3 grove amber pending 27 juniper fable closed 9 fable amber active 4 grove birch closed 26 ember fable ready 21 juniper grove ready 22 cobalt juniper
ready 10 harbor delta pending 27 juniper fable closed 9 fable amber active 4 grove birch closed 26 ember fable ready 21 juniper grove ready 22 cobalt juniper
paused 10 delta juniper pending 22 ember delta failed 10 indigo amber paused 29 juniper delta pending 24 harbor indigo paused 19 delta birch failed 8 grove fable
paused 10 delta juniper pending 22 ember delta failed 10 indigo amber pending 24 harbor indigo paused 19 delta birch failed 8 grove fable
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015174-p1
Display entire lines where the second field has a value between 4 and 27, inclusive.
$2 >= 4 && $2 <= 27
paused 29 fable delta ready 10 harbor delta pending 3 grove amber pending 27 juniper fable closed 9 fable amber active 4 grove birch closed 26 ember fable ready 21 juniper grove ready 22 cobalt juniper
ready 10 harbor delta pending 27 juniper fable closed 9 fable amber active 4 grove birch closed 26 ember fable ready 21 juniper grove ready 22 cobalt juniper
paused 10 delta juniper pending 22 ember delta failed 10 indigo amber paused 29 juniper delta pending 24 harbor indigo paused 19 delta birch failed 8 grove fable
paused 10 delta juniper pending 22 ember delta failed 10 indigo amber pending 24 harbor indigo paused 19 delta birch failed 8 grove fable
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015174
qwen/qwen3.7-plus
awkweave-0015175
Print column 3 only for rows where column 1 is exactly paused.
$1 == "paused"{print $3}
paused grove ivan 69 active amber alice 14 paused birch jules 55 failed birch farah 75 failed juniper bruno 52 closed indigo kim 92 paused juniper farah 76 active fable gus 8 active amber chen 114
ivan jules farah
ready amber chen 31 paused harbor lina 10 failed ember eli 98 active grove ivan 17 closed amber farah 106 active grove chen 81 closed harbor hana 18 active birch alice 62 closed ember chen 8
lina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015175-p1
Print only the third column for rows where the first column is exactly 'paused'.
$1 == "paused"{print $3}
paused grove ivan 69 active amber alice 14 paused birch jules 55 failed birch farah 75 failed juniper bruno 52 closed indigo kim 92 paused juniper farah 76 active fable gus 8 active amber chen 114
ivan jules farah
ready amber chen 31 paused harbor lina 10 failed ember eli 98 active grove ivan 17 closed amber farah 106 active grove chen 81 closed harbor hana 18 active birch alice 62 closed ember chen 8
lina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015175
qwen/qwen3.7-plus
awkweave-0015176
Print all fields from lines where field 1 begins with WARN.
$1 ~ /^WARN/
INFO fable 52 DEBUG indigo 5 DEBUG fable 37 DEBUG ember 103 ERROR ember 105 ERROR amber 66 WARN juniper 21 DEBUG juniper 40
WARN juniper 21
INFO harbor 51 INFO ember 9 WARN fable 65 INFO grove 29 ERROR amber 48 ERROR cobalt 98 DEBUG indigo 78 DEBUG cobalt 112 INFO juniper 66
WARN fable 65
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015176-p1
Output all fields from any line where the first field starts with the string 'WARN'.
$1 ~ /^WARN/
INFO fable 52 DEBUG indigo 5 DEBUG fable 37 DEBUG ember 103 ERROR ember 105 ERROR amber 66 WARN juniper 21 DEBUG juniper 40
WARN juniper 21
INFO harbor 51 INFO ember 9 WARN fable 65 INFO grove 29 ERROR amber 48 ERROR cobalt 98 DEBUG indigo 78 DEBUG cobalt 112 INFO juniper 66
WARN fable 65
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015176
qwen/qwen3.7-plus
awkweave-0015177
Print every line except those containing the exact text grove.
$0 !~ /grove/
amber 59 active fable 37 failed cobalt 85 paused amber 113 paused birch 40 closed ember 106 pending delta 119 active fable 40 closed ember 66 closed grove 999 active
amber 59 active fable 37 failed cobalt 85 paused amber 113 paused birch 40 closed ember 106 pending delta 119 active fable 40 closed ember 66 closed
harbor 20 closed birch 81 closed ember 116 closed harbor 89 ready delta 63 ready harbor 3 ready grove 120 ready grove 999 active
harbor 20 closed birch 81 closed ember 116 closed harbor 89 ready delta 63 ready harbor 3 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015177-p1
Print every line that does not contain the exact string 'grove'.
$0 !~ /grove/
amber 59 active fable 37 failed cobalt 85 paused amber 113 paused birch 40 closed ember 106 pending delta 119 active fable 40 closed ember 66 closed grove 999 active
amber 59 active fable 37 failed cobalt 85 paused amber 113 paused birch 40 closed ember 106 pending delta 119 active fable 40 closed ember 66 closed
harbor 20 closed birch 81 closed ember 116 closed harbor 89 ready delta 63 ready harbor 3 ready grove 120 ready grove 999 active
harbor 20 closed birch 81 closed ember 116 closed harbor 89 ready delta 63 ready harbor 3 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015177
qwen/qwen3.7-plus
awkweave-0015178
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
kim birch 89 lina ember 87 kim delta 42 jules birch 42 hana harbor 81 jules juniper 2 chen juniper 74
lina ember 87 kim delta 42
gus juniper 43 alice grove 93 ivan birch 31 bruno cobalt 117 alice birch 109 alice indigo 30
alice grove 93 ivan birch 31
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015178-p1
Display lines 2 to 3, inclusive.
NR >= 2 && NR <= 3
kim birch 89 lina ember 87 kim delta 42 jules birch 42 hana harbor 81 jules juniper 2 chen juniper 74
lina ember 87 kim delta 42
gus juniper 43 alice grove 93 ivan birch 31 bruno cobalt 117 alice birch 109 alice indigo 30
alice grove 93 ivan birch 31
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015178
qwen/qwen3.7-plus
awkweave-0015179
Output only the first 5 records.
NR <= 5
farah 104 delta chen 3 delta dina 90 cobalt hana 65 birch ivan 95 indigo farah 115 juniper farah 87 delta gus 78 delta
farah 104 delta chen 3 delta dina 90 cobalt hana 65 birch ivan 95 indigo
chen 95 indigo kim 36 grove bruno 120 harbor hana 97 fable dina 72 harbor kim 114 ember jules 84 grove jules 11 amber gus 60 harbor dina 88 amber
chen 95 indigo kim 36 grove bruno 120 harbor hana 97 fable dina 72 harbor
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015179-p1
Output just the initial 5 records.
NR <= 5
farah 104 delta chen 3 delta dina 90 cobalt hana 65 birch ivan 95 indigo farah 115 juniper farah 87 delta gus 78 delta
farah 104 delta chen 3 delta dina 90 cobalt hana 65 birch ivan 95 indigo
chen 95 indigo kim 36 grove bruno 120 harbor hana 97 fable dina 72 harbor kim 114 ember jules 84 grove jules 11 amber gus 60 harbor dina 88 amber
chen 95 indigo kim 36 grove bruno 120 harbor hana 97 fable dina 72 harbor
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015179
qwen/qwen3.7-plus
awkweave-0015180
Skip the first line and print every remaining line unchanged.
NR > 1
dina 14 fable bruno 98 indigo bruno 38 juniper kim 66 ember alice 90 ember alice 111 indigo chen 39 birch eli 14 birch
bruno 98 indigo bruno 38 juniper kim 66 ember alice 90 ember alice 111 indigo chen 39 birch eli 14 birch
kim 38 grove bruno 0 birch gus 30 fable farah 92 birch gus 31 grove eli 57 grove
bruno 0 birch gus 30 fable farah 92 birch gus 31 grove eli 57 grove
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015180-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
dina 14 fable bruno 98 indigo bruno 38 juniper kim 66 ember alice 90 ember alice 111 indigo chen 39 birch eli 14 birch
bruno 98 indigo bruno 38 juniper kim 66 ember alice 90 ember alice 111 indigo chen 39 birch eli 14 birch
kim 38 grove bruno 0 birch gus 30 fable farah 92 birch gus 31 grove eli 57 grove
bruno 0 birch gus 30 fable farah 92 birch gus 31 grove eli 57 grove
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015180
qwen/qwen3.7-plus
awkweave-0015181
Count how many records have paused in column 2. Print 0 if there are none.
$2 == "paused"{n++}END{print n+0}
hana paused 109 kim failed 103 bruno failed 52 dina active 61 bruno pending 88 jules pending 3 bruno pending 112
1
gus failed 53 alice failed 35 farah closed 50 jules paused 62 alice active 26 eli closed 111 lina ready 75
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015181-p1
Tally the records where column 2 is 'paused' and print the count, defaulting to 0 if none match.
$2 == "paused"{n++}END{print n+0}
hana paused 109 kim failed 103 bruno failed 52 dina active 61 bruno pending 88 jules pending 3 bruno pending 112
1
gus failed 53 alice failed 35 farah closed 50 jules paused 62 alice active 26 eli closed 111 lina ready 75
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015181
qwen/qwen3.7-plus
awkweave-0015182
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
10 eli indigo 8 bruno harbor 12 eli amber 27 chen ember 30 farah birch 6 jules ember 5 chen delta 30 kim cobalt 19 jules amber 5 lina ember
152
19 farah cobalt 4 ivan juniper 22 bruno cobalt 18 jules harbor 9 bruno birch 12 dina indigo
84
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015182-p1
Compute and output the total sum of integer values in column 1.
{s+=$1}END{print s+0}
10 eli indigo 8 bruno harbor 12 eli amber 27 chen ember 30 farah birch 6 jules ember 5 chen delta 30 kim cobalt 19 jules amber 5 lina ember
152
19 farah cobalt 4 ivan juniper 22 bruno cobalt 18 jules harbor 9 bruno birch 12 dina indigo
84
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015182
qwen/qwen3.7-plus
awkweave-0015183
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
grove alice 5 ember gus 6 grove kim 12 indigo bruno 24 grove dina 6 delta farah 27
13.33
delta dina 3 delta dina 26 cobalt hana 12 juniper hana 17 ember lina 11 delta hana 5 juniper chen 27
14.43
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015183-p1
Print the average of column 3, formatted to two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
grove alice 5 ember gus 6 grove kim 12 indigo bruno 24 grove dina 6 delta farah 27
13.33
delta dina 3 delta dina 26 cobalt hana 12 juniper hana 17 ember lina 11 delta hana 5 juniper chen 27
14.43
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015183
qwen/qwen3.7-plus
awkweave-0015184
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
9 ember jules 18 ember bruno 28 amber chen 4 delta jules 2 cobalt lina 20 harbor alice 12 indigo kim 11 delta gus 17 delta bruno 10 harbor dina
2
15 indigo lina 12 ember bruno 23 ember kim 10 fable eli 11 grove kim 4 fable dina 13 harbor alice 19 birch eli 15 fable alice
4
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015184-p1
Identify and display the minimum numeric value found in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
9 ember jules 18 ember bruno 28 amber chen 4 delta jules 2 cobalt lina 20 harbor alice 12 indigo kim 11 delta gus 17 delta bruno 10 harbor dina
2
15 indigo lina 12 ember bruno 23 ember kim 10 fable eli 11 grove kim 4 fable dina 13 harbor alice 19 birch eli 15 fable alice
4
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015184
qwen/qwen3.7-plus
awkweave-0015185
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
kim 29 harbor lina 8 juniper lina 2 ember kim 9 harbor gus 10 indigo alice 2 ember chen 4 amber kim 10 grove alice 9 amber
29
lina 4 indigo jules 24 birch jules 3 harbor bruno 16 harbor gus 22 fable bruno 8 indigo
24
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015185-p1
Identify and display the maximum numeric value found in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
kim 29 harbor lina 8 juniper lina 2 ember kim 9 harbor gus 10 indigo alice 2 ember chen 4 amber kim 10 grove alice 9 amber
29
lina 4 indigo jules 24 birch jules 3 harbor bruno 16 harbor gus 22 fable bruno 8 indigo
24
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015185
qwen/qwen3.7-plus
awkweave-0015186
Count all input records and print the total.
END{print NR}
chen 4 hana 103 gus 102 bruno 63 kim 109 ivan 56
6
alice 50 bruno 117 eli 111 kim 11 gus 70 farah 88 farah 71 eli 92
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015186-p1
Count the total number of input records and print the result.
END{print NR}
chen 4 hana 103 gus 102 bruno 63 kim 109 ivan 56
6
alice 50 bruno 117 eli 111 kim 11 gus 70 farah 88 farah 71 eli 92
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015186
qwen/qwen3.7-plus
awkweave-0015187
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
ivan amber 9 hana harbor 44 chen harbor 52 bruno indigo 74 kim cobalt 65 alice harbor 78 ivan amber 9 gus birch 19 alice indigo 117 hana grove 98
ivan amber 9 hana harbor 44 chen harbor 52 bruno indigo 74 kim cobalt 65 alice harbor 78 gus birch 19 alice indigo 117 hana grove 98
ivan indigo 19 kim juniper 30 farah cobalt 88 chen juniper 53 lina birch 20 bruno ember 4 lina indigo 113 kim juniper 30 lina juniper 114 hana grove 100 jules ember 11
ivan indigo 19 kim juniper 30 farah cobalt 88 chen juniper 53 lina birch 20 bruno ember 4 lina indigo 113 lina juniper 114 hana grove 100 jules ember 11
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015187-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
ivan amber 9 hana harbor 44 chen harbor 52 bruno indigo 74 kim cobalt 65 alice harbor 78 ivan amber 9 gus birch 19 alice indigo 117 hana grove 98
ivan amber 9 hana harbor 44 chen harbor 52 bruno indigo 74 kim cobalt 65 alice harbor 78 gus birch 19 alice indigo 117 hana grove 98
ivan indigo 19 kim juniper 30 farah cobalt 88 chen juniper 53 lina birch 20 bruno ember 4 lina indigo 113 kim juniper 30 lina juniper 114 hana grove 100 jules ember 11
ivan indigo 19 kim juniper 30 farah cobalt 88 chen juniper 53 lina birch 20 bruno ember 4 lina indigo 113 lina juniper 114 hana grove 100 jules ember 11
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015187
qwen/qwen3.7-plus
awkweave-0015188
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
alice amber 78 jules juniper 23 farah fable 115 lina ember 34 hana grove 93 ivan delta 19 lina grove 20 chen amber 0
alice amber 78 jules juniper 23 farah fable 115 lina ember 34 hana grove 93 ivan delta 19
kim indigo 100 hana grove 64 farah grove 97 alice harbor 29 lina amber 114 chen harbor 30 gus grove 61 eli juniper 40 farah juniper 8 ivan birch 59
kim indigo 100 hana grove 64 alice harbor 29 lina amber 114 eli juniper 40 ivan birch 59
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015188-p1
Retain only the first occurrence for each unique value in column 2, preserving the input order.
!seen[$2]++
alice amber 78 jules juniper 23 farah fable 115 lina ember 34 hana grove 93 ivan delta 19 lina grove 20 chen amber 0
alice amber 78 jules juniper 23 farah fable 115 lina ember 34 hana grove 93 ivan delta 19
kim indigo 100 hana grove 64 farah grove 97 alice harbor 29 lina amber 114 chen harbor 30 gus grove 61 eli juniper 40 farah juniper 8 ivan birch 59
kim indigo 100 hana grove 64 alice harbor 29 lina amber 114 eli juniper 40 ivan birch 59
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015188
qwen/qwen3.7-plus
awkweave-0015189
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 6 grove hana 20 grove alice 10 amber eli 23 birch gus 25 ember lina 11 juniper
ivan 6 hana 26 alice 36 eli 59 gus 84 lina 95
gus 17 ember ivan 28 indigo jules 28 amber hana 29 delta lina 13 indigo lina 24 harbor bruno 23 indigo hana 4 cobalt gus 20 cobalt dina 30 indigo
gus 17 ivan 45 jules 73 hana 102 lina 115 lina 139 bruno 162 hana 166 gus 186 dina 216
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015189-p1
For every record, output column 1 followed by the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 6 grove hana 20 grove alice 10 amber eli 23 birch gus 25 ember lina 11 juniper
ivan 6 hana 26 alice 36 eli 59 gus 84 lina 95
gus 17 ember ivan 28 indigo jules 28 amber hana 29 delta lina 13 indigo lina 24 harbor bruno 23 indigo hana 4 cobalt gus 20 cobalt dina 30 indigo
gus 17 ivan 45 jules 73 hana 102 lina 115 lina 139 bruno 162 hana 166 gus 186 dina 216
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015189
qwen/qwen3.7-plus
awkweave-0015200
The first row is a header. Print the region column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
record_id score note region r001 bruno 22 pending r002 kim 19 failed r003 dina 7 paused r004 hana 6 active r005 farah 4 failed r006 eli 15 closed r007 chen 16 closed r008 hana 14 closed
pending failed paused active failed closed closed closed
record_id score note region r001 chen 7 ready r002 eli 12 failed r003 ivan 22 closed r004 kim 9 closed r005 chen 28 active r006 eli 20 paused r007 jules 18 closed r008 lina 18 paused
ready failed closed closed active paused closed paused
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015200-p1
Skip the header row and output the 'region' column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
record_id score note region r001 bruno 22 pending r002 kim 19 failed r003 dina 7 paused r004 hana 6 active r005 farah 4 failed r006 eli 15 closed r007 chen 16 closed r008 hana 14 closed
pending failed paused active failed closed closed closed
record_id score note region r001 chen 7 ready r002 eli 12 failed r003 ivan 22 closed r004 kim 9 closed r005 chen 28 active r006 eli 20 paused r007 jules 18 closed r008 lina 18 paused
ready failed closed closed active paused closed paused
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015200
qwen/qwen3.7-plus
awkweave-0015201
The first row is a header. Print display_name for data rows whose score is greater than 18.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]}
record_id display_name score state r001 lina 25 paused r002 bruno 1 paused r003 jules 11 paused r004 gus 23 ready r005 alice 8 closed r006 chen 13 closed r007 chen 5 closed
lina gus
record_id display_name score state r001 bruno 25 pending r002 ivan 13 failed r003 farah 21 closed r004 eli 10 ready r005 farah 21 paused r006 chen 4 pending
bruno farah farah
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015201-p1
Ignore the header line; for data rows where the 'score' exceeds 18, print the 'display_name'.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]}
record_id display_name score state r001 lina 25 paused r002 bruno 1 paused r003 jules 11 paused r004 gus 23 ready r005 alice 8 closed r006 chen 13 closed r007 chen 5 closed
lina gus
record_id display_name score state r001 bruno 25 pending r002 ivan 13 failed r003 farah 21 closed r004 eli 10 ready r005 farah 21 paused r006 chen 4 pending
bruno farah farah
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015201
qwen/qwen3.7-plus
awkweave-0015202
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
gus 1 pending hana 16 ready kim 22 failed ivan 16 failed lina 26 ready dina 2 ready chen 22 active ivan 29 pending chen 15 closed gus 22 paused
pending ready failed failed ready ready active pending closed paused
dina 4 paused kim 25 active hana 3 pending dina 28 closed lina 15 ready gus 28 active gus 2 ready ivan 23 paused hana 11 paused gus 10 ready
paused active pending closed ready active ready paused paused ready
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015202-p1
Given tab-separated input, extract and print the third column from each record.
BEGIN{FS=OFS="\t"}{print $3}
gus 1 pending hana 16 ready kim 22 failed ivan 16 failed lina 26 ready dina 2 ready chen 22 active ivan 29 pending chen 15 closed gus 22 paused
pending ready failed failed ready ready active pending closed paused
dina 4 paused kim 25 active hana 3 pending dina 28 closed lina 15 ready gus 28 active gus 2 ready ivan 23 paused hana 11 paused gus 10 ready
paused active pending closed ready active ready paused paused ready
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015202
qwen/qwen3.7-plus
awkweave-0015203
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}
dina,13,pending farah,12,active chen,27,closed eli,4,failed chen,22,ready ivan,25,ready bruno,1,ready alice,6,pending
dina farah chen chen ivan
hana,6,pending chen,2,pending hana,17,paused dina,22,closed lina,3,paused alice,29,pending gus,25,pending ivan,24,active
hana dina alice gus ivan
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015203-p1
Process simple comma-separated data without quoted commas; print the first column if the second column is greater than 9.
BEGIN{FS=OFS=","}$2>9{print $1}
dina,13,pending farah,12,active chen,27,closed eli,4,failed chen,22,ready ivan,25,ready bruno,1,ready alice,6,pending
dina farah chen chen ivan
hana,6,pending chen,2,pending hana,17,paused dina,22,closed lina,3,paused alice,29,pending gus,25,pending ivan,24,active
hana dina alice gus ivan
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015203
qwen/qwen3.7-plus
awkweave-0015204
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
ivan indigo 95 eli grove 26 jules fable 50 farah fable 62 alice indigo 38 dina grove 111 kim juniper 5 farah juniper 106 dina grove 45
ivan indigo 95 eli grove 26 jules fable 50 farah fable 62 alice indigo 38 dina grove 111 kim juniper 5 farah juniper 106 dina grove 45
lina delta 117 lina ember 26 jules fable 97 eli fable 74 hana fable 57 alice cobalt 114 hana delta 68 chen ember 21 chen indigo 73
lina delta 117 lina ember 26 jules fable 97 eli fable 74 hana fable 57 alice cobalt 114 hana delta 68 chen ember 21 chen indigo 73
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015204-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
ivan indigo 95 eli grove 26 jules fable 50 farah fable 62 alice indigo 38 dina grove 111 kim juniper 5 farah juniper 106 dina grove 45
ivan indigo 95 eli grove 26 jules fable 50 farah fable 62 alice indigo 38 dina grove 111 kim juniper 5 farah juniper 106 dina grove 45
lina delta 117 lina ember 26 jules fable 97 eli fable 74 hana fable 57 alice cobalt 114 hana delta 68 chen ember 21 chen indigo 73
lina delta 117 lina ember 26 jules fable 97 eli fable 74 hana fable 57 alice cobalt 114 hana delta 68 chen ember 21 chen indigo 73
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015204
qwen/qwen3.7-plus
awkweave-0015205
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
chen fable 107 pending gus ember 88 failed hana fable 5 failed eli cobalt 6 ready eli cobalt 60 active farah grove 36 ready alice ember 91 paused gus birch 114 ready alice amber 89 failed
chen fable 107 pending
jules juniper 59 paused eli delta 119 failed hana fable 74 pending kim fable 51 paused lina indigo 40 failed gus fable 89 closed
jules juniper 59 paused
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015205-p1
Identify and print the longest line from the input; in case of a tie in length, select the first occurrence.
{if(length($0)>length(best))best=$0}END{print best}
chen fable 107 pending gus ember 88 failed hana fable 5 failed eli cobalt 6 ready eli cobalt 60 active farah grove 36 ready alice ember 91 paused gus birch 114 ready alice amber 89 failed
chen fable 107 pending
jules juniper 59 paused eli delta 119 failed hana fable 74 pending kim fable 51 paused lina indigo 40 failed gus fable 89 closed
jules juniper 59 paused
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015205
qwen/qwen3.7-plus
awkweave-0015206
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
bruno 109 dina 67 chen 43 gus 120 jules 90 gus 105 hana 114 hana 80 ivan 120
dina 67 gus 120 gus 105 hana 80
lina 51 hana 87 gus 116 gus 116 farah 12 ivan 28
hana 87 gus 116 ivan 28
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015206-p1
Output every second line, beginning with line 2 (i.e., lines 2, 4, 6, etc.).
NR%2==0
bruno 109 dina 67 chen 43 gus 120 jules 90 gus 105 hana 114 hana 80 ivan 120
dina 67 gus 120 gus 105 hana 80
lina 51 hana 87 gus 116 gus 116 farah 12 ivan 28
hana 87 gus 116 ivan 28
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015206
qwen/qwen3.7-plus
awkweave-0015207
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta delta 43 delta birch 17 delta harbor 89 delta fable 92 alpha delta 7 alpha amber 75 delta indigo 3
6
alpha delta 24 alpha fable 44 beta delta 8 beta birch 52 alpha fable 73 delta ember 26 beta cobalt 27
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015207-p1
Calculate the number of unique values in the second column and print only that total count.
{if(!seen[$2]++)n++}END{print n+0}
beta delta 43 delta birch 17 delta harbor 89 delta fable 92 alpha delta 7 alpha amber 75 delta indigo 3
6
alpha delta 24 alpha fable 44 beta delta 8 beta birch 52 alpha fable 73 delta ember 26 beta cobalt 27
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015207
qwen/qwen3.7-plus
awkweave-0015208
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 13 0 bruno 18 18 hana 22 27 lina 16 24 gus 28 20 bruno 22 8 alice 22 13 gus 22 3 bruno 16 29
bruno 1.00 hana 0.81 lina 0.67 gus 1.40 bruno 2.75 alice 1.69 gus 7.33 bruno 0.55
chen 15 0 bruno 19 30 kim 13 3 gus 20 1 jules 5 3 farah 25 22
bruno 0.63 kim 4.33 gus 20.00 jules 1.67 farah 1.14
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015208-p1
For each row, output column 1 and the result of column 2 divided 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 13 0 bruno 18 18 hana 22 27 lina 16 24 gus 28 20 bruno 22 8 alice 22 13 gus 22 3 bruno 16 29
bruno 1.00 hana 0.81 lina 0.67 gus 1.40 bruno 2.75 alice 1.69 gus 7.33 bruno 0.55
chen 15 0 bruno 19 30 kim 13 3 gus 20 1 jules 5 3 farah 25 22
bruno 0.63 kim 4.33 gus 20.00 jules 1.67 farah 1.14
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015208
qwen/qwen3.7-plus
awkweave-0015209
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]}
alice birch 20 kim cobalt 6 chen indigo 1 jules indigo 27 eli grove 29 hana indigo 26 jules indigo 7 farah harbor 16
eli grove 29 jules indigo 27 hana indigo 26
ivan harbor 27 bruno cobalt 28 bruno juniper 11 bruno amber 16 hana birch 30 dina harbor 29 hana delta 15 alice amber 28 bruno amber 28 gus amber 7
hana birch 30 dina harbor 29 bruno cobalt 28
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015209-p1
Retrieve the three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
alice birch 20 kim cobalt 6 chen indigo 1 jules indigo 27 eli grove 29 hana indigo 26 jules indigo 7 farah harbor 16
eli grove 29 jules indigo 27 hana indigo 26
ivan harbor 27 bruno cobalt 28 bruno juniper 11 bruno amber 16 hana birch 30 dina harbor 29 hana delta 15 alice amber 28 bruno amber 28 gus amber 7
hana birch 30 dina harbor 29 bruno cobalt 28
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015209
qwen/qwen3.7-plus
awkweave-0015210
Select the 2nd and 1st fields in that order.
{print $2, $1}
paused 76 active lina lina alice closed 26 closed jules farah lina ready 26 ready hana alice ivan ready 120 failed alice alice ivan failed 66 ready bruno bruno hana active 23 active lina alice farah failed 108 failed bruno kim dina failed 7 ready gus dina dina
76 paused 26 closed 26 ready 120 ready 66 failed 23 active 108 failed 7 failed
active 25 failed alice chen alice ready 111 pending kim bruno jules ready 17 paused ivan bruno eli ready 95 active farah dina bruno paused 73 paused ivan eli chen ready 12 active eli bruno farah active 0 pending ivan ivan farah active 36 active chen alice chen
25 active 111 ready 17 ready 95 ready 73 paused 12 ready 0 active 36 active
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015210-p1
Rearrange the fields to output the 2nd field followed by the 1st field.
{print $2, $1}
paused 76 active lina lina alice closed 26 closed jules farah lina ready 26 ready hana alice ivan ready 120 failed alice alice ivan failed 66 ready bruno bruno hana active 23 active lina alice farah failed 108 failed bruno kim dina failed 7 ready gus dina dina
76 paused 26 closed 26 ready 120 ready 66 failed 23 active 108 failed 7 failed
active 25 failed alice chen alice ready 111 pending kim bruno jules ready 17 paused ivan bruno eli ready 95 active farah dina bruno paused 73 paused ivan eli chen ready 12 active eli bruno farah active 0 pending ivan ivan farah active 36 active chen alice chen
25 active 111 ready 17 ready 95 ready 73 paused 12 ready 0 active 36 active
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015210
qwen/qwen3.7-plus
awkweave-0015211
Print the last field of every input line.
{print $NF}
83 ready ivan amber gus 88 closed eli grove farah 66 active lina indigo bruno 57 paused farah juniper ivan 89 closed bruno juniper alice 102 ready hana delta bruno 91 pending lina fable bruno 70 ready kim cobalt ivan 48 active bruno delta kim 76 paused hana fable gus
gus farah bruno ivan alice bruno bruno ivan kim gus
46 paused chen amber ivan 32 closed lina delta bruno 1 ready kim birch lina 105 paused dina fable gus 113 pending ivan delta bruno 103 active bruno ember eli 101 paused lina grove hana 59 failed kim grove chen
ivan bruno lina gus bruno eli hana chen
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015211-p1
Print the final field from every line of input.
{print $NF}
83 ready ivan amber gus 88 closed eli grove farah 66 active lina indigo bruno 57 paused farah juniper ivan 89 closed bruno juniper alice 102 ready hana delta bruno 91 pending lina fable bruno 70 ready kim cobalt ivan 48 active bruno delta kim 76 paused hana fable gus
gus farah bruno ivan alice bruno bruno ivan kim gus
46 paused chen amber ivan 32 closed lina delta bruno 1 ready kim birch lina 105 paused dina fable gus 113 pending ivan delta bruno 103 active bruno ember eli 101 paused lina grove hana 59 failed kim grove chen
ivan bruno lina gus bruno eli hana chen
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015211
qwen/qwen3.7-plus
awkweave-0015212
Print the complete records where column 1 is at most 68.
$1 <= 68
72 kim juniper 118 bruno harbor 60 alice grove 16 gus harbor 15 hana cobalt 30 dina birch 41 farah ember 42 dina delta 21 ivan cobalt 4 lina cobalt
60 alice grove 16 gus harbor 15 hana cobalt 30 dina birch 41 farah ember 42 dina delta 21 ivan cobalt 4 lina cobalt
40 alice birch 92 gus indigo 39 jules harbor 99 bruno cobalt 87 dina cobalt 51 alice amber 16 eli birch 77 bruno cobalt
40 alice birch 39 jules harbor 51 alice amber 16 eli birch
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015212-p1
Output full records where the value in the first column is less than or equal to 68.
$1 <= 68
72 kim juniper 118 bruno harbor 60 alice grove 16 gus harbor 15 hana cobalt 30 dina birch 41 farah ember 42 dina delta 21 ivan cobalt 4 lina cobalt
60 alice grove 16 gus harbor 15 hana cobalt 30 dina birch 41 farah ember 42 dina delta 21 ivan cobalt 4 lina cobalt
40 alice birch 92 gus indigo 39 jules harbor 99 bruno cobalt 87 dina cobalt 51 alice amber 16 eli birch 77 bruno cobalt
40 alice birch 39 jules harbor 51 alice amber 16 eli birch
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015212
qwen/qwen3.7-plus
awkweave-0015213
Show whole lines whose 1st field is between 10 and 27, inclusive.
$1 >= 10 && $1 <= 27
28 ready dina grove 28 ready dina birch 23 failed bruno fable 24 pending kim juniper 11 failed dina grove 18 failed farah indigo
23 failed bruno fable 24 pending kim juniper 11 failed dina grove 18 failed farah indigo
6 paused dina fable 13 failed lina grove 21 pending lina delta 10 pending gus amber 3 active gus fable 29 active lina juniper 12 paused hana fable 30 active bruno grove 15 active hana harbor 15 paused ivan delta
13 failed lina grove 21 pending lina delta 10 pending gus amber 12 paused hana fable 15 active hana harbor 15 paused ivan delta
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015213-p1
Display entire lines where the first field falls within the inclusive range of 10 to 27.
$1 >= 10 && $1 <= 27
28 ready dina grove 28 ready dina birch 23 failed bruno fable 24 pending kim juniper 11 failed dina grove 18 failed farah indigo
23 failed bruno fable 24 pending kim juniper 11 failed dina grove 18 failed farah indigo
6 paused dina fable 13 failed lina grove 21 pending lina delta 10 pending gus amber 3 active gus fable 29 active lina juniper 12 paused hana fable 30 active bruno grove 15 active hana harbor 15 paused ivan delta
13 failed lina grove 21 pending lina delta 10 pending gus amber 12 paused hana fable 15 active hana harbor 15 paused ivan delta
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015213
qwen/qwen3.7-plus
awkweave-0015214
Print column 1 only for rows where column 4 is exactly paused.
$4 == "paused"{print $1}
gus harbor 3 paused chen ember 15 failed eli fable 95 failed alice harbor 89 active farah cobalt 112 pending eli delta 94 paused chen indigo 103 closed eli fable 104 failed
gus eli
gus fable 94 closed jules delta 15 failed gus indigo 12 closed chen birch 46 paused kim fable 117 active chen indigo 72 paused alice ember 46 failed chen harbor 114 pending jules harbor 72 failed dina fable 113 failed
chen chen
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015214-p1
Extract only the first column for rows where the fourth column matches 'paused' exactly.
$4 == "paused"{print $1}
gus harbor 3 paused chen ember 15 failed eli fable 95 failed alice harbor 89 active farah cobalt 112 pending eli delta 94 paused chen indigo 103 closed eli fable 104 failed
gus eli
gus fable 94 closed jules delta 15 failed gus indigo 12 closed chen birch 46 paused kim fable 117 active chen indigo 72 paused alice ember 46 failed chen harbor 114 pending jules harbor 72 failed dina fable 113 failed
chen chen
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015214
qwen/qwen3.7-plus
awkweave-0015215
Print all fields from lines where field 2 begins with INFO.
$2 ~ /^INFO/
indigo INFO 110 harbor ERROR 107 delta WARN 57 delta INFO 33 ember WARN 68 indigo ERROR 95
indigo INFO 110 delta INFO 33
juniper WARN 63 birch DEBUG 112 cobalt ERROR 39 birch DEBUG 70 indigo WARN 43 harbor DEBUG 2
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015215-p1
Print all fields from lines where the second field starts with the string 'INFO'.
$2 ~ /^INFO/
indigo INFO 110 harbor ERROR 107 delta WARN 57 delta INFO 33 ember WARN 68 indigo ERROR 95
indigo INFO 110 delta INFO 33
juniper WARN 63 birch DEBUG 112 cobalt ERROR 39 birch DEBUG 70 indigo WARN 43 harbor DEBUG 2
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015215
qwen/qwen3.7-plus
awkweave-0015216
Print every line except those containing the exact text amber.
$0 !~ /amber/
juniper 100 failed ember 12 paused cobalt 11 failed cobalt 91 ready juniper 11 paused amber 57 pending ember 68 active grove 84 closed amber 78 closed amber 999 active
juniper 100 failed ember 12 paused cobalt 11 failed cobalt 91 ready juniper 11 paused ember 68 active grove 84 closed
juniper 95 active indigo 69 active delta 99 ready indigo 4 paused juniper 24 failed grove 31 pending amber 999 active
juniper 95 active indigo 69 active delta 99 ready indigo 4 paused juniper 24 failed grove 31 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015216-p1
Output every line that does not contain the exact string 'amber'.
$0 !~ /amber/
juniper 100 failed ember 12 paused cobalt 11 failed cobalt 91 ready juniper 11 paused amber 57 pending ember 68 active grove 84 closed amber 78 closed amber 999 active
juniper 100 failed ember 12 paused cobalt 11 failed cobalt 91 ready juniper 11 paused ember 68 active grove 84 closed
juniper 95 active indigo 69 active delta 99 ready indigo 4 paused juniper 24 failed grove 31 pending amber 999 active
juniper 95 active indigo 69 active delta 99 ready indigo 4 paused juniper 24 failed grove 31 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015216
qwen/qwen3.7-plus
awkweave-0015217
Print lines 4 through 5, including both endpoints.
NR >= 4 && NR <= 5
chen amber 23 hana delta 15 hana birch 61 lina cobalt 21 alice juniper 22 chen fable 62 jules delta 42 alice grove 39 jules indigo 93
lina cobalt 21 alice juniper 22
bruno fable 27 farah indigo 13 gus amber 2 hana fable 6 chen cobalt 62 gus indigo 42
hana fable 6 chen cobalt 62
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015217-p1
Print lines 4 and 5, ensuring both are included.
NR >= 4 && NR <= 5
chen amber 23 hana delta 15 hana birch 61 lina cobalt 21 alice juniper 22 chen fable 62 jules delta 42 alice grove 39 jules indigo 93
lina cobalt 21 alice juniper 22
bruno fable 27 farah indigo 13 gus amber 2 hana fable 6 chen cobalt 62 gus indigo 42
hana fable 6 chen cobalt 62
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015217
qwen/qwen3.7-plus
awkweave-0015218
Output only the first 4 records.
NR <= 4
jules 31 amber alice 70 fable gus 21 ember gus 26 birch dina 70 harbor alice 66 cobalt
jules 31 amber alice 70 fable gus 21 ember gus 26 birch
jules 50 fable alice 40 fable alice 75 cobalt lina 106 ember alice 70 fable ivan 107 harbor kim 112 delta
jules 50 fable alice 40 fable alice 75 cobalt lina 106 ember
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015218-p1
Display only the initial 4 records.
NR <= 4
jules 31 amber alice 70 fable gus 21 ember gus 26 birch dina 70 harbor alice 66 cobalt
jules 31 amber alice 70 fable gus 21 ember gus 26 birch
jules 50 fable alice 40 fable alice 75 cobalt lina 106 ember alice 70 fable ivan 107 harbor kim 112 delta
jules 50 fable alice 40 fable alice 75 cobalt lina 106 ember
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015218
qwen/qwen3.7-plus
awkweave-0015219
Skip the first line and print every remaining line unchanged.
NR > 1
jules 104 grove eli 31 birch eli 43 grove alice 81 ember hana 67 fable ivan 107 amber
eli 31 birch eli 43 grove alice 81 ember hana 67 fable ivan 107 amber
hana 9 amber lina 72 fable bruno 2 birch gus 28 grove alice 50 grove bruno 84 indigo dina 55 birch alice 86 delta eli 91 indigo
lina 72 fable bruno 2 birch gus 28 grove alice 50 grove bruno 84 indigo dina 55 birch alice 86 delta eli 91 indigo
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015219-p1
Omit the first line and print all subsequent lines without modification.
NR > 1
jules 104 grove eli 31 birch eli 43 grove alice 81 ember hana 67 fable ivan 107 amber
eli 31 birch eli 43 grove alice 81 ember hana 67 fable ivan 107 amber
hana 9 amber lina 72 fable bruno 2 birch gus 28 grove alice 50 grove bruno 84 indigo dina 55 birch alice 86 delta eli 91 indigo
lina 72 fable bruno 2 birch gus 28 grove alice 50 grove bruno 84 indigo dina 55 birch alice 86 delta eli 91 indigo
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015219
qwen/qwen3.7-plus
awkweave-0015220
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
eli pending 119 hana ready 103 eli paused 48 bruno ready 40 farah paused 8 alice closed 38 ivan paused 59 hana closed 38 gus pending 40 jules paused 17
0
ivan ready 111 farah closed 89 lina active 92 chen ready 34 alice closed 12 eli active 68 kim active 94
3
count_matches
1
train
original-grammar
CC-BY-4.0
null
null