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-0057163
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]]}
delta amber 47 alpha juniper 42 beta ember 72 gamma cobalt 21 gamma fable 105 gamma amber 82 delta ember 93 alpha ember 30 beta cobalt 105
delta 2 alpha 2 beta 2 gamma 3
alpha amber 3 gamma harbor 96 alpha amber 15 beta grove 33 gamma birch 55 alpha delta 65
alpha 3 gamma 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057163-p1
List each duplicate value from the first column along 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]]}
delta amber 47 alpha juniper 42 beta ember 72 gamma cobalt 21 gamma fable 105 gamma amber 82 delta ember 93 alpha ember 30 beta cobalt 105
delta 2 alpha 2 beta 2 gamma 3
alpha amber 3 gamma harbor 96 alpha amber 15 beta grove 33 gamma birch 55 alpha delta 65
alpha 3 gamma 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057163
qwen/qwen3.7-plus
awkweave-0057164
The first row is a header. Print the state column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
score state record_id note r001 bruno 25 paused r002 alice 27 paused r003 farah 1 failed r004 alice 1 closed r005 bruno 23 paused r006 gus 9 pending r007 lina 9 pending r008 ivan 16 failed
bruno alice farah alice bruno gus lina ivan
score state record_id note r001 eli 13 active r002 kim 15 failed r003 kim 12 ready r004 jules 15 failed r005 kim 11 ready r006 jules 26 pending r007 chen 3 closed
eli kim kim jules kim jules chen
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057164-p1
Skip the header row and output the state column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
score state record_id note r001 bruno 25 paused r002 alice 27 paused r003 farah 1 failed r004 alice 1 closed r005 bruno 23 paused r006 gus 9 pending r007 lina 9 pending r008 ivan 16 failed
bruno alice farah alice bruno gus lina ivan
score state record_id note r001 eli 13 active r002 kim 15 failed r003 kim 12 ready r004 jules 15 failed r005 kim 11 ready r006 jules 26 pending r007 chen 3 closed
eli kim kim jules kim jules chen
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057164
qwen/qwen3.7-plus
awkweave-0057165
The first row is a header. Print display_name for data rows whose score is greater than 17.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>17{print $h["display_name"]}
record_id display_name score state r001 ivan 27 paused r002 hana 24 closed r003 eli 23 closed r004 chen 5 paused r005 dina 14 ready r006 farah 23 failed r007 ivan 21 closed
ivan hana eli farah ivan
record_id display_name score state r001 gus 28 ready r002 ivan 14 closed r003 farah 18 active r004 eli 6 paused r005 dina 18 paused r006 farah 4 ready r007 jules 9 pending
gus farah dina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057165-p1
Ignoring the header row, output the display_name for data rows where the score exceeds 17.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>17{print $h["display_name"]}
record_id display_name score state r001 ivan 27 paused r002 hana 24 closed r003 eli 23 closed r004 chen 5 paused r005 dina 14 ready r006 farah 23 failed r007 ivan 21 closed
ivan hana eli farah ivan
record_id display_name score state r001 gus 28 ready r002 ivan 14 closed r003 farah 18 active r004 eli 6 paused r005 dina 18 paused r006 farah 4 ready r007 jules 9 pending
gus farah dina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057165
qwen/qwen3.7-plus
awkweave-0057166
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
jules 22 closed lina 28 pending lina 2 failed hana 6 failed alice 27 active farah 25 failed alice 13 failed
jules lina lina hana alice farah alice
gus 26 ready bruno 22 active kim 9 active ivan 30 ready chen 1 failed kim 25 ready alice 27 paused lina 3 closed jules 23 paused
gus bruno kim ivan chen kim alice lina jules
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057166-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
jules 22 closed lina 28 pending lina 2 failed hana 6 failed alice 27 active farah 25 failed alice 13 failed
jules lina lina hana alice farah alice
gus 26 ready bruno 22 active kim 9 active ivan 30 ready chen 1 failed kim 25 ready alice 27 paused lina 3 closed jules 23 paused
gus bruno kim ivan chen kim alice lina jules
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0057166
qwen/qwen3.7-plus
awkweave-0057167
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 21.
BEGIN{FS=OFS=","}$2>21{print $1}
farah,16,ready ivan,25,closed kim,5,failed kim,30,paused alice,27,paused chen,20,failed ivan,7,closed alice,2,active lina,18,failed ivan,29,failed
ivan kim alice ivan
alice,26,pending bruno,9,paused eli,23,failed hana,19,closed ivan,29,pending alice,23,ready
alice eli ivan alice
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057167-p1
Output the first field of comma-separated records where the second field is greater than 21.
BEGIN{FS=OFS=","}$2>21{print $1}
farah,16,ready ivan,25,closed kim,5,failed kim,30,paused alice,27,paused chen,20,failed ivan,7,closed alice,2,active lina,18,failed ivan,29,failed
ivan kim alice ivan
alice,26,pending bruno,9,paused eli,23,failed hana,19,closed ivan,29,pending alice,23,ready
alice eli ivan alice
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057167
qwen/qwen3.7-plus
awkweave-0057168
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
hana indigo 90 gus ember 52 ivan amber 88 alice cobalt 102 alice cobalt 33 gus grove 96 hana juniper 86
hana indigo 90 gus ember 52 ivan amber 88 alice cobalt 102 alice cobalt 33 gus grove 96 hana juniper 86
alice amber 104 kim fable 114 gus amber 111 kim birch 94 ivan juniper 54 farah birch 72 kim juniper 39 chen cobalt 42
alice amber 104 kim fable 114 gus amber 111 kim birch 94 ivan juniper 54 farah birch 72 kim juniper 39 chen cobalt 42
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057168-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
hana indigo 90 gus ember 52 ivan amber 88 alice cobalt 102 alice cobalt 33 gus grove 96 hana juniper 86
hana indigo 90 gus ember 52 ivan amber 88 alice cobalt 102 alice cobalt 33 gus grove 96 hana juniper 86
alice amber 104 kim fable 114 gus amber 111 kim birch 94 ivan juniper 54 farah birch 72 kim juniper 39 chen cobalt 42
alice amber 104 kim fable 114 gus amber 111 kim birch 94 ivan juniper 54 farah birch 72 kim juniper 39 chen cobalt 42
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057168
qwen/qwen3.7-plus
awkweave-0057169
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
jules grove 80 paused eli grove 29 paused kim harbor 74 failed farah grove 102 closed lina ember 76 active gus grove 108 paused dina amber 77 ready lina harbor 85 paused jules delta 77 ready bruno grove 7 paused
farah grove 102 closed
jules cobalt 94 closed dina ember 0 active kim birch 41 paused eli juniper 77 failed alice delta 89 pending chen juniper 96 closed
jules cobalt 94 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057169-p1
Identify and print the longest line in the input; if multiple lines share the maximum length, select the first one.
{if(length($0)>length(best))best=$0}END{print best}
jules grove 80 paused eli grove 29 paused kim harbor 74 failed farah grove 102 closed lina ember 76 active gus grove 108 paused dina amber 77 ready lina harbor 85 paused jules delta 77 ready bruno grove 7 paused
farah grove 102 closed
jules cobalt 94 closed dina ember 0 active kim birch 41 paused eli juniper 77 failed alice delta 89 pending chen juniper 96 closed
jules cobalt 94 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057169
qwen/qwen3.7-plus
awkweave-0057170
Print every 3rd line starting at line 3 (then line 6, and so on).
NR%3==0
chen 1 farah 118 eli 87 eli 120 kim 32 dina 52 chen 49 farah 35 jules 71 kim 38
eli 87 dina 52 jules 71
hana 48 ivan 43 jules 85 eli 81 bruno 13 ivan 57
jules 85 ivan 57
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057170-p1
Print every 3rd line starting at line 3 (then line 6, and so on).
NR%3==0
chen 1 farah 118 eli 87 eli 120 kim 32 dina 52 chen 49 farah 35 jules 71 kim 38
eli 87 dina 52 jules 71
hana 48 ivan 43 jules 85 eli 81 bruno 13 ivan 57
jules 85 ivan 57
every_nth
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0057170
qwen/qwen3.7-plus
awkweave-0057171
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
gamma birch 81 alpha ember 46 gamma birch 105 alpha ember 71 gamma grove 120 delta juniper 10
3
beta grove 97 delta amber 68 beta cobalt 45 beta harbor 90 alpha juniper 40 gamma ember 64
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057171-p1
Calculate and print the number of unique values found in the first column.
{if(!seen[$1]++)n++}END{print n+0}
gamma birch 81 alpha ember 46 gamma birch 105 alpha ember 71 gamma grove 120 delta juniper 10
3
beta grove 97 delta amber 68 beta cobalt 45 beta harbor 90 alpha juniper 40 gamma ember 64
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057171
qwen/qwen3.7-plus
awkweave-0057172
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 21 0 eli 5 11 bruno 28 16 dina 14 18 jules 4 6 kim 6 4 bruno 29 3 chen 27 18 ivan 10 10
eli 0.45 bruno 1.75 dina 0.78 jules 0.67 kim 1.50 bruno 9.67 chen 1.50 ivan 1.00
lina 19 0 eli 12 15 jules 22 14 lina 24 26 hana 17 23 dina 6 13
eli 0.80 jules 1.57 lina 0.92 hana 0.74 dina 0.46
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057172-p1
For each row where the third column is non-zero, print 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 21 0 eli 5 11 bruno 28 16 dina 14 18 jules 4 6 kim 6 4 bruno 29 3 chen 27 18 ivan 10 10
eli 0.45 bruno 1.75 dina 0.78 jules 0.67 kim 1.50 bruno 9.67 chen 1.50 ivan 1.00
lina 19 0 eli 12 15 jules 22 14 lina 24 26 hana 17 23 dina 6 13
eli 0.80 jules 1.57 lina 0.92 hana 0.74 dina 0.46
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057172
qwen/qwen3.7-plus
awkweave-0057173
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 amber 25 ivan indigo 8 farah delta 13 bruno indigo 25 bruno amber 3 alice birch 17 gus delta 23 eli fable 26 eli grove 21 kim harbor 29
kim harbor 29 eli fable 26 alice amber 25
kim cobalt 6 chen juniper 8 ivan amber 9 ivan juniper 22 farah birch 24 chen birch 9 ivan amber 3 bruno harbor 24 eli harbor 16 dina indigo 24
farah birch 24 bruno harbor 24 dina indigo 24
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057173-p1
Output the three records with the highest numeric values in column 3, sorted in descending order; maintain original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
alice amber 25 ivan indigo 8 farah delta 13 bruno indigo 25 bruno amber 3 alice birch 17 gus delta 23 eli fable 26 eli grove 21 kim harbor 29
kim harbor 29 eli fable 26 alice amber 25
kim cobalt 6 chen juniper 8 ivan amber 9 ivan juniper 22 farah birch 24 chen birch 9 ivan amber 3 bruno harbor 24 eli harbor 16 dina indigo 24
farah birch 24 bruno harbor 24 dina indigo 24
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057173
qwen/qwen3.7-plus
awkweave-0057174
Select the 4th and 1st fields in that order.
{print $4, $1}
54 ready ready amber 106 failed active birch 13 failed ready indigo 28 failed ready indigo 119 failed pending juniper 100 closed paused delta 32 pending pending amber
amber 54 birch 106 indigo 13 indigo 28 juniper 119 delta 100 amber 32
57 ready failed birch 41 ready closed fable 33 failed failed delta 89 active pending indigo 104 paused closed delta 120 active pending harbor 12 active active juniper 110 failed closed indigo 96 active pending birch 103 paused active grove
birch 57 fable 41 delta 33 indigo 89 delta 104 harbor 120 juniper 12 indigo 110 birch 96 grove 103
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057174-p1
Rearrange the fields to output the 4th field followed by the 1st field.
{print $4, $1}
54 ready ready amber 106 failed active birch 13 failed ready indigo 28 failed ready indigo 119 failed pending juniper 100 closed paused delta 32 pending pending amber
amber 54 birch 106 indigo 13 indigo 28 juniper 119 delta 100 amber 32
57 ready failed birch 41 ready closed fable 33 failed failed delta 89 active pending indigo 104 paused closed delta 120 active pending harbor 12 active active juniper 110 failed closed indigo 96 active pending birch 103 paused active grove
birch 57 fable 41 delta 33 indigo 89 delta 104 harbor 120 juniper 12 indigo 110 birch 96 grove 103
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057174
qwen/qwen3.7-plus
awkweave-0057175
Print the last field of every input line.
{print $NF}
45 kim 34 ivan 64 harbor 37 chen 18 kim 49 harbor 89 ivan 19 alice 101 amber 63 ivan 120 dina 32 ember 71 alice 23 dina 76 ember 15 bruno 12 lina 42 birch 117 gus 88 chen 74 harbor 63 kim 97 gus 72 amber 30 dina 82 dina 98 delta 88 bruno 56 chen 48 fable
harbor harbor amber ember ember birch harbor amber delta fable
56 alice 71 farah 80 harbor 45 chen 66 chen 70 fable 29 chen 85 eli 76 fable 47 hana 4 chen 61 delta 6 lina 72 chen 88 birch 111 farah 36 jules 52 amber
harbor fable fable delta birch amber
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057175-p1
Print the final field from every line of input.
{print $NF}
45 kim 34 ivan 64 harbor 37 chen 18 kim 49 harbor 89 ivan 19 alice 101 amber 63 ivan 120 dina 32 ember 71 alice 23 dina 76 ember 15 bruno 12 lina 42 birch 117 gus 88 chen 74 harbor 63 kim 97 gus 72 amber 30 dina 82 dina 98 delta 88 bruno 56 chen 48 fable
harbor harbor amber ember ember birch harbor amber delta fable
56 alice 71 farah 80 harbor 45 chen 66 chen 70 fable 29 chen 85 eli 76 fable 47 hana 4 chen 61 delta 6 lina 72 chen 88 birch 111 farah 36 jules 52 amber
harbor fable fable delta birch amber
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057175
qwen/qwen3.7-plus
awkweave-0057176
Print the complete records where column 3 is at most 73.
$3 <= 73
active fable 110 pending ready birch 111 pending closed juniper 108 active paused fable 109 failed paused grove 37 active failed ember 73 paused pending birch 107 active closed grove 104 failed closed ember 52 failed active fable 94 active
paused grove 37 active failed ember 73 paused closed ember 52 failed
ready harbor 75 failed pending cobalt 32 ready paused juniper 41 active closed fable 67 failed failed indigo 46 failed closed amber 23 closed
pending cobalt 32 ready paused juniper 41 active closed fable 67 failed failed indigo 46 failed closed amber 23 closed
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057176-p1
Output all records where the value in column 3 is less than or equal to 73.
$3 <= 73
active fable 110 pending ready birch 111 pending closed juniper 108 active paused fable 109 failed paused grove 37 active failed ember 73 paused pending birch 107 active closed grove 104 failed closed ember 52 failed active fable 94 active
paused grove 37 active failed ember 73 paused closed ember 52 failed
ready harbor 75 failed pending cobalt 32 ready paused juniper 41 active closed fable 67 failed failed indigo 46 failed closed amber 23 closed
pending cobalt 32 ready paused juniper 41 active closed fable 67 failed failed indigo 46 failed closed amber 23 closed
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057176
qwen/qwen3.7-plus
awkweave-0057177
Show whole lines whose 1st field is between 3 and 18, inclusive.
$1 >= 3 && $1 <= 18
1 ready delta lina 15 paused ember lina 14 pending grove hana 1 failed indigo jules 5 closed amber lina 10 paused fable hana 17 active delta hana
15 paused ember lina 14 pending grove hana 5 closed amber lina 10 paused fable hana 17 active delta hana
8 closed fable chen 25 closed ember kim 29 failed birch farah 22 pending juniper alice 11 ready fable lina 5 paused ember chen 30 pending cobalt farah
8 closed fable chen 11 ready fable lina 5 paused ember chen
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057177-p1
Display entire lines where the first field falls within the inclusive range of 3 to 18.
$1 >= 3 && $1 <= 18
1 ready delta lina 15 paused ember lina 14 pending grove hana 1 failed indigo jules 5 closed amber lina 10 paused fable hana 17 active delta hana
15 paused ember lina 14 pending grove hana 5 closed amber lina 10 paused fable hana 17 active delta hana
8 closed fable chen 25 closed ember kim 29 failed birch farah 22 pending juniper alice 11 ready fable lina 5 paused ember chen 30 pending cobalt farah
8 closed fable chen 11 ready fable lina 5 paused ember chen
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057177
qwen/qwen3.7-plus
awkweave-0057178
Print column 1 only for rows where column 2 is exactly failed.
$2 == "failed"{print $1}
jules failed 29 fable alice pending 31 cobalt hana active 99 grove farah ready 51 juniper kim ready 110 indigo hana pending 61 grove gus pending 72 cobalt eli paused 74 harbor dina paused 48 fable
jules
farah pending 52 harbor jules active 9 fable bruno failed 108 ember hana closed 1 grove alice ready 79 indigo bruno active 79 delta farah failed 30 amber bruno closed 20 harbor jules failed 106 juniper
bruno farah jules
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057178-p1
Output only the first column for rows where the second column matches 'failed' exactly.
$2 == "failed"{print $1}
jules failed 29 fable alice pending 31 cobalt hana active 99 grove farah ready 51 juniper kim ready 110 indigo hana pending 61 grove gus pending 72 cobalt eli paused 74 harbor dina paused 48 fable
jules
farah pending 52 harbor jules active 9 fable bruno failed 108 ember hana closed 1 grove alice ready 79 indigo bruno active 79 delta farah failed 30 amber bruno closed 20 harbor jules failed 106 juniper
bruno farah jules
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057178
qwen/qwen3.7-plus
awkweave-0057179
Print all fields from lines where field 3 begins with WARN.
$3 ~ /^WARN/
107 amber ERROR 36 indigo DEBUG 42 ember ERROR 79 fable WARN 84 juniper DEBUG 97 grove ERROR 67 grove INFO 97 cobalt WARN 79 indigo WARN
79 fable WARN 97 cobalt WARN 79 indigo WARN
41 ember ERROR 101 indigo INFO 112 grove ERROR 0 ember WARN 96 birch DEBUG 39 birch WARN
0 ember WARN 39 birch WARN
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057179-p1
Display all fields from lines where the third field starts with 'WARN'.
$3 ~ /^WARN/
107 amber ERROR 36 indigo DEBUG 42 ember ERROR 79 fable WARN 84 juniper DEBUG 97 grove ERROR 67 grove INFO 97 cobalt WARN 79 indigo WARN
79 fable WARN 97 cobalt WARN 79 indigo WARN
41 ember ERROR 101 indigo INFO 112 grove ERROR 0 ember WARN 96 birch DEBUG 39 birch WARN
0 ember WARN 39 birch WARN
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057179
qwen/qwen3.7-plus
awkweave-0057180
Print every line except those containing the exact text amber.
$0 !~ /amber/
amber 70 closed ember 86 ready cobalt 112 active delta 93 closed grove 45 active amber 88 failed ember 11 failed cobalt 36 pending amber 21 active grove 42 failed amber 999 active
ember 86 ready cobalt 112 active delta 93 closed grove 45 active ember 11 failed cobalt 36 pending grove 42 failed
fable 90 ready cobalt 75 active birch 17 closed delta 57 pending grove 16 closed harbor 105 active cobalt 20 failed amber 999 active
fable 90 ready cobalt 75 active birch 17 closed delta 57 pending grove 16 closed harbor 105 active cobalt 20 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057180-p1
Print every line that does not contain the exact string 'amber'.
$0 !~ /amber/
amber 70 closed ember 86 ready cobalt 112 active delta 93 closed grove 45 active amber 88 failed ember 11 failed cobalt 36 pending amber 21 active grove 42 failed amber 999 active
ember 86 ready cobalt 112 active delta 93 closed grove 45 active ember 11 failed cobalt 36 pending grove 42 failed
fable 90 ready cobalt 75 active birch 17 closed delta 57 pending grove 16 closed harbor 105 active cobalt 20 failed amber 999 active
fable 90 ready cobalt 75 active birch 17 closed delta 57 pending grove 16 closed harbor 105 active cobalt 20 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057180
qwen/qwen3.7-plus
awkweave-0057181
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
gus indigo 75 chen delta 22 eli grove 56 hana ember 2 lina indigo 13 hana grove 106 lina amber 45 gus cobalt 44
hana ember 2 lina indigo 13 hana grove 106 lina amber 45
gus amber 71 chen indigo 88 chen juniper 119 kim indigo 104 chen juniper 55 hana fable 24 gus fable 4
kim indigo 104 chen juniper 55 hana fable 24 gus fable 4
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057181-p1
Output lines 4 to 7, inclusive of both endpoints.
NR >= 4 && NR <= 7
gus indigo 75 chen delta 22 eli grove 56 hana ember 2 lina indigo 13 hana grove 106 lina amber 45 gus cobalt 44
hana ember 2 lina indigo 13 hana grove 106 lina amber 45
gus amber 71 chen indigo 88 chen juniper 119 kim indigo 104 chen juniper 55 hana fable 24 gus fable 4
kim indigo 104 chen juniper 55 hana fable 24 gus fable 4
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057181
qwen/qwen3.7-plus
awkweave-0057182
Output only the first 4 records.
NR <= 4
lina 67 birch eli 42 delta eli 51 grove eli 11 ember kim 116 fable bruno 97 harbor farah 57 grove kim 12 amber kim 19 cobalt
lina 67 birch eli 42 delta eli 51 grove eli 11 ember
alice 50 amber hana 53 birch kim 6 fable jules 75 birch alice 57 ember kim 47 amber chen 4 grove
alice 50 amber hana 53 birch kim 6 fable jules 75 birch
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057182-p1
Display only the first four records.
NR <= 4
lina 67 birch eli 42 delta eli 51 grove eli 11 ember kim 116 fable bruno 97 harbor farah 57 grove kim 12 amber kim 19 cobalt
lina 67 birch eli 42 delta eli 51 grove eli 11 ember
alice 50 amber hana 53 birch kim 6 fable jules 75 birch alice 57 ember kim 47 amber chen 4 grove
alice 50 amber hana 53 birch kim 6 fable jules 75 birch
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057182
qwen/qwen3.7-plus
awkweave-0057183
Skip the first line and print every remaining line unchanged.
NR > 1
chen 15 juniper lina 32 grove ivan 53 harbor ivan 70 indigo chen 74 birch chen 116 harbor alice 107 juniper
lina 32 grove ivan 53 harbor ivan 70 indigo chen 74 birch chen 116 harbor alice 107 juniper
dina 119 delta gus 79 harbor alice 105 delta farah 56 indigo chen 75 birch lina 5 harbor jules 39 grove eli 69 ember farah 62 indigo
gus 79 harbor alice 105 delta farah 56 indigo chen 75 birch lina 5 harbor jules 39 grove eli 69 ember farah 62 indigo
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057183-p1
Omit the first line and print all subsequent lines without modification.
NR > 1
chen 15 juniper lina 32 grove ivan 53 harbor ivan 70 indigo chen 74 birch chen 116 harbor alice 107 juniper
lina 32 grove ivan 53 harbor ivan 70 indigo chen 74 birch chen 116 harbor alice 107 juniper
dina 119 delta gus 79 harbor alice 105 delta farah 56 indigo chen 75 birch lina 5 harbor jules 39 grove eli 69 ember farah 62 indigo
gus 79 harbor alice 105 delta farah 56 indigo chen 75 birch lina 5 harbor jules 39 grove eli 69 ember farah 62 indigo
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057183
qwen/qwen3.7-plus
awkweave-0057184
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
hana failed 27 jules active 25 farah closed 87 kim pending 30 jules paused 46 gus failed 83 hana closed 108 jules pending 109 alice pending 93
2
bruno failed 42 chen closed 5 dina failed 32 jules paused 21 hana failed 69 lina failed 81 kim ready 9
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057184-p1
Count the number of records with 'closed' in column 2, outputting 0 if none are found.
$2 == "closed"{n++}END{print n+0}
hana failed 27 jules active 25 farah closed 87 kim pending 30 jules paused 46 gus failed 83 hana closed 108 jules pending 109 alice pending 93
2
bruno failed 42 chen closed 5 dina failed 32 jules paused 21 hana failed 69 lina failed 81 kim ready 9
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057184
qwen/qwen3.7-plus
awkweave-0057185
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
eli amber 19 bruno fable 20 eli birch 13 farah delta 9 chen delta 2 jules amber 17 kim juniper 11 chen fable 6 ivan amber 21 farah delta 19
137
jules grove 30 gus juniper 25 jules ember 10 alice juniper 28 bruno fable 12 gus fable 25 kim fable 25 ivan harbor 24
179
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057185-p1
Compute and display the sum of integer values in column 3.
{s+=$3}END{print s+0}
eli amber 19 bruno fable 20 eli birch 13 farah delta 9 chen delta 2 jules amber 17 kim juniper 11 chen fable 6 ivan amber 21 farah delta 19
137
jules grove 30 gus juniper 25 jules ember 10 alice juniper 28 bruno fable 12 gus fable 25 kim fable 25 ivan harbor 24
179
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057185
qwen/qwen3.7-plus
awkweave-0057186
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
farah 6 grove hana 25 grove alice 13 cobalt eli 1 grove alice 17 fable jules 4 indigo ivan 14 ember
11.43
jules 20 juniper hana 20 delta ivan 24 cobalt dina 4 juniper bruno 18 juniper bruno 18 cobalt bruno 16 delta
17.14
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057186-p1
Calculate the average of column 2 and print it rounded to two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
farah 6 grove hana 25 grove alice 13 cobalt eli 1 grove alice 17 fable jules 4 indigo ivan 14 ember
11.43
jules 20 juniper hana 20 delta ivan 24 cobalt dina 4 juniper bruno 18 juniper bruno 18 cobalt bruno 16 delta
17.14
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057186
qwen/qwen3.7-plus
awkweave-0057187
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
amber jules 6 grove ivan 11 indigo chen 30 harbor kim 20 delta bruno 12 harbor hana 7 fable hana 6
6
ember dina 29 fable bruno 1 juniper alice 1 grove gus 14 fable ivan 27 harbor farah 19 indigo alice 7 amber ivan 23
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057187-p1
Identify and print the minimum numeric value found in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
amber jules 6 grove ivan 11 indigo chen 30 harbor kim 20 delta bruno 12 harbor hana 7 fable hana 6
6
ember dina 29 fable bruno 1 juniper alice 1 grove gus 14 fable ivan 27 harbor farah 19 indigo alice 7 amber ivan 23
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057187
qwen/qwen3.7-plus
awkweave-0057188
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
gus 15 birch dina 10 juniper hana 2 grove bruno 2 birch gus 10 delta eli 22 birch kim 20 amber
22
jules 13 delta jules 2 harbor alice 28 amber jules 6 grove bruno 15 cobalt alice 27 grove jules 4 grove
28
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057188-p1
Identify and print the maximum numeric value found in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
gus 15 birch dina 10 juniper hana 2 grove bruno 2 birch gus 10 delta eli 22 birch kim 20 amber
22
jules 13 delta jules 2 harbor alice 28 amber jules 6 grove bruno 15 cobalt alice 27 grove jules 4 grove
28
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057188
qwen/qwen3.7-plus
awkweave-0057189
Count all input records and print the total.
END{print NR}
alice 39 gus 55 farah 91 kim 86 farah 115 farah 2 chen 88
7
farah 23 eli 64 lina 0 eli 49 jules 8 farah 75 bruno 115 farah 38 dina 50
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057189-p1
Count the total number of input records and print the result.
END{print NR}
alice 39 gus 55 farah 91 kim 86 farah 115 farah 2 chen 88
7
farah 23 eli 64 lina 0 eli 49 jules 8 farah 75 bruno 115 farah 38 dina 50
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057189
qwen/qwen3.7-plus
awkweave-0057200
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]]}
gus beta 120 ivan alpha 101 jules alpha 66 gus delta 53 hana alpha 42 dina delta 75
beta 1 alpha 3 delta 2
lina delta 32 dina delta 120 dina alpha 79 lina beta 33 ivan delta 36 ivan gamma 2 bruno alpha 35 eli gamma 38 chen delta 12
delta 4 alpha 2 beta 1 gamma 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057200-p1
Tally the occurrences of each unique value in column 2 and output the value alongside its count, maintaining the order in which they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
gus beta 120 ivan alpha 101 jules alpha 66 gus delta 53 hana alpha 42 dina delta 75
beta 1 alpha 3 delta 2
lina delta 32 dina delta 120 dina alpha 79 lina beta 33 ivan delta 36 ivan gamma 2 bruno alpha 35 eli gamma 38 chen delta 12
delta 4 alpha 2 beta 1 gamma 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057200
qwen/qwen3.7-plus
awkweave-0057201
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]]}
kim gamma 22 bruno delta 13 dina beta 22 chen alpha 20 bruno beta 24 alice beta 13 ivan beta 15 bruno beta 3 hana delta 26
gamma 22 delta 39 beta 77 alpha 20
jules delta 7 hana gamma 4 farah beta 18 dina beta 25 dina delta 19 ivan gamma 28
delta 26 gamma 32 beta 43
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057201-p1
Calculate the sum of column 3 for every distinct category found in column 2, listing the results in the order the categories 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]]}
kim gamma 22 bruno delta 13 dina beta 22 chen alpha 20 bruno beta 24 alice beta 13 ivan beta 15 bruno beta 3 hana delta 26
gamma 22 delta 39 beta 77 alpha 20
jules delta 7 hana gamma 4 farah beta 18 dina beta 25 dina delta 19 ivan gamma 28
delta 26 gamma 32 beta 43
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057201
qwen/qwen3.7-plus
awkweave-0057202
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta ember 65 beta delta 99 gamma ember 83 gamma juniper 70 gamma amber 74 beta delta 0 alpha juniper 90 alpha grove 81 alpha delta 25 alpha amber 74
beta 3 gamma 3 alpha 4
beta grove 31 gamma juniper 13 delta harbor 99 gamma cobalt 17 delta ember 8 beta ember 94 beta birch 9 delta fable 111 delta birch 29
beta 3 gamma 2 delta 4
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057202-p1
Identify values in column 1 that appear more than once, then print each repeated value with its total occurrence count, sorted 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 ember 65 beta delta 99 gamma ember 83 gamma juniper 70 gamma amber 74 beta delta 0 alpha juniper 90 alpha grove 81 alpha delta 25 alpha amber 74
beta 3 gamma 3 alpha 4
beta grove 31 gamma juniper 13 delta harbor 99 gamma cobalt 17 delta ember 8 beta ember 94 beta birch 9 delta fable 111 delta birch 29
beta 3 gamma 2 delta 4
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057202
qwen/qwen3.7-plus
awkweave-0057203
The first row is a header. Print the display_name column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
record_id state display_name score r001 alice 27 active r002 farah 3 failed r003 farah 29 pending r004 bruno 21 closed r005 chen 6 failed r006 hana 29 active r007 lina 27 paused r008 lina 24 closed r009 eli 8 closed r010 gus 19 failed
27 3 29 21 6 29 27 24 8 19
record_id state display_name score r001 kim 22 ready r002 ivan 22 ready r003 chen 14 closed r004 eli 27 failed r005 gus 17 pending r006 chen 13 paused r007 gus 30 pending r008 alice 23 pending
22 22 14 27 17 13 30 23
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057203-p1
Treating the first line as a header, extract and print the 'display_name' field from all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
record_id state display_name score r001 alice 27 active r002 farah 3 failed r003 farah 29 pending r004 bruno 21 closed r005 chen 6 failed r006 hana 29 active r007 lina 27 paused r008 lina 24 closed r009 eli 8 closed r010 gus 19 failed
27 3 29 21 6 29 27 24 8 19
record_id state display_name score r001 kim 22 ready r002 ivan 22 ready r003 chen 14 closed r004 eli 27 failed r005 gus 17 pending r006 chen 13 paused r007 gus 30 pending r008 alice 23 pending
22 22 14 27 17 13 30 23
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057203
qwen/qwen3.7-plus
awkweave-0057204
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 alice 3 active r002 hana 28 failed r003 farah 28 pending r004 alice 18 pending r005 chen 5 active r006 gus 9 ready r007 farah 16 paused r008 alice 27 closed r009 jules 11 ready
hana farah alice
record_id display_name score state r001 gus 2 paused r002 ivan 18 failed r003 lina 8 closed r004 bruno 25 paused r005 hana 17 closed r006 dina 5 pending r007 kim 15 pending r008 lina 1 pending r009 farah 22 active r010 alice 3 active
bruno farah
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057204-p1
With the first row as a header, output the 'display_name' for any data row where the 'score' is strictly 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 alice 3 active r002 hana 28 failed r003 farah 28 pending r004 alice 18 pending r005 chen 5 active r006 gus 9 ready r007 farah 16 paused r008 alice 27 closed r009 jules 11 ready
hana farah alice
record_id display_name score state r001 gus 2 paused r002 ivan 18 failed r003 lina 8 closed r004 bruno 25 paused r005 hana 17 closed r006 dina 5 pending r007 kim 15 pending r008 lina 1 pending r009 farah 22 active r010 alice 3 active
bruno farah
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057204
qwen/qwen3.7-plus
awkweave-0057205
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
kim 21 pending gus 8 active jules 11 ready farah 25 failed eli 28 paused kim 7 active dina 12 failed farah 24 closed hana 9 ready kim 6 paused
kim gus jules farah eli kim dina farah hana kim
hana 28 pending gus 2 paused bruno 27 ready farah 13 pending kim 12 closed bruno 19 paused kim 14 closed gus 18 active farah 21 paused farah 11 pending
hana gus bruno farah kim bruno kim gus farah farah
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057205-p1
Given tab-separated input, extract and print the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
kim 21 pending gus 8 active jules 11 ready farah 25 failed eli 28 paused kim 7 active dina 12 failed farah 24 closed hana 9 ready kim 6 paused
kim gus jules farah eli kim dina farah hana kim
hana 28 pending gus 2 paused bruno 27 ready farah 13 pending kim 12 closed bruno 19 paused kim 14 closed gus 18 active farah 21 paused farah 11 pending
hana gus bruno farah kim bruno kim gus farah farah
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057205
qwen/qwen3.7-plus
awkweave-0057206
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 20.
BEGIN{FS=OFS=","}$2>20{print $1}
chen,13,ready jules,6,paused bruno,6,closed farah,10,pending dina,22,paused kim,7,failed eli,5,closed eli,19,paused dina,9,paused gus,20,paused
dina
bruno,18,failed hana,25,pending eli,29,active chen,20,failed jules,2,active hana,20,closed lina,7,pending alice,19,closed
hana eli
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057206-p1
For simple comma-separated input without quoted commas, print the first column only if the second column's value is greater than 20.
BEGIN{FS=OFS=","}$2>20{print $1}
chen,13,ready jules,6,paused bruno,6,closed farah,10,pending dina,22,paused kim,7,failed eli,5,closed eli,19,paused dina,9,paused gus,20,paused
dina
bruno,18,failed hana,25,pending eli,29,active chen,20,failed jules,2,active hana,20,closed lina,7,pending alice,19,closed
hana eli
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057206
qwen/qwen3.7-plus
awkweave-0057207
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina juniper 79 chen ember 70 ivan juniper 21 dina juniper 114 gus ember 88 dina indigo 83 dina cobalt 96 chen delta 90
lina juniper 79 chen ember 70 ivan juniper 21 dina juniper 114 gus ember 88 dina indigo 83 dina cobalt 96 chen delta 90
ivan cobalt 29 lina amber 0 bruno ember 12 jules amber 87 hana harbor 74 alice grove 92 jules delta 15 gus grove 49
ivan cobalt 29 lina amber 0 bruno ember 12 jules amber 87 hana harbor 74 alice grove 92 jules delta 15 gus grove 49
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057207-p1
Remove leading and trailing whitespace from the text, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
lina juniper 79 chen ember 70 ivan juniper 21 dina juniper 114 gus ember 88 dina indigo 83 dina cobalt 96 chen delta 90
lina juniper 79 chen ember 70 ivan juniper 21 dina juniper 114 gus ember 88 dina indigo 83 dina cobalt 96 chen delta 90
ivan cobalt 29 lina amber 0 bruno ember 12 jules amber 87 hana harbor 74 alice grove 92 jules delta 15 gus grove 49
ivan cobalt 29 lina amber 0 bruno ember 12 jules amber 87 hana harbor 74 alice grove 92 jules delta 15 gus grove 49
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057207
qwen/qwen3.7-plus
awkweave-0057208
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
kim birch 12 active bruno fable 12 ready bruno amber 32 ready jules juniper 91 paused alice juniper 98 pending kim delta 108 closed gus indigo 1 pending hana indigo 11 paused
alice juniper 98 pending
kim indigo 38 closed hana fable 96 active ivan juniper 48 active kim harbor 2 failed hana amber 94 paused jules amber 117 failed alice harbor 41 closed jules amber 118 ready kim ember 57 failed ivan indigo 52 paused
ivan juniper 48 active
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057208-p1
Output the longest line from the input; if multiple lines share the maximum length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
kim birch 12 active bruno fable 12 ready bruno amber 32 ready jules juniper 91 paused alice juniper 98 pending kim delta 108 closed gus indigo 1 pending hana indigo 11 paused
alice juniper 98 pending
kim indigo 38 closed hana fable 96 active ivan juniper 48 active kim harbor 2 failed hana amber 94 paused jules amber 117 failed alice harbor 41 closed jules amber 118 ready kim ember 57 failed ivan indigo 52 paused
ivan juniper 48 active
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057208
qwen/qwen3.7-plus
awkweave-0057209
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
gus 4 chen 31 kim 23 gus 116 hana 53 eli 13 chen 54 alice 83 gus 28
chen 31 gus 116 eli 13 alice 83
chen 69 kim 19 hana 48 bruno 22 jules 59 chen 19 hana 82 farah 88 ivan 29 lina 42
kim 19 bruno 22 chen 19 farah 88 lina 42
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057209-p1
Print every second line of the input, starting with line 2 (i.e., lines 2, 4, 6, etc.).
NR%2==0
gus 4 chen 31 kim 23 gus 116 hana 53 eli 13 chen 54 alice 83 gus 28
chen 31 gus 116 eli 13 alice 83
chen 69 kim 19 hana 48 bruno 22 jules 59 chen 19 hana 82 farah 88 ivan 29 lina 42
kim 19 bruno 22 chen 19 farah 88 lina 42
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057209
qwen/qwen3.7-plus
awkweave-0057210
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
gamma indigo 51 gamma indigo 12 alpha juniper 94 alpha cobalt 11 gamma birch 70 delta grove 95
3
alpha cobalt 43 gamma amber 72 alpha cobalt 10 gamma grove 10 alpha grove 96 gamma fable 8 beta cobalt 41 delta fable 74 delta indigo 33
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057210-p1
Determine the number of unique values in column 1 and output only this total count.
{if(!seen[$1]++)n++}END{print n+0}
gamma indigo 51 gamma indigo 12 alpha juniper 94 alpha cobalt 11 gamma birch 70 delta grove 95
3
alpha cobalt 43 gamma amber 72 alpha cobalt 10 gamma grove 10 alpha grove 96 gamma fable 8 beta cobalt 41 delta fable 74 delta indigo 33
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057210
qwen/qwen3.7-plus
awkweave-0057211
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}
lina 1 0 eli 11 5 gus 28 28 farah 15 14 kim 7 23 dina 9 26 farah 30 8 kim 2 27
eli 2.20 gus 1.00 farah 1.07 kim 0.30 dina 0.35 farah 3.75 kim 0.07
eli 25 0 hana 7 15 farah 4 23 lina 7 21 alice 12 21 hana 4 5 jules 20 7
hana 0.47 farah 0.17 lina 0.33 alice 0.57 hana 0.80 jules 2.86
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057211-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}
lina 1 0 eli 11 5 gus 28 28 farah 15 14 kim 7 23 dina 9 26 farah 30 8 kim 2 27
eli 2.20 gus 1.00 farah 1.07 kim 0.30 dina 0.35 farah 3.75 kim 0.07
eli 25 0 hana 7 15 farah 4 23 lina 7 21 alice 12 21 hana 4 5 jules 20 7
hana 0.47 farah 0.17 lina 0.33 alice 0.57 hana 0.80 jules 2.86
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057211
qwen/qwen3.7-plus
awkweave-0057212
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
eli grove 10 lina amber 26 dina amber 17 jules ember 20 chen harbor 14 lina ember 8 ivan amber 26
lina amber 26 ivan amber 26 jules ember 20
ivan cobalt 11 lina delta 12 hana birch 18 gus cobalt 10 dina fable 1 farah juniper 5
hana birch 18 lina delta 12 ivan cobalt 11
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057212-p1
Output the top 3 records based on the highest numeric values in column 3, sorted in descending order, while maintaining the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
eli grove 10 lina amber 26 dina amber 17 jules ember 20 chen harbor 14 lina ember 8 ivan amber 26
lina amber 26 ivan amber 26 jules ember 20
ivan cobalt 11 lina delta 12 hana birch 18 gus cobalt 10 dina fable 1 farah juniper 5
hana birch 18 lina delta 12 ivan cobalt 11
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057212
qwen/qwen3.7-plus
awkweave-0057213
For each line, output fields 2 and 1, in that order.
{print $2, $1}
closed kim active farah delta active alice closed alice delta pending ivan active alice cobalt ready farah pending gus juniper ready kim ready hana cobalt closed farah failed ivan grove pending alice closed bruno ember pending alice paused dina birch ready chen pending dina delta
kim closed alice active ivan pending farah ready kim ready farah closed alice pending alice pending chen ready
ready lina closed ivan fable closed farah closed hana juniper closed jules ready bruno delta pending chen closed eli indigo failed hana ready gus birch pending lina pending eli delta pending ivan failed kim grove
lina ready farah closed jules closed chen pending hana failed lina pending ivan pending
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057213-p1
For every line, print field 2 followed by field 1.
{print $2, $1}
closed kim active farah delta active alice closed alice delta pending ivan active alice cobalt ready farah pending gus juniper ready kim ready hana cobalt closed farah failed ivan grove pending alice closed bruno ember pending alice paused dina birch ready chen pending dina delta
kim closed alice active ivan pending farah ready kim ready farah closed alice pending alice pending chen ready
ready lina closed ivan fable closed farah closed hana juniper closed jules ready bruno delta pending chen closed eli indigo failed hana ready gus birch pending lina pending eli delta pending ivan failed kim grove
lina ready farah closed jules closed chen pending hana failed lina pending ivan pending
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057213
qwen/qwen3.7-plus
awkweave-0057214
Print the last field of every input line.
{print $NF}
pending ivan pending 83 20 35 failed jules failed 37 76 6 paused kim paused 119 108 29 failed jules active 3 69 107 closed bruno failed 37 109 52 closed eli closed 66 1 6 pending alice ready 114 106 111
35 6 29 107 52 6 111
closed eli active 88 85 22 pending dina ready 39 54 9 pending kim failed 64 24 69 failed dina ready 16 111 92 paused bruno failed 48 55 22 paused bruno failed 73 81 76 failed jules failed 96 4 11 active lina pending 40 17 78 active gus paused 3 52 54
22 9 69 92 22 76 11 78 54
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057214-p1
Display the final field of each input line.
{print $NF}
pending ivan pending 83 20 35 failed jules failed 37 76 6 paused kim paused 119 108 29 failed jules active 3 69 107 closed bruno failed 37 109 52 closed eli closed 66 1 6 pending alice ready 114 106 111
35 6 29 107 52 6 111
closed eli active 88 85 22 pending dina ready 39 54 9 pending kim failed 64 24 69 failed dina ready 16 111 92 paused bruno failed 48 55 22 paused bruno failed 73 81 76 failed jules failed 96 4 11 active lina pending 40 17 78 active gus paused 3 52 54
22 9 69 92 22 76 11 78 54
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057214
qwen/qwen3.7-plus
awkweave-0057215
Print the complete records where column 4 is greater than 27.
$4 > 27
juniper indigo harbor 1 pending fable amber ember 55 paused delta amber juniper 63 closed grove indigo harbor 21 closed delta harbor juniper 15 active harbor harbor amber 115 active
fable amber ember 55 paused delta amber juniper 63 closed harbor harbor amber 115 active
harbor birch ember 79 ready cobalt amber amber 18 paused birch fable delta 93 pending grove ember ember 8 pending fable grove juniper 75 pending delta fable juniper 72 paused fable birch grove 56 paused cobalt harbor ember 7 paused
harbor birch ember 79 ready birch fable delta 93 pending fable grove juniper 75 pending delta fable juniper 72 paused fable birch grove 56 paused
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057215-p1
Print full records where the value in column 4 exceeds 27.
$4 > 27
juniper indigo harbor 1 pending fable amber ember 55 paused delta amber juniper 63 closed grove indigo harbor 21 closed delta harbor juniper 15 active harbor harbor amber 115 active
fable amber ember 55 paused delta amber juniper 63 closed harbor harbor amber 115 active
harbor birch ember 79 ready cobalt amber amber 18 paused birch fable delta 93 pending grove ember ember 8 pending fable grove juniper 75 pending delta fable juniper 72 paused fable birch grove 56 paused cobalt harbor ember 7 paused
harbor birch ember 79 ready birch fable delta 93 pending fable grove juniper 75 pending delta fable juniper 72 paused fable birch grove 56 paused
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057215
qwen/qwen3.7-plus
awkweave-0057216
Show whole lines whose 1st field is between 8 and 27, inclusive.
$1 >= 8 && $1 <= 27
4 ready ivan failed 10 active gus ready 3 closed gus failed 14 closed kim pending 20 pending ivan failed 21 closed ivan paused 3 failed farah paused 27 failed jules ready
10 active gus ready 14 closed kim pending 20 pending ivan failed 21 closed ivan paused 27 failed jules ready
2 ready alice failed 5 closed lina closed 11 active ivan pending 9 pending dina failed 16 active dina paused 12 ready hana active 1 paused eli pending 30 pending alice pending 11 pending kim failed 17 ready lina active
11 active ivan pending 9 pending dina failed 16 active dina paused 12 ready hana active 11 pending kim failed 17 ready lina active
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057216-p1
Show entire lines where the first field falls within the inclusive range of 8 to 27.
$1 >= 8 && $1 <= 27
4 ready ivan failed 10 active gus ready 3 closed gus failed 14 closed kim pending 20 pending ivan failed 21 closed ivan paused 3 failed farah paused 27 failed jules ready
10 active gus ready 14 closed kim pending 20 pending ivan failed 21 closed ivan paused 27 failed jules ready
2 ready alice failed 5 closed lina closed 11 active ivan pending 9 pending dina failed 16 active dina paused 12 ready hana active 1 paused eli pending 30 pending alice pending 11 pending kim failed 17 ready lina active
11 active ivan pending 9 pending dina failed 16 active dina paused 12 ready hana active 11 pending kim failed 17 ready lina active
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057216
qwen/qwen3.7-plus
awkweave-0057217
Print column 2 only for rows where column 3 is exactly paused.
$3 == "paused"{print $2}
harbor eli closed 117 amber lina pending 94 cobalt eli paused 42 cobalt hana pending 95 juniper kim pending 15 harbor dina paused 42 fable chen active 93
eli dina
fable gus ready 109 harbor dina failed 70 grove hana active 115 harbor dina active 95 indigo gus pending 14 harbor dina active 48 juniper farah paused 19 grove bruno closed 64 birch dina paused 56 cobalt chen paused 94
farah dina chen
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057217-p1
Output only column 2 for rows where column 3 contains the exact value 'paused'.
$3 == "paused"{print $2}
harbor eli closed 117 amber lina pending 94 cobalt eli paused 42 cobalt hana pending 95 juniper kim pending 15 harbor dina paused 42 fable chen active 93
eli dina
fable gus ready 109 harbor dina failed 70 grove hana active 115 harbor dina active 95 indigo gus pending 14 harbor dina active 48 juniper farah paused 19 grove bruno closed 64 birch dina paused 56 cobalt chen paused 94
farah dina chen
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057217
qwen/qwen3.7-plus
awkweave-0057218
Print all fields from lines where field 2 begins with WARN.
$2 ~ /^WARN/
delta INFO 51 ember ERROR 34 grove WARN 47 indigo INFO 105 ember INFO 94 delta ERROR 14 delta ERROR 54 fable INFO 36
grove WARN 47
cobalt WARN 46 ember WARN 36 indigo ERROR 80 cobalt ERROR 71 harbor ERROR 7 birch DEBUG 35 cobalt INFO 73 juniper INFO 44
cobalt WARN 46 ember WARN 36
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057218-p1
Print all fields from lines where the second field starts with 'WARN'.
$2 ~ /^WARN/
delta INFO 51 ember ERROR 34 grove WARN 47 indigo INFO 105 ember INFO 94 delta ERROR 14 delta ERROR 54 fable INFO 36
grove WARN 47
cobalt WARN 46 ember WARN 36 indigo ERROR 80 cobalt ERROR 71 harbor ERROR 7 birch DEBUG 35 cobalt INFO 73 juniper INFO 44
cobalt WARN 46 ember WARN 36
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057218
qwen/qwen3.7-plus
awkweave-0057219
Print every line except those containing the exact text fable.
$0 !~ /fable/
juniper 12 closed grove 75 paused delta 96 paused harbor 66 closed harbor 104 ready amber 50 active fable 76 ready fable 34 ready cobalt 55 ready fable 999 active
juniper 12 closed grove 75 paused delta 96 paused harbor 66 closed harbor 104 ready amber 50 active cobalt 55 ready
juniper 57 failed ember 65 ready harbor 96 paused fable 92 failed amber 74 paused indigo 19 ready cobalt 32 ready indigo 37 closed harbor 66 failed fable 999 active
juniper 57 failed ember 65 ready harbor 96 paused amber 74 paused indigo 19 ready cobalt 32 ready indigo 37 closed harbor 66 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057219-p1
Print all lines that do not contain the exact string 'fable'.
$0 !~ /fable/
juniper 12 closed grove 75 paused delta 96 paused harbor 66 closed harbor 104 ready amber 50 active fable 76 ready fable 34 ready cobalt 55 ready fable 999 active
juniper 12 closed grove 75 paused delta 96 paused harbor 66 closed harbor 104 ready amber 50 active cobalt 55 ready
juniper 57 failed ember 65 ready harbor 96 paused fable 92 failed amber 74 paused indigo 19 ready cobalt 32 ready indigo 37 closed harbor 66 failed fable 999 active
juniper 57 failed ember 65 ready harbor 96 paused amber 74 paused indigo 19 ready cobalt 32 ready indigo 37 closed harbor 66 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057219
qwen/qwen3.7-plus
awkweave-0057220
Print lines 3 through 6, including both endpoints.
NR >= 3 && NR <= 6
kim juniper 11 hana birch 89 eli delta 31 farah juniper 26 dina cobalt 79 chen amber 85
eli delta 31 farah juniper 26 dina cobalt 79 chen amber 85
bruno indigo 107 eli harbor 80 hana indigo 106 farah cobalt 2 kim amber 116 eli harbor 1
hana indigo 106 farah cobalt 2 kim amber 116 eli harbor 1
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057220-p1
Print lines 3 through 6, inclusive.
NR >= 3 && NR <= 6
kim juniper 11 hana birch 89 eli delta 31 farah juniper 26 dina cobalt 79 chen amber 85
eli delta 31 farah juniper 26 dina cobalt 79 chen amber 85
bruno indigo 107 eli harbor 80 hana indigo 106 farah cobalt 2 kim amber 116 eli harbor 1
hana indigo 106 farah cobalt 2 kim amber 116 eli harbor 1
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057220
qwen/qwen3.7-plus
awkweave-0057221
Output only the first 5 records.
NR <= 5
eli 97 indigo jules 18 delta chen 98 juniper jules 97 grove gus 38 harbor kim 75 cobalt gus 42 ember ivan 39 amber kim 52 birch bruno 39 fable
eli 97 indigo jules 18 delta chen 98 juniper jules 97 grove gus 38 harbor
alice 116 grove farah 81 fable farah 26 delta hana 106 grove ivan 99 grove ivan 102 birch ivan 34 fable
alice 116 grove farah 81 fable farah 26 delta hana 106 grove ivan 99 grove
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057221-p1
Output only the first 5 records.
NR <= 5
eli 97 indigo jules 18 delta chen 98 juniper jules 97 grove gus 38 harbor kim 75 cobalt gus 42 ember ivan 39 amber kim 52 birch bruno 39 fable
eli 97 indigo jules 18 delta chen 98 juniper jules 97 grove gus 38 harbor
alice 116 grove farah 81 fable farah 26 delta hana 106 grove ivan 99 grove ivan 102 birch ivan 34 fable
alice 116 grove farah 81 fable farah 26 delta hana 106 grove ivan 99 grove
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0057221
qwen/qwen3.7-plus
awkweave-0057222
Skip the first line and print every remaining line unchanged.
NR > 1
alice 23 juniper eli 74 fable bruno 73 birch dina 31 fable farah 53 birch gus 36 juniper lina 99 indigo kim 114 delta
eli 74 fable bruno 73 birch dina 31 fable farah 53 birch gus 36 juniper lina 99 indigo kim 114 delta
chen 56 fable hana 93 harbor chen 9 amber hana 6 delta jules 66 delta jules 20 juniper hana 88 indigo gus 15 cobalt
hana 93 harbor chen 9 amber hana 6 delta jules 66 delta jules 20 juniper hana 88 indigo gus 15 cobalt
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057222-p1
Skip the first line and print all subsequent lines exactly as they appear.
NR > 1
alice 23 juniper eli 74 fable bruno 73 birch dina 31 fable farah 53 birch gus 36 juniper lina 99 indigo kim 114 delta
eli 74 fable bruno 73 birch dina 31 fable farah 53 birch gus 36 juniper lina 99 indigo kim 114 delta
chen 56 fable hana 93 harbor chen 9 amber hana 6 delta jules 66 delta jules 20 juniper hana 88 indigo gus 15 cobalt
hana 93 harbor chen 9 amber hana 6 delta jules 66 delta jules 20 juniper hana 88 indigo gus 15 cobalt
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057222
qwen/qwen3.7-plus