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-0000380
The first row is a header. Print the state column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
region display_name note state r001 eli 5 active r002 chen 15 pending r003 jules 7 ready r004 kim 12 ready r005 hana 22 failed r006 lina 4 failed r007 farah 8 ready r008 alice 13 ready r009 dina 1 pending r010 bruno 1 failed
active pending ready ready failed failed ready ready pending failed
region display_name note state r001 hana 13 paused r002 kim 22 paused r003 dina 28 paused r004 lina 4 active r005 dina 6 closed r006 farah 6 active r007 kim 11 paused
paused paused paused active closed active paused
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000380-p1
Treating the first line as a header, output the state column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
region display_name note state r001 eli 5 active r002 chen 15 pending r003 jules 7 ready r004 kim 12 ready r005 hana 22 failed r006 lina 4 failed r007 farah 8 ready r008 alice 13 ready r009 dina 1 pending r010 bruno 1 failed
active pending ready ready failed failed ready ready pending failed
region display_name note state r001 hana 13 paused r002 kim 22 paused r003 dina 28 paused r004 lina 4 active r005 dina 6 closed r006 farah 6 active r007 kim 11 paused
paused paused paused active closed active paused
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000380
qwen/qwen3.7-plus
awkweave-0000381
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 bruno 17 failed r002 alice 28 failed r003 eli 18 active r004 lina 26 active r005 ivan 22 active r006 lina 13 failed r007 kim 29 closed r008 dina 12 ready r009 alice 24 ready r010 jules 14 failed
bruno alice eli lina ivan lina kim dina alice jules
record_id display_name score state r001 bruno 6 closed r002 jules 11 active r003 lina 9 ready r004 jules 12 active r005 eli 13 active r006 hana 2 active r007 jules 28 ready r008 chen 20 ready
jules lina jules eli jules chen
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000381-p1
With the first row as a header, output the display_name field for data rows where the score exceeds 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 bruno 17 failed r002 alice 28 failed r003 eli 18 active r004 lina 26 active r005 ivan 22 active r006 lina 13 failed r007 kim 29 closed r008 dina 12 ready r009 alice 24 ready r010 jules 14 failed
bruno alice eli lina ivan lina kim dina alice jules
record_id display_name score state r001 bruno 6 closed r002 jules 11 active r003 lina 9 ready r004 jules 12 active r005 eli 13 active r006 hana 2 active r007 jules 28 ready r008 chen 20 ready
jules lina jules eli jules chen
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000381
qwen/qwen3.7-plus
awkweave-0000382
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
ivan 3 ready alice 6 closed chen 9 failed farah 4 paused eli 14 ready lina 4 ready
ready closed failed paused ready ready
lina 21 closed ivan 2 pending kim 23 closed dina 25 pending kim 13 paused dina 1 ready gus 27 failed eli 22 ready jules 30 closed ivan 4 paused
closed pending closed pending paused ready failed ready closed paused
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000382-p1
Given tab-separated input, extract and print the third column from every record.
BEGIN{FS=OFS="\t"}{print $3}
ivan 3 ready alice 6 closed chen 9 failed farah 4 paused eli 14 ready lina 4 ready
ready closed failed paused ready ready
lina 21 closed ivan 2 pending kim 23 closed dina 25 pending kim 13 paused dina 1 ready gus 27 failed eli 22 ready jules 30 closed ivan 4 paused
closed pending closed pending paused ready failed ready closed paused
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000382
qwen/qwen3.7-plus
awkweave-0000383
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 14.
BEGIN{FS=OFS=","}$2>14{print $1}
ivan,13,closed jules,2,paused chen,5,paused dina,22,closed eli,24,paused hana,10,pending dina,15,pending gus,19,failed alice,15,active
dina eli dina gus alice
hana,14,active gus,15,pending alice,15,failed eli,21,paused alice,6,paused hana,23,paused
gus alice eli hana
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000383-p1
For simple comma-separated data without quoted commas, print the first column whenever the second column is greater than 14.
BEGIN{FS=OFS=","}$2>14{print $1}
ivan,13,closed jules,2,paused chen,5,paused dina,22,closed eli,24,paused hana,10,pending dina,15,pending gus,19,failed alice,15,active
dina eli dina gus alice
hana,14,active gus,15,pending alice,15,failed eli,21,paused alice,6,paused hana,23,paused
gus alice eli hana
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000383
qwen/qwen3.7-plus
awkweave-0000384
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
ivan amber 74 lina cobalt 112 bruno delta 94 jules fable 59 dina fable 59 hana amber 80
ivan amber 74 lina cobalt 112 bruno delta 94 jules fable 59 dina fable 59 hana amber 80
jules fable 91 kim juniper 113 farah birch 97 chen cobalt 93 gus cobalt 54 eli indigo 13 eli harbor 38 gus fable 76
jules fable 91 kim juniper 113 farah birch 97 chen cobalt 93 gus cobalt 54 eli indigo 13 eli harbor 38 gus fable 76
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000384-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
ivan amber 74 lina cobalt 112 bruno delta 94 jules fable 59 dina fable 59 hana amber 80
ivan amber 74 lina cobalt 112 bruno delta 94 jules fable 59 dina fable 59 hana amber 80
jules fable 91 kim juniper 113 farah birch 97 chen cobalt 93 gus cobalt 54 eli indigo 13 eli harbor 38 gus fable 76
jules fable 91 kim juniper 113 farah birch 97 chen cobalt 93 gus cobalt 54 eli indigo 13 eli harbor 38 gus fable 76
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000384
qwen/qwen3.7-plus
awkweave-0000385
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
bruno harbor 43 ready ivan delta 90 ready chen harbor 98 active ivan grove 67 paused gus ember 1 pending gus indigo 23 active kim ember 54 failed gus indigo 46 closed kim indigo 35 paused ivan cobalt 41 active
bruno harbor 43 ready
kim juniper 48 paused farah harbor 37 active farah birch 6 pending gus birch 94 failed hana birch 38 failed gus ember 24 paused dina fable 72 ready farah amber 34 failed gus delta 92 pending farah birch 109 closed
farah harbor 37 active
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000385-p1
Identify and output the longest line from the input; if multiple lines share the maximum length, select the first one.
{if(length($0)>length(best))best=$0}END{print best}
bruno harbor 43 ready ivan delta 90 ready chen harbor 98 active ivan grove 67 paused gus ember 1 pending gus indigo 23 active kim ember 54 failed gus indigo 46 closed kim indigo 35 paused ivan cobalt 41 active
bruno harbor 43 ready
kim juniper 48 paused farah harbor 37 active farah birch 6 pending gus birch 94 failed hana birch 38 failed gus ember 24 paused dina fable 72 ready farah amber 34 failed gus delta 92 pending farah birch 109 closed
farah harbor 37 active
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000385
qwen/qwen3.7-plus
awkweave-0000386
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
dina 101 hana 21 farah 97 kim 8 eli 15 alice 43 eli 90 lina 100
hana 21 eli 15 lina 100
chen 101 alice 81 hana 116 jules 77 hana 31 jules 16
alice 81 hana 31
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000386-p1
Output every third line beginning with line 2 (i.e., lines 2, 5, 8, etc.).
NR%3==2
dina 101 hana 21 farah 97 kim 8 eli 15 alice 43 eli 90 lina 100
hana 21 eli 15 lina 100
chen 101 alice 81 hana 116 jules 77 hana 31 jules 16
alice 81 hana 31
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000386
qwen/qwen3.7-plus
awkweave-0000387
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
delta harbor 113 alpha harbor 6 beta ember 47 beta juniper 105 alpha juniper 19 alpha delta 95 beta cobalt 34
5
beta ember 103 gamma ember 82 delta cobalt 115 gamma juniper 35 beta fable 64 alpha indigo 26 alpha indigo 114 alpha indigo 59
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000387-p1
Calculate the number of unique values in column 2 and print only that total count.
{if(!seen[$2]++)n++}END{print n+0}
delta harbor 113 alpha harbor 6 beta ember 47 beta juniper 105 alpha juniper 19 alpha delta 95 beta cobalt 34
5
beta ember 103 gamma ember 82 delta cobalt 115 gamma juniper 35 beta fable 64 alpha indigo 26 alpha indigo 114 alpha indigo 59
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000387
qwen/qwen3.7-plus
awkweave-0000388
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 8 0 lina 22 11 jules 29 12 lina 18 6 gus 22 9 lina 15 25
lina 2.00 jules 2.42 lina 3.00 gus 2.44 lina 0.60
jules 20 0 alice 5 6 eli 14 25 eli 12 19 ivan 20 15 lina 19 16 gus 19 11
alice 0.83 eli 0.56 eli 0.63 ivan 1.33 lina 1.19 gus 1.73
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000388-p1
For each row where column 3 is non-zero, print column 1 and the result of column 2 divided by column 3 formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
jules 8 0 lina 22 11 jules 29 12 lina 18 6 gus 22 9 lina 15 25
lina 2.00 jules 2.42 lina 3.00 gus 2.44 lina 0.60
jules 20 0 alice 5 6 eli 14 25 eli 12 19 ivan 20 15 lina 19 16 gus 19 11
alice 0.83 eli 0.56 eli 0.63 ivan 1.33 lina 1.19 gus 1.73
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000388
qwen/qwen3.7-plus
awkweave-0000389
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 ember 13 kim fable 16 bruno amber 23 lina amber 28 farah indigo 10 ivan juniper 20 eli amber 12 jules birch 2
lina amber 28 bruno amber 23 ivan juniper 20
kim delta 10 jules grove 16 alice cobalt 23 lina ember 29 ivan birch 10 kim birch 20 hana harbor 5 chen harbor 11
lina ember 29 alice cobalt 23 kim birch 20
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000389-p1
Output the three records with the highest numeric values in column 3, sorted in descending order; preserve 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]}
chen ember 13 kim fable 16 bruno amber 23 lina amber 28 farah indigo 10 ivan juniper 20 eli amber 12 jules birch 2
lina amber 28 bruno amber 23 ivan juniper 20
kim delta 10 jules grove 16 alice cobalt 23 lina ember 29 ivan birch 10 kim birch 20 hana harbor 5 chen harbor 11
lina ember 29 alice cobalt 23 kim birch 20
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000389
qwen/qwen3.7-plus
awkweave-0000400
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
bruno failed 12 kim ready 29 lina ready 74 hana active 69 hana failed 41 gus paused 63 dina failed 44
0
chen active 46 chen ready 109 alice closed 40 kim failed 112 chen closed 83 ivan pending 82 jules paused 45 dina failed 34 gus pending 66
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000400-p1
Count the entries in column 2 that are marked as closed, outputting 0 if the count is zero.
$2 == "closed"{n++}END{print n+0}
bruno failed 12 kim ready 29 lina ready 74 hana active 69 hana failed 41 gus paused 63 dina failed 44
0
chen active 46 chen ready 109 alice closed 40 kim failed 112 chen closed 83 ivan pending 82 jules paused 45 dina failed 34 gus pending 66
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000400
qwen/qwen3.7-plus
awkweave-0000401
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
kim 9 juniper jules 2 indigo alice 13 amber jules 2 amber alice 23 amber jules 27 grove ivan 3 delta gus 10 juniper dina 12 ember
101
farah 11 grove hana 29 birch alice 19 fable jules 16 juniper hana 14 birch kim 19 juniper
108
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000401-p1
Compute and display the total sum of all integer values found in column 2.
{s+=$2}END{print s+0}
kim 9 juniper jules 2 indigo alice 13 amber jules 2 amber alice 23 amber jules 27 grove ivan 3 delta gus 10 juniper dina 12 ember
101
farah 11 grove hana 29 birch alice 19 fable jules 16 juniper hana 14 birch kim 19 juniper
108
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000401
qwen/qwen3.7-plus
awkweave-0000402
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
ember 23 chen fable 14 hana ember 14 lina ember 29 lina amber 5 gus delta 1 dina delta 18 gus indigo 16 eli fable 26 jules
16.22
ember 29 ivan ember 6 dina harbor 15 eli grove 11 hana ember 28 lina birch 16 alice delta 21 chen cobalt 7 ivan indigo 29 eli
18.00
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000402-p1
Output the average of the values in column 2, formatted to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
ember 23 chen fable 14 hana ember 14 lina ember 29 lina amber 5 gus delta 1 dina delta 18 gus indigo 16 eli fable 26 jules
16.22
ember 29 ivan ember 6 dina harbor 15 eli grove 11 hana ember 28 lina birch 16 alice delta 21 chen cobalt 7 ivan indigo 29 eli
18.00
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000402
qwen/qwen3.7-plus
awkweave-0000403
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
3 fable hana 5 ember jules 2 ember farah 20 cobalt ivan 3 harbor jules 15 ember jules 25 grove ivan
2
26 harbor bruno 23 birch hana 9 fable kim 11 grove bruno 24 amber chen 9 delta chen 8 amber hana 12 grove jules
8
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000403-p1
Identify and print the minimum numeric value present in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
3 fable hana 5 ember jules 2 ember farah 20 cobalt ivan 3 harbor jules 15 ember jules 25 grove ivan
2
26 harbor bruno 23 birch hana 9 fable kim 11 grove bruno 24 amber chen 9 delta chen 8 amber hana 12 grove jules
8
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000403
qwen/qwen3.7-plus
awkweave-0000404
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
ivan juniper 4 chen juniper 24 jules indigo 14 bruno indigo 15 alice grove 6 bruno grove 10 alice cobalt 23 eli delta 25 bruno fable 22
25
bruno fable 20 jules fable 27 alice amber 21 farah amber 27 lina juniper 7 ivan birch 29
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000404-p1
Identify and print the maximum numeric value present in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
ivan juniper 4 chen juniper 24 jules indigo 14 bruno indigo 15 alice grove 6 bruno grove 10 alice cobalt 23 eli delta 25 bruno fable 22
25
bruno fable 20 jules fable 27 alice amber 21 farah amber 27 lina juniper 7 ivan birch 29
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000404
qwen/qwen3.7-plus
awkweave-0000405
Count all input records and print the total.
END{print NR}
chen 13 jules 103 alice 50 bruno 28 farah 119 jules 49 bruno 116 bruno 73
8
eli 31 kim 69 kim 8 farah 25 dina 43 jules 5 lina 33 ivan 36 ivan 120
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000405-p1
Count the total number of input records and print the result.
END{print NR}
chen 13 jules 103 alice 50 bruno 28 farah 119 jules 49 bruno 116 bruno 73
8
eli 31 kim 69 kim 8 farah 25 dina 43 jules 5 lina 33 ivan 36 ivan 120
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000405
qwen/qwen3.7-plus
awkweave-0000406
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
alice juniper 51 alice cobalt 109 gus juniper 60 kim ember 33 alice cobalt 109 ivan birch 67 hana harbor 2 lina delta 3
alice juniper 51 alice cobalt 109 gus juniper 60 kim ember 33 ivan birch 67 hana harbor 2 lina delta 3
ivan ember 13 gus birch 83 alice juniper 35 lina harbor 37 gus indigo 40 dina juniper 74 eli fable 19 farah juniper 120 kim indigo 3 kim indigo 3 jules juniper 112
ivan ember 13 gus birch 83 alice juniper 35 lina harbor 37 gus indigo 40 dina juniper 74 eli fable 19 farah juniper 120 kim indigo 3 jules juniper 112
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000406-p1
Eliminate exact duplicate lines while maintaining the original order and keeping the first instance of each.
!seen[$0]++
alice juniper 51 alice cobalt 109 gus juniper 60 kim ember 33 alice cobalt 109 ivan birch 67 hana harbor 2 lina delta 3
alice juniper 51 alice cobalt 109 gus juniper 60 kim ember 33 ivan birch 67 hana harbor 2 lina delta 3
ivan ember 13 gus birch 83 alice juniper 35 lina harbor 37 gus indigo 40 dina juniper 74 eli fable 19 farah juniper 120 kim indigo 3 kim indigo 3 jules juniper 112
ivan ember 13 gus birch 83 alice juniper 35 lina harbor 37 gus indigo 40 dina juniper 74 eli fable 19 farah juniper 120 kim indigo 3 jules juniper 112
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000406
qwen/qwen3.7-plus
awkweave-0000407
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
lina delta 8 gus birch 66 eli cobalt 32 alice birch 13 hana amber 17 alice amber 48 kim birch 30 kim grove 93
lina delta 8 gus birch 66 eli cobalt 32 alice birch 13 hana amber 17 kim birch 30
eli harbor 77 jules juniper 44 gus juniper 28 kim cobalt 92 gus birch 105 alice grove 36 lina harbor 88 lina amber 5 farah juniper 12
eli harbor 77 jules juniper 44 gus juniper 28 kim cobalt 92 alice grove 36 lina harbor 88 farah juniper 12
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000407-p1
Retain only the first occurrence for every unique value in column 1, preserving the original sequence.
!seen[$1]++
lina delta 8 gus birch 66 eli cobalt 32 alice birch 13 hana amber 17 alice amber 48 kim birch 30 kim grove 93
lina delta 8 gus birch 66 eli cobalt 32 alice birch 13 hana amber 17 kim birch 30
eli harbor 77 jules juniper 44 gus juniper 28 kim cobalt 92 gus birch 105 alice grove 36 lina harbor 88 lina amber 5 farah juniper 12
eli harbor 77 jules juniper 44 gus juniper 28 kim cobalt 92 alice grove 36 lina harbor 88 farah juniper 12
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000407
qwen/qwen3.7-plus
awkweave-0000408
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
eli 19 ember chen 13 indigo kim 27 ember ivan 5 indigo hana 9 indigo kim 15 indigo eli 24 harbor dina 30 ember jules 10 indigo lina 7 juniper
eli 19 chen 32 kim 59 ivan 64 hana 73 kim 88 eli 112 dina 142 jules 152 lina 159
farah 9 amber hana 7 juniper chen 3 ember ivan 20 ember lina 4 amber bruno 23 delta eli 1 birch lina 5 fable lina 20 harbor chen 24 amber
farah 9 hana 16 chen 19 ivan 39 lina 43 bruno 66 eli 67 lina 72 lina 92 chen 116
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000408-p1
For each record, output column 1 alongside the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
eli 19 ember chen 13 indigo kim 27 ember ivan 5 indigo hana 9 indigo kim 15 indigo eli 24 harbor dina 30 ember jules 10 indigo lina 7 juniper
eli 19 chen 32 kim 59 ivan 64 hana 73 kim 88 eli 112 dina 142 jules 152 lina 159
farah 9 amber hana 7 juniper chen 3 ember ivan 20 ember lina 4 amber bruno 23 delta eli 1 birch lina 5 fable lina 20 harbor chen 24 amber
farah 9 hana 16 chen 19 ivan 39 lina 43 bruno 66 eli 67 lina 72 lina 92 chen 116
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000408
qwen/qwen3.7-plus
awkweave-0000409
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
dina 24 23 birch hana 3 7 indigo ivan 30 4 indigo gus 13 29 grove chen 10 25 grove jules 3 2 indigo kim 3 21 birch dina 24 11 juniper ivan 24 14 indigo chen 20 28 birch
dina 47 hana 10 ivan 34 gus 42 chen 35 jules 5 kim 24 dina 35 ivan 38 chen 48
hana 22 6 amber farah 3 12 birch lina 15 30 delta lina 9 1 fable ivan 27 4 cobalt eli 2 28 indigo dina 18 11 ember
hana 28 farah 15 lina 45 lina 10 ivan 31 eli 30 dina 29
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000409-p1
For each row, print the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
dina 24 23 birch hana 3 7 indigo ivan 30 4 indigo gus 13 29 grove chen 10 25 grove jules 3 2 indigo kim 3 21 birch dina 24 11 juniper ivan 24 14 indigo chen 20 28 birch
dina 47 hana 10 ivan 34 gus 42 chen 35 jules 5 kim 24 dina 35 ivan 38 chen 48
hana 22 6 amber farah 3 12 birch lina 15 30 delta lina 9 1 fable ivan 27 4 cobalt eli 2 28 indigo dina 18 11 ember
hana 28 farah 15 lina 45 lina 10 ivan 31 eli 30 dina 29
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000409
qwen/qwen3.7-plus
awkweave-0000410
Print column 1 and pass when column 2 is at least 20; otherwise print fail.
{print $1,($2>=20?"pass":"fail")}
jules 16 gus 22 farah 26 ivan 30 gus 26 dina 14 bruno 1
jules fail gus pass farah pass ivan pass gus pass dina fail bruno fail
eli 7 ivan 23 chen 10 gus 5 gus 9 kim 30
eli fail ivan pass chen fail gus fail gus fail kim pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000410-p1
Print column 1 along with 'pass' if column 2 is 20 or greater, otherwise print 'fail'.
{print $1,($2>=20?"pass":"fail")}
jules 16 gus 22 farah 26 ivan 30 gus 26 dina 14 bruno 1
jules fail gus pass farah pass ivan pass gus pass dina fail bruno fail
eli 7 ivan 23 chen 10 gus 5 gus 9 kim 30
eli fail ivan pass chen fail gus fail gus fail kim pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000410
qwen/qwen3.7-plus
awkweave-0000411
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
ivan harbor 102 ivan delta 117 bruno ember 50 hana indigo 30 bruno indigo 109 gus birch 87
HARBOR DELTA EMBER INDIGO INDIGO BIRCH
farah amber 62 kim ember 1 alice birch 28 alice harbor 120 chen harbor 15 jules harbor 65 hana ember 42 dina ember 93 alice birch 50 chen grove 85
AMBER EMBER BIRCH HARBOR HARBOR HARBOR EMBER EMBER BIRCH GROVE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000411-p1
Transform the text in column 2 to uppercase and output only that modified column.
{print toupper($2)}
ivan harbor 102 ivan delta 117 bruno ember 50 hana indigo 30 bruno indigo 109 gus birch 87
HARBOR DELTA EMBER INDIGO INDIGO BIRCH
farah amber 62 kim ember 1 alice birch 28 alice harbor 120 chen harbor 15 jules harbor 65 hana ember 42 dina ember 93 alice birch 50 chen grove 85
AMBER EMBER BIRCH HARBOR HARBOR HARBOR EMBER EMBER BIRCH GROVE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000411
qwen/qwen3.7-plus
awkweave-0000412
From column 1, print 2 characters starting at character 2.
{print substr($1,2,2)}
birch 7 cobalt 52 fable 98 harbor 24 indigo 31 harbor 40 fable 57
ir ob ab ar nd ar ab
juniper 41 grove 66 grove 30 birch 54 cobalt 115 delta 75
un ro ro ir ob el
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000412-p1
Extract and output a 2-character substring from the first column, beginning at the second character position.
{print substr($1,2,2)}
birch 7 cobalt 52 fable 98 harbor 24 indigo 31 harbor 40 fable 57
ir ob ab ar nd ar ab
juniper 41 grove 66 grove 30 birch 54 cobalt 115 delta 75
un ro ro ir ob el
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000412
qwen/qwen3.7-plus
awkweave-0000413
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
ember_grove 53 grove_juniper 82 juniper_ember 85 harbor_grove 43 amber_delta 71 juniper_amber 31 amber_delta 63 fable_grove 60
ember grove grove juniper juniper ember harbor grove amber delta juniper amber amber delta fable grove
birch_juniper 96 delta_cobalt 24 amber_cobalt 113 indigo_amber 80 amber_indigo 15 harbor_harbor 4 indigo_cobalt 41 amber_birch 10 cobalt_indigo 112 delta_birch 84
birch juniper delta cobalt amber cobalt indigo amber amber indigo harbor harbor indigo cobalt amber birch cobalt indigo delta birch
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000413-p1
Substitute all underscores in the first column with spaces and display the modified values.
{gsub(/_/," ",$1);print $1}
ember_grove 53 grove_juniper 82 juniper_ember 85 harbor_grove 43 amber_delta 71 juniper_amber 31 amber_delta 63 fable_grove 60
ember grove grove juniper juniper ember harbor grove amber delta juniper amber amber delta fable grove
birch_juniper 96 delta_cobalt 24 amber_cobalt 113 indigo_amber 80 amber_indigo 15 harbor_harbor 4 indigo_cobalt 41 amber_birch 10 cobalt_indigo 112 delta_birch 84
birch juniper delta cobalt amber cobalt indigo amber amber indigo harbor harbor indigo cobalt amber birch cobalt indigo delta birch
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000413
qwen/qwen3.7-plus
awkweave-0000414
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)}
dina birch 77 paused jules indigo 45 paused hana delta 73 active alice birch 15 active bruno ember 115 closed bruno cobalt 108 closed farah harbor 80 ready ivan fable 102 failed hana harbor 51 pending lina juniper 40 closed
paused 77 birch dina paused 45 indigo jules active 73 delta hana active 15 birch alice closed 115 ember bruno closed 108 cobalt bruno ready 80 harbor farah failed 102 fable ivan pending 51 harbor hana closed 40 juniper lina
bruno grove 100 paused hana indigo 78 ready hana delta 83 ready kim harbor 26 active bruno indigo 113 failed dina grove 91 ready alice juniper 56 closed
paused 100 grove bruno ready 78 indigo hana ready 83 delta hana active 26 harbor kim failed 113 indigo bruno ready 91 grove dina closed 56 juniper alice
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000414-p1
Invert the sequence of fields for each line and output every field.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
dina birch 77 paused jules indigo 45 paused hana delta 73 active alice birch 15 active bruno ember 115 closed bruno cobalt 108 closed farah harbor 80 ready ivan fable 102 failed hana harbor 51 pending lina juniper 40 closed
paused 77 birch dina paused 45 indigo jules active 73 delta hana active 15 birch alice closed 115 ember bruno closed 108 cobalt bruno ready 80 harbor farah failed 102 fable ivan pending 51 harbor hana closed 40 juniper lina
bruno grove 100 paused hana indigo 78 ready hana delta 83 ready kim harbor 26 active bruno indigo 113 failed dina grove 91 ready alice juniper 56 closed
paused 100 grove bruno ready 78 indigo hana ready 83 delta hana active 26 harbor kim failed 113 indigo bruno ready 91 grove dina closed 56 juniper alice
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000414
qwen/qwen3.7-plus
awkweave-0000415
Print the number of whitespace-separated fields on each line.
{print NF}
eli delta 69 failed alice cobalt 56 failed kim ember 117 paused bruno fable 49 closed ivan fable 73 active alice harbor 102 ready chen harbor 57 pending
4 4 4 4 4 4 4
lina harbor 41 active chen delta 84 pending eli delta 87 active hana juniper 27 pending jules delta 43 pending farah ember 13 pending kim ember 4 failed dina harbor 117 closed
4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000415-p1
Output the count of whitespace-delimited fields present on each line.
{print NF}
eli delta 69 failed alice cobalt 56 failed kim ember 117 paused bruno fable 49 closed ivan fable 73 active alice harbor 102 ready chen harbor 57 pending
4 4 4 4 4 4 4
lina harbor 41 active chen delta 84 pending eli delta 87 active hana juniper 27 pending jules delta 43 pending farah ember 13 pending kim ember 4 failed dina harbor 117 closed
4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000415
qwen/qwen3.7-plus
awkweave-0000416
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
gus gamma 57 bruno delta 89 chen alpha 60 gus alpha 70 ivan alpha 51 farah beta 37 kim delta 57 eli beta 119 lina delta 42
gamma 1 delta 3 alpha 3 beta 2
lina alpha 18 alice beta 30 lina delta 61 bruno delta 5 lina beta 15 gus gamma 19 chen alpha 66
alpha 2 beta 2 delta 2 gamma 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000416-p1
Tally the records for each unique value in the second column, 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]]}
gus gamma 57 bruno delta 89 chen alpha 60 gus alpha 70 ivan alpha 51 farah beta 37 kim delta 57 eli beta 119 lina delta 42
gamma 1 delta 3 alpha 3 beta 2
lina alpha 18 alice beta 30 lina delta 61 bruno delta 5 lina beta 15 gus gamma 19 chen alpha 66
alpha 2 beta 2 delta 2 gamma 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000416
qwen/qwen3.7-plus
awkweave-0000417
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]]}
alice beta 4 farah beta 17 jules alpha 6 farah beta 15 gus beta 6 dina beta 23 lina beta 15
beta 80 alpha 6
jules beta 25 lina beta 9 hana gamma 13 ivan delta 12 alice alpha 25 hana alpha 18 dina delta 22 farah beta 23
beta 57 gamma 13 delta 34 alpha 43
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000417-p1
Calculate the sum of the third column for each group defined by the second column, displaying the results in the order of the group's 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]]}
alice beta 4 farah beta 17 jules alpha 6 farah beta 15 gus beta 6 dina beta 23 lina beta 15
beta 80 alpha 6
jules beta 25 lina beta 9 hana gamma 13 ivan delta 12 alice alpha 25 hana alpha 18 dina delta 22 farah beta 23
beta 57 gamma 13 delta 34 alpha 43
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000417
qwen/qwen3.7-plus
awkweave-0000418
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 ember 23 alpha fable 23 alpha juniper 7 gamma delta 32 gamma ember 23 beta amber 84 delta juniper 52
gamma 3 alpha 2
beta ember 85 alpha cobalt 82 alpha fable 8 alpha ember 102 alpha birch 0 gamma amber 89 beta birch 76 beta cobalt 113 beta birch 3
beta 4 alpha 4
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000418-p1
List each duplicate value from the first column along with its occurrence count, sorted by the order of 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 ember 23 alpha fable 23 alpha juniper 7 gamma delta 32 gamma ember 23 beta amber 84 delta juniper 52
gamma 3 alpha 2
beta ember 85 alpha cobalt 82 alpha fable 8 alpha ember 102 alpha birch 0 gamma amber 89 beta birch 76 beta cobalt 113 beta birch 3
beta 4 alpha 4
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000418
qwen/qwen3.7-plus
awkweave-0000419
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"]}
region record_id score display_name r001 dina 27 closed r002 gus 24 failed r003 alice 22 paused r004 alice 18 active r005 dina 21 pending r006 ivan 30 paused r007 gus 8 closed r008 alice 27 paused
dina gus alice alice dina ivan gus alice
region record_id score display_name r001 eli 22 failed r002 jules 21 failed r003 lina 13 active r004 alice 8 paused r005 bruno 23 active r006 eli 30 closed r007 hana 23 pending r008 alice 3 closed r009 gus 19 pending
eli jules lina alice bruno eli hana alice gus
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000419-p1
Treating the first row as a header, output the values from the record_id column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
region record_id score display_name r001 dina 27 closed r002 gus 24 failed r003 alice 22 paused r004 alice 18 active r005 dina 21 pending r006 ivan 30 paused r007 gus 8 closed r008 alice 27 paused
dina gus alice alice dina ivan gus alice
region record_id score display_name r001 eli 22 failed r002 jules 21 failed r003 lina 13 active r004 alice 8 paused r005 bruno 23 active r006 eli 30 closed r007 hana 23 pending r008 alice 3 closed r009 gus 19 pending
eli jules lina alice bruno eli hana alice gus
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000419
qwen/qwen3.7-plus
awkweave-0000420
The first row is a header. Print display_name for data rows whose score is greater than 19.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>19{print $h["display_name"]}
record_id display_name score state r001 dina 6 closed r002 alice 18 closed r003 farah 1 active r004 dina 28 failed r005 jules 3 ready r006 jules 14 paused r007 kim 12 closed
dina
record_id display_name score state r001 chen 15 failed r002 kim 25 active r003 chen 19 closed r004 dina 6 closed r005 alice 19 pending r006 jules 25 closed r007 gus 4 failed r008 ivan 26 failed r009 lina 29 failed
kim jules ivan lina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000420-p1
With the first row as a header, print the display_name for data rows where the score is strictly greater than 19.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>19{print $h["display_name"]}
record_id display_name score state r001 dina 6 closed r002 alice 18 closed r003 farah 1 active r004 dina 28 failed r005 jules 3 ready r006 jules 14 paused r007 kim 12 closed
dina
record_id display_name score state r001 chen 15 failed r002 kim 25 active r003 chen 19 closed r004 dina 6 closed r005 alice 19 pending r006 jules 25 closed r007 gus 4 failed r008 ivan 26 failed r009 lina 29 failed
kim jules ivan lina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000420
qwen/qwen3.7-plus
awkweave-0000421
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
alice 14 closed hana 15 failed eli 20 paused eli 18 paused hana 12 pending gus 21 pending bruno 22 pending hana 14 closed kim 2 paused ivan 15 failed
closed failed paused paused pending pending pending closed paused failed
alice 29 active eli 11 paused jules 18 pending gus 3 paused chen 25 closed farah 28 active chen 2 paused hana 1 failed gus 16 paused bruno 28 paused
active paused pending paused closed active paused failed paused paused
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000421-p1
Given tab-separated input, extract and print the third column from every record.
BEGIN{FS=OFS="\t"}{print $3}
alice 14 closed hana 15 failed eli 20 paused eli 18 paused hana 12 pending gus 21 pending bruno 22 pending hana 14 closed kim 2 paused ivan 15 failed
closed failed paused paused pending pending pending closed paused failed
alice 29 active eli 11 paused jules 18 pending gus 3 paused chen 25 closed farah 28 active chen 2 paused hana 1 failed gus 16 paused bruno 28 paused
active paused pending paused closed active paused failed paused paused
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000421
qwen/qwen3.7-plus
awkweave-0000422
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 20.
BEGIN{FS=OFS=","}$2>20{print $1}
gus,2,closed gus,24,failed ivan,24,active bruno,28,failed lina,6,failed jules,6,closed
gus ivan bruno
ivan,4,closed alice,5,failed farah,20,pending bruno,30,ready kim,5,ready gus,7,ready jules,14,active eli,25,ready hana,4,active kim,20,active
bruno eli
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000422-p1
For simple comma-separated input without quoted commas, print the first column only when the second column's value is greater than 20.
BEGIN{FS=OFS=","}$2>20{print $1}
gus,2,closed gus,24,failed ivan,24,active bruno,28,failed lina,6,failed jules,6,closed
gus ivan bruno
ivan,4,closed alice,5,failed farah,20,pending bruno,30,ready kim,5,ready gus,7,ready jules,14,active eli,25,ready hana,4,active kim,20,active
bruno eli
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000422
qwen/qwen3.7-plus
awkweave-0000423
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
ivan fable 11 chen birch 3 alice grove 72 jules indigo 87 kim cobalt 11 kim birch 30 dina cobalt 47
ivan fable 11 chen birch 3 alice grove 72 jules indigo 87 kim cobalt 11 kim birch 30 dina cobalt 47
dina birch 81 gus amber 2 alice ember 26 farah delta 44 chen grove 78 bruno birch 79 jules grove 56
dina birch 81 gus amber 2 alice ember 26 farah delta 44 chen grove 78 bruno birch 79 jules grove 56
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000423-p1
Remove leading and trailing whitespace and replace any internal sequences of whitespace with a single space.
{$1=$1;print}
ivan fable 11 chen birch 3 alice grove 72 jules indigo 87 kim cobalt 11 kim birch 30 dina cobalt 47
ivan fable 11 chen birch 3 alice grove 72 jules indigo 87 kim cobalt 11 kim birch 30 dina cobalt 47
dina birch 81 gus amber 2 alice ember 26 farah delta 44 chen grove 78 bruno birch 79 jules grove 56
dina birch 81 gus amber 2 alice ember 26 farah delta 44 chen grove 78 bruno birch 79 jules grove 56
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000423
qwen/qwen3.7-plus
awkweave-0000424
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
eli fable 97 failed bruno birch 59 failed gus juniper 54 paused alice juniper 102 paused hana indigo 80 active dina delta 119 failed eli birch 118 failed
alice juniper 102 paused
hana cobalt 66 pending dina harbor 2 pending ivan birch 7 failed eli cobalt 79 pending alice amber 118 pending dina grove 2 active farah grove 62 ready gus birch 103 active
alice amber 118 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000424-p1
Output the longest line from the input; if multiple lines share the maximum length, select the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
eli fable 97 failed bruno birch 59 failed gus juniper 54 paused alice juniper 102 paused hana indigo 80 active dina delta 119 failed eli birch 118 failed
alice juniper 102 paused
hana cobalt 66 pending dina harbor 2 pending ivan birch 7 failed eli cobalt 79 pending alice amber 118 pending dina grove 2 active farah grove 62 ready gus birch 103 active
alice amber 118 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000424
qwen/qwen3.7-plus
awkweave-0000425
Print every 4th line starting at line 4 (then line 8, and so on).
NR%4==0
jules 31 chen 27 dina 61 ivan 119 bruno 76 dina 66 dina 61 chen 98 jules 92 kim 34
ivan 119 chen 98
hana 69 gus 109 eli 24 ivan 42 hana 76 chen 103 bruno 41
ivan 42
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000425-p1
Display every fourth line of the input, beginning with line 4 (i.e., lines 4, 8, 12, etc.).
NR%4==0
jules 31 chen 27 dina 61 ivan 119 bruno 76 dina 66 dina 61 chen 98 jules 92 kim 34
ivan 119 chen 98
hana 69 gus 109 eli 24 ivan 42 hana 76 chen 103 bruno 41
ivan 42
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000425
qwen/qwen3.7-plus
awkweave-0000426
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
gamma grove 100 delta harbor 35 alpha grove 10 gamma amber 90 delta delta 101 delta delta 99
3
gamma harbor 76 gamma amber 80 beta delta 120 alpha birch 79 delta harbor 32 gamma cobalt 30 alpha grove 62 alpha juniper 23 gamma fable 60 alpha cobalt 105
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000426-p1
Calculate the number of unique values in the first column and output only that total count.
{if(!seen[$1]++)n++}END{print n+0}
gamma grove 100 delta harbor 35 alpha grove 10 gamma amber 90 delta delta 101 delta delta 99
3
gamma harbor 76 gamma amber 80 beta delta 120 alpha birch 79 delta harbor 32 gamma cobalt 30 alpha grove 62 alpha juniper 23 gamma fable 60 alpha cobalt 105
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000426
qwen/qwen3.7-plus
awkweave-0000427
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 15 0 farah 26 3 kim 20 16 eli 2 26 farah 4 29 hana 29 8 ivan 2 26
farah 8.67 kim 1.25 eli 0.08 farah 0.14 hana 3.62 ivan 0.08
dina 13 0 lina 21 26 alice 1 16 hana 18 24 chen 2 13 jules 23 25
lina 0.81 alice 0.06 hana 0.75 chen 0.15 jules 0.92
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000427-p1
For each row where the third column is not zero, output the first column and the result of dividing the second column by the third column, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
jules 15 0 farah 26 3 kim 20 16 eli 2 26 farah 4 29 hana 29 8 ivan 2 26
farah 8.67 kim 1.25 eli 0.08 farah 0.14 hana 3.62 ivan 0.08
dina 13 0 lina 21 26 alice 1 16 hana 18 24 chen 2 13 jules 23 25
lina 0.81 alice 0.06 hana 0.75 chen 0.15 jules 0.92
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000427
qwen/qwen3.7-plus
awkweave-0000428
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
dina delta 6 kim delta 27 ivan delta 19 bruno cobalt 20 alice ember 5 chen ember 5
kim delta 27 bruno cobalt 20 ivan delta 19
gus grove 6 bruno cobalt 6 gus ember 2 alice delta 19 lina birch 7 lina grove 3 farah fable 28 chen delta 20
farah fable 28 chen delta 20 alice delta 19
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000428-p1
Output the three full records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
dina delta 6 kim delta 27 ivan delta 19 bruno cobalt 20 alice ember 5 chen ember 5
kim delta 27 bruno cobalt 20 ivan delta 19
gus grove 6 bruno cobalt 6 gus ember 2 alice delta 19 lina birch 7 lina grove 3 farah fable 28 chen delta 20
farah fable 28 chen delta 20 alice delta 19
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000428
qwen/qwen3.7-plus
awkweave-0000429
Print column 3 followed by column 2 for every record.
{print $3, $2}
116 paused hana bruno 113 paused ivan dina 4 failed gus dina 40 ready lina lina 31 ready dina dina 119 active farah eli
hana paused ivan paused gus failed lina ready dina ready farah active
2 active alice farah 116 closed chen jules 44 active gus hana 40 paused gus alice 63 closed lina farah 61 paused farah dina 119 paused chen ivan 79 pending lina kim 88 ready ivan dina 11 ready farah ivan
alice active chen closed gus active gus paused lina closed farah paused chen paused lina pending ivan ready farah ready
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000429-p1
Output column 3 followed by column 2 for every record in the input.
{print $3, $2}
116 paused hana bruno 113 paused ivan dina 4 failed gus dina 40 ready lina lina 31 ready dina dina 119 active farah eli
hana paused ivan paused gus failed lina ready dina ready farah active
2 active alice farah 116 closed chen jules 44 active gus hana 40 paused gus alice 63 closed lina farah 61 paused farah dina 119 paused chen ivan 79 pending lina kim 88 ready ivan dina 11 ready farah ivan
alice active chen closed gus active gus paused lina closed farah paused chen paused lina pending ivan ready farah ready
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000429
qwen/qwen3.7-plus
awkweave-0000430
Print the last field of every input line.
{print $NF}
88 eli 22 30 kim 82 56 farah 25 6 gus 108 80 chen 54 110 farah 67 6 hana 43
22 82 25 108 54 67 43
27 bruno 115 39 lina 89 44 eli 88 54 hana 111 75 bruno 109 97 hana 76 15 ivan 49 55 kim 90 24 jules 93 119 farah 46
115 89 88 111 109 76 49 90 93 46
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000430-p1
Print the last field of each input line.
{print $NF}
88 eli 22 30 kim 82 56 farah 25 6 gus 108 80 chen 54 110 farah 67 6 hana 43
22 82 25 108 54 67 43
27 bruno 115 39 lina 89 44 eli 88 54 hana 111 75 bruno 109 97 hana 76 15 ivan 49 55 kim 90 24 jules 93 119 farah 46
115 89 88 111 109 76 49 90 93 46
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000430
qwen/qwen3.7-plus
awkweave-0000431
Print the complete records where column 1 is less than 28.
$1 < 28
88 kim eli 48 chen ivan 72 lina gus 28 farah hana 5 gus farah 35 dina kim
5 gus farah
50 chen hana 34 kim alice 31 eli gus 82 jules farah 111 kim kim 82 hana eli 86 eli ivan 64 chen bruno
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000431-p1
Output the full records for which the value in column 1 is strictly less than 28.
$1 < 28
88 kim eli 48 chen ivan 72 lina gus 28 farah hana 5 gus farah 35 dina kim
5 gus farah
50 chen hana 34 kim alice 31 eli gus 82 jules farah 111 kim kim 82 hana eli 86 eli ivan 64 chen bruno
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000431
qwen/qwen3.7-plus
awkweave-0000432
Show whole lines whose 2nd field is between 5 and 26, inclusive.
$2 >= 5 && $2 <= 26
amber 20 dina fable amber 20 lina harbor fable 5 chen cobalt fable 15 alice harbor cobalt 28 hana birch ember 21 lina fable grove 24 hana ember grove 6 lina juniper harbor 15 chen delta amber 10 dina cobalt
amber 20 dina fable amber 20 lina harbor fable 5 chen cobalt fable 15 alice harbor ember 21 lina fable grove 24 hana ember grove 6 lina juniper harbor 15 chen delta amber 10 dina cobalt
cobalt 22 kim birch amber 7 chen cobalt birch 16 farah amber amber 3 kim indigo birch 30 farah birch birch 23 ivan harbor indigo 18 farah ember indigo 1 bruno juniper delta 11 chen birch grove 13 bruno juniper
cobalt 22 kim birch amber 7 chen cobalt birch 16 farah amber birch 23 ivan harbor indigo 18 farah ember delta 11 chen birch grove 13 bruno juniper
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000432-p1
Display entire lines where the second field falls within the range of 5 to 26, inclusive.
$2 >= 5 && $2 <= 26
amber 20 dina fable amber 20 lina harbor fable 5 chen cobalt fable 15 alice harbor cobalt 28 hana birch ember 21 lina fable grove 24 hana ember grove 6 lina juniper harbor 15 chen delta amber 10 dina cobalt
amber 20 dina fable amber 20 lina harbor fable 5 chen cobalt fable 15 alice harbor ember 21 lina fable grove 24 hana ember grove 6 lina juniper harbor 15 chen delta amber 10 dina cobalt
cobalt 22 kim birch amber 7 chen cobalt birch 16 farah amber amber 3 kim indigo birch 30 farah birch birch 23 ivan harbor indigo 18 farah ember indigo 1 bruno juniper delta 11 chen birch grove 13 bruno juniper
cobalt 22 kim birch amber 7 chen cobalt birch 16 farah amber birch 23 ivan harbor indigo 18 farah ember delta 11 chen birch grove 13 bruno juniper
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000432
qwen/qwen3.7-plus
awkweave-0000433
Print column 3 only for rows where column 2 is exactly failed.
$2 == "failed"{print $3}
juniper closed ivan 5 birch failed gus 54 birch active ivan 61 harbor paused ivan 66 ember active bruno 60 juniper active farah 12 indigo closed kim 18 birch failed ivan 76 juniper failed dina 89 harbor active bruno 94
gus ivan dina
grove paused hana 39 birch pending ivan 48 harbor active lina 81 juniper paused gus 22 harbor ready farah 1 delta paused eli 90
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000433-p1
Output only the third column for rows where the second column is exactly the string failed.
$2 == "failed"{print $3}
juniper closed ivan 5 birch failed gus 54 birch active ivan 61 harbor paused ivan 66 ember active bruno 60 juniper active farah 12 indigo closed kim 18 birch failed ivan 76 juniper failed dina 89 harbor active bruno 94
gus ivan dina
grove paused hana 39 birch pending ivan 48 harbor active lina 81 juniper paused gus 22 harbor ready farah 1 delta paused eli 90
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000433
qwen/qwen3.7-plus
awkweave-0000434
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
birch ERROR 52 fable WARN 62 juniper ERROR 73 juniper WARN 106 birch WARN 27 ember ERROR 114 indigo INFO 68
birch ERROR 52 juniper ERROR 73 ember ERROR 114
amber WARN 69 delta INFO 115 harbor DEBUG 64 harbor INFO 46 fable INFO 83 harbor WARN 34 amber DEBUG 56 ember INFO 116 amber DEBUG 68
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000434-p1
Print all fields from any line where the second field starts with the prefix ERROR.
$2 ~ /^ERROR/
birch ERROR 52 fable WARN 62 juniper ERROR 73 juniper WARN 106 birch WARN 27 ember ERROR 114 indigo INFO 68
birch ERROR 52 juniper ERROR 73 ember ERROR 114
amber WARN 69 delta INFO 115 harbor DEBUG 64 harbor INFO 46 fable INFO 83 harbor WARN 34 amber DEBUG 56 ember INFO 116 amber DEBUG 68
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000434
qwen/qwen3.7-plus
awkweave-0000435
Print every line except those containing the exact text birch.
$0 !~ /birch/
ember 72 paused grove 51 failed fable 37 closed grove 61 ready indigo 20 active juniper 36 failed birch 999 active
ember 72 paused grove 51 failed fable 37 closed grove 61 ready indigo 20 active juniper 36 failed
birch 15 ready fable 104 closed juniper 0 paused grove 119 paused indigo 77 closed juniper 29 failed indigo 110 failed delta 96 closed fable 27 pending birch 999 active
fable 104 closed juniper 0 paused grove 119 paused indigo 77 closed juniper 29 failed indigo 110 failed delta 96 closed fable 27 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000435-p1
Output every line from the input except those that contain the exact string birch.
$0 !~ /birch/
ember 72 paused grove 51 failed fable 37 closed grove 61 ready indigo 20 active juniper 36 failed birch 999 active
ember 72 paused grove 51 failed fable 37 closed grove 61 ready indigo 20 active juniper 36 failed
birch 15 ready fable 104 closed juniper 0 paused grove 119 paused indigo 77 closed juniper 29 failed indigo 110 failed delta 96 closed fable 27 pending birch 999 active
fable 104 closed juniper 0 paused grove 119 paused indigo 77 closed juniper 29 failed indigo 110 failed delta 96 closed fable 27 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000435
qwen/qwen3.7-plus
awkweave-0000436
Print lines 3 through 6, including both endpoints.
NR >= 3 && NR <= 6
eli birch 75 dina fable 25 ivan birch 37 gus delta 61 kim cobalt 53 dina grove 73
ivan birch 37 gus delta 61 kim cobalt 53 dina grove 73
kim ember 113 alice delta 12 hana birch 72 bruno fable 113 eli ember 34 farah grove 80 ivan cobalt 120
hana birch 72 bruno fable 113 eli ember 34 farah grove 80
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000436-p1
Display lines 3 to 6, inclusive of both ends.
NR >= 3 && NR <= 6
eli birch 75 dina fable 25 ivan birch 37 gus delta 61 kim cobalt 53 dina grove 73
ivan birch 37 gus delta 61 kim cobalt 53 dina grove 73
kim ember 113 alice delta 12 hana birch 72 bruno fable 113 eli ember 34 farah grove 80 ivan cobalt 120
hana birch 72 bruno fable 113 eli ember 34 farah grove 80
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000436
qwen/qwen3.7-plus
awkweave-0000437
Output only the first 5 records.
NR <= 5
bruno 14 delta jules 49 birch bruno 5 harbor alice 43 delta alice 55 indigo lina 47 juniper bruno 14 cobalt gus 58 harbor
bruno 14 delta jules 49 birch bruno 5 harbor alice 43 delta alice 55 indigo
jules 65 harbor kim 79 cobalt eli 94 birch alice 105 amber eli 38 delta lina 89 ember farah 45 juniper gus 14 amber bruno 19 indigo chen 15 cobalt
jules 65 harbor kim 79 cobalt eli 94 birch alice 105 amber eli 38 delta
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000437-p1
Output just the initial 5 records.
NR <= 5
bruno 14 delta jules 49 birch bruno 5 harbor alice 43 delta alice 55 indigo lina 47 juniper bruno 14 cobalt gus 58 harbor
bruno 14 delta jules 49 birch bruno 5 harbor alice 43 delta alice 55 indigo
jules 65 harbor kim 79 cobalt eli 94 birch alice 105 amber eli 38 delta lina 89 ember farah 45 juniper gus 14 amber bruno 19 indigo chen 15 cobalt
jules 65 harbor kim 79 cobalt eli 94 birch alice 105 amber eli 38 delta
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000437
qwen/qwen3.7-plus
awkweave-0000438
Skip the first line and print every remaining line unchanged.
NR > 1
eli 15 grove lina 118 ember lina 97 ember bruno 86 indigo bruno 115 amber eli 86 birch bruno 91 grove chen 111 ember
lina 118 ember lina 97 ember bruno 86 indigo bruno 115 amber eli 86 birch bruno 91 grove chen 111 ember
farah 71 delta hana 42 indigo dina 71 indigo alice 76 ember bruno 120 ember jules 28 fable ivan 29 amber chen 77 birch ivan 85 grove eli 44 ember
hana 42 indigo dina 71 indigo alice 76 ember bruno 120 ember jules 28 fable ivan 29 amber chen 77 birch ivan 85 grove eli 44 ember
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000438-p1
Omit the first line and output all subsequent lines as they are.
NR > 1
eli 15 grove lina 118 ember lina 97 ember bruno 86 indigo bruno 115 amber eli 86 birch bruno 91 grove chen 111 ember
lina 118 ember lina 97 ember bruno 86 indigo bruno 115 amber eli 86 birch bruno 91 grove chen 111 ember
farah 71 delta hana 42 indigo dina 71 indigo alice 76 ember bruno 120 ember jules 28 fable ivan 29 amber chen 77 birch ivan 85 grove eli 44 ember
hana 42 indigo dina 71 indigo alice 76 ember bruno 120 ember jules 28 fable ivan 29 amber chen 77 birch ivan 85 grove eli 44 ember
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000438
qwen/qwen3.7-plus
awkweave-0000439
Count how many records have paused in column 2. Print 0 if there are none.
$2 == "paused"{n++}END{print n+0}
gus ready 11 hana pending 94 chen ready 46 kim paused 58 eli closed 64 eli paused 11 farah paused 91 bruno pending 42 jules pending 15
3
lina active 118 bruno pending 93 gus failed 99 lina pending 114 gus ready 119 ivan paused 86 bruno failed 76
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000439-p1
Tally the records where column 2 is 'paused'; output 0 if the count is zero.
$2 == "paused"{n++}END{print n+0}
gus ready 11 hana pending 94 chen ready 46 kim paused 58 eli closed 64 eli paused 11 farah paused 91 bruno pending 42 jules pending 15
3
lina active 118 bruno pending 93 gus failed 99 lina pending 114 gus ready 119 ivan paused 86 bruno failed 76
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000439
qwen/qwen3.7-plus