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-0042381-p1
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]]}
hana delta 21 alice gamma 7 alice gamma 27 alice delta 18 alice beta 25 jules delta 12 alice delta 2 jules gamma 15
delta 53 gamma 49 beta 25
dina alpha 20 gus alpha 3 eli delta 19 farah gamma 2 eli beta 24 bruno alpha 19 farah delta 28
alpha 42 delta 47 gamma 2 beta 24
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0042381
qwen/qwen3.7-plus
awkweave-0042382
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 harbor 105 gamma birch 17 alpha delta 57 gamma indigo 16 alpha fable 104 alpha indigo 16 beta harbor 65
gamma 3 alpha 3
beta grove 111 delta cobalt 16 alpha cobalt 51 beta fable 62 delta fable 79 alpha indigo 15
beta 2 delta 2 alpha 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042382-p1
List duplicate values from column 1 alongside their occurrence counts, sorted by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma harbor 105 gamma birch 17 alpha delta 57 gamma indigo 16 alpha fable 104 alpha indigo 16 beta harbor 65
gamma 3 alpha 3
beta grove 111 delta cobalt 16 alpha cobalt 51 beta fable 62 delta fable 79 alpha indigo 15
beta 2 delta 2 alpha 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042382
qwen/qwen3.7-plus
awkweave-0042383
The first row is a header. Print the display_name column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
region score note display_name r001 jules 19 ready r002 chen 27 ready r003 lina 1 pending r004 bruno 25 pending r005 gus 18 ready r006 lina 27 paused r007 chen 8 paused
ready ready pending pending ready paused paused
region score note display_name r001 hana 23 failed r002 gus 29 paused r003 kim 8 closed r004 dina 6 closed r005 lina 9 closed r006 jules 3 paused r007 alice 9 failed r008 eli 1 failed r009 eli 20 failed
failed paused closed closed closed paused failed failed failed
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042383-p1
Treating the first row as a header, output the display_name column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
region score note display_name r001 jules 19 ready r002 chen 27 ready r003 lina 1 pending r004 bruno 25 pending r005 gus 18 ready r006 lina 27 paused r007 chen 8 paused
ready ready pending pending ready paused paused
region score note display_name r001 hana 23 failed r002 gus 29 paused r003 kim 8 closed r004 dina 6 closed r005 lina 9 closed r006 jules 3 paused r007 alice 9 failed r008 eli 1 failed r009 eli 20 failed
failed paused closed closed closed paused failed failed failed
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042383
qwen/qwen3.7-plus
awkweave-0042384
The first row is a header. Print display_name for data rows whose score is greater than 14.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>14{print $h["display_name"]}
record_id display_name score state r001 chen 26 active r002 dina 1 ready r003 chen 18 active r004 dina 20 ready r005 dina 12 failed r006 alice 13 closed
chen chen dina
record_id display_name score state r001 kim 8 active r002 kim 6 closed r003 alice 12 closed r004 kim 5 ready r005 eli 14 pending r006 lina 1 ready
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042384-p1
With the first row as a header, output the display_name for data rows where the score is above 14.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>14{print $h["display_name"]}
record_id display_name score state r001 chen 26 active r002 dina 1 ready r003 chen 18 active r004 dina 20 ready r005 dina 12 failed r006 alice 13 closed
chen chen dina
record_id display_name score state r001 kim 8 active r002 kim 6 closed r003 alice 12 closed r004 kim 5 ready r005 eli 14 pending r006 lina 1 ready
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042384
qwen/qwen3.7-plus
awkweave-0042385
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
ivan 22 closed alice 26 failed bruno 26 failed farah 7 closed eli 14 pending ivan 9 paused hana 25 paused
closed failed failed closed pending paused paused
lina 28 active chen 24 pending dina 25 closed hana 24 failed jules 25 paused ivan 13 paused lina 16 active chen 7 failed ivan 10 ready
active pending closed failed paused paused active failed ready
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042385-p1
Given tab-separated input, extract and print the third column from every record.
BEGIN{FS=OFS="\t"}{print $3}
ivan 22 closed alice 26 failed bruno 26 failed farah 7 closed eli 14 pending ivan 9 paused hana 25 paused
closed failed failed closed pending paused paused
lina 28 active chen 24 pending dina 25 closed hana 24 failed jules 25 paused ivan 13 paused lina 16 active chen 7 failed ivan 10 ready
active pending closed failed paused paused active failed ready
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042385
qwen/qwen3.7-plus
awkweave-0042386
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}
alice,25,failed lina,18,failed jules,8,pending dina,24,ready dina,10,failed hana,10,paused hana,8,closed eli,10,paused bruno,23,closed
alice dina bruno
eli,14,failed bruno,17,pending bruno,9,closed bruno,11,pending chen,3,closed lina,13,active hana,14,active
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042386-p1
For simple comma-separated input without quoted commas, print the first column if the second column is greater than 20.
BEGIN{FS=OFS=","}$2>20{print $1}
alice,25,failed lina,18,failed jules,8,pending dina,24,ready dina,10,failed hana,10,paused hana,8,closed eli,10,paused bruno,23,closed
alice dina bruno
eli,14,failed bruno,17,pending bruno,9,closed bruno,11,pending chen,3,closed lina,13,active hana,14,active
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042386
qwen/qwen3.7-plus
awkweave-0042387
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
hana birch 46 eli grove 91 hana grove 69 bruno birch 22 alice birch 99 hana harbor 15 kim juniper 88 jules delta 112 dina delta 107
hana birch 46 eli grove 91 hana grove 69 bruno birch 22 alice birch 99 hana harbor 15 kim juniper 88 jules delta 112 dina delta 107
farah birch 37 jules fable 28 farah cobalt 91 alice juniper 56 bruno grove 59 kim ember 81 gus cobalt 44
farah birch 37 jules fable 28 farah cobalt 91 alice juniper 56 bruno grove 59 kim ember 81 gus cobalt 44
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042387-p1
Remove leading and trailing whitespace and reduce internal whitespace runs to single spaces.
{$1=$1;print}
hana birch 46 eli grove 91 hana grove 69 bruno birch 22 alice birch 99 hana harbor 15 kim juniper 88 jules delta 112 dina delta 107
hana birch 46 eli grove 91 hana grove 69 bruno birch 22 alice birch 99 hana harbor 15 kim juniper 88 jules delta 112 dina delta 107
farah birch 37 jules fable 28 farah cobalt 91 alice juniper 56 bruno grove 59 kim ember 81 gus cobalt 44
farah birch 37 jules fable 28 farah cobalt 91 alice juniper 56 bruno grove 59 kim ember 81 gus cobalt 44
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042387
qwen/qwen3.7-plus
awkweave-0042388
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah cobalt 116 paused jules birch 43 pending bruno juniper 12 ready lina indigo 16 paused farah indigo 94 pending dina indigo 111 ready eli fable 21 ready gus grove 92 failed hana grove 47 active
farah cobalt 116 paused
chen birch 81 failed gus juniper 120 failed gus ember 25 pending chen juniper 97 closed alice fable 49 active lina harbor 68 pending bruno amber 57 active kim juniper 48 ready hana harbor 17 closed
gus juniper 120 failed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042388-p1
Identify and print the longest input line, selecting the earliest one in case of a tie.
{if(length($0)>length(best))best=$0}END{print best}
farah cobalt 116 paused jules birch 43 pending bruno juniper 12 ready lina indigo 16 paused farah indigo 94 pending dina indigo 111 ready eli fable 21 ready gus grove 92 failed hana grove 47 active
farah cobalt 116 paused
chen birch 81 failed gus juniper 120 failed gus ember 25 pending chen juniper 97 closed alice fable 49 active lina harbor 68 pending bruno amber 57 active kim juniper 48 ready hana harbor 17 closed
gus juniper 120 failed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042388
qwen/qwen3.7-plus
awkweave-0042389
Print every 4th line starting at line 3 (then line 7, and so on).
NR%4==3
lina 74 eli 114 farah 69 farah 32 farah 64 gus 70 alice 101 chen 120
farah 69 alice 101
farah 69 lina 20 kim 103 bruno 64 farah 48 farah 5
kim 103
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042389-p1
Print every 4th line beginning with line 3 (i.e., lines 3, 7, etc.).
NR%4==3
lina 74 eli 114 farah 69 farah 32 farah 64 gus 70 alice 101 chen 120
farah 69 alice 101
farah 69 lina 20 kim 103 bruno 64 farah 48 farah 5
kim 103
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042389
qwen/qwen3.7-plus
awkweave-0042400
Print lines 3 through 6, including both endpoints.
NR >= 3 && NR <= 6
gus amber 59 alice grove 7 lina amber 115 bruno harbor 79 bruno juniper 89 lina amber 102 dina amber 37 lina grove 50
lina amber 115 bruno harbor 79 bruno juniper 89 lina amber 102
chen juniper 61 hana harbor 37 eli birch 101 jules birch 88 farah delta 79 hana birch 104 farah indigo 58 jules juniper 44
eli birch 101 jules birch 88 farah delta 79 hana birch 104
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042400-p1
Display lines 3 to 6, inclusive.
NR >= 3 && NR <= 6
gus amber 59 alice grove 7 lina amber 115 bruno harbor 79 bruno juniper 89 lina amber 102 dina amber 37 lina grove 50
lina amber 115 bruno harbor 79 bruno juniper 89 lina amber 102
chen juniper 61 hana harbor 37 eli birch 101 jules birch 88 farah delta 79 hana birch 104 farah indigo 58 jules juniper 44
eli birch 101 jules birch 88 farah delta 79 hana birch 104
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042400
qwen/qwen3.7-plus
awkweave-0042401
Output only the first 2 records.
NR <= 2
ivan 87 amber chen 1 amber lina 81 indigo hana 80 grove chen 67 ember kim 14 ember bruno 15 grove jules 19 fable dina 109 ember kim 80 delta
ivan 87 amber chen 1 amber
eli 85 cobalt gus 102 fable ivan 2 birch kim 106 harbor lina 17 grove dina 66 grove hana 12 ember
eli 85 cobalt gus 102 fable
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042401-p1
Output just the initial 2 records.
NR <= 2
ivan 87 amber chen 1 amber lina 81 indigo hana 80 grove chen 67 ember kim 14 ember bruno 15 grove jules 19 fable dina 109 ember kim 80 delta
ivan 87 amber chen 1 amber
eli 85 cobalt gus 102 fable ivan 2 birch kim 106 harbor lina 17 grove dina 66 grove hana 12 ember
eli 85 cobalt gus 102 fable
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042401
qwen/qwen3.7-plus
awkweave-0042402
Skip the first line and print every remaining line unchanged.
NR > 1
bruno 45 cobalt kim 94 fable kim 57 cobalt alice 83 fable chen 62 cobalt alice 11 delta eli 119 birch farah 41 birch
kim 94 fable kim 57 cobalt alice 83 fable chen 62 cobalt alice 11 delta eli 119 birch farah 41 birch
bruno 101 ember lina 79 harbor farah 98 amber jules 89 indigo gus 49 indigo ivan 98 birch hana 97 fable lina 85 harbor
lina 79 harbor farah 98 amber jules 89 indigo gus 49 indigo ivan 98 birch hana 97 fable lina 85 harbor
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042402-p1
Omit the first line and output all subsequent lines as they are.
NR > 1
bruno 45 cobalt kim 94 fable kim 57 cobalt alice 83 fable chen 62 cobalt alice 11 delta eli 119 birch farah 41 birch
kim 94 fable kim 57 cobalt alice 83 fable chen 62 cobalt alice 11 delta eli 119 birch farah 41 birch
bruno 101 ember lina 79 harbor farah 98 amber jules 89 indigo gus 49 indigo ivan 98 birch hana 97 fable lina 85 harbor
lina 79 harbor farah 98 amber jules 89 indigo gus 49 indigo ivan 98 birch hana 97 fable lina 85 harbor
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042402
qwen/qwen3.7-plus
awkweave-0042403
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
ivan closed 94 kim pending 93 lina ready 75 jules pending 66 bruno ready 41 eli active 71 kim closed 30 hana paused 78 alice pending 19 bruno failed 24
1
ivan ready 45 kim pending 49 gus ready 89 jules ready 118 gus failed 102 chen ready 96 eli closed 53 alice failed 83
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042403-p1
Tally the number of records with 'failed' in column 2; output 0 if the count is zero.
$2 == "failed"{n++}END{print n+0}
ivan closed 94 kim pending 93 lina ready 75 jules pending 66 bruno ready 41 eli active 71 kim closed 30 hana paused 78 alice pending 19 bruno failed 24
1
ivan ready 45 kim pending 49 gus ready 89 jules ready 118 gus failed 102 chen ready 96 eli closed 53 alice failed 83
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042403
qwen/qwen3.7-plus
awkweave-0042404
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
cobalt jules 16 amber farah 29 birch eli 7 juniper eli 9 birch alice 19 juniper gus 9 juniper eli 16 grove kim 23
128
indigo gus 19 fable kim 28 fable bruno 18 ember hana 8 delta eli 11 grove chen 26 grove jules 26 fable hana 5
141
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042404-p1
Compute and display the total sum of integer values found in column 3.
{s+=$3}END{print s+0}
cobalt jules 16 amber farah 29 birch eli 7 juniper eli 9 birch alice 19 juniper gus 9 juniper eli 16 grove kim 23
128
indigo gus 19 fable kim 28 fable bruno 18 ember hana 8 delta eli 11 grove chen 26 grove jules 26 fable hana 5
141
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042404
qwen/qwen3.7-plus
awkweave-0042405
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
gus 11 fable jules 10 fable jules 24 ember hana 1 birch alice 1 grove farah 30 indigo chen 5 harbor ivan 6 amber
11.00
alice 16 delta farah 14 juniper dina 20 harbor hana 3 harbor chen 5 juniper jules 26 amber lina 20 ember alice 7 amber hana 5 fable
12.89
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042405-p1
Print the average of column 2, formatted to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
gus 11 fable jules 10 fable jules 24 ember hana 1 birch alice 1 grove farah 30 indigo chen 5 harbor ivan 6 amber
11.00
alice 16 delta farah 14 juniper dina 20 harbor hana 3 harbor chen 5 juniper jules 26 amber lina 20 ember alice 7 amber hana 5 fable
12.89
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042405
qwen/qwen3.7-plus
awkweave-0042406
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
19 eli indigo 13 hana juniper 18 farah indigo 11 ivan cobalt 2 ivan cobalt 25 alice indigo 7 lina fable 5 bruno ember
2
24 hana harbor 16 gus birch 7 alice delta 20 ivan amber 24 kim birch 13 lina indigo 6 bruno delta 7 lina grove
6
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042406-p1
Identify and output the minimum numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
19 eli indigo 13 hana juniper 18 farah indigo 11 ivan cobalt 2 ivan cobalt 25 alice indigo 7 lina fable 5 bruno ember
2
24 hana harbor 16 gus birch 7 alice delta 20 ivan amber 24 kim birch 13 lina indigo 6 bruno delta 7 lina grove
6
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042406
qwen/qwen3.7-plus
awkweave-0042407
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
11 jules grove 24 gus fable 23 hana juniper 7 dina grove 21 alice cobalt 3 bruno juniper 28 chen birch 8 chen grove 22 kim harbor
28
19 alice juniper 2 hana juniper 17 chen harbor 25 ivan grove 25 ivan birch 6 ivan amber 7 kim grove 4 hana amber 11 dina grove 4 ivan grove
25
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042407-p1
Identify and output the maximum numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
11 jules grove 24 gus fable 23 hana juniper 7 dina grove 21 alice cobalt 3 bruno juniper 28 chen birch 8 chen grove 22 kim harbor
28
19 alice juniper 2 hana juniper 17 chen harbor 25 ivan grove 25 ivan birch 6 ivan amber 7 kim grove 4 hana amber 11 dina grove 4 ivan grove
25
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042407
qwen/qwen3.7-plus
awkweave-0042408
Count all input records and print the total.
END{print NR}
jules 14 eli 80 kim 105 kim 33 bruno 70 hana 103 lina 107 alice 66
8
lina 46 chen 66 lina 69 kim 82 ivan 31 bruno 49 dina 78 alice 117
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042408-p1
Count the total number of input records and print the result.
END{print NR}
jules 14 eli 80 kim 105 kim 33 bruno 70 hana 103 lina 107 alice 66
8
lina 46 chen 66 lina 69 kim 82 ivan 31 bruno 49 dina 78 alice 117
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042408
qwen/qwen3.7-plus
awkweave-0042409
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
lina ember 120 eli fable 34 ivan indigo 25 ivan indigo 25 alice indigo 33 chen cobalt 91 kim ember 76 kim cobalt 117 kim birch 120 jules grove 57
lina ember 120 eli fable 34 ivan indigo 25 alice indigo 33 chen cobalt 91 kim ember 76 kim cobalt 117 kim birch 120 jules grove 57
hana grove 44 dina cobalt 78 jules juniper 10 kim ember 105 dina cobalt 78 farah harbor 78 ivan fable 56
hana grove 44 dina cobalt 78 jules juniper 10 kim ember 105 farah harbor 78 ivan fable 56
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042409-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
lina ember 120 eli fable 34 ivan indigo 25 ivan indigo 25 alice indigo 33 chen cobalt 91 kim ember 76 kim cobalt 117 kim birch 120 jules grove 57
lina ember 120 eli fable 34 ivan indigo 25 alice indigo 33 chen cobalt 91 kim ember 76 kim cobalt 117 kim birch 120 jules grove 57
hana grove 44 dina cobalt 78 jules juniper 10 kim ember 105 dina cobalt 78 farah harbor 78 ivan fable 56
hana grove 44 dina cobalt 78 jules juniper 10 kim ember 105 farah harbor 78 ivan fable 56
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042409
qwen/qwen3.7-plus
awkweave-0042410
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
eli amber 39 gus amber 91 lina cobalt 72 kim indigo 14 farah birch 97 jules grove 8 jules cobalt 18
eli amber 39 gus amber 91 lina cobalt 72 kim indigo 14 farah birch 97 jules grove 8 jules cobalt 18
chen ember 113 alice juniper 98 alice fable 36 jules grove 66 kim birch 36 ivan cobalt 50 hana fable 7 farah delta 60
chen ember 113 alice juniper 98 alice fable 36 jules grove 66 ivan cobalt 50 hana fable 7 farah delta 60
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042410-p1
Retain only the first occurrence for each unique value in column 3, preserving the input order.
!seen[$3]++
eli amber 39 gus amber 91 lina cobalt 72 kim indigo 14 farah birch 97 jules grove 8 jules cobalt 18
eli amber 39 gus amber 91 lina cobalt 72 kim indigo 14 farah birch 97 jules grove 8 jules cobalt 18
chen ember 113 alice juniper 98 alice fable 36 jules grove 66 kim birch 36 ivan cobalt 50 hana fable 7 farah delta 60
chen ember 113 alice juniper 98 alice fable 36 jules grove 66 ivan cobalt 50 hana fable 7 farah delta 60
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042410
qwen/qwen3.7-plus
awkweave-0042411
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
kim 1 ember ivan 18 fable eli 9 delta kim 17 delta alice 26 delta jules 2 indigo dina 23 indigo dina 7 harbor
kim 1 ivan 19 eli 28 kim 45 alice 71 jules 73 dina 96 dina 103
bruno 6 amber chen 29 indigo dina 20 cobalt eli 1 indigo gus 14 birch lina 8 amber
bruno 6 chen 35 dina 55 eli 56 gus 70 lina 78
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042411-p1
For every record, output column 1 followed by the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
kim 1 ember ivan 18 fable eli 9 delta kim 17 delta alice 26 delta jules 2 indigo dina 23 indigo dina 7 harbor
kim 1 ivan 19 eli 28 kim 45 alice 71 jules 73 dina 96 dina 103
bruno 6 amber chen 29 indigo dina 20 cobalt eli 1 indigo gus 14 birch lina 8 amber
bruno 6 chen 35 dina 55 eli 56 gus 70 lina 78
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042411
qwen/qwen3.7-plus
awkweave-0042412
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
farah 3 2 ember kim 25 10 indigo bruno 9 29 delta gus 22 16 ember alice 18 29 delta farah 22 28 fable ivan 15 11 ember ivan 29 22 ember
farah 5 kim 35 bruno 38 gus 38 alice 47 farah 50 ivan 26 ivan 51
jules 8 21 fable kim 22 14 ember eli 25 11 juniper lina 14 26 fable dina 29 2 birch lina 23 21 delta kim 4 22 juniper
jules 29 kim 36 eli 36 lina 40 dina 31 lina 44 kim 26
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042412-p1
For each line, output the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
farah 3 2 ember kim 25 10 indigo bruno 9 29 delta gus 22 16 ember alice 18 29 delta farah 22 28 fable ivan 15 11 ember ivan 29 22 ember
farah 5 kim 35 bruno 38 gus 38 alice 47 farah 50 ivan 26 ivan 51
jules 8 21 fable kim 22 14 ember eli 25 11 juniper lina 14 26 fable dina 29 2 birch lina 23 21 delta kim 4 22 juniper
jules 29 kim 36 eli 36 lina 40 dina 31 lina 44 kim 26
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042412
qwen/qwen3.7-plus
awkweave-0042413
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
dina 29 eli 28 hana 1 bruno 1 eli 25 alice 22 hana 27 kim 7 eli 15
dina pass eli pass hana fail bruno fail eli pass alice fail hana pass kim fail eli fail
kim 17 gus 8 chen 19 chen 28 kim 3 gus 30 chen 8 bruno 13 gus 10 gus 25
kim fail gus fail chen fail chen pass kim fail gus pass chen fail bruno fail gus fail gus pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042413-p1
Output the first column; if the second column is 25 or higher, print 'pass', otherwise print 'fail'.
{print $1,($2>=25?"pass":"fail")}
dina 29 eli 28 hana 1 bruno 1 eli 25 alice 22 hana 27 kim 7 eli 15
dina pass eli pass hana fail bruno fail eli pass alice fail hana pass kim fail eli fail
kim 17 gus 8 chen 19 chen 28 kim 3 gus 30 chen 8 bruno 13 gus 10 gus 25
kim fail gus fail chen fail chen pass kim fail gus pass chen fail bruno fail gus fail gus pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042413
qwen/qwen3.7-plus
awkweave-0042414
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
bruno birch 17 gus juniper 89 eli cobalt 4 bruno fable 38 dina juniper 30 alice ember 64 hana fable 99 chen amber 7 alice cobalt 35 alice fable 52
BRUNO GUS ELI BRUNO DINA ALICE HANA CHEN ALICE ALICE
bruno birch 23 bruno juniper 11 hana birch 32 ivan birch 109 hana juniper 99 lina fable 21 lina indigo 39
BRUNO BRUNO HANA IVAN HANA LINA LINA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042414-p1
Transform the first column to uppercase and display only that column.
{print toupper($1)}
bruno birch 17 gus juniper 89 eli cobalt 4 bruno fable 38 dina juniper 30 alice ember 64 hana fable 99 chen amber 7 alice cobalt 35 alice fable 52
BRUNO GUS ELI BRUNO DINA ALICE HANA CHEN ALICE ALICE
bruno birch 23 bruno juniper 11 hana birch 32 ivan birch 109 hana juniper 99 lina fable 21 lina indigo 39
BRUNO BRUNO HANA IVAN HANA LINA LINA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042414
qwen/qwen3.7-plus
awkweave-0042415
From column 1, print 4 characters starting at character 3.
{print substr($1,3,4)}
juniper 31 indigo 38 ember 56 birch 23 juniper 41 cobalt 83 harbor 79
nipe digo ber rch nipe balt rbor
fable 8 harbor 47 delta 27 birch 94 juniper 18 grove 7 ember 1 harbor 26 grove 91
ble rbor lta rch nipe ove ber rbor ove
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042415-p1
Extract and print a substring of length 4 from the first column, starting at the third character.
{print substr($1,3,4)}
juniper 31 indigo 38 ember 56 birch 23 juniper 41 cobalt 83 harbor 79
nipe digo ber rch nipe balt rbor
fable 8 harbor 47 delta 27 birch 94 juniper 18 grove 7 ember 1 harbor 26 grove 91
ble rbor lta rch nipe ove ber rbor ove
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042415
qwen/qwen3.7-plus
awkweave-0042416
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
birch_juniper 33 harbor_amber 99 grove_fable 15 birch_cobalt 63 indigo_amber 108 grove_birch 42 grove_cobalt 71
birch juniper harbor amber grove fable birch cobalt indigo amber grove birch grove cobalt
grove_indigo 5 harbor_delta 62 juniper_amber 90 amber_ember 53 juniper_ember 118 ember_birch 16 cobalt_grove 3 amber_indigo 3 indigo_amber 42 juniper_juniper 70
grove indigo harbor delta juniper amber amber ember juniper ember ember birch cobalt grove amber indigo indigo amber juniper juniper
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042416-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
birch_juniper 33 harbor_amber 99 grove_fable 15 birch_cobalt 63 indigo_amber 108 grove_birch 42 grove_cobalt 71
birch juniper harbor amber grove fable birch cobalt indigo amber grove birch grove cobalt
grove_indigo 5 harbor_delta 62 juniper_amber 90 amber_ember 53 juniper_ember 118 ember_birch 16 cobalt_grove 3 amber_indigo 3 indigo_amber 42 juniper_juniper 70
grove indigo harbor delta juniper amber amber ember juniper ember ember birch cobalt grove amber indigo indigo amber juniper juniper
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042416
qwen/qwen3.7-plus
awkweave-0042417
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)}
gus harbor 66 paused chen birch 85 paused chen ember 99 ready hana indigo 67 active gus grove 24 active jules delta 118 ready chen cobalt 70 paused chen harbor 112 closed lina amber 97 ready
paused 66 harbor gus paused 85 birch chen ready 99 ember chen active 67 indigo hana active 24 grove gus ready 118 delta jules paused 70 cobalt chen closed 112 harbor chen ready 97 amber lina
ivan harbor 113 closed gus harbor 100 failed gus cobalt 100 failed chen indigo 30 failed eli birch 15 active farah amber 90 pending bruno harbor 52 pending
closed 113 harbor ivan failed 100 harbor gus failed 100 cobalt gus failed 30 indigo chen active 15 birch eli pending 90 amber farah pending 52 harbor bruno
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042417-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)}
gus harbor 66 paused chen birch 85 paused chen ember 99 ready hana indigo 67 active gus grove 24 active jules delta 118 ready chen cobalt 70 paused chen harbor 112 closed lina amber 97 ready
paused 66 harbor gus paused 85 birch chen ready 99 ember chen active 67 indigo hana active 24 grove gus ready 118 delta jules paused 70 cobalt chen closed 112 harbor chen ready 97 amber lina
ivan harbor 113 closed gus harbor 100 failed gus cobalt 100 failed chen indigo 30 failed eli birch 15 active farah amber 90 pending bruno harbor 52 pending
closed 113 harbor ivan failed 100 harbor gus failed 100 cobalt gus failed 30 indigo chen active 15 birch eli pending 90 amber farah pending 52 harbor bruno
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042417
qwen/qwen3.7-plus
awkweave-0042418
Print the number of whitespace-separated fields on each line.
{print NF}
ivan birch 22 closed jules juniper 59 closed farah birch 6 pending kim indigo 54 closed kim delta 40 pending dina amber 49 paused
4 4 4 4 4 4
ivan cobalt 11 ready chen ember 97 closed eli indigo 88 paused kim amber 37 pending kim fable 43 paused alice ember 19 failed lina cobalt 56 failed
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042418-p1
Output the count of whitespace-delimited fields for each line.
{print NF}
ivan birch 22 closed jules juniper 59 closed farah birch 6 pending kim indigo 54 closed kim delta 40 pending dina amber 49 paused
4 4 4 4 4 4
ivan cobalt 11 ready chen ember 97 closed eli indigo 88 paused kim amber 37 pending kim fable 43 paused alice ember 19 failed lina cobalt 56 failed
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042418
qwen/qwen3.7-plus
awkweave-0042419
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]]}
chen delta 106 jules alpha 13 farah beta 85 eli alpha 84 dina delta 107 farah beta 60 farah gamma 43 chen gamma 102 dina delta 45 ivan gamma 107
delta 3 alpha 2 beta 2 gamma 3
jules alpha 27 ivan gamma 42 alice alpha 107 alice alpha 96 hana alpha 49 kim beta 71 alice delta 88
alpha 4 gamma 1 beta 1 delta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042419-p1
Tally the number of records for each unique value in the second column, printing each value and its count in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
chen delta 106 jules alpha 13 farah beta 85 eli alpha 84 dina delta 107 farah beta 60 farah gamma 43 chen gamma 102 dina delta 45 ivan gamma 107
delta 3 alpha 2 beta 2 gamma 3
jules alpha 27 ivan gamma 42 alice alpha 107 alice alpha 96 hana alpha 49 kim beta 71 alice delta 88
alpha 4 gamma 1 beta 1 delta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042419
qwen/qwen3.7-plus
awkweave-0042420
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
kim beta 8 alice delta 26 farah delta 17 ivan delta 23 hana delta 18 eli beta 15
beta 23 delta 84
chen beta 16 farah alpha 23 dina gamma 25 ivan alpha 2 kim beta 30 eli beta 19
beta 65 alpha 25 gamma 25
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042420-p1
Calculate the sum of the third column for each group defined by the second column, displaying results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
kim beta 8 alice delta 26 farah delta 17 ivan delta 23 hana delta 18 eli beta 15
beta 23 delta 84
chen beta 16 farah alpha 23 dina gamma 25 ivan alpha 2 kim beta 30 eli beta 19
beta 65 alpha 25 gamma 25
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042420
qwen/qwen3.7-plus
awkweave-0042421
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 cobalt 65 alpha ember 54 gamma cobalt 118 delta cobalt 78 beta delta 97 delta amber 97 beta juniper 60
beta 3 delta 2
alpha indigo 115 gamma delta 77 alpha grove 116 beta cobalt 81 gamma birch 89 alpha harbor 75
alpha 3 gamma 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042421-p1
List each duplicate value from the first column along with its frequency, ordered by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta cobalt 65 alpha ember 54 gamma cobalt 118 delta cobalt 78 beta delta 97 delta amber 97 beta juniper 60
beta 3 delta 2
alpha indigo 115 gamma delta 77 alpha grove 116 beta cobalt 81 gamma birch 89 alpha harbor 75
alpha 3 gamma 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042421
qwen/qwen3.7-plus
awkweave-0042422
The first row is a header. Print the note column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
score region record_id note r001 gus 4 paused r002 bruno 16 ready r003 ivan 12 paused r004 kim 28 paused r005 bruno 11 paused r006 ivan 28 active r007 bruno 22 paused r008 dina 18 pending r009 chen 18 ready r010 alice 15 paused
paused ready paused paused paused active paused pending ready paused
score region record_id note r001 jules 6 pending r002 hana 23 closed r003 eli 3 paused r004 gus 1 active r005 eli 28 closed r006 farah 11 closed r007 lina 26 paused
pending closed paused active closed closed paused
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042422-p1
Treating the first row as a header, output the 'note' column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
score region record_id note r001 gus 4 paused r002 bruno 16 ready r003 ivan 12 paused r004 kim 28 paused r005 bruno 11 paused r006 ivan 28 active r007 bruno 22 paused r008 dina 18 pending r009 chen 18 ready r010 alice 15 paused
paused ready paused paused paused active paused pending ready paused
score region record_id note r001 jules 6 pending r002 hana 23 closed r003 eli 3 paused r004 gus 1 active r005 eli 28 closed r006 farah 11 closed r007 lina 26 paused
pending closed paused active closed closed paused
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042422
qwen/qwen3.7-plus
awkweave-0042423
The first row is a header. Print display_name for data rows whose score is greater than 10.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>10{print $h["display_name"]}
record_id display_name score state r001 bruno 4 closed r002 eli 26 closed r003 chen 21 closed r004 eli 11 ready r005 lina 11 ready r006 kim 1 active r007 chen 25 closed r008 jules 4 ready
eli chen eli lina chen
record_id display_name score state r001 chen 27 failed r002 gus 16 failed r003 dina 29 active r004 gus 20 active r005 eli 25 ready r006 ivan 15 closed
chen gus dina gus eli ivan
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042423-p1
With the first row as a header, print the 'display_name' for data rows where the 'score' exceeds 10.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>10{print $h["display_name"]}
record_id display_name score state r001 bruno 4 closed r002 eli 26 closed r003 chen 21 closed r004 eli 11 ready r005 lina 11 ready r006 kim 1 active r007 chen 25 closed r008 jules 4 ready
eli chen eli lina chen
record_id display_name score state r001 chen 27 failed r002 gus 16 failed r003 dina 29 active r004 gus 20 active r005 eli 25 ready r006 ivan 15 closed
chen gus dina gus eli ivan
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042423
qwen/qwen3.7-plus
awkweave-0042424
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
alice 10 pending farah 23 ready bruno 25 closed gus 6 active hana 6 closed jules 17 closed
10 23 25 6 6 17
farah 15 pending kim 24 pending hana 27 failed dina 27 failed farah 30 ready bruno 1 closed gus 22 paused hana 29 paused chen 13 ready hana 23 paused
15 24 27 27 30 1 22 29 13 23
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042424-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
alice 10 pending farah 23 ready bruno 25 closed gus 6 active hana 6 closed jules 17 closed
10 23 25 6 6 17
farah 15 pending kim 24 pending hana 27 failed dina 27 failed farah 30 ready bruno 1 closed gus 22 paused hana 29 paused chen 13 ready hana 23 paused
15 24 27 27 30 1 22 29 13 23
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0042424
qwen/qwen3.7-plus
awkweave-0042425
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 16.
BEGIN{FS=OFS=","}$2>16{print $1}
dina,9,paused alice,18,paused gus,12,closed alice,20,pending bruno,1,paused kim,18,closed
alice alice kim
lina,23,pending dina,6,active chen,7,failed bruno,28,active dina,2,closed eli,18,paused
lina bruno eli
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042425-p1
Output the first field of comma-separated records where the second field is greater than 16, assuming no quoted commas.
BEGIN{FS=OFS=","}$2>16{print $1}
dina,9,paused alice,18,paused gus,12,closed alice,20,pending bruno,1,paused kim,18,closed
alice alice kim
lina,23,pending dina,6,active chen,7,failed bruno,28,active dina,2,closed eli,18,paused
lina bruno eli
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042425
qwen/qwen3.7-plus
awkweave-0042426
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina indigo 28 farah amber 36 eli birch 87 lina cobalt 38 gus harbor 57 chen fable 80 lina ember 61 alice amber 104 bruno harbor 100 lina indigo 109
lina indigo 28 farah amber 36 eli birch 87 lina cobalt 38 gus harbor 57 chen fable 80 lina ember 61 alice amber 104 bruno harbor 100 lina indigo 109
jules harbor 51 gus juniper 27 ivan birch 52 gus harbor 86 eli amber 118 dina birch 33 hana indigo 80 jules delta 6 gus amber 56
jules harbor 51 gus juniper 27 ivan birch 52 gus harbor 86 eli amber 118 dina birch 33 hana indigo 80 jules delta 6 gus amber 56
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042426-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
lina indigo 28 farah amber 36 eli birch 87 lina cobalt 38 gus harbor 57 chen fable 80 lina ember 61 alice amber 104 bruno harbor 100 lina indigo 109
lina indigo 28 farah amber 36 eli birch 87 lina cobalt 38 gus harbor 57 chen fable 80 lina ember 61 alice amber 104 bruno harbor 100 lina indigo 109
jules harbor 51 gus juniper 27 ivan birch 52 gus harbor 86 eli amber 118 dina birch 33 hana indigo 80 jules delta 6 gus amber 56
jules harbor 51 gus juniper 27 ivan birch 52 gus harbor 86 eli amber 118 dina birch 33 hana indigo 80 jules delta 6 gus amber 56
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042426
qwen/qwen3.7-plus
awkweave-0042427
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
kim juniper 79 paused alice amber 50 failed farah indigo 49 failed jules juniper 70 closed kim juniper 78 closed bruno delta 99 failed
jules juniper 70 closed
chen harbor 45 pending eli ember 2 active hana ember 95 closed eli juniper 55 failed bruno juniper 61 ready farah grove 54 failed kim amber 99 pending hana juniper 11 pending alice juniper 4 pending gus grove 115 ready
hana juniper 11 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042427-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}
kim juniper 79 paused alice amber 50 failed farah indigo 49 failed jules juniper 70 closed kim juniper 78 closed bruno delta 99 failed
jules juniper 70 closed
chen harbor 45 pending eli ember 2 active hana ember 95 closed eli juniper 55 failed bruno juniper 61 ready farah grove 54 failed kim amber 99 pending hana juniper 11 pending alice juniper 4 pending gus grove 115 ready
hana juniper 11 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042427
qwen/qwen3.7-plus
awkweave-0042428
Print every 3rd line starting at line 3 (then line 6, and so on).
NR%3==0
alice 28 dina 57 bruno 90 jules 41 jules 46 kim 56 hana 55 kim 21
bruno 90 kim 56
bruno 13 jules 73 farah 67 bruno 52 kim 38 lina 87 bruno 116 kim 79 farah 68 kim 53
farah 67 lina 87 farah 68
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042428-p1
Print every third line of the input, beginning with line 3 (i.e., lines 3, 6, 9, etc.).
NR%3==0
alice 28 dina 57 bruno 90 jules 41 jules 46 kim 56 hana 55 kim 21
bruno 90 kim 56
bruno 13 jules 73 farah 67 bruno 52 kim 38 lina 87 bruno 116 kim 79 farah 68 kim 53
farah 67 lina 87 farah 68
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042428
qwen/qwen3.7-plus
awkweave-0042429
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
alpha cobalt 91 delta harbor 45 delta birch 28 alpha harbor 49 alpha birch 55 gamma ember 66
3
gamma indigo 89 alpha juniper 1 alpha cobalt 105 alpha indigo 79 delta birch 85 delta ember 93
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042429-p1
Calculate and output only the total number of unique values found in the first column.
{if(!seen[$1]++)n++}END{print n+0}
alpha cobalt 91 delta harbor 45 delta birch 28 alpha harbor 49 alpha birch 55 gamma ember 66
3
gamma indigo 89 alpha juniper 1 alpha cobalt 105 alpha indigo 79 delta birch 85 delta ember 93
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042429
qwen/qwen3.7-plus
awkweave-0042430
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}
farah 12 0 ivan 13 12 kim 12 3 ivan 20 5 farah 30 25 hana 10 2 hana 3 21 farah 30 1 bruno 28 23 chen 27 5
ivan 1.08 kim 4.00 ivan 4.00 farah 1.20 hana 5.00 hana 0.14 farah 30.00 bruno 1.22 chen 5.40
alice 21 0 gus 9 17 alice 18 25 farah 24 29 hana 21 30 gus 22 26 farah 23 21 hana 21 16
gus 0.53 alice 0.72 farah 0.83 hana 0.70 gus 0.85 farah 1.10 hana 1.31
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042430-p1
For each row where the third column is non-zero, output the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
farah 12 0 ivan 13 12 kim 12 3 ivan 20 5 farah 30 25 hana 10 2 hana 3 21 farah 30 1 bruno 28 23 chen 27 5
ivan 1.08 kim 4.00 ivan 4.00 farah 1.20 hana 5.00 hana 0.14 farah 30.00 bruno 1.22 chen 5.40
alice 21 0 gus 9 17 alice 18 25 farah 24 29 hana 21 30 gus 22 26 farah 23 21 hana 21 16
gus 0.53 alice 0.72 farah 0.83 hana 0.70 gus 0.85 farah 1.10 hana 1.31
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042430
qwen/qwen3.7-plus
awkweave-0042431
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
alice indigo 21 lina grove 5 farah indigo 20 kim delta 13 dina delta 7 eli indigo 4 farah fable 25 lina delta 27
lina delta 27 farah fable 25 alice indigo 21
kim ember 9 dina indigo 2 chen grove 8 chen cobalt 12 chen grove 22 gus fable 18
chen grove 22 gus fable 18 chen cobalt 12
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042431-p1
Output the three records with the highest numeric values in the third column, 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]}
alice indigo 21 lina grove 5 farah indigo 20 kim delta 13 dina delta 7 eli indigo 4 farah fable 25 lina delta 27
lina delta 27 farah fable 25 alice indigo 21
kim ember 9 dina indigo 2 chen grove 8 chen cobalt 12 chen grove 22 gus fable 18
chen grove 22 gus fable 18 chen cobalt 12
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042431
qwen/qwen3.7-plus
awkweave-0042432
Select the 3rd and 2nd fields in that order.
{print $3, $2}
closed gus 16 93 closed eli 2 85 closed jules 17 30 active chen 23 8 active hana 107 115 paused ivan 8 43 pending kim 110 51 failed farah 37 10
16 gus 2 eli 17 jules 23 chen 107 hana 8 ivan 110 kim 37 farah
failed farah 119 62 pending gus 10 52 closed eli 13 15 failed eli 47 42 failed eli 26 66 closed dina 74 58 closed chen 34 41
119 farah 10 gus 13 eli 47 eli 26 eli 74 dina 34 chen
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042432-p1
Rearrange and output the fields by printing the third field followed by the second field.
{print $3, $2}
closed gus 16 93 closed eli 2 85 closed jules 17 30 active chen 23 8 active hana 107 115 paused ivan 8 43 pending kim 110 51 failed farah 37 10
16 gus 2 eli 17 jules 23 chen 107 hana 8 ivan 110 kim 37 farah
failed farah 119 62 pending gus 10 52 closed eli 13 15 failed eli 47 42 failed eli 26 66 closed dina 74 58 closed chen 34 41
119 farah 10 gus 13 eli 47 eli 26 eli 74 dina 34 chen
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042432
qwen/qwen3.7-plus
awkweave-0042433
Print the last field of every input line.
{print $NF}
0 lina jules 15 119 bruno kim 0 94 kim farah 38 104 bruno chen 84 104 chen hana 49 11 lina jules 55 39 gus farah 15
15 0 38 84 49 55 15
64 jules eli 23 27 gus chen 110 25 kim jules 64 86 eli gus 80 61 farah alice 34 2 bruno chen 98 58 jules jules 42 12 eli gus 60 20 chen kim 47
23 110 64 80 34 98 42 60 47
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042433-p1
Display the final field from every line of the input.
{print $NF}
0 lina jules 15 119 bruno kim 0 94 kim farah 38 104 bruno chen 84 104 chen hana 49 11 lina jules 55 39 gus farah 15
15 0 38 84 49 55 15
64 jules eli 23 27 gus chen 110 25 kim jules 64 86 eli gus 80 61 farah alice 34 2 bruno chen 98 58 jules jules 42 12 eli gus 60 20 chen kim 47
23 110 64 80 34 98 42 60 47
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042433
qwen/qwen3.7-plus
awkweave-0042434
Print the complete records where column 1 is at least 72.
$1 >= 72
54 cobalt farah 79 ember dina 41 juniper ivan 18 harbor ivan 23 ember eli 34 amber gus 7 birch kim 76 birch kim 52 amber hana 52 juniper gus
79 ember dina 76 birch kim
60 fable kim 55 ember hana 24 grove alice 34 juniper jules 89 delta chen 116 amber gus 67 delta lina 109 fable eli 24 harbor jules 57 cobalt bruno
89 delta chen 116 amber gus 109 fable eli
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042434-p1
Output full records where the value in the first column is 72 or higher.
$1 >= 72
54 cobalt farah 79 ember dina 41 juniper ivan 18 harbor ivan 23 ember eli 34 amber gus 7 birch kim 76 birch kim 52 amber hana 52 juniper gus
79 ember dina 76 birch kim
60 fable kim 55 ember hana 24 grove alice 34 juniper jules 89 delta chen 116 amber gus 67 delta lina 109 fable eli 24 harbor jules 57 cobalt bruno
89 delta chen 116 amber gus 109 fable eli
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042434
qwen/qwen3.7-plus
awkweave-0042435
Show whole lines whose 1st field is between 12 and 28, inclusive.
$1 >= 12 && $1 <= 28
28 farah active eli 23 alice paused jules 25 dina pending hana 1 lina pending alice 5 farah failed ivan 5 chen paused alice 4 alice ready kim 13 bruno ready hana
28 farah active eli 23 alice paused jules 25 dina pending hana 13 bruno ready hana
23 gus pending lina 1 hana active hana 1 ivan pending bruno 14 dina failed ivan 23 jules active hana 14 ivan pending chen 24 kim closed hana
23 gus pending lina 14 dina failed ivan 23 jules active hana 14 ivan pending chen 24 kim closed hana
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042435-p1
Print entire lines where the first field falls within the inclusive range of 12 to 28.
$1 >= 12 && $1 <= 28
28 farah active eli 23 alice paused jules 25 dina pending hana 1 lina pending alice 5 farah failed ivan 5 chen paused alice 4 alice ready kim 13 bruno ready hana
28 farah active eli 23 alice paused jules 25 dina pending hana 13 bruno ready hana
23 gus pending lina 1 hana active hana 1 ivan pending bruno 14 dina failed ivan 23 jules active hana 14 ivan pending chen 24 kim closed hana
23 gus pending lina 14 dina failed ivan 23 jules active hana 14 ivan pending chen 24 kim closed hana
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042435
qwen/qwen3.7-plus
awkweave-0042436
Print column 3 only for rows where column 4 is exactly failed.
$4 == "failed"{print $3}
28 delta alice closed 112 harbor alice failed 101 ember bruno paused 7 birch bruno pending 44 juniper eli active 21 grove chen closed 40 harbor kim failed
alice kim
75 juniper gus ready 39 birch gus closed 69 birch dina pending 9 ember hana closed 39 ember eli pending 92 ember bruno paused 65 fable chen paused 22 cobalt bruno failed 99 delta lina failed
bruno lina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042436-p1
Output the third column exclusively for rows where the fourth column matches 'failed' exactly.
$4 == "failed"{print $3}
28 delta alice closed 112 harbor alice failed 101 ember bruno paused 7 birch bruno pending 44 juniper eli active 21 grove chen closed 40 harbor kim failed
alice kim
75 juniper gus ready 39 birch gus closed 69 birch dina pending 9 ember hana closed 39 ember eli pending 92 ember bruno paused 65 fable chen paused 22 cobalt bruno failed 99 delta lina failed
bruno lina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042436
qwen/qwen3.7-plus
awkweave-0042437
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
73 ERROR delta 45 INFO delta 26 WARN harbor 20 INFO cobalt 69 ERROR fable 74 DEBUG cobalt
73 ERROR delta 69 ERROR fable
32 INFO juniper 31 ERROR grove 13 ERROR birch 66 ERROR delta 26 WARN grove 74 DEBUG fable 65 ERROR ember 53 INFO ember 3 WARN birch
31 ERROR grove 13 ERROR birch 66 ERROR delta 65 ERROR ember
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042437-p1
Display all fields from lines where the second field starts with 'ERROR'.
$2 ~ /^ERROR/
73 ERROR delta 45 INFO delta 26 WARN harbor 20 INFO cobalt 69 ERROR fable 74 DEBUG cobalt
73 ERROR delta 69 ERROR fable
32 INFO juniper 31 ERROR grove 13 ERROR birch 66 ERROR delta 26 WARN grove 74 DEBUG fable 65 ERROR ember 53 INFO ember 3 WARN birch
31 ERROR grove 13 ERROR birch 66 ERROR delta 65 ERROR ember
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042437
qwen/qwen3.7-plus
awkweave-0042438
Print every line except those containing the exact text harbor.
$0 !~ /harbor/
amber 57 ready grove 111 paused harbor 11 failed amber 97 ready birch 74 pending juniper 83 active harbor 999 active
amber 57 ready grove 111 paused amber 97 ready birch 74 pending juniper 83 active
amber 95 failed ember 92 paused ember 7 active ember 5 pending indigo 89 paused juniper 74 pending harbor 17 paused harbor 114 paused juniper 36 paused harbor 999 active
amber 95 failed ember 92 paused ember 7 active ember 5 pending indigo 89 paused juniper 74 pending juniper 36 paused
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042438-p1
Print every line that does not contain the exact string 'harbor'.
$0 !~ /harbor/
amber 57 ready grove 111 paused harbor 11 failed amber 97 ready birch 74 pending juniper 83 active harbor 999 active
amber 57 ready grove 111 paused amber 97 ready birch 74 pending juniper 83 active
amber 95 failed ember 92 paused ember 7 active ember 5 pending indigo 89 paused juniper 74 pending harbor 17 paused harbor 114 paused juniper 36 paused harbor 999 active
amber 95 failed ember 92 paused ember 7 active ember 5 pending indigo 89 paused juniper 74 pending juniper 36 paused
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042438
qwen/qwen3.7-plus
awkweave-0042439
Print lines 3 through 6, including both endpoints.
NR >= 3 && NR <= 6
bruno harbor 41 bruno juniper 49 hana ember 112 jules fable 105 bruno fable 34 jules indigo 32
hana ember 112 jules fable 105 bruno fable 34 jules indigo 32
hana ember 75 eli ember 99 alice juniper 14 ivan ember 47 alice indigo 114 dina fable 45 kim amber 12 farah birch 53 eli amber 56 hana juniper 7
alice juniper 14 ivan ember 47 alice indigo 114 dina fable 45
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042439-p1
Output lines 3 to 6, inclusive of both endpoints.
NR >= 3 && NR <= 6
bruno harbor 41 bruno juniper 49 hana ember 112 jules fable 105 bruno fable 34 jules indigo 32
hana ember 112 jules fable 105 bruno fable 34 jules indigo 32
hana ember 75 eli ember 99 alice juniper 14 ivan ember 47 alice indigo 114 dina fable 45 kim amber 12 farah birch 53 eli amber 56 hana juniper 7
alice juniper 14 ivan ember 47 alice indigo 114 dina fable 45
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042439
qwen/qwen3.7-plus
awkweave-0042440
Output only the first 2 records.
NR <= 2
eli 4 cobalt bruno 56 amber dina 58 delta chen 49 delta eli 101 fable chen 16 cobalt jules 46 grove hana 34 indigo ivan 105 juniper
eli 4 cobalt bruno 56 amber
ivan 49 birch bruno 105 fable eli 71 ember gus 36 delta kim 60 delta kim 14 grove
ivan 49 birch bruno 105 fable
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042440-p1
Display only the first two records.
NR <= 2
eli 4 cobalt bruno 56 amber dina 58 delta chen 49 delta eli 101 fable chen 16 cobalt jules 46 grove hana 34 indigo ivan 105 juniper
eli 4 cobalt bruno 56 amber
ivan 49 birch bruno 105 fable eli 71 ember gus 36 delta kim 60 delta kim 14 grove
ivan 49 birch bruno 105 fable
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042440
qwen/qwen3.7-plus
awkweave-0042441
Skip the first line and print every remaining line unchanged.
NR > 1
eli 46 amber bruno 62 juniper chen 12 delta gus 112 harbor gus 110 delta gus 11 grove
bruno 62 juniper chen 12 delta gus 112 harbor gus 110 delta gus 11 grove
bruno 1 cobalt farah 79 ember alice 117 harbor eli 93 fable hana 73 indigo bruno 81 indigo lina 113 ember ivan 10 birch
farah 79 ember alice 117 harbor eli 93 fable hana 73 indigo bruno 81 indigo lina 113 ember ivan 10 birch
skip_header
1
train
original-grammar
CC-BY-4.0
null
null