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-0013940-p1
Retain only the first line for each unique value in column 1, maintaining input order.
!seen[$1]++
chen amber 58 farah amber 46 bruno birch 6 hana amber 56 kim indigo 117 bruno ember 92 jules harbor 60 gus delta 82 chen grove 7 lina ember 93
chen amber 58 farah amber 46 bruno birch 6 hana amber 56 kim indigo 117 jules harbor 60 gus delta 82 lina ember 93
lina ember 72 chen cobalt 63 jules juniper 14 ivan cobalt 27 bruno indigo 85 dina grove 110 ivan fable 42 lina birch 99 lina delta 3 gus harbor 115
lina ember 72 chen cobalt 63 jules juniper 14 ivan cobalt 27 bruno indigo 85 dina grove 110 gus harbor 115
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013940
qwen/qwen3.7-plus
awkweave-0013941
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 20 cobalt dina 17 amber chen 20 delta bruno 10 amber lina 8 ember hana 24 juniper
ivan 20 dina 37 chen 57 bruno 67 lina 75 hana 99
jules 9 ember hana 25 juniper jules 2 juniper bruno 10 harbor ivan 8 ember hana 30 cobalt farah 10 cobalt hana 23 amber gus 22 birch
jules 9 hana 34 jules 36 bruno 46 ivan 54 hana 84 farah 94 hana 117 gus 139
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013941-p1
For each record, output column 1 and the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 20 cobalt dina 17 amber chen 20 delta bruno 10 amber lina 8 ember hana 24 juniper
ivan 20 dina 37 chen 57 bruno 67 lina 75 hana 99
jules 9 ember hana 25 juniper jules 2 juniper bruno 10 harbor ivan 8 ember hana 30 cobalt farah 10 cobalt hana 23 amber gus 22 birch
jules 9 hana 34 jules 36 bruno 46 ivan 54 hana 84 farah 94 hana 117 gus 139
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013941
qwen/qwen3.7-plus
awkweave-0013942
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
chen 11 8 birch gus 23 19 juniper alice 26 6 birch jules 26 20 juniper jules 4 29 ember gus 16 21 harbor
chen 19 gus 42 alice 32 jules 46 jules 33 gus 37
lina 27 28 fable dina 20 18 juniper hana 6 27 amber eli 11 11 birch kim 21 18 indigo ivan 12 26 birch eli 18 6 delta farah 22 2 amber
lina 55 dina 38 hana 33 eli 22 kim 39 ivan 38 eli 24 farah 24
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013942-p1
Output the first field and the total of the second and third fields for each line.
{print $1,$2+$3}
chen 11 8 birch gus 23 19 juniper alice 26 6 birch jules 26 20 juniper jules 4 29 ember gus 16 21 harbor
chen 19 gus 42 alice 32 jules 46 jules 33 gus 37
lina 27 28 fable dina 20 18 juniper hana 6 27 amber eli 11 11 birch kim 21 18 indigo ivan 12 26 birch eli 18 6 delta farah 22 2 amber
lina 55 dina 38 hana 33 eli 22 kim 39 ivan 38 eli 24 farah 24
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013942
qwen/qwen3.7-plus
awkweave-0013943
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
ivan 18 ivan 5 gus 12 bruno 3 lina 8 dina 28 dina 3
ivan fail ivan fail gus fail bruno fail lina fail dina pass dina fail
bruno 12 eli 10 hana 13 chen 13 farah 15 alice 25
bruno fail eli fail hana fail chen fail farah fail alice pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013943-p1
Display the first column; output 'pass' if the second column is 25 or higher, otherwise output 'fail'.
{print $1,($2>=25?"pass":"fail")}
ivan 18 ivan 5 gus 12 bruno 3 lina 8 dina 28 dina 3
ivan fail ivan fail gus fail bruno fail lina fail dina pass dina fail
bruno 12 eli 10 hana 13 chen 13 farah 15 alice 25
bruno fail eli fail hana fail chen fail farah fail alice pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013943
qwen/qwen3.7-plus
awkweave-0013944
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
alice fable 54 eli juniper 60 kim juniper 29 chen ember 110 gus ember 56 chen cobalt 96 kim delta 30 bruno juniper 35 gus juniper 67
ALICE ELI KIM CHEN GUS CHEN KIM BRUNO GUS
farah ember 64 alice indigo 71 eli cobalt 115 hana grove 24 alice ember 6 dina ember 89 hana amber 21
FARAH ALICE ELI HANA ALICE DINA HANA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013944-p1
Transform the first column to uppercase and display only that column.
{print toupper($1)}
alice fable 54 eli juniper 60 kim juniper 29 chen ember 110 gus ember 56 chen cobalt 96 kim delta 30 bruno juniper 35 gus juniper 67
ALICE ELI KIM CHEN GUS CHEN KIM BRUNO GUS
farah ember 64 alice indigo 71 eli cobalt 115 hana grove 24 alice ember 6 dina ember 89 hana amber 21
FARAH ALICE ELI HANA ALICE DINA HANA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013944
qwen/qwen3.7-plus
awkweave-0013945
From column 1, print 2 characters starting at character 2.
{print substr($1,2,2)}
amber 108 cobalt 88 indigo 88 harbor 64 indigo 77 fable 96
mb ob nd ar nd ab
fable 22 ember 106 cobalt 44 amber 65 cobalt 2 grove 7 delta 116 juniper 79 cobalt 40 cobalt 17
ab mb ob mb ob ro el un ob ob
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013945-p1
Extract and print a 2-character substring from the first column, starting at position 2.
{print substr($1,2,2)}
amber 108 cobalt 88 indigo 88 harbor 64 indigo 77 fable 96
mb ob nd ar nd ab
fable 22 ember 106 cobalt 44 amber 65 cobalt 2 grove 7 delta 116 juniper 79 cobalt 40 cobalt 17
ab mb ob mb ob ro el un ob ob
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013945
qwen/qwen3.7-plus
awkweave-0013946
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
ember_juniper 59 amber_indigo 49 delta_harbor 27 fable_harbor 70 harbor_birch 98 delta_fable 23 ember_cobalt 49
ember juniper amber indigo delta harbor fable harbor harbor birch delta fable ember cobalt
juniper_fable 55 birch_cobalt 77 juniper_delta 118 ember_delta 111 juniper_grove 108 indigo_grove 81 delta_amber 32 juniper_grove 15 juniper_fable 66
juniper fable birch cobalt juniper delta ember delta juniper grove indigo grove delta amber juniper grove juniper fable
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013946-p1
Substitute all underscores with spaces in the first column and print the results.
{gsub(/_/," ",$1);print $1}
ember_juniper 59 amber_indigo 49 delta_harbor 27 fable_harbor 70 harbor_birch 98 delta_fable 23 ember_cobalt 49
ember juniper amber indigo delta harbor fable harbor harbor birch delta fable ember cobalt
juniper_fable 55 birch_cobalt 77 juniper_delta 118 ember_delta 111 juniper_grove 108 indigo_grove 81 delta_amber 32 juniper_grove 15 juniper_fable 66
juniper fable birch cobalt juniper delta ember delta juniper grove indigo grove delta amber juniper grove juniper fable
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013946
qwen/qwen3.7-plus
awkweave-0013947
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)}
hana cobalt 80 pending alice indigo 11 paused ivan ember 69 ready eli cobalt 38 active farah fable 64 pending alice ember 35 failed alice ember 39 closed lina amber 116 failed lina cobalt 7 pending
pending 80 cobalt hana paused 11 indigo alice ready 69 ember ivan active 38 cobalt eli pending 64 fable farah failed 35 ember alice closed 39 ember alice failed 116 amber lina pending 7 cobalt lina
gus cobalt 64 ready alice ember 0 pending alice juniper 49 failed eli delta 83 ready ivan fable 31 pending jules birch 77 active gus indigo 25 failed
ready 64 cobalt gus pending 0 ember alice failed 49 juniper alice ready 83 delta eli pending 31 fable ivan active 77 birch jules failed 25 indigo gus
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013947-p1
Reverse the sequence of fields in every line and output all of them.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
hana cobalt 80 pending alice indigo 11 paused ivan ember 69 ready eli cobalt 38 active farah fable 64 pending alice ember 35 failed alice ember 39 closed lina amber 116 failed lina cobalt 7 pending
pending 80 cobalt hana paused 11 indigo alice ready 69 ember ivan active 38 cobalt eli pending 64 fable farah failed 35 ember alice closed 39 ember alice failed 116 amber lina pending 7 cobalt lina
gus cobalt 64 ready alice ember 0 pending alice juniper 49 failed eli delta 83 ready ivan fable 31 pending jules birch 77 active gus indigo 25 failed
ready 64 cobalt gus pending 0 ember alice failed 49 juniper alice ready 83 delta eli pending 31 fable ivan active 77 birch jules failed 25 indigo gus
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013947
qwen/qwen3.7-plus
awkweave-0013948
Print the number of whitespace-separated fields on each line.
{print NF}
kim grove 96 ready chen fable 104 closed farah birch 93 paused hana fable 88 active alice grove 115 paused farah ember 21 failed
4 4 4 4 4 4
kim ember 53 ready dina juniper 23 closed farah harbor 46 active chen birch 78 active hana cobalt 21 paused chen delta 47 paused hana birch 39 active bruno amber 31 pending lina delta 47 paused
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013948-p1
Print the count of whitespace-delimited fields for each line.
{print NF}
kim grove 96 ready chen fable 104 closed farah birch 93 paused hana fable 88 active alice grove 115 paused farah ember 21 failed
4 4 4 4 4 4
kim ember 53 ready dina juniper 23 closed farah harbor 46 active chen birch 78 active hana cobalt 21 paused chen delta 47 paused hana birch 39 active bruno amber 31 pending lina delta 47 paused
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013948
qwen/qwen3.7-plus
awkweave-0013949
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]]}
lina beta 53 gus gamma 81 chen gamma 13 bruno alpha 67 hana gamma 28 jules alpha 53 alice alpha 59 chen beta 65
beta 2 gamma 3 alpha 3
bruno delta 51 eli beta 0 farah beta 77 chen delta 55 eli beta 51 alice delta 31 dina gamma 52 jules alpha 25 eli beta 117
delta 3 beta 4 gamma 1 alpha 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013949-p1
Tally the records for each unique value in the second column. Output each value and its count in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
lina beta 53 gus gamma 81 chen gamma 13 bruno alpha 67 hana gamma 28 jules alpha 53 alice alpha 59 chen beta 65
beta 2 gamma 3 alpha 3
bruno delta 51 eli beta 0 farah beta 77 chen delta 55 eli beta 51 alice delta 31 dina gamma 52 jules alpha 25 eli beta 117
delta 3 beta 4 gamma 1 alpha 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013949
qwen/qwen3.7-plus
awkweave-0013950
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
kim gamma 13 lina gamma 25 farah gamma 28 alice gamma 6 lina alpha 13 farah delta 20 gus delta 12
gamma 72 alpha 13 delta 32
farah beta 21 dina gamma 15 gus delta 22 farah gamma 12 hana gamma 24 ivan beta 5 chen delta 24
beta 26 gamma 51 delta 46
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013950-p1
Calculate the sum of the third column for each group defined by the second column, printing the groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
kim gamma 13 lina gamma 25 farah gamma 28 alice gamma 6 lina alpha 13 farah delta 20 gus delta 12
gamma 72 alpha 13 delta 32
farah beta 21 dina gamma 15 gus delta 22 farah gamma 12 hana gamma 24 ivan beta 5 chen delta 24
beta 26 gamma 51 delta 46
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013950
qwen/qwen3.7-plus
awkweave-0013951
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 indigo 59 gamma amber 80 alpha cobalt 60 delta fable 59 alpha fable 76 gamma cobalt 29
delta 2 gamma 2 alpha 2
gamma grove 56 delta birch 58 delta amber 23 delta birch 41 gamma juniper 74 alpha cobalt 68 alpha harbor 56 gamma fable 117 gamma juniper 0
gamma 4 delta 3 alpha 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013951-p1
List each duplicate value from the first column along with its frequency, ordered by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
delta indigo 59 gamma amber 80 alpha cobalt 60 delta fable 59 alpha fable 76 gamma cobalt 29
delta 2 gamma 2 alpha 2
gamma grove 56 delta birch 58 delta amber 23 delta birch 41 gamma juniper 74 alpha cobalt 68 alpha harbor 56 gamma fable 117 gamma juniper 0
gamma 4 delta 3 alpha 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013951
qwen/qwen3.7-plus
awkweave-0013952
The first row is a header. Print the record_id column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
display_name record_id note region r001 gus 28 ready r002 lina 26 closed r003 hana 8 failed r004 ivan 14 ready r005 jules 4 active r006 gus 21 ready r007 dina 9 closed r008 ivan 11 closed r009 dina 19 failed r010 eli 27 closed
gus lina hana ivan jules gus dina ivan dina eli
display_name record_id note region r001 dina 5 ready r002 farah 23 ready r003 chen 1 closed r004 alice 22 active r005 chen 13 active r006 chen 25 active r007 hana 8 ready r008 farah 28 paused r009 dina 5 closed r010 hana 16 failed
dina farah chen alice chen chen hana farah dina hana
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013952-p1
Skip the header row and print the record_id column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
display_name record_id note region r001 gus 28 ready r002 lina 26 closed r003 hana 8 failed r004 ivan 14 ready r005 jules 4 active r006 gus 21 ready r007 dina 9 closed r008 ivan 11 closed r009 dina 19 failed r010 eli 27 closed
gus lina hana ivan jules gus dina ivan dina eli
display_name record_id note region r001 dina 5 ready r002 farah 23 ready r003 chen 1 closed r004 alice 22 active r005 chen 13 active r006 chen 25 active r007 hana 8 ready r008 farah 28 paused r009 dina 5 closed r010 hana 16 failed
dina farah chen alice chen chen hana farah dina hana
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013952
qwen/qwen3.7-plus
awkweave-0013953
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 bruno 10 failed r002 hana 15 pending r003 gus 21 paused r004 chen 8 pending r005 jules 28 ready r006 alice 9 pending r007 farah 26 paused r008 jules 24 paused r009 alice 1 ready
gus jules farah jules
record_id display_name score state r001 chen 28 ready r002 jules 22 pending r003 bruno 6 paused r004 farah 20 paused r005 kim 2 ready r006 ivan 25 pending r007 farah 26 failed r008 alice 1 active r009 eli 10 ready r010 chen 25 closed
chen jules farah ivan farah chen
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013953-p1
Ignoring the header row, print the display_name for data rows where the score exceeds 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 bruno 10 failed r002 hana 15 pending r003 gus 21 paused r004 chen 8 pending r005 jules 28 ready r006 alice 9 pending r007 farah 26 paused r008 jules 24 paused r009 alice 1 ready
gus jules farah jules
record_id display_name score state r001 chen 28 ready r002 jules 22 pending r003 bruno 6 paused r004 farah 20 paused r005 kim 2 ready r006 ivan 25 pending r007 farah 26 failed r008 alice 1 active r009 eli 10 ready r010 chen 25 closed
chen jules farah ivan farah chen
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013953
qwen/qwen3.7-plus
awkweave-0013954
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
chen 1 paused ivan 11 active bruno 30 paused farah 27 active eli 5 failed lina 5 pending
1 11 30 27 5 5
bruno 24 failed alice 14 pending eli 15 active dina 12 failed ivan 8 ready ivan 16 closed dina 30 paused lina 10 ready lina 4 pending
24 14 15 12 8 16 30 10 4
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013954-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
chen 1 paused ivan 11 active bruno 30 paused farah 27 active eli 5 failed lina 5 pending
1 11 30 27 5 5
bruno 24 failed alice 14 pending eli 15 active dina 12 failed ivan 8 ready ivan 16 closed dina 30 paused lina 10 ready lina 4 pending
24 14 15 12 8 16 30 10 4
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0013954
qwen/qwen3.7-plus
awkweave-0013955
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 14.
BEGIN{FS=OFS=","}$2>14{print $1}
lina,28,ready farah,22,failed hana,16,failed chen,5,failed jules,1,closed bruno,2,paused
lina farah hana
gus,3,ready farah,18,pending bruno,5,active alice,21,paused farah,20,active chen,9,failed
farah alice farah
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013955-p1
Output the first field of comma-separated records where the second field is strictly greater than 14, assuming no quoted commas.
BEGIN{FS=OFS=","}$2>14{print $1}
lina,28,ready farah,22,failed hana,16,failed chen,5,failed jules,1,closed bruno,2,paused
lina farah hana
gus,3,ready farah,18,pending bruno,5,active alice,21,paused farah,20,active chen,9,failed
farah alice farah
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013955
qwen/qwen3.7-plus
awkweave-0013956
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
alice fable 99 alice fable 6 eli juniper 21 kim birch 61 eli amber 107 hana grove 8 farah fable 5 alice harbor 116
alice fable 99 alice fable 6 eli juniper 21 kim birch 61 eli amber 107 hana grove 8 farah fable 5 alice harbor 116
jules grove 59 lina grove 6 bruno amber 65 chen fable 119 ivan grove 59 hana fable 72 dina amber 76 ivan harbor 77 alice indigo 51
jules grove 59 lina grove 6 bruno amber 65 chen fable 119 ivan grove 59 hana fable 72 dina amber 76 ivan harbor 77 alice indigo 51
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013956-p1
Remove leading and trailing whitespace from each line and replace sequences of internal whitespace with a single space.
{$1=$1;print}
alice fable 99 alice fable 6 eli juniper 21 kim birch 61 eli amber 107 hana grove 8 farah fable 5 alice harbor 116
alice fable 99 alice fable 6 eli juniper 21 kim birch 61 eli amber 107 hana grove 8 farah fable 5 alice harbor 116
jules grove 59 lina grove 6 bruno amber 65 chen fable 119 ivan grove 59 hana fable 72 dina amber 76 ivan harbor 77 alice indigo 51
jules grove 59 lina grove 6 bruno amber 65 chen fable 119 ivan grove 59 hana fable 72 dina amber 76 ivan harbor 77 alice indigo 51
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013956
qwen/qwen3.7-plus
awkweave-0013957
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
eli grove 60 ready eli juniper 29 paused eli birch 81 pending hana grove 52 pending hana delta 113 closed bruno cobalt 73 failed eli juniper 33 ready gus juniper 45 ready farah cobalt 36 failed kim ember 1 closed
bruno cobalt 73 failed
lina delta 113 active gus harbor 48 pending alice birch 53 closed ivan cobalt 88 closed bruno harbor 42 pending alice amber 85 paused eli fable 66 active eli ember 112 active
bruno harbor 42 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013957-p1
Identify and print the longest line in the input; if multiple lines share the maximum length, output the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
eli grove 60 ready eli juniper 29 paused eli birch 81 pending hana grove 52 pending hana delta 113 closed bruno cobalt 73 failed eli juniper 33 ready gus juniper 45 ready farah cobalt 36 failed kim ember 1 closed
bruno cobalt 73 failed
lina delta 113 active gus harbor 48 pending alice birch 53 closed ivan cobalt 88 closed bruno harbor 42 pending alice amber 85 paused eli fable 66 active eli ember 112 active
bruno harbor 42 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013957
qwen/qwen3.7-plus
awkweave-0013958
Print every 4th line starting at line 2 (then line 6, and so on).
NR%4==2
alice 51 eli 104 kim 104 bruno 105 eli 30 ivan 57 eli 110 dina 82
eli 104 ivan 57
jules 93 farah 118 dina 104 kim 69 jules 104 eli 4 dina 26 hana 64 kim 49
farah 118 eli 4
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013958-p1
Print lines 2, 6, 10, and so on, effectively selecting every fourth line starting from the second.
NR%4==2
alice 51 eli 104 kim 104 bruno 105 eli 30 ivan 57 eli 110 dina 82
eli 104 ivan 57
jules 93 farah 118 dina 104 kim 69 jules 104 eli 4 dina 26 hana 64 kim 49
farah 118 eli 4
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013958
qwen/qwen3.7-plus
awkweave-0013959
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta birch 112 alpha birch 14 gamma fable 96 alpha amber 61 beta juniper 97 delta amber 74 delta birch 78 alpha grove 95 gamma harbor 42
6
delta harbor 34 delta grove 102 beta indigo 34 beta birch 2 beta indigo 25 alpha grove 42 alpha indigo 107 delta juniper 18
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013959-p1
Calculate and output only the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
beta birch 112 alpha birch 14 gamma fable 96 alpha amber 61 beta juniper 97 delta amber 74 delta birch 78 alpha grove 95 gamma harbor 42
6
delta harbor 34 delta grove 102 beta indigo 34 beta birch 2 beta indigo 25 alpha grove 42 alpha indigo 107 delta juniper 18
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013959
qwen/qwen3.7-plus
awkweave-0013960
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}
kim 25 0 farah 4 27 lina 7 6 kim 8 25 kim 9 3 ivan 12 19 kim 10 6
farah 0.15 lina 1.17 kim 0.32 kim 3.00 ivan 0.63 kim 1.67
kim 27 0 jules 17 2 hana 7 21 gus 13 19 alice 4 17 lina 3 13
jules 8.50 hana 0.33 gus 0.68 alice 0.24 lina 0.23
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013960-p1
For each row where the third column is non-zero, print the first column followed by 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}
kim 25 0 farah 4 27 lina 7 6 kim 8 25 kim 9 3 ivan 12 19 kim 10 6
farah 0.15 lina 1.17 kim 0.32 kim 3.00 ivan 0.63 kim 1.67
kim 27 0 jules 17 2 hana 7 21 gus 13 19 alice 4 17 lina 3 13
jules 8.50 hana 0.33 gus 0.68 alice 0.24 lina 0.23
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013960
qwen/qwen3.7-plus
awkweave-0013961
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
dina cobalt 8 eli indigo 20 chen fable 12 gus grove 15 chen cobalt 10 farah cobalt 14
eli indigo 20 gus grove 15 farah cobalt 14
alice cobalt 11 chen ember 11 jules harbor 3 kim cobalt 18 gus amber 15 chen birch 4 alice ember 8 kim ember 9 hana amber 26
hana amber 26 kim cobalt 18 gus amber 15
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013961-p1
Output the top 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]}
dina cobalt 8 eli indigo 20 chen fable 12 gus grove 15 chen cobalt 10 farah cobalt 14
eli indigo 20 gus grove 15 farah cobalt 14
alice cobalt 11 chen ember 11 jules harbor 3 kim cobalt 18 gus amber 15 chen birch 4 alice ember 8 kim ember 9 hana amber 26
hana amber 26 kim cobalt 18 gus amber 15
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013961
qwen/qwen3.7-plus
awkweave-0013962
For each line, output fields 2 and 1, in that order.
{print $2, $1}
119 37 harbor gus 110 active 10 3 delta alice 29 failed 33 18 grove ivan 19 active 18 84 cobalt alice 115 closed 13 80 ember lina 85 failed 56 60 delta dina 108 closed 95 47 fable gus 73 active 70 73 delta ivan 82 closed 73 5 cobalt bruno 110 paused
37 119 3 10 18 33 84 18 80 13 60 56 47 95 73 70 5 73
42 70 birch jules 116 failed 102 61 grove dina 90 failed 93 6 ember eli 60 failed 21 40 cobalt chen 22 pending 21 97 amber eli 39 paused 111 67 delta hana 89 ready 38 87 birch farah 53 failed 27 0 cobalt eli 9 closed 72 22 grove kim 96 paused
70 42 61 102 6 93 40 21 97 21 67 111 87 38 0 27 22 72
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013962-p1
Rearrange each line to print the second field followed by the first field.
{print $2, $1}
119 37 harbor gus 110 active 10 3 delta alice 29 failed 33 18 grove ivan 19 active 18 84 cobalt alice 115 closed 13 80 ember lina 85 failed 56 60 delta dina 108 closed 95 47 fable gus 73 active 70 73 delta ivan 82 closed 73 5 cobalt bruno 110 paused
37 119 3 10 18 33 84 18 80 13 60 56 47 95 73 70 5 73
42 70 birch jules 116 failed 102 61 grove dina 90 failed 93 6 ember eli 60 failed 21 40 cobalt chen 22 pending 21 97 amber eli 39 paused 111 67 delta hana 89 ready 38 87 birch farah 53 failed 27 0 cobalt eli 9 closed 72 22 grove kim 96 paused
70 42 61 102 6 93 40 21 97 21 67 111 87 38 0 27 22 72
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013962
qwen/qwen3.7-plus
awkweave-0013963
Print the last field of every input line.
{print $NF}
fable cobalt 23 harbor cobalt 40 juniper indigo 34 indigo fable 53 cobalt juniper 50 birch birch 84
23 40 34 53 50 84
ember grove 7 delta ember 116 grove fable 64 birch grove 62 harbor indigo 43 harbor delta 113 indigo delta 100
7 116 64 62 43 113 100
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013963-p1
Display the final field from every line of input.
{print $NF}
fable cobalt 23 harbor cobalt 40 juniper indigo 34 indigo fable 53 cobalt juniper 50 birch birch 84
23 40 34 53 50 84
ember grove 7 delta ember 116 grove fable 64 birch grove 62 harbor indigo 43 harbor delta 113 indigo delta 100
7 116 64 62 43 113 100
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013963
qwen/qwen3.7-plus
awkweave-0013964
Print the complete records where column 2 is greater than 50.
$2 > 50
paused 103 eli closed 15 alice closed 35 dina active 71 lina active 61 hana failed 6 kim failed 116 ivan active 68 bruno ready 48 dina
paused 103 eli active 71 lina active 61 hana failed 116 ivan active 68 bruno
pending 71 dina paused 66 ivan failed 32 farah closed 29 jules failed 19 farah closed 99 farah active 64 jules ready 111 chen
pending 71 dina paused 66 ivan closed 99 farah active 64 jules ready 111 chen
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013964-p1
Output entire records where the value in the second column exceeds 50.
$2 > 50
paused 103 eli closed 15 alice closed 35 dina active 71 lina active 61 hana failed 6 kim failed 116 ivan active 68 bruno ready 48 dina
paused 103 eli active 71 lina active 61 hana failed 116 ivan active 68 bruno
pending 71 dina paused 66 ivan failed 32 farah closed 29 jules failed 19 farah closed 99 farah active 64 jules ready 111 chen
pending 71 dina paused 66 ivan closed 99 farah active 64 jules ready 111 chen
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013964
qwen/qwen3.7-plus
awkweave-0013965
Show whole lines whose 1st field is between 4 and 26, inclusive.
$1 >= 4 && $1 <= 26
15 fable pending paused 24 harbor closed failed 27 amber closed paused 2 cobalt pending active 23 fable paused pending 14 ember ready ready 16 delta ready active 27 birch pending failed 15 birch active paused
15 fable pending paused 24 harbor closed failed 23 fable paused pending 14 ember ready ready 16 delta ready active 15 birch active paused
14 indigo closed failed 24 indigo active closed 18 harbor ready active 7 birch paused closed 10 fable ready failed 5 delta pending active
14 indigo closed failed 24 indigo active closed 18 harbor ready active 7 birch paused closed 10 fable ready failed 5 delta pending active
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013965-p1
Print full lines where the first field falls within the inclusive range of 4 to 26.
$1 >= 4 && $1 <= 26
15 fable pending paused 24 harbor closed failed 27 amber closed paused 2 cobalt pending active 23 fable paused pending 14 ember ready ready 16 delta ready active 27 birch pending failed 15 birch active paused
15 fable pending paused 24 harbor closed failed 23 fable paused pending 14 ember ready ready 16 delta ready active 15 birch active paused
14 indigo closed failed 24 indigo active closed 18 harbor ready active 7 birch paused closed 10 fable ready failed 5 delta pending active
14 indigo closed failed 24 indigo active closed 18 harbor ready active 7 birch paused closed 10 fable ready failed 5 delta pending active
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013965
qwen/qwen3.7-plus
awkweave-0013966
Print column 3 only for rows where column 2 is exactly ready.
$2 == "ready"{print $3}
62 closed alice harbor 79 paused kim delta 1 pending bruno cobalt 106 ready eli amber 113 paused kim delta 105 paused gus cobalt 90 failed hana grove 61 pending alice harbor 29 failed farah delta 8 paused alice indigo
eli
47 ready ivan juniper 99 failed alice fable 47 ready eli juniper 40 ready alice grove 1 closed gus harbor 47 closed farah amber
ivan eli alice
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013966-p1
Output the third column exclusively for rows where the second column matches 'ready' exactly.
$2 == "ready"{print $3}
62 closed alice harbor 79 paused kim delta 1 pending bruno cobalt 106 ready eli amber 113 paused kim delta 105 paused gus cobalt 90 failed hana grove 61 pending alice harbor 29 failed farah delta 8 paused alice indigo
eli
47 ready ivan juniper 99 failed alice fable 47 ready eli juniper 40 ready alice grove 1 closed gus harbor 47 closed farah amber
ivan eli alice
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013966
qwen/qwen3.7-plus
awkweave-0013967
Print all fields from lines where field 3 begins with ERROR.
$3 ~ /^ERROR/
indigo 36 INFO amber 35 ERROR ember 67 ERROR harbor 61 WARN ember 83 INFO harbor 40 DEBUG delta 21 ERROR indigo 28 DEBUG
amber 35 ERROR ember 67 ERROR delta 21 ERROR
harbor 99 DEBUG delta 9 ERROR delta 36 INFO fable 67 DEBUG ember 77 DEBUG amber 19 INFO
delta 9 ERROR
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013967-p1
Display every field from lines whose third field starts with 'ERROR'.
$3 ~ /^ERROR/
indigo 36 INFO amber 35 ERROR ember 67 ERROR harbor 61 WARN ember 83 INFO harbor 40 DEBUG delta 21 ERROR indigo 28 DEBUG
amber 35 ERROR ember 67 ERROR delta 21 ERROR
harbor 99 DEBUG delta 9 ERROR delta 36 INFO fable 67 DEBUG ember 77 DEBUG amber 19 INFO
delta 9 ERROR
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013967
qwen/qwen3.7-plus
awkweave-0013968
Print every line except those containing the exact text indigo.
$0 !~ /indigo/
birch 44 failed grove 31 closed ember 114 active cobalt 11 closed fable 25 failed ember 56 paused ember 75 pending indigo 999 active
birch 44 failed grove 31 closed ember 114 active cobalt 11 closed fable 25 failed ember 56 paused ember 75 pending
fable 33 paused indigo 103 pending cobalt 103 paused birch 49 failed ember 49 active cobalt 54 failed birch 4 ready birch 31 ready birch 100 closed juniper 70 paused indigo 999 active
fable 33 paused cobalt 103 paused birch 49 failed ember 49 active cobalt 54 failed birch 4 ready birch 31 ready birch 100 closed juniper 70 paused
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013968-p1
Print all lines that do not contain the exact string 'indigo'.
$0 !~ /indigo/
birch 44 failed grove 31 closed ember 114 active cobalt 11 closed fable 25 failed ember 56 paused ember 75 pending indigo 999 active
birch 44 failed grove 31 closed ember 114 active cobalt 11 closed fable 25 failed ember 56 paused ember 75 pending
fable 33 paused indigo 103 pending cobalt 103 paused birch 49 failed ember 49 active cobalt 54 failed birch 4 ready birch 31 ready birch 100 closed juniper 70 paused indigo 999 active
fable 33 paused cobalt 103 paused birch 49 failed ember 49 active cobalt 54 failed birch 4 ready birch 31 ready birch 100 closed juniper 70 paused
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013968
qwen/qwen3.7-plus
awkweave-0013969
Print lines 4 through 5, including both endpoints.
NR >= 4 && NR <= 5
lina delta 116 kim juniper 17 dina ember 18 kim cobalt 94 hana juniper 85 gus cobalt 116 kim indigo 51
kim cobalt 94 hana juniper 85
chen cobalt 45 eli ember 4 bruno grove 14 dina fable 89 jules ember 7 hana harbor 90 eli indigo 78
dina fable 89 jules ember 7
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013969-p1
Output lines 4 to 5, inclusive of both ends.
NR >= 4 && NR <= 5
lina delta 116 kim juniper 17 dina ember 18 kim cobalt 94 hana juniper 85 gus cobalt 116 kim indigo 51
kim cobalt 94 hana juniper 85
chen cobalt 45 eli ember 4 bruno grove 14 dina fable 89 jules ember 7 hana harbor 90 eli indigo 78
dina fable 89 jules ember 7
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013969
qwen/qwen3.7-plus
awkweave-0013970
Output only the first 5 records.
NR <= 5
bruno 58 fable gus 85 indigo dina 93 harbor farah 8 grove hana 50 harbor kim 9 cobalt chen 106 birch
bruno 58 fable gus 85 indigo dina 93 harbor farah 8 grove hana 50 harbor
ivan 54 juniper gus 94 birch alice 65 grove dina 25 harbor hana 3 amber alice 38 cobalt jules 115 birch hana 2 birch
ivan 54 juniper gus 94 birch alice 65 grove dina 25 harbor hana 3 amber
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013970-p1
Display only the initial 5 records.
NR <= 5
bruno 58 fable gus 85 indigo dina 93 harbor farah 8 grove hana 50 harbor kim 9 cobalt chen 106 birch
bruno 58 fable gus 85 indigo dina 93 harbor farah 8 grove hana 50 harbor
ivan 54 juniper gus 94 birch alice 65 grove dina 25 harbor hana 3 amber alice 38 cobalt jules 115 birch hana 2 birch
ivan 54 juniper gus 94 birch alice 65 grove dina 25 harbor hana 3 amber
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013970
qwen/qwen3.7-plus
awkweave-0013971
Skip the first line and print every remaining line unchanged.
NR > 1
jules 39 birch farah 90 harbor jules 37 fable jules 64 cobalt kim 67 cobalt dina 5 juniper
farah 90 harbor jules 37 fable jules 64 cobalt kim 67 cobalt dina 5 juniper
farah 12 juniper hana 4 grove kim 83 cobalt jules 119 ember ivan 24 juniper bruno 116 delta kim 63 indigo gus 111 birch bruno 104 cobalt
hana 4 grove kim 83 cobalt jules 119 ember ivan 24 juniper bruno 116 delta kim 63 indigo gus 111 birch bruno 104 cobalt
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013971-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
jules 39 birch farah 90 harbor jules 37 fable jules 64 cobalt kim 67 cobalt dina 5 juniper
farah 90 harbor jules 37 fable jules 64 cobalt kim 67 cobalt dina 5 juniper
farah 12 juniper hana 4 grove kim 83 cobalt jules 119 ember ivan 24 juniper bruno 116 delta kim 63 indigo gus 111 birch bruno 104 cobalt
hana 4 grove kim 83 cobalt jules 119 ember ivan 24 juniper bruno 116 delta kim 63 indigo gus 111 birch bruno 104 cobalt
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013971
qwen/qwen3.7-plus
awkweave-0013972
Count how many records have ready in column 2. Print 0 if there are none.
$2 == "ready"{n++}END{print n+0}
jules closed 113 gus active 97 ivan ready 65 dina failed 29 farah closed 119 jules paused 17 farah ready 87 dina closed 19
2
chen ready 92 chen active 113 ivan pending 1 hana closed 16 lina paused 24 bruno paused 113 dina active 64 bruno pending 32 lina closed 119
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013972-p1
Count the number of records with 'ready' in the second column, outputting 0 if none exist.
$2 == "ready"{n++}END{print n+0}
jules closed 113 gus active 97 ivan ready 65 dina failed 29 farah closed 119 jules paused 17 farah ready 87 dina closed 19
2
chen ready 92 chen active 113 ivan pending 1 hana closed 16 lina paused 24 bruno paused 113 dina active 64 bruno pending 32 lina closed 119
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013972
qwen/qwen3.7-plus
awkweave-0013973
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
gus juniper 16 hana delta 22 gus juniper 10 hana birch 27 kim juniper 25 kim cobalt 3 gus amber 9 eli indigo 25
137
bruno grove 13 chen indigo 2 jules indigo 17 hana indigo 28 gus indigo 1 gus birch 23 alice grove 26 jules harbor 16 dina grove 5 gus harbor 15
146
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013973-p1
Compute and display the sum of integer values found in the third column.
{s+=$3}END{print s+0}
gus juniper 16 hana delta 22 gus juniper 10 hana birch 27 kim juniper 25 kim cobalt 3 gus amber 9 eli indigo 25
137
bruno grove 13 chen indigo 2 jules indigo 17 hana indigo 28 gus indigo 1 gus birch 23 alice grove 26 jules harbor 16 dina grove 5 gus harbor 15
146
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013973
qwen/qwen3.7-plus
awkweave-0013974
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
28 chen indigo 7 eli fable 15 eli indigo 28 kim fable 26 ivan indigo 26 farah fable 30 kim cobalt 1 farah cobalt 11 gus birch
19.11
19 farah fable 21 gus delta 19 bruno delta 20 kim grove 1 bruno cobalt 18 gus cobalt 6 gus fable 28 ivan grove 9 dina birch 26 ivan fable
16.70
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013974-p1
Print the average of the first column, formatted to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
28 chen indigo 7 eli fable 15 eli indigo 28 kim fable 26 ivan indigo 26 farah fable 30 kim cobalt 1 farah cobalt 11 gus birch
19.11
19 farah fable 21 gus delta 19 bruno delta 20 kim grove 1 bruno cobalt 18 gus cobalt 6 gus fable 28 ivan grove 9 dina birch 26 ivan fable
16.70
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013974
qwen/qwen3.7-plus
awkweave-0013975
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
25 ember gus 7 grove gus 30 cobalt alice 10 fable jules 3 fable dina 6 ember hana
3
25 indigo chen 26 ember gus 3 cobalt alice 18 delta kim 3 cobalt ivan 20 fable jules 20 amber dina 26 grove gus 7 juniper alice 30 grove dina
3
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013975-p1
Identify and output the minimum numeric value in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
25 ember gus 7 grove gus 30 cobalt alice 10 fable jules 3 fable dina 6 ember hana
3
25 indigo chen 26 ember gus 3 cobalt alice 18 delta kim 3 cobalt ivan 20 fable jules 20 amber dina 26 grove gus 7 juniper alice 30 grove dina
3
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013975
qwen/qwen3.7-plus
awkweave-0013976
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
chen 30 ember dina 19 delta chen 22 harbor jules 19 indigo bruno 4 harbor chen 11 harbor
30
ivan 29 cobalt hana 17 fable alice 5 ember chen 16 harbor lina 11 grove eli 12 grove bruno 22 ember ivan 26 juniper
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013976-p1
Identify and output the maximum numeric value in the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
chen 30 ember dina 19 delta chen 22 harbor jules 19 indigo bruno 4 harbor chen 11 harbor
30
ivan 29 cobalt hana 17 fable alice 5 ember chen 16 harbor lina 11 grove eli 12 grove bruno 22 ember ivan 26 juniper
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013976
qwen/qwen3.7-plus
awkweave-0013977
Count all input records and print the total.
END{print NR}
hana 61 lina 41 lina 120 jules 32 farah 19 bruno 22
6
alice 32 jules 81 bruno 51 hana 41 farah 80 hana 68
6
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013977-p1
Count the total number of input records and print the result.
END{print NR}
hana 61 lina 41 lina 120 jules 32 farah 19 bruno 22
6
alice 32 jules 81 bruno 51 hana 41 farah 80 hana 68
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013977
qwen/qwen3.7-plus
awkweave-0013978
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
hana amber 78 alice harbor 54 farah cobalt 101 lina indigo 55 alice cobalt 40 dina indigo 45 dina ember 105 jules delta 35 alice cobalt 40 jules juniper 78 farah cobalt 73
hana amber 78 alice harbor 54 farah cobalt 101 lina indigo 55 alice cobalt 40 dina indigo 45 dina ember 105 jules delta 35 jules juniper 78 farah cobalt 73
lina grove 105 chen fable 3 alice fable 120 gus delta 72 hana birch 35 alice fable 120 jules amber 85 eli amber 97
lina grove 105 chen fable 3 alice fable 120 gus delta 72 hana birch 35 jules amber 85 eli amber 97
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013978-p1
Eliminate exact duplicate lines while maintaining the original sequence and keeping only the first instance of each.
!seen[$0]++
hana amber 78 alice harbor 54 farah cobalt 101 lina indigo 55 alice cobalt 40 dina indigo 45 dina ember 105 jules delta 35 alice cobalt 40 jules juniper 78 farah cobalt 73
hana amber 78 alice harbor 54 farah cobalt 101 lina indigo 55 alice cobalt 40 dina indigo 45 dina ember 105 jules delta 35 jules juniper 78 farah cobalt 73
lina grove 105 chen fable 3 alice fable 120 gus delta 72 hana birch 35 alice fable 120 jules amber 85 eli amber 97
lina grove 105 chen fable 3 alice fable 120 gus delta 72 hana birch 35 jules amber 85 eli amber 97
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013978
qwen/qwen3.7-plus
awkweave-0013979
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
alice indigo 112 eli ember 104 chen ember 10 gus ember 48 hana indigo 62 dina delta 51 kim delta 91 eli indigo 96
alice indigo 112 eli ember 104 dina delta 51
hana birch 89 hana ember 92 kim harbor 76 hana amber 103 bruno harbor 31 dina harbor 68 gus fable 81
hana birch 89 hana ember 92 kim harbor 76 hana amber 103 gus fable 81
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013979-p1
Retain only the initial line for every unique value found in the second column, ensuring the input order is preserved.
!seen[$2]++
alice indigo 112 eli ember 104 chen ember 10 gus ember 48 hana indigo 62 dina delta 51 kim delta 91 eli indigo 96
alice indigo 112 eli ember 104 dina delta 51
hana birch 89 hana ember 92 kim harbor 76 hana amber 103 bruno harbor 31 dina harbor 68 gus fable 81
hana birch 89 hana ember 92 kim harbor 76 hana amber 103 gus fable 81
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013979
qwen/qwen3.7-plus
awkweave-0013980
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 2 grove chen 17 amber gus 28 delta lina 18 grove jules 13 ember lina 25 ember chen 20 amber
ivan 2 chen 19 gus 47 lina 65 jules 78 lina 103 chen 123
kim 29 juniper jules 7 delta dina 20 amber chen 26 indigo lina 20 amber eli 27 fable
kim 29 jules 36 dina 56 chen 82 lina 102 eli 129
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013980-p1
Output the first column alongside the cumulative total of the second column for each record, using a space as the delimiter.
{s+=$2;print $1,s}
ivan 2 grove chen 17 amber gus 28 delta lina 18 grove jules 13 ember lina 25 ember chen 20 amber
ivan 2 chen 19 gus 47 lina 65 jules 78 lina 103 chen 123
kim 29 juniper jules 7 delta dina 20 amber chen 26 indigo lina 20 amber eli 27 fable
kim 29 jules 36 dina 56 chen 82 lina 102 eli 129
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013980
qwen/qwen3.7-plus
awkweave-0013981
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
kim 5 7 ember hana 3 6 harbor chen 9 8 grove ivan 18 25 juniper bruno 9 19 grove kim 30 23 amber lina 13 4 birch bruno 26 2 indigo
kim 12 hana 9 chen 17 ivan 43 bruno 28 kim 53 lina 17 bruno 28
eli 22 26 delta kim 5 22 juniper kim 7 23 grove ivan 20 17 birch kim 15 6 cobalt farah 7 3 cobalt chen 11 7 ember chen 4 6 birch chen 22 15 delta jules 2 18 birch
eli 48 kim 27 kim 30 ivan 37 kim 21 farah 10 chen 18 chen 10 chen 37 jules 20
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013981-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
kim 5 7 ember hana 3 6 harbor chen 9 8 grove ivan 18 25 juniper bruno 9 19 grove kim 30 23 amber lina 13 4 birch bruno 26 2 indigo
kim 12 hana 9 chen 17 ivan 43 bruno 28 kim 53 lina 17 bruno 28
eli 22 26 delta kim 5 22 juniper kim 7 23 grove ivan 20 17 birch kim 15 6 cobalt farah 7 3 cobalt chen 11 7 ember chen 4 6 birch chen 22 15 delta jules 2 18 birch
eli 48 kim 27 kim 30 ivan 37 kim 21 farah 10 chen 18 chen 10 chen 37 jules 20
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013981
qwen/qwen3.7-plus
awkweave-0013982
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
gus 3 gus 6 gus 13 farah 25 eli 28 kim 24
gus fail gus fail gus fail farah pass eli pass kim fail
eli 16 hana 24 ivan 11 ivan 19 ivan 14 dina 7 ivan 30 lina 27 bruno 25 eli 8
eli fail hana fail ivan fail ivan fail ivan fail dina fail ivan pass lina pass bruno pass eli fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013982-p1
Output the first column along with 'pass' if the second column is 25 or greater; otherwise, output 'fail'.
{print $1,($2>=25?"pass":"fail")}
gus 3 gus 6 gus 13 farah 25 eli 28 kim 24
gus fail gus fail gus fail farah pass eli pass kim fail
eli 16 hana 24 ivan 11 ivan 19 ivan 14 dina 7 ivan 30 lina 27 bruno 25 eli 8
eli fail hana fail ivan fail ivan fail ivan fail dina fail ivan pass lina pass bruno pass eli fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013982
qwen/qwen3.7-plus
awkweave-0013983
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
lina amber 32 gus delta 103 eli grove 58 ivan indigo 56 gus ember 120 gus grove 118 dina ember 87 alice fable 30 eli indigo 43
AMBER DELTA GROVE INDIGO EMBER GROVE EMBER FABLE INDIGO
chen ember 93 farah indigo 14 eli harbor 5 hana delta 40 dina ember 9 farah fable 38 jules grove 35 eli grove 16 eli delta 104
EMBER INDIGO HARBOR DELTA EMBER FABLE GROVE GROVE DELTA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013983-p1
Transform the second column to uppercase and output only that modified column.
{print toupper($2)}
lina amber 32 gus delta 103 eli grove 58 ivan indigo 56 gus ember 120 gus grove 118 dina ember 87 alice fable 30 eli indigo 43
AMBER DELTA GROVE INDIGO EMBER GROVE EMBER FABLE INDIGO
chen ember 93 farah indigo 14 eli harbor 5 hana delta 40 dina ember 9 farah fable 38 jules grove 35 eli grove 16 eli delta 104
EMBER INDIGO HARBOR DELTA EMBER FABLE GROVE GROVE DELTA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013983
qwen/qwen3.7-plus
awkweave-0013984
From column 1, print 3 characters starting at character 2.
{print substr($1,2,3)}
indigo 17 delta 23 harbor 86 fable 96 amber 29 grove 118 fable 10 indigo 15
ndi elt arb abl mbe rov abl ndi
harbor 27 indigo 62 grove 60 indigo 13 indigo 57 ember 120 harbor 8
arb ndi rov ndi ndi mbe arb
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013984-p1
Extract and print a substring of 3 characters from the first column, beginning at the second character position.
{print substr($1,2,3)}
indigo 17 delta 23 harbor 86 fable 96 amber 29 grove 118 fable 10 indigo 15
ndi elt arb abl mbe rov abl ndi
harbor 27 indigo 62 grove 60 indigo 13 indigo 57 ember 120 harbor 8
arb ndi rov ndi ndi mbe arb
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013984
qwen/qwen3.7-plus
awkweave-0013985
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
juniper_grove 112 ember_fable 96 fable_fable 47 ember_juniper 89 harbor_birch 4 birch_cobalt 101 cobalt_ember 28 harbor_delta 46 cobalt_indigo 54
juniper grove ember fable fable fable ember juniper harbor birch birch cobalt cobalt ember harbor delta cobalt indigo
harbor_birch 33 indigo_birch 117 ember_birch 112 ember_delta 79 amber_harbor 98 indigo_delta 26 cobalt_indigo 23 grove_indigo 114 harbor_amber 28 harbor_amber 63
harbor birch indigo birch ember birch ember delta amber harbor indigo delta cobalt indigo grove indigo harbor amber harbor amber
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013985-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
juniper_grove 112 ember_fable 96 fable_fable 47 ember_juniper 89 harbor_birch 4 birch_cobalt 101 cobalt_ember 28 harbor_delta 46 cobalt_indigo 54
juniper grove ember fable fable fable ember juniper harbor birch birch cobalt cobalt ember harbor delta cobalt indigo
harbor_birch 33 indigo_birch 117 ember_birch 112 ember_delta 79 amber_harbor 98 indigo_delta 26 cobalt_indigo 23 grove_indigo 114 harbor_amber 28 harbor_amber 63
harbor birch indigo birch ember birch ember delta amber harbor indigo delta cobalt indigo grove indigo harbor amber harbor amber
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013985
qwen/qwen3.7-plus
awkweave-0013986
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)}
hana cobalt 47 closed hana amber 68 failed kim amber 49 ready kim harbor 64 active gus birch 61 closed jules grove 103 active kim fable 66 pending eli grove 80 pending
closed 47 cobalt hana failed 68 amber hana ready 49 amber kim active 64 harbor kim closed 61 birch gus active 103 grove jules pending 66 fable kim pending 80 grove eli
hana juniper 10 failed gus cobalt 104 active gus amber 16 paused hana amber 11 paused dina fable 104 ready eli birch 69 ready bruno juniper 99 ready
failed 10 juniper hana active 104 cobalt gus paused 16 amber gus paused 11 amber hana ready 104 fable dina ready 69 birch eli ready 99 juniper bruno
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013986-p1
Reverse the sequence of fields on each line and output all fields in this new order.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
hana cobalt 47 closed hana amber 68 failed kim amber 49 ready kim harbor 64 active gus birch 61 closed jules grove 103 active kim fable 66 pending eli grove 80 pending
closed 47 cobalt hana failed 68 amber hana ready 49 amber kim active 64 harbor kim closed 61 birch gus active 103 grove jules pending 66 fable kim pending 80 grove eli
hana juniper 10 failed gus cobalt 104 active gus amber 16 paused hana amber 11 paused dina fable 104 ready eli birch 69 ready bruno juniper 99 ready
failed 10 juniper hana active 104 cobalt gus paused 16 amber gus paused 11 amber hana ready 104 fable dina ready 69 birch eli ready 99 juniper bruno
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013986
qwen/qwen3.7-plus
awkweave-0013987
Print the number of whitespace-separated fields on each line.
{print NF}
hana harbor 112 failed chen delta 110 paused chen cobalt 114 active alice indigo 65 active chen juniper 31 paused dina fable 102 paused gus indigo 55 paused bruno indigo 74 paused hana delta 77 active ivan delta 100 active
4 4 4 4 4 4 4 4 4 4
chen amber 105 active bruno delta 11 closed kim harbor 0 active eli fable 103 paused ivan cobalt 24 active kim cobalt 54 ready
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013987-p1
Display the count of whitespace-delimited fields present on each line.
{print NF}
hana harbor 112 failed chen delta 110 paused chen cobalt 114 active alice indigo 65 active chen juniper 31 paused dina fable 102 paused gus indigo 55 paused bruno indigo 74 paused hana delta 77 active ivan delta 100 active
4 4 4 4 4 4 4 4 4 4
chen amber 105 active bruno delta 11 closed kim harbor 0 active eli fable 103 paused ivan cobalt 24 active kim cobalt 54 ready
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013987
qwen/qwen3.7-plus
awkweave-0013988
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 39 gus alpha 43 chen delta 41 jules delta 109 gus delta 49 jules alpha 111 dina alpha 107
alpha 4 delta 3
chen alpha 114 chen beta 4 dina gamma 22 bruno delta 109 farah alpha 5 farah alpha 73 alice gamma 47
alpha 3 beta 1 gamma 2 delta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013988-p1
Tally the number of records for each unique value in the second column, printing each value and its corresponding count in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
kim alpha 39 gus alpha 43 chen delta 41 jules delta 109 gus delta 49 jules alpha 111 dina alpha 107
alpha 4 delta 3
chen alpha 114 chen beta 4 dina gamma 22 bruno delta 109 farah alpha 5 farah alpha 73 alice gamma 47
alpha 3 beta 1 gamma 2 delta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013988
qwen/qwen3.7-plus
awkweave-0013989
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]]}
bruno beta 29 gus alpha 7 gus beta 8 farah beta 28 dina alpha 2 chen gamma 19 farah alpha 4
beta 65 alpha 13 gamma 19
kim delta 19 eli beta 24 lina alpha 14 jules gamma 16 bruno gamma 7 alice gamma 11 dina gamma 10 gus alpha 5 chen beta 2
delta 19 beta 26 alpha 19 gamma 44
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0013989-p1
Calculate the sum of the third column for each group defined by the second column, presenting the results in the order of the groups' 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]]}
bruno beta 29 gus alpha 7 gus beta 8 farah beta 28 dina alpha 2 chen gamma 19 farah alpha 4
beta 65 alpha 13 gamma 19
kim delta 19 eli beta 24 lina alpha 14 jules gamma 16 bruno gamma 7 alice gamma 11 dina gamma 10 gus alpha 5 chen beta 2
delta 19 beta 26 alpha 19 gamma 44
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0013989
qwen/qwen3.7-plus
awkweave-0014000
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
alice ember 25 alice harbor 13 chen birch 4 hana fable 30 lina cobalt 13 chen fable 10
hana fable 30 alice ember 25 alice harbor 13
dina fable 1 gus grove 9 gus birch 4 dina fable 13 hana indigo 27 alice amber 14 lina grove 30
lina grove 30 hana indigo 27 alice amber 14
top_three
3
train
original-grammar
CC-BY-4.0
null
null