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-0047052-p1
Output the first column alongside the cumulative sum of the second column for each record, separated by a space.
{s+=$2;print $1,s}
kim 13 delta hana 30 birch dina 13 harbor farah 13 fable hana 28 birch hana 27 juniper
kim 13 hana 43 dina 56 farah 69 hana 97 hana 124
alice 1 amber hana 17 cobalt dina 1 grove jules 30 delta gus 22 amber bruno 25 indigo bruno 4 cobalt bruno 5 indigo farah 17 cobalt gus 25 indigo
alice 1 hana 18 dina 19 jules 49 gus 71 bruno 96 bruno 100 bruno 105 farah 122 gus 147
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047052
qwen/qwen3.7-plus
awkweave-0047053
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
hana 8 29 harbor ivan 28 24 delta alice 23 13 juniper lina 5 22 cobalt farah 6 18 cobalt gus 2 27 ember
hana 37 ivan 52 alice 36 lina 27 farah 24 gus 29
ivan 19 30 juniper ivan 23 16 cobalt kim 26 28 grove jules 24 26 grove bruno 5 8 amber bruno 2 25 amber
ivan 49 ivan 39 kim 54 jules 50 bruno 13 bruno 27
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047053-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
hana 8 29 harbor ivan 28 24 delta alice 23 13 juniper lina 5 22 cobalt farah 6 18 cobalt gus 2 27 ember
hana 37 ivan 52 alice 36 lina 27 farah 24 gus 29
ivan 19 30 juniper ivan 23 16 cobalt kim 26 28 grove jules 24 26 grove bruno 5 8 amber bruno 2 25 amber
ivan 49 ivan 39 kim 54 jules 50 bruno 13 bruno 27
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047053
qwen/qwen3.7-plus
awkweave-0047054
Print column 1 and pass when column 2 is at least 22; otherwise print fail.
{print $1,($2>=22?"pass":"fail")}
kim 14 hana 7 lina 9 alice 3 hana 17 jules 30
kim fail hana fail lina fail alice fail hana fail jules pass
dina 27 bruno 26 eli 5 ivan 28 dina 14 dina 22 gus 11 farah 16 ivan 2 kim 20
dina pass bruno pass eli fail ivan pass dina fail dina pass gus fail farah fail ivan fail kim fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047054-p1
Output the first column along with 'pass' if the second column is 22 or greater, otherwise output 'fail'.
{print $1,($2>=22?"pass":"fail")}
kim 14 hana 7 lina 9 alice 3 hana 17 jules 30
kim fail hana fail lina fail alice fail hana fail jules pass
dina 27 bruno 26 eli 5 ivan 28 dina 14 dina 22 gus 11 farah 16 ivan 2 kim 20
dina pass bruno pass eli fail ivan pass dina fail dina pass gus fail farah fail ivan fail kim fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047054
qwen/qwen3.7-plus
awkweave-0047055
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
bruno juniper 81 bruno fable 94 dina fable 117 jules grove 28 dina indigo 113 dina fable 63 farah grove 94 lina juniper 41
JUNIPER FABLE FABLE GROVE INDIGO FABLE GROVE JUNIPER
chen juniper 63 farah juniper 118 jules delta 62 hana indigo 41 kim harbor 81 farah birch 51 jules fable 13 farah amber 79 bruno grove 37 ivan fable 32
JUNIPER JUNIPER DELTA INDIGO HARBOR BIRCH FABLE AMBER GROVE FABLE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047055-p1
Transform the second column to uppercase and output only that column.
{print toupper($2)}
bruno juniper 81 bruno fable 94 dina fable 117 jules grove 28 dina indigo 113 dina fable 63 farah grove 94 lina juniper 41
JUNIPER FABLE FABLE GROVE INDIGO FABLE GROVE JUNIPER
chen juniper 63 farah juniper 118 jules delta 62 hana indigo 41 kim harbor 81 farah birch 51 jules fable 13 farah amber 79 bruno grove 37 ivan fable 32
JUNIPER JUNIPER DELTA INDIGO HARBOR BIRCH FABLE AMBER GROVE FABLE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047055
qwen/qwen3.7-plus
awkweave-0047056
From column 1, print 4 characters starting at character 1.
{print substr($1,1,4)}
harbor 43 ember 81 amber 61 birch 39 amber 117 juniper 24 indigo 75 fable 5 grove 50
harb embe ambe birc ambe juni indi fabl grov
birch 7 harbor 57 delta 83 ember 110 ember 93 grove 31
birc harb delt embe embe grov
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047056-p1
Extract and print the first 4 characters from the first column.
{print substr($1,1,4)}
harbor 43 ember 81 amber 61 birch 39 amber 117 juniper 24 indigo 75 fable 5 grove 50
harb embe ambe birc ambe juni indi fabl grov
birch 7 harbor 57 delta 83 ember 110 ember 93 grove 31
birc harb delt embe embe grov
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047056
qwen/qwen3.7-plus
awkweave-0047057
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
amber_ember 19 indigo_juniper 27 delta_fable 53 birch_juniper 92 amber_harbor 46 harbor_birch 37 harbor_fable 79 harbor_delta 39
amber ember indigo juniper delta fable birch juniper amber harbor harbor birch harbor fable harbor delta
ember_fable 91 fable_ember 82 amber_juniper 27 harbor_cobalt 91 fable_ember 104 cobalt_cobalt 83 delta_birch 75
ember fable fable ember amber juniper harbor cobalt fable ember cobalt cobalt delta birch
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047057-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
amber_ember 19 indigo_juniper 27 delta_fable 53 birch_juniper 92 amber_harbor 46 harbor_birch 37 harbor_fable 79 harbor_delta 39
amber ember indigo juniper delta fable birch juniper amber harbor harbor birch harbor fable harbor delta
ember_fable 91 fable_ember 82 amber_juniper 27 harbor_cobalt 91 fable_ember 104 cobalt_cobalt 83 delta_birch 75
ember fable fable ember amber juniper harbor cobalt fable ember cobalt cobalt delta birch
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047057
qwen/qwen3.7-plus
awkweave-0047058
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)}
lina harbor 72 closed bruno juniper 100 paused ivan juniper 105 paused jules birch 118 ready dina delta 9 active farah ember 100 failed hana delta 111 failed alice birch 25 paused
closed 72 harbor lina paused 100 juniper bruno paused 105 juniper ivan ready 118 birch jules active 9 delta dina failed 100 ember farah failed 111 delta hana paused 25 birch alice
ivan indigo 111 ready alice juniper 69 ready chen cobalt 51 paused bruno harbor 106 failed jules cobalt 7 failed dina grove 49 pending gus fable 34 pending gus indigo 87 pending farah indigo 34 failed farah amber 74 paused
ready 111 indigo ivan ready 69 juniper alice paused 51 cobalt chen failed 106 harbor bruno failed 7 cobalt jules pending 49 grove dina pending 34 fable gus pending 87 indigo gus failed 34 indigo farah paused 74 amber farah
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047058-p1
Reverse the sequence of fields for every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
lina harbor 72 closed bruno juniper 100 paused ivan juniper 105 paused jules birch 118 ready dina delta 9 active farah ember 100 failed hana delta 111 failed alice birch 25 paused
closed 72 harbor lina paused 100 juniper bruno paused 105 juniper ivan ready 118 birch jules active 9 delta dina failed 100 ember farah failed 111 delta hana paused 25 birch alice
ivan indigo 111 ready alice juniper 69 ready chen cobalt 51 paused bruno harbor 106 failed jules cobalt 7 failed dina grove 49 pending gus fable 34 pending gus indigo 87 pending farah indigo 34 failed farah amber 74 paused
ready 111 indigo ivan ready 69 juniper alice paused 51 cobalt chen failed 106 harbor bruno failed 7 cobalt jules pending 49 grove dina pending 34 fable gus pending 87 indigo gus failed 34 indigo farah paused 74 amber farah
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047058
qwen/qwen3.7-plus
awkweave-0047059
Print the number of whitespace-separated fields on each line.
{print NF}
bruno harbor 110 active bruno cobalt 95 ready lina birch 96 closed eli grove 22 ready dina ember 57 closed alice harbor 72 pending kim delta 53 closed eli fable 49 paused hana birch 101 pending
4 4 4 4 4 4 4 4 4
eli fable 43 failed dina birch 32 pending lina indigo 95 active gus amber 91 active kim cobalt 10 ready gus cobalt 67 pending kim indigo 72 ready farah delta 99 active eli harbor 88 closed alice grove 102 active
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047059-p1
Display the count of whitespace-delimited fields for each line.
{print NF}
bruno harbor 110 active bruno cobalt 95 ready lina birch 96 closed eli grove 22 ready dina ember 57 closed alice harbor 72 pending kim delta 53 closed eli fable 49 paused hana birch 101 pending
4 4 4 4 4 4 4 4 4
eli fable 43 failed dina birch 32 pending lina indigo 95 active gus amber 91 active kim cobalt 10 ready gus cobalt 67 pending kim indigo 72 ready farah delta 99 active eli harbor 88 closed alice grove 102 active
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047059
qwen/qwen3.7-plus
awkweave-0047060
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]]}
jules beta 104 lina alpha 84 ivan delta 8 jules beta 96 jules gamma 120 gus beta 35 chen alpha 83
beta 3 alpha 2 delta 1 gamma 1
farah gamma 65 farah gamma 65 ivan gamma 92 chen beta 91 hana gamma 101 gus gamma 8 jules alpha 106 farah alpha 64 hana delta 13
gamma 5 beta 1 alpha 2 delta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047060-p1
Tally the occurrences of each unique value in the second column and output the value alongside its count, maintaining the order in which 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]]}
jules beta 104 lina alpha 84 ivan delta 8 jules beta 96 jules gamma 120 gus beta 35 chen alpha 83
beta 3 alpha 2 delta 1 gamma 1
farah gamma 65 farah gamma 65 ivan gamma 92 chen beta 91 hana gamma 101 gus gamma 8 jules alpha 106 farah alpha 64 hana delta 13
gamma 5 beta 1 alpha 2 delta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047060
qwen/qwen3.7-plus
awkweave-0047061
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 delta 12 jules beta 19 lina beta 15 kim gamma 4 jules gamma 1 gus alpha 9 dina gamma 15 chen alpha 22 gus beta 30
delta 12 beta 64 gamma 20 alpha 31
gus alpha 22 alice beta 9 dina delta 9 bruno delta 2 jules beta 28 dina gamma 20 kim beta 11 chen alpha 26 jules gamma 15 bruno gamma 28
alpha 48 beta 48 delta 11 gamma 63
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047061-p1
Calculate the sum of the third column for every distinct category found 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 delta 12 jules beta 19 lina beta 15 kim gamma 4 jules gamma 1 gus alpha 9 dina gamma 15 chen alpha 22 gus beta 30
delta 12 beta 64 gamma 20 alpha 31
gus alpha 22 alice beta 9 dina delta 9 bruno delta 2 jules beta 28 dina gamma 20 kim beta 11 chen alpha 26 jules gamma 15 bruno gamma 28
alpha 48 beta 48 delta 11 gamma 63
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047061
qwen/qwen3.7-plus
awkweave-0047062
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]]}
alpha ember 73 gamma grove 2 gamma fable 53 beta cobalt 3 alpha juniper 58 gamma ember 30 delta indigo 50
alpha 2 gamma 3
gamma delta 47 delta amber 46 beta harbor 23 gamma cobalt 58 beta harbor 96 delta grove 30 alpha amber 100
gamma 2 delta 2 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047062-p1
Identify values in the first column that appear more than once, then print each repeated value with its total occurrence count, 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]]}
alpha ember 73 gamma grove 2 gamma fable 53 beta cobalt 3 alpha juniper 58 gamma ember 30 delta indigo 50
alpha 2 gamma 3
gamma delta 47 delta amber 46 beta harbor 23 gamma cobalt 58 beta harbor 96 delta grove 30 alpha amber 100
gamma 2 delta 2 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047062
qwen/qwen3.7-plus
awkweave-0047063
The first row is a header. Print the display_name column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
note score state display_name r001 chen 6 pending r002 bruno 2 failed r003 dina 20 closed r004 bruno 14 pending r005 ivan 18 closed r006 kim 6 ready r007 kim 26 ready r008 lina 15 active r009 hana 4 closed r010 dina 21 paused
pending failed closed pending closed ready ready active closed paused
note score state display_name r001 dina 17 pending r002 bruno 10 active r003 ivan 19 pending r004 lina 9 ready r005 chen 30 pending r006 bruno 15 closed r007 chen 13 active r008 farah 27 closed r009 jules 6 failed
pending active pending ready pending closed active closed failed
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047063-p1
Treating the initial row as a header, extract and print the values from the display_name column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
note score state display_name r001 chen 6 pending r002 bruno 2 failed r003 dina 20 closed r004 bruno 14 pending r005 ivan 18 closed r006 kim 6 ready r007 kim 26 ready r008 lina 15 active r009 hana 4 closed r010 dina 21 paused
pending failed closed pending closed ready ready active closed paused
note score state display_name r001 dina 17 pending r002 bruno 10 active r003 ivan 19 pending r004 lina 9 ready r005 chen 30 pending r006 bruno 15 closed r007 chen 13 active r008 farah 27 closed r009 jules 6 failed
pending active pending ready pending closed active closed failed
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047063
qwen/qwen3.7-plus
awkweave-0047064
The first row is a header. Print display_name for data rows whose score is greater than 14.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>14{print $h["display_name"]}
record_id display_name score state r001 jules 23 ready r002 hana 6 paused r003 alice 17 active r004 kim 16 failed r005 gus 16 closed r006 lina 7 paused r007 lina 7 failed r008 eli 10 paused r009 ivan 6 closed
jules alice kim gus
record_id display_name score state r001 jules 11 closed r002 farah 1 active r003 kim 24 active r004 hana 26 closed r005 gus 23 failed r006 farah 10 paused r007 alice 17 failed r008 alice 22 ready r009 alice 8 active r010 ivan 15 paused
kim hana gus alice alice ivan
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047064-p1
With the first row serving as a header, output the display_name field for any data row where the score value is strictly greater than 14.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>14{print $h["display_name"]}
record_id display_name score state r001 jules 23 ready r002 hana 6 paused r003 alice 17 active r004 kim 16 failed r005 gus 16 closed r006 lina 7 paused r007 lina 7 failed r008 eli 10 paused r009 ivan 6 closed
jules alice kim gus
record_id display_name score state r001 jules 11 closed r002 farah 1 active r003 kim 24 active r004 hana 26 closed r005 gus 23 failed r006 farah 10 paused r007 alice 17 failed r008 alice 22 ready r009 alice 8 active r010 ivan 15 paused
kim hana gus alice alice ivan
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047064
qwen/qwen3.7-plus
awkweave-0047065
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
hana 9 closed alice 25 active ivan 6 active chen 9 paused farah 16 ready kim 24 paused dina 9 pending
hana alice ivan chen farah kim dina
ivan 3 failed bruno 25 pending kim 3 paused farah 19 pending alice 28 failed bruno 7 active ivan 8 closed ivan 5 paused gus 26 active gus 5 closed
ivan bruno kim farah alice bruno ivan ivan gus gus
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047065-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
hana 9 closed alice 25 active ivan 6 active chen 9 paused farah 16 ready kim 24 paused dina 9 pending
hana alice ivan chen farah kim dina
ivan 3 failed bruno 25 pending kim 3 paused farah 19 pending alice 28 failed bruno 7 active ivan 8 closed ivan 5 paused gus 26 active gus 5 closed
ivan bruno kim farah alice bruno ivan ivan gus gus
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0047065
qwen/qwen3.7-plus
awkweave-0047066
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 13.
BEGIN{FS=OFS=","}$2>13{print $1}
jules,13,paused alice,28,closed gus,29,ready lina,6,paused dina,10,ready eli,24,failed jules,10,closed hana,5,failed
alice gus eli
alice,9,closed lina,6,closed ivan,9,closed hana,4,active kim,3,closed lina,2,ready jules,16,pending
jules
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047066-p1
For simple comma-separated input without quoted fields, print the first column only if the value in the second column is greater than 13.
BEGIN{FS=OFS=","}$2>13{print $1}
jules,13,paused alice,28,closed gus,29,ready lina,6,paused dina,10,ready eli,24,failed jules,10,closed hana,5,failed
alice gus eli
alice,9,closed lina,6,closed ivan,9,closed hana,4,active kim,3,closed lina,2,ready jules,16,pending
jules
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047066
qwen/qwen3.7-plus
awkweave-0047067
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina delta 9 dina fable 59 jules harbor 18 eli fable 80 hana ember 112 lina fable 72 dina cobalt 88 farah fable 28 gus juniper 27 kim ember 37
lina delta 9 dina fable 59 jules harbor 18 eli fable 80 hana ember 112 lina fable 72 dina cobalt 88 farah fable 28 gus juniper 27 kim ember 37
jules amber 45 alice juniper 116 eli amber 97 bruno harbor 99 ivan juniper 72 gus fable 30
jules amber 45 alice juniper 116 eli amber 97 bruno harbor 99 ivan juniper 72 gus fable 30
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047067-p1
Remove leading and trailing whitespace from the text, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
lina delta 9 dina fable 59 jules harbor 18 eli fable 80 hana ember 112 lina fable 72 dina cobalt 88 farah fable 28 gus juniper 27 kim ember 37
lina delta 9 dina fable 59 jules harbor 18 eli fable 80 hana ember 112 lina fable 72 dina cobalt 88 farah fable 28 gus juniper 27 kim ember 37
jules amber 45 alice juniper 116 eli amber 97 bruno harbor 99 ivan juniper 72 gus fable 30
jules amber 45 alice juniper 116 eli amber 97 bruno harbor 99 ivan juniper 72 gus fable 30
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047067
qwen/qwen3.7-plus
awkweave-0047068
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan ember 25 active alice ember 57 closed lina grove 100 pending eli amber 48 ready ivan grove 43 paused kim birch 45 closed chen cobalt 106 paused eli birch 81 ready hana indigo 111 paused
lina grove 100 pending
lina juniper 96 active hana juniper 35 ready bruno cobalt 47 paused chen grove 114 closed lina harbor 40 failed eli juniper 79 failed bruno juniper 90 closed farah fable 25 paused chen juniper 40 paused
bruno juniper 90 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047068-p1
Output the longest line from the input; if multiple lines share the maximum length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan ember 25 active alice ember 57 closed lina grove 100 pending eli amber 48 ready ivan grove 43 paused kim birch 45 closed chen cobalt 106 paused eli birch 81 ready hana indigo 111 paused
lina grove 100 pending
lina juniper 96 active hana juniper 35 ready bruno cobalt 47 paused chen grove 114 closed lina harbor 40 failed eli juniper 79 failed bruno juniper 90 closed farah fable 25 paused chen juniper 40 paused
bruno juniper 90 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047068
qwen/qwen3.7-plus
awkweave-0047069
Print every 4th line starting at line 3 (then line 7, and so on).
NR%4==3
ivan 34 jules 67 bruno 68 farah 40 hana 10 chen 24
bruno 68
chen 37 lina 57 dina 57 dina 30 eli 58 kim 114 bruno 16 dina 20 chen 26
dina 57 bruno 16
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047069-p1
Print every fourth line of the input, beginning with line 3 (i.e., lines 3, 7, 11, etc.).
NR%4==3
ivan 34 jules 67 bruno 68 farah 40 hana 10 chen 24
bruno 68
chen 37 lina 57 dina 57 dina 30 eli 58 kim 114 bruno 16 dina 20 chen 26
dina 57 bruno 16
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047069
qwen/qwen3.7-plus
awkweave-0047070
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
delta juniper 4 alpha indigo 118 gamma harbor 55 beta amber 24 gamma indigo 10 alpha ember 20 delta indigo 0 beta cobalt 67
4
gamma amber 120 beta grove 40 beta grove 10 beta cobalt 36 gamma delta 107 delta indigo 118 gamma delta 7
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047070-p1
Determine the number of unique values present in the first column and output only this total count.
{if(!seen[$1]++)n++}END{print n+0}
delta juniper 4 alpha indigo 118 gamma harbor 55 beta amber 24 gamma indigo 10 alpha ember 20 delta indigo 0 beta cobalt 67
4
gamma amber 120 beta grove 40 beta grove 10 beta cobalt 36 gamma delta 107 delta indigo 118 gamma delta 7
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047070
qwen/qwen3.7-plus
awkweave-0047071
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
jules 25 0 hana 23 27 farah 11 13 kim 26 15 hana 5 22 farah 17 29 lina 6 30
hana 0.85 farah 0.85 kim 1.73 hana 0.23 farah 0.59 lina 0.20
ivan 17 0 dina 19 5 alice 6 12 jules 20 22 chen 16 24 hana 21 18 farah 6 23 jules 6 23 dina 7 16 alice 9 8
dina 3.80 alice 0.50 jules 0.91 chen 0.67 hana 1.17 farah 0.26 jules 0.26 dina 0.44 alice 1.12
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047071-p1
For each row, output the first column and the result of dividing the second column by the third column (formatted to two decimal places), skipping any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
jules 25 0 hana 23 27 farah 11 13 kim 26 15 hana 5 22 farah 17 29 lina 6 30
hana 0.85 farah 0.85 kim 1.73 hana 0.23 farah 0.59 lina 0.20
ivan 17 0 dina 19 5 alice 6 12 jules 20 22 chen 16 24 hana 21 18 farah 6 23 jules 6 23 dina 7 16 alice 9 8
dina 3.80 alice 0.50 jules 0.91 chen 0.67 hana 1.17 farah 0.26 jules 0.26 dina 0.44 alice 1.12
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047071
qwen/qwen3.7-plus
awkweave-0047072
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 harbor 26 lina juniper 27 bruno fable 9 hana fable 22 jules ember 25 ivan fable 5 lina cobalt 25 hana amber 12 ivan ember 28
ivan ember 28 lina juniper 27 dina harbor 26
eli juniper 13 bruno grove 14 eli amber 28 jules birch 27 hana cobalt 13 farah grove 2 eli harbor 6 eli grove 26 eli indigo 11 hana cobalt 26
eli amber 28 jules birch 27 eli grove 26
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047072-p1
Output the top three full records based on descending numeric values in the third column, maintaining 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 harbor 26 lina juniper 27 bruno fable 9 hana fable 22 jules ember 25 ivan fable 5 lina cobalt 25 hana amber 12 ivan ember 28
ivan ember 28 lina juniper 27 dina harbor 26
eli juniper 13 bruno grove 14 eli amber 28 jules birch 27 hana cobalt 13 farah grove 2 eli harbor 6 eli grove 26 eli indigo 11 hana cobalt 26
eli amber 28 jules birch 27 eli grove 26
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047072
qwen/qwen3.7-plus
awkweave-0047073
Select the 3rd and 2nd fields in that order.
{print $3, $2}
101 alice lina paused 111 bruno gus failed 2 gus gus ready 45 gus chen failed 31 chen alice closed 26 hana hana ready 47 hana jules closed
lina alice gus bruno gus gus chen gus alice chen hana hana jules hana
53 hana chen pending 118 ivan kim ready 83 jules alice paused 75 hana alice pending 12 farah dina ready 79 gus ivan active 2 hana bruno ready 60 hana gus pending 68 hana ivan active
chen hana kim ivan alice jules alice hana dina farah ivan gus bruno hana gus hana ivan hana
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047073-p1
Extract and display the third field followed by the second field, in that specific sequence.
{print $3, $2}
101 alice lina paused 111 bruno gus failed 2 gus gus ready 45 gus chen failed 31 chen alice closed 26 hana hana ready 47 hana jules closed
lina alice gus bruno gus gus chen gus alice chen hana hana jules hana
53 hana chen pending 118 ivan kim ready 83 jules alice paused 75 hana alice pending 12 farah dina ready 79 gus ivan active 2 hana bruno ready 60 hana gus pending 68 hana ivan active
chen hana kim ivan alice jules alice hana dina farah ivan gus bruno hana gus hana ivan hana
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047073
qwen/qwen3.7-plus
awkweave-0047074
Print the last field of every input line.
{print $NF}
pending 50 cobalt gus dina cobalt pending 92 cobalt gus ivan delta closed 41 harbor ivan chen amber ready 44 delta eli gus juniper active 22 harbor dina lina juniper pending 2 juniper kim alice grove active 55 grove gus dina indigo active 58 grove chen chen indigo ready 78 juniper alice hana amber closed 82 amber chen ...
cobalt delta amber juniper juniper grove indigo indigo amber cobalt
paused 90 cobalt bruno hana juniper paused 28 birch chen eli fable paused 107 indigo bruno ivan harbor ready 75 birch kim ivan delta pending 62 indigo hana farah juniper closed 114 fable ivan alice fable paused 103 grove dina chen fable failed 73 amber eli chen harbor
juniper fable harbor delta juniper fable fable harbor
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047074-p1
Print the final field from each line of input.
{print $NF}
pending 50 cobalt gus dina cobalt pending 92 cobalt gus ivan delta closed 41 harbor ivan chen amber ready 44 delta eli gus juniper active 22 harbor dina lina juniper pending 2 juniper kim alice grove active 55 grove gus dina indigo active 58 grove chen chen indigo ready 78 juniper alice hana amber closed 82 amber chen ...
cobalt delta amber juniper juniper grove indigo indigo amber cobalt
paused 90 cobalt bruno hana juniper paused 28 birch chen eli fable paused 107 indigo bruno ivan harbor ready 75 birch kim ivan delta pending 62 indigo hana farah juniper closed 114 fable ivan alice fable paused 103 grove dina chen fable failed 73 amber eli chen harbor
juniper fable harbor delta juniper fable fable harbor
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047074
qwen/qwen3.7-plus
awkweave-0047075
Print the complete records where column 3 is less than 66.
$3 < 66
paused farah 66 delta pending dina 71 harbor paused gus 75 amber failed jules 73 juniper ready kim 8 ember paused chen 15 ember paused gus 25 amber
ready kim 8 ember paused chen 15 ember paused gus 25 amber
active farah 81 birch paused dina 87 fable closed kim 43 ember ready ivan 57 amber closed bruno 118 delta active lina 40 delta paused chen 100 birch pending dina 27 grove paused bruno 112 birch closed bruno 88 cobalt
closed kim 43 ember ready ivan 57 amber active lina 40 delta pending dina 27 grove
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047075-p1
Display all complete records where the value in the third column is strictly less than 66.
$3 < 66
paused farah 66 delta pending dina 71 harbor paused gus 75 amber failed jules 73 juniper ready kim 8 ember paused chen 15 ember paused gus 25 amber
ready kim 8 ember paused chen 15 ember paused gus 25 amber
active farah 81 birch paused dina 87 fable closed kim 43 ember ready ivan 57 amber closed bruno 118 delta active lina 40 delta paused chen 100 birch pending dina 27 grove paused bruno 112 birch closed bruno 88 cobalt
closed kim 43 ember ready ivan 57 amber active lina 40 delta pending dina 27 grove
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047075
qwen/qwen3.7-plus
awkweave-0047076
Show whole lines whose 3rd field is between 6 and 23, inclusive.
$3 >= 6 && $3 <= 23
ivan closed 6 paused ivan active 4 active chen ready 6 paused hana pending 1 ready jules failed 29 failed dina active 11 paused alice closed 12 ready bruno failed 21 pending farah ready 9 active hana paused 13 ready
ivan closed 6 paused chen ready 6 paused dina active 11 paused alice closed 12 ready bruno failed 21 pending farah ready 9 active hana paused 13 ready
eli closed 25 paused dina paused 26 paused kim paused 4 pending dina paused 8 failed farah active 3 active dina failed 17 pending lina closed 23 active lina pending 6 paused lina ready 28 active farah pending 4 failed
dina paused 8 failed dina failed 17 pending lina closed 23 active lina pending 6 paused
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047076-p1
Show entire lines where the third field falls within the inclusive range of 6 to 23.
$3 >= 6 && $3 <= 23
ivan closed 6 paused ivan active 4 active chen ready 6 paused hana pending 1 ready jules failed 29 failed dina active 11 paused alice closed 12 ready bruno failed 21 pending farah ready 9 active hana paused 13 ready
ivan closed 6 paused chen ready 6 paused dina active 11 paused alice closed 12 ready bruno failed 21 pending farah ready 9 active hana paused 13 ready
eli closed 25 paused dina paused 26 paused kim paused 4 pending dina paused 8 failed farah active 3 active dina failed 17 pending lina closed 23 active lina pending 6 paused lina ready 28 active farah pending 4 failed
dina paused 8 failed dina failed 17 pending lina closed 23 active lina pending 6 paused
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047076
qwen/qwen3.7-plus
awkweave-0047077
Print column 2 only for rows where column 1 is exactly ready.
$1 == "ready"{print $2}
closed dina juniper 47 ready hana indigo 107 closed bruno delta 80 closed hana ember 27 paused gus harbor 106 paused kim amber 101 ready dina amber 110
hana dina
closed alice juniper 20 ready kim birch 69 ready hana ember 16 paused dina amber 15 paused dina fable 69 pending farah amber 23
kim hana
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047077-p1
Output only the second column for rows where the first column matches the exact string 'ready'.
$1 == "ready"{print $2}
closed dina juniper 47 ready hana indigo 107 closed bruno delta 80 closed hana ember 27 paused gus harbor 106 paused kim amber 101 ready dina amber 110
hana dina
closed alice juniper 20 ready kim birch 69 ready hana ember 16 paused dina amber 15 paused dina fable 69 pending farah amber 23
kim hana
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047077
qwen/qwen3.7-plus
awkweave-0047078
Print all fields from lines where field 1 begins with WARN.
$1 ~ /^WARN/
WARN 13 cobalt INFO 57 fable ERROR 18 amber DEBUG 23 birch DEBUG 53 grove DEBUG 117 delta DEBUG 73 grove
WARN 13 cobalt
DEBUG 81 birch INFO 72 amber WARN 6 fable INFO 51 fable DEBUG 21 fable DEBUG 83 grove WARN 62 amber WARN 55 indigo DEBUG 68 indigo
WARN 6 fable WARN 62 amber WARN 55 indigo
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047078-p1
Print all fields from any line where the first field starts with the prefix 'WARN'.
$1 ~ /^WARN/
WARN 13 cobalt INFO 57 fable ERROR 18 amber DEBUG 23 birch DEBUG 53 grove DEBUG 117 delta DEBUG 73 grove
WARN 13 cobalt
DEBUG 81 birch INFO 72 amber WARN 6 fable INFO 51 fable DEBUG 21 fable DEBUG 83 grove WARN 62 amber WARN 55 indigo DEBUG 68 indigo
WARN 6 fable WARN 62 amber WARN 55 indigo
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047078
qwen/qwen3.7-plus
awkweave-0047079
Print every line except those containing the exact text indigo.
$0 !~ /indigo/
juniper 8 pending birch 52 paused birch 38 failed cobalt 18 pending amber 9 failed indigo 51 ready fable 4 active fable 118 paused indigo 999 active
juniper 8 pending birch 52 paused birch 38 failed cobalt 18 pending amber 9 failed fable 4 active fable 118 paused
cobalt 94 active ember 63 failed indigo 20 ready juniper 31 pending grove 19 pending indigo 88 ready indigo 999 active
cobalt 94 active ember 63 failed juniper 31 pending grove 19 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047079-p1
Print every line except those that contain the exact substring 'indigo'.
$0 !~ /indigo/
juniper 8 pending birch 52 paused birch 38 failed cobalt 18 pending amber 9 failed indigo 51 ready fable 4 active fable 118 paused indigo 999 active
juniper 8 pending birch 52 paused birch 38 failed cobalt 18 pending amber 9 failed fable 4 active fable 118 paused
cobalt 94 active ember 63 failed indigo 20 ready juniper 31 pending grove 19 pending indigo 88 ready indigo 999 active
cobalt 94 active ember 63 failed juniper 31 pending grove 19 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047079
qwen/qwen3.7-plus
awkweave-0047080
Print lines 4 through 5, including both endpoints.
NR >= 4 && NR <= 5
jules amber 108 gus cobalt 50 hana birch 59 lina ember 24 dina delta 24 hana cobalt 63 hana cobalt 56 jules fable 22 bruno harbor 33
lina ember 24 dina delta 24
farah fable 97 bruno amber 33 gus juniper 0 bruno fable 82 ivan birch 52 lina indigo 9 chen grove 57
bruno fable 82 ivan birch 52
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047080-p1
Output lines 4 through 5, inclusive of both the start and end lines.
NR >= 4 && NR <= 5
jules amber 108 gus cobalt 50 hana birch 59 lina ember 24 dina delta 24 hana cobalt 63 hana cobalt 56 jules fable 22 bruno harbor 33
lina ember 24 dina delta 24
farah fable 97 bruno amber 33 gus juniper 0 bruno fable 82 ivan birch 52 lina indigo 9 chen grove 57
bruno fable 82 ivan birch 52
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047080
qwen/qwen3.7-plus
awkweave-0047081
Output only the first 3 records.
NR <= 3
chen 70 amber ivan 8 grove alice 59 amber farah 110 cobalt chen 113 cobalt chen 116 fable gus 94 cobalt
chen 70 amber ivan 8 grove alice 59 amber
jules 31 grove lina 45 birch hana 92 cobalt bruno 47 harbor hana 64 fable chen 75 cobalt hana 25 fable chen 32 ember
jules 31 grove lina 45 birch hana 92 cobalt
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047081-p1
Display only the first three records from the input.
NR <= 3
chen 70 amber ivan 8 grove alice 59 amber farah 110 cobalt chen 113 cobalt chen 116 fable gus 94 cobalt
chen 70 amber ivan 8 grove alice 59 amber
jules 31 grove lina 45 birch hana 92 cobalt bruno 47 harbor hana 64 fable chen 75 cobalt hana 25 fable chen 32 ember
jules 31 grove lina 45 birch hana 92 cobalt
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047081
qwen/qwen3.7-plus
awkweave-0047082
Skip the first line and print every remaining line unchanged.
NR > 1
gus 25 ember jules 5 juniper eli 31 fable jules 74 cobalt farah 88 indigo jules 55 delta farah 4 grove
jules 5 juniper eli 31 fable jules 74 cobalt farah 88 indigo jules 55 delta farah 4 grove
bruno 41 delta kim 68 birch lina 20 delta gus 75 juniper eli 39 grove alice 58 cobalt
kim 68 birch lina 20 delta gus 75 juniper eli 39 grove alice 58 cobalt
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047082-p1
Omit the first line and print all subsequent lines exactly as they appear.
NR > 1
gus 25 ember jules 5 juniper eli 31 fable jules 74 cobalt farah 88 indigo jules 55 delta farah 4 grove
jules 5 juniper eli 31 fable jules 74 cobalt farah 88 indigo jules 55 delta farah 4 grove
bruno 41 delta kim 68 birch lina 20 delta gus 75 juniper eli 39 grove alice 58 cobalt
kim 68 birch lina 20 delta gus 75 juniper eli 39 grove alice 58 cobalt
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047082
qwen/qwen3.7-plus
awkweave-0047083
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
kim ready 65 dina failed 13 alice active 45 chen paused 31 gus closed 13 gus active 45 farah active 28 eli active 92
1
chen ready 57 chen failed 90 kim failed 25 bruno paused 51 dina paused 62 jules failed 13 dina active 117 lina ready 22 jules pending 29 eli closed 54
3
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047083-p1
Count the number of records where the second column contains 'failed', and output 0 if no such records exist.
$2 == "failed"{n++}END{print n+0}
kim ready 65 dina failed 13 alice active 45 chen paused 31 gus closed 13 gus active 45 farah active 28 eli active 92
1
chen ready 57 chen failed 90 kim failed 25 bruno paused 51 dina paused 62 jules failed 13 dina active 117 lina ready 22 jules pending 29 eli closed 54
3
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047083
qwen/qwen3.7-plus
awkweave-0047084
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
harbor 16 hana delta 15 lina delta 13 alice ember 16 hana delta 22 alice cobalt 10 dina juniper 1 lina delta 4 farah ember 4 lina
101
juniper 13 dina delta 6 bruno delta 19 dina delta 10 farah delta 24 hana juniper 6 dina juniper 29 chen
107
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047084-p1
Compute the total of all integer values found in the second column and output the result.
{s+=$2}END{print s+0}
harbor 16 hana delta 15 lina delta 13 alice ember 16 hana delta 22 alice cobalt 10 dina juniper 1 lina delta 4 farah ember 4 lina
101
juniper 13 dina delta 6 bruno delta 19 dina delta 10 farah delta 24 hana juniper 6 dina juniper 29 chen
107
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047084
qwen/qwen3.7-plus
awkweave-0047085
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
farah harbor 13 eli amber 24 ivan fable 26 eli cobalt 10 farah delta 4 eli birch 22 ivan birch 12
15.86
farah birch 26 farah cobalt 24 bruno harbor 21 farah amber 19 farah fable 10 bruno cobalt 1 eli cobalt 2 hana cobalt 2
13.12
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047085-p1
Output the average of the values in the third column, formatted to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
farah harbor 13 eli amber 24 ivan fable 26 eli cobalt 10 farah delta 4 eli birch 22 ivan birch 12
15.86
farah birch 26 farah cobalt 24 bruno harbor 21 farah amber 19 farah fable 10 bruno cobalt 1 eli cobalt 2 hana cobalt 2
13.12
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047085
qwen/qwen3.7-plus
awkweave-0047086
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
eli 12 fable ivan 10 harbor bruno 8 fable eli 18 ember hana 9 cobalt bruno 27 indigo dina 6 fable alice 3 delta jules 9 grove
3
alice 19 cobalt farah 5 ember jules 20 grove eli 19 cobalt dina 10 birch dina 1 birch eli 13 ember bruno 20 fable
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047086-p1
Identify and display the minimum numeric value present in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
eli 12 fable ivan 10 harbor bruno 8 fable eli 18 ember hana 9 cobalt bruno 27 indigo dina 6 fable alice 3 delta jules 9 grove
3
alice 19 cobalt farah 5 ember jules 20 grove eli 19 cobalt dina 10 birch dina 1 birch eli 13 ember bruno 20 fable
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047086
qwen/qwen3.7-plus
awkweave-0047087
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
ember 17 ivan cobalt 27 eli ember 11 chen ember 11 dina juniper 15 chen fable 8 hana ember 29 alice amber 27 kim delta 3 lina amber 30 alice
30
ember 5 farah birch 14 chen amber 2 kim harbor 23 kim harbor 7 jules harbor 9 hana grove 25 alice
25
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047087-p1
Identify and display the maximum numeric value present in the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
ember 17 ivan cobalt 27 eli ember 11 chen ember 11 dina juniper 15 chen fable 8 hana ember 29 alice amber 27 kim delta 3 lina amber 30 alice
30
ember 5 farah birch 14 chen amber 2 kim harbor 23 kim harbor 7 jules harbor 9 hana grove 25 alice
25
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047087
qwen/qwen3.7-plus
awkweave-0047088
Count all input records and print the total.
END{print NR}
eli 46 farah 27 farah 92 kim 38 hana 89 lina 71
6
gus 20 eli 21 jules 14 gus 35 bruno 77 bruno 100 farah 39 alice 90 gus 57
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047088-p1
Count the total number of input lines and print this count.
END{print NR}
eli 46 farah 27 farah 92 kim 38 hana 89 lina 71
6
gus 20 eli 21 jules 14 gus 35 bruno 77 bruno 100 farah 39 alice 90 gus 57
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047088
qwen/qwen3.7-plus
awkweave-0047089
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
hana harbor 27 hana delta 103 hana fable 14 hana delta 103 gus ember 95 farah birch 114 dina juniper 81
hana harbor 27 hana delta 103 hana fable 14 gus ember 95 farah birch 114 dina juniper 81
jules juniper 103 bruno harbor 46 farah amber 61 jules juniper 103 ivan grove 53 bruno fable 18 gus ember 27 ivan harbor 81 jules cobalt 16 alice delta 23
jules juniper 103 bruno harbor 46 farah amber 61 ivan grove 53 bruno fable 18 gus ember 27 ivan harbor 81 jules cobalt 16 alice delta 23
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047089-p1
Eliminate duplicate lines by keeping only the first instance of each, maintaining the original sequence.
!seen[$0]++
hana harbor 27 hana delta 103 hana fable 14 hana delta 103 gus ember 95 farah birch 114 dina juniper 81
hana harbor 27 hana delta 103 hana fable 14 gus ember 95 farah birch 114 dina juniper 81
jules juniper 103 bruno harbor 46 farah amber 61 jules juniper 103 ivan grove 53 bruno fable 18 gus ember 27 ivan harbor 81 jules cobalt 16 alice delta 23
jules juniper 103 bruno harbor 46 farah amber 61 ivan grove 53 bruno fable 18 gus ember 27 ivan harbor 81 jules cobalt 16 alice delta 23
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047089
qwen/qwen3.7-plus
awkweave-0047100
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]]}
jules alpha 17 lina alpha 26 hana alpha 18 ivan beta 5 farah alpha 4 farah beta 21 jules delta 15 gus gamma 19 lina gamma 21
alpha 65 beta 26 delta 15 gamma 40
kim beta 20 bruno alpha 12 chen delta 2 hana delta 2 eli delta 15 chen gamma 10 dina beta 26 eli delta 15
beta 46 alpha 12 delta 34 gamma 10
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047100-p1
Calculate the sum of column 3 for each unique group in column 2, listing the results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
jules alpha 17 lina alpha 26 hana alpha 18 ivan beta 5 farah alpha 4 farah beta 21 jules delta 15 gus gamma 19 lina gamma 21
alpha 65 beta 26 delta 15 gamma 40
kim beta 20 bruno alpha 12 chen delta 2 hana delta 2 eli delta 15 chen gamma 10 dina beta 26 eli delta 15
beta 46 alpha 12 delta 34 gamma 10
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047100
qwen/qwen3.7-plus
awkweave-0047101
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]]}
alpha harbor 106 gamma grove 2 delta delta 77 gamma indigo 20 gamma delta 95 delta grove 54
gamma 3 delta 2
alpha cobalt 3 beta cobalt 43 delta cobalt 42 beta delta 86 beta juniper 37 beta birch 31 delta harbor 38 alpha ember 94 gamma grove 117 delta cobalt 70
alpha 2 beta 4 delta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047101-p1
List every value from column 1 that appears more than once, along with its frequency, ordered by first occurrence.
{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]]}
alpha harbor 106 gamma grove 2 delta delta 77 gamma indigo 20 gamma delta 95 delta grove 54
gamma 3 delta 2
alpha cobalt 3 beta cobalt 43 delta cobalt 42 beta delta 86 beta juniper 37 beta birch 31 delta harbor 38 alpha ember 94 gamma grove 117 delta cobalt 70
alpha 2 beta 4 delta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047101
qwen/qwen3.7-plus
awkweave-0047102
The first row is a header. Print the score column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
note score record_id state r001 hana 15 closed r002 eli 14 closed r003 alice 26 failed r004 hana 24 failed r005 alice 2 ready r006 chen 26 paused r007 bruno 13 active r008 eli 25 ready r009 ivan 9 closed r010 chen 6 pending
hana eli alice hana alice chen bruno eli ivan chen
note score record_id state r001 alice 24 failed r002 hana 11 ready r003 chen 9 paused r004 jules 10 active r005 eli 29 active r006 eli 9 ready r007 ivan 14 closed r008 eli 13 ready
alice hana chen jules eli eli ivan eli
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047102-p1
Skip the header row and output the values from the score column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
note score record_id state r001 hana 15 closed r002 eli 14 closed r003 alice 26 failed r004 hana 24 failed r005 alice 2 ready r006 chen 26 paused r007 bruno 13 active r008 eli 25 ready r009 ivan 9 closed r010 chen 6 pending
hana eli alice hana alice chen bruno eli ivan chen
note score record_id state r001 alice 24 failed r002 hana 11 ready r003 chen 9 paused r004 jules 10 active r005 eli 29 active r006 eli 9 ready r007 ivan 14 closed r008 eli 13 ready
alice hana chen jules eli eli ivan eli
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047102
qwen/qwen3.7-plus
awkweave-0047103
The first row is a header. Print display_name for data rows whose score is greater than 9.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>9{print $h["display_name"]}
record_id display_name score state r001 alice 13 ready r002 eli 28 active r003 gus 6 paused r004 hana 11 ready r005 dina 27 failed r006 lina 3 pending r007 chen 15 ready r008 chen 21 closed r009 jules 1 paused
alice eli hana dina chen chen
record_id display_name score state r001 kim 3 ready r002 eli 27 paused r003 dina 12 pending r004 farah 1 active r005 farah 15 active r006 bruno 11 paused r007 kim 15 paused r008 bruno 11 closed r009 bruno 13 pending r010 alice 11 pending
eli dina farah bruno kim bruno bruno alice
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047103-p1
Ignoring the header row, print the display_name field for any record where the score is strictly greater than 9.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>9{print $h["display_name"]}
record_id display_name score state r001 alice 13 ready r002 eli 28 active r003 gus 6 paused r004 hana 11 ready r005 dina 27 failed r006 lina 3 pending r007 chen 15 ready r008 chen 21 closed r009 jules 1 paused
alice eli hana dina chen chen
record_id display_name score state r001 kim 3 ready r002 eli 27 paused r003 dina 12 pending r004 farah 1 active r005 farah 15 active r006 bruno 11 paused r007 kim 15 paused r008 bruno 11 closed r009 bruno 13 pending r010 alice 11 pending
eli dina farah bruno kim bruno bruno alice
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047103
qwen/qwen3.7-plus
awkweave-0047104
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
lina 15 ready alice 5 pending hana 19 pending gus 6 failed ivan 8 paused lina 16 pending ivan 12 ready kim 9 ready chen 27 ready
ready pending pending failed paused pending ready ready ready
hana 2 active farah 8 active dina 10 active hana 10 failed dina 18 closed chen 22 active kim 14 failed jules 16 ready bruno 6 pending
active active active failed closed active failed ready pending
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047104-p1
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
lina 15 ready alice 5 pending hana 19 pending gus 6 failed ivan 8 paused lina 16 pending ivan 12 ready kim 9 ready chen 27 ready
ready pending pending failed paused pending ready ready ready
hana 2 active farah 8 active dina 10 active hana 10 failed dina 18 closed chen 22 active kim 14 failed jules 16 ready bruno 6 pending
active active active failed closed active failed ready pending
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0047104
qwen/qwen3.7-plus
awkweave-0047105
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 21.
BEGIN{FS=OFS=","}$2>21{print $1}
jules,19,failed chen,24,closed hana,6,failed kim,13,closed lina,6,pending bruno,24,paused bruno,17,pending hana,18,pending alice,3,ready gus,25,failed
chen bruno gus
lina,13,active bruno,14,closed farah,11,active dina,18,failed bruno,24,paused lina,6,paused bruno,12,failed kim,23,ready
bruno kim
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047105-p1
For comma-separated input without quoted fields, print the first column whenever the second column value is greater than 21.
BEGIN{FS=OFS=","}$2>21{print $1}
jules,19,failed chen,24,closed hana,6,failed kim,13,closed lina,6,pending bruno,24,paused bruno,17,pending hana,18,pending alice,3,ready gus,25,failed
chen bruno gus
lina,13,active bruno,14,closed farah,11,active dina,18,failed bruno,24,paused lina,6,paused bruno,12,failed kim,23,ready
bruno kim
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047105
qwen/qwen3.7-plus
awkweave-0047106
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
dina delta 103 bruno fable 20 ivan birch 101 hana ember 38 hana juniper 64 gus grove 20
dina delta 103 bruno fable 20 ivan birch 101 hana ember 38 hana juniper 64 gus grove 20
gus cobalt 47 chen ember 16 farah ember 1 dina birch 47 hana grove 97 bruno fable 67 lina grove 26 gus delta 74 ivan ember 11 eli cobalt 45
gus cobalt 47 chen ember 16 farah ember 1 dina birch 47 hana grove 97 bruno fable 67 lina grove 26 gus delta 74 ivan ember 11 eli cobalt 45
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047106-p1
Strip leading and trailing whitespace, then replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
dina delta 103 bruno fable 20 ivan birch 101 hana ember 38 hana juniper 64 gus grove 20
dina delta 103 bruno fable 20 ivan birch 101 hana ember 38 hana juniper 64 gus grove 20
gus cobalt 47 chen ember 16 farah ember 1 dina birch 47 hana grove 97 bruno fable 67 lina grove 26 gus delta 74 ivan ember 11 eli cobalt 45
gus cobalt 47 chen ember 16 farah ember 1 dina birch 47 hana grove 97 bruno fable 67 lina grove 26 gus delta 74 ivan ember 11 eli cobalt 45
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047106
qwen/qwen3.7-plus
awkweave-0047107
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
bruno indigo 107 ready gus fable 68 failed chen fable 76 failed ivan juniper 55 failed jules fable 24 paused chen grove 67 closed alice harbor 23 active jules delta 20 ready ivan juniper 16 ready jules fable 84 paused
bruno indigo 107 ready
gus juniper 45 active dina fable 4 paused lina ember 54 paused gus birch 34 failed farah harbor 119 ready chen fable 21 paused
farah harbor 119 ready
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047107-p1
Identify and output the longest line from the input; if multiple lines share the maximum length, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
bruno indigo 107 ready gus fable 68 failed chen fable 76 failed ivan juniper 55 failed jules fable 24 paused chen grove 67 closed alice harbor 23 active jules delta 20 ready ivan juniper 16 ready jules fable 84 paused
bruno indigo 107 ready
gus juniper 45 active dina fable 4 paused lina ember 54 paused gus birch 34 failed farah harbor 119 ready chen fable 21 paused
farah harbor 119 ready
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047107
qwen/qwen3.7-plus
awkweave-0047108
Print every 4th line starting at line 1 (then line 5, and so on).
NR%4==1
hana 90 lina 100 alice 4 kim 4 ivan 40 ivan 0 lina 48 farah 74 eli 104 farah 13
hana 90 ivan 40 eli 104
jules 7 gus 13 kim 75 alice 8 jules 44 jules 96 jules 11 gus 51
jules 7 jules 44
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047108-p1
Output every fourth line, beginning with line 1 (i.e., lines 1, 5, 9, etc.).
NR%4==1
hana 90 lina 100 alice 4 kim 4 ivan 40 ivan 0 lina 48 farah 74 eli 104 farah 13
hana 90 ivan 40 eli 104
jules 7 gus 13 kim 75 alice 8 jules 44 jules 96 jules 11 gus 51
jules 7 jules 44
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047108
qwen/qwen3.7-plus
awkweave-0047109
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha ember 35 beta indigo 106 alpha fable 29 beta amber 54 alpha juniper 4 gamma harbor 71 alpha grove 52 gamma grove 108 delta delta 83
8
beta juniper 93 delta fable 43 alpha delta 28 alpha indigo 113 delta delta 59 alpha harbor 53
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047109-p1
Calculate the number of unique values found in the second column and display only that total count.
{if(!seen[$2]++)n++}END{print n+0}
alpha ember 35 beta indigo 106 alpha fable 29 beta amber 54 alpha juniper 4 gamma harbor 71 alpha grove 52 gamma grove 108 delta delta 83
8
beta juniper 93 delta fable 43 alpha delta 28 alpha indigo 113 delta delta 59 alpha harbor 53
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047109
qwen/qwen3.7-plus
awkweave-0047110
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}
ivan 15 0 bruno 11 29 farah 6 19 lina 14 12 chen 13 17 farah 25 22 eli 6 17 chen 22 16
bruno 0.38 farah 0.32 lina 1.17 chen 0.76 farah 1.14 eli 0.35 chen 1.38
alice 6 0 kim 12 24 lina 30 21 bruno 14 21 kim 16 17 kim 3 7 lina 3 15 bruno 6 15 farah 21 16 eli 14 12
kim 0.50 lina 1.43 bruno 0.67 kim 0.94 kim 0.43 lina 0.20 bruno 0.40 farah 1.31 eli 1.17
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047110-p1
For each row, output the first column and the result of dividing the second column by the third column formatted to two decimal places, excluding any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 15 0 bruno 11 29 farah 6 19 lina 14 12 chen 13 17 farah 25 22 eli 6 17 chen 22 16
bruno 0.38 farah 0.32 lina 1.17 chen 0.76 farah 1.14 eli 0.35 chen 1.38
alice 6 0 kim 12 24 lina 30 21 bruno 14 21 kim 16 17 kim 3 7 lina 3 15 bruno 6 15 farah 21 16 eli 14 12
kim 0.50 lina 1.43 bruno 0.67 kim 0.94 kim 0.43 lina 0.20 bruno 0.40 farah 1.31 eli 1.17
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047110
qwen/qwen3.7-plus
awkweave-0047111
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
chen harbor 24 dina ember 15 eli harbor 15 hana indigo 8 kim juniper 16 jules birch 30 lina cobalt 14
jules birch 30 chen harbor 24 kim juniper 16
farah cobalt 26 bruno indigo 27 alice amber 17 farah amber 2 jules cobalt 26 dina birch 21
bruno indigo 27 farah cobalt 26 jules cobalt 26
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0047111-p1
Display the three full records with the highest numeric values in the third column, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
chen harbor 24 dina ember 15 eli harbor 15 hana indigo 8 kim juniper 16 jules birch 30 lina cobalt 14
jules birch 30 chen harbor 24 kim juniper 16
farah cobalt 26 bruno indigo 27 alice amber 17 farah amber 2 jules cobalt 26 dina birch 21
bruno indigo 27 farah cobalt 26 jules cobalt 26
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0047111
qwen/qwen3.7-plus
awkweave-0047112
For each line, output fields 3 and 2, in that order.
{print $3, $2}
jules active amber amber jules ready harbor fable bruno ready ember harbor gus closed amber amber dina failed grove amber jules closed fable harbor
amber active harbor ready ember ready amber closed grove failed fable closed
kim active juniper harbor chen pending harbor indigo chen paused amber birch eli closed amber amber jules paused cobalt ember ivan active indigo juniper jules active ember delta
juniper active harbor pending amber paused amber closed cobalt paused indigo active ember active
project_fields
1
train
original-grammar
CC-BY-4.0
null
null