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-0032501-p1
Identify and print the maximum numeric value found in the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
harbor 26 jules harbor 20 jules ember 27 bruno harbor 5 lina indigo 25 eli indigo 4 bruno indigo 4 dina fable 20 dina delta 10 lina amber 19 eli
27
amber 11 ivan grove 6 gus indigo 10 lina birch 30 ivan cobalt 16 eli juniper 18 jules birch 6 eli
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032501
qwen/qwen3.7-plus
awkweave-0032502
Count all input records and print the total.
END{print NR}
lina 16 dina 77 farah 54 alice 89 hana 40 dina 25 lina 105 bruno 65 hana 31 dina 71
10
dina 35 lina 60 bruno 51 chen 5 dina 60 farah 55
6
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032502-p1
Count the total number of input records and print the result.
END{print NR}
lina 16 dina 77 farah 54 alice 89 hana 40 dina 25 lina 105 bruno 65 hana 31 dina 71
10
dina 35 lina 60 bruno 51 chen 5 dina 60 farah 55
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032502
qwen/qwen3.7-plus
awkweave-0032503
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
jules grove 108 eli amber 62 jules grove 54 eli amber 68 lina cobalt 40 dina indigo 2 lina cobalt 101 gus fable 108 gus fable 108 farah amber 53 dina ember 111
jules grove 108 eli amber 62 jules grove 54 eli amber 68 lina cobalt 40 dina indigo 2 lina cobalt 101 gus fable 108 farah amber 53 dina ember 111
farah indigo 33 farah cobalt 30 bruno amber 117 bruno amber 117 kim amber 97 jules grove 14 farah fable 112 gus fable 21
farah indigo 33 farah cobalt 30 bruno amber 117 kim amber 97 jules grove 14 farah fable 112 gus fable 21
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032503-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original order.
!seen[$0]++
jules grove 108 eli amber 62 jules grove 54 eli amber 68 lina cobalt 40 dina indigo 2 lina cobalt 101 gus fable 108 gus fable 108 farah amber 53 dina ember 111
jules grove 108 eli amber 62 jules grove 54 eli amber 68 lina cobalt 40 dina indigo 2 lina cobalt 101 gus fable 108 farah amber 53 dina ember 111
farah indigo 33 farah cobalt 30 bruno amber 117 bruno amber 117 kim amber 97 jules grove 14 farah fable 112 gus fable 21
farah indigo 33 farah cobalt 30 bruno amber 117 kim amber 97 jules grove 14 farah fable 112 gus fable 21
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032503
qwen/qwen3.7-plus
awkweave-0032504
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
dina ember 4 dina cobalt 104 eli indigo 74 chen amber 34 kim delta 81 jules amber 4 ivan fable 0 chen fable 97
dina ember 4 eli indigo 74 chen amber 34 kim delta 81 jules amber 4 ivan fable 0
gus delta 70 jules delta 12 dina juniper 87 jules cobalt 70 chen fable 33 hana cobalt 7
gus delta 70 jules delta 12 dina juniper 87 chen fable 33 hana cobalt 7
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032504-p1
Retain only the first occurrence of each unique value in column 1, preserving the input order.
!seen[$1]++
dina ember 4 dina cobalt 104 eli indigo 74 chen amber 34 kim delta 81 jules amber 4 ivan fable 0 chen fable 97
dina ember 4 eli indigo 74 chen amber 34 kim delta 81 jules amber 4 ivan fable 0
gus delta 70 jules delta 12 dina juniper 87 jules cobalt 70 chen fable 33 hana cobalt 7
gus delta 70 jules delta 12 dina juniper 87 chen fable 33 hana cobalt 7
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032504
qwen/qwen3.7-plus
awkweave-0032505
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
bruno 24 juniper jules 19 delta chen 3 grove ivan 30 juniper dina 24 fable lina 19 fable farah 25 delta
bruno 24 jules 43 chen 46 ivan 76 dina 100 lina 119 farah 144
jules 3 birch bruno 24 indigo ivan 27 amber kim 13 grove eli 13 cobalt hana 10 harbor chen 4 fable alice 11 birch dina 30 grove
jules 3 bruno 27 ivan 54 kim 67 eli 80 hana 90 chen 94 alice 105 dina 135
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032505-p1
For each record, output the first column and the cumulative sum of the second column, separated by a space.
{s+=$2;print $1,s}
bruno 24 juniper jules 19 delta chen 3 grove ivan 30 juniper dina 24 fable lina 19 fable farah 25 delta
bruno 24 jules 43 chen 46 ivan 76 dina 100 lina 119 farah 144
jules 3 birch bruno 24 indigo ivan 27 amber kim 13 grove eli 13 cobalt hana 10 harbor chen 4 fable alice 11 birch dina 30 grove
jules 3 bruno 27 ivan 54 kim 67 eli 80 hana 90 chen 94 alice 105 dina 135
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032505
qwen/qwen3.7-plus
awkweave-0032506
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
jules 21 12 birch jules 20 2 grove jules 20 17 cobalt ivan 14 21 juniper hana 22 25 juniper farah 21 5 grove
jules 33 jules 22 jules 37 ivan 35 hana 47 farah 26
farah 4 30 fable chen 23 25 cobalt bruno 3 1 harbor jules 13 26 fable dina 13 1 grove jules 13 12 ember
farah 34 chen 48 bruno 4 jules 39 dina 14 jules 25
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032506-p1
Output the first field and the total of the second and third fields for each line.
{print $1,$2+$3}
jules 21 12 birch jules 20 2 grove jules 20 17 cobalt ivan 14 21 juniper hana 22 25 juniper farah 21 5 grove
jules 33 jules 22 jules 37 ivan 35 hana 47 farah 26
farah 4 30 fable chen 23 25 cobalt bruno 3 1 harbor jules 13 26 fable dina 13 1 grove jules 13 12 ember
farah 34 chen 48 bruno 4 jules 39 dina 14 jules 25
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032506
qwen/qwen3.7-plus
awkweave-0032507
Print column 1 and pass when column 2 is at least 26; otherwise print fail.
{print $1,($2>=26?"pass":"fail")}
lina 3 kim 7 chen 18 eli 20 chen 29 kim 29
lina fail kim fail chen fail eli fail chen pass kim pass
alice 10 bruno 25 eli 30 farah 6 farah 10 dina 4 kim 30
alice fail bruno fail eli pass farah fail farah fail dina fail kim pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032507-p1
Display the first column; output 'pass' if the second column is 26 or higher, otherwise output 'fail'.
{print $1,($2>=26?"pass":"fail")}
lina 3 kim 7 chen 18 eli 20 chen 29 kim 29
lina fail kim fail chen fail eli fail chen pass kim pass
alice 10 bruno 25 eli 30 farah 6 farah 10 dina 4 kim 30
alice fail bruno fail eli pass farah fail farah fail dina fail kim pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032507
qwen/qwen3.7-plus
awkweave-0032508
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
ivan indigo 49 gus juniper 88 kim juniper 55 dina harbor 16 ivan fable 27 hana amber 56
IVAN GUS KIM DINA IVAN HANA
lina delta 87 jules ember 8 alice indigo 42 bruno birch 104 bruno cobalt 67 jules harbor 8
LINA JULES ALICE BRUNO BRUNO JULES
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032508-p1
Transform the first column to uppercase and print only that result.
{print toupper($1)}
ivan indigo 49 gus juniper 88 kim juniper 55 dina harbor 16 ivan fable 27 hana amber 56
IVAN GUS KIM DINA IVAN HANA
lina delta 87 jules ember 8 alice indigo 42 bruno birch 104 bruno cobalt 67 jules harbor 8
LINA JULES ALICE BRUNO BRUNO JULES
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032508
qwen/qwen3.7-plus
awkweave-0032509
From column 1, print 4 characters starting at character 2.
{print substr($1,2,4)}
birch 56 grove 13 grove 37 juniper 99 delta 48 cobalt 13 amber 55 amber 32
irch rove rove unip elta obal mber mber
grove 54 indigo 55 harbor 52 juniper 60 indigo 50 ember 31 cobalt 25 birch 120
rove ndig arbo unip ndig mber obal irch
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032509-p1
Extract and print a 4-character substring from the first column, beginning at the second character.
{print substr($1,2,4)}
birch 56 grove 13 grove 37 juniper 99 delta 48 cobalt 13 amber 55 amber 32
irch rove rove unip elta obal mber mber
grove 54 indigo 55 harbor 52 juniper 60 indigo 50 ember 31 cobalt 25 birch 120
rove ndig arbo unip ndig mber obal irch
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032509
qwen/qwen3.7-plus
awkweave-0032510
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
delta_birch 112 cobalt_cobalt 21 indigo_birch 34 cobalt_harbor 104 ember_juniper 21 birch_harbor 114
delta birch cobalt cobalt indigo birch cobalt harbor ember juniper birch harbor
delta_fable 47 juniper_grove 54 indigo_fable 45 harbor_ember 30 indigo_harbor 8 ember_delta 118 birch_birch 64
delta fable juniper grove indigo fable harbor ember indigo harbor ember delta birch birch
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032510-p1
Substitute all underscores in the first column with spaces and display the modified values.
{gsub(/_/," ",$1);print $1}
delta_birch 112 cobalt_cobalt 21 indigo_birch 34 cobalt_harbor 104 ember_juniper 21 birch_harbor 114
delta birch cobalt cobalt indigo birch cobalt harbor ember juniper birch harbor
delta_fable 47 juniper_grove 54 indigo_fable 45 harbor_ember 30 indigo_harbor 8 ember_delta 118 birch_birch 64
delta fable juniper grove indigo fable harbor ember indigo harbor ember delta birch birch
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032510
qwen/qwen3.7-plus
awkweave-0032511
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 birch 80 paused jules fable 43 closed chen delta 30 ready gus fable 15 active bruno harbor 111 closed gus delta 100 closed chen amber 42 failed ivan fable 21 pending ivan indigo 96 active hana ember 106 ready
paused 80 birch kim closed 43 fable jules ready 30 delta chen active 15 fable gus closed 111 harbor bruno closed 100 delta gus failed 42 amber chen pending 21 fable ivan active 96 indigo ivan ready 106 ember hana
chen birch 25 ready alice birch 29 closed alice fable 27 failed eli grove 59 failed ivan cobalt 1 closed kim amber 2 active lina fable 118 pending hana amber 70 ready
ready 25 birch chen closed 29 birch alice failed 27 fable alice failed 59 grove eli closed 1 cobalt ivan active 2 amber kim pending 118 fable lina ready 70 amber hana
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032511-p1
Reverse the sequence of fields on each line and output all of them.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
kim birch 80 paused jules fable 43 closed chen delta 30 ready gus fable 15 active bruno harbor 111 closed gus delta 100 closed chen amber 42 failed ivan fable 21 pending ivan indigo 96 active hana ember 106 ready
paused 80 birch kim closed 43 fable jules ready 30 delta chen active 15 fable gus closed 111 harbor bruno closed 100 delta gus failed 42 amber chen pending 21 fable ivan active 96 indigo ivan ready 106 ember hana
chen birch 25 ready alice birch 29 closed alice fable 27 failed eli grove 59 failed ivan cobalt 1 closed kim amber 2 active lina fable 118 pending hana amber 70 ready
ready 25 birch chen closed 29 birch alice failed 27 fable alice failed 59 grove eli closed 1 cobalt ivan active 2 amber kim pending 118 fable lina ready 70 amber hana
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032511
qwen/qwen3.7-plus
awkweave-0032512
Print the number of whitespace-separated fields on each line.
{print NF}
dina juniper 1 active bruno grove 79 paused chen amber 28 ready alice birch 34 closed bruno harbor 102 active chen juniper 77 active dina cobalt 74 closed dina delta 78 closed bruno delta 73 paused farah indigo 1 failed
4 4 4 4 4 4 4 4 4 4
dina juniper 31 active chen delta 55 failed lina ember 120 active kim ember 61 paused gus delta 51 ready farah harbor 68 failed kim delta 54 closed
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032512-p1
Print the count of whitespace-delimited fields found on every line.
{print NF}
dina juniper 1 active bruno grove 79 paused chen amber 28 ready alice birch 34 closed bruno harbor 102 active chen juniper 77 active dina cobalt 74 closed dina delta 78 closed bruno delta 73 paused farah indigo 1 failed
4 4 4 4 4 4 4 4 4 4
dina juniper 31 active chen delta 55 failed lina ember 120 active kim ember 61 paused gus delta 51 ready farah harbor 68 failed kim delta 54 closed
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032512
qwen/qwen3.7-plus
awkweave-0032513
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 27 ivan beta 16 jules delta 88 alice alpha 34 farah gamma 84 alice delta 15 kim beta 24 kim delta 50 farah gamma 66 jules beta 2
alpha 2 beta 3 delta 3 gamma 2
hana gamma 42 dina gamma 28 kim delta 77 hana gamma 63 jules gamma 102 farah alpha 70 ivan beta 63
gamma 4 delta 1 alpha 1 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032513-p1
Tally the occurrences of each unique value in the second column and print the value alongside its count, maintaining the order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
kim alpha 27 ivan beta 16 jules delta 88 alice alpha 34 farah gamma 84 alice delta 15 kim beta 24 kim delta 50 farah gamma 66 jules beta 2
alpha 2 beta 3 delta 3 gamma 2
hana gamma 42 dina gamma 28 kim delta 77 hana gamma 63 jules gamma 102 farah alpha 70 ivan beta 63
gamma 4 delta 1 alpha 1 beta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032513
qwen/qwen3.7-plus
awkweave-0032514
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
lina gamma 11 bruno delta 20 dina delta 16 jules alpha 25 kim alpha 27 jules delta 21 farah alpha 14 ivan gamma 27 dina gamma 16
gamma 54 delta 57 alpha 66
chen beta 14 dina gamma 30 jules beta 2 chen gamma 27 farah delta 23 bruno gamma 10 bruno alpha 20 ivan gamma 18 kim gamma 14
beta 16 gamma 99 delta 23 alpha 20
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032514-p1
Calculate the sum of the third column for each distinct category in the second column, listing the results in the order the categories 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]]}
lina gamma 11 bruno delta 20 dina delta 16 jules alpha 25 kim alpha 27 jules delta 21 farah alpha 14 ivan gamma 27 dina gamma 16
gamma 54 delta 57 alpha 66
chen beta 14 dina gamma 30 jules beta 2 chen gamma 27 farah delta 23 bruno gamma 10 bruno alpha 20 ivan gamma 18 kim gamma 14
beta 16 gamma 99 delta 23 alpha 20
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032514
qwen/qwen3.7-plus
awkweave-0032515
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 cobalt 32 gamma harbor 44 gamma grove 24 delta harbor 96 beta grove 9 gamma birch 120 delta ember 1 gamma harbor 9
gamma 5 delta 2
beta fable 42 gamma cobalt 79 delta harbor 6 delta juniper 96 gamma harbor 19 beta amber 81
beta 2 gamma 2 delta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032515-p1
List each value from the first column that appears more than once, 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]]}
gamma cobalt 32 gamma harbor 44 gamma grove 24 delta harbor 96 beta grove 9 gamma birch 120 delta ember 1 gamma harbor 9
gamma 5 delta 2
beta fable 42 gamma cobalt 79 delta harbor 6 delta juniper 96 gamma harbor 19 beta amber 81
beta 2 gamma 2 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032515
qwen/qwen3.7-plus
awkweave-0032516
The first row is a header. Print the region column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
display_name record_id region state r001 bruno 18 ready r002 kim 3 failed r003 hana 7 closed r004 bruno 12 failed r005 chen 18 ready r006 farah 6 ready r007 alice 10 ready r008 eli 27 ready r009 chen 2 active
18 3 7 12 18 6 10 27 2
display_name record_id region state r001 gus 9 active r002 jules 9 failed r003 kim 12 failed r004 chen 1 closed r005 chen 4 failed r006 jules 2 paused r007 ivan 25 closed r008 alice 10 paused r009 bruno 3 failed
9 9 12 1 4 2 25 10 3
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032516-p1
Treating the first row as a header, output the values from the region column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["region"]}
display_name record_id region state r001 bruno 18 ready r002 kim 3 failed r003 hana 7 closed r004 bruno 12 failed r005 chen 18 ready r006 farah 6 ready r007 alice 10 ready r008 eli 27 ready r009 chen 2 active
18 3 7 12 18 6 10 27 2
display_name record_id region state r001 gus 9 active r002 jules 9 failed r003 kim 12 failed r004 chen 1 closed r005 chen 4 failed r006 jules 2 paused r007 ivan 25 closed r008 alice 10 paused r009 bruno 3 failed
9 9 12 1 4 2 25 10 3
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032516
qwen/qwen3.7-plus
awkweave-0032517
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 chen 26 paused r002 gus 22 active r003 lina 7 active r004 farah 30 ready r005 hana 13 closed r006 hana 15 active r007 farah 18 pending r008 bruno 29 failed
chen gus farah hana hana farah bruno
record_id display_name score state r001 alice 3 active r002 jules 28 pending r003 lina 17 ready r004 gus 11 ready r005 kim 18 active r006 eli 3 closed r007 chen 26 paused r008 bruno 26 pending r009 lina 16 closed r010 ivan 11 paused
jules lina gus kim chen bruno lina ivan
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032517-p1
With the first row as a header, print the display_name for any data row 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 chen 26 paused r002 gus 22 active r003 lina 7 active r004 farah 30 ready r005 hana 13 closed r006 hana 15 active r007 farah 18 pending r008 bruno 29 failed
chen gus farah hana hana farah bruno
record_id display_name score state r001 alice 3 active r002 jules 28 pending r003 lina 17 ready r004 gus 11 ready r005 kim 18 active r006 eli 3 closed r007 chen 26 paused r008 bruno 26 pending r009 lina 16 closed r010 ivan 11 paused
jules lina gus kim chen bruno lina ivan
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032517
qwen/qwen3.7-plus
awkweave-0032518
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 18 paused bruno 1 closed chen 25 ready chen 2 failed chen 25 failed gus 24 ready gus 3 pending gus 24 closed dina 19 active
18 1 25 2 25 24 3 24 19
farah 12 paused farah 3 failed farah 3 ready hana 15 failed gus 12 closed farah 7 paused farah 28 closed jules 26 paused chen 27 ready eli 17 active
12 3 3 15 12 7 28 26 27 17
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032518-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 18 paused bruno 1 closed chen 25 ready chen 2 failed chen 25 failed gus 24 ready gus 3 pending gus 24 closed dina 19 active
18 1 25 2 25 24 3 24 19
farah 12 paused farah 3 failed farah 3 ready hana 15 failed gus 12 closed farah 7 paused farah 28 closed jules 26 paused chen 27 ready eli 17 active
12 3 3 15 12 7 28 26 27 17
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0032518
qwen/qwen3.7-plus
awkweave-0032519
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 22.
BEGIN{FS=OFS=","}$2>22{print $1}
dina,1,paused ivan,30,closed dina,29,ready gus,20,paused dina,16,failed eli,14,pending alice,1,failed bruno,6,closed
ivan dina
kim,10,pending kim,1,paused dina,2,pending bruno,11,ready kim,5,failed lina,10,pending kim,13,failed farah,1,ready farah,3,active hana,14,failed
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032519-p1
For simple CSV input without quoted commas, output the first field only if the second field is greater than 22.
BEGIN{FS=OFS=","}$2>22{print $1}
dina,1,paused ivan,30,closed dina,29,ready gus,20,paused dina,16,failed eli,14,pending alice,1,failed bruno,6,closed
ivan dina
kim,10,pending kim,1,paused dina,2,pending bruno,11,ready kim,5,failed lina,10,pending kim,13,failed farah,1,ready farah,3,active hana,14,failed
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032519
qwen/qwen3.7-plus
awkweave-0032520
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
hana grove 11 alice grove 69 dina cobalt 85 jules birch 64 hana fable 34 dina ember 8 bruno grove 50 alice birch 46
hana grove 11 alice grove 69 dina cobalt 85 jules birch 64 hana fable 34 dina ember 8 bruno grove 50 alice birch 46
gus fable 34 farah fable 17 farah birch 28 gus fable 73 kim grove 95 bruno juniper 52
gus fable 34 farah fable 17 farah birch 28 gus fable 73 kim grove 95 bruno juniper 52
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032520-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
hana grove 11 alice grove 69 dina cobalt 85 jules birch 64 hana fable 34 dina ember 8 bruno grove 50 alice birch 46
hana grove 11 alice grove 69 dina cobalt 85 jules birch 64 hana fable 34 dina ember 8 bruno grove 50 alice birch 46
gus fable 34 farah fable 17 farah birch 28 gus fable 73 kim grove 95 bruno juniper 52
gus fable 34 farah fable 17 farah birch 28 gus fable 73 kim grove 95 bruno juniper 52
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032520
qwen/qwen3.7-plus
awkweave-0032521
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
jules indigo 97 failed dina ember 59 closed ivan cobalt 37 closed alice cobalt 77 paused alice fable 99 active dina indigo 49 active bruno indigo 93 active alice ember 53 paused farah harbor 71 pending kim fable 89 pending
farah harbor 71 pending
chen fable 61 failed bruno ember 103 ready hana birch 73 ready hana fable 119 active farah juniper 14 pending lina indigo 87 active gus grove 30 paused kim indigo 99 paused eli indigo 108 paused jules fable 93 failed
farah juniper 14 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032521-p1
Output the longest line from the input; if multiple lines share the maximum length, select the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
jules indigo 97 failed dina ember 59 closed ivan cobalt 37 closed alice cobalt 77 paused alice fable 99 active dina indigo 49 active bruno indigo 93 active alice ember 53 paused farah harbor 71 pending kim fable 89 pending
farah harbor 71 pending
chen fable 61 failed bruno ember 103 ready hana birch 73 ready hana fable 119 active farah juniper 14 pending lina indigo 87 active gus grove 30 paused kim indigo 99 paused eli indigo 108 paused jules fable 93 failed
farah juniper 14 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032521
qwen/qwen3.7-plus
awkweave-0032522
Print every 3rd line starting at line 1 (then line 4, and so on).
NR%3==1
alice 34 jules 120 gus 44 hana 105 chen 119 farah 7 dina 105
alice 34 hana 105 dina 105
alice 88 bruno 102 jules 42 jules 85 alice 95 bruno 104 hana 107 dina 114 jules 100
alice 88 jules 85 hana 107
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032522-p1
Print lines 1, 4, 7, and so on (every third line starting from the first).
NR%3==1
alice 34 jules 120 gus 44 hana 105 chen 119 farah 7 dina 105
alice 34 hana 105 dina 105
alice 88 bruno 102 jules 42 jules 85 alice 95 bruno 104 hana 107 dina 114 jules 100
alice 88 jules 85 hana 107
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032522
qwen/qwen3.7-plus
awkweave-0032523
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha amber 108 gamma grove 43 beta amber 2 alpha indigo 84 alpha delta 55 alpha harbor 88 gamma harbor 110 gamma cobalt 103
6
gamma amber 20 alpha indigo 7 alpha indigo 93 gamma delta 28 delta delta 28 gamma delta 85 alpha grove 91 alpha fable 8
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032523-p1
Calculate and print only the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
alpha amber 108 gamma grove 43 beta amber 2 alpha indigo 84 alpha delta 55 alpha harbor 88 gamma harbor 110 gamma cobalt 103
6
gamma amber 20 alpha indigo 7 alpha indigo 93 gamma delta 28 delta delta 28 gamma delta 85 alpha grove 91 alpha fable 8
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032523
qwen/qwen3.7-plus
awkweave-0032524
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}
dina 27 0 farah 24 14 jules 18 10 gus 18 17 eli 4 22 kim 21 25 jules 22 10 lina 28 1 chen 25 10 lina 17 21
farah 1.71 jules 1.80 gus 1.06 eli 0.18 kim 0.84 jules 2.20 lina 28.00 chen 2.50 lina 0.81
ivan 17 0 farah 18 8 gus 7 27 alice 16 17 hana 5 12 lina 29 15 gus 1 1
farah 2.25 gus 0.26 alice 0.94 hana 0.42 lina 1.93 gus 1.00
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032524-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}
dina 27 0 farah 24 14 jules 18 10 gus 18 17 eli 4 22 kim 21 25 jules 22 10 lina 28 1 chen 25 10 lina 17 21
farah 1.71 jules 1.80 gus 1.06 eli 0.18 kim 0.84 jules 2.20 lina 28.00 chen 2.50 lina 0.81
ivan 17 0 farah 18 8 gus 7 27 alice 16 17 hana 5 12 lina 29 15 gus 1 1
farah 2.25 gus 0.26 alice 0.94 hana 0.42 lina 1.93 gus 1.00
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032524
qwen/qwen3.7-plus
awkweave-0032525
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]}
jules fable 18 hana harbor 19 farah amber 21 farah fable 20 kim harbor 19 alice delta 16 alice juniper 30 lina delta 17 eli grove 18 bruno juniper 9
alice juniper 30 farah amber 21 farah fable 20
kim cobalt 17 eli ember 8 dina amber 19 jules birch 11 ivan fable 24 kim birch 4 bruno amber 9 jules juniper 17 chen birch 25 jules juniper 17
chen birch 25 ivan fable 24 dina amber 19
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032525-p1
Output the three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
jules fable 18 hana harbor 19 farah amber 21 farah fable 20 kim harbor 19 alice delta 16 alice juniper 30 lina delta 17 eli grove 18 bruno juniper 9
alice juniper 30 farah amber 21 farah fable 20
kim cobalt 17 eli ember 8 dina amber 19 jules birch 11 ivan fable 24 kim birch 4 bruno amber 9 jules juniper 17 chen birch 25 jules juniper 17
chen birch 25 ivan fable 24 dina amber 19
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032525
qwen/qwen3.7-plus
awkweave-0032526
Print column 4 followed by column 3 for every record.
{print $4, $3}
juniper 20 107 gus harbor 71 85 kim birch 66 73 farah grove 61 38 chen delta 48 74 gus amber 5 58 kim cobalt 9 9 chen
gus 107 kim 85 farah 73 chen 38 gus 74 kim 58 chen 9
fable 119 113 farah grove 15 118 eli fable 86 22 jules birch 66 44 dina cobalt 118 115 bruno amber 69 65 hana
farah 113 eli 118 jules 22 dina 44 bruno 115 hana 65
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032526-p1
For every record, output the fourth column followed by the third column.
{print $4, $3}
juniper 20 107 gus harbor 71 85 kim birch 66 73 farah grove 61 38 chen delta 48 74 gus amber 5 58 kim cobalt 9 9 chen
gus 107 kim 85 farah 73 chen 38 gus 74 kim 58 chen 9
fable 119 113 farah grove 15 118 eli fable 86 22 jules birch 66 44 dina cobalt 118 115 bruno amber 69 65 hana
farah 113 eli 118 jules 22 dina 44 bruno 115 hana 65
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032526
qwen/qwen3.7-plus
awkweave-0032527
Print the last field of every input line.
{print $NF}
jules pending 66 birch jules failed 10 delta chen closed 54 fable hana active 71 cobalt bruno ready 62 grove kim pending 107 indigo lina active 33 grove bruno active 66 grove
birch delta fable cobalt grove indigo grove grove
hana closed 42 delta dina active 6 fable chen active 56 cobalt lina closed 119 indigo chen pending 29 ember hana pending 102 fable eli failed 59 birch lina pending 42 fable lina active 31 cobalt chen failed 98 harbor
delta fable cobalt indigo ember fable birch fable cobalt harbor
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032527-p1
Print the final field of each input line.
{print $NF}
jules pending 66 birch jules failed 10 delta chen closed 54 fable hana active 71 cobalt bruno ready 62 grove kim pending 107 indigo lina active 33 grove bruno active 66 grove
birch delta fable cobalt grove indigo grove grove
hana closed 42 delta dina active 6 fable chen active 56 cobalt lina closed 119 indigo chen pending 29 ember hana pending 102 fable eli failed 59 birch lina pending 42 fable lina active 31 cobalt chen failed 98 harbor
delta fable cobalt indigo ember fable birch fable cobalt harbor
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032527
qwen/qwen3.7-plus
awkweave-0032528
Print the complete records where column 1 is at least 20.
$1 >= 20
100 closed closed failed eli 116 active failed active farah 102 failed ready failed farah 120 paused closed closed ivan 19 closed paused ready chen 17 closed failed paused hana 101 active failed pending hana 27 active paused active ivan
100 closed closed failed eli 116 active failed active farah 102 failed ready failed farah 120 paused closed closed ivan 101 active failed pending hana 27 active paused active ivan
105 pending paused ready gus 28 paused active failed farah 116 closed paused failed hana 110 paused pending active gus 71 pending ready active dina 111 paused failed active kim 21 pending pending paused hana 74 active failed ready lina 89 active failed pending gus 43 ready closed paused hana
105 pending paused ready gus 28 paused active failed farah 116 closed paused failed hana 110 paused pending active gus 71 pending ready active dina 111 paused failed active kim 21 pending pending paused hana 74 active failed ready lina 89 active failed pending gus 43 ready closed paused hana
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032528-p1
Output full records where the value in the first column is 20 or higher.
$1 >= 20
100 closed closed failed eli 116 active failed active farah 102 failed ready failed farah 120 paused closed closed ivan 19 closed paused ready chen 17 closed failed paused hana 101 active failed pending hana 27 active paused active ivan
100 closed closed failed eli 116 active failed active farah 102 failed ready failed farah 120 paused closed closed ivan 101 active failed pending hana 27 active paused active ivan
105 pending paused ready gus 28 paused active failed farah 116 closed paused failed hana 110 paused pending active gus 71 pending ready active dina 111 paused failed active kim 21 pending pending paused hana 74 active failed ready lina 89 active failed pending gus 43 ready closed paused hana
105 pending paused ready gus 28 paused active failed farah 116 closed paused failed hana 110 paused pending active gus 71 pending ready active dina 111 paused failed active kim 21 pending pending paused hana 74 active failed ready lina 89 active failed pending gus 43 ready closed paused hana
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032528
qwen/qwen3.7-plus
awkweave-0032529
Show whole lines whose 2nd field is between 12 and 22, inclusive.
$2 >= 12 && $2 <= 22
jules 19 ready active dina 10 active ready alice 13 active paused hana 7 closed pending kim 9 pending failed lina 3 failed pending dina 20 closed failed
jules 19 ready active alice 13 active paused dina 20 closed failed
dina 9 paused closed alice 27 failed ready lina 22 ready ready jules 25 paused pending dina 20 paused pending alice 13 closed closed bruno 30 paused ready kim 4 ready failed jules 25 paused ready
lina 22 ready ready dina 20 paused pending alice 13 closed closed
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032529-p1
Display entire lines where the second field falls within the inclusive range of 12 to 22.
$2 >= 12 && $2 <= 22
jules 19 ready active dina 10 active ready alice 13 active paused hana 7 closed pending kim 9 pending failed lina 3 failed pending dina 20 closed failed
jules 19 ready active alice 13 active paused dina 20 closed failed
dina 9 paused closed alice 27 failed ready lina 22 ready ready jules 25 paused pending dina 20 paused pending alice 13 closed closed bruno 30 paused ready kim 4 ready failed jules 25 paused ready
lina 22 ready ready dina 20 paused pending alice 13 closed closed
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032529
qwen/qwen3.7-plus
awkweave-0032530
Print column 3 only for rows where column 1 is exactly active.
$1 == "active"{print $3}
active fable hana 30 paused juniper lina 95 failed amber ivan 78 paused cobalt farah 79 paused cobalt eli 16 active harbor gus 51
hana gus
paused birch kim 94 closed amber chen 41 ready juniper hana 5 closed amber kim 118 closed harbor jules 70 ready birch chen 41 pending cobalt gus 89 paused juniper kim 44 failed juniper bruno 54 failed ember alice 120
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032530-p1
Output the third column exclusively for rows where the first column matches 'active' exactly.
$1 == "active"{print $3}
active fable hana 30 paused juniper lina 95 failed amber ivan 78 paused cobalt farah 79 paused cobalt eli 16 active harbor gus 51
hana gus
paused birch kim 94 closed amber chen 41 ready juniper hana 5 closed amber kim 118 closed harbor jules 70 ready birch chen 41 pending cobalt gus 89 paused juniper kim 44 failed juniper bruno 54 failed ember alice 120
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032530
qwen/qwen3.7-plus
awkweave-0032531
Print all fields from lines where field 3 begins with ERROR.
$3 ~ /^ERROR/
fable 0 INFO juniper 41 WARN amber 3 ERROR grove 53 DEBUG harbor 23 WARN ember 0 ERROR
amber 3 ERROR ember 0 ERROR
harbor 20 WARN birch 42 ERROR birch 33 ERROR birch 84 INFO birch 22 INFO cobalt 49 DEBUG
birch 42 ERROR birch 33 ERROR
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032531-p1
Display all fields from lines whose third field starts with 'ERROR'.
$3 ~ /^ERROR/
fable 0 INFO juniper 41 WARN amber 3 ERROR grove 53 DEBUG harbor 23 WARN ember 0 ERROR
amber 3 ERROR ember 0 ERROR
harbor 20 WARN birch 42 ERROR birch 33 ERROR birch 84 INFO birch 22 INFO cobalt 49 DEBUG
birch 42 ERROR birch 33 ERROR
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032531
qwen/qwen3.7-plus
awkweave-0032532
Print every line except those containing the exact text ember.
$0 !~ /ember/
ember 39 paused birch 97 failed juniper 113 failed cobalt 80 failed ember 66 ready indigo 31 pending ember 999 active
birch 97 failed juniper 113 failed cobalt 80 failed indigo 31 pending
fable 56 active indigo 86 paused cobalt 91 failed ember 67 closed fable 7 closed ember 91 ready amber 96 ready harbor 55 active ember 999 active
fable 56 active indigo 86 paused cobalt 91 failed fable 7 closed amber 96 ready harbor 55 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032532-p1
Print every line that does not contain the exact string 'ember'.
$0 !~ /ember/
ember 39 paused birch 97 failed juniper 113 failed cobalt 80 failed ember 66 ready indigo 31 pending ember 999 active
birch 97 failed juniper 113 failed cobalt 80 failed indigo 31 pending
fable 56 active indigo 86 paused cobalt 91 failed ember 67 closed fable 7 closed ember 91 ready amber 96 ready harbor 55 active ember 999 active
fable 56 active indigo 86 paused cobalt 91 failed fable 7 closed amber 96 ready harbor 55 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032532
qwen/qwen3.7-plus
awkweave-0032533
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
farah fable 46 alice cobalt 109 eli fable 76 bruno fable 15 gus cobalt 47 kim birch 117 dina birch 21
bruno fable 15 gus cobalt 47 kim birch 117 dina birch 21
jules amber 106 farah cobalt 46 bruno grove 100 farah harbor 42 kim delta 73 jules grove 87 lina amber 38 gus amber 86 ivan harbor 103 alice juniper 81
farah harbor 42 kim delta 73 jules grove 87 lina amber 38
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032533-p1
Output lines 4 to 7, inclusive of both endpoints.
NR >= 4 && NR <= 7
farah fable 46 alice cobalt 109 eli fable 76 bruno fable 15 gus cobalt 47 kim birch 117 dina birch 21
bruno fable 15 gus cobalt 47 kim birch 117 dina birch 21
jules amber 106 farah cobalt 46 bruno grove 100 farah harbor 42 kim delta 73 jules grove 87 lina amber 38 gus amber 86 ivan harbor 103 alice juniper 81
farah harbor 42 kim delta 73 jules grove 87 lina amber 38
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032533
qwen/qwen3.7-plus
awkweave-0032534
Output only the first 5 records.
NR <= 5
lina 117 birch bruno 74 juniper gus 21 fable lina 34 delta hana 54 fable chen 91 juniper kim 75 birch lina 20 birch
lina 117 birch bruno 74 juniper gus 21 fable lina 34 delta hana 54 fable
bruno 72 birch chen 92 juniper dina 60 amber bruno 48 harbor dina 0 birch farah 7 ember lina 12 fable hana 61 delta eli 30 grove ivan 35 amber
bruno 72 birch chen 92 juniper dina 60 amber bruno 48 harbor dina 0 birch
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032534-p1
Display only the initial 5 records.
NR <= 5
lina 117 birch bruno 74 juniper gus 21 fable lina 34 delta hana 54 fable chen 91 juniper kim 75 birch lina 20 birch
lina 117 birch bruno 74 juniper gus 21 fable lina 34 delta hana 54 fable
bruno 72 birch chen 92 juniper dina 60 amber bruno 48 harbor dina 0 birch farah 7 ember lina 12 fable hana 61 delta eli 30 grove ivan 35 amber
bruno 72 birch chen 92 juniper dina 60 amber bruno 48 harbor dina 0 birch
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032534
qwen/qwen3.7-plus
awkweave-0032535
Skip the first line and print every remaining line unchanged.
NR > 1
dina 4 indigo farah 44 grove bruno 69 grove kim 120 fable kim 95 grove alice 36 indigo dina 13 grove chen 55 cobalt
farah 44 grove bruno 69 grove kim 120 fable kim 95 grove alice 36 indigo dina 13 grove chen 55 cobalt
farah 32 grove lina 72 indigo gus 102 grove chen 111 fable lina 40 delta lina 73 indigo
lina 72 indigo gus 102 grove chen 111 fable lina 40 delta lina 73 indigo
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032535-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
dina 4 indigo farah 44 grove bruno 69 grove kim 120 fable kim 95 grove alice 36 indigo dina 13 grove chen 55 cobalt
farah 44 grove bruno 69 grove kim 120 fable kim 95 grove alice 36 indigo dina 13 grove chen 55 cobalt
farah 32 grove lina 72 indigo gus 102 grove chen 111 fable lina 40 delta lina 73 indigo
lina 72 indigo gus 102 grove chen 111 fable lina 40 delta lina 73 indigo
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032535
qwen/qwen3.7-plus
awkweave-0032536
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
bruno active 73 ivan ready 81 jules active 11 farah active 85 hana active 112 farah ready 92 ivan failed 13 chen ready 73 gus closed 3 gus closed 120
0
eli pending 25 chen closed 66 alice pending 50 hana active 21 farah paused 118 bruno active 53 jules pending 70 ivan active 114 gus pending 69 dina active 65
4
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032536-p1
Count the number of records with 'pending' in the second column; output 0 if none exist.
$2 == "pending"{n++}END{print n+0}
bruno active 73 ivan ready 81 jules active 11 farah active 85 hana active 112 farah ready 92 ivan failed 13 chen ready 73 gus closed 3 gus closed 120
0
eli pending 25 chen closed 66 alice pending 50 hana active 21 farah paused 118 bruno active 53 jules pending 70 ivan active 114 gus pending 69 dina active 65
4
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032536
qwen/qwen3.7-plus
awkweave-0032537
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
cobalt 26 bruno ember 29 farah fable 6 chen harbor 3 farah cobalt 12 farah ember 14 eli
90
juniper 29 gus juniper 23 farah ember 7 gus juniper 7 kim harbor 8 eli juniper 6 ivan amber 19 farah
99
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032537-p1
Compute and display the sum of integer values in the second column.
{s+=$2}END{print s+0}
cobalt 26 bruno ember 29 farah fable 6 chen harbor 3 farah cobalt 12 farah ember 14 eli
90
juniper 29 gus juniper 23 farah ember 7 gus juniper 7 kim harbor 8 eli juniper 6 ivan amber 19 farah
99
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032537
qwen/qwen3.7-plus
awkweave-0032538
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
13 cobalt chen 13 harbor farah 27 delta eli 15 juniper kim 10 birch kim 8 cobalt kim 1 birch bruno
12.43
22 birch lina 28 cobalt lina 7 indigo ivan 4 birch gus 4 birch kim 15 grove kim 11 juniper gus
13.00
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032538-p1
Print the average of the first column, rounded to precisely two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
13 cobalt chen 13 harbor farah 27 delta eli 15 juniper kim 10 birch kim 8 cobalt kim 1 birch bruno
12.43
22 birch lina 28 cobalt lina 7 indigo ivan 4 birch gus 4 birch kim 15 grove kim 11 juniper gus
13.00
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032538
qwen/qwen3.7-plus
awkweave-0032539
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
eli indigo 23 ivan birch 10 hana fable 18 dina birch 7 jules ember 7 dina birch 13 jules grove 21
7
kim cobalt 15 farah birch 2 gus juniper 11 dina birch 6 lina amber 16 farah indigo 15 gus birch 5 bruno grove 25
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032539-p1
Identify and output the minimum numeric value found in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
eli indigo 23 ivan birch 10 hana fable 18 dina birch 7 jules ember 7 dina birch 13 jules grove 21
7
kim cobalt 15 farah birch 2 gus juniper 11 dina birch 6 lina amber 16 farah indigo 15 gus birch 5 bruno grove 25
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032539
qwen/qwen3.7-plus
awkweave-0032540
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
15 cobalt farah 24 birch jules 17 amber chen 5 harbor alice 17 ember alice 20 birch bruno
24
19 ember farah 28 juniper lina 4 cobalt bruno 24 delta hana 4 fable chen 2 grove gus 4 indigo farah 6 harbor bruno 22 indigo ivan 22 indigo bruno
28
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032540-p1
Identify and output the maximum numeric value found in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
15 cobalt farah 24 birch jules 17 amber chen 5 harbor alice 17 ember alice 20 birch bruno
24
19 ember farah 28 juniper lina 4 cobalt bruno 24 delta hana 4 fable chen 2 grove gus 4 indigo farah 6 harbor bruno 22 indigo ivan 22 indigo bruno
28
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032540
qwen/qwen3.7-plus
awkweave-0032541
Count all input records and print the total.
END{print NR}
gus 30 hana 100 dina 86 hana 3 eli 85 eli 96 lina 31 ivan 87
8
gus 31 hana 30 gus 86 farah 88 bruno 8 ivan 87 alice 47 bruno 70 chen 89 eli 36
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032541-p1
Count the total number of input records and print the result.
END{print NR}
gus 30 hana 100 dina 86 hana 3 eli 85 eli 96 lina 31 ivan 87
8
gus 31 hana 30 gus 86 farah 88 bruno 8 ivan 87 alice 47 bruno 70 chen 89 eli 36
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032541
qwen/qwen3.7-plus
awkweave-0032542
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
eli harbor 35 jules juniper 112 bruno cobalt 40 alice fable 12 eli amber 99 kim harbor 11 eli birch 55 dina ember 55 dina ember 55
eli harbor 35 jules juniper 112 bruno cobalt 40 alice fable 12 eli amber 99 kim harbor 11 eli birch 55 dina ember 55
lina birch 78 ivan fable 97 dina indigo 68 hana delta 118 gus delta 63 lina birch 78 hana juniper 58 gus cobalt 37 ivan harbor 12 bruno ember 118
lina birch 78 ivan fable 97 dina indigo 68 hana delta 118 gus delta 63 hana juniper 58 gus cobalt 37 ivan harbor 12 bruno ember 118
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032542-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
eli harbor 35 jules juniper 112 bruno cobalt 40 alice fable 12 eli amber 99 kim harbor 11 eli birch 55 dina ember 55 dina ember 55
eli harbor 35 jules juniper 112 bruno cobalt 40 alice fable 12 eli amber 99 kim harbor 11 eli birch 55 dina ember 55
lina birch 78 ivan fable 97 dina indigo 68 hana delta 118 gus delta 63 lina birch 78 hana juniper 58 gus cobalt 37 ivan harbor 12 bruno ember 118
lina birch 78 ivan fable 97 dina indigo 68 hana delta 118 gus delta 63 hana juniper 58 gus cobalt 37 ivan harbor 12 bruno ember 118
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032542
qwen/qwen3.7-plus
awkweave-0032543
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
jules cobalt 22 chen grove 32 farah delta 120 jules grove 45 farah ember 17 lina juniper 25 dina indigo 54 eli grove 16 jules cobalt 50 hana juniper 23
jules cobalt 22 chen grove 32 farah delta 120 lina juniper 25 dina indigo 54 eli grove 16 hana juniper 23
alice harbor 60 lina grove 112 ivan ember 24 gus ember 32 chen cobalt 17 gus birch 11 gus grove 68 ivan fable 31 ivan amber 2 hana juniper 45
alice harbor 60 lina grove 112 ivan ember 24 gus ember 32 chen cobalt 17 hana juniper 45
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032543-p1
Retain only the initial line for every unique value in column 1, preserving the input order.
!seen[$1]++
jules cobalt 22 chen grove 32 farah delta 120 jules grove 45 farah ember 17 lina juniper 25 dina indigo 54 eli grove 16 jules cobalt 50 hana juniper 23
jules cobalt 22 chen grove 32 farah delta 120 lina juniper 25 dina indigo 54 eli grove 16 hana juniper 23
alice harbor 60 lina grove 112 ivan ember 24 gus ember 32 chen cobalt 17 gus birch 11 gus grove 68 ivan fable 31 ivan amber 2 hana juniper 45
alice harbor 60 lina grove 112 ivan ember 24 gus ember 32 chen cobalt 17 hana juniper 45
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032543
qwen/qwen3.7-plus
awkweave-0032544
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
eli 6 grove kim 29 harbor lina 22 harbor kim 12 ember alice 20 fable lina 12 amber chen 17 grove gus 22 ember dina 9 delta hana 4 birch
eli 6 kim 35 lina 57 kim 69 alice 89 lina 101 chen 118 gus 140 dina 149 hana 153
dina 28 delta farah 1 delta alice 12 indigo kim 16 juniper alice 22 delta kim 10 juniper alice 6 cobalt
dina 28 farah 29 alice 41 kim 57 alice 79 kim 89 alice 95
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032544-p1
Output column 1 alongside the cumulative sum of column 2 for each record, separated by a space.
{s+=$2;print $1,s}
eli 6 grove kim 29 harbor lina 22 harbor kim 12 ember alice 20 fable lina 12 amber chen 17 grove gus 22 ember dina 9 delta hana 4 birch
eli 6 kim 35 lina 57 kim 69 alice 89 lina 101 chen 118 gus 140 dina 149 hana 153
dina 28 delta farah 1 delta alice 12 indigo kim 16 juniper alice 22 delta kim 10 juniper alice 6 cobalt
dina 28 farah 29 alice 41 kim 57 alice 79 kim 89 alice 95
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032544
qwen/qwen3.7-plus
awkweave-0032545
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
ivan 17 9 birch gus 4 8 indigo hana 17 29 juniper dina 24 28 grove ivan 15 6 fable jules 14 2 juniper farah 2 13 amber eli 29 13 cobalt
ivan 26 gus 12 hana 46 dina 52 ivan 21 jules 16 farah 15 eli 42
kim 29 18 fable chen 9 8 amber gus 10 5 ember dina 6 1 ember lina 25 25 cobalt bruno 5 24 delta kim 9 16 fable
kim 47 chen 17 gus 15 dina 7 lina 50 bruno 29 kim 25
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032545-p1
For each row, display field 1 followed by the total of fields 2 and 3.
{print $1,$2+$3}
ivan 17 9 birch gus 4 8 indigo hana 17 29 juniper dina 24 28 grove ivan 15 6 fable jules 14 2 juniper farah 2 13 amber eli 29 13 cobalt
ivan 26 gus 12 hana 46 dina 52 ivan 21 jules 16 farah 15 eli 42
kim 29 18 fable chen 9 8 amber gus 10 5 ember dina 6 1 ember lina 25 25 cobalt bruno 5 24 delta kim 9 16 fable
kim 47 chen 17 gus 15 dina 7 lina 50 bruno 29 kim 25
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032545
qwen/qwen3.7-plus
awkweave-0032546
Print column 1 and pass when column 2 is at least 23; otherwise print fail.
{print $1,($2>=23?"pass":"fail")}
bruno 2 jules 21 eli 30 hana 20 ivan 19 gus 14 eli 13 bruno 25
bruno fail jules fail eli pass hana fail ivan fail gus fail eli fail bruno pass
ivan 14 farah 18 gus 6 eli 14 alice 12 hana 26 chen 19 eli 11 hana 18
ivan fail farah fail gus fail eli fail alice fail hana pass chen fail eli fail hana fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032546-p1
Output column 1 and 'pass' if column 2 is 23 or greater; otherwise, output 'fail'.
{print $1,($2>=23?"pass":"fail")}
bruno 2 jules 21 eli 30 hana 20 ivan 19 gus 14 eli 13 bruno 25
bruno fail jules fail eli pass hana fail ivan fail gus fail eli fail bruno pass
ivan 14 farah 18 gus 6 eli 14 alice 12 hana 26 chen 19 eli 11 hana 18
ivan fail farah fail gus fail eli fail alice fail hana pass chen fail eli fail hana fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032546
qwen/qwen3.7-plus
awkweave-0032547
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
hana amber 107 gus fable 89 bruno grove 3 bruno grove 66 gus ember 2 dina amber 112 gus grove 100 chen harbor 4 kim grove 47 dina indigo 99
HANA GUS BRUNO BRUNO GUS DINA GUS CHEN KIM DINA
bruno juniper 1 hana ember 116 hana harbor 76 bruno amber 50 eli delta 55 jules fable 116 hana cobalt 64
BRUNO HANA HANA BRUNO ELI JULES HANA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032547-p1
Transform column 1 to uppercase and output only that column.
{print toupper($1)}
hana amber 107 gus fable 89 bruno grove 3 bruno grove 66 gus ember 2 dina amber 112 gus grove 100 chen harbor 4 kim grove 47 dina indigo 99
HANA GUS BRUNO BRUNO GUS DINA GUS CHEN KIM DINA
bruno juniper 1 hana ember 116 hana harbor 76 bruno amber 50 eli delta 55 jules fable 116 hana cobalt 64
BRUNO HANA HANA BRUNO ELI JULES HANA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032547
qwen/qwen3.7-plus
awkweave-0032548
From column 1, print 4 characters starting at character 1.
{print substr($1,1,4)}
cobalt 75 amber 97 ember 12 grove 102 amber 54 delta 119 indigo 19
coba ambe embe grov ambe delt indi
birch 116 juniper 69 cobalt 102 fable 31 harbor 113 cobalt 55 fable 37 birch 10 birch 91
birc juni coba fabl harb coba fabl birc birc
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032548-p1
Extract and print the first 4 characters from column 1, starting at position 1.
{print substr($1,1,4)}
cobalt 75 amber 97 ember 12 grove 102 amber 54 delta 119 indigo 19
coba ambe embe grov ambe delt indi
birch 116 juniper 69 cobalt 102 fable 31 harbor 113 cobalt 55 fable 37 birch 10 birch 91
birc juni coba fabl harb coba fabl birc birc
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032548
qwen/qwen3.7-plus
awkweave-0032549
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
amber_juniper 12 harbor_fable 72 amber_amber 101 delta_birch 71 amber_amber 66 ember_birch 65 amber_cobalt 110 fable_ember 96
amber juniper harbor fable amber amber delta birch amber amber ember birch amber cobalt fable ember
harbor_fable 40 juniper_delta 39 ember_indigo 70 harbor_ember 52 grove_ember 49 fable_grove 95 birch_amber 48 cobalt_indigo 94 grove_fable 74 amber_fable 82
harbor fable juniper delta ember indigo harbor ember grove ember fable grove birch amber cobalt indigo grove fable amber fable
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032549-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
amber_juniper 12 harbor_fable 72 amber_amber 101 delta_birch 71 amber_amber 66 ember_birch 65 amber_cobalt 110 fable_ember 96
amber juniper harbor fable amber amber delta birch amber amber ember birch amber cobalt fable ember
harbor_fable 40 juniper_delta 39 ember_indigo 70 harbor_ember 52 grove_ember 49 fable_grove 95 birch_amber 48 cobalt_indigo 94 grove_fable 74 amber_fable 82
harbor fable juniper delta ember indigo harbor ember grove ember fable grove birch amber cobalt indigo grove fable amber fable
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032549
qwen/qwen3.7-plus
awkweave-0032550
Reverse the order of fields on every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
dina grove 106 failed dina delta 16 closed jules ember 67 paused ivan fable 90 ready hana fable 38 active lina ember 100 paused kim indigo 120 failed
failed 106 grove dina closed 16 delta dina paused 67 ember jules ready 90 fable ivan active 38 fable hana paused 100 ember lina failed 120 indigo kim
jules indigo 113 active lina juniper 43 closed kim juniper 5 active bruno harbor 95 pending alice harbor 55 failed farah cobalt 90 active gus indigo 13 closed chen birch 52 ready jules indigo 42 pending kim fable 2 pending
active 113 indigo jules closed 43 juniper lina active 5 juniper kim pending 95 harbor bruno failed 55 harbor alice active 90 cobalt farah closed 13 indigo gus ready 52 birch chen pending 42 indigo jules pending 2 fable kim
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0032550-p1
Reverse the sequence of fields on each line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
dina grove 106 failed dina delta 16 closed jules ember 67 paused ivan fable 90 ready hana fable 38 active lina ember 100 paused kim indigo 120 failed
failed 106 grove dina closed 16 delta dina paused 67 ember jules ready 90 fable ivan active 38 fable hana paused 100 ember lina failed 120 indigo kim
jules indigo 113 active lina juniper 43 closed kim juniper 5 active bruno harbor 95 pending alice harbor 55 failed farah cobalt 90 active gus indigo 13 closed chen birch 52 ready jules indigo 42 pending kim fable 2 pending
active 113 indigo jules closed 43 juniper lina active 5 juniper kim pending 95 harbor bruno failed 55 harbor alice active 90 cobalt farah closed 13 indigo gus ready 52 birch chen pending 42 indigo jules pending 2 fable kim
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0032550
qwen/qwen3.7-plus
awkweave-0032551
Print the number of whitespace-separated fields on each line.
{print NF}
eli juniper 50 ready gus cobalt 65 ready dina grove 98 closed chen birch 8 paused chen cobalt 79 ready ivan grove 18 failed
4 4 4 4 4 4
hana fable 120 ready eli amber 57 closed lina cobalt 98 closed dina juniper 32 pending dina cobalt 81 paused alice grove 70 pending farah juniper 92 ready hana amber 35 ready gus cobalt 80 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null