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-0011380-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
ivan 11 pending farah 11 closed bruno 17 pending kim 2 paused jules 11 active chen 3 pending
ivan farah bruno kim jules chen
eli 17 failed dina 3 ready ivan 20 closed eli 20 ready gus 9 pending alice 28 active kim 11 active
eli dina ivan eli gus alice kim
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0011380
qwen/qwen3.7-plus
awkweave-0011381
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 23.
BEGIN{FS=OFS=","}$2>23{print $1}
chen,26,paused alice,24,failed jules,18,ready lina,12,closed dina,13,ready bruno,20,paused chen,16,paused ivan,25,ready gus,3,closed
chen alice ivan
alice,29,paused lina,8,paused farah,12,failed dina,16,active alice,24,paused alice,8,paused
alice alice
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011381-p1
For simple CSV data without quoted commas, output the first column only if the second column value is greater than 23.
BEGIN{FS=OFS=","}$2>23{print $1}
chen,26,paused alice,24,failed jules,18,ready lina,12,closed dina,13,ready bruno,20,paused chen,16,paused ivan,25,ready gus,3,closed
chen alice ivan
alice,29,paused lina,8,paused farah,12,failed dina,16,active alice,24,paused alice,8,paused
alice alice
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011381
qwen/qwen3.7-plus
awkweave-0011382
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
farah harbor 24 kim grove 71 chen fable 43 eli ember 76 bruno delta 76 bruno delta 11 eli harbor 119 lina ember 98 kim ember 82 jules harbor 94
farah harbor 24 kim grove 71 chen fable 43 eli ember 76 bruno delta 76 bruno delta 11 eli harbor 119 lina ember 98 kim ember 82 jules harbor 94
hana juniper 13 lina ember 75 kim harbor 71 bruno birch 8 lina harbor 17 bruno ember 75 chen birch 67 gus delta 74 farah grove 44
hana juniper 13 lina ember 75 kim harbor 71 bruno birch 8 lina harbor 17 bruno ember 75 chen birch 67 gus delta 74 farah grove 44
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011382-p1
Remove leading and trailing whitespace from each line, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
farah harbor 24 kim grove 71 chen fable 43 eli ember 76 bruno delta 76 bruno delta 11 eli harbor 119 lina ember 98 kim ember 82 jules harbor 94
farah harbor 24 kim grove 71 chen fable 43 eli ember 76 bruno delta 76 bruno delta 11 eli harbor 119 lina ember 98 kim ember 82 jules harbor 94
hana juniper 13 lina ember 75 kim harbor 71 bruno birch 8 lina harbor 17 bruno ember 75 chen birch 67 gus delta 74 farah grove 44
hana juniper 13 lina ember 75 kim harbor 71 bruno birch 8 lina harbor 17 bruno ember 75 chen birch 67 gus delta 74 farah grove 44
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011382
qwen/qwen3.7-plus
awkweave-0011383
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
alice grove 96 ready ivan grove 42 failed hana harbor 9 paused eli birch 108 pending kim amber 75 active bruno harbor 45 failed eli juniper 99 failed farah juniper 74 paused
farah juniper 74 paused
hana ember 28 active gus ember 108 pending eli ember 57 closed gus amber 61 closed lina grove 61 paused hana ember 64 failed alice fable 35 active dina cobalt 56 failed ivan amber 13 closed eli ember 32 pending
gus ember 108 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011383-p1
Identify and output the longest line in the input; if multiple lines share the maximum length, select the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
alice grove 96 ready ivan grove 42 failed hana harbor 9 paused eli birch 108 pending kim amber 75 active bruno harbor 45 failed eli juniper 99 failed farah juniper 74 paused
farah juniper 74 paused
hana ember 28 active gus ember 108 pending eli ember 57 closed gus amber 61 closed lina grove 61 paused hana ember 64 failed alice fable 35 active dina cobalt 56 failed ivan amber 13 closed eli ember 32 pending
gus ember 108 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011383
qwen/qwen3.7-plus
awkweave-0011384
Print every 4th line starting at line 3 (then line 7, and so on).
NR%4==3
ivan 9 farah 80 lina 2 dina 18 bruno 73 gus 116 jules 11 chen 17 kim 33
lina 2 jules 11
lina 75 alice 88 hana 93 ivan 22 hana 117 gus 116 chen 107
hana 93 chen 107
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011384-p1
Output every fourth line beginning with the third line (i.e., lines 3, 7, 11, etc.).
NR%4==3
ivan 9 farah 80 lina 2 dina 18 bruno 73 gus 116 jules 11 chen 17 kim 33
lina 2 jules 11
lina 75 alice 88 hana 93 ivan 22 hana 117 gus 116 chen 107
hana 93 chen 107
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011384
qwen/qwen3.7-plus
awkweave-0011385
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta grove 51 beta delta 107 alpha indigo 23 delta birch 15 delta cobalt 18 alpha grove 80 gamma fable 2 beta cobalt 80 alpha cobalt 97
4
alpha delta 73 delta ember 76 delta indigo 93 beta harbor 59 gamma juniper 18 alpha delta 17
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011385-p1
Calculate the number of unique values in the first column and print only that total count.
{if(!seen[$1]++)n++}END{print n+0}
beta grove 51 beta delta 107 alpha indigo 23 delta birch 15 delta cobalt 18 alpha grove 80 gamma fable 2 beta cobalt 80 alpha cobalt 97
4
alpha delta 73 delta ember 76 delta indigo 93 beta harbor 59 gamma juniper 18 alpha delta 17
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011385
qwen/qwen3.7-plus
awkweave-0011386
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
jules 27 0 hana 4 30 ivan 27 23 lina 9 20 alice 13 7 alice 10 8 jules 23 8 dina 10 27 lina 11 26
hana 0.13 ivan 1.17 lina 0.45 alice 1.86 alice 1.25 jules 2.88 dina 0.37 lina 0.42
hana 22 0 alice 18 8 eli 1 6 hana 11 3 eli 22 28 farah 4 15 lina 17 16 hana 24 1 lina 24 2 lina 27 25
alice 2.25 eli 0.17 hana 3.67 eli 0.79 farah 0.27 lina 1.06 hana 24.00 lina 12.00 lina 1.08
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011386-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}
jules 27 0 hana 4 30 ivan 27 23 lina 9 20 alice 13 7 alice 10 8 jules 23 8 dina 10 27 lina 11 26
hana 0.13 ivan 1.17 lina 0.45 alice 1.86 alice 1.25 jules 2.88 dina 0.37 lina 0.42
hana 22 0 alice 18 8 eli 1 6 hana 11 3 eli 22 28 farah 4 15 lina 17 16 hana 24 1 lina 24 2 lina 27 25
alice 2.25 eli 0.17 hana 3.67 eli 0.79 farah 0.27 lina 1.06 hana 24.00 lina 12.00 lina 1.08
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011386
qwen/qwen3.7-plus
awkweave-0011387
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]}
chen amber 24 jules indigo 18 ivan birch 30 kim amber 22 gus birch 28 hana birch 7
ivan birch 30 gus birch 28 chen amber 24
lina grove 4 alice fable 21 farah grove 20 chen cobalt 28 chen fable 6 alice amber 10 hana ember 13 hana indigo 24
chen cobalt 28 hana indigo 24 alice fable 21
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011387-p1
Select the top 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]}
chen amber 24 jules indigo 18 ivan birch 30 kim amber 22 gus birch 28 hana birch 7
ivan birch 30 gus birch 28 chen amber 24
lina grove 4 alice fable 21 farah grove 20 chen cobalt 28 chen fable 6 alice amber 10 hana ember 13 hana indigo 24
chen cobalt 28 hana indigo 24 alice fable 21
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011387
qwen/qwen3.7-plus
awkweave-0011388
Print column 6 followed by column 3 for every record.
{print $6, $3}
72 eli amber gus closed indigo 94 gus fable lina active birch 17 lina harbor lina closed delta 23 lina juniper hana closed harbor 88 gus birch gus ready juniper 94 bruno ember farah failed indigo 85 lina birch gus failed juniper 43 jules ember gus failed amber
indigo amber birch fable delta harbor harbor juniper juniper birch indigo ember juniper birch amber ember
21 kim harbor ivan closed indigo 6 hana juniper kim paused birch 74 hana fable eli closed fable 70 bruno juniper hana active fable 15 farah harbor bruno closed grove 10 chen birch lina paused fable 79 farah ember alice pending fable
indigo harbor birch juniper fable fable fable juniper grove harbor fable birch fable ember
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011388-p1
For every record, output the value from column 6 followed immediately by the value from column 3.
{print $6, $3}
72 eli amber gus closed indigo 94 gus fable lina active birch 17 lina harbor lina closed delta 23 lina juniper hana closed harbor 88 gus birch gus ready juniper 94 bruno ember farah failed indigo 85 lina birch gus failed juniper 43 jules ember gus failed amber
indigo amber birch fable delta harbor harbor juniper juniper birch indigo ember juniper birch amber ember
21 kim harbor ivan closed indigo 6 hana juniper kim paused birch 74 hana fable eli closed fable 70 bruno juniper hana active fable 15 farah harbor bruno closed grove 10 chen birch lina paused fable 79 farah ember alice pending fable
indigo harbor birch juniper fable fable fable juniper grove harbor fable birch fable ember
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011388
qwen/qwen3.7-plus
awkweave-0011389
Print the last field of every input line.
{print $NF}
alice amber indigo lina birch grove chen ember juniper alice harbor harbor hana cobalt grove dina cobalt juniper ivan delta amber
indigo grove juniper harbor grove juniper amber
hana fable harbor lina juniper amber lina juniper ember hana amber juniper chen cobalt fable lina cobalt harbor kim birch cobalt
harbor amber ember juniper fable harbor cobalt
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011389-p1
Extract and print the final field from each line of input.
{print $NF}
alice amber indigo lina birch grove chen ember juniper alice harbor harbor hana cobalt grove dina cobalt juniper ivan delta amber
indigo grove juniper harbor grove juniper amber
hana fable harbor lina juniper amber lina juniper ember hana amber juniper chen cobalt fable lina cobalt harbor kim birch cobalt
harbor amber ember juniper fable harbor cobalt
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011389
qwen/qwen3.7-plus
awkweave-0011400
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
eli 26 amber lina 25 birch gus 20 delta dina 9 ember eli 13 fable ivan 5 grove gus 16 delta farah 5 birch farah 6 grove
13.89
chen 14 fable eli 13 cobalt gus 5 grove hana 25 harbor lina 17 indigo bruno 16 fable hana 9 birch
14.14
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011400-p1
Calculate the average of the values in column 2 and display the result rounded to two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
eli 26 amber lina 25 birch gus 20 delta dina 9 ember eli 13 fable ivan 5 grove gus 16 delta farah 5 birch farah 6 grove
13.89
chen 14 fable eli 13 cobalt gus 5 grove hana 25 harbor lina 17 indigo bruno 16 fable hana 9 birch
14.14
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011400
qwen/qwen3.7-plus
awkweave-0011401
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
17 grove alice 17 indigo jules 21 delta lina 1 indigo lina 7 harbor eli 17 cobalt lina 4 delta kim 22 harbor dina
1
20 birch eli 7 indigo alice 17 grove dina 22 birch dina 18 indigo kim 4 amber jules 18 ember bruno
4
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011401-p1
Identify and output the minimum numeric value found in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
17 grove alice 17 indigo jules 21 delta lina 1 indigo lina 7 harbor eli 17 cobalt lina 4 delta kim 22 harbor dina
1
20 birch eli 7 indigo alice 17 grove dina 22 birch dina 18 indigo kim 4 amber jules 18 ember bruno
4
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011401
qwen/qwen3.7-plus
awkweave-0011402
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
29 delta chen 6 juniper bruno 17 grove ivan 28 juniper bruno 26 delta lina 26 juniper eli 7 fable kim 29 grove chen
29
1 fable gus 6 delta lina 6 grove hana 13 fable alice 19 grove eli 15 harbor lina 25 cobalt kim 18 fable dina 8 fable dina
25
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011402-p1
Identify and output the maximum numeric value found in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
29 delta chen 6 juniper bruno 17 grove ivan 28 juniper bruno 26 delta lina 26 juniper eli 7 fable kim 29 grove chen
29
1 fable gus 6 delta lina 6 grove hana 13 fable alice 19 grove eli 15 harbor lina 25 cobalt kim 18 fable dina 8 fable dina
25
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011402
qwen/qwen3.7-plus
awkweave-0011403
Count all input records and print the total.
END{print NR}
lina 7 ivan 45 dina 11 gus 11 jules 35 dina 4
6
gus 32 chen 56 kim 91 ivan 72 dina 34 hana 23 kim 28 dina 30
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011403-p1
Count the total number of input records and print that count.
END{print NR}
lina 7 ivan 45 dina 11 gus 11 jules 35 dina 4
6
gus 32 chen 56 kim 91 ivan 72 dina 34 hana 23 kim 28 dina 30
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011403
qwen/qwen3.7-plus
awkweave-0011404
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
kim grove 72 hana fable 34 lina delta 95 eli indigo 95 alice grove 46 farah fable 16 hana fable 34 bruno fable 70 ivan indigo 5 ivan ember 11 dina birch 42
kim grove 72 hana fable 34 lina delta 95 eli indigo 95 alice grove 46 farah fable 16 bruno fable 70 ivan indigo 5 ivan ember 11 dina birch 42
jules ember 92 bruno fable 17 kim amber 69 farah birch 56 ivan birch 120 gus amber 71 ivan delta 60 chen grove 44 eli ember 98 gus amber 71 farah amber 13
jules ember 92 bruno fable 17 kim amber 69 farah birch 56 ivan birch 120 gus amber 71 ivan delta 60 chen grove 44 eli ember 98 farah amber 13
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011404-p1
Eliminate duplicate lines by keeping only the first instance of each, maintaining the original sequence.
!seen[$0]++
kim grove 72 hana fable 34 lina delta 95 eli indigo 95 alice grove 46 farah fable 16 hana fable 34 bruno fable 70 ivan indigo 5 ivan ember 11 dina birch 42
kim grove 72 hana fable 34 lina delta 95 eli indigo 95 alice grove 46 farah fable 16 bruno fable 70 ivan indigo 5 ivan ember 11 dina birch 42
jules ember 92 bruno fable 17 kim amber 69 farah birch 56 ivan birch 120 gus amber 71 ivan delta 60 chen grove 44 eli ember 98 gus amber 71 farah amber 13
jules ember 92 bruno fable 17 kim amber 69 farah birch 56 ivan birch 120 gus amber 71 ivan delta 60 chen grove 44 eli ember 98 farah amber 13
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011404
qwen/qwen3.7-plus
awkweave-0011405
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
eli amber 7 farah amber 96 dina amber 21 farah amber 79 eli birch 81 hana delta 24 eli cobalt 113
eli amber 7 eli birch 81 hana delta 24 eli cobalt 113
kim harbor 104 kim juniper 45 dina fable 100 kim amber 8 chen birch 95 kim fable 75 bruno indigo 96
kim harbor 104 kim juniper 45 dina fable 100 kim amber 8 chen birch 95 bruno indigo 96
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011405-p1
Retain only the first row for every unique value in column 2, keeping the original input order.
!seen[$2]++
eli amber 7 farah amber 96 dina amber 21 farah amber 79 eli birch 81 hana delta 24 eli cobalt 113
eli amber 7 eli birch 81 hana delta 24 eli cobalt 113
kim harbor 104 kim juniper 45 dina fable 100 kim amber 8 chen birch 95 kim fable 75 bruno indigo 96
kim harbor 104 kim juniper 45 dina fable 100 kim amber 8 chen birch 95 bruno indigo 96
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011405
qwen/qwen3.7-plus
awkweave-0011406
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
eli 29 cobalt jules 21 indigo bruno 27 ember lina 20 ember jules 26 delta dina 22 ember chen 26 harbor
eli 29 jules 50 bruno 77 lina 97 jules 123 dina 145 chen 171
dina 15 cobalt lina 17 birch ivan 11 indigo kim 10 delta lina 16 birch lina 7 juniper dina 9 amber
dina 15 lina 32 ivan 43 kim 53 lina 69 lina 76 dina 85
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011406-p1
Output column 1 alongside the cumulative sum of column 2 for each record, using a space as the delimiter.
{s+=$2;print $1,s}
eli 29 cobalt jules 21 indigo bruno 27 ember lina 20 ember jules 26 delta dina 22 ember chen 26 harbor
eli 29 jules 50 bruno 77 lina 97 jules 123 dina 145 chen 171
dina 15 cobalt lina 17 birch ivan 11 indigo kim 10 delta lina 16 birch lina 7 juniper dina 9 amber
dina 15 lina 32 ivan 43 kim 53 lina 69 lina 76 dina 85
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011406
qwen/qwen3.7-plus
awkweave-0011407
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 22 27 harbor alice 18 8 indigo jules 1 5 grove kim 20 25 grove ivan 8 14 juniper farah 13 4 delta
bruno 49 alice 26 jules 6 kim 45 ivan 22 farah 17
bruno 4 5 amber ivan 16 22 fable bruno 22 29 harbor jules 29 5 harbor alice 28 18 harbor jules 2 1 harbor
bruno 9 ivan 38 bruno 51 jules 34 alice 46 jules 3
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011407-p1
For each row, display field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 22 27 harbor alice 18 8 indigo jules 1 5 grove kim 20 25 grove ivan 8 14 juniper farah 13 4 delta
bruno 49 alice 26 jules 6 kim 45 ivan 22 farah 17
bruno 4 5 amber ivan 16 22 fable bruno 22 29 harbor jules 29 5 harbor alice 28 18 harbor jules 2 1 harbor
bruno 9 ivan 38 bruno 51 jules 34 alice 46 jules 3
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011407
qwen/qwen3.7-plus
awkweave-0011408
Print column 1 and pass when column 2 is at least 21; otherwise print fail.
{print $1,($2>=21?"pass":"fail")}
hana 20 farah 9 gus 21 lina 8 hana 14 gus 3 farah 4
hana fail farah fail gus pass lina fail hana fail gus fail farah fail
bruno 8 gus 2 hana 8 bruno 24 alice 8 dina 18 kim 4
bruno fail gus fail hana fail bruno pass alice fail dina fail kim fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011408-p1
Print column 1 and output 'pass' if column 2 is greater than or equal to 21; otherwise, output 'fail'.
{print $1,($2>=21?"pass":"fail")}
hana 20 farah 9 gus 21 lina 8 hana 14 gus 3 farah 4
hana fail farah fail gus pass lina fail hana fail gus fail farah fail
bruno 8 gus 2 hana 8 bruno 24 alice 8 dina 18 kim 4
bruno fail gus fail hana fail bruno pass alice fail dina fail kim fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011408
qwen/qwen3.7-plus
awkweave-0011409
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
eli cobalt 115 chen delta 30 bruno cobalt 63 farah indigo 70 bruno delta 113 alice amber 95 gus indigo 78 ivan amber 40
ELI CHEN BRUNO FARAH BRUNO ALICE GUS IVAN
dina fable 36 ivan juniper 82 hana harbor 23 dina delta 32 kim grove 115 lina grove 46 kim harbor 8 dina juniper 85
DINA IVAN HANA DINA KIM LINA KIM DINA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011409-p1
Transform column 1 to uppercase and print only that modified column.
{print toupper($1)}
eli cobalt 115 chen delta 30 bruno cobalt 63 farah indigo 70 bruno delta 113 alice amber 95 gus indigo 78 ivan amber 40
ELI CHEN BRUNO FARAH BRUNO ALICE GUS IVAN
dina fable 36 ivan juniper 82 hana harbor 23 dina delta 32 kim grove 115 lina grove 46 kim harbor 8 dina juniper 85
DINA IVAN HANA DINA KIM LINA KIM DINA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011409
qwen/qwen3.7-plus
awkweave-0011410
From column 1, print 2 characters starting at character 2.
{print substr($1,2,2)}
indigo 120 cobalt 92 birch 49 ember 60 cobalt 50 delta 26
nd ob ir mb ob el
harbor 78 amber 89 ember 115 ember 39 juniper 69 indigo 37
ar mb mb mb un nd
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011410-p1
Extract and print a substring of length 2 from column 1, starting at the second character.
{print substr($1,2,2)}
indigo 120 cobalt 92 birch 49 ember 60 cobalt 50 delta 26
nd ob ir mb ob el
harbor 78 amber 89 ember 115 ember 39 juniper 69 indigo 37
ar mb mb mb un nd
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011410
qwen/qwen3.7-plus
awkweave-0011411
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
harbor_delta 13 birch_delta 12 indigo_ember 2 cobalt_delta 94 birch_grove 91 juniper_delta 114 cobalt_grove 20 fable_harbor 2 cobalt_ember 19 fable_indigo 80
harbor delta birch delta indigo ember cobalt delta birch grove juniper delta cobalt grove fable harbor cobalt ember fable indigo
harbor_amber 107 fable_delta 54 cobalt_ember 114 cobalt_delta 9 grove_birch 28 harbor_amber 17 cobalt_harbor 104 harbor_juniper 4
harbor amber fable delta cobalt ember cobalt delta grove birch harbor amber cobalt harbor harbor juniper
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011411-p1
Substitute all underscores in column 1 with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
harbor_delta 13 birch_delta 12 indigo_ember 2 cobalt_delta 94 birch_grove 91 juniper_delta 114 cobalt_grove 20 fable_harbor 2 cobalt_ember 19 fable_indigo 80
harbor delta birch delta indigo ember cobalt delta birch grove juniper delta cobalt grove fable harbor cobalt ember fable indigo
harbor_amber 107 fable_delta 54 cobalt_ember 114 cobalt_delta 9 grove_birch 28 harbor_amber 17 cobalt_harbor 104 harbor_juniper 4
harbor amber fable delta cobalt ember cobalt delta grove birch harbor amber cobalt harbor harbor juniper
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011411
qwen/qwen3.7-plus
awkweave-0011412
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)}
eli indigo 86 pending chen fable 29 pending dina indigo 79 failed lina amber 5 active dina fable 101 pending chen juniper 26 pending ivan harbor 1 paused lina indigo 42 failed gus ember 67 paused
pending 86 indigo eli pending 29 fable chen failed 79 indigo dina active 5 amber lina pending 101 fable dina pending 26 juniper chen paused 1 harbor ivan failed 42 indigo lina paused 67 ember gus
alice grove 17 failed bruno fable 88 failed hana ember 58 closed jules amber 13 pending gus juniper 97 ready jules fable 50 closed
failed 17 grove alice failed 88 fable bruno closed 58 ember hana pending 13 amber jules ready 97 juniper gus closed 50 fable jules
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011412-p1
Reverse the field sequence on each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
eli indigo 86 pending chen fable 29 pending dina indigo 79 failed lina amber 5 active dina fable 101 pending chen juniper 26 pending ivan harbor 1 paused lina indigo 42 failed gus ember 67 paused
pending 86 indigo eli pending 29 fable chen failed 79 indigo dina active 5 amber lina pending 101 fable dina pending 26 juniper chen paused 1 harbor ivan failed 42 indigo lina paused 67 ember gus
alice grove 17 failed bruno fable 88 failed hana ember 58 closed jules amber 13 pending gus juniper 97 ready jules fable 50 closed
failed 17 grove alice failed 88 fable bruno closed 58 ember hana pending 13 amber jules ready 97 juniper gus closed 50 fable jules
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011412
qwen/qwen3.7-plus
awkweave-0011413
Print the number of whitespace-separated fields on each line.
{print NF}
bruno birch 50 paused kim cobalt 56 closed alice cobalt 61 failed chen cobalt 40 paused farah indigo 7 ready alice harbor 39 active gus birch 109 ready jules grove 103 pending farah indigo 70 ready hana fable 87 pending
4 4 4 4 4 4 4 4 4 4
lina grove 87 paused bruno amber 76 paused dina fable 60 paused gus indigo 113 ready ivan indigo 35 pending ivan juniper 82 active
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011413-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
bruno birch 50 paused kim cobalt 56 closed alice cobalt 61 failed chen cobalt 40 paused farah indigo 7 ready alice harbor 39 active gus birch 109 ready jules grove 103 pending farah indigo 70 ready hana fable 87 pending
4 4 4 4 4 4 4 4 4 4
lina grove 87 paused bruno amber 76 paused dina fable 60 paused gus indigo 113 ready ivan indigo 35 pending ivan juniper 82 active
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011413
qwen/qwen3.7-plus
awkweave-0011414
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]]}
lina gamma 64 gus beta 48 eli gamma 91 bruno gamma 73 dina alpha 16 dina gamma 42 farah beta 89
gamma 4 beta 2 alpha 1
alice gamma 71 chen alpha 31 lina beta 38 farah gamma 1 farah beta 96 gus beta 0
gamma 2 alpha 1 beta 3
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011414-p1
Tally records by the value in column 2, then print each value alongside 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]]}
lina gamma 64 gus beta 48 eli gamma 91 bruno gamma 73 dina alpha 16 dina gamma 42 farah beta 89
gamma 4 beta 2 alpha 1
alice gamma 71 chen alpha 31 lina beta 38 farah gamma 1 farah beta 96 gus beta 0
gamma 2 alpha 1 beta 3
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011414
qwen/qwen3.7-plus
awkweave-0011415
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 alpha 11 alice beta 3 farah delta 3 chen delta 6 kim alpha 19 alice delta 20 chen alpha 7 dina alpha 26
alpha 63 beta 3 delta 29
farah delta 14 alice gamma 1 dina beta 5 eli gamma 6 kim alpha 3 bruno delta 1
delta 15 gamma 7 beta 5 alpha 3
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011415-p1
Calculate the sum of column 3 for each distinct value in column 2, displaying the results in the 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 alpha 11 alice beta 3 farah delta 3 chen delta 6 kim alpha 19 alice delta 20 chen alpha 7 dina alpha 26
alpha 63 beta 3 delta 29
farah delta 14 alice gamma 1 dina beta 5 eli gamma 6 kim alpha 3 bruno delta 1
delta 15 gamma 7 beta 5 alpha 3
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011415
qwen/qwen3.7-plus
awkweave-0011416
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma juniper 88 delta harbor 43 beta birch 70 beta delta 111 beta harbor 20 delta cobalt 53 delta indigo 72
delta 3 beta 3
gamma indigo 17 gamma grove 38 alpha amber 99 gamma grove 120 gamma cobalt 7 beta cobalt 26
gamma 4
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011416-p1
List each duplicate value from column 1 with its 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]]}
gamma juniper 88 delta harbor 43 beta birch 70 beta delta 111 beta harbor 20 delta cobalt 53 delta indigo 72
delta 3 beta 3
gamma indigo 17 gamma grove 38 alpha amber 99 gamma grove 120 gamma cobalt 7 beta cobalt 26
gamma 4
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011416
qwen/qwen3.7-plus
awkweave-0011417
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"]}
note score state display_name r001 chen 8 active r002 dina 8 paused r003 lina 15 ready r004 ivan 25 closed r005 lina 29 pending r006 gus 11 pending r007 bruno 17 failed r008 eli 28 active r009 chen 29 failed r010 eli 20 closed
active paused ready closed pending pending failed active failed closed
note score state display_name r001 bruno 24 pending r002 jules 30 closed r003 kim 20 ready r004 hana 12 closed r005 gus 19 failed r006 farah 5 active r007 farah 6 pending r008 gus 21 active r009 bruno 12 ready
pending closed ready closed failed active pending active ready
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011417-p1
Skip the header row and output the display_name column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
note score state display_name r001 chen 8 active r002 dina 8 paused r003 lina 15 ready r004 ivan 25 closed r005 lina 29 pending r006 gus 11 pending r007 bruno 17 failed r008 eli 28 active r009 chen 29 failed r010 eli 20 closed
active paused ready closed pending pending failed active failed closed
note score state display_name r001 bruno 24 pending r002 jules 30 closed r003 kim 20 ready r004 hana 12 closed r005 gus 19 failed r006 farah 5 active r007 farah 6 pending r008 gus 21 active r009 bruno 12 ready
pending closed ready closed failed active pending active ready
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011417
qwen/qwen3.7-plus
awkweave-0011418
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 bruno 22 paused r002 bruno 16 paused r003 ivan 26 ready r004 chen 26 closed r005 chen 29 active r006 eli 30 active r007 eli 26 failed r008 farah 16 pending r009 alice 22 closed
bruno ivan chen chen eli eli alice
record_id display_name score state r001 ivan 6 pending r002 ivan 13 ready r003 ivan 11 closed r004 lina 25 pending r005 dina 27 failed r006 dina 10 active r007 alice 14 failed r008 alice 20 active r009 farah 3 active
lina dina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011418-p1
Ignoring the header, output the display_name for rows 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 bruno 22 paused r002 bruno 16 paused r003 ivan 26 ready r004 chen 26 closed r005 chen 29 active r006 eli 30 active r007 eli 26 failed r008 farah 16 pending r009 alice 22 closed
bruno ivan chen chen eli eli alice
record_id display_name score state r001 ivan 6 pending r002 ivan 13 ready r003 ivan 11 closed r004 lina 25 pending r005 dina 27 failed r006 dina 10 active r007 alice 14 failed r008 alice 20 active r009 farah 3 active
lina dina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011418
qwen/qwen3.7-plus
awkweave-0011419
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
hana 28 paused kim 16 active farah 30 active jules 21 ready ivan 10 active ivan 12 paused lina 23 failed ivan 12 failed dina 13 closed
28 16 30 21 10 12 23 12 13
gus 3 failed ivan 29 failed ivan 10 closed farah 23 ready jules 27 active dina 8 pending bruno 7 failed
3 29 10 23 27 8 7
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011419-p1
Given tab-separated input, extract and print the second column from each record.
BEGIN{FS=OFS="\t"}{print $2}
hana 28 paused kim 16 active farah 30 active jules 21 ready ivan 10 active ivan 12 paused lina 23 failed ivan 12 failed dina 13 closed
28 16 30 21 10 12 23 12 13
gus 3 failed ivan 29 failed ivan 10 closed farah 23 ready jules 27 active dina 8 pending bruno 7 failed
3 29 10 23 27 8 7
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011419
qwen/qwen3.7-plus
awkweave-0011420
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 23.
BEGIN{FS=OFS=","}$2>23{print $1}
eli,13,failed hana,22,failed chen,20,closed chen,8,active kim,21,ready jules,17,paused hana,8,pending jules,14,pending alice,10,pending lina,30,closed
lina
jules,14,paused hana,26,active bruno,26,failed alice,24,failed alice,12,ready alice,30,failed bruno,4,active bruno,8,failed chen,30,paused
hana bruno alice alice chen
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011420-p1
For simple comma-separated input without quoted commas, print the first column if the second column is greater than 23.
BEGIN{FS=OFS=","}$2>23{print $1}
eli,13,failed hana,22,failed chen,20,closed chen,8,active kim,21,ready jules,17,paused hana,8,pending jules,14,pending alice,10,pending lina,30,closed
lina
jules,14,paused hana,26,active bruno,26,failed alice,24,failed alice,12,ready alice,30,failed bruno,4,active bruno,8,failed chen,30,paused
hana bruno alice alice chen
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011420
qwen/qwen3.7-plus
awkweave-0011421
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
bruno birch 82 kim juniper 119 chen birch 59 hana fable 19 kim fable 77 alice cobalt 97 kim cobalt 9 jules harbor 39 dina indigo 28
bruno birch 82 kim juniper 119 chen birch 59 hana fable 19 kim fable 77 alice cobalt 97 kim cobalt 9 jules harbor 39 dina indigo 28
ivan amber 21 jules ember 109 ivan juniper 33 gus juniper 85 eli ember 18 dina indigo 70 gus amber 40 hana cobalt 71 hana juniper 30
ivan amber 21 jules ember 109 ivan juniper 33 gus juniper 85 eli ember 18 dina indigo 70 gus amber 40 hana cobalt 71 hana juniper 30
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011421-p1
Remove leading and trailing whitespace, and replace internal whitespace sequences with a single space.
{$1=$1;print}
bruno birch 82 kim juniper 119 chen birch 59 hana fable 19 kim fable 77 alice cobalt 97 kim cobalt 9 jules harbor 39 dina indigo 28
bruno birch 82 kim juniper 119 chen birch 59 hana fable 19 kim fable 77 alice cobalt 97 kim cobalt 9 jules harbor 39 dina indigo 28
ivan amber 21 jules ember 109 ivan juniper 33 gus juniper 85 eli ember 18 dina indigo 70 gus amber 40 hana cobalt 71 hana juniper 30
ivan amber 21 jules ember 109 ivan juniper 33 gus juniper 85 eli ember 18 dina indigo 70 gus amber 40 hana cobalt 71 hana juniper 30
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011421
qwen/qwen3.7-plus
awkweave-0011422
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
chen cobalt 62 failed kim fable 36 paused chen cobalt 40 failed gus ember 48 ready eli harbor 83 pending chen amber 60 failed
chen cobalt 62 failed
dina amber 60 closed eli birch 40 paused jules amber 41 closed chen delta 93 active jules ember 40 failed alice fable 89 closed alice indigo 39 ready
jules amber 41 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011422-p1
Identify and print the longest line from the input; in case of a tie, select the earliest one.
{if(length($0)>length(best))best=$0}END{print best}
chen cobalt 62 failed kim fable 36 paused chen cobalt 40 failed gus ember 48 ready eli harbor 83 pending chen amber 60 failed
chen cobalt 62 failed
dina amber 60 closed eli birch 40 paused jules amber 41 closed chen delta 93 active jules ember 40 failed alice fable 89 closed alice indigo 39 ready
jules amber 41 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011422
qwen/qwen3.7-plus
awkweave-0011423
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
jules 51 ivan 50 alice 8 alice 62 eli 75 dina 18 farah 31
ivan 50 alice 62 dina 18
lina 113 chen 96 lina 93 lina 28 chen 22 jules 12 chen 60 gus 107 gus 80 hana 107
chen 96 lina 28 jules 12 gus 107 hana 107
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011423-p1
Output every second line, beginning with line 2 (i.e., lines 2, 4, 6, ...).
NR%2==0
jules 51 ivan 50 alice 8 alice 62 eli 75 dina 18 farah 31
ivan 50 alice 62 dina 18
lina 113 chen 96 lina 93 lina 28 chen 22 jules 12 chen 60 gus 107 gus 80 hana 107
chen 96 lina 28 jules 12 gus 107 hana 107
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011423
qwen/qwen3.7-plus
awkweave-0011424
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta juniper 36 beta cobalt 1 delta cobalt 88 delta cobalt 83 beta amber 30 delta birch 111 beta indigo 112
2
delta ember 118 gamma birch 1 delta amber 105 alpha juniper 43 beta juniper 19 gamma juniper 99 delta harbor 21
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011424-p1
Determine the number of unique entries in the first column and output just that total.
{if(!seen[$1]++)n++}END{print n+0}
beta juniper 36 beta cobalt 1 delta cobalt 88 delta cobalt 83 beta amber 30 delta birch 111 beta indigo 112
2
delta ember 118 gamma birch 1 delta amber 105 alpha juniper 43 beta juniper 19 gamma juniper 99 delta harbor 21
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011424
qwen/qwen3.7-plus
awkweave-0011425
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
jules 4 0 hana 3 11 dina 19 7 bruno 15 12 bruno 22 10 chen 15 25 dina 9 2 hana 17 12 ivan 27 9
hana 0.27 dina 2.71 bruno 1.25 bruno 2.20 chen 0.60 dina 4.50 hana 1.42 ivan 3.00
eli 26 0 gus 14 25 jules 23 15 ivan 20 7 ivan 14 15 gus 21 17
gus 0.56 jules 1.53 ivan 2.86 ivan 0.93 gus 1.24
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011425-p1
For every row where the third column is not zero, display the first column and the result of dividing the second column by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
jules 4 0 hana 3 11 dina 19 7 bruno 15 12 bruno 22 10 chen 15 25 dina 9 2 hana 17 12 ivan 27 9
hana 0.27 dina 2.71 bruno 1.25 bruno 2.20 chen 0.60 dina 4.50 hana 1.42 ivan 3.00
eli 26 0 gus 14 25 jules 23 15 ivan 20 7 ivan 14 15 gus 21 17
gus 0.56 jules 1.53 ivan 2.86 ivan 0.93 gus 1.24
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011425
qwen/qwen3.7-plus
awkweave-0011426
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 ember 12 ivan amber 15 chen juniper 13 kim cobalt 11 kim harbor 26 hana fable 3 jules grove 24 lina indigo 23
kim harbor 26 jules grove 24 lina indigo 23
lina grove 17 hana harbor 3 hana harbor 4 bruno grove 13 farah ember 22 ivan grove 10 lina cobalt 19 kim fable 4 ivan harbor 20
farah ember 22 ivan harbor 20 lina cobalt 19
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011426-p1
Output the full rows corresponding to the top three numeric values in column 3, sorted in descending order; maintain the original input sequence 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]}
eli ember 12 ivan amber 15 chen juniper 13 kim cobalt 11 kim harbor 26 hana fable 3 jules grove 24 lina indigo 23
kim harbor 26 jules grove 24 lina indigo 23
lina grove 17 hana harbor 3 hana harbor 4 bruno grove 13 farah ember 22 ivan grove 10 lina cobalt 19 kim fable 4 ivan harbor 20
farah ember 22 ivan harbor 20 lina cobalt 19
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011426
qwen/qwen3.7-plus
awkweave-0011427
Select the 3rd and 1st fields in that order.
{print $3, $1}
107 paused 84 bruno chen 44 pending 53 dina chen 15 paused 63 lina jules 11 closed 63 hana chen 52 pending 97 ivan kim 98 failed 95 gus gus 61 ready 25 bruno alice 38 paused 45 alice dina
84 107 53 44 63 15 63 11 97 52 95 98 25 61 45 38
30 failed 34 dina alice 115 failed 1 kim gus 97 closed 71 eli kim 51 ready 75 eli hana 51 pending 112 chen eli 16 paused 25 bruno gus 92 paused 72 dina jules 83 active 17 alice alice 13 failed 2 ivan alice 6 ready 49 gus kim
34 30 1 115 71 97 75 51 112 51 25 16 72 92 17 83 2 13 49 6
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011427-p1
Extract and display the third field followed by the first field.
{print $3, $1}
107 paused 84 bruno chen 44 pending 53 dina chen 15 paused 63 lina jules 11 closed 63 hana chen 52 pending 97 ivan kim 98 failed 95 gus gus 61 ready 25 bruno alice 38 paused 45 alice dina
84 107 53 44 63 15 63 11 97 52 95 98 25 61 45 38
30 failed 34 dina alice 115 failed 1 kim gus 97 closed 71 eli kim 51 ready 75 eli hana 51 pending 112 chen eli 16 paused 25 bruno gus 92 paused 72 dina jules 83 active 17 alice alice 13 failed 2 ivan alice 6 ready 49 gus kim
34 30 1 115 71 97 75 51 112 51 25 16 72 92 17 83 2 13 49 6
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011427
qwen/qwen3.7-plus
awkweave-0011428
Print the last field of every input line.
{print $NF}
paused 16 pending harbor gus paused 37 failed amber gus closed 4 closed delta jules paused 56 pending delta alice paused 112 paused grove jules closed 82 failed birch jules
gus gus jules alice jules jules
failed 19 closed amber hana active 61 ready indigo hana pending 27 failed ember dina ready 23 ready ember ivan paused 69 closed ember bruno pending 111 ready fable dina pending 3 pending fable alice active 112 ready harbor kim pending 86 failed ember bruno
hana hana dina ivan bruno dina alice kim bruno
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011428-p1
Output the final field from each line of input.
{print $NF}
paused 16 pending harbor gus paused 37 failed amber gus closed 4 closed delta jules paused 56 pending delta alice paused 112 paused grove jules closed 82 failed birch jules
gus gus jules alice jules jules
failed 19 closed amber hana active 61 ready indigo hana pending 27 failed ember dina ready 23 ready ember ivan paused 69 closed ember bruno pending 111 ready fable dina pending 3 pending fable alice active 112 ready harbor kim pending 86 failed ember bruno
hana hana dina ivan bruno dina alice kim bruno
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011428
qwen/qwen3.7-plus
awkweave-0011429
Print the complete records where column 2 is greater than 56.
$2 > 56
gus 64 delta lina 33 cobalt alice 58 harbor kim 47 delta lina 24 cobalt kim 113 fable ivan 42 harbor
gus 64 delta alice 58 harbor kim 113 fable
ivan 18 ember gus 21 indigo farah 0 cobalt dina 89 ember chen 120 ember chen 73 delta
dina 89 ember chen 120 ember chen 73 delta
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011429-p1
Display entire records where the value in the second column exceeds 56.
$2 > 56
gus 64 delta lina 33 cobalt alice 58 harbor kim 47 delta lina 24 cobalt kim 113 fable ivan 42 harbor
gus 64 delta alice 58 harbor kim 113 fable
ivan 18 ember gus 21 indigo farah 0 cobalt dina 89 ember chen 120 ember chen 73 delta
dina 89 ember chen 120 ember chen 73 delta
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011429
qwen/qwen3.7-plus
awkweave-0011430
Show whole lines whose 2nd field is between 6 and 21, inclusive.
$2 >= 6 && $2 <= 21
chen 14 delta bruno dina 25 cobalt hana ivan 10 indigo lina alice 1 grove eli ivan 1 amber lina ivan 7 juniper dina ivan 8 cobalt ivan
chen 14 delta bruno ivan 10 indigo lina ivan 7 juniper dina ivan 8 cobalt ivan
jules 21 indigo alice farah 28 fable chen bruno 4 birch ivan bruno 28 fable bruno kim 3 cobalt farah dina 20 indigo alice bruno 8 amber jules jules 10 harbor dina
jules 21 indigo alice dina 20 indigo alice bruno 8 amber jules jules 10 harbor dina
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011430-p1
Print complete lines where the second field falls within the inclusive range of 6 to 21.
$2 >= 6 && $2 <= 21
chen 14 delta bruno dina 25 cobalt hana ivan 10 indigo lina alice 1 grove eli ivan 1 amber lina ivan 7 juniper dina ivan 8 cobalt ivan
chen 14 delta bruno ivan 10 indigo lina ivan 7 juniper dina ivan 8 cobalt ivan
jules 21 indigo alice farah 28 fable chen bruno 4 birch ivan bruno 28 fable bruno kim 3 cobalt farah dina 20 indigo alice bruno 8 amber jules jules 10 harbor dina
jules 21 indigo alice dina 20 indigo alice bruno 8 amber jules jules 10 harbor dina
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011430
qwen/qwen3.7-plus
awkweave-0011431
Print column 2 only for rows where column 1 is exactly closed.
$1 == "closed"{print $2}
closed eli 116 fable paused chen 0 fable closed bruno 76 harbor ready jules 2 grove closed lina 96 harbor paused lina 113 amber failed kim 8 delta
eli bruno lina
active kim 11 indigo paused hana 79 juniper ready ivan 58 grove active kim 44 ember paused kim 76 birch paused alice 110 birch failed hana 1 cobalt
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011431-p1
Output only the second column for rows where the first column matches the string 'closed' exactly.
$1 == "closed"{print $2}
closed eli 116 fable paused chen 0 fable closed bruno 76 harbor ready jules 2 grove closed lina 96 harbor paused lina 113 amber failed kim 8 delta
eli bruno lina
active kim 11 indigo paused hana 79 juniper ready ivan 58 grove active kim 44 ember paused kim 76 birch paused alice 110 birch failed hana 1 cobalt
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011431
qwen/qwen3.7-plus
awkweave-0011432
Print all fields from lines where field 2 begins with INFO.
$2 ~ /^INFO/
indigo WARN 115 birch DEBUG 99 amber ERROR 33 amber WARN 101 fable INFO 51 ember DEBUG 3 indigo WARN 54
fable INFO 51
fable ERROR 106 fable ERROR 44 grove WARN 15 fable INFO 102 juniper INFO 62 amber DEBUG 3 cobalt INFO 60 delta INFO 101
fable INFO 102 juniper INFO 62 cobalt INFO 60 delta INFO 101
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011432-p1
Print all fields from lines where the second field starts with the prefix 'INFO'.
$2 ~ /^INFO/
indigo WARN 115 birch DEBUG 99 amber ERROR 33 amber WARN 101 fable INFO 51 ember DEBUG 3 indigo WARN 54
fable INFO 51
fable ERROR 106 fable ERROR 44 grove WARN 15 fable INFO 102 juniper INFO 62 amber DEBUG 3 cobalt INFO 60 delta INFO 101
fable INFO 102 juniper INFO 62 cobalt INFO 60 delta INFO 101
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011432
qwen/qwen3.7-plus
awkweave-0011433
Print every line except those containing the exact text harbor.
$0 !~ /harbor/
juniper 117 pending amber 29 paused birch 67 failed cobalt 19 failed delta 54 closed indigo 64 paused harbor 32 failed birch 85 closed birch 74 pending harbor 999 active
juniper 117 pending amber 29 paused birch 67 failed cobalt 19 failed delta 54 closed indigo 64 paused birch 85 closed birch 74 pending
ember 6 pending juniper 107 paused fable 23 active juniper 101 paused cobalt 25 active ember 101 closed cobalt 92 pending amber 61 closed harbor 999 active
ember 6 pending juniper 107 paused fable 23 active juniper 101 paused cobalt 25 active ember 101 closed cobalt 92 pending amber 61 closed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011433-p1
Output every line that does not contain the exact string 'harbor'.
$0 !~ /harbor/
juniper 117 pending amber 29 paused birch 67 failed cobalt 19 failed delta 54 closed indigo 64 paused harbor 32 failed birch 85 closed birch 74 pending harbor 999 active
juniper 117 pending amber 29 paused birch 67 failed cobalt 19 failed delta 54 closed indigo 64 paused birch 85 closed birch 74 pending
ember 6 pending juniper 107 paused fable 23 active juniper 101 paused cobalt 25 active ember 101 closed cobalt 92 pending amber 61 closed harbor 999 active
ember 6 pending juniper 107 paused fable 23 active juniper 101 paused cobalt 25 active ember 101 closed cobalt 92 pending amber 61 closed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011433
qwen/qwen3.7-plus
awkweave-0011434
Print lines 3 through 5, including both endpoints.
NR >= 3 && NR <= 5
jules harbor 42 chen ember 79 ivan fable 77 ivan indigo 24 jules grove 77 eli fable 34 dina fable 112 ivan harbor 22
ivan fable 77 ivan indigo 24 jules grove 77
kim delta 92 hana indigo 65 alice fable 48 hana delta 52 kim birch 29 jules harbor 76 ivan harbor 50
alice fable 48 hana delta 52 kim birch 29
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011434-p1
Display lines 3, 4, and 5 inclusively.
NR >= 3 && NR <= 5
jules harbor 42 chen ember 79 ivan fable 77 ivan indigo 24 jules grove 77 eli fable 34 dina fable 112 ivan harbor 22
ivan fable 77 ivan indigo 24 jules grove 77
kim delta 92 hana indigo 65 alice fable 48 hana delta 52 kim birch 29 jules harbor 76 ivan harbor 50
alice fable 48 hana delta 52 kim birch 29
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011434
qwen/qwen3.7-plus
awkweave-0011435
Output only the first 2 records.
NR <= 2
jules 53 harbor lina 85 delta alice 93 cobalt hana 82 birch ivan 94 birch bruno 34 birch
jules 53 harbor lina 85 delta
ivan 50 amber eli 104 harbor kim 11 amber alice 42 cobalt farah 110 juniper eli 13 grove hana 40 cobalt
ivan 50 amber eli 104 harbor
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011435-p1
Print only the first two records from the input.
NR <= 2
jules 53 harbor lina 85 delta alice 93 cobalt hana 82 birch ivan 94 birch bruno 34 birch
jules 53 harbor lina 85 delta
ivan 50 amber eli 104 harbor kim 11 amber alice 42 cobalt farah 110 juniper eli 13 grove hana 40 cobalt
ivan 50 amber eli 104 harbor
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011435
qwen/qwen3.7-plus
awkweave-0011436
Skip the first line and print every remaining line unchanged.
NR > 1
alice 83 grove bruno 87 indigo alice 94 delta bruno 55 fable eli 91 ember lina 87 grove farah 25 cobalt
bruno 87 indigo alice 94 delta bruno 55 fable eli 91 ember lina 87 grove farah 25 cobalt
hana 31 amber farah 39 cobalt gus 72 amber chen 47 fable alice 44 delta hana 120 cobalt hana 61 fable
farah 39 cobalt gus 72 amber chen 47 fable alice 44 delta hana 120 cobalt hana 61 fable
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011436-p1
Omit the initial line and output all subsequent lines exactly as they appear.
NR > 1
alice 83 grove bruno 87 indigo alice 94 delta bruno 55 fable eli 91 ember lina 87 grove farah 25 cobalt
bruno 87 indigo alice 94 delta bruno 55 fable eli 91 ember lina 87 grove farah 25 cobalt
hana 31 amber farah 39 cobalt gus 72 amber chen 47 fable alice 44 delta hana 120 cobalt hana 61 fable
farah 39 cobalt gus 72 amber chen 47 fable alice 44 delta hana 120 cobalt hana 61 fable
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011436
qwen/qwen3.7-plus
awkweave-0011437
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
farah pending 72 alice closed 79 gus paused 58 gus pending 98 eli active 75 jules ready 68 ivan ready 106 bruno closed 38
2
lina failed 6 lina paused 42 kim active 113 farah active 41 bruno ready 113 farah failed 66 hana closed 73 eli pending 97
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011437-p1
Tally the entries where column 2 contains 'closed', outputting 0 if the count is zero.
$2 == "closed"{n++}END{print n+0}
farah pending 72 alice closed 79 gus paused 58 gus pending 98 eli active 75 jules ready 68 ivan ready 106 bruno closed 38
2
lina failed 6 lina paused 42 kim active 113 farah active 41 bruno ready 113 farah failed 66 hana closed 73 eli pending 97
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011437
qwen/qwen3.7-plus
awkweave-0011438
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
harbor gus 26 cobalt jules 9 indigo eli 14 birch chen 19 amber bruno 14 juniper alice 1
83
amber kim 25 juniper alice 8 cobalt chen 12 ember farah 9 harbor kim 15 birch dina 16 indigo gus 20
105
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011438-p1
Compute and display the total sum of integer values found in column 3.
{s+=$3}END{print s+0}
harbor gus 26 cobalt jules 9 indigo eli 14 birch chen 19 amber bruno 14 juniper alice 1
83
amber kim 25 juniper alice 8 cobalt chen 12 ember farah 9 harbor kim 15 birch dina 16 indigo gus 20
105
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011438
qwen/qwen3.7-plus
awkweave-0011439
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
fable chen 21 fable jules 23 grove eli 7 cobalt alice 18 indigo hana 6 cobalt eli 15 indigo bruno 21 birch farah 14 grove hana 27
16.89
fable gus 19 grove hana 9 harbor chen 5 ember jules 1 birch chen 28 ember eli 8
11.67
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0011439-p1
Output the average of column 3, formatted to precisely two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
fable chen 21 fable jules 23 grove eli 7 cobalt alice 18 indigo hana 6 cobalt eli 15 indigo bruno 21 birch farah 14 grove hana 27
16.89
fable gus 19 grove hana 9 harbor chen 5 ember jules 1 birch chen 28 ember eli 8
11.67
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0011439
qwen/qwen3.7-plus
awkweave-0011440
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
22 indigo chen 12 delta ivan 28 juniper dina 22 delta eli 22 indigo gus 6 delta chen 20 fable hana
6
17 birch alice 3 amber eli 17 cobalt dina 20 birch alice 1 amber kim 22 delta kim 19 harbor alice 2 ember jules 20 birch bruno
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null