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-0011770-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
jules 14 closed bruno 9 active chen 2 ready jules 5 failed eli 21 active eli 17 ready
14 9 2 5 21 17
chen 16 closed hana 9 ready alice 30 closed gus 25 failed lina 27 failed farah 10 pending
16 9 30 25 27 10
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0011770
qwen/qwen3.7-plus
awkweave-0011771
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 23.
BEGIN{FS=OFS=","}$2>23{print $1}
hana,20,paused chen,16,paused ivan,3,closed dina,27,active eli,17,ready kim,13,active gus,22,failed chen,14,pending ivan,20,paused
dina
dina,14,ready lina,21,failed alice,23,closed lina,18,failed ivan,30,active bruno,3,failed alice,4,paused
ivan
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011771-p1
Process simple comma-separated values without quoted commas by printing the first column whenever the value in the second column is greater than 23.
BEGIN{FS=OFS=","}$2>23{print $1}
hana,20,paused chen,16,paused ivan,3,closed dina,27,active eli,17,ready kim,13,active gus,22,failed chen,14,pending ivan,20,paused
dina
dina,14,ready lina,21,failed alice,23,closed lina,18,failed ivan,30,active bruno,3,failed alice,4,paused
ivan
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011771
qwen/qwen3.7-plus
awkweave-0011772
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
jules birch 116 dina ember 23 ivan amber 67 jules grove 16 hana cobalt 5 gus cobalt 11 bruno ember 88
jules birch 116 dina ember 23 ivan amber 67 jules grove 16 hana cobalt 5 gus cobalt 11 bruno ember 88
jules indigo 94 gus amber 8 ivan indigo 111 dina delta 81 bruno harbor 23 jules ember 110
jules indigo 94 gus amber 8 ivan indigo 111 dina delta 81 bruno harbor 23 jules ember 110
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011772-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 birch 116 dina ember 23 ivan amber 67 jules grove 16 hana cobalt 5 gus cobalt 11 bruno ember 88
jules birch 116 dina ember 23 ivan amber 67 jules grove 16 hana cobalt 5 gus cobalt 11 bruno ember 88
jules indigo 94 gus amber 8 ivan indigo 111 dina delta 81 bruno harbor 23 jules ember 110
jules indigo 94 gus amber 8 ivan indigo 111 dina delta 81 bruno harbor 23 jules ember 110
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011772
qwen/qwen3.7-plus
awkweave-0011773
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
jules birch 85 closed chen delta 79 active alice ember 111 ready bruno delta 67 ready bruno cobalt 34 paused lina ember 34 pending gus grove 53 active dina juniper 28 paused jules birch 1 pending gus birch 61 closed
bruno cobalt 34 paused
kim fable 7 paused ivan delta 119 pending kim fable 27 active kim harbor 74 active chen fable 86 active dina indigo 104 failed dina harbor 63 closed eli birch 50 closed jules juniper 33 failed alice fable 0 closed
jules juniper 33 failed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011773-p1
Output the longest line from the input; in the event of a tie in length, select the line that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
jules birch 85 closed chen delta 79 active alice ember 111 ready bruno delta 67 ready bruno cobalt 34 paused lina ember 34 pending gus grove 53 active dina juniper 28 paused jules birch 1 pending gus birch 61 closed
bruno cobalt 34 paused
kim fable 7 paused ivan delta 119 pending kim fable 27 active kim harbor 74 active chen fable 86 active dina indigo 104 failed dina harbor 63 closed eli birch 50 closed jules juniper 33 failed alice fable 0 closed
jules juniper 33 failed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011773
qwen/qwen3.7-plus
awkweave-0011774
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
gus 102 jules 32 hana 88 eli 117 gus 57 alice 77 gus 92
gus 102 hana 88 gus 57 gus 92
lina 32 hana 71 chen 80 chen 13 alice 73 alice 42 dina 8
lina 32 chen 80 alice 73 dina 8
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011774-p1
Print every other line from the input, beginning with the first line (i.e., lines 1, 3, 5, etc.).
NR%2==1
gus 102 jules 32 hana 88 eli 117 gus 57 alice 77 gus 92
gus 102 hana 88 gus 57 gus 92
lina 32 hana 71 chen 80 chen 13 alice 73 alice 42 dina 8
lina 32 chen 80 alice 73 dina 8
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011774
qwen/qwen3.7-plus
awkweave-0011775
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
alpha birch 3 alpha grove 95 alpha indigo 62 gamma harbor 42 delta indigo 4 beta cobalt 11 alpha amber 104 alpha harbor 109
4
gamma delta 35 gamma delta 80 beta grove 37 gamma harbor 114 beta grove 118 gamma fable 60
2
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011775-p1
Calculate the number of unique values present in column 1 and output only this total count.
{if(!seen[$1]++)n++}END{print n+0}
alpha birch 3 alpha grove 95 alpha indigo 62 gamma harbor 42 delta indigo 4 beta cobalt 11 alpha amber 104 alpha harbor 109
4
gamma delta 35 gamma delta 80 beta grove 37 gamma harbor 114 beta grove 118 gamma fable 60
2
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011775
qwen/qwen3.7-plus
awkweave-0011776
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
hana 19 0 bruno 19 5 lina 11 24 farah 18 9 hana 9 27 kim 6 1 bruno 17 13
bruno 3.80 lina 0.46 farah 2.00 hana 0.33 kim 6.00 bruno 1.31
lina 3 0 kim 6 28 ivan 6 2 chen 30 5 gus 3 5 hana 30 24 kim 15 4 dina 16 15 chen 12 5
kim 0.21 ivan 3.00 chen 6.00 gus 0.60 hana 1.25 kim 3.75 dina 1.07 chen 2.40
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011776-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}
hana 19 0 bruno 19 5 lina 11 24 farah 18 9 hana 9 27 kim 6 1 bruno 17 13
bruno 3.80 lina 0.46 farah 2.00 hana 0.33 kim 6.00 bruno 1.31
lina 3 0 kim 6 28 ivan 6 2 chen 30 5 gus 3 5 hana 30 24 kim 15 4 dina 16 15 chen 12 5
kim 0.21 ivan 3.00 chen 6.00 gus 0.60 hana 1.25 kim 3.75 dina 1.07 chen 2.40
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011776
qwen/qwen3.7-plus
awkweave-0011777
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]}
dina harbor 19 alice birch 6 hana grove 14 chen juniper 29 lina amber 19 alice ember 23
chen juniper 29 alice ember 23 dina harbor 19
chen amber 8 alice indigo 21 gus harbor 22 alice birch 6 lina grove 26 hana birch 3
lina grove 26 gus harbor 22 alice indigo 21
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011777-p1
Display the three full records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any tied values.
{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]}
dina harbor 19 alice birch 6 hana grove 14 chen juniper 29 lina amber 19 alice ember 23
chen juniper 29 alice ember 23 dina harbor 19
chen amber 8 alice indigo 21 gus harbor 22 alice birch 6 lina grove 26 hana birch 3
lina grove 26 gus harbor 22 alice indigo 21
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011777
qwen/qwen3.7-plus
awkweave-0011778
For each line, output fields 2 and 1, in that order.
{print $2, $1}
41 bruno ivan gus 100 kim gus jules 100 gus jules farah 61 lina jules jules 61 eli gus chen 12 gus alice farah 1 lina jules bruno 114 farah ivan ivan
bruno 41 kim 100 gus 100 lina 61 eli 61 gus 12 lina 1 farah 114
103 hana bruno farah 53 ivan gus gus 90 alice jules bruno 107 alice bruno farah 105 eli kim alice 2 dina ivan eli 109 ivan dina hana 31 gus kim jules 58 ivan farah lina
hana 103 ivan 53 alice 90 alice 107 eli 105 dina 2 ivan 109 gus 31 ivan 58
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011778-p1
For every line, display the second field followed by the first field.
{print $2, $1}
41 bruno ivan gus 100 kim gus jules 100 gus jules farah 61 lina jules jules 61 eli gus chen 12 gus alice farah 1 lina jules bruno 114 farah ivan ivan
bruno 41 kim 100 gus 100 lina 61 eli 61 gus 12 lina 1 farah 114
103 hana bruno farah 53 ivan gus gus 90 alice jules bruno 107 alice bruno farah 105 eli kim alice 2 dina ivan eli 109 ivan dina hana 31 gus kim jules 58 ivan farah lina
hana 103 ivan 53 alice 90 alice 107 eli 105 dina 2 ivan 109 gus 31 ivan 58
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011778
qwen/qwen3.7-plus
awkweave-0011779
Print the last field of every input line.
{print $NF}
cobalt hana active indigo 27 78 grove cobalt gus active ember 83 11 indigo cobalt kim paused fable 95 98 harbor ember hana pending birch 46 47 birch juniper dina ready birch 111 0 ember ember dina pending delta 113 45 delta harbor jules paused cobalt 70 117 juniper grove gus pending cobalt 33 44 indigo harbor eli ready...
grove indigo harbor birch ember delta juniper indigo delta birch
juniper gus ready ember 54 52 grove grove lina ready juniper 93 13 birch ember alice ready cobalt 31 84 indigo indigo lina ready juniper 17 12 delta cobalt jules failed grove 20 26 amber delta bruno ready ember 60 5 harbor indigo kim active delta 109 96 birch indigo ivan pending amber 28 88 grove indigo chen ready juni...
grove birch indigo delta amber harbor birch grove fable
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011779-p1
Output the final field from each input line.
{print $NF}
cobalt hana active indigo 27 78 grove cobalt gus active ember 83 11 indigo cobalt kim paused fable 95 98 harbor ember hana pending birch 46 47 birch juniper dina ready birch 111 0 ember ember dina pending delta 113 45 delta harbor jules paused cobalt 70 117 juniper grove gus pending cobalt 33 44 indigo harbor eli ready...
grove indigo harbor birch ember delta juniper indigo delta birch
juniper gus ready ember 54 52 grove grove lina ready juniper 93 13 birch ember alice ready cobalt 31 84 indigo indigo lina ready juniper 17 12 delta cobalt jules failed grove 20 26 amber delta bruno ready ember 60 5 harbor indigo kim active delta 109 96 birch indigo ivan pending amber 28 88 grove indigo chen ready juni...
grove birch indigo delta amber harbor birch grove fable
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011779
qwen/qwen3.7-plus
awkweave-0011780
Print the complete records where column 3 is greater than 62.
$3 > 62
ember dina 71 pending delta dina 108 failed grove lina 119 paused juniper dina 112 ready delta ivan 90 active amber jules 87 pending cobalt hana 61 active grove dina 105 paused
ember dina 71 pending delta dina 108 failed grove lina 119 paused juniper dina 112 ready delta ivan 90 active amber jules 87 pending grove dina 105 paused
cobalt eli 78 ready harbor kim 49 active juniper bruno 104 failed juniper lina 59 pending ember ivan 94 pending grove gus 28 paused harbor kim 104 closed amber eli 51 pending delta hana 58 closed cobalt jules 108 closed
cobalt eli 78 ready juniper bruno 104 failed ember ivan 94 pending harbor kim 104 closed cobalt jules 108 closed
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011780-p1
Display full records where the value in the third column exceeds 62.
$3 > 62
ember dina 71 pending delta dina 108 failed grove lina 119 paused juniper dina 112 ready delta ivan 90 active amber jules 87 pending cobalt hana 61 active grove dina 105 paused
ember dina 71 pending delta dina 108 failed grove lina 119 paused juniper dina 112 ready delta ivan 90 active amber jules 87 pending grove dina 105 paused
cobalt eli 78 ready harbor kim 49 active juniper bruno 104 failed juniper lina 59 pending ember ivan 94 pending grove gus 28 paused harbor kim 104 closed amber eli 51 pending delta hana 58 closed cobalt jules 108 closed
cobalt eli 78 ready juniper bruno 104 failed ember ivan 94 pending harbor kim 104 closed cobalt jules 108 closed
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011780
qwen/qwen3.7-plus
awkweave-0011781
Show whole lines whose 2nd field is between 6 and 23, inclusive.
$2 >= 6 && $2 <= 23
delta 19 indigo paused delta 21 harbor failed juniper 18 juniper paused fable 11 cobalt closed harbor 7 amber ready indigo 9 juniper failed harbor 16 cobalt ready cobalt 2 harbor ready delta 25 amber active
delta 19 indigo paused delta 21 harbor failed juniper 18 juniper paused fable 11 cobalt closed harbor 7 amber ready indigo 9 juniper failed harbor 16 cobalt ready
ember 3 cobalt failed juniper 26 grove failed birch 25 juniper failed fable 13 juniper active ember 7 birch ready delta 30 cobalt ready grove 11 indigo failed ember 9 delta closed harbor 26 grove closed indigo 7 juniper ready
fable 13 juniper active ember 7 birch ready grove 11 indigo failed ember 9 delta closed indigo 7 juniper ready
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011781-p1
Show entire lines where the second field falls within the inclusive range of 6 to 23.
$2 >= 6 && $2 <= 23
delta 19 indigo paused delta 21 harbor failed juniper 18 juniper paused fable 11 cobalt closed harbor 7 amber ready indigo 9 juniper failed harbor 16 cobalt ready cobalt 2 harbor ready delta 25 amber active
delta 19 indigo paused delta 21 harbor failed juniper 18 juniper paused fable 11 cobalt closed harbor 7 amber ready indigo 9 juniper failed harbor 16 cobalt ready
ember 3 cobalt failed juniper 26 grove failed birch 25 juniper failed fable 13 juniper active ember 7 birch ready delta 30 cobalt ready grove 11 indigo failed ember 9 delta closed harbor 26 grove closed indigo 7 juniper ready
fable 13 juniper active ember 7 birch ready grove 11 indigo failed ember 9 delta closed indigo 7 juniper ready
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011781
qwen/qwen3.7-plus
awkweave-0011782
Print column 1 only for rows where column 2 is exactly pending.
$2 == "pending"{print $1}
alice active birch 120 eli pending delta 4 hana closed juniper 64 ivan pending birch 86 ivan pending delta 19 lina closed delta 104 bruno paused juniper 46 eli active indigo 103 hana closed delta 60
eli ivan ivan
farah ready cobalt 112 alice active birch 98 gus failed harbor 88 eli failed fable 113 dina pending cobalt 63 dina active fable 4 alice paused grove 104 eli paused juniper 89
dina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011782-p1
Output only the first column for rows where the second column is exactly pending.
$2 == "pending"{print $1}
alice active birch 120 eli pending delta 4 hana closed juniper 64 ivan pending birch 86 ivan pending delta 19 lina closed delta 104 bruno paused juniper 46 eli active indigo 103 hana closed delta 60
eli ivan ivan
farah ready cobalt 112 alice active birch 98 gus failed harbor 88 eli failed fable 113 dina pending cobalt 63 dina active fable 4 alice paused grove 104 eli paused juniper 89
dina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011782
qwen/qwen3.7-plus
awkweave-0011783
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
grove DEBUG 104 amber ERROR 16 indigo DEBUG 40 juniper INFO 119 fable DEBUG 49 birch ERROR 61 ember DEBUG 7 ember DEBUG 21 birch INFO 101 birch WARN 82
amber ERROR 16 birch ERROR 61
cobalt INFO 7 cobalt WARN 21 indigo ERROR 39 grove INFO 26 birch DEBUG 120 birch DEBUG 9
indigo ERROR 39
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011783-p1
Print all fields from lines where the second field starts with ERROR.
$2 ~ /^ERROR/
grove DEBUG 104 amber ERROR 16 indigo DEBUG 40 juniper INFO 119 fable DEBUG 49 birch ERROR 61 ember DEBUG 7 ember DEBUG 21 birch INFO 101 birch WARN 82
amber ERROR 16 birch ERROR 61
cobalt INFO 7 cobalt WARN 21 indigo ERROR 39 grove INFO 26 birch DEBUG 120 birch DEBUG 9
indigo ERROR 39
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011783
qwen/qwen3.7-plus
awkweave-0011784
Print every line except those containing the exact text delta.
$0 !~ /delta/
amber 120 active grove 89 ready amber 76 failed indigo 50 ready delta 80 pending cobalt 96 paused delta 119 closed birch 31 failed delta 999 active
amber 120 active grove 89 ready amber 76 failed indigo 50 ready cobalt 96 paused birch 31 failed
juniper 64 paused harbor 84 closed indigo 107 active juniper 88 failed fable 83 paused grove 34 failed cobalt 61 failed delta 999 active
juniper 64 paused harbor 84 closed indigo 107 active juniper 88 failed fable 83 paused grove 34 failed cobalt 61 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011784-p1
Output every line that does not contain the exact string delta.
$0 !~ /delta/
amber 120 active grove 89 ready amber 76 failed indigo 50 ready delta 80 pending cobalt 96 paused delta 119 closed birch 31 failed delta 999 active
amber 120 active grove 89 ready amber 76 failed indigo 50 ready cobalt 96 paused birch 31 failed
juniper 64 paused harbor 84 closed indigo 107 active juniper 88 failed fable 83 paused grove 34 failed cobalt 61 failed delta 999 active
juniper 64 paused harbor 84 closed indigo 107 active juniper 88 failed fable 83 paused grove 34 failed cobalt 61 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011784
qwen/qwen3.7-plus
awkweave-0011785
Print lines 2 through 5, including both endpoints.
NR >= 2 && NR <= 5
lina ember 65 farah cobalt 96 jules ember 116 gus harbor 8 hana fable 28 farah amber 49 kim cobalt 90 kim indigo 88 gus ember 23
farah cobalt 96 jules ember 116 gus harbor 8 hana fable 28
gus amber 87 gus ember 104 alice harbor 2 chen indigo 6 dina delta 39 eli delta 42 eli indigo 109 kim birch 25 gus juniper 34 ivan delta 97
gus ember 104 alice harbor 2 chen indigo 6 dina delta 39
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011785-p1
Display lines 2 through 5, inclusive of both endpoints.
NR >= 2 && NR <= 5
lina ember 65 farah cobalt 96 jules ember 116 gus harbor 8 hana fable 28 farah amber 49 kim cobalt 90 kim indigo 88 gus ember 23
farah cobalt 96 jules ember 116 gus harbor 8 hana fable 28
gus amber 87 gus ember 104 alice harbor 2 chen indigo 6 dina delta 39 eli delta 42 eli indigo 109 kim birch 25 gus juniper 34 ivan delta 97
gus ember 104 alice harbor 2 chen indigo 6 dina delta 39
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011785
qwen/qwen3.7-plus
awkweave-0011786
Output only the first 5 records.
NR <= 5
dina 100 cobalt lina 33 indigo gus 118 cobalt hana 50 birch jules 7 fable lina 62 indigo
dina 100 cobalt lina 33 indigo gus 118 cobalt hana 50 birch jules 7 fable
jules 77 delta ivan 5 amber lina 14 birch bruno 42 amber kim 90 birch ivan 102 grove ivan 103 fable lina 42 delta
jules 77 delta ivan 5 amber lina 14 birch bruno 42 amber kim 90 birch
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011786-p1
Output only the first 5 records.
NR <= 5
dina 100 cobalt lina 33 indigo gus 118 cobalt hana 50 birch jules 7 fable lina 62 indigo
dina 100 cobalt lina 33 indigo gus 118 cobalt hana 50 birch jules 7 fable
jules 77 delta ivan 5 amber lina 14 birch bruno 42 amber kim 90 birch ivan 102 grove ivan 103 fable lina 42 delta
jules 77 delta ivan 5 amber lina 14 birch bruno 42 amber kim 90 birch
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0011786
qwen/qwen3.7-plus
awkweave-0011787
Skip the first line and print every remaining line unchanged.
NR > 1
hana 75 indigo ivan 23 cobalt hana 17 birch eli 9 amber dina 85 amber jules 30 grove dina 23 birch dina 20 ember ivan 61 indigo
ivan 23 cobalt hana 17 birch eli 9 amber dina 85 amber jules 30 grove dina 23 birch dina 20 ember ivan 61 indigo
farah 84 harbor chen 36 delta lina 74 amber ivan 89 birch ivan 99 grove lina 44 juniper ivan 76 birch
chen 36 delta lina 74 amber ivan 89 birch ivan 99 grove lina 44 juniper ivan 76 birch
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011787-p1
Omit the first line and print all subsequent lines without modification.
NR > 1
hana 75 indigo ivan 23 cobalt hana 17 birch eli 9 amber dina 85 amber jules 30 grove dina 23 birch dina 20 ember ivan 61 indigo
ivan 23 cobalt hana 17 birch eli 9 amber dina 85 amber jules 30 grove dina 23 birch dina 20 ember ivan 61 indigo
farah 84 harbor chen 36 delta lina 74 amber ivan 89 birch ivan 99 grove lina 44 juniper ivan 76 birch
chen 36 delta lina 74 amber ivan 89 birch ivan 99 grove lina 44 juniper ivan 76 birch
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011787
qwen/qwen3.7-plus
awkweave-0011788
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
bruno paused 77 ivan pending 14 ivan closed 5 eli pending 5 dina closed 120 chen ready 57 alice failed 110 farah closed 120 ivan paused 88 alice paused 17
3
dina paused 27 bruno closed 51 eli paused 119 dina ready 36 kim paused 99 bruno ready 72 farah paused 62 dina paused 29 dina ready 62 lina failed 89
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011788-p1
Count the number of records where the second column is closed; output 0 if none are found.
$2 == "closed"{n++}END{print n+0}
bruno paused 77 ivan pending 14 ivan closed 5 eli pending 5 dina closed 120 chen ready 57 alice failed 110 farah closed 120 ivan paused 88 alice paused 17
3
dina paused 27 bruno closed 51 eli paused 119 dina ready 36 kim paused 99 bruno ready 72 farah paused 62 dina paused 29 dina ready 62 lina failed 89
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011788
qwen/qwen3.7-plus
awkweave-0011789
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
22 fable ivan 22 juniper farah 21 cobalt bruno 23 indigo jules 6 fable jules 25 juniper kim
119
5 indigo alice 6 fable farah 6 harbor chen 26 indigo ivan 30 indigo jules 12 cobalt hana 27 grove chen 19 cobalt alice 1 ember chen
132
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011789-p1
Compute and print the total sum of integer values in the first column.
{s+=$1}END{print s+0}
22 fable ivan 22 juniper farah 21 cobalt bruno 23 indigo jules 6 fable jules 25 juniper kim
119
5 indigo alice 6 fable farah 6 harbor chen 26 indigo ivan 30 indigo jules 12 cobalt hana 27 grove chen 19 cobalt alice 1 ember chen
132
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011789
qwen/qwen3.7-plus
awkweave-0011800
From column 1, print 3 characters starting at character 3.
{print substr($1,3,3)}
fable 32 ember 93 birch 3 grove 15 fable 86 delta 44 grove 113 cobalt 69 indigo 33 birch 69
ble ber rch ove ble lta ove bal dig rch
juniper 115 birch 25 cobalt 59 ember 26 fable 62 birch 96 juniper 28 harbor 48 indigo 18
nip rch bal ber ble rch nip rbo dig
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011800-p1
Extract and display a 3-character substring from the first column, beginning at the third character position.
{print substr($1,3,3)}
fable 32 ember 93 birch 3 grove 15 fable 86 delta 44 grove 113 cobalt 69 indigo 33 birch 69
ble ber rch ove ble lta ove bal dig rch
juniper 115 birch 25 cobalt 59 ember 26 fable 62 birch 96 juniper 28 harbor 48 indigo 18
nip rch bal ber ble rch nip rbo dig
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011800
qwen/qwen3.7-plus
awkweave-0011801
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
grove_grove 89 birch_delta 69 harbor_juniper 7 amber_juniper 81 harbor_harbor 9 fable_indigo 68 juniper_birch 27 grove_birch 2
grove grove birch delta harbor juniper amber juniper harbor harbor fable indigo juniper birch grove birch
birch_ember 89 harbor_grove 21 grove_amber 44 delta_indigo 99 birch_grove 118 amber_ember 117
birch ember harbor grove grove amber delta indigo birch grove amber ember
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011801-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
grove_grove 89 birch_delta 69 harbor_juniper 7 amber_juniper 81 harbor_harbor 9 fable_indigo 68 juniper_birch 27 grove_birch 2
grove grove birch delta harbor juniper amber juniper harbor harbor fable indigo juniper birch grove birch
birch_ember 89 harbor_grove 21 grove_amber 44 delta_indigo 99 birch_grove 118 amber_ember 117
birch ember harbor grove grove amber delta indigo birch grove amber ember
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011801
qwen/qwen3.7-plus
awkweave-0011802
Reverse the order of fields on every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
ivan juniper 49 pending gus delta 98 ready lina fable 39 pending ivan fable 93 ready hana amber 82 pending ivan birch 34 closed hana harbor 33 failed bruno indigo 99 closed
pending 49 juniper ivan ready 98 delta gus pending 39 fable lina ready 93 fable ivan pending 82 amber hana closed 34 birch ivan failed 33 harbor hana closed 99 indigo bruno
kim harbor 0 active bruno grove 116 pending alice indigo 79 ready eli juniper 97 ready eli grove 23 paused hana birch 32 ready farah amber 76 active dina amber 82 closed
active 0 harbor kim pending 116 grove bruno ready 79 indigo alice ready 97 juniper eli paused 23 grove eli ready 32 birch hana active 76 amber farah closed 82 amber dina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011802-p1
Output every field on each line in reverse order.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
ivan juniper 49 pending gus delta 98 ready lina fable 39 pending ivan fable 93 ready hana amber 82 pending ivan birch 34 closed hana harbor 33 failed bruno indigo 99 closed
pending 49 juniper ivan ready 98 delta gus pending 39 fable lina ready 93 fable ivan pending 82 amber hana closed 34 birch ivan failed 33 harbor hana closed 99 indigo bruno
kim harbor 0 active bruno grove 116 pending alice indigo 79 ready eli juniper 97 ready eli grove 23 paused hana birch 32 ready farah amber 76 active dina amber 82 closed
active 0 harbor kim pending 116 grove bruno ready 79 indigo alice ready 97 juniper eli paused 23 grove eli ready 32 birch hana active 76 amber farah closed 82 amber dina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011802
qwen/qwen3.7-plus
awkweave-0011803
Print the number of whitespace-separated fields on each line.
{print NF}
dina juniper 27 ready hana amber 88 paused gus harbor 12 failed kim grove 115 pending kim amber 29 ready gus ember 42 ready hana indigo 30 pending lina grove 55 pending eli indigo 110 ready hana harbor 60 closed
4 4 4 4 4 4 4 4 4 4
gus juniper 38 paused eli cobalt 96 pending chen indigo 107 closed eli cobalt 100 paused gus delta 28 pending jules juniper 44 pending jules cobalt 98 failed farah grove 16 active hana delta 82 pending dina birch 28 active
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011803-p1
Display the count of whitespace-delimited fields for each line.
{print NF}
dina juniper 27 ready hana amber 88 paused gus harbor 12 failed kim grove 115 pending kim amber 29 ready gus ember 42 ready hana indigo 30 pending lina grove 55 pending eli indigo 110 ready hana harbor 60 closed
4 4 4 4 4 4 4 4 4 4
gus juniper 38 paused eli cobalt 96 pending chen indigo 107 closed eli cobalt 100 paused gus delta 28 pending jules juniper 44 pending jules cobalt 98 failed farah grove 16 active hana delta 82 pending dina birch 28 active
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011803
qwen/qwen3.7-plus
awkweave-0011804
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 delta 78 farah beta 59 dina delta 34 dina beta 41 hana alpha 3 lina beta 70 kim delta 62 jules delta 2 alice beta 36
delta 4 beta 4 alpha 1
ivan gamma 90 bruno gamma 62 kim alpha 61 jules delta 10 chen gamma 91 hana beta 89 dina gamma 33 kim delta 28
gamma 4 alpha 1 delta 2 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011804-p1
Tally the occurrences of each unique value in the second column and print the value alongside its count, maintaining the order of their 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 delta 78 farah beta 59 dina delta 34 dina beta 41 hana alpha 3 lina beta 70 kim delta 62 jules delta 2 alice beta 36
delta 4 beta 4 alpha 1
ivan gamma 90 bruno gamma 62 kim alpha 61 jules delta 10 chen gamma 91 hana beta 89 dina gamma 33 kim delta 28
gamma 4 alpha 1 delta 2 beta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011804
qwen/qwen3.7-plus
awkweave-0011805
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
lina beta 13 bruno beta 16 kim alpha 11 ivan delta 14 hana delta 20 ivan beta 28 dina beta 12 chen beta 24 bruno gamma 11 lina alpha 11
beta 93 alpha 22 delta 34 gamma 11
lina gamma 9 jules gamma 19 lina gamma 11 chen delta 30 kim gamma 8 lina gamma 22
gamma 69 delta 30
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011805-p1
Calculate the sum of the third column grouped by the second column's categories, presenting the results in the order the groups 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]]}
lina beta 13 bruno beta 16 kim alpha 11 ivan delta 14 hana delta 20 ivan beta 28 dina beta 12 chen beta 24 bruno gamma 11 lina alpha 11
beta 93 alpha 22 delta 34 gamma 11
lina gamma 9 jules gamma 19 lina gamma 11 chen delta 30 kim gamma 8 lina gamma 22
gamma 69 delta 30
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011805
qwen/qwen3.7-plus
awkweave-0011806
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 45 alpha indigo 9 alpha birch 50 delta harbor 47 alpha grove 107 alpha delta 81 alpha harbor 19 beta delta 103 delta delta 36
alpha 5 delta 2
delta juniper 26 alpha harbor 34 delta juniper 36 delta grove 39 delta cobalt 37 beta harbor 55 beta cobalt 83 delta birch 52 gamma harbor 99 alpha juniper 100
delta 5 alpha 2 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011806-p1
List each duplicate value from the first column along with its frequency, sorted by the order of first occurrence.
{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 45 alpha indigo 9 alpha birch 50 delta harbor 47 alpha grove 107 alpha delta 81 alpha harbor 19 beta delta 103 delta delta 36
alpha 5 delta 2
delta juniper 26 alpha harbor 34 delta juniper 36 delta grove 39 delta cobalt 37 beta harbor 55 beta cobalt 83 delta birch 52 gamma harbor 99 alpha juniper 100
delta 5 alpha 2 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011806
qwen/qwen3.7-plus
awkweave-0011807
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 region state record_id r001 lina 30 failed r002 hana 4 failed r003 ivan 14 closed r004 chen 10 failed r005 ivan 25 failed r006 farah 11 ready
failed failed closed failed failed ready
score region state record_id r001 gus 22 active r002 chen 5 failed r003 farah 19 ready r004 jules 26 closed r005 eli 17 pending r006 jules 2 failed r007 bruno 15 paused
active failed ready closed pending failed paused
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011807-p1
Treating the initial 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 region state record_id r001 lina 30 failed r002 hana 4 failed r003 ivan 14 closed r004 chen 10 failed r005 ivan 25 failed r006 farah 11 ready
failed failed closed failed failed ready
score region state record_id r001 gus 22 active r002 chen 5 failed r003 farah 19 ready r004 jules 26 closed r005 eli 17 pending r006 jules 2 failed r007 bruno 15 paused
active failed ready closed pending failed paused
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011807
qwen/qwen3.7-plus
awkweave-0011808
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 lina 13 closed r002 jules 18 paused r003 gus 27 closed r004 farah 17 paused r005 alice 26 ready r006 ivan 25 active r007 gus 30 active r008 ivan 24 failed r009 eli 18 failed r010 eli 2 paused
lina jules gus farah alice ivan gus ivan eli
record_id display_name score state r001 ivan 2 closed r002 bruno 14 pending r003 jules 25 ready r004 jules 22 paused r005 gus 9 failed r006 hana 9 active r007 lina 16 paused r008 chen 8 active r009 farah 19 paused
bruno jules jules lina farah
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011808-p1
Ignoring the header row, print the display_name field for records where the score is strictly 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 lina 13 closed r002 jules 18 paused r003 gus 27 closed r004 farah 17 paused r005 alice 26 ready r006 ivan 25 active r007 gus 30 active r008 ivan 24 failed r009 eli 18 failed r010 eli 2 paused
lina jules gus farah alice ivan gus ivan eli
record_id display_name score state r001 ivan 2 closed r002 bruno 14 pending r003 jules 25 ready r004 jules 22 paused r005 gus 9 failed r006 hana 9 active r007 lina 16 paused r008 chen 8 active r009 farah 19 paused
bruno jules jules lina farah
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011808
qwen/qwen3.7-plus
awkweave-0011809
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
jules 30 paused dina 24 active lina 23 active lina 14 ready hana 29 paused dina 19 paused jules 3 failed gus 2 paused
jules dina lina lina hana dina jules gus
bruno 8 ready hana 8 ready farah 12 active ivan 13 active alice 15 failed bruno 7 ready jules 9 closed lina 14 failed eli 7 ready
bruno hana farah ivan alice bruno jules lina eli
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011809-p1
Given tab-separated input, extract and print the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
jules 30 paused dina 24 active lina 23 active lina 14 ready hana 29 paused dina 19 paused jules 3 failed gus 2 paused
jules dina lina lina hana dina jules gus
bruno 8 ready hana 8 ready farah 12 active ivan 13 active alice 15 failed bruno 7 ready jules 9 closed lina 14 failed eli 7 ready
bruno hana farah ivan alice bruno jules lina eli
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011809
qwen/qwen3.7-plus
awkweave-0011810
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 13.
BEGIN{FS=OFS=","}$2>13{print $1}
chen,21,pending bruno,20,pending alice,24,paused lina,22,active chen,6,ready hana,25,closed lina,29,pending alice,16,failed ivan,28,closed lina,30,closed
chen bruno alice lina hana lina alice ivan lina
ivan,2,failed alice,2,paused hana,5,ready gus,24,active gus,21,failed ivan,29,ready kim,16,paused farah,3,closed eli,5,active
gus gus ivan kim
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011810-p1
For simple comma-separated input without quoted commas, print the first column only if the second column's value is greater than 13.
BEGIN{FS=OFS=","}$2>13{print $1}
chen,21,pending bruno,20,pending alice,24,paused lina,22,active chen,6,ready hana,25,closed lina,29,pending alice,16,failed ivan,28,closed lina,30,closed
chen bruno alice lina hana lina alice ivan lina
ivan,2,failed alice,2,paused hana,5,ready gus,24,active gus,21,failed ivan,29,ready kim,16,paused farah,3,closed eli,5,active
gus gus ivan kim
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011810
qwen/qwen3.7-plus
awkweave-0011811
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
alice harbor 34 bruno birch 73 dina grove 25 farah delta 49 eli amber 86 farah juniper 8 farah indigo 110 kim juniper 65 kim grove 120 chen fable 18
alice harbor 34 bruno birch 73 dina grove 25 farah delta 49 eli amber 86 farah juniper 8 farah indigo 110 kim juniper 65 kim grove 120 chen fable 18
alice grove 2 farah ember 8 kim grove 1 bruno cobalt 37 hana grove 63 gus birch 32
alice grove 2 farah ember 8 kim grove 1 bruno cobalt 37 hana grove 63 gus birch 32
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011811-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
alice harbor 34 bruno birch 73 dina grove 25 farah delta 49 eli amber 86 farah juniper 8 farah indigo 110 kim juniper 65 kim grove 120 chen fable 18
alice harbor 34 bruno birch 73 dina grove 25 farah delta 49 eli amber 86 farah juniper 8 farah indigo 110 kim juniper 65 kim grove 120 chen fable 18
alice grove 2 farah ember 8 kim grove 1 bruno cobalt 37 hana grove 63 gus birch 32
alice grove 2 farah ember 8 kim grove 1 bruno cobalt 37 hana grove 63 gus birch 32
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011811
qwen/qwen3.7-plus
awkweave-0011812
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
jules ember 1 closed lina amber 5 ready bruno grove 103 active gus juniper 22 ready lina grove 87 active chen fable 39 pending dina ember 82 pending bruno fable 98 paused farah delta 98 ready
bruno grove 103 active
kim fable 33 active alice juniper 20 ready chen delta 10 ready alice grove 106 failed hana amber 44 ready kim fable 61 failed eli juniper 54 pending
alice juniper 20 ready
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011812-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}
jules ember 1 closed lina amber 5 ready bruno grove 103 active gus juniper 22 ready lina grove 87 active chen fable 39 pending dina ember 82 pending bruno fable 98 paused farah delta 98 ready
bruno grove 103 active
kim fable 33 active alice juniper 20 ready chen delta 10 ready alice grove 106 failed hana amber 44 ready kim fable 61 failed eli juniper 54 pending
alice juniper 20 ready
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011812
qwen/qwen3.7-plus
awkweave-0011813
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
hana 87 hana 57 jules 24 kim 77 dina 101 dina 25 kim 38
hana 57 kim 77 dina 25
eli 64 hana 21 chen 8 farah 27 bruno 10 bruno 112
hana 21 farah 27 bruno 112
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011813-p1
Print every second line of the input, beginning with line 2 (i.e., lines 2, 4, 6, etc.).
NR%2==0
hana 87 hana 57 jules 24 kim 77 dina 101 dina 25 kim 38
hana 57 kim 77 dina 25
eli 64 hana 21 chen 8 farah 27 bruno 10 bruno 112
hana 21 farah 27 bruno 112
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011813
qwen/qwen3.7-plus
awkweave-0011814
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha fable 118 beta juniper 66 delta fable 11 alpha delta 113 beta ember 87 delta cobalt 4 gamma ember 58
5
delta cobalt 48 delta delta 110 alpha fable 58 delta birch 52 gamma harbor 43 delta birch 0 beta grove 82 gamma indigo 59
7
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011814-p1
Calculate and output only the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
alpha fable 118 beta juniper 66 delta fable 11 alpha delta 113 beta ember 87 delta cobalt 4 gamma ember 58
5
delta cobalt 48 delta delta 110 alpha fable 58 delta birch 52 gamma harbor 43 delta birch 0 beta grove 82 gamma indigo 59
7
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011814
qwen/qwen3.7-plus
awkweave-0011815
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}
dina 27 0 alice 1 27 dina 7 5 eli 25 16 gus 7 18 dina 30 12 farah 9 28 dina 15 21
alice 0.04 dina 1.40 eli 1.56 gus 0.39 dina 2.50 farah 0.32 dina 0.71
gus 24 0 gus 19 24 dina 16 1 chen 3 9 lina 5 25 alice 23 19 ivan 5 21
gus 0.79 dina 16.00 chen 0.33 lina 0.20 alice 1.21 ivan 0.24
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011815-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}
dina 27 0 alice 1 27 dina 7 5 eli 25 16 gus 7 18 dina 30 12 farah 9 28 dina 15 21
alice 0.04 dina 1.40 eli 1.56 gus 0.39 dina 2.50 farah 0.32 dina 0.71
gus 24 0 gus 19 24 dina 16 1 chen 3 9 lina 5 25 alice 23 19 ivan 5 21
gus 0.79 dina 16.00 chen 0.33 lina 0.20 alice 1.21 ivan 0.24
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011815
qwen/qwen3.7-plus
awkweave-0011816
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 amber 12 hana harbor 23 bruno amber 3 gus delta 10 eli grove 22 ivan amber 18 gus fable 24 farah grove 20
gus fable 24 hana harbor 23 eli grove 22
chen delta 4 hana cobalt 27 kim fable 11 bruno harbor 3 farah grove 26 hana juniper 18 dina ember 23 bruno delta 10 hana indigo 4 dina cobalt 16
hana cobalt 27 farah grove 26 dina ember 23
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011816-p1
Display the top three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
hana amber 12 hana harbor 23 bruno amber 3 gus delta 10 eli grove 22 ivan amber 18 gus fable 24 farah grove 20
gus fable 24 hana harbor 23 eli grove 22
chen delta 4 hana cobalt 27 kim fable 11 bruno harbor 3 farah grove 26 hana juniper 18 dina ember 23 bruno delta 10 hana indigo 4 dina cobalt 16
hana cobalt 27 farah grove 26 dina ember 23
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011816
qwen/qwen3.7-plus
awkweave-0011817
Select the 4th and 3rd fields in that order.
{print $4, $3}
20 grove ivan ember 25 indigo chen birch 88 juniper eli grove 25 amber chen birch 76 fable dina ember 48 indigo jules birch
ember ivan birch chen grove eli birch chen ember dina birch jules
89 amber ivan ember 84 indigo farah cobalt 23 grove eli delta 3 ember chen indigo 14 ember gus birch 33 birch hana birch 108 amber farah birch 58 birch dina amber 33 fable alice fable
ember ivan cobalt farah delta eli indigo chen birch gus birch hana birch farah amber dina fable alice
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011817-p1
Extract and print the fourth field followed by the third field, in that specific sequence.
{print $4, $3}
20 grove ivan ember 25 indigo chen birch 88 juniper eli grove 25 amber chen birch 76 fable dina ember 48 indigo jules birch
ember ivan birch chen grove eli birch chen ember dina birch jules
89 amber ivan ember 84 indigo farah cobalt 23 grove eli delta 3 ember chen indigo 14 ember gus birch 33 birch hana birch 108 amber farah birch 58 birch dina amber 33 fable alice fable
ember ivan cobalt farah delta eli indigo chen birch gus birch hana birch farah amber dina fable alice
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011817
qwen/qwen3.7-plus
awkweave-0011818
Print the last field of every input line.
{print $NF}
99 eli 52 103 cobalt 38 dina 46 64 grove 56 ivan 94 95 fable 79 jules 25 23 ember 50 farah 95 100 harbor 34 lina 66 60 delta 87 dina 69 24 harbor
cobalt grove fable ember harbor delta harbor
28 eli 5 57 grove 112 farah 14 17 juniper 35 kim 104 14 amber 1 farah 73 49 juniper 113 hana 37 54 delta 104 lina 56 71 birch 52 chen 70 79 grove
grove juniper amber juniper delta birch grove
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011818-p1
Output the final field from every line in the input.
{print $NF}
99 eli 52 103 cobalt 38 dina 46 64 grove 56 ivan 94 95 fable 79 jules 25 23 ember 50 farah 95 100 harbor 34 lina 66 60 delta 87 dina 69 24 harbor
cobalt grove fable ember harbor delta harbor
28 eli 5 57 grove 112 farah 14 17 juniper 35 kim 104 14 amber 1 farah 73 49 juniper 113 hana 37 54 delta 104 lina 56 71 birch 52 chen 70 79 grove
grove juniper amber juniper delta birch grove
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011818
qwen/qwen3.7-plus
awkweave-0011819
Print the complete records where column 4 is greater than 75.
$4 > 75
active cobalt ready 47 chen paused cobalt pending 66 hana active amber failed 111 hana ready harbor failed 46 lina paused delta failed 102 lina paused fable active 95 jules
active amber failed 111 hana paused delta failed 102 lina paused fable active 95 jules
paused indigo pending 81 kim failed cobalt paused 50 lina paused delta active 85 lina ready juniper failed 16 hana ready ember failed 119 lina pending indigo failed 62 kim failed fable active 30 chen active juniper ready 115 dina closed amber paused 12 eli paused ember paused 28 hana
paused indigo pending 81 kim paused delta active 85 lina ready ember failed 119 lina active juniper ready 115 dina
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011819-p1
Print the full records for which the value in the fourth column exceeds 75.
$4 > 75
active cobalt ready 47 chen paused cobalt pending 66 hana active amber failed 111 hana ready harbor failed 46 lina paused delta failed 102 lina paused fable active 95 jules
active amber failed 111 hana paused delta failed 102 lina paused fable active 95 jules
paused indigo pending 81 kim failed cobalt paused 50 lina paused delta active 85 lina ready juniper failed 16 hana ready ember failed 119 lina pending indigo failed 62 kim failed fable active 30 chen active juniper ready 115 dina closed amber paused 12 eli paused ember paused 28 hana
paused indigo pending 81 kim paused delta active 85 lina ready ember failed 119 lina active juniper ready 115 dina
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011819
qwen/qwen3.7-plus
awkweave-0011820
Show whole lines whose 3rd field is between 9 and 24, inclusive.
$3 >= 9 && $3 <= 24
pending active 12 harbor paused ready 26 grove failed active 14 birch ready paused 9 cobalt pending paused 8 cobalt active active 19 ember failed paused 8 delta pending pending 28 harbor failed pending 15 indigo ready active 10 amber
pending active 12 harbor failed active 14 birch ready paused 9 cobalt active active 19 ember failed pending 15 indigo ready active 10 amber
ready closed 17 ember closed paused 11 amber closed active 19 delta active failed 5 grove paused closed 1 delta active active 12 harbor
ready closed 17 ember closed paused 11 amber closed active 19 delta active active 12 harbor
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011820-p1
Display entire lines where the value in the third field falls within the inclusive range of 9 to 24.
$3 >= 9 && $3 <= 24
pending active 12 harbor paused ready 26 grove failed active 14 birch ready paused 9 cobalt pending paused 8 cobalt active active 19 ember failed paused 8 delta pending pending 28 harbor failed pending 15 indigo ready active 10 amber
pending active 12 harbor failed active 14 birch ready paused 9 cobalt active active 19 ember failed pending 15 indigo ready active 10 amber
ready closed 17 ember closed paused 11 amber closed active 19 delta active failed 5 grove paused closed 1 delta active active 12 harbor
ready closed 17 ember closed paused 11 amber closed active 19 delta active active 12 harbor
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011820
qwen/qwen3.7-plus
awkweave-0011821
Print column 1 only for rows where column 4 is exactly failed.
$4 == "failed"{print $1}
bruno juniper 68 ready jules ember 47 active chen birch 59 failed gus fable 2 active farah cobalt 103 ready hana fable 46 paused
chen
ivan indigo 38 active bruno delta 75 ready jules delta 55 ready jules grove 85 pending gus harbor 73 paused ivan cobalt 98 paused chen fable 78 closed hana delta 83 paused chen indigo 64 paused
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011821-p1
Output only the first column for rows where the fourth column contains exactly the text 'failed'.
$4 == "failed"{print $1}
bruno juniper 68 ready jules ember 47 active chen birch 59 failed gus fable 2 active farah cobalt 103 ready hana fable 46 paused
chen
ivan indigo 38 active bruno delta 75 ready jules delta 55 ready jules grove 85 pending gus harbor 73 paused ivan cobalt 98 paused chen fable 78 closed hana delta 83 paused chen indigo 64 paused
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011821
qwen/qwen3.7-plus
awkweave-0011822
Print all fields from lines where field 2 begins with INFO.
$2 ~ /^INFO/
26 DEBUG grove 52 ERROR juniper 25 INFO grove 74 ERROR harbor 104 WARN delta 105 ERROR harbor 25 WARN grove 32 WARN juniper 116 ERROR fable 114 INFO amber
25 INFO grove 114 INFO amber
108 INFO harbor 71 DEBUG indigo 74 WARN ember 87 ERROR birch 4 ERROR ember 37 INFO indigo 100 DEBUG indigo 47 WARN delta 13 INFO fable 43 ERROR harbor
108 INFO harbor 37 INFO indigo 13 INFO fable
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011822-p1
Print all fields from any line where the second field starts with the prefix 'INFO'.
$2 ~ /^INFO/
26 DEBUG grove 52 ERROR juniper 25 INFO grove 74 ERROR harbor 104 WARN delta 105 ERROR harbor 25 WARN grove 32 WARN juniper 116 ERROR fable 114 INFO amber
25 INFO grove 114 INFO amber
108 INFO harbor 71 DEBUG indigo 74 WARN ember 87 ERROR birch 4 ERROR ember 37 INFO indigo 100 DEBUG indigo 47 WARN delta 13 INFO fable 43 ERROR harbor
108 INFO harbor 37 INFO indigo 13 INFO fable
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011822
qwen/qwen3.7-plus
awkweave-0011823
Print every line except those containing the exact text harbor.
$0 !~ /harbor/
ember 86 failed fable 19 paused ember 77 ready indigo 60 closed grove 25 pending juniper 15 active cobalt 111 active harbor 999 active
ember 86 failed fable 19 paused ember 77 ready indigo 60 closed grove 25 pending juniper 15 active cobalt 111 active
indigo 50 failed grove 9 failed amber 11 failed indigo 24 pending ember 70 ready harbor 114 closed juniper 68 failed ember 83 active grove 16 failed amber 67 ready harbor 999 active
indigo 50 failed grove 9 failed amber 11 failed indigo 24 pending ember 70 ready juniper 68 failed ember 83 active grove 16 failed amber 67 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011823-p1
Output every line from the input except those that contain the exact string 'harbor'.
$0 !~ /harbor/
ember 86 failed fable 19 paused ember 77 ready indigo 60 closed grove 25 pending juniper 15 active cobalt 111 active harbor 999 active
ember 86 failed fable 19 paused ember 77 ready indigo 60 closed grove 25 pending juniper 15 active cobalt 111 active
indigo 50 failed grove 9 failed amber 11 failed indigo 24 pending ember 70 ready harbor 114 closed juniper 68 failed ember 83 active grove 16 failed amber 67 ready harbor 999 active
indigo 50 failed grove 9 failed amber 11 failed indigo 24 pending ember 70 ready juniper 68 failed ember 83 active grove 16 failed amber 67 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011823
qwen/qwen3.7-plus
awkweave-0011824
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
gus delta 99 kim indigo 39 bruno harbor 23 lina indigo 90 dina birch 51 kim delta 4 kim harbor 20 farah delta 105
kim indigo 39 bruno harbor 23
bruno juniper 28 eli ember 23 alice ember 42 lina grove 114 bruno amber 98 hana juniper 74 kim harbor 18 dina delta 104 chen birch 10
eli ember 23 alice ember 42
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011824-p1
Display lines 2 to 3 inclusive.
NR >= 2 && NR <= 3
gus delta 99 kim indigo 39 bruno harbor 23 lina indigo 90 dina birch 51 kim delta 4 kim harbor 20 farah delta 105
kim indigo 39 bruno harbor 23
bruno juniper 28 eli ember 23 alice ember 42 lina grove 114 bruno amber 98 hana juniper 74 kim harbor 18 dina delta 104 chen birch 10
eli ember 23 alice ember 42
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011824
qwen/qwen3.7-plus
awkweave-0011825
Output only the first 2 records.
NR <= 2
farah 28 delta lina 58 grove chen 11 delta chen 96 cobalt eli 66 delta eli 10 cobalt jules 41 cobalt
farah 28 delta lina 58 grove
farah 100 grove bruno 107 grove dina 93 delta dina 67 juniper dina 91 cobalt kim 87 amber lina 116 juniper farah 61 ember
farah 100 grove bruno 107 grove
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011825-p1
Output just the initial 2 records.
NR <= 2
farah 28 delta lina 58 grove chen 11 delta chen 96 cobalt eli 66 delta eli 10 cobalt jules 41 cobalt
farah 28 delta lina 58 grove
farah 100 grove bruno 107 grove dina 93 delta dina 67 juniper dina 91 cobalt kim 87 amber lina 116 juniper farah 61 ember
farah 100 grove bruno 107 grove
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011825
qwen/qwen3.7-plus
awkweave-0011826
Skip the first line and print every remaining line unchanged.
NR > 1
dina 66 amber hana 84 indigo bruno 30 juniper jules 38 amber gus 87 grove gus 43 ember
hana 84 indigo bruno 30 juniper jules 38 amber gus 87 grove gus 43 ember
lina 17 indigo kim 10 amber ivan 100 harbor ivan 43 delta gus 11 harbor bruno 82 cobalt alice 63 amber
kim 10 amber ivan 100 harbor ivan 43 delta gus 11 harbor bruno 82 cobalt alice 63 amber
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011826-p1
Omit the first line and output all subsequent lines as they are.
NR > 1
dina 66 amber hana 84 indigo bruno 30 juniper jules 38 amber gus 87 grove gus 43 ember
hana 84 indigo bruno 30 juniper jules 38 amber gus 87 grove gus 43 ember
lina 17 indigo kim 10 amber ivan 100 harbor ivan 43 delta gus 11 harbor bruno 82 cobalt alice 63 amber
kim 10 amber ivan 100 harbor ivan 43 delta gus 11 harbor bruno 82 cobalt alice 63 amber
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011826
qwen/qwen3.7-plus
awkweave-0011827
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
dina closed 0 jules ready 99 farah paused 80 lina closed 81 gus pending 56 lina failed 47 chen active 32 jules active 12 chen pending 7 farah active 34
3
jules paused 105 eli active 36 jules paused 7 jules pending 26 bruno paused 28 lina failed 31 farah paused 60 hana paused 92 bruno closed 19
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011827-p1
Tally records where column 2 is 'active' and print the count, defaulting to 0 if empty.
$2 == "active"{n++}END{print n+0}
dina closed 0 jules ready 99 farah paused 80 lina closed 81 gus pending 56 lina failed 47 chen active 32 jules active 12 chen pending 7 farah active 34
3
jules paused 105 eli active 36 jules paused 7 jules pending 26 bruno paused 28 lina failed 31 farah paused 60 hana paused 92 bruno closed 19
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011827
qwen/qwen3.7-plus
awkweave-0011828
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
bruno grove 22 dina indigo 16 jules delta 26 chen ember 22 ivan grove 8 hana birch 26 eli birch 29 hana ember 28
177
chen amber 21 gus harbor 17 jules ember 18 bruno cobalt 12 kim juniper 20 gus ember 13
101
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011828-p1
Compute and display the total sum of integer values in column 3.
{s+=$3}END{print s+0}
bruno grove 22 dina indigo 16 jules delta 26 chen ember 22 ivan grove 8 hana birch 26 eli birch 29 hana ember 28
177
chen amber 21 gus harbor 17 jules ember 18 bruno cobalt 12 kim juniper 20 gus ember 13
101
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011828
qwen/qwen3.7-plus
awkweave-0011829
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
farah grove 29 lina amber 18 kim amber 3 farah delta 3 alice indigo 16 eli cobalt 8 dina indigo 23 hana birch 6 kim delta 1 dina fable 17
12.40
gus fable 26 kim fable 6 gus grove 16 gus fable 8 farah fable 22 jules birch 15 ivan grove 30 ivan cobalt 17 hana amber 30
18.89
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011829-p1
Print the average of column 3 values, formatted to two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
farah grove 29 lina amber 18 kim amber 3 farah delta 3 alice indigo 16 eli cobalt 8 dina indigo 23 hana birch 6 kim delta 1 dina fable 17
12.40
gus fable 26 kim fable 6 gus grove 16 gus fable 8 farah fable 22 jules birch 15 ivan grove 30 ivan cobalt 17 hana amber 30
18.89
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011829
qwen/qwen3.7-plus
awkweave-0011830
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
alice 14 juniper eli 5 birch ivan 14 fable hana 2 delta jules 18 birch lina 6 fable hana 18 cobalt kim 5 harbor
2
kim 15 birch ivan 27 birch jules 15 cobalt kim 18 harbor gus 5 delta gus 19 fable jules 5 harbor jules 29 grove dina 29 juniper
5
min_field
1
train
original-grammar
CC-BY-4.0
null
null