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-0022221
The first row is a header. Print display_name for data rows whose score is greater than 21.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>21{print $h["display_name"]}
record_id display_name score state r001 gus 2 paused r002 lina 14 paused r003 dina 7 failed r004 hana 25 closed r005 jules 9 pending r006 dina 15 active r007 hana 24 closed
hana hana
record_id display_name score state r001 farah 19 failed r002 gus 23 closed r003 farah 16 paused r004 ivan 4 paused r005 eli 20 closed r006 farah 15 failed r007 gus 23 active r008 chen 1 active
gus gus
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022221-p1
With the first row as a header, output the 'display_name' for data rows where the 'score' is greater than 21.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>21{print $h["display_name"]}
record_id display_name score state r001 gus 2 paused r002 lina 14 paused r003 dina 7 failed r004 hana 25 closed r005 jules 9 pending r006 dina 15 active r007 hana 24 closed
hana hana
record_id display_name score state r001 farah 19 failed r002 gus 23 closed r003 farah 16 paused r004 ivan 4 paused r005 eli 20 closed r006 farah 15 failed r007 gus 23 active r008 chen 1 active
gus gus
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022221
qwen/qwen3.7-plus
awkweave-0022222
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
lina 16 active eli 5 failed hana 26 ready bruno 11 closed hana 29 pending dina 30 failed hana 23 ready
16 5 26 11 29 30 23
gus 6 closed bruno 9 closed lina 23 active gus 28 paused ivan 26 active eli 9 closed farah 29 failed lina 26 closed eli 23 ready hana 16 closed
6 9 23 28 26 9 29 26 23 16
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022222-p1
Given tab-separated input, extract and print the second column from each record.
BEGIN{FS=OFS="\t"}{print $2}
lina 16 active eli 5 failed hana 26 ready bruno 11 closed hana 29 pending dina 30 failed hana 23 ready
16 5 26 11 29 30 23
gus 6 closed bruno 9 closed lina 23 active gus 28 paused ivan 26 active eli 9 closed farah 29 failed lina 26 closed eli 23 ready hana 16 closed
6 9 23 28 26 9 29 26 23 16
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022222
qwen/qwen3.7-plus
awkweave-0022223
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}
hana,25,failed dina,3,active farah,7,failed hana,2,ready bruno,27,failed lina,25,active ivan,30,closed kim,30,active kim,4,ready bruno,7,pending
hana bruno lina ivan kim
eli,17,pending dina,19,paused hana,21,closed lina,21,pending chen,24,pending kim,11,pending
hana lina chen
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022223-p1
For simple comma-separated input without quoted commas, print the first column if the second column value is greater than 20.
BEGIN{FS=OFS=","}$2>20{print $1}
hana,25,failed dina,3,active farah,7,failed hana,2,ready bruno,27,failed lina,25,active ivan,30,closed kim,30,active kim,4,ready bruno,7,pending
hana bruno lina ivan kim
eli,17,pending dina,19,paused hana,21,closed lina,21,pending chen,24,pending kim,11,pending
hana lina chen
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022223
qwen/qwen3.7-plus
awkweave-0022224
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
gus ember 59 farah harbor 69 alice delta 65 farah delta 24 gus cobalt 67 bruno birch 87 ivan fable 106 farah fable 8 kim amber 67
gus ember 59 farah harbor 69 alice delta 65 farah delta 24 gus cobalt 67 bruno birch 87 ivan fable 106 farah fable 8 kim amber 67
dina ember 107 kim birch 87 farah grove 6 eli birch 111 eli ember 39 eli cobalt 75 alice ember 5 kim fable 74 eli harbor 117
dina ember 107 kim birch 87 farah grove 6 eli birch 111 eli ember 39 eli cobalt 75 alice ember 5 kim fable 74 eli harbor 117
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022224-p1
Strip leading and trailing whitespace from each line and replace sequences of internal whitespace with a single space.
{$1=$1;print}
gus ember 59 farah harbor 69 alice delta 65 farah delta 24 gus cobalt 67 bruno birch 87 ivan fable 106 farah fable 8 kim amber 67
gus ember 59 farah harbor 69 alice delta 65 farah delta 24 gus cobalt 67 bruno birch 87 ivan fable 106 farah fable 8 kim amber 67
dina ember 107 kim birch 87 farah grove 6 eli birch 111 eli ember 39 eli cobalt 75 alice ember 5 kim fable 74 eli harbor 117
dina ember 107 kim birch 87 farah grove 6 eli birch 111 eli ember 39 eli cobalt 75 alice ember 5 kim fable 74 eli harbor 117
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022224
qwen/qwen3.7-plus
awkweave-0022225
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan delta 22 active jules delta 3 active dina fable 75 active chen ember 77 active hana grove 106 paused bruno harbor 83 ready lina juniper 18 failed
lina juniper 18 failed
chen amber 72 closed gus amber 27 paused hana birch 44 paused gus amber 28 closed jules indigo 55 failed jules harbor 27 paused gus indigo 84 ready eli birch 103 active
jules indigo 55 failed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022225-p1
Identify and output the longest line from the input; if multiple lines share the maximum length, select the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
ivan delta 22 active jules delta 3 active dina fable 75 active chen ember 77 active hana grove 106 paused bruno harbor 83 ready lina juniper 18 failed
lina juniper 18 failed
chen amber 72 closed gus amber 27 paused hana birch 44 paused gus amber 28 closed jules indigo 55 failed jules harbor 27 paused gus indigo 84 ready eli birch 103 active
jules indigo 55 failed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022225
qwen/qwen3.7-plus
awkweave-0022226
Print every 3rd line starting at line 3 (then line 6, and so on).
NR%3==0
eli 116 jules 75 lina 107 bruno 73 gus 75 alice 39 lina 40 lina 3 hana 88
lina 107 alice 39 hana 88
dina 76 gus 29 bruno 36 ivan 91 gus 63 farah 2 gus 74 eli 66
bruno 36 farah 2
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022226-p1
Output every third line of the input, beginning with line 3 (i.e., lines 3, 6, 9, etc.).
NR%3==0
eli 116 jules 75 lina 107 bruno 73 gus 75 alice 39 lina 40 lina 3 hana 88
lina 107 alice 39 hana 88
dina 76 gus 29 bruno 36 ivan 91 gus 63 farah 2 gus 74 eli 66
bruno 36 farah 2
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022226
qwen/qwen3.7-plus
awkweave-0022227
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
alpha birch 88 beta ember 66 beta ember 80 delta indigo 110 beta harbor 77 gamma amber 71 beta indigo 79 alpha ember 96
4
gamma harbor 110 alpha indigo 46 beta indigo 60 gamma harbor 30 beta harbor 67 beta indigo 89 alpha ember 111 beta birch 61 gamma indigo 75
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022227-p1
Calculate the number of unique values present in the first column and print only that total count.
{if(!seen[$1]++)n++}END{print n+0}
alpha birch 88 beta ember 66 beta ember 80 delta indigo 110 beta harbor 77 gamma amber 71 beta indigo 79 alpha ember 96
4
gamma harbor 110 alpha indigo 46 beta indigo 60 gamma harbor 30 beta harbor 67 beta indigo 89 alpha ember 111 beta birch 61 gamma indigo 75
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022227
qwen/qwen3.7-plus
awkweave-0022228
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}
kim 27 0 alice 22 3 bruno 19 5 bruno 29 12 farah 21 3 lina 10 21
alice 7.33 bruno 3.80 bruno 2.42 farah 7.00 lina 0.48
kim 27 0 kim 11 5 eli 7 22 dina 24 16 dina 7 14 ivan 2 9 gus 3 27 eli 19 22 kim 24 3 hana 25 11
kim 2.20 eli 0.32 dina 1.50 dina 0.50 ivan 0.22 gus 0.11 eli 0.86 kim 8.00 hana 2.27
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022228-p1
For each row, output the value of column 1 followed by the result of column 2 divided by column 3 formatted to two decimal places, excluding any rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
kim 27 0 alice 22 3 bruno 19 5 bruno 29 12 farah 21 3 lina 10 21
alice 7.33 bruno 3.80 bruno 2.42 farah 7.00 lina 0.48
kim 27 0 kim 11 5 eli 7 22 dina 24 16 dina 7 14 ivan 2 9 gus 3 27 eli 19 22 kim 24 3 hana 25 11
kim 2.20 eli 0.32 dina 1.50 dina 0.50 ivan 0.22 gus 0.11 eli 0.86 kim 8.00 hana 2.27
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022228
qwen/qwen3.7-plus
awkweave-0022229
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 amber 15 farah grove 8 gus delta 22 bruno harbor 13 farah cobalt 23 kim birch 29
kim birch 29 farah cobalt 23 gus delta 22
hana harbor 19 bruno amber 21 gus cobalt 3 farah delta 8 kim grove 3 dina juniper 16
bruno amber 21 hana harbor 19 dina juniper 16
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022229-p1
Display the three 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 amber 15 farah grove 8 gus delta 22 bruno harbor 13 farah cobalt 23 kim birch 29
kim birch 29 farah cobalt 23 gus delta 22
hana harbor 19 bruno amber 21 gus cobalt 3 farah delta 8 kim grove 3 dina juniper 16
bruno amber 21 hana harbor 19 dina juniper 16
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022229
qwen/qwen3.7-plus
awkweave-0022230
For each line, output fields 4 and 2, in that order.
{print $4, $2}
ivan failed ready active farah ready ready active kim pending active pending gus active active ready lina pending closed active lina ready closed pending
active failed active ready pending pending ready active active pending pending ready
ivan ready failed pending farah closed active active gus ready pending failed bruno failed failed active gus closed failed ready alice closed ready closed chen active ready active chen active paused closed
pending ready active closed failed ready active failed ready closed closed closed active active closed active
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022230-p1
For every line, print the fourth field followed by the second field.
{print $4, $2}
ivan failed ready active farah ready ready active kim pending active pending gus active active ready lina pending closed active lina ready closed pending
active failed active ready pending pending ready active active pending pending ready
ivan ready failed pending farah closed active active gus ready pending failed bruno failed failed active gus closed failed ready alice closed ready closed chen active ready active chen active paused closed
pending ready active closed failed ready active failed ready closed closed closed active active closed active
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022230
qwen/qwen3.7-plus
awkweave-0022231
Print the last field of every input line.
{print $NF}
70 farah 94 jules jules 54 kim 109 gus kim 106 jules 53 eli eli 117 farah 13 jules ivan 22 kim 21 chen farah 49 jules 55 kim kim
jules kim eli ivan farah kim
117 kim 5 chen jules 96 kim 15 dina dina 33 jules 104 dina farah 32 bruno 113 gus dina 107 eli 86 alice bruno 100 bruno 54 kim farah 72 ivan 114 alice dina 56 kim 42 gus chen
jules dina farah dina bruno farah dina chen
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022231-p1
Output the last field of each input line.
{print $NF}
70 farah 94 jules jules 54 kim 109 gus kim 106 jules 53 eli eli 117 farah 13 jules ivan 22 kim 21 chen farah 49 jules 55 kim kim
jules kim eli ivan farah kim
117 kim 5 chen jules 96 kim 15 dina dina 33 jules 104 dina farah 32 bruno 113 gus dina 107 eli 86 alice bruno 100 bruno 54 kim farah 72 ivan 114 alice dina 56 kim 42 gus chen
jules dina farah dina bruno farah dina chen
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022231
qwen/qwen3.7-plus
awkweave-0022232
Print the complete records where column 3 is greater than 77.
$3 > 77
eli active 81 active eli active 20 pending lina ready 28 ready jules ready 104 pending eli ready 33 pending farah paused 103 failed
eli active 81 active jules ready 104 pending farah paused 103 failed
lina paused 106 pending jules active 38 failed dina paused 98 pending gus active 83 failed hana paused 70 paused kim ready 116 failed
lina paused 106 pending dina paused 98 pending gus active 83 failed kim ready 116 failed
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022232-p1
Print the full records for which the value in column 3 exceeds 77.
$3 > 77
eli active 81 active eli active 20 pending lina ready 28 ready jules ready 104 pending eli ready 33 pending farah paused 103 failed
eli active 81 active jules ready 104 pending farah paused 103 failed
lina paused 106 pending jules active 38 failed dina paused 98 pending gus active 83 failed hana paused 70 paused kim ready 116 failed
lina paused 106 pending dina paused 98 pending gus active 83 failed kim ready 116 failed
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022232
qwen/qwen3.7-plus
awkweave-0022233
Show whole lines whose 2nd field is between 9 and 18, inclusive.
$2 >= 9 && $2 <= 18
failed 24 paused indigo ready 5 failed fable paused 22 closed birch closed 28 active grove active 7 ready amber paused 15 failed harbor
paused 15 failed harbor
failed 19 paused indigo closed 14 pending juniper active 17 paused juniper closed 15 pending ember closed 29 ready grove closed 14 closed amber active 15 failed birch closed 29 ready indigo pending 19 paused juniper
closed 14 pending juniper active 17 paused juniper closed 15 pending ember closed 14 closed amber active 15 failed birch
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022233-p1
Display entire lines where the second field has a value between 9 and 18, inclusive.
$2 >= 9 && $2 <= 18
failed 24 paused indigo ready 5 failed fable paused 22 closed birch closed 28 active grove active 7 ready amber paused 15 failed harbor
paused 15 failed harbor
failed 19 paused indigo closed 14 pending juniper active 17 paused juniper closed 15 pending ember closed 29 ready grove closed 14 closed amber active 15 failed birch closed 29 ready indigo pending 19 paused juniper
closed 14 pending juniper active 17 paused juniper closed 15 pending ember closed 14 closed amber active 15 failed birch
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022233
qwen/qwen3.7-plus
awkweave-0022234
Print column 4 only for rows where column 2 is exactly paused.
$2 == "paused"{print $4}
birch ready 49 kim cobalt pending 59 jules juniper paused 106 dina cobalt paused 29 farah harbor closed 31 lina indigo active 9 dina delta active 18 chen
dina farah
cobalt paused 100 gus delta active 69 ivan juniper pending 46 chen harbor pending 15 bruno ember pending 112 dina juniper ready 75 farah ember active 9 bruno harbor failed 69 bruno indigo paused 37 alice indigo active 35 chen
gus alice
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022234-p1
Output only the fourth column for rows where the second column is exactly 'paused'.
$2 == "paused"{print $4}
birch ready 49 kim cobalt pending 59 jules juniper paused 106 dina cobalt paused 29 farah harbor closed 31 lina indigo active 9 dina delta active 18 chen
dina farah
cobalt paused 100 gus delta active 69 ivan juniper pending 46 chen harbor pending 15 bruno ember pending 112 dina juniper ready 75 farah ember active 9 bruno harbor failed 69 bruno indigo paused 37 alice indigo active 35 chen
gus alice
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022234
qwen/qwen3.7-plus
awkweave-0022235
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
ERROR 115 fable INFO 61 juniper ERROR 47 juniper ERROR 67 harbor DEBUG 44 ember INFO 81 cobalt WARN 47 grove
ERROR 115 fable ERROR 47 juniper ERROR 67 harbor
WARN 82 fable INFO 24 cobalt WARN 11 amber DEBUG 107 juniper WARN 32 cobalt INFO 55 fable WARN 49 indigo ERROR 23 juniper
ERROR 23 juniper
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022235-p1
Print all fields from lines where the first field starts with the string 'ERROR'.
$1 ~ /^ERROR/
ERROR 115 fable INFO 61 juniper ERROR 47 juniper ERROR 67 harbor DEBUG 44 ember INFO 81 cobalt WARN 47 grove
ERROR 115 fable ERROR 47 juniper ERROR 67 harbor
WARN 82 fable INFO 24 cobalt WARN 11 amber DEBUG 107 juniper WARN 32 cobalt INFO 55 fable WARN 49 indigo ERROR 23 juniper
ERROR 23 juniper
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022235
qwen/qwen3.7-plus
awkweave-0022236
Print every line except those containing the exact text juniper.
$0 !~ /juniper/
indigo 29 ready ember 13 failed grove 65 paused delta 78 failed ember 7 active birch 2 failed amber 85 ready amber 31 closed juniper 999 active
indigo 29 ready ember 13 failed grove 65 paused delta 78 failed ember 7 active birch 2 failed amber 85 ready amber 31 closed
ember 73 failed indigo 87 paused delta 85 pending juniper 24 ready harbor 17 active birch 68 paused juniper 999 active
ember 73 failed indigo 87 paused delta 85 pending harbor 17 active birch 68 paused
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022236-p1
Output all lines that do not contain the exact string juniper.
$0 !~ /juniper/
indigo 29 ready ember 13 failed grove 65 paused delta 78 failed ember 7 active birch 2 failed amber 85 ready amber 31 closed juniper 999 active
indigo 29 ready ember 13 failed grove 65 paused delta 78 failed ember 7 active birch 2 failed amber 85 ready amber 31 closed
ember 73 failed indigo 87 paused delta 85 pending juniper 24 ready harbor 17 active birch 68 paused juniper 999 active
ember 73 failed indigo 87 paused delta 85 pending harbor 17 active birch 68 paused
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022236
qwen/qwen3.7-plus
awkweave-0022237
Print lines 2 through 5, including both endpoints.
NR >= 2 && NR <= 5
hana amber 93 eli delta 96 kim juniper 57 kim fable 80 bruno amber 100 lina grove 21 chen juniper 18 hana indigo 49 ivan grove 11
eli delta 96 kim juniper 57 kim fable 80 bruno amber 100
gus grove 44 kim grove 29 gus indigo 56 kim harbor 71 chen birch 7 bruno cobalt 92 farah ember 91
kim grove 29 gus indigo 56 kim harbor 71 chen birch 7
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022237-p1
Display lines 2 to 5, inclusive of both the start and end lines.
NR >= 2 && NR <= 5
hana amber 93 eli delta 96 kim juniper 57 kim fable 80 bruno amber 100 lina grove 21 chen juniper 18 hana indigo 49 ivan grove 11
eli delta 96 kim juniper 57 kim fable 80 bruno amber 100
gus grove 44 kim grove 29 gus indigo 56 kim harbor 71 chen birch 7 bruno cobalt 92 farah ember 91
kim grove 29 gus indigo 56 kim harbor 71 chen birch 7
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022237
qwen/qwen3.7-plus
awkweave-0022238
Output only the first 5 records.
NR <= 5
lina 36 indigo gus 15 fable gus 116 delta lina 90 juniper hana 104 grove bruno 43 grove lina 101 cobalt ivan 14 juniper
lina 36 indigo gus 15 fable gus 116 delta lina 90 juniper hana 104 grove
gus 70 juniper bruno 117 ember bruno 64 ember bruno 81 grove jules 88 indigo bruno 106 ember eli 82 cobalt
gus 70 juniper bruno 117 ember bruno 64 ember bruno 81 grove jules 88 indigo
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022238-p1
Show only the initial 5 records from the input.
NR <= 5
lina 36 indigo gus 15 fable gus 116 delta lina 90 juniper hana 104 grove bruno 43 grove lina 101 cobalt ivan 14 juniper
lina 36 indigo gus 15 fable gus 116 delta lina 90 juniper hana 104 grove
gus 70 juniper bruno 117 ember bruno 64 ember bruno 81 grove jules 88 indigo bruno 106 ember eli 82 cobalt
gus 70 juniper bruno 117 ember bruno 64 ember bruno 81 grove jules 88 indigo
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022238
qwen/qwen3.7-plus
awkweave-0022239
Skip the first line and print every remaining line unchanged.
NR > 1
chen 50 indigo lina 59 fable farah 114 harbor alice 48 grove lina 91 grove ivan 25 juniper gus 84 cobalt
lina 59 fable farah 114 harbor alice 48 grove lina 91 grove ivan 25 juniper gus 84 cobalt
kim 30 delta hana 40 grove farah 96 ember kim 36 ember lina 25 grove chen 16 indigo eli 100 fable
hana 40 grove farah 96 ember kim 36 ember lina 25 grove chen 16 indigo eli 100 fable
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022239-p1
Omit the first line and print the rest of the lines as they are.
NR > 1
chen 50 indigo lina 59 fable farah 114 harbor alice 48 grove lina 91 grove ivan 25 juniper gus 84 cobalt
lina 59 fable farah 114 harbor alice 48 grove lina 91 grove ivan 25 juniper gus 84 cobalt
kim 30 delta hana 40 grove farah 96 ember kim 36 ember lina 25 grove chen 16 indigo eli 100 fable
hana 40 grove farah 96 ember kim 36 ember lina 25 grove chen 16 indigo eli 100 fable
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022239
qwen/qwen3.7-plus
awkweave-0022240
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
farah paused 10 alice closed 73 gus closed 65 alice pending 26 chen paused 51 alice pending 71 eli pending 79 lina closed 63
0
kim ready 1 dina failed 41 jules failed 22 farah paused 113 lina closed 13 gus closed 68 farah active 98 jules closed 0
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022240-p1
Determine the number of records where column 2 is active; output 0 if no such records exist.
$2 == "active"{n++}END{print n+0}
farah paused 10 alice closed 73 gus closed 65 alice pending 26 chen paused 51 alice pending 71 eli pending 79 lina closed 63
0
kim ready 1 dina failed 41 jules failed 22 farah paused 113 lina closed 13 gus closed 68 farah active 98 jules closed 0
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022240
qwen/qwen3.7-plus
awkweave-0022241
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
25 ivan juniper 12 lina harbor 30 hana birch 3 ivan grove 25 bruno birch 11 farah amber 5 eli harbor 4 farah amber 19 lina ember
134
6 jules harbor 17 farah indigo 27 alice grove 26 ivan cobalt 4 eli cobalt 16 bruno delta 5 alice amber
101
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022241-p1
Compute and display the total sum of integer values found in column 1.
{s+=$1}END{print s+0}
25 ivan juniper 12 lina harbor 30 hana birch 3 ivan grove 25 bruno birch 11 farah amber 5 eli harbor 4 farah amber 19 lina ember
134
6 jules harbor 17 farah indigo 27 alice grove 26 ivan cobalt 4 eli cobalt 16 bruno delta 5 alice amber
101
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022241
qwen/qwen3.7-plus
awkweave-0022242
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
harbor eli 23 ember eli 22 ember farah 26 grove ivan 16 fable jules 25 ember hana 1
18.83
birch hana 29 birch farah 29 fable hana 22 indigo hana 22 amber lina 29 fable eli 2 delta hana 8 amber lina 15 indigo lina 29 juniper lina 26
21.10
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022242-p1
Calculate the average of column 3 and format the result to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
harbor eli 23 ember eli 22 ember farah 26 grove ivan 16 fable jules 25 ember hana 1
18.83
birch hana 29 birch farah 29 fable hana 22 indigo hana 22 amber lina 29 fable eli 2 delta hana 8 amber lina 15 indigo lina 29 juniper lina 26
21.10
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022242
qwen/qwen3.7-plus
awkweave-0022243
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
30 amber hana 20 fable alice 24 grove chen 15 fable farah 17 ember ivan 21 birch alice 13 fable farah
13
12 juniper bruno 8 juniper eli 16 ember bruno 11 harbor eli 11 ember gus 3 ember kim 7 harbor chen 4 fable alice 28 indigo alice
3
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022243-p1
Identify and output the minimum numeric value present in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
30 amber hana 20 fable alice 24 grove chen 15 fable farah 17 ember ivan 21 birch alice 13 fable farah
13
12 juniper bruno 8 juniper eli 16 ember bruno 11 harbor eli 11 ember gus 3 ember kim 7 harbor chen 4 fable alice 28 indigo alice
3
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022243
qwen/qwen3.7-plus
awkweave-0022244
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
bruno 22 cobalt chen 9 fable chen 23 harbor alice 6 ember ivan 16 fable hana 5 harbor dina 13 harbor chen 3 harbor ivan 30 juniper kim 4 amber
30
bruno 21 indigo hana 12 harbor farah 25 delta lina 21 amber bruno 26 indigo jules 1 indigo gus 25 harbor dina 15 harbor farah 19 juniper chen 14 amber
26
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022244-p1
Identify and output the maximum numeric value present in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
bruno 22 cobalt chen 9 fable chen 23 harbor alice 6 ember ivan 16 fable hana 5 harbor dina 13 harbor chen 3 harbor ivan 30 juniper kim 4 amber
30
bruno 21 indigo hana 12 harbor farah 25 delta lina 21 amber bruno 26 indigo jules 1 indigo gus 25 harbor dina 15 harbor farah 19 juniper chen 14 amber
26
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022244
qwen/qwen3.7-plus
awkweave-0022245
Count all input records and print the total.
END{print NR}
gus 45 eli 119 hana 48 kim 62 gus 98 farah 85 hana 47
7
lina 19 farah 19 chen 76 farah 68 eli 4 lina 23 gus 45 chen 55
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022245-p1
Count the total number of input records and print the final count.
END{print NR}
gus 45 eli 119 hana 48 kim 62 gus 98 farah 85 hana 47
7
lina 19 farah 19 chen 76 farah 68 eli 4 lina 23 gus 45 chen 55
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022245
qwen/qwen3.7-plus
awkweave-0022246
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
farah grove 113 hana amber 32 eli amber 44 kim ember 57 gus fable 73 farah ember 83 lina delta 103 ivan cobalt 26 gus fable 73 gus juniper 114 dina grove 109
farah grove 113 hana amber 32 eli amber 44 kim ember 57 gus fable 73 farah ember 83 lina delta 103 ivan cobalt 26 gus juniper 114 dina grove 109
bruno juniper 43 lina juniper 46 bruno juniper 27 ivan indigo 24 eli fable 79 eli fable 79 bruno amber 23 eli grove 22 ivan cobalt 50
bruno juniper 43 lina juniper 46 bruno juniper 27 ivan indigo 24 eli fable 79 bruno amber 23 eli grove 22 ivan cobalt 50
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022246-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
farah grove 113 hana amber 32 eli amber 44 kim ember 57 gus fable 73 farah ember 83 lina delta 103 ivan cobalt 26 gus fable 73 gus juniper 114 dina grove 109
farah grove 113 hana amber 32 eli amber 44 kim ember 57 gus fable 73 farah ember 83 lina delta 103 ivan cobalt 26 gus juniper 114 dina grove 109
bruno juniper 43 lina juniper 46 bruno juniper 27 ivan indigo 24 eli fable 79 eli fable 79 bruno amber 23 eli grove 22 ivan cobalt 50
bruno juniper 43 lina juniper 46 bruno juniper 27 ivan indigo 24 eli fable 79 bruno amber 23 eli grove 22 ivan cobalt 50
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022246
qwen/qwen3.7-plus
awkweave-0022247
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
farah fable 58 lina juniper 110 ivan grove 33 kim birch 92 lina ember 105 dina fable 12 farah fable 112
farah fable 58 lina juniper 110 ivan grove 33 kim birch 92 lina ember 105 dina fable 12 farah fable 112
jules ember 48 bruno cobalt 11 alice juniper 73 alice juniper 51 chen delta 43 farah harbor 98
jules ember 48 bruno cobalt 11 alice juniper 73 alice juniper 51 chen delta 43 farah harbor 98
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022247-p1
Retain only the first occurrence for each unique value in column 3, keeping the original input order.
!seen[$3]++
farah fable 58 lina juniper 110 ivan grove 33 kim birch 92 lina ember 105 dina fable 12 farah fable 112
farah fable 58 lina juniper 110 ivan grove 33 kim birch 92 lina ember 105 dina fable 12 farah fable 112
jules ember 48 bruno cobalt 11 alice juniper 73 alice juniper 51 chen delta 43 farah harbor 98
jules ember 48 bruno cobalt 11 alice juniper 73 alice juniper 51 chen delta 43 farah harbor 98
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022247
qwen/qwen3.7-plus
awkweave-0022248
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
kim 14 birch eli 11 grove ivan 18 birch gus 28 ember jules 10 ember bruno 6 fable gus 2 amber dina 29 amber hana 8 ember
kim 14 eli 25 ivan 43 gus 71 jules 81 bruno 87 gus 89 dina 118 hana 126
kim 25 fable eli 12 juniper hana 19 delta chen 6 juniper jules 25 amber lina 28 fable dina 2 harbor dina 19 amber kim 27 grove lina 10 grove
kim 25 eli 37 hana 56 chen 62 jules 87 lina 115 dina 117 dina 136 kim 163 lina 173
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022248-p1
Output the first column and the cumulative total of the second column for every record, using a space as the delimiter.
{s+=$2;print $1,s}
kim 14 birch eli 11 grove ivan 18 birch gus 28 ember jules 10 ember bruno 6 fable gus 2 amber dina 29 amber hana 8 ember
kim 14 eli 25 ivan 43 gus 71 jules 81 bruno 87 gus 89 dina 118 hana 126
kim 25 fable eli 12 juniper hana 19 delta chen 6 juniper jules 25 amber lina 28 fable dina 2 harbor dina 19 amber kim 27 grove lina 10 grove
kim 25 eli 37 hana 56 chen 62 jules 87 lina 115 dina 117 dina 136 kim 163 lina 173
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022248
qwen/qwen3.7-plus
awkweave-0022249
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 11 21 ember bruno 22 10 fable farah 9 27 fable jules 6 18 amber kim 25 9 amber alice 16 12 amber
bruno 32 bruno 32 farah 36 jules 24 kim 34 alice 28
alice 12 2 ember chen 1 7 grove chen 25 2 birch lina 12 1 delta bruno 30 1 birch farah 14 21 amber lina 15 17 birch
alice 14 chen 8 chen 27 lina 13 bruno 31 farah 35 lina 32
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022249-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
bruno 11 21 ember bruno 22 10 fable farah 9 27 fable jules 6 18 amber kim 25 9 amber alice 16 12 amber
bruno 32 bruno 32 farah 36 jules 24 kim 34 alice 28
alice 12 2 ember chen 1 7 grove chen 25 2 birch lina 12 1 delta bruno 30 1 birch farah 14 21 amber lina 15 17 birch
alice 14 chen 8 chen 27 lina 13 bruno 31 farah 35 lina 32
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022249
qwen/qwen3.7-plus
awkweave-0022250
Print column 1 and pass when column 2 is at least 21; otherwise print fail.
{print $1,($2>=21?"pass":"fail")}
jules 15 lina 9 chen 25 ivan 11 kim 10 dina 1 dina 28 kim 5 jules 3 jules 27
jules fail lina fail chen pass ivan fail kim fail dina fail dina pass kim fail jules fail jules pass
farah 22 hana 12 gus 27 dina 6 lina 17 farah 9
farah pass hana fail gus pass dina fail lina fail farah fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022250-p1
Show the first column; if the second column is 21 or greater, output 'pass', otherwise output 'fail'.
{print $1,($2>=21?"pass":"fail")}
jules 15 lina 9 chen 25 ivan 11 kim 10 dina 1 dina 28 kim 5 jules 3 jules 27
jules fail lina fail chen pass ivan fail kim fail dina fail dina pass kim fail jules fail jules pass
farah 22 hana 12 gus 27 dina 6 lina 17 farah 9
farah pass hana fail gus pass dina fail lina fail farah fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022250
qwen/qwen3.7-plus
awkweave-0022251
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
chen ember 19 farah grove 39 hana ember 82 farah harbor 116 jules grove 56 dina fable 102 kim fable 1 kim ember 120 gus ember 60 jules birch 75
CHEN FARAH HANA FARAH JULES DINA KIM KIM GUS JULES
ivan ember 108 hana grove 58 farah indigo 39 gus amber 89 chen fable 25 bruno indigo 67 ivan indigo 20 alice cobalt 117
IVAN HANA FARAH GUS CHEN BRUNO IVAN ALICE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022251-p1
Transform the first column to uppercase letters and print only that modified column.
{print toupper($1)}
chen ember 19 farah grove 39 hana ember 82 farah harbor 116 jules grove 56 dina fable 102 kim fable 1 kim ember 120 gus ember 60 jules birch 75
CHEN FARAH HANA FARAH JULES DINA KIM KIM GUS JULES
ivan ember 108 hana grove 58 farah indigo 39 gus amber 89 chen fable 25 bruno indigo 67 ivan indigo 20 alice cobalt 117
IVAN HANA FARAH GUS CHEN BRUNO IVAN ALICE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022251
qwen/qwen3.7-plus
awkweave-0022252
From column 1, print 2 characters starting at character 3.
{print substr($1,3,2)}
juniper 77 indigo 15 cobalt 81 birch 55 birch 13 delta 56 fable 77 cobalt 89 amber 72 indigo 29
ni di ba rc rc lt bl ba be di
harbor 0 birch 24 cobalt 83 delta 100 cobalt 13 amber 41 grove 114
rb rc ba lt ba be ov
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022252-p1
Extract and print a 2-character substring from the first column, starting at the third character.
{print substr($1,3,2)}
juniper 77 indigo 15 cobalt 81 birch 55 birch 13 delta 56 fable 77 cobalt 89 amber 72 indigo 29
ni di ba rc rc lt bl ba be di
harbor 0 birch 24 cobalt 83 delta 100 cobalt 13 amber 41 grove 114
rb rc ba lt ba be ov
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022252
qwen/qwen3.7-plus
awkweave-0022253
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
amber_ember 115 indigo_juniper 100 grove_amber 17 birch_birch 77 grove_juniper 116 delta_juniper 34
amber ember indigo juniper grove amber birch birch grove juniper delta juniper
harbor_delta 117 ember_birch 76 harbor_juniper 57 juniper_juniper 66 fable_delta 38 grove_juniper 75
harbor delta ember birch harbor juniper juniper juniper fable delta grove juniper
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022253-p1
Substitute all underscores in the first column with spaces and output the result.
{gsub(/_/," ",$1);print $1}
amber_ember 115 indigo_juniper 100 grove_amber 17 birch_birch 77 grove_juniper 116 delta_juniper 34
amber ember indigo juniper grove amber birch birch grove juniper delta juniper
harbor_delta 117 ember_birch 76 harbor_juniper 57 juniper_juniper 66 fable_delta 38 grove_juniper 75
harbor delta ember birch harbor juniper juniper juniper fable delta grove juniper
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022253
qwen/qwen3.7-plus
awkweave-0022254
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)}
kim harbor 61 active alice indigo 66 active bruno delta 57 active dina amber 94 active bruno harbor 83 paused farah fable 94 active alice delta 80 pending gus juniper 85 active gus juniper 120 pending
active 61 harbor kim active 66 indigo alice active 57 delta bruno active 94 amber dina paused 83 harbor bruno active 94 fable farah pending 80 delta alice active 85 juniper gus pending 120 juniper gus
alice fable 26 failed jules ember 91 ready kim harbor 107 active jules delta 114 pending hana grove 34 failed ivan grove 29 failed
failed 26 fable alice ready 91 ember jules active 107 harbor kim pending 114 delta jules failed 34 grove hana failed 29 grove ivan
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022254-p1
Reverse the sequence of fields on each line and print the entire line.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
kim harbor 61 active alice indigo 66 active bruno delta 57 active dina amber 94 active bruno harbor 83 paused farah fable 94 active alice delta 80 pending gus juniper 85 active gus juniper 120 pending
active 61 harbor kim active 66 indigo alice active 57 delta bruno active 94 amber dina paused 83 harbor bruno active 94 fable farah pending 80 delta alice active 85 juniper gus pending 120 juniper gus
alice fable 26 failed jules ember 91 ready kim harbor 107 active jules delta 114 pending hana grove 34 failed ivan grove 29 failed
failed 26 fable alice ready 91 ember jules active 107 harbor kim pending 114 delta jules failed 34 grove hana failed 29 grove ivan
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022254
qwen/qwen3.7-plus
awkweave-0022255
Print the number of whitespace-separated fields on each line.
{print NF}
chen grove 84 failed farah amber 25 paused chen amber 87 active hana cobalt 79 failed lina harbor 0 ready bruno ember 54 pending eli amber 60 paused
4 4 4 4 4 4 4
farah fable 30 ready lina ember 95 pending alice indigo 91 paused lina grove 68 closed bruno ember 28 paused hana cobalt 14 failed bruno ember 23 pending farah ember 74 active eli amber 12 ready bruno harbor 91 ready
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022255-p1
Display the count of whitespace-delimited fields found on each line.
{print NF}
chen grove 84 failed farah amber 25 paused chen amber 87 active hana cobalt 79 failed lina harbor 0 ready bruno ember 54 pending eli amber 60 paused
4 4 4 4 4 4 4
farah fable 30 ready lina ember 95 pending alice indigo 91 paused lina grove 68 closed bruno ember 28 paused hana cobalt 14 failed bruno ember 23 pending farah ember 74 active eli amber 12 ready bruno harbor 91 ready
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022255
qwen/qwen3.7-plus
awkweave-0022256
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
hana beta 58 dina gamma 76 ivan gamma 72 bruno gamma 63 eli delta 10 dina gamma 76 jules delta 74
beta 1 gamma 4 delta 2
kim gamma 76 farah gamma 55 hana beta 84 bruno gamma 9 chen gamma 9 hana gamma 85
gamma 5 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022256-p1
Tally the number of records for each unique value in the second column, printing the value and its count in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
hana beta 58 dina gamma 76 ivan gamma 72 bruno gamma 63 eli delta 10 dina gamma 76 jules delta 74
beta 1 gamma 4 delta 2
kim gamma 76 farah gamma 55 hana beta 84 bruno gamma 9 chen gamma 9 hana gamma 85
gamma 5 beta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022256
qwen/qwen3.7-plus
awkweave-0022257
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
lina gamma 1 kim alpha 23 bruno gamma 2 kim delta 30 farah delta 22 hana gamma 17 bruno alpha 26 bruno alpha 30
gamma 20 alpha 79 delta 52
kim alpha 5 jules beta 29 gus beta 18 eli beta 20 hana alpha 13 eli alpha 18 chen alpha 29 hana beta 11 eli delta 2 farah beta 5
alpha 65 beta 83 delta 2
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022257-p1
Calculate the sum of the third column grouped by the second column, displaying results in the order 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 gamma 1 kim alpha 23 bruno gamma 2 kim delta 30 farah delta 22 hana gamma 17 bruno alpha 26 bruno alpha 30
gamma 20 alpha 79 delta 52
kim alpha 5 jules beta 29 gus beta 18 eli beta 20 hana alpha 13 eli alpha 18 chen alpha 29 hana beta 11 eli delta 2 farah beta 5
alpha 65 beta 83 delta 2
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022257
qwen/qwen3.7-plus
awkweave-0022258
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 juniper 55 alpha delta 26 alpha grove 62 alpha harbor 93 alpha delta 16 delta grove 34 beta amber 105 gamma fable 106
delta 2 alpha 4
gamma amber 59 gamma grove 52 delta grove 33 delta juniper 27 gamma delta 43 gamma ember 41 delta fable 73
gamma 4 delta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022258-p1
List each duplicate value from the first column along with its occurrence count, 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 juniper 55 alpha delta 26 alpha grove 62 alpha harbor 93 alpha delta 16 delta grove 34 beta amber 105 gamma fable 106
delta 2 alpha 4
gamma amber 59 gamma grove 52 delta grove 33 delta juniper 27 gamma delta 43 gamma ember 41 delta fable 73
gamma 4 delta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022258
qwen/qwen3.7-plus
awkweave-0022259
The first row is a header. Print the note column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
record_id display_name region note r001 alice 12 active r002 alice 17 paused r003 hana 26 failed r004 hana 21 closed r005 bruno 12 active r006 jules 27 pending
active paused failed closed active pending
record_id display_name region note r001 hana 8 ready r002 dina 22 pending r003 dina 2 pending r004 farah 17 pending r005 ivan 23 ready r006 kim 13 active r007 chen 16 pending r008 eli 16 ready r009 eli 30 active
ready pending pending pending ready active pending ready active
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022259-p1
Skip the header row and print the contents of the note column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
record_id display_name region note r001 alice 12 active r002 alice 17 paused r003 hana 26 failed r004 hana 21 closed r005 bruno 12 active r006 jules 27 pending
active paused failed closed active pending
record_id display_name region note r001 hana 8 ready r002 dina 22 pending r003 dina 2 pending r004 farah 17 pending r005 ivan 23 ready r006 kim 13 active r007 chen 16 pending r008 eli 16 ready r009 eli 30 active
ready pending pending pending ready active pending ready active
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022259
qwen/qwen3.7-plus
awkweave-0022260
The first row is a header. Print display_name for data rows whose score is greater than 21.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>21{print $h["display_name"]}
record_id display_name score state r001 alice 15 paused r002 eli 27 closed r003 ivan 4 closed r004 dina 1 paused r005 dina 28 active r006 jules 6 ready r007 gus 6 active r008 lina 18 closed r009 gus 11 pending r010 jules 4 paused
eli dina
record_id display_name score state r001 chen 29 pending r002 jules 14 failed r003 gus 22 failed r004 farah 6 failed r005 eli 2 pending r006 alice 19 ready r007 hana 21 paused r008 jules 2 failed r009 dina 15 active r010 eli 3 active
chen gus
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022260-p1
Skip the header row and output the display_name field for all records where the score exceeds 21.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>21{print $h["display_name"]}
record_id display_name score state r001 alice 15 paused r002 eli 27 closed r003 ivan 4 closed r004 dina 1 paused r005 dina 28 active r006 jules 6 ready r007 gus 6 active r008 lina 18 closed r009 gus 11 pending r010 jules 4 paused
eli dina
record_id display_name score state r001 chen 29 pending r002 jules 14 failed r003 gus 22 failed r004 farah 6 failed r005 eli 2 pending r006 alice 19 ready r007 hana 21 paused r008 jules 2 failed r009 dina 15 active r010 eli 3 active
chen gus
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022260
qwen/qwen3.7-plus
awkweave-0022261
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
lina 2 pending ivan 10 ready alice 17 failed gus 20 failed jules 1 failed jules 23 active bruno 15 active hana 22 failed lina 4 paused eli 1 active
lina ivan alice gus jules jules bruno hana lina eli
hana 24 ready kim 13 active eli 26 closed eli 10 active jules 11 failed jules 23 failed
hana kim eli eli jules jules
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022261-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
lina 2 pending ivan 10 ready alice 17 failed gus 20 failed jules 1 failed jules 23 active bruno 15 active hana 22 failed lina 4 paused eli 1 active
lina ivan alice gus jules jules bruno hana lina eli
hana 24 ready kim 13 active eli 26 closed eli 10 active jules 11 failed jules 23 failed
hana kim eli eli jules jules
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0022261
qwen/qwen3.7-plus
awkweave-0022262
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}
kim,12,pending farah,23,closed eli,27,active dina,16,paused eli,2,active jules,26,ready kim,27,closed gus,19,pending
farah eli jules kim
hana,17,paused alice,18,paused jules,25,failed chen,25,paused ivan,4,failed kim,25,active dina,7,active
jules chen kim
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022262-p1
For simple comma-separated data without quoted commas, print the first column if the second column is greater than 20.
BEGIN{FS=OFS=","}$2>20{print $1}
kim,12,pending farah,23,closed eli,27,active dina,16,paused eli,2,active jules,26,ready kim,27,closed gus,19,pending
farah eli jules kim
hana,17,paused alice,18,paused jules,25,failed chen,25,paused ivan,4,failed kim,25,active dina,7,active
jules chen kim
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022262
qwen/qwen3.7-plus
awkweave-0022263
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
eli birch 1 chen harbor 5 lina fable 22 bruno harbor 88 farah indigo 112 chen juniper 82 jules cobalt 16 gus juniper 94
eli birch 1 chen harbor 5 lina fable 22 bruno harbor 88 farah indigo 112 chen juniper 82 jules cobalt 16 gus juniper 94
ivan indigo 81 kim delta 103 hana juniper 110 kim harbor 114 chen harbor 35 jules grove 89 bruno ember 78
ivan indigo 81 kim delta 103 hana juniper 110 kim harbor 114 chen harbor 35 jules grove 89 bruno ember 78
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022263-p1
Remove leading and trailing whitespace and replace sequences of internal whitespace with a single space.
{$1=$1;print}
eli birch 1 chen harbor 5 lina fable 22 bruno harbor 88 farah indigo 112 chen juniper 82 jules cobalt 16 gus juniper 94
eli birch 1 chen harbor 5 lina fable 22 bruno harbor 88 farah indigo 112 chen juniper 82 jules cobalt 16 gus juniper 94
ivan indigo 81 kim delta 103 hana juniper 110 kim harbor 114 chen harbor 35 jules grove 89 bruno ember 78
ivan indigo 81 kim delta 103 hana juniper 110 kim harbor 114 chen harbor 35 jules grove 89 bruno ember 78
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022263
qwen/qwen3.7-plus
awkweave-0022264
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah juniper 84 closed lina cobalt 118 paused gus harbor 73 closed farah fable 120 failed dina harbor 62 failed jules indigo 14 active hana delta 99 active kim birch 93 ready hana ember 62 paused eli harbor 44 active
farah juniper 84 closed
gus grove 66 pending chen delta 49 pending chen grove 109 pending lina birch 103 active eli delta 33 active ivan fable 48 active jules juniper 85 pending gus delta 58 active bruno delta 43 ready
jules juniper 85 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022264-p1
Output the longest line from the input; in case of a tie in length, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
farah juniper 84 closed lina cobalt 118 paused gus harbor 73 closed farah fable 120 failed dina harbor 62 failed jules indigo 14 active hana delta 99 active kim birch 93 ready hana ember 62 paused eli harbor 44 active
farah juniper 84 closed
gus grove 66 pending chen delta 49 pending chen grove 109 pending lina birch 103 active eli delta 33 active ivan fable 48 active jules juniper 85 pending gus delta 58 active bruno delta 43 ready
jules juniper 85 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022264
qwen/qwen3.7-plus
awkweave-0022265
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
bruno 26 chen 53 lina 48 hana 96 eli 109 gus 68 chen 11 kim 80 jules 1 kim 89
chen 53 hana 96 gus 68 kim 80 kim 89
bruno 34 kim 54 hana 109 gus 33 dina 56 ivan 116 hana 54 lina 74 farah 0 kim 52
kim 54 gus 33 ivan 116 lina 74 kim 52
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022265-p1
Print every second line of the input, beginning with line 2 (i.e., lines 2, 4, 6, ...).
NR%2==0
bruno 26 chen 53 lina 48 hana 96 eli 109 gus 68 chen 11 kim 80 jules 1 kim 89
chen 53 hana 96 gus 68 kim 80 kim 89
bruno 34 kim 54 hana 109 gus 33 dina 56 ivan 116 hana 54 lina 74 farah 0 kim 52
kim 54 gus 33 ivan 116 lina 74 kim 52
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022265
qwen/qwen3.7-plus
awkweave-0022266
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta fable 81 alpha juniper 10 gamma amber 11 gamma fable 77 beta ember 66 gamma harbor 79
5
delta ember 36 beta grove 18 delta fable 116 alpha amber 111 gamma grove 65 alpha indigo 74 beta juniper 15 beta juniper 6 alpha amber 35
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022266-p1
Calculate the number of unique values in the second column and output only that count.
{if(!seen[$2]++)n++}END{print n+0}
beta fable 81 alpha juniper 10 gamma amber 11 gamma fable 77 beta ember 66 gamma harbor 79
5
delta ember 36 beta grove 18 delta fable 116 alpha amber 111 gamma grove 65 alpha indigo 74 beta juniper 15 beta juniper 6 alpha amber 35
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022266
qwen/qwen3.7-plus
awkweave-0022267
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}
kim 4 0 gus 17 15 lina 12 12 eli 13 5 hana 11 24 alice 18 18 dina 29 16 chen 29 12
gus 1.13 lina 1.00 eli 2.60 hana 0.46 alice 1.00 dina 1.81 chen 2.42
jules 18 0 jules 27 25 kim 30 28 lina 12 19 lina 8 9 chen 28 29 lina 16 6 chen 2 8 alice 24 22 eli 4 7
jules 1.08 kim 1.07 lina 0.63 lina 0.89 chen 0.97 lina 2.67 chen 0.25 alice 1.09 eli 0.57
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022267-p1
For each row, output the first column and the result of dividing the second column by the third column formatted to two decimal places, excluding rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
kim 4 0 gus 17 15 lina 12 12 eli 13 5 hana 11 24 alice 18 18 dina 29 16 chen 29 12
gus 1.13 lina 1.00 eli 2.60 hana 0.46 alice 1.00 dina 1.81 chen 2.42
jules 18 0 jules 27 25 kim 30 28 lina 12 19 lina 8 9 chen 28 29 lina 16 6 chen 2 8 alice 24 22 eli 4 7
jules 1.08 kim 1.07 lina 0.63 lina 0.89 chen 0.97 lina 2.67 chen 0.25 alice 1.09 eli 0.57
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022267
qwen/qwen3.7-plus
awkweave-0022268
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
gus juniper 29 kim fable 8 bruno cobalt 14 bruno harbor 5 lina cobalt 1 chen birch 4 gus fable 11 bruno delta 1 alice amber 20 kim fable 28
gus juniper 29 kim fable 28 alice amber 20
ivan harbor 18 ivan harbor 8 dina grove 5 hana ember 29 ivan juniper 11 farah birch 2 jules delta 5 bruno ember 24 ivan grove 19
hana ember 29 bruno ember 24 ivan grove 19
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022268-p1
Output 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]}
gus juniper 29 kim fable 8 bruno cobalt 14 bruno harbor 5 lina cobalt 1 chen birch 4 gus fable 11 bruno delta 1 alice amber 20 kim fable 28
gus juniper 29 kim fable 28 alice amber 20
ivan harbor 18 ivan harbor 8 dina grove 5 hana ember 29 ivan juniper 11 farah birch 2 jules delta 5 bruno ember 24 ivan grove 19
hana ember 29 bruno ember 24 ivan grove 19
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022268
qwen/qwen3.7-plus
awkweave-0022269
Print column 4 followed by column 3 for every record.
{print $4, $3}
3 84 95 amber 99 21 63 birch 14 35 67 grove 7 5 62 grove 72 92 84 ember 65 100 100 cobalt 79 59 95 indigo 106 35 110 birch 54 20 18 harbor
amber 95 birch 63 grove 67 grove 62 ember 84 cobalt 100 indigo 95 birch 110 harbor 18
81 84 10 cobalt 6 93 44 fable 68 75 116 delta 10 36 110 fable 44 100 50 amber 106 79 116 cobalt
cobalt 10 fable 44 delta 116 fable 110 amber 50 cobalt 116
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022269-p1
For every record, output the fourth column followed by the third column.
{print $4, $3}
3 84 95 amber 99 21 63 birch 14 35 67 grove 7 5 62 grove 72 92 84 ember 65 100 100 cobalt 79 59 95 indigo 106 35 110 birch 54 20 18 harbor
amber 95 birch 63 grove 67 grove 62 ember 84 cobalt 100 indigo 95 birch 110 harbor 18
81 84 10 cobalt 6 93 44 fable 68 75 116 delta 10 36 110 fable 44 100 50 amber 106 79 116 cobalt
cobalt 10 fable 44 delta 116 fable 110 amber 50 cobalt 116
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022269
qwen/qwen3.7-plus
awkweave-0022270
Print the last field of every input line.
{print $NF}
farah 19 amber farah 53 grove ivan 26 amber chen 109 harbor ivan 73 cobalt kim 58 juniper farah 44 ember hana 16 birch
amber grove amber harbor cobalt juniper ember birch
farah 107 grove ivan 58 amber bruno 93 grove ivan 58 ember hana 26 harbor kim 113 harbor gus 79 cobalt
grove amber grove ember harbor harbor cobalt
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0022270-p1
Output the last field of each line in the input.
{print $NF}
farah 19 amber farah 53 grove ivan 26 amber chen 109 harbor ivan 73 cobalt kim 58 juniper farah 44 ember hana 16 birch
amber grove amber harbor cobalt juniper ember birch
farah 107 grove ivan 58 amber bruno 93 grove ivan 58 ember hana 26 harbor kim 113 harbor gus 79 cobalt
grove amber grove ember harbor harbor cobalt
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0022270
qwen/qwen3.7-plus