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-0049272-p1
Output the total count of all input records.
END{print NR}
kim 19 lina 78 ivan 91 kim 34 jules 108 gus 76
6
dina 120 hana 82 alice 117 hana 103 ivan 9 gus 13 chen 112 kim 13
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049272
qwen/qwen3.7-plus
awkweave-0049273
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
chen juniper 3 gus juniper 19 ivan ember 49 chen indigo 99 hana harbor 91 farah ember 9 farah ember 9 ivan grove 63
chen juniper 3 gus juniper 19 ivan ember 49 chen indigo 99 hana harbor 91 farah ember 9 ivan grove 63
alice cobalt 37 farah birch 67 bruno fable 30 lina cobalt 109 ivan ember 97 alice cobalt 37 lina indigo 118 kim grove 14 ivan grove 65 chen cobalt 111 bruno cobalt 17
alice cobalt 37 farah birch 67 bruno fable 30 lina cobalt 109 ivan ember 97 lina indigo 118 kim grove 14 ivan grove 65 chen cobalt 111 bruno cobalt 17
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049273-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
chen juniper 3 gus juniper 19 ivan ember 49 chen indigo 99 hana harbor 91 farah ember 9 farah ember 9 ivan grove 63
chen juniper 3 gus juniper 19 ivan ember 49 chen indigo 99 hana harbor 91 farah ember 9 ivan grove 63
alice cobalt 37 farah birch 67 bruno fable 30 lina cobalt 109 ivan ember 97 alice cobalt 37 lina indigo 118 kim grove 14 ivan grove 65 chen cobalt 111 bruno cobalt 17
alice cobalt 37 farah birch 67 bruno fable 30 lina cobalt 109 ivan ember 97 lina indigo 118 kim grove 14 ivan grove 65 chen cobalt 111 bruno cobalt 17
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049273
qwen/qwen3.7-plus
awkweave-0049274
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
gus birch 35 lina amber 113 farah birch 40 gus cobalt 48 bruno cobalt 119 kim fable 111 alice fable 42
gus birch 35 lina amber 113 gus cobalt 48 kim fable 111
kim grove 3 ivan amber 19 hana birch 37 ivan harbor 26 farah harbor 41 lina juniper 120 farah amber 27 eli harbor 112
kim grove 3 ivan amber 19 hana birch 37 ivan harbor 26 lina juniper 120
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049274-p1
Retain only the initial line for every unique value found in column 2, ensuring the input order is preserved.
!seen[$2]++
gus birch 35 lina amber 113 farah birch 40 gus cobalt 48 bruno cobalt 119 kim fable 111 alice fable 42
gus birch 35 lina amber 113 gus cobalt 48 kim fable 111
kim grove 3 ivan amber 19 hana birch 37 ivan harbor 26 farah harbor 41 lina juniper 120 farah amber 27 eli harbor 112
kim grove 3 ivan amber 19 hana birch 37 ivan harbor 26 lina juniper 120
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049274
qwen/qwen3.7-plus
awkweave-0049275
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
eli 24 grove gus 14 cobalt hana 28 cobalt gus 26 birch ivan 4 grove ivan 26 delta lina 18 grove
eli 24 gus 38 hana 66 gus 92 ivan 96 ivan 122 lina 140
eli 13 juniper alice 10 delta chen 5 fable bruno 11 harbor jules 23 birch lina 1 delta chen 19 amber ivan 26 fable farah 14 indigo
eli 13 alice 23 chen 28 bruno 39 jules 62 lina 63 chen 82 ivan 108 farah 122
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049275-p1
For each entry, output column 1 alongside the cumulative sum of column 2, using a space as the delimiter.
{s+=$2;print $1,s}
eli 24 grove gus 14 cobalt hana 28 cobalt gus 26 birch ivan 4 grove ivan 26 delta lina 18 grove
eli 24 gus 38 hana 66 gus 92 ivan 96 ivan 122 lina 140
eli 13 juniper alice 10 delta chen 5 fable bruno 11 harbor jules 23 birch lina 1 delta chen 19 amber ivan 26 fable farah 14 indigo
eli 13 alice 23 chen 28 bruno 39 jules 62 lina 63 chen 82 ivan 108 farah 122
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049275
qwen/qwen3.7-plus
awkweave-0049276
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
lina 15 13 harbor lina 11 13 fable eli 18 20 indigo alice 3 11 amber ivan 2 6 cobalt gus 15 8 grove bruno 19 27 juniper chen 11 17 fable farah 22 28 grove
lina 28 lina 24 eli 38 alice 14 ivan 8 gus 23 bruno 46 chen 28 farah 50
chen 11 20 grove chen 12 9 harbor lina 17 8 delta eli 22 29 juniper eli 14 8 fable chen 10 9 amber kim 19 11 juniper
chen 31 chen 21 lina 25 eli 51 eli 22 chen 19 kim 30
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049276-p1
Display field 1 followed by the sum of fields 2 and 3 for every row.
{print $1,$2+$3}
lina 15 13 harbor lina 11 13 fable eli 18 20 indigo alice 3 11 amber ivan 2 6 cobalt gus 15 8 grove bruno 19 27 juniper chen 11 17 fable farah 22 28 grove
lina 28 lina 24 eli 38 alice 14 ivan 8 gus 23 bruno 46 chen 28 farah 50
chen 11 20 grove chen 12 9 harbor lina 17 8 delta eli 22 29 juniper eli 14 8 fable chen 10 9 amber kim 19 11 juniper
chen 31 chen 21 lina 25 eli 51 eli 22 chen 19 kim 30
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049276
qwen/qwen3.7-plus
awkweave-0049277
Print column 1 and pass when column 2 is at least 23; otherwise print fail.
{print $1,($2>=23?"pass":"fail")}
eli 18 dina 5 eli 26 lina 21 jules 7 chen 13 jules 21 alice 6
eli fail dina fail eli pass lina fail jules fail chen fail jules fail alice fail
farah 2 jules 4 jules 22 gus 13 hana 10 ivan 5
farah fail jules fail jules fail gus fail hana fail ivan fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049277-p1
Output column 1 and print 'pass' if column 2 is greater than or equal to 23; otherwise, print 'fail'.
{print $1,($2>=23?"pass":"fail")}
eli 18 dina 5 eli 26 lina 21 jules 7 chen 13 jules 21 alice 6
eli fail dina fail eli pass lina fail jules fail chen fail jules fail alice fail
farah 2 jules 4 jules 22 gus 13 hana 10 ivan 5
farah fail jules fail jules fail gus fail hana fail ivan fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049277
qwen/qwen3.7-plus
awkweave-0049278
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
lina birch 14 bruno juniper 5 jules amber 65 kim indigo 104 lina birch 63 lina birch 73 chen amber 35 bruno birch 51 farah juniper 8
LINA BRUNO JULES KIM LINA LINA CHEN BRUNO FARAH
bruno fable 104 gus ember 49 eli indigo 33 hana amber 63 alice juniper 59 eli cobalt 108 eli harbor 86 kim amber 43 alice birch 27 jules indigo 83
BRUNO GUS ELI HANA ALICE ELI ELI KIM ALICE JULES
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049278-p1
Transform column 1 to uppercase and output only that modified column.
{print toupper($1)}
lina birch 14 bruno juniper 5 jules amber 65 kim indigo 104 lina birch 63 lina birch 73 chen amber 35 bruno birch 51 farah juniper 8
LINA BRUNO JULES KIM LINA LINA CHEN BRUNO FARAH
bruno fable 104 gus ember 49 eli indigo 33 hana amber 63 alice juniper 59 eli cobalt 108 eli harbor 86 kim amber 43 alice birch 27 jules indigo 83
BRUNO GUS ELI HANA ALICE ELI ELI KIM ALICE JULES
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049278
qwen/qwen3.7-plus
awkweave-0049279
From column 1, print 4 characters starting at character 3.
{print substr($1,3,4)}
ember 115 fable 72 amber 77 fable 88 harbor 105 birch 34 amber 67 delta 71
ber ble ber ble rbor rch ber lta
cobalt 11 juniper 20 amber 3 harbor 31 amber 97 cobalt 3
balt nipe ber rbor ber balt
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049279-p1
Extract and print a substring of 4 characters from column 1, beginning at the third character.
{print substr($1,3,4)}
ember 115 fable 72 amber 77 fable 88 harbor 105 birch 34 amber 67 delta 71
ber ble ber ble rbor rch ber lta
cobalt 11 juniper 20 amber 3 harbor 31 amber 97 cobalt 3
balt nipe ber rbor ber balt
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049279
qwen/qwen3.7-plus
awkweave-0049280
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
juniper_amber 34 grove_ember 92 delta_harbor 55 grove_juniper 114 ember_grove 72 harbor_cobalt 14 delta_ember 75
juniper amber grove ember delta harbor grove juniper ember grove harbor cobalt delta ember
harbor_indigo 63 delta_birch 86 fable_delta 86 amber_indigo 7 fable_delta 20 birch_birch 45 cobalt_fable 2 harbor_birch 74 juniper_birch 41 grove_ember 84
harbor indigo delta birch fable delta amber indigo fable delta birch birch cobalt fable harbor birch juniper birch grove ember
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049280-p1
Substitute all underscores in column 1 with spaces and display the updated values.
{gsub(/_/," ",$1);print $1}
juniper_amber 34 grove_ember 92 delta_harbor 55 grove_juniper 114 ember_grove 72 harbor_cobalt 14 delta_ember 75
juniper amber grove ember delta harbor grove juniper ember grove harbor cobalt delta ember
harbor_indigo 63 delta_birch 86 fable_delta 86 amber_indigo 7 fable_delta 20 birch_birch 45 cobalt_fable 2 harbor_birch 74 juniper_birch 41 grove_ember 84
harbor indigo delta birch fable delta amber indigo fable delta birch birch cobalt fable harbor birch juniper birch grove ember
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049280
qwen/qwen3.7-plus
awkweave-0049281
Reverse the order of fields on every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
kim ember 97 pending dina harbor 57 ready hana indigo 42 ready lina cobalt 26 failed hana harbor 55 paused farah grove 85 pending bruno harbor 118 failed lina harbor 16 active alice fable 3 pending
pending 97 ember kim ready 57 harbor dina ready 42 indigo hana failed 26 cobalt lina paused 55 harbor hana pending 85 grove farah failed 118 harbor bruno active 16 harbor lina pending 3 fable alice
alice ember 109 closed gus cobalt 3 active chen harbor 42 failed kim amber 64 paused jules amber 52 active ivan cobalt 62 pending gus cobalt 52 ready
closed 109 ember alice active 3 cobalt gus failed 42 harbor chen paused 64 amber kim active 52 amber jules pending 62 cobalt ivan ready 52 cobalt gus
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049281-p1
Reverse the sequence of fields for each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
kim ember 97 pending dina harbor 57 ready hana indigo 42 ready lina cobalt 26 failed hana harbor 55 paused farah grove 85 pending bruno harbor 118 failed lina harbor 16 active alice fable 3 pending
pending 97 ember kim ready 57 harbor dina ready 42 indigo hana failed 26 cobalt lina paused 55 harbor hana pending 85 grove farah failed 118 harbor bruno active 16 harbor lina pending 3 fable alice
alice ember 109 closed gus cobalt 3 active chen harbor 42 failed kim amber 64 paused jules amber 52 active ivan cobalt 62 pending gus cobalt 52 ready
closed 109 ember alice active 3 cobalt gus failed 42 harbor chen paused 64 amber kim active 52 amber jules pending 62 cobalt ivan ready 52 cobalt gus
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049281
qwen/qwen3.7-plus
awkweave-0049282
Print the number of whitespace-separated fields on each line.
{print NF}
gus birch 85 paused hana birch 65 paused jules grove 69 active farah birch 84 pending ivan ember 6 ready chen harbor 66 ready
4 4 4 4 4 4
hana birch 24 paused kim indigo 15 failed chen amber 23 pending bruno juniper 115 failed eli grove 100 active farah indigo 48 active jules delta 12 closed ivan fable 47 ready hana birch 3 closed dina amber 42 closed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049282-p1
Print the count of whitespace-delimited fields present on each line.
{print NF}
gus birch 85 paused hana birch 65 paused jules grove 69 active farah birch 84 pending ivan ember 6 ready chen harbor 66 ready
4 4 4 4 4 4
hana birch 24 paused kim indigo 15 failed chen amber 23 pending bruno juniper 115 failed eli grove 100 active farah indigo 48 active jules delta 12 closed ivan fable 47 ready hana birch 3 closed dina amber 42 closed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049282
qwen/qwen3.7-plus
awkweave-0049283
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]]}
kim beta 100 bruno gamma 6 jules gamma 13 chen delta 78 alice beta 95 chen delta 0 eli delta 60 jules beta 51
beta 3 gamma 2 delta 3
ivan gamma 104 jules beta 97 farah delta 76 farah delta 112 lina delta 33 chen delta 3
gamma 1 beta 1 delta 4
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049283-p1
Tally the number of records for each distinct value in column 2, then print each value with its count in the order they first appeared.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
kim beta 100 bruno gamma 6 jules gamma 13 chen delta 78 alice beta 95 chen delta 0 eli delta 60 jules beta 51
beta 3 gamma 2 delta 3
ivan gamma 104 jules beta 97 farah delta 76 farah delta 112 lina delta 33 chen delta 3
gamma 1 beta 1 delta 4
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049283
qwen/qwen3.7-plus
awkweave-0049284
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]]}
gus gamma 21 ivan beta 24 eli gamma 11 hana alpha 13 kim delta 19 kim alpha 11 jules delta 16 eli delta 16 hana beta 17
gamma 32 beta 41 alpha 24 delta 51
gus beta 10 chen beta 14 gus gamma 28 eli delta 26 lina beta 26 farah beta 25 bruno delta 27
beta 75 gamma 28 delta 53
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049284-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]]}
gus gamma 21 ivan beta 24 eli gamma 11 hana alpha 13 kim delta 19 kim alpha 11 jules delta 16 eli delta 16 hana beta 17
gamma 32 beta 41 alpha 24 delta 51
gus beta 10 chen beta 14 gus gamma 28 eli delta 26 lina beta 26 farah beta 25 bruno delta 27
beta 75 gamma 28 delta 53
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0049284
qwen/qwen3.7-plus
awkweave-0049285
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 grove 115 alpha indigo 85 beta ember 84 alpha fable 48 alpha amber 34 alpha juniper 66 delta birch 24 alpha delta 76 beta harbor 114 alpha delta 110
alpha 6 beta 2
beta harbor 22 gamma juniper 118 delta indigo 1 delta harbor 16 alpha fable 14 delta grove 62
delta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049285-p1
Identify duplicate entries in column 1 and display each repeated value alongside its occurrence count, maintaining the order in which they first appear.
{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 grove 115 alpha indigo 85 beta ember 84 alpha fable 48 alpha amber 34 alpha juniper 66 delta birch 24 alpha delta 76 beta harbor 114 alpha delta 110
alpha 6 beta 2
beta harbor 22 gamma juniper 118 delta indigo 1 delta harbor 16 alpha fable 14 delta grove 62
delta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049285
qwen/qwen3.7-plus
awkweave-0049286
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"]}
note record_id state region r001 kim 6 pending r002 farah 15 paused r003 lina 18 pending r004 kim 17 failed r005 gus 20 closed r006 jules 3 closed r007 farah 26 ready
6 15 18 17 20 3 26
note record_id state region r001 lina 25 paused r002 ivan 5 pending r003 lina 22 paused r004 bruno 16 active r005 kim 24 closed r006 lina 23 paused r007 chen 3 paused r008 hana 24 failed r009 hana 23 closed r010 chen 22 pending
25 5 22 16 24 23 3 24 23 22
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049286-p1
Treating the first line as a header, extract and print the state column from all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
note record_id state region r001 kim 6 pending r002 farah 15 paused r003 lina 18 pending r004 kim 17 failed r005 gus 20 closed r006 jules 3 closed r007 farah 26 ready
6 15 18 17 20 3 26
note record_id state region r001 lina 25 paused r002 ivan 5 pending r003 lina 22 paused r004 bruno 16 active r005 kim 24 closed r006 lina 23 paused r007 chen 3 paused r008 hana 24 failed r009 hana 23 closed r010 chen 22 pending
25 5 22 16 24 23 3 24 23 22
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049286
qwen/qwen3.7-plus
awkweave-0049287
The first row is a header. Print display_name for data rows whose score is greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 eli 29 closed r002 alice 9 ready r003 ivan 11 pending r004 kim 17 failed r005 chen 23 active r006 bruno 26 closed r007 kim 7 closed r008 hana 13 closed
eli kim chen bruno
record_id display_name score state r001 eli 25 pending r002 kim 17 paused r003 dina 18 pending r004 dina 18 active r005 eli 11 closed r006 gus 4 ready r007 bruno 13 pending r008 kim 14 closed r009 lina 16 ready r010 farah 26 closed
eli kim dina dina farah
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049287-p1
Ignoring the header row, output the display_name field for any record where the score value is strictly greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 eli 29 closed r002 alice 9 ready r003 ivan 11 pending r004 kim 17 failed r005 chen 23 active r006 bruno 26 closed r007 kim 7 closed r008 hana 13 closed
eli kim chen bruno
record_id display_name score state r001 eli 25 pending r002 kim 17 paused r003 dina 18 pending r004 dina 18 active r005 eli 11 closed r006 gus 4 ready r007 bruno 13 pending r008 kim 14 closed r009 lina 16 ready r010 farah 26 closed
eli kim dina dina farah
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049287
qwen/qwen3.7-plus
awkweave-0049288
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
bruno 8 ready farah 8 pending jules 22 failed lina 6 active dina 19 paused gus 4 active gus 26 pending jules 9 failed
bruno farah jules lina dina gus gus jules
hana 22 closed farah 30 ready chen 4 closed jules 1 paused alice 18 active eli 7 active farah 30 failed alice 21 pending gus 3 failed
hana farah chen jules alice eli farah alice gus
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049288-p1
Given tab-separated input, extract and print the first column from every record.
BEGIN{FS=OFS="\t"}{print $1}
bruno 8 ready farah 8 pending jules 22 failed lina 6 active dina 19 paused gus 4 active gus 26 pending jules 9 failed
bruno farah jules lina dina gus gus jules
hana 22 closed farah 30 ready chen 4 closed jules 1 paused alice 18 active eli 7 active farah 30 failed alice 21 pending gus 3 failed
hana farah chen jules alice eli farah alice gus
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049288
qwen/qwen3.7-plus
awkweave-0049289
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 11.
BEGIN{FS=OFS=","}$2>11{print $1}
chen,30,active kim,5,ready lina,9,closed chen,18,pending lina,7,pending ivan,16,paused dina,8,pending ivan,22,pending dina,6,ready bruno,11,ready
chen chen ivan ivan
kim,30,failed kim,22,closed alice,6,paused farah,18,closed eli,4,closed eli,18,closed jules,28,pending jules,4,closed dina,25,active
kim kim farah eli jules dina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049289-p1
For simple comma-separated data without quoted commas, print the first column only if the value in the second column is greater than 11.
BEGIN{FS=OFS=","}$2>11{print $1}
chen,30,active kim,5,ready lina,9,closed chen,18,pending lina,7,pending ivan,16,paused dina,8,pending ivan,22,pending dina,6,ready bruno,11,ready
chen chen ivan ivan
kim,30,failed kim,22,closed alice,6,paused farah,18,closed eli,4,closed eli,18,closed jules,28,pending jules,4,closed dina,25,active
kim kim farah eli jules dina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049289
qwen/qwen3.7-plus
awkweave-0049300
Print column 3 only for rows where column 2 is exactly closed.
$2 == "closed"{print $3}
110 closed farah birch 106 paused kim ember 111 failed dina delta 87 failed bruno fable 107 failed farah delta 111 paused farah juniper 110 paused chen cobalt 81 pending bruno harbor
farah
38 failed lina fable 13 pending chen delta 85 active lina indigo 77 failed alice amber 120 ready ivan birch 41 ready dina grove 52 paused chen fable 51 closed gus juniper
gus
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049300-p1
Output the third column exclusively for rows where the second column contains the exact value 'closed'.
$2 == "closed"{print $3}
110 closed farah birch 106 paused kim ember 111 failed dina delta 87 failed bruno fable 107 failed farah delta 111 paused farah juniper 110 paused chen cobalt 81 pending bruno harbor
farah
38 failed lina fable 13 pending chen delta 85 active lina indigo 77 failed alice amber 120 ready ivan birch 41 ready dina grove 52 paused chen fable 51 closed gus juniper
gus
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049300
qwen/qwen3.7-plus
awkweave-0049301
Print all fields from lines where field 2 begins with INFO.
$2 ~ /^INFO/
cobalt DEBUG 107 cobalt INFO 51 delta DEBUG 8 grove DEBUG 69 juniper INFO 17 indigo ERROR 113 harbor WARN 104 cobalt INFO 0 fable INFO 7 grove DEBUG 76
cobalt INFO 51 juniper INFO 17 cobalt INFO 0 fable INFO 7
birch ERROR 45 ember WARN 47 juniper WARN 49 delta DEBUG 36 amber ERROR 74 birch DEBUG 75 harbor DEBUG 57 cobalt WARN 95 cobalt DEBUG 18
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049301-p1
Print all fields from any line where the second field starts with the prefix 'INFO'.
$2 ~ /^INFO/
cobalt DEBUG 107 cobalt INFO 51 delta DEBUG 8 grove DEBUG 69 juniper INFO 17 indigo ERROR 113 harbor WARN 104 cobalt INFO 0 fable INFO 7 grove DEBUG 76
cobalt INFO 51 juniper INFO 17 cobalt INFO 0 fable INFO 7
birch ERROR 45 ember WARN 47 juniper WARN 49 delta DEBUG 36 amber ERROR 74 birch DEBUG 75 harbor DEBUG 57 cobalt WARN 95 cobalt DEBUG 18
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049301
qwen/qwen3.7-plus
awkweave-0049302
Print every line except those containing the exact text cobalt.
$0 !~ /cobalt/
birch 77 pending grove 78 pending amber 47 pending delta 50 closed cobalt 37 failed birch 68 active indigo 11 paused fable 70 pending juniper 33 paused delta 51 ready cobalt 999 active
birch 77 pending grove 78 pending amber 47 pending delta 50 closed birch 68 active indigo 11 paused fable 70 pending juniper 33 paused delta 51 ready
fable 69 failed ember 97 failed indigo 94 paused delta 64 paused harbor 2 pending delta 88 active fable 15 pending cobalt 999 active
fable 69 failed ember 97 failed indigo 94 paused delta 64 paused harbor 2 pending delta 88 active fable 15 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049302-p1
Output every line from the input except those that contain the exact string 'cobalt'.
$0 !~ /cobalt/
birch 77 pending grove 78 pending amber 47 pending delta 50 closed cobalt 37 failed birch 68 active indigo 11 paused fable 70 pending juniper 33 paused delta 51 ready cobalt 999 active
birch 77 pending grove 78 pending amber 47 pending delta 50 closed birch 68 active indigo 11 paused fable 70 pending juniper 33 paused delta 51 ready
fable 69 failed ember 97 failed indigo 94 paused delta 64 paused harbor 2 pending delta 88 active fable 15 pending cobalt 999 active
fable 69 failed ember 97 failed indigo 94 paused delta 64 paused harbor 2 pending delta 88 active fable 15 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049302
qwen/qwen3.7-plus
awkweave-0049303
Print lines 2 through 4, including both endpoints.
NR >= 2 && NR <= 4
gus birch 108 lina grove 34 alice grove 37 hana indigo 65 hana fable 84 kim birch 76
lina grove 34 alice grove 37 hana indigo 65
dina grove 39 bruno indigo 61 hana juniper 120 bruno grove 109 bruno indigo 24 chen harbor 46 jules juniper 94 eli grove 84 jules cobalt 58 farah birch 8
bruno indigo 61 hana juniper 120 bruno grove 109
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049303-p1
Extract and print lines 2 through 4, inclusive of both the start and end lines.
NR >= 2 && NR <= 4
gus birch 108 lina grove 34 alice grove 37 hana indigo 65 hana fable 84 kim birch 76
lina grove 34 alice grove 37 hana indigo 65
dina grove 39 bruno indigo 61 hana juniper 120 bruno grove 109 bruno indigo 24 chen harbor 46 jules juniper 94 eli grove 84 jules cobalt 58 farah birch 8
bruno indigo 61 hana juniper 120 bruno grove 109
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049303
qwen/qwen3.7-plus
awkweave-0049304
Output only the first 4 records.
NR <= 4
eli 86 indigo eli 20 juniper kim 92 grove jules 78 indigo farah 110 indigo bruno 3 birch lina 56 delta bruno 118 ember farah 81 ember dina 37 ember
eli 86 indigo eli 20 juniper kim 92 grove jules 78 indigo
jules 48 cobalt chen 105 indigo eli 114 ember dina 98 delta bruno 95 amber ivan 30 birch alice 57 indigo lina 86 delta hana 56 birch alice 9 fable
jules 48 cobalt chen 105 indigo eli 114 ember dina 98 delta
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049304-p1
Restrict the output to only the first 4 records of the input.
NR <= 4
eli 86 indigo eli 20 juniper kim 92 grove jules 78 indigo farah 110 indigo bruno 3 birch lina 56 delta bruno 118 ember farah 81 ember dina 37 ember
eli 86 indigo eli 20 juniper kim 92 grove jules 78 indigo
jules 48 cobalt chen 105 indigo eli 114 ember dina 98 delta bruno 95 amber ivan 30 birch alice 57 indigo lina 86 delta hana 56 birch alice 9 fable
jules 48 cobalt chen 105 indigo eli 114 ember dina 98 delta
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049304
qwen/qwen3.7-plus
awkweave-0049305
Skip the first line and print every remaining line unchanged.
NR > 1
alice 37 juniper farah 96 ember ivan 37 delta alice 64 indigo lina 70 grove alice 98 fable
farah 96 ember ivan 37 delta alice 64 indigo lina 70 grove alice 98 fable
ivan 83 ember farah 30 harbor hana 2 fable eli 116 amber lina 79 cobalt farah 65 juniper bruno 72 juniper bruno 107 amber dina 116 juniper farah 51 birch
farah 30 harbor hana 2 fable eli 116 amber lina 79 cobalt farah 65 juniper bruno 72 juniper bruno 107 amber dina 116 juniper farah 51 birch
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049305-p1
Omit the first line of the input and print all remaining lines exactly as they appear.
NR > 1
alice 37 juniper farah 96 ember ivan 37 delta alice 64 indigo lina 70 grove alice 98 fable
farah 96 ember ivan 37 delta alice 64 indigo lina 70 grove alice 98 fable
ivan 83 ember farah 30 harbor hana 2 fable eli 116 amber lina 79 cobalt farah 65 juniper bruno 72 juniper bruno 107 amber dina 116 juniper farah 51 birch
farah 30 harbor hana 2 fable eli 116 amber lina 79 cobalt farah 65 juniper bruno 72 juniper bruno 107 amber dina 116 juniper farah 51 birch
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049305
qwen/qwen3.7-plus
awkweave-0049306
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
eli closed 5 dina paused 96 lina pending 114 dina ready 76 gus ready 50 farah active 43 alice ready 112 chen ready 55 ivan failed 19 dina failed 114
1
eli paused 103 farah ready 31 ivan ready 59 hana paused 30 bruno closed 85 ivan active 105 hana pending 67 chen closed 76 chen paused 73
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049306-p1
Output the count of entries where the second column is 'pending', defaulting to 0 if no matches are found.
$2 == "pending"{n++}END{print n+0}
eli closed 5 dina paused 96 lina pending 114 dina ready 76 gus ready 50 farah active 43 alice ready 112 chen ready 55 ivan failed 19 dina failed 114
1
eli paused 103 farah ready 31 ivan ready 59 hana paused 30 bruno closed 85 ivan active 105 hana pending 67 chen closed 76 chen paused 73
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049306
qwen/qwen3.7-plus
awkweave-0049307
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
gus grove 25 lina indigo 15 lina cobalt 4 gus fable 7 hana grove 13 farah cobalt 4 bruno grove 27 eli fable 7 chen juniper 22 chen harbor 25
149
lina ember 22 hana indigo 16 bruno delta 30 jules harbor 24 ivan cobalt 3 ivan amber 13 ivan cobalt 23 lina amber 24 alice ember 13 lina grove 16
184
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049307-p1
Compute and display the total sum of all integer values found in the third column.
{s+=$3}END{print s+0}
gus grove 25 lina indigo 15 lina cobalt 4 gus fable 7 hana grove 13 farah cobalt 4 bruno grove 27 eli fable 7 chen juniper 22 chen harbor 25
149
lina ember 22 hana indigo 16 bruno delta 30 jules harbor 24 ivan cobalt 3 ivan amber 13 ivan cobalt 23 lina amber 24 alice ember 13 lina grove 16
184
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049307
qwen/qwen3.7-plus
awkweave-0049308
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
7 amber gus 6 grove ivan 8 harbor dina 26 fable bruno 12 fable hana 16 harbor lina 29 juniper eli
14.86
7 harbor gus 12 birch kim 4 harbor jules 15 fable dina 11 grove bruno 24 cobalt lina 23 indigo hana
13.71
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049308-p1
Calculate the average of the values in the first column and format the result to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
7 amber gus 6 grove ivan 8 harbor dina 26 fable bruno 12 fable hana 16 harbor lina 29 juniper eli
14.86
7 harbor gus 12 birch kim 4 harbor jules 15 fable dina 11 grove bruno 24 cobalt lina 23 indigo hana
13.71
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049308
qwen/qwen3.7-plus
awkweave-0049309
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
23 harbor gus 27 fable alice 22 indigo bruno 30 fable gus 19 birch gus 14 indigo alice 7 delta lina 23 amber bruno 6 grove kim
6
23 grove kim 27 birch chen 16 grove hana 12 grove farah 23 grove dina 12 cobalt chen 4 grove bruno
4
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049309-p1
Identify and output the minimum numeric value present in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
23 harbor gus 27 fable alice 22 indigo bruno 30 fable gus 19 birch gus 14 indigo alice 7 delta lina 23 amber bruno 6 grove kim
6
23 grove kim 27 birch chen 16 grove hana 12 grove farah 23 grove dina 12 cobalt chen 4 grove bruno
4
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049309
qwen/qwen3.7-plus
awkweave-0049310
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
amber hana 13 fable chen 23 cobalt gus 7 grove kim 28 birch hana 24 fable dina 19 juniper kim 25
28
fable gus 16 birch alice 13 birch ivan 10 amber hana 19 grove kim 11 juniper eli 25 harbor alice 30 birch bruno 27 harbor alice 9 delta bruno 22
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049310-p1
Identify and output the maximum numeric value present in the third column.
NR==1||$3>extreme{extreme=$3}END{print extreme}
amber hana 13 fable chen 23 cobalt gus 7 grove kim 28 birch hana 24 fable dina 19 juniper kim 25
28
fable gus 16 birch alice 13 birch ivan 10 amber hana 19 grove kim 11 juniper eli 25 harbor alice 30 birch bruno 27 harbor alice 9 delta bruno 22
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049310
qwen/qwen3.7-plus
awkweave-0049311
Count all input records and print the total.
END{print NR}
kim 43 jules 47 chen 24 alice 72 hana 38 hana 56 hana 69
7
bruno 19 farah 78 lina 88 jules 98 hana 105 lina 116 chen 63 lina 76 dina 85 dina 40
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049311-p1
Count the total number of input records and print the resulting figure.
END{print NR}
kim 43 jules 47 chen 24 alice 72 hana 38 hana 56 hana 69
7
bruno 19 farah 78 lina 88 jules 98 hana 105 lina 116 chen 63 lina 76 dina 85 dina 40
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049311
qwen/qwen3.7-plus
awkweave-0049312
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
gus grove 74 bruno delta 13 chen harbor 111 lina fable 25 dina birch 78 kim delta 2 kim ember 87 jules fable 92 kim juniper 100 farah amber 22 lina fable 25
gus grove 74 bruno delta 13 chen harbor 111 lina fable 25 dina birch 78 kim delta 2 kim ember 87 jules fable 92 kim juniper 100 farah amber 22
chen amber 34 farah ember 94 farah ember 94 ivan harbor 117 ivan juniper 72 jules cobalt 99 kim cobalt 78
chen amber 34 farah ember 94 ivan harbor 117 ivan juniper 72 jules cobalt 99 kim cobalt 78
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049312-p1
Eliminate exact duplicate lines while maintaining the original order and keeping only the first instance of each.
!seen[$0]++
gus grove 74 bruno delta 13 chen harbor 111 lina fable 25 dina birch 78 kim delta 2 kim ember 87 jules fable 92 kim juniper 100 farah amber 22 lina fable 25
gus grove 74 bruno delta 13 chen harbor 111 lina fable 25 dina birch 78 kim delta 2 kim ember 87 jules fable 92 kim juniper 100 farah amber 22
chen amber 34 farah ember 94 farah ember 94 ivan harbor 117 ivan juniper 72 jules cobalt 99 kim cobalt 78
chen amber 34 farah ember 94 ivan harbor 117 ivan juniper 72 jules cobalt 99 kim cobalt 78
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049312
qwen/qwen3.7-plus
awkweave-0049313
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
farah indigo 34 hana juniper 26 chen fable 119 alice juniper 67 lina juniper 21 alice cobalt 41 chen cobalt 19 dina amber 40 dina harbor 6 farah grove 91
farah indigo 34 hana juniper 26 chen fable 119 alice juniper 67 lina juniper 21 dina amber 40
gus fable 112 eli harbor 111 ivan grove 5 lina fable 56 alice amber 67 lina grove 99
gus fable 112 eli harbor 111 ivan grove 5 lina fable 56 alice amber 67
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049313-p1
Retain only the first occurrence for every unique value in the first column, preserving the original input sequence.
!seen[$1]++
farah indigo 34 hana juniper 26 chen fable 119 alice juniper 67 lina juniper 21 alice cobalt 41 chen cobalt 19 dina amber 40 dina harbor 6 farah grove 91
farah indigo 34 hana juniper 26 chen fable 119 alice juniper 67 lina juniper 21 dina amber 40
gus fable 112 eli harbor 111 ivan grove 5 lina fable 56 alice amber 67 lina grove 99
gus fable 112 eli harbor 111 ivan grove 5 lina fable 56 alice amber 67
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049313
qwen/qwen3.7-plus
awkweave-0049314
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
bruno 4 grove alice 14 amber gus 19 juniper eli 22 fable ivan 6 juniper bruno 17 cobalt ivan 19 harbor
bruno 4 alice 18 gus 37 eli 59 ivan 65 bruno 82 ivan 101
farah 30 harbor dina 20 indigo gus 8 delta jules 9 amber farah 2 amber lina 14 amber dina 7 amber
farah 30 dina 50 gus 58 jules 67 farah 69 lina 83 dina 90
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049314-p1
For each record, output the value from the first column alongside the cumulative sum of the second column, separated by a space.
{s+=$2;print $1,s}
bruno 4 grove alice 14 amber gus 19 juniper eli 22 fable ivan 6 juniper bruno 17 cobalt ivan 19 harbor
bruno 4 alice 18 gus 37 eli 59 ivan 65 bruno 82 ivan 101
farah 30 harbor dina 20 indigo gus 8 delta jules 9 amber farah 2 amber lina 14 amber dina 7 amber
farah 30 dina 50 gus 58 jules 67 farah 69 lina 83 dina 90
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049314
qwen/qwen3.7-plus
awkweave-0049315
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
dina 23 14 amber dina 14 19 birch ivan 21 20 delta hana 17 27 harbor hana 8 19 cobalt gus 21 26 ember jules 17 6 cobalt
dina 37 dina 33 ivan 41 hana 44 hana 27 gus 47 jules 23
farah 6 23 birch gus 16 29 cobalt eli 19 18 harbor gus 26 30 amber eli 5 25 grove bruno 18 4 juniper jules 5 18 amber
farah 29 gus 45 eli 37 gus 56 eli 30 bruno 22 jules 23
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049315-p1
Output the first field followed by the sum of the second and third fields for every row.
{print $1,$2+$3}
dina 23 14 amber dina 14 19 birch ivan 21 20 delta hana 17 27 harbor hana 8 19 cobalt gus 21 26 ember jules 17 6 cobalt
dina 37 dina 33 ivan 41 hana 44 hana 27 gus 47 jules 23
farah 6 23 birch gus 16 29 cobalt eli 19 18 harbor gus 26 30 amber eli 5 25 grove bruno 18 4 juniper jules 5 18 amber
farah 29 gus 45 eli 37 gus 56 eli 30 bruno 22 jules 23
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049315
qwen/qwen3.7-plus
awkweave-0049316
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
lina 23 ivan 24 alice 16 eli 27 ivan 24 alice 2 kim 23
lina fail ivan fail alice fail eli pass ivan fail alice fail kim fail
gus 2 gus 13 eli 18 gus 5 ivan 26 kim 16 ivan 28
gus fail gus fail eli fail gus fail ivan pass kim fail ivan pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049316-p1
Print the value from the first column along with 'pass' if the second column is 25 or greater, otherwise print 'fail'.
{print $1,($2>=25?"pass":"fail")}
lina 23 ivan 24 alice 16 eli 27 ivan 24 alice 2 kim 23
lina fail ivan fail alice fail eli pass ivan fail alice fail kim fail
gus 2 gus 13 eli 18 gus 5 ivan 26 kim 16 ivan 28
gus fail gus fail eli fail gus fail ivan pass kim fail ivan pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049316
qwen/qwen3.7-plus
awkweave-0049317
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
farah fable 106 bruno grove 16 chen indigo 59 alice ember 37 kim indigo 12 ivan harbor 22 kim delta 82 bruno birch 65
FARAH BRUNO CHEN ALICE KIM IVAN KIM BRUNO
gus fable 76 kim birch 70 kim fable 91 jules grove 105 gus indigo 47 kim amber 75 farah birch 111 alice delta 17 eli amber 49 alice grove 45
GUS KIM KIM JULES GUS KIM FARAH ALICE ELI ALICE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049317-p1
Transform the first column to uppercase letters and output only that modified column.
{print toupper($1)}
farah fable 106 bruno grove 16 chen indigo 59 alice ember 37 kim indigo 12 ivan harbor 22 kim delta 82 bruno birch 65
FARAH BRUNO CHEN ALICE KIM IVAN KIM BRUNO
gus fable 76 kim birch 70 kim fable 91 jules grove 105 gus indigo 47 kim amber 75 farah birch 111 alice delta 17 eli amber 49 alice grove 45
GUS KIM KIM JULES GUS KIM FARAH ALICE ELI ALICE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049317
qwen/qwen3.7-plus
awkweave-0049318
From column 1, print 3 characters starting at character 1.
{print substr($1,1,3)}
indigo 113 juniper 116 indigo 111 birch 80 grove 117 cobalt 52 delta 112 amber 26 indigo 22
ind jun ind bir gro cob del amb ind
ember 61 delta 101 amber 10 birch 62 grove 110 birch 23 ember 79 juniper 94
emb del amb bir gro bir emb jun
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049318-p1
Extract and print the first 3 characters from column 1.
{print substr($1,1,3)}
indigo 113 juniper 116 indigo 111 birch 80 grove 117 cobalt 52 delta 112 amber 26 indigo 22
ind jun ind bir gro cob del amb ind
ember 61 delta 101 amber 10 birch 62 grove 110 birch 23 ember 79 juniper 94
emb del amb bir gro bir emb jun
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049318
qwen/qwen3.7-plus
awkweave-0049319
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
birch_birch 33 grove_cobalt 91 grove_indigo 42 ember_delta 50 birch_fable 106 harbor_harbor 97 harbor_harbor 54 fable_delta 32
birch birch grove cobalt grove indigo ember delta birch fable harbor harbor harbor harbor fable delta
birch_juniper 87 cobalt_fable 70 fable_amber 93 amber_indigo 23 ember_amber 106 grove_cobalt 97 harbor_grove 43 birch_cobalt 23 cobalt_delta 100
birch juniper cobalt fable fable amber amber indigo ember amber grove cobalt harbor grove birch cobalt cobalt delta
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049319-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
birch_birch 33 grove_cobalt 91 grove_indigo 42 ember_delta 50 birch_fable 106 harbor_harbor 97 harbor_harbor 54 fable_delta 32
birch birch grove cobalt grove indigo ember delta birch fable harbor harbor harbor harbor fable delta
birch_juniper 87 cobalt_fable 70 fable_amber 93 amber_indigo 23 ember_amber 106 grove_cobalt 97 harbor_grove 43 birch_cobalt 23 cobalt_delta 100
birch juniper cobalt fable fable amber amber indigo ember amber grove cobalt harbor grove birch cobalt cobalt delta
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049319
qwen/qwen3.7-plus
awkweave-0049320
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)}
chen juniper 24 closed ivan grove 28 failed jules delta 52 paused hana grove 87 ready eli birch 93 failed jules juniper 30 pending bruno grove 95 closed gus harbor 83 ready ivan indigo 56 closed bruno fable 81 ready
closed 24 juniper chen failed 28 grove ivan paused 52 delta jules ready 87 grove hana failed 93 birch eli pending 30 juniper jules closed 95 grove bruno ready 83 harbor gus closed 56 indigo ivan ready 81 fable bruno
ivan cobalt 55 failed lina cobalt 59 pending eli delta 76 closed ivan juniper 45 failed lina juniper 64 ready chen harbor 37 pending dina fable 92 pending dina grove 112 failed chen delta 3 active ivan birch 110 pending
failed 55 cobalt ivan pending 59 cobalt lina closed 76 delta eli failed 45 juniper ivan ready 64 juniper lina pending 37 harbor chen pending 92 fable dina failed 112 grove dina active 3 delta chen pending 110 birch ivan
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049320-p1
Reverse the sequence of fields on each line and display all of them.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
chen juniper 24 closed ivan grove 28 failed jules delta 52 paused hana grove 87 ready eli birch 93 failed jules juniper 30 pending bruno grove 95 closed gus harbor 83 ready ivan indigo 56 closed bruno fable 81 ready
closed 24 juniper chen failed 28 grove ivan paused 52 delta jules ready 87 grove hana failed 93 birch eli pending 30 juniper jules closed 95 grove bruno ready 83 harbor gus closed 56 indigo ivan ready 81 fable bruno
ivan cobalt 55 failed lina cobalt 59 pending eli delta 76 closed ivan juniper 45 failed lina juniper 64 ready chen harbor 37 pending dina fable 92 pending dina grove 112 failed chen delta 3 active ivan birch 110 pending
failed 55 cobalt ivan pending 59 cobalt lina closed 76 delta eli failed 45 juniper ivan ready 64 juniper lina pending 37 harbor chen pending 92 fable dina failed 112 grove dina active 3 delta chen pending 110 birch ivan
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049320
qwen/qwen3.7-plus
awkweave-0049321
Print the number of whitespace-separated fields on each line.
{print NF}
dina birch 26 pending jules delta 31 active farah grove 31 active lina delta 42 failed chen indigo 71 closed chen grove 4 failed gus fable 97 closed dina birch 53 paused
4 4 4 4 4 4 4 4
gus birch 111 closed ivan grove 76 pending gus birch 100 pending jules ember 39 ready ivan fable 21 paused gus ember 80 failed
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049321-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
dina birch 26 pending jules delta 31 active farah grove 31 active lina delta 42 failed chen indigo 71 closed chen grove 4 failed gus fable 97 closed dina birch 53 paused
4 4 4 4 4 4 4 4
gus birch 111 closed ivan grove 76 pending gus birch 100 pending jules ember 39 ready ivan fable 21 paused gus ember 80 failed
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049321
qwen/qwen3.7-plus
awkweave-0049322
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]]}
kim alpha 89 farah beta 68 jules alpha 84 alice beta 3 ivan alpha 43 lina beta 100 kim alpha 33 alice delta 117 ivan alpha 13
alpha 5 beta 3 delta 1
hana gamma 24 kim delta 92 lina delta 15 bruno delta 36 dina beta 33 ivan delta 57
gamma 1 delta 4 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049322-p1
Tally records by unique values in column 2, listing each value and its total 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]]}
kim alpha 89 farah beta 68 jules alpha 84 alice beta 3 ivan alpha 43 lina beta 100 kim alpha 33 alice delta 117 ivan alpha 13
alpha 5 beta 3 delta 1
hana gamma 24 kim delta 92 lina delta 15 bruno delta 36 dina beta 33 ivan delta 57
gamma 1 delta 4 beta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049322
qwen/qwen3.7-plus
awkweave-0049323
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]]}
chen delta 14 jules gamma 14 gus delta 5 lina gamma 1 bruno alpha 5 dina alpha 21
delta 19 gamma 15 alpha 26
lina alpha 23 ivan delta 30 jules alpha 16 gus gamma 7 farah delta 25 gus delta 19 bruno alpha 19 gus beta 16
alpha 58 delta 74 gamma 7 beta 16
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049323-p1
Calculate the sum of column 3 grouped by column 2 categories, presenting results 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]]}
chen delta 14 jules gamma 14 gus delta 5 lina gamma 1 bruno alpha 5 dina alpha 21
delta 19 gamma 15 alpha 26
lina alpha 23 ivan delta 30 jules alpha 16 gus gamma 7 farah delta 25 gus delta 19 bruno alpha 19 gus beta 16
alpha 58 delta 74 gamma 7 beta 16
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049323
qwen/qwen3.7-plus
awkweave-0049324
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
delta juniper 106 beta birch 80 gamma fable 13 delta ember 85 alpha amber 39 gamma harbor 41 gamma cobalt 42
delta 2 gamma 3
beta cobalt 72 delta harbor 76 delta harbor 68 beta cobalt 4 beta birch 113 alpha indigo 88
beta 3 delta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049324-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]]}
delta juniper 106 beta birch 80 gamma fable 13 delta ember 85 alpha amber 39 gamma harbor 41 gamma cobalt 42
delta 2 gamma 3
beta cobalt 72 delta harbor 76 delta harbor 68 beta cobalt 4 beta birch 113 alpha indigo 88
beta 3 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049324
qwen/qwen3.7-plus
awkweave-0049325
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"]}
record_id display_name region state r001 hana 28 failed r002 jules 14 active r003 chen 14 paused r004 farah 1 active r005 alice 22 closed r006 hana 25 closed r007 lina 19 paused
hana jules chen farah alice hana lina
record_id display_name region state r001 ivan 20 failed r002 ivan 27 ready r003 jules 17 paused r004 eli 1 active r005 hana 2 closed r006 jules 26 pending r007 hana 2 closed r008 ivan 20 active
ivan ivan jules eli hana jules hana ivan
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049325-p1
Skip the header row and output the display_name column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
record_id display_name region state r001 hana 28 failed r002 jules 14 active r003 chen 14 paused r004 farah 1 active r005 alice 22 closed r006 hana 25 closed r007 lina 19 paused
hana jules chen farah alice hana lina
record_id display_name region state r001 ivan 20 failed r002 ivan 27 ready r003 jules 17 paused r004 eli 1 active r005 hana 2 closed r006 jules 26 pending r007 hana 2 closed r008 ivan 20 active
ivan ivan jules eli hana jules hana ivan
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049325
qwen/qwen3.7-plus
awkweave-0049326
The first row is a header. Print display_name for data rows whose score is greater than 17.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>17{print $h["display_name"]}
record_id display_name score state r001 dina 5 paused r002 dina 2 pending r003 gus 29 active r004 ivan 24 active r005 dina 16 failed r006 gus 15 failed r007 hana 20 failed r008 lina 16 ready r009 dina 12 pending r010 eli 4 active
gus ivan hana
record_id display_name score state r001 farah 3 active r002 jules 15 failed r003 gus 5 pending r004 alice 29 closed r005 kim 17 closed r006 eli 10 ready r007 chen 11 active r008 kim 20 failed r009 chen 18 closed r010 chen 18 closed
alice kim chen chen
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049326-p1
Ignore the header row and print display_name for rows where the score is greater than 17.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>17{print $h["display_name"]}
record_id display_name score state r001 dina 5 paused r002 dina 2 pending r003 gus 29 active r004 ivan 24 active r005 dina 16 failed r006 gus 15 failed r007 hana 20 failed r008 lina 16 ready r009 dina 12 pending r010 eli 4 active
gus ivan hana
record_id display_name score state r001 farah 3 active r002 jules 15 failed r003 gus 5 pending r004 alice 29 closed r005 kim 17 closed r006 eli 10 ready r007 chen 11 active r008 kim 20 failed r009 chen 18 closed r010 chen 18 closed
alice kim chen chen
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049326
qwen/qwen3.7-plus
awkweave-0049327
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
jules 9 ready gus 10 paused chen 30 pending hana 19 pending eli 28 closed gus 7 ready lina 18 paused jules 17 failed bruno 10 paused hana 29 active
ready paused pending pending closed ready paused failed paused active
hana 19 closed alice 12 pending ivan 5 failed bruno 27 closed hana 14 ready chen 1 failed
closed pending failed closed ready failed
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049327-p1
Parse tab-separated input and output the third column for every record.
BEGIN{FS=OFS="\t"}{print $3}
jules 9 ready gus 10 paused chen 30 pending hana 19 pending eli 28 closed gus 7 ready lina 18 paused jules 17 failed bruno 10 paused hana 29 active
ready paused pending pending closed ready paused failed paused active
hana 19 closed alice 12 pending ivan 5 failed bruno 27 closed hana 14 ready chen 1 failed
closed pending failed closed ready failed
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049327
qwen/qwen3.7-plus
awkweave-0049328
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 15.
BEGIN{FS=OFS=","}$2>15{print $1}
lina,15,active hana,11,active jules,5,ready chen,17,closed bruno,15,closed chen,11,paused
chen
alice,24,failed chen,10,active ivan,9,pending bruno,30,ready kim,2,ready lina,29,failed
alice bruno lina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049328-p1
For simple comma-separated input without quoted commas, print column 1 if column 2 is greater than 15.
BEGIN{FS=OFS=","}$2>15{print $1}
lina,15,active hana,11,active jules,5,ready chen,17,closed bruno,15,closed chen,11,paused
chen
alice,24,failed chen,10,active ivan,9,pending bruno,30,ready kim,2,ready lina,29,failed
alice bruno lina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049328
qwen/qwen3.7-plus
awkweave-0049329
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
bruno amber 55 kim indigo 5 chen ember 79 kim indigo 9 ivan birch 78 ivan delta 113 farah birch 73
bruno amber 55 kim indigo 5 chen ember 79 kim indigo 9 ivan birch 78 ivan delta 113 farah birch 73
jules indigo 84 ivan delta 20 ivan indigo 7 gus delta 40 alice birch 12 ivan indigo 114 chen grove 107 eli juniper 40
jules indigo 84 ivan delta 20 ivan indigo 7 gus delta 40 alice birch 12 ivan indigo 114 chen grove 107 eli juniper 40
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049329-p1
Remove leading and trailing whitespace and replace internal whitespace sequences with a single space.
{$1=$1;print}
bruno amber 55 kim indigo 5 chen ember 79 kim indigo 9 ivan birch 78 ivan delta 113 farah birch 73
bruno amber 55 kim indigo 5 chen ember 79 kim indigo 9 ivan birch 78 ivan delta 113 farah birch 73
jules indigo 84 ivan delta 20 ivan indigo 7 gus delta 40 alice birch 12 ivan indigo 114 chen grove 107 eli juniper 40
jules indigo 84 ivan delta 20 ivan indigo 7 gus delta 40 alice birch 12 ivan indigo 114 chen grove 107 eli juniper 40
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049329
qwen/qwen3.7-plus
awkweave-0049330
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
dina juniper 37 ready dina harbor 4 closed kim cobalt 62 ready gus amber 90 paused jules cobalt 107 ready alice indigo 93 paused gus delta 71 failed hana amber 61 failed hana harbor 63 paused hana cobalt 11 ready
jules cobalt 107 ready
alice amber 70 pending eli birch 98 failed farah fable 19 paused bruno harbor 82 active dina ember 76 pending chen birch 61 closed farah amber 39 pending eli cobalt 40 paused alice delta 60 failed lina harbor 95 pending
alice amber 70 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049330-p1
Output the longest line from the input, selecting the first one encountered if multiple lines share the maximum length.
{if(length($0)>length(best))best=$0}END{print best}
dina juniper 37 ready dina harbor 4 closed kim cobalt 62 ready gus amber 90 paused jules cobalt 107 ready alice indigo 93 paused gus delta 71 failed hana amber 61 failed hana harbor 63 paused hana cobalt 11 ready
jules cobalt 107 ready
alice amber 70 pending eli birch 98 failed farah fable 19 paused bruno harbor 82 active dina ember 76 pending chen birch 61 closed farah amber 39 pending eli cobalt 40 paused alice delta 60 failed lina harbor 95 pending
alice amber 70 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049330
qwen/qwen3.7-plus
awkweave-0049331
Print every 4th line starting at line 3 (then line 7, and so on).
NR%4==3
ivan 20 kim 96 jules 2 dina 22 jules 116 gus 8 chen 76 chen 2
jules 2 chen 76
alice 16 ivan 56 eli 64 hana 77 farah 11 alice 43 kim 105 hana 111 ivan 4 lina 119
eli 64 kim 105
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0049331-p1
Starting from line 3, output every fourth line (i.e., lines 3, 7, 11, etc.).
NR%4==3
ivan 20 kim 96 jules 2 dina 22 jules 116 gus 8 chen 76 chen 2
jules 2 chen 76
alice 16 ivan 56 eli 64 hana 77 farah 11 alice 43 kim 105 hana 111 ivan 4 lina 119
eli 64 kim 105
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0049331
qwen/qwen3.7-plus
awkweave-0049332
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
delta ember 45 alpha ember 110 delta grove 84 delta fable 25 delta amber 86 beta amber 111
4
gamma ember 10 gamma birch 28 alpha cobalt 94 delta harbor 111 delta amber 30 gamma cobalt 65 delta amber 50 gamma indigo 39 beta indigo 64 alpha ember 10
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null