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-0019881
The first row is a header. Print display_name for data rows whose score is greater than 23.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>23{print $h["display_name"]}
record_id display_name score state r001 hana 12 ready r002 dina 24 closed r003 alice 11 failed r004 chen 2 closed r005 jules 5 ready r006 lina 9 failed r007 jules 6 paused r008 chen 5 ready
dina
record_id display_name score state r001 jules 14 failed r002 hana 12 paused r003 kim 26 failed r004 gus 7 paused r005 chen 7 ready r006 lina 8 paused
kim
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019881-p1
With the first row as a header, print the display_name field for data rows where the score is greater than 23.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>23{print $h["display_name"]}
record_id display_name score state r001 hana 12 ready r002 dina 24 closed r003 alice 11 failed r004 chen 2 closed r005 jules 5 ready r006 lina 9 failed r007 jules 6 paused r008 chen 5 ready
dina
record_id display_name score state r001 jules 14 failed r002 hana 12 paused r003 kim 26 failed r004 gus 7 paused r005 chen 7 ready r006 lina 8 paused
kim
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019881
qwen/qwen3.7-plus
awkweave-0019882
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
farah 16 paused eli 12 closed dina 18 failed jules 28 pending hana 4 closed hana 19 ready bruno 24 failed ivan 26 pending gus 17 closed
farah eli dina jules hana hana bruno ivan gus
gus 26 ready gus 11 failed dina 2 paused chen 1 failed ivan 21 closed chen 27 active eli 15 closed dina 4 paused alice 7 closed bruno 22 pending
gus gus dina chen ivan chen eli dina alice bruno
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019882-p1
Given tab-separated input, extract and print the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
farah 16 paused eli 12 closed dina 18 failed jules 28 pending hana 4 closed hana 19 ready bruno 24 failed ivan 26 pending gus 17 closed
farah eli dina jules hana hana bruno ivan gus
gus 26 ready gus 11 failed dina 2 paused chen 1 failed ivan 21 closed chen 27 active eli 15 closed dina 4 paused alice 7 closed bruno 22 pending
gus gus dina chen ivan chen eli dina alice bruno
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019882
qwen/qwen3.7-plus
awkweave-0019883
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 9.
BEGIN{FS=OFS=","}$2>9{print $1}
lina,14,failed jules,25,closed farah,22,pending lina,13,closed gus,11,failed chen,23,ready dina,2,paused hana,26,failed
lina jules farah lina gus chen hana
bruno,7,ready kim,23,ready alice,2,failed eli,25,failed hana,2,failed farah,11,pending jules,1,ready kim,13,pending bruno,4,paused
kim eli farah kim
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019883-p1
For simple comma-separated input without quoted commas, print the first column if the second column is greater than 9.
BEGIN{FS=OFS=","}$2>9{print $1}
lina,14,failed jules,25,closed farah,22,pending lina,13,closed gus,11,failed chen,23,ready dina,2,paused hana,26,failed
lina jules farah lina gus chen hana
bruno,7,ready kim,23,ready alice,2,failed eli,25,failed hana,2,failed farah,11,pending jules,1,ready kim,13,pending bruno,4,paused
kim eli farah kim
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019883
qwen/qwen3.7-plus
awkweave-0019884
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
eli juniper 19 alice delta 89 jules amber 37 jules grove 36 alice birch 50 bruno birch 16
eli juniper 19 alice delta 89 jules amber 37 jules grove 36 alice birch 50 bruno birch 16
alice ember 39 eli harbor 10 hana ember 91 jules cobalt 76 hana grove 19 alice indigo 52 hana birch 24 ivan indigo 4 hana grove 12
alice ember 39 eli harbor 10 hana ember 91 jules cobalt 76 hana grove 19 alice indigo 52 hana birch 24 ivan indigo 4 hana grove 12
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019884-p1
Remove leading and trailing whitespace, then replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
eli juniper 19 alice delta 89 jules amber 37 jules grove 36 alice birch 50 bruno birch 16
eli juniper 19 alice delta 89 jules amber 37 jules grove 36 alice birch 50 bruno birch 16
alice ember 39 eli harbor 10 hana ember 91 jules cobalt 76 hana grove 19 alice indigo 52 hana birch 24 ivan indigo 4 hana grove 12
alice ember 39 eli harbor 10 hana ember 91 jules cobalt 76 hana grove 19 alice indigo 52 hana birch 24 ivan indigo 4 hana grove 12
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019884
qwen/qwen3.7-plus
awkweave-0019885
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
hana ember 115 closed lina ember 21 ready hana delta 91 active kim delta 92 paused kim indigo 117 active alice cobalt 27 ready jules delta 66 ready chen juniper 9 active jules fable 94 closed jules harbor 100 closed
jules harbor 100 closed
dina ember 29 paused dina indigo 98 closed kim grove 52 ready kim amber 35 active jules delta 42 pending dina ember 13 failed chen birch 69 ready alice juniper 39 ready kim harbor 64 active farah ember 78 closed
jules delta 42 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019885-p1
Identify and output the longest line from the input; in case of a tie in length, select the first occurrence.
{if(length($0)>length(best))best=$0}END{print best}
hana ember 115 closed lina ember 21 ready hana delta 91 active kim delta 92 paused kim indigo 117 active alice cobalt 27 ready jules delta 66 ready chen juniper 9 active jules fable 94 closed jules harbor 100 closed
jules harbor 100 closed
dina ember 29 paused dina indigo 98 closed kim grove 52 ready kim amber 35 active jules delta 42 pending dina ember 13 failed chen birch 69 ready alice juniper 39 ready kim harbor 64 active farah ember 78 closed
jules delta 42 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019885
qwen/qwen3.7-plus
awkweave-0019886
Print every 3rd line starting at line 1 (then line 4, and so on).
NR%3==1
kim 60 kim 15 hana 118 gus 115 chen 31 gus 36 kim 42 alice 22 eli 98
kim 60 gus 115 kim 42
hana 88 farah 64 lina 61 chen 108 hana 46 eli 105 lina 12 hana 117 farah 95 hana 89
hana 88 chen 108 lina 12 hana 89
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019886-p1
Output every third line beginning with the first line (i.e., lines 1, 4, 7, etc.).
NR%3==1
kim 60 kim 15 hana 118 gus 115 chen 31 gus 36 kim 42 alice 22 eli 98
kim 60 gus 115 kim 42
hana 88 farah 64 lina 61 chen 108 hana 46 eli 105 lina 12 hana 117 farah 95 hana 89
hana 88 chen 108 lina 12 hana 89
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019886
qwen/qwen3.7-plus
awkweave-0019887
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta cobalt 58 alpha harbor 92 gamma fable 45 delta cobalt 25 gamma indigo 28 delta indigo 67 delta delta 52 alpha birch 80
6
delta indigo 58 beta birch 61 gamma fable 21 delta birch 87 delta indigo 89 delta harbor 94 delta juniper 88 alpha grove 92 gamma delta 53
7
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019887-p1
Determine the number of unique values present in the second column and print only that count.
{if(!seen[$2]++)n++}END{print n+0}
beta cobalt 58 alpha harbor 92 gamma fable 45 delta cobalt 25 gamma indigo 28 delta indigo 67 delta delta 52 alpha birch 80
6
delta indigo 58 beta birch 61 gamma fable 21 delta birch 87 delta indigo 89 delta harbor 94 delta juniper 88 alpha grove 92 gamma delta 53
7
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019887
qwen/qwen3.7-plus
awkweave-0019888
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
lina 1 0 kim 10 16 ivan 1 8 ivan 10 27 dina 23 16 jules 16 1
kim 0.62 ivan 0.12 ivan 0.37 dina 1.44 jules 16.00
eli 18 0 alice 8 5 dina 30 17 farah 1 18 farah 8 11 alice 6 24 lina 1 10 alice 20 10 hana 24 25
alice 1.60 dina 1.76 farah 0.06 farah 0.73 alice 0.25 lina 0.10 alice 2.00 hana 0.96
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019888-p1
For each row, output the value of column 1 and the result of dividing column 2 by column 3 formatted to two decimal places, excluding any rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
lina 1 0 kim 10 16 ivan 1 8 ivan 10 27 dina 23 16 jules 16 1
kim 0.62 ivan 0.12 ivan 0.37 dina 1.44 jules 16.00
eli 18 0 alice 8 5 dina 30 17 farah 1 18 farah 8 11 alice 6 24 lina 1 10 alice 20 10 hana 24 25
alice 1.60 dina 1.76 farah 0.06 farah 0.73 alice 0.25 lina 0.10 alice 2.00 hana 0.96
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019888
qwen/qwen3.7-plus
awkweave-0019889
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 grove 14 jules delta 17 jules delta 7 kim indigo 7 chen indigo 2 dina grove 8 dina cobalt 25 alice fable 18 lina harbor 7 dina amber 1
dina cobalt 25 alice fable 18 jules delta 17
eli cobalt 20 farah delta 27 hana fable 3 bruno amber 18 hana cobalt 4 chen harbor 19 gus cobalt 27
farah delta 27 gus cobalt 27 eli cobalt 20
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019889-p1
Display the three full records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any tied values.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
gus grove 14 jules delta 17 jules delta 7 kim indigo 7 chen indigo 2 dina grove 8 dina cobalt 25 alice fable 18 lina harbor 7 dina amber 1
dina cobalt 25 alice fable 18 jules delta 17
eli cobalt 20 farah delta 27 hana fable 3 bruno amber 18 hana cobalt 4 chen harbor 19 gus cobalt 27
farah delta 27 gus cobalt 27 eli cobalt 20
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019889
qwen/qwen3.7-plus
awkweave-0019900
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
dina ready 65 bruno pending 105 farah failed 97 bruno failed 113 eli paused 33 alice paused 43
2
lina ready 57 alice failed 70 chen pending 11 hana closed 97 farah paused 50 gus pending 115 gus failed 58 hana pending 5 jules paused 66 ivan active 33
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019900-p1
Count the number of records marked as failed in column 2 and print the total, outputting 0 if no such records exist.
$2 == "failed"{n++}END{print n+0}
dina ready 65 bruno pending 105 farah failed 97 bruno failed 113 eli paused 33 alice paused 43
2
lina ready 57 alice failed 70 chen pending 11 hana closed 97 farah paused 50 gus pending 115 gus failed 58 hana pending 5 jules paused 66 ivan active 33
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019900
qwen/qwen3.7-plus
awkweave-0019901
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
26 cobalt jules 24 amber farah 12 juniper bruno 4 indigo gus 13 ember jules 26 juniper bruno 27 cobalt ivan 23 fable hana 27 grove hana 28 amber farah
210
29 birch dina 8 ember chen 23 grove lina 30 juniper ivan 25 harbor kim 15 grove ivan 21 cobalt alice 17 harbor bruno 30 juniper bruno 23 amber hana
221
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019901-p1
Compute and print the sum of all integer values found in column 1.
{s+=$1}END{print s+0}
26 cobalt jules 24 amber farah 12 juniper bruno 4 indigo gus 13 ember jules 26 juniper bruno 27 cobalt ivan 23 fable hana 27 grove hana 28 amber farah
210
29 birch dina 8 ember chen 23 grove lina 30 juniper ivan 25 harbor kim 15 grove ivan 21 cobalt alice 17 harbor bruno 30 juniper bruno 23 amber hana
221
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019901
qwen/qwen3.7-plus
awkweave-0019902
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
12 lina birch 25 jules birch 10 bruno indigo 13 eli ember 18 lina indigo 22 dina birch
16.67
16 farah cobalt 16 ivan fable 23 hana indigo 24 bruno delta 28 eli harbor 22 ivan indigo 7 kim ember 18 gus amber 26 gus delta
20.00
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019902-p1
Calculate the arithmetic mean of the values in column 1 and print the result rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
12 lina birch 25 jules birch 10 bruno indigo 13 eli ember 18 lina indigo 22 dina birch
16.67
16 farah cobalt 16 ivan fable 23 hana indigo 24 bruno delta 28 eli harbor 22 ivan indigo 7 kim ember 18 gus amber 26 gus delta
20.00
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019902
qwen/qwen3.7-plus
awkweave-0019903
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
gus 16 delta eli 3 ember lina 2 juniper eli 18 fable bruno 18 harbor gus 17 juniper
2
eli 29 birch kim 17 cobalt farah 22 grove eli 12 harbor ivan 14 harbor jules 27 cobalt
12
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019903-p1
Identify and print the minimum numeric value found in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
gus 16 delta eli 3 ember lina 2 juniper eli 18 fable bruno 18 harbor gus 17 juniper
2
eli 29 birch kim 17 cobalt farah 22 grove eli 12 harbor ivan 14 harbor jules 27 cobalt
12
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019903
qwen/qwen3.7-plus
awkweave-0019904
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
juniper alice 14 birch gus 12 grove lina 15 grove dina 9 harbor kim 21 juniper kim 30
30
cobalt farah 19 delta dina 4 birch farah 1 cobalt gus 6 ember kim 27 grove bruno 3
27
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019904-p1
Identify and print the maximum numeric value found in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
juniper alice 14 birch gus 12 grove lina 15 grove dina 9 harbor kim 21 juniper kim 30
30
cobalt farah 19 delta dina 4 birch farah 1 cobalt gus 6 ember kim 27 grove bruno 3
27
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019904
qwen/qwen3.7-plus
awkweave-0019905
Count all input records and print the total.
END{print NR}
ivan 36 farah 19 eli 60 kim 68 gus 15 gus 13 dina 112 eli 12
8
jules 62 farah 72 kim 14 gus 65 gus 59 farah 34 gus 66 ivan 83
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019905-p1
Count the total number of input records and print the result.
END{print NR}
ivan 36 farah 19 eli 60 kim 68 gus 15 gus 13 dina 112 eli 12
8
jules 62 farah 72 kim 14 gus 65 gus 59 farah 34 gus 66 ivan 83
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019905
qwen/qwen3.7-plus
awkweave-0019906
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
lina amber 10 chen delta 107 chen delta 107 gus birch 97 dina birch 22 jules birch 18 kim indigo 59 ivan grove 70 lina indigo 72
lina amber 10 chen delta 107 gus birch 97 dina birch 22 jules birch 18 kim indigo 59 ivan grove 70 lina indigo 72
eli birch 55 farah ember 112 bruno cobalt 10 kim harbor 89 dina harbor 73 kim harbor 89 farah juniper 46 lina fable 119 hana fable 99 hana cobalt 117
eli birch 55 farah ember 112 bruno cobalt 10 kim harbor 89 dina harbor 73 farah juniper 46 lina fable 119 hana fable 99 hana cobalt 117
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019906-p1
Eliminate exact duplicate lines while maintaining the original sequence and keeping the first instance.
!seen[$0]++
lina amber 10 chen delta 107 chen delta 107 gus birch 97 dina birch 22 jules birch 18 kim indigo 59 ivan grove 70 lina indigo 72
lina amber 10 chen delta 107 gus birch 97 dina birch 22 jules birch 18 kim indigo 59 ivan grove 70 lina indigo 72
eli birch 55 farah ember 112 bruno cobalt 10 kim harbor 89 dina harbor 73 kim harbor 89 farah juniper 46 lina fable 119 hana fable 99 hana cobalt 117
eli birch 55 farah ember 112 bruno cobalt 10 kim harbor 89 dina harbor 73 farah juniper 46 lina fable 119 hana fable 99 hana cobalt 117
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019906
qwen/qwen3.7-plus
awkweave-0019907
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
alice cobalt 50 lina cobalt 26 jules amber 31 alice delta 77 dina grove 53 jules grove 10 dina ember 83 ivan harbor 52
alice cobalt 50 lina cobalt 26 jules amber 31 alice delta 77 dina grove 53 jules grove 10 dina ember 83 ivan harbor 52
hana delta 22 gus juniper 28 kim birch 71 hana ember 93 bruno grove 34 alice grove 118 alice grove 74
hana delta 22 gus juniper 28 kim birch 71 hana ember 93 bruno grove 34 alice grove 118 alice grove 74
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019907-p1
Retain only the initial line for every unique value found in the third column, preserving the input order.
!seen[$3]++
alice cobalt 50 lina cobalt 26 jules amber 31 alice delta 77 dina grove 53 jules grove 10 dina ember 83 ivan harbor 52
alice cobalt 50 lina cobalt 26 jules amber 31 alice delta 77 dina grove 53 jules grove 10 dina ember 83 ivan harbor 52
hana delta 22 gus juniper 28 kim birch 71 hana ember 93 bruno grove 34 alice grove 118 alice grove 74
hana delta 22 gus juniper 28 kim birch 71 hana ember 93 bruno grove 34 alice grove 118 alice grove 74
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019907
qwen/qwen3.7-plus
awkweave-0019908
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
alice 25 ember ivan 12 fable bruno 4 birch dina 29 juniper alice 26 cobalt lina 1 grove dina 2 juniper lina 12 juniper dina 2 cobalt
alice 25 ivan 37 bruno 41 dina 70 alice 96 lina 97 dina 99 lina 111 dina 113
alice 25 delta kim 8 grove jules 28 juniper ivan 2 fable bruno 18 harbor bruno 12 delta farah 28 delta
alice 25 kim 33 jules 61 ivan 63 bruno 81 bruno 93 farah 121
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019908-p1
Output the first column alongside the cumulative total of the second column, separated by a space.
{s+=$2;print $1,s}
alice 25 ember ivan 12 fable bruno 4 birch dina 29 juniper alice 26 cobalt lina 1 grove dina 2 juniper lina 12 juniper dina 2 cobalt
alice 25 ivan 37 bruno 41 dina 70 alice 96 lina 97 dina 99 lina 111 dina 113
alice 25 delta kim 8 grove jules 28 juniper ivan 2 fable bruno 18 harbor bruno 12 delta farah 28 delta
alice 25 kim 33 jules 61 ivan 63 bruno 81 bruno 93 farah 121
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019908
qwen/qwen3.7-plus
awkweave-0019909
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
kim 18 14 fable kim 22 30 juniper jules 30 13 birch lina 21 20 birch bruno 11 26 amber lina 13 24 birch chen 13 13 juniper chen 27 15 harbor kim 29 27 grove
kim 32 kim 52 jules 43 lina 41 bruno 37 lina 37 chen 26 chen 42 kim 56
alice 15 15 harbor chen 17 23 harbor bruno 10 5 harbor ivan 21 9 amber bruno 2 19 fable kim 14 23 fable
alice 30 chen 40 bruno 15 ivan 30 bruno 21 kim 37
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019909-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
kim 18 14 fable kim 22 30 juniper jules 30 13 birch lina 21 20 birch bruno 11 26 amber lina 13 24 birch chen 13 13 juniper chen 27 15 harbor kim 29 27 grove
kim 32 kim 52 jules 43 lina 41 bruno 37 lina 37 chen 26 chen 42 kim 56
alice 15 15 harbor chen 17 23 harbor bruno 10 5 harbor ivan 21 9 amber bruno 2 19 fable kim 14 23 fable
alice 30 chen 40 bruno 15 ivan 30 bruno 21 kim 37
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019909
qwen/qwen3.7-plus
awkweave-0019910
Print column 1 and pass when column 2 is at least 22; otherwise print fail.
{print $1,($2>=22?"pass":"fail")}
ivan 30 alice 8 kim 24 kim 15 lina 8 ivan 19 alice 6 alice 21 hana 17 ivan 16
ivan pass alice fail kim pass kim fail lina fail ivan fail alice fail alice fail hana fail ivan fail
bruno 6 bruno 12 ivan 30 farah 3 farah 14 alice 1 eli 2 chen 28 alice 26 bruno 27
bruno fail bruno fail ivan pass farah fail farah fail alice fail eli fail chen pass alice pass bruno pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019910-p1
Output the first column and print 'pass' if the second column is 22 or greater; otherwise, print 'fail'.
{print $1,($2>=22?"pass":"fail")}
ivan 30 alice 8 kim 24 kim 15 lina 8 ivan 19 alice 6 alice 21 hana 17 ivan 16
ivan pass alice fail kim pass kim fail lina fail ivan fail alice fail alice fail hana fail ivan fail
bruno 6 bruno 12 ivan 30 farah 3 farah 14 alice 1 eli 2 chen 28 alice 26 bruno 27
bruno fail bruno fail ivan pass farah fail farah fail alice fail eli fail chen pass alice pass bruno pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019910
qwen/qwen3.7-plus
awkweave-0019911
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
chen amber 46 lina indigo 36 alice birch 86 jules indigo 70 farah ember 86 bruno fable 29 alice harbor 77 farah amber 108
AMBER INDIGO BIRCH INDIGO EMBER FABLE HARBOR AMBER
dina grove 43 bruno birch 82 chen ember 25 dina amber 87 eli delta 108 chen grove 6 eli amber 38 gus amber 35 farah birch 57 kim fable 89
GROVE BIRCH EMBER AMBER DELTA GROVE AMBER AMBER BIRCH FABLE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019911-p1
Transform the second column to uppercase and output only that column.
{print toupper($2)}
chen amber 46 lina indigo 36 alice birch 86 jules indigo 70 farah ember 86 bruno fable 29 alice harbor 77 farah amber 108
AMBER INDIGO BIRCH INDIGO EMBER FABLE HARBOR AMBER
dina grove 43 bruno birch 82 chen ember 25 dina amber 87 eli delta 108 chen grove 6 eli amber 38 gus amber 35 farah birch 57 kim fable 89
GROVE BIRCH EMBER AMBER DELTA GROVE AMBER AMBER BIRCH FABLE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019911
qwen/qwen3.7-plus
awkweave-0019912
From column 1, print 2 characters starting at character 2.
{print substr($1,2,2)}
harbor 98 delta 30 fable 19 juniper 110 fable 102 ember 80 ember 75 juniper 100 fable 42
ar el ab un ab mb mb un ab
indigo 93 indigo 19 amber 15 delta 26 birch 50 fable 105 indigo 43 grove 83 amber 69 fable 33
nd nd mb el ir ab nd ro mb ab
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019912-p1
Extract and print two characters from the first column, starting at the second character position.
{print substr($1,2,2)}
harbor 98 delta 30 fable 19 juniper 110 fable 102 ember 80 ember 75 juniper 100 fable 42
ar el ab un ab mb mb un ab
indigo 93 indigo 19 amber 15 delta 26 birch 50 fable 105 indigo 43 grove 83 amber 69 fable 33
nd nd mb el ir ab nd ro mb ab
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019912
qwen/qwen3.7-plus
awkweave-0019913
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
ember_juniper 82 grove_grove 5 delta_harbor 82 ember_delta 117 indigo_harbor 103 fable_juniper 89 fable_ember 87 ember_delta 44 cobalt_amber 114
ember juniper grove grove delta harbor ember delta indigo harbor fable juniper fable ember ember delta cobalt amber
grove_fable 76 ember_indigo 14 amber_ember 57 cobalt_juniper 29 ember_cobalt 56 cobalt_fable 71 indigo_indigo 52 ember_cobalt 45 juniper_harbor 3 juniper_amber 28
grove fable ember indigo amber ember cobalt juniper ember cobalt cobalt fable indigo indigo ember cobalt juniper harbor juniper amber
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019913-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
ember_juniper 82 grove_grove 5 delta_harbor 82 ember_delta 117 indigo_harbor 103 fable_juniper 89 fable_ember 87 ember_delta 44 cobalt_amber 114
ember juniper grove grove delta harbor ember delta indigo harbor fable juniper fable ember ember delta cobalt amber
grove_fable 76 ember_indigo 14 amber_ember 57 cobalt_juniper 29 ember_cobalt 56 cobalt_fable 71 indigo_indigo 52 ember_cobalt 45 juniper_harbor 3 juniper_amber 28
grove fable ember indigo amber ember cobalt juniper ember cobalt cobalt fable indigo indigo ember cobalt juniper harbor juniper amber
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019913
qwen/qwen3.7-plus
awkweave-0019914
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)}
alice delta 106 failed chen juniper 35 paused dina harbor 69 failed chen cobalt 56 paused eli indigo 63 closed chen juniper 75 active kim indigo 62 failed gus fable 85 pending
failed 106 delta alice paused 35 juniper chen failed 69 harbor dina paused 56 cobalt chen closed 63 indigo eli active 75 juniper chen failed 62 indigo kim pending 85 fable gus
bruno juniper 18 ready lina ember 56 pending alice indigo 103 ready ivan grove 70 failed alice indigo 63 active bruno delta 54 pending eli ember 89 active
ready 18 juniper bruno pending 56 ember lina ready 103 indigo alice failed 70 grove ivan active 63 indigo alice pending 54 delta bruno active 89 ember eli
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019914-p1
Reverse the sequence of fields for every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
alice delta 106 failed chen juniper 35 paused dina harbor 69 failed chen cobalt 56 paused eli indigo 63 closed chen juniper 75 active kim indigo 62 failed gus fable 85 pending
failed 106 delta alice paused 35 juniper chen failed 69 harbor dina paused 56 cobalt chen closed 63 indigo eli active 75 juniper chen failed 62 indigo kim pending 85 fable gus
bruno juniper 18 ready lina ember 56 pending alice indigo 103 ready ivan grove 70 failed alice indigo 63 active bruno delta 54 pending eli ember 89 active
ready 18 juniper bruno pending 56 ember lina ready 103 indigo alice failed 70 grove ivan active 63 indigo alice pending 54 delta bruno active 89 ember eli
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019914
qwen/qwen3.7-plus
awkweave-0019915
Print the number of whitespace-separated fields on each line.
{print NF}
alice ember 50 pending bruno juniper 105 paused dina grove 47 pending chen ember 15 failed bruno grove 66 closed bruno ember 64 closed kim harbor 20 closed
4 4 4 4 4 4 4
eli birch 62 closed chen fable 46 active chen ember 15 failed chen grove 70 active hana fable 69 closed jules indigo 17 paused eli delta 112 active
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019915-p1
Display the count of whitespace-delimited fields for each line.
{print NF}
alice ember 50 pending bruno juniper 105 paused dina grove 47 pending chen ember 15 failed bruno grove 66 closed bruno ember 64 closed kim harbor 20 closed
4 4 4 4 4 4 4
eli birch 62 closed chen fable 46 active chen ember 15 failed chen grove 70 active hana fable 69 closed jules indigo 17 paused eli delta 112 active
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019915
qwen/qwen3.7-plus
awkweave-0019916
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 25 kim beta 21 chen gamma 50 kim alpha 22 alice beta 46 dina gamma 12 alice beta 12 gus gamma 84 hana delta 0 farah delta 65
beta 4 gamma 3 alpha 1 delta 2
alice beta 18 eli delta 58 lina beta 30 hana beta 23 chen alpha 46 lina alpha 46 ivan gamma 84 ivan gamma 26 ivan gamma 74 lina beta 74
beta 4 delta 1 alpha 2 gamma 3
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019916-p1
Tally the number of records for each distinct value in the second column, printing the value and its count in the 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 25 kim beta 21 chen gamma 50 kim alpha 22 alice beta 46 dina gamma 12 alice beta 12 gus gamma 84 hana delta 0 farah delta 65
beta 4 gamma 3 alpha 1 delta 2
alice beta 18 eli delta 58 lina beta 30 hana beta 23 chen alpha 46 lina alpha 46 ivan gamma 84 ivan gamma 26 ivan gamma 74 lina beta 74
beta 4 delta 1 alpha 2 gamma 3
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019916
qwen/qwen3.7-plus
awkweave-0019917
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]]}
farah beta 28 lina alpha 20 gus gamma 7 chen beta 23 hana delta 21 chen delta 24
beta 51 alpha 20 gamma 7 delta 45
lina alpha 6 alice beta 7 dina delta 6 chen alpha 12 farah gamma 20 dina gamma 10 dina alpha 6 gus beta 24 hana alpha 21 ivan alpha 15
alpha 60 beta 31 delta 6 gamma 30
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019917-p1
Calculate the sum of the third column for each category in the second column, displaying groups in the order they 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]]}
farah beta 28 lina alpha 20 gus gamma 7 chen beta 23 hana delta 21 chen delta 24
beta 51 alpha 20 gamma 7 delta 45
lina alpha 6 alice beta 7 dina delta 6 chen alpha 12 farah gamma 20 dina gamma 10 dina alpha 6 gus beta 24 hana alpha 21 ivan alpha 15
alpha 60 beta 31 delta 6 gamma 30
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019917
qwen/qwen3.7-plus
awkweave-0019918
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta juniper 22 delta harbor 59 gamma ember 91 delta fable 77 beta indigo 64 alpha grove 67
beta 2 delta 2
delta cobalt 47 beta delta 82 delta juniper 22 gamma juniper 5 alpha grove 66 gamma ember 42 alpha delta 84 gamma grove 28
delta 2 gamma 3 alpha 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019918-p1
List each unique value from the first column along with its frequency, ordered by when it first appears.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta juniper 22 delta harbor 59 gamma ember 91 delta fable 77 beta indigo 64 alpha grove 67
beta 2 delta 2
delta cobalt 47 beta delta 82 delta juniper 22 gamma juniper 5 alpha grove 66 gamma ember 42 alpha delta 84 gamma grove 28
delta 2 gamma 3 alpha 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019918
qwen/qwen3.7-plus
awkweave-0019919
The first row is a header. Print the record_id column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
score state record_id note r001 farah 11 ready r002 jules 22 closed r003 gus 22 active r004 chen 8 paused r005 farah 5 ready r006 gus 15 pending r007 farah 20 active r008 gus 9 pending
11 22 22 8 5 15 20 9
score state record_id note r001 eli 10 pending r002 eli 24 pending r003 bruno 21 ready r004 gus 12 paused r005 dina 26 pending r006 chen 24 paused r007 farah 3 paused r008 chen 7 pending r009 kim 22 failed r010 alice 2 failed
10 24 21 12 26 24 3 7 22 2
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019919-p1
Treating the initial row as a header, output the record_id field for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
score state record_id note r001 farah 11 ready r002 jules 22 closed r003 gus 22 active r004 chen 8 paused r005 farah 5 ready r006 gus 15 pending r007 farah 20 active r008 gus 9 pending
11 22 22 8 5 15 20 9
score state record_id note r001 eli 10 pending r002 eli 24 pending r003 bruno 21 ready r004 gus 12 paused r005 dina 26 pending r006 chen 24 paused r007 farah 3 paused r008 chen 7 pending r009 kim 22 failed r010 alice 2 failed
10 24 21 12 26 24 3 7 22 2
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019919
qwen/qwen3.7-plus
awkweave-0019920
The first row is a header. Print display_name for data rows whose score is greater than 8.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>8{print $h["display_name"]}
record_id display_name score state r001 dina 2 failed r002 farah 11 closed r003 dina 8 failed r004 ivan 24 failed r005 eli 24 active r006 hana 26 ready r007 jules 14 closed r008 kim 29 failed
farah ivan eli hana jules kim
record_id display_name score state r001 eli 2 ready r002 eli 8 pending r003 lina 11 closed r004 bruno 4 paused r005 chen 22 paused r006 hana 15 ready r007 kim 5 closed
lina chen hana
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019920-p1
With the first line as a header, display the display_name for any data row where the score is above 8.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>8{print $h["display_name"]}
record_id display_name score state r001 dina 2 failed r002 farah 11 closed r003 dina 8 failed r004 ivan 24 failed r005 eli 24 active r006 hana 26 ready r007 jules 14 closed r008 kim 29 failed
farah ivan eli hana jules kim
record_id display_name score state r001 eli 2 ready r002 eli 8 pending r003 lina 11 closed r004 bruno 4 paused r005 chen 22 paused r006 hana 15 ready r007 kim 5 closed
lina chen hana
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019920
qwen/qwen3.7-plus
awkweave-0019921
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
jules 1 ready ivan 10 failed jules 25 closed kim 13 failed hana 24 active hana 23 ready farah 16 active farah 26 closed farah 2 failed
jules ivan jules kim hana hana farah farah farah
bruno 17 paused farah 13 paused hana 11 closed kim 17 ready gus 27 active chen 13 pending alice 30 ready ivan 10 pending gus 29 active farah 14 ready
bruno farah hana kim gus chen alice ivan gus farah
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019921-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
jules 1 ready ivan 10 failed jules 25 closed kim 13 failed hana 24 active hana 23 ready farah 16 active farah 26 closed farah 2 failed
jules ivan jules kim hana hana farah farah farah
bruno 17 paused farah 13 paused hana 11 closed kim 17 ready gus 27 active chen 13 pending alice 30 ready ivan 10 pending gus 29 active farah 14 ready
bruno farah hana kim gus chen alice ivan gus farah
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0019921
qwen/qwen3.7-plus
awkweave-0019922
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 17.
BEGIN{FS=OFS=","}$2>17{print $1}
gus,8,closed farah,7,ready dina,19,active bruno,21,pending dina,7,closed eli,1,ready
dina bruno
lina,28,active farah,6,paused alice,20,paused gus,4,active dina,30,active ivan,24,active hana,15,active bruno,1,paused bruno,7,failed chen,5,pending
lina alice dina ivan
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019922-p1
For simple CSV data without quoted commas, print the first column only if the second column is greater than 17.
BEGIN{FS=OFS=","}$2>17{print $1}
gus,8,closed farah,7,ready dina,19,active bruno,21,pending dina,7,closed eli,1,ready
dina bruno
lina,28,active farah,6,paused alice,20,paused gus,4,active dina,30,active ivan,24,active hana,15,active bruno,1,paused bruno,7,failed chen,5,pending
lina alice dina ivan
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019922
qwen/qwen3.7-plus
awkweave-0019923
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
eli indigo 1 chen amber 16 hana birch 19 kim grove 96 kim delta 111 bruno amber 61
eli indigo 1 chen amber 16 hana birch 19 kim grove 96 kim delta 111 bruno amber 61
kim indigo 40 ivan indigo 29 ivan grove 116 jules indigo 46 alice ember 105 jules harbor 95 bruno fable 32 bruno harbor 22
kim indigo 40 ivan indigo 29 ivan grove 116 jules indigo 46 alice ember 105 jules harbor 95 bruno fable 32 bruno harbor 22
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019923-p1
Remove leading and trailing spaces and replace sequences of internal whitespace with a single space.
{$1=$1;print}
eli indigo 1 chen amber 16 hana birch 19 kim grove 96 kim delta 111 bruno amber 61
eli indigo 1 chen amber 16 hana birch 19 kim grove 96 kim delta 111 bruno amber 61
kim indigo 40 ivan indigo 29 ivan grove 116 jules indigo 46 alice ember 105 jules harbor 95 bruno fable 32 bruno harbor 22
kim indigo 40 ivan indigo 29 ivan grove 116 jules indigo 46 alice ember 105 jules harbor 95 bruno fable 32 bruno harbor 22
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019923
qwen/qwen3.7-plus
awkweave-0019924
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah juniper 28 ready lina harbor 89 active alice juniper 22 ready dina birch 4 ready eli harbor 8 active chen cobalt 35 active alice ember 105 active kim indigo 11 ready kim juniper 96 closed
farah juniper 28 ready
eli amber 6 ready alice amber 1 pending ivan birch 120 failed gus amber 42 pending jules indigo 103 pending lina indigo 77 ready hana grove 12 active
jules indigo 103 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019924-p1
Identify and output the longest line from the input; in case of a tie, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah juniper 28 ready lina harbor 89 active alice juniper 22 ready dina birch 4 ready eli harbor 8 active chen cobalt 35 active alice ember 105 active kim indigo 11 ready kim juniper 96 closed
farah juniper 28 ready
eli amber 6 ready alice amber 1 pending ivan birch 120 failed gus amber 42 pending jules indigo 103 pending lina indigo 77 ready hana grove 12 active
jules indigo 103 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019924
qwen/qwen3.7-plus
awkweave-0019925
Print every 4th line starting at line 2 (then line 6, and so on).
NR%4==2
lina 9 eli 98 bruno 79 bruno 105 kim 44 lina 9 eli 83 alice 11 jules 9
eli 98 lina 9
eli 88 eli 11 alice 19 bruno 24 chen 104 lina 19 dina 107 chen 26
eli 11 lina 19
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019925-p1
Output every fourth line beginning with line 2 (i.e., lines 2, 6, 10, etc.).
NR%4==2
lina 9 eli 98 bruno 79 bruno 105 kim 44 lina 9 eli 83 alice 11 jules 9
eli 98 lina 9
eli 88 eli 11 alice 19 bruno 24 chen 104 lina 19 dina 107 chen 26
eli 11 lina 19
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019925
qwen/qwen3.7-plus
awkweave-0019926
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
alpha ember 83 beta fable 101 beta juniper 81 beta harbor 16 beta amber 115 gamma amber 25 delta indigo 103 beta amber 73 delta juniper 44
4
delta juniper 18 alpha grove 92 delta cobalt 116 gamma juniper 117 gamma indigo 35 delta delta 14 beta juniper 47 delta ember 2 gamma indigo 56
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019926-p1
Calculate the number of unique values in the first column and print just that total count.
{if(!seen[$1]++)n++}END{print n+0}
alpha ember 83 beta fable 101 beta juniper 81 beta harbor 16 beta amber 115 gamma amber 25 delta indigo 103 beta amber 73 delta juniper 44
4
delta juniper 18 alpha grove 92 delta cobalt 116 gamma juniper 117 gamma indigo 35 delta delta 14 beta juniper 47 delta ember 2 gamma indigo 56
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019926
qwen/qwen3.7-plus
awkweave-0019927
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}
bruno 6 0 dina 5 27 gus 15 12 farah 4 12 dina 8 1 bruno 28 26 kim 1 10
dina 0.19 gus 1.25 farah 0.33 dina 8.00 bruno 1.08 kim 0.10
jules 5 0 farah 25 18 alice 2 22 ivan 17 23 chen 19 23 ivan 13 19 alice 16 14
farah 1.39 alice 0.09 ivan 0.74 chen 0.83 ivan 0.68 alice 1.14
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019927-p1
For each row, output column 1 and the result of column 2 divided by column 3 rounded to two decimal places, ignoring rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
bruno 6 0 dina 5 27 gus 15 12 farah 4 12 dina 8 1 bruno 28 26 kim 1 10
dina 0.19 gus 1.25 farah 0.33 dina 8.00 bruno 1.08 kim 0.10
jules 5 0 farah 25 18 alice 2 22 ivan 17 23 chen 19 23 ivan 13 19 alice 16 14
farah 1.39 alice 0.09 ivan 0.74 chen 0.83 ivan 0.68 alice 1.14
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019927
qwen/qwen3.7-plus
awkweave-0019928
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]}
lina harbor 18 hana grove 29 farah cobalt 19 chen grove 8 gus grove 24 dina birch 26
hana grove 29 dina birch 26 gus grove 24
bruno delta 30 eli grove 11 chen juniper 22 dina birch 18 ivan cobalt 7 chen amber 26 lina grove 18
bruno delta 30 chen amber 26 chen juniper 22
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019928-p1
Display the top three records based on the highest numeric values in column 3, sorted in descending order, while maintaining the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
lina harbor 18 hana grove 29 farah cobalt 19 chen grove 8 gus grove 24 dina birch 26
hana grove 29 dina birch 26 gus grove 24
bruno delta 30 eli grove 11 chen juniper 22 dina birch 18 ivan cobalt 7 chen amber 26 lina grove 18
bruno delta 30 chen amber 26 chen juniper 22
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019928
qwen/qwen3.7-plus
awkweave-0019929
For each line, output fields 4 and 3, in that order.
{print $4, $3}
42 13 117 7 93 8 58 18 37 1 3 93 77 95 112 69 70 12 0 63 101 57 11 58 117 116 77 16 18 82 58 10 65 43 24 57 78 81 35 25 7 104 82 52 2 93 72 97 44 48
7 117 37 18 95 77 0 12 58 11 18 16 43 65 35 81 52 82 44 97
32 28 7 109 88 22 0 110 45 10 45 21 59 78 110 11 58 72 46 88 89 110 100 61 36 15 21 25 9 31 87 15 7 118 3 84 94 54 38 21
109 7 45 110 78 59 46 72 61 100 9 25 118 7 38 54
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019929-p1
For every line, print the fourth field followed by the third field.
{print $4, $3}
42 13 117 7 93 8 58 18 37 1 3 93 77 95 112 69 70 12 0 63 101 57 11 58 117 116 77 16 18 82 58 10 65 43 24 57 78 81 35 25 7 104 82 52 2 93 72 97 44 48
7 117 37 18 95 77 0 12 58 11 18 16 43 65 35 81 52 82 44 97
32 28 7 109 88 22 0 110 45 10 45 21 59 78 110 11 58 72 46 88 89 110 100 61 36 15 21 25 9 31 87 15 7 118 3 84 94 54 38 21
109 7 45 110 78 59 46 72 61 100 9 25 118 7 38 54
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019929
qwen/qwen3.7-plus
awkweave-0019930
Print the last field of every input line.
{print $NF}
pending hana 74 76 closed eli 36 71 active kim 102 17 closed gus 107 92 ready jules 29 82 closed eli 62 28 pending lina 40 110 active ivan 68 114 failed lina 54 108 pending dina 98 17
76 71 17 92 82 28 110 114 108 17
paused ivan 9 25 active chen 35 91 active ivan 31 79 closed bruno 57 33 paused farah 59 102 closed lina 82 89 paused eli 118 51 active kim 62 90 failed lina 25 118
25 91 79 33 102 89 51 90 118
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019930-p1
Output the final field from each input line.
{print $NF}
pending hana 74 76 closed eli 36 71 active kim 102 17 closed gus 107 92 ready jules 29 82 closed eli 62 28 pending lina 40 110 active ivan 68 114 failed lina 54 108 pending dina 98 17
76 71 17 92 82 28 110 114 108 17
paused ivan 9 25 active chen 35 91 active ivan 31 79 closed bruno 57 33 paused farah 59 102 closed lina 82 89 paused eli 118 51 active kim 62 90 failed lina 25 118
25 91 79 33 102 89 51 90 118
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019930
qwen/qwen3.7-plus
awkweave-0019931
Print the complete records where column 2 is greater than 35.
$2 > 35
paused 3 pending delta pending 78 ready juniper pending 30 closed ember closed 107 ready cobalt ready 91 pending harbor closed 51 closed amber pending 25 paused harbor failed 114 ready ember active 33 ready harbor failed 48 paused grove
pending 78 ready juniper closed 107 ready cobalt ready 91 pending harbor closed 51 closed amber failed 114 ready ember failed 48 paused grove
ready 93 closed cobalt closed 90 active cobalt ready 3 active ember closed 120 closed juniper active 35 failed harbor active 59 paused fable pending 0 failed grove active 99 pending juniper
ready 93 closed cobalt closed 90 active cobalt closed 120 closed juniper active 59 paused fable active 99 pending juniper
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019931-p1
Display full records where the second column exceeds 35.
$2 > 35
paused 3 pending delta pending 78 ready juniper pending 30 closed ember closed 107 ready cobalt ready 91 pending harbor closed 51 closed amber pending 25 paused harbor failed 114 ready ember active 33 ready harbor failed 48 paused grove
pending 78 ready juniper closed 107 ready cobalt ready 91 pending harbor closed 51 closed amber failed 114 ready ember failed 48 paused grove
ready 93 closed cobalt closed 90 active cobalt ready 3 active ember closed 120 closed juniper active 35 failed harbor active 59 paused fable pending 0 failed grove active 99 pending juniper
ready 93 closed cobalt closed 90 active cobalt closed 120 closed juniper active 59 paused fable active 99 pending juniper
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019931
qwen/qwen3.7-plus
awkweave-0019932
Show whole lines whose 3rd field is between 4 and 18, inclusive.
$3 >= 4 && $3 <= 18
failed ready 29 alice failed pending 5 ivan paused closed 27 ivan closed active 15 hana ready paused 2 lina pending pending 26 alice pending paused 16 chen active failed 8 bruno
failed pending 5 ivan closed active 15 hana pending paused 16 chen active failed 8 bruno
ready failed 13 hana ready paused 11 ivan pending ready 17 chen failed failed 18 hana failed closed 18 ivan pending paused 6 alice ready paused 9 jules closed failed 3 hana active ready 8 chen ready ready 28 kim
ready failed 13 hana ready paused 11 ivan pending ready 17 chen failed failed 18 hana failed closed 18 ivan pending paused 6 alice ready paused 9 jules active ready 8 chen
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019932-p1
Show entire lines where the third field falls within the inclusive range of 4 to 18.
$3 >= 4 && $3 <= 18
failed ready 29 alice failed pending 5 ivan paused closed 27 ivan closed active 15 hana ready paused 2 lina pending pending 26 alice pending paused 16 chen active failed 8 bruno
failed pending 5 ivan closed active 15 hana pending paused 16 chen active failed 8 bruno
ready failed 13 hana ready paused 11 ivan pending ready 17 chen failed failed 18 hana failed closed 18 ivan pending paused 6 alice ready paused 9 jules closed failed 3 hana active ready 8 chen ready ready 28 kim
ready failed 13 hana ready paused 11 ivan pending ready 17 chen failed failed 18 hana failed closed 18 ivan pending paused 6 alice ready paused 9 jules active ready 8 chen
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019932
qwen/qwen3.7-plus
awkweave-0019933
Print column 3 only for rows where column 4 is exactly pending.
$4 == "pending"{print $3}
harbor 45 hana pending indigo 55 gus paused delta 66 chen paused birch 33 alice pending indigo 82 hana paused cobalt 58 chen active harbor 87 hana failed fable 88 bruno closed juniper 65 lina failed delta 99 eli closed
hana alice
juniper 57 bruno failed delta 37 ivan pending harbor 8 alice failed amber 52 farah paused indigo 71 chen failed harbor 117 chen pending harbor 101 hana ready
ivan chen
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019933-p1
Print only the third column for rows where the fourth column is exactly pending.
$4 == "pending"{print $3}
harbor 45 hana pending indigo 55 gus paused delta 66 chen paused birch 33 alice pending indigo 82 hana paused cobalt 58 chen active harbor 87 hana failed fable 88 bruno closed juniper 65 lina failed delta 99 eli closed
hana alice
juniper 57 bruno failed delta 37 ivan pending harbor 8 alice failed amber 52 farah paused indigo 71 chen failed harbor 117 chen pending harbor 101 hana ready
ivan chen
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019933
qwen/qwen3.7-plus
awkweave-0019934
Print all fields from lines where field 2 begins with INFO.
$2 ~ /^INFO/
ember INFO 118 juniper WARN 89 juniper WARN 109 cobalt WARN 32 birch DEBUG 80 amber WARN 82 amber DEBUG 60
ember INFO 118
cobalt ERROR 97 amber INFO 90 grove WARN 19 ember WARN 45 harbor INFO 20 juniper ERROR 62
amber INFO 90 harbor INFO 20
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019934-p1
Output all fields from lines where the second field starts with INFO.
$2 ~ /^INFO/
ember INFO 118 juniper WARN 89 juniper WARN 109 cobalt WARN 32 birch DEBUG 80 amber WARN 82 amber DEBUG 60
ember INFO 118
cobalt ERROR 97 amber INFO 90 grove WARN 19 ember WARN 45 harbor INFO 20 juniper ERROR 62
amber INFO 90 harbor INFO 20
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019934
qwen/qwen3.7-plus
awkweave-0019935
Print every line except those containing the exact text grove.
$0 !~ /grove/
grove 19 pending fable 33 active harbor 115 pending cobalt 100 failed cobalt 74 pending harbor 14 failed indigo 2 paused ember 25 active grove 999 active
fable 33 active harbor 115 pending cobalt 100 failed cobalt 74 pending harbor 14 failed indigo 2 paused ember 25 active
grove 105 closed cobalt 35 pending delta 6 failed grove 39 failed ember 2 pending ember 100 pending juniper 114 closed grove 999 active
cobalt 35 pending delta 6 failed ember 2 pending ember 100 pending juniper 114 closed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019935-p1
Print every line that does not contain the exact string grove.
$0 !~ /grove/
grove 19 pending fable 33 active harbor 115 pending cobalt 100 failed cobalt 74 pending harbor 14 failed indigo 2 paused ember 25 active grove 999 active
fable 33 active harbor 115 pending cobalt 100 failed cobalt 74 pending harbor 14 failed indigo 2 paused ember 25 active
grove 105 closed cobalt 35 pending delta 6 failed grove 39 failed ember 2 pending ember 100 pending juniper 114 closed grove 999 active
cobalt 35 pending delta 6 failed ember 2 pending ember 100 pending juniper 114 closed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019935
qwen/qwen3.7-plus
awkweave-0019936
Print lines 4 through 6, including both endpoints.
NR >= 4 && NR <= 6
hana amber 113 eli fable 65 eli harbor 105 hana fable 49 alice harbor 57 gus fable 53 ivan harbor 115 farah amber 62 kim cobalt 2 jules cobalt 21
hana fable 49 alice harbor 57 gus fable 53
dina cobalt 60 lina cobalt 42 gus delta 15 chen ember 9 ivan ember 99 gus birch 2 chen amber 5 dina amber 100 alice grove 90
chen ember 9 ivan ember 99 gus birch 2
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019936-p1
Output lines 4 through 6, inclusive.
NR >= 4 && NR <= 6
hana amber 113 eli fable 65 eli harbor 105 hana fable 49 alice harbor 57 gus fable 53 ivan harbor 115 farah amber 62 kim cobalt 2 jules cobalt 21
hana fable 49 alice harbor 57 gus fable 53
dina cobalt 60 lina cobalt 42 gus delta 15 chen ember 9 ivan ember 99 gus birch 2 chen amber 5 dina amber 100 alice grove 90
chen ember 9 ivan ember 99 gus birch 2
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019936
qwen/qwen3.7-plus
awkweave-0019937
Output only the first 3 records.
NR <= 3
jules 4 fable bruno 0 harbor alice 24 juniper gus 68 indigo eli 29 birch hana 115 ember
jules 4 fable bruno 0 harbor alice 24 juniper
lina 51 amber hana 87 cobalt hana 15 indigo kim 112 ember jules 28 fable ivan 58 cobalt ivan 116 cobalt dina 32 birch chen 53 indigo
lina 51 amber hana 87 cobalt hana 15 indigo
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019937-p1
Display only the first 3 records.
NR <= 3
jules 4 fable bruno 0 harbor alice 24 juniper gus 68 indigo eli 29 birch hana 115 ember
jules 4 fable bruno 0 harbor alice 24 juniper
lina 51 amber hana 87 cobalt hana 15 indigo kim 112 ember jules 28 fable ivan 58 cobalt ivan 116 cobalt dina 32 birch chen 53 indigo
lina 51 amber hana 87 cobalt hana 15 indigo
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019937
qwen/qwen3.7-plus
awkweave-0019938
Skip the first line and print every remaining line unchanged.
NR > 1
chen 110 cobalt alice 11 juniper lina 94 grove kim 27 birch hana 75 juniper farah 4 indigo farah 11 harbor bruno 107 juniper
alice 11 juniper lina 94 grove kim 27 birch hana 75 juniper farah 4 indigo farah 11 harbor bruno 107 juniper
dina 114 delta eli 95 grove gus 95 grove kim 48 birch hana 112 indigo farah 92 cobalt lina 96 birch kim 97 grove jules 74 cobalt
eli 95 grove gus 95 grove kim 48 birch hana 112 indigo farah 92 cobalt lina 96 birch kim 97 grove jules 74 cobalt
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019938-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
chen 110 cobalt alice 11 juniper lina 94 grove kim 27 birch hana 75 juniper farah 4 indigo farah 11 harbor bruno 107 juniper
alice 11 juniper lina 94 grove kim 27 birch hana 75 juniper farah 4 indigo farah 11 harbor bruno 107 juniper
dina 114 delta eli 95 grove gus 95 grove kim 48 birch hana 112 indigo farah 92 cobalt lina 96 birch kim 97 grove jules 74 cobalt
eli 95 grove gus 95 grove kim 48 birch hana 112 indigo farah 92 cobalt lina 96 birch kim 97 grove jules 74 cobalt
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019938
qwen/qwen3.7-plus
awkweave-0019939
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
eli active 10 eli failed 29 jules pending 100 lina ready 45 eli active 21 gus failed 42
0
farah pending 110 eli active 99 eli closed 110 farah paused 115 ivan closed 66 farah paused 56
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019939-p1
Count the number of records with closed in the second column; output 0 if none exist.
$2 == "closed"{n++}END{print n+0}
eli active 10 eli failed 29 jules pending 100 lina ready 45 eli active 21 gus failed 42
0
farah pending 110 eli active 99 eli closed 110 farah paused 115 ivan closed 66 farah paused 56
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019939
qwen/qwen3.7-plus
awkweave-0019940
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
13 hana harbor 10 bruno indigo 12 kim cobalt 18 jules indigo 16 alice ember 4 alice amber 10 ivan birch 17 jules juniper
100
18 chen indigo 17 bruno grove 13 ivan delta 9 chen juniper 6 hana cobalt 22 lina delta 26 eli delta 25 gus indigo
136
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0019940-p1
Compute and print the total sum of integer values in the first column.
{s+=$1}END{print s+0}
13 hana harbor 10 bruno indigo 12 kim cobalt 18 jules indigo 16 alice ember 4 alice amber 10 ivan birch 17 jules juniper
100
18 chen indigo 17 bruno grove 13 ivan delta 9 chen juniper 6 hana cobalt 22 lina delta 26 eli delta 25 gus indigo
136
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0019940
qwen/qwen3.7-plus