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-0042832
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
jules closed 90 alice pending 115 bruno failed 7 bruno ready 117 gus failed 48 ivan active 43
1
hana failed 94 chen closed 71 hana closed 76 gus failed 36 eli closed 16 gus active 11 jules paused 71 kim pending 11
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042832-p1
Count the number of records where column 2 is pending; output 0 if no such records exist.
$2 == "pending"{n++}END{print n+0}
jules closed 90 alice pending 115 bruno failed 7 bruno ready 117 gus failed 48 ivan active 43
1
hana failed 94 chen closed 71 hana closed 76 gus failed 36 eli closed 16 gus active 11 jules paused 71 kim pending 11
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042832
qwen/qwen3.7-plus
awkweave-0042833
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
indigo hana 5 harbor jules 28 birch hana 22 indigo gus 24 harbor farah 14 ember eli 2 fable kim 3 birch eli 25 fable lina 17
140
indigo hana 10 amber eli 14 grove ivan 22 grove jules 8 delta bruno 23 delta chen 25
102
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042833-p1
Compute and display the sum of integer values in column 3.
{s+=$3}END{print s+0}
indigo hana 5 harbor jules 28 birch hana 22 indigo gus 24 harbor farah 14 ember eli 2 fable kim 3 birch eli 25 fable lina 17
140
indigo hana 10 amber eli 14 grove ivan 22 grove jules 8 delta bruno 23 delta chen 25
102
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042833
qwen/qwen3.7-plus
awkweave-0042834
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
harbor 25 eli harbor 22 hana ember 13 gus fable 26 bruno harbor 23 jules fable 15 eli amber 15 jules
19.86
ember 13 jules ember 20 kim harbor 27 kim indigo 17 dina indigo 24 eli fable 3 farah fable 12 bruno ember 17 hana
16.62
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042834-p1
Print the average of column 2, formatted to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
harbor 25 eli harbor 22 hana ember 13 gus fable 26 bruno harbor 23 jules fable 15 eli amber 15 jules
19.86
ember 13 jules ember 20 kim harbor 27 kim indigo 17 dina indigo 24 eli fable 3 farah fable 12 bruno ember 17 hana
16.62
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042834
qwen/qwen3.7-plus
awkweave-0042835
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
lina 27 ember farah 29 cobalt hana 1 indigo gus 4 ember kim 9 birch kim 15 indigo eli 28 birch kim 30 ember kim 19 grove
1
bruno 1 grove gus 16 juniper gus 18 juniper bruno 24 fable farah 2 grove farah 13 indigo jules 23 ember lina 14 juniper kim 3 fable kim 17 juniper
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042835-p1
Identify and print the minimum numeric value found in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
lina 27 ember farah 29 cobalt hana 1 indigo gus 4 ember kim 9 birch kim 15 indigo eli 28 birch kim 30 ember kim 19 grove
1
bruno 1 grove gus 16 juniper gus 18 juniper bruno 24 fable farah 2 grove farah 13 indigo jules 23 ember lina 14 juniper kim 3 fable kim 17 juniper
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042835
qwen/qwen3.7-plus
awkweave-0042836
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
24 dina harbor 5 kim harbor 7 bruno fable 20 hana juniper 23 bruno juniper 1 lina juniper 28 eli fable 12 kim grove
28
1 ivan ember 8 chen indigo 20 farah birch 13 lina amber 22 eli indigo 1 lina amber
22
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042836-p1
Identify and output the maximum numerical value found in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
24 dina harbor 5 kim harbor 7 bruno fable 20 hana juniper 23 bruno juniper 1 lina juniper 28 eli fable 12 kim grove
28
1 ivan ember 8 chen indigo 20 farah birch 13 lina amber 22 eli indigo 1 lina amber
22
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042836
qwen/qwen3.7-plus
awkweave-0042837
Count all input records and print the total.
END{print NR}
lina 113 eli 98 chen 110 jules 41 gus 35 alice 62
6
farah 54 farah 93 lina 29 alice 102 hana 95 jules 83 bruno 47 farah 110
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042837-p1
Calculate the total number of input records and display the count.
END{print NR}
lina 113 eli 98 chen 110 jules 41 gus 35 alice 62
6
farah 54 farah 93 lina 29 alice 102 hana 95 jules 83 bruno 47 farah 110
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042837
qwen/qwen3.7-plus
awkweave-0042838
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
jules birch 34 kim birch 38 lina ember 93 eli delta 74 bruno harbor 11 eli delta 60 bruno harbor 11
jules birch 34 kim birch 38 lina ember 93 eli delta 74 bruno harbor 11 eli delta 60
jules fable 107 alice birch 80 bruno indigo 58 bruno indigo 58 hana grove 67 eli ember 101 bruno harbor 7
jules fable 107 alice birch 80 bruno indigo 58 hana grove 67 eli ember 101 bruno harbor 7
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042838-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
jules birch 34 kim birch 38 lina ember 93 eli delta 74 bruno harbor 11 eli delta 60 bruno harbor 11
jules birch 34 kim birch 38 lina ember 93 eli delta 74 bruno harbor 11 eli delta 60
jules fable 107 alice birch 80 bruno indigo 58 bruno indigo 58 hana grove 67 eli ember 101 bruno harbor 7
jules fable 107 alice birch 80 bruno indigo 58 hana grove 67 eli ember 101 bruno harbor 7
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042838
qwen/qwen3.7-plus
awkweave-0042839
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
chen birch 11 bruno birch 66 farah indigo 26 hana amber 60 jules harbor 5 lina cobalt 90
chen birch 11 bruno birch 66 farah indigo 26 hana amber 60 jules harbor 5 lina cobalt 90
gus harbor 83 chen ember 51 lina ember 106 bruno grove 35 lina ember 69 farah amber 118 gus grove 85 gus amber 39 jules fable 11
gus harbor 83 chen ember 51 lina ember 106 bruno grove 35 farah amber 118 jules fable 11
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042839-p1
Retain only the initial line for every unique value in the first column, keeping the original input order.
!seen[$1]++
chen birch 11 bruno birch 66 farah indigo 26 hana amber 60 jules harbor 5 lina cobalt 90
chen birch 11 bruno birch 66 farah indigo 26 hana amber 60 jules harbor 5 lina cobalt 90
gus harbor 83 chen ember 51 lina ember 106 bruno grove 35 lina ember 69 farah amber 118 gus grove 85 gus amber 39 jules fable 11
gus harbor 83 chen ember 51 lina ember 106 bruno grove 35 farah amber 118 jules fable 11
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042839
qwen/qwen3.7-plus
awkweave-0042840
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 14 grove hana 6 indigo hana 3 amber chen 6 birch ivan 14 birch lina 9 delta bruno 17 amber
ivan 14 hana 20 hana 23 chen 29 ivan 43 lina 52 bruno 69
hana 2 indigo chen 23 delta dina 20 cobalt farah 16 grove kim 4 indigo ivan 9 harbor gus 3 harbor
hana 2 chen 25 dina 45 farah 61 kim 65 ivan 74 gus 77
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042840-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}
ivan 14 grove hana 6 indigo hana 3 amber chen 6 birch ivan 14 birch lina 9 delta bruno 17 amber
ivan 14 hana 20 hana 23 chen 29 ivan 43 lina 52 bruno 69
hana 2 indigo chen 23 delta dina 20 cobalt farah 16 grove kim 4 indigo ivan 9 harbor gus 3 harbor
hana 2 chen 25 dina 45 farah 61 kim 65 ivan 74 gus 77
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042840
qwen/qwen3.7-plus
awkweave-0042841
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
farah 8 12 amber gus 27 28 indigo lina 29 30 amber lina 16 28 ember eli 1 4 ember hana 21 13 delta jules 11 2 indigo dina 8 23 birch
farah 20 gus 55 lina 59 lina 44 eli 5 hana 34 jules 13 dina 31
chen 22 16 delta eli 5 14 amber lina 15 19 indigo jules 25 5 juniper chen 8 9 fable jules 30 17 ember ivan 8 13 juniper
chen 38 eli 19 lina 34 jules 30 chen 17 jules 47 ivan 21
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042841-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
farah 8 12 amber gus 27 28 indigo lina 29 30 amber lina 16 28 ember eli 1 4 ember hana 21 13 delta jules 11 2 indigo dina 8 23 birch
farah 20 gus 55 lina 59 lina 44 eli 5 hana 34 jules 13 dina 31
chen 22 16 delta eli 5 14 amber lina 15 19 indigo jules 25 5 juniper chen 8 9 fable jules 30 17 ember ivan 8 13 juniper
chen 38 eli 19 lina 34 jules 30 chen 17 jules 47 ivan 21
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042841
qwen/qwen3.7-plus
awkweave-0042842
Print column 1 and pass when column 2 is at least 26; otherwise print fail.
{print $1,($2>=26?"pass":"fail")}
farah 24 eli 13 alice 7 lina 10 gus 14 dina 1
farah fail eli fail alice fail lina fail gus fail dina fail
alice 16 ivan 22 eli 24 jules 17 ivan 20 ivan 27 kim 11
alice fail ivan fail eli fail jules fail ivan fail ivan pass kim fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042842-p1
Output the first column and print 'pass' if the second column is 26 or greater; otherwise, print 'fail'.
{print $1,($2>=26?"pass":"fail")}
farah 24 eli 13 alice 7 lina 10 gus 14 dina 1
farah fail eli fail alice fail lina fail gus fail dina fail
alice 16 ivan 22 eli 24 jules 17 ivan 20 ivan 27 kim 11
alice fail ivan fail eli fail jules fail ivan fail ivan pass kim fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042842
qwen/qwen3.7-plus
awkweave-0042843
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
farah amber 29 kim juniper 35 alice grove 12 kim birch 90 alice amber 59 hana cobalt 117
FARAH KIM ALICE KIM ALICE HANA
gus delta 39 eli fable 74 alice indigo 70 lina ember 101 hana juniper 42 bruno cobalt 51 bruno harbor 38 alice delta 89 dina cobalt 65 eli delta 90
GUS ELI ALICE LINA HANA BRUNO BRUNO ALICE DINA ELI
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042843-p1
Transform the first column to uppercase and output only that column.
{print toupper($1)}
farah amber 29 kim juniper 35 alice grove 12 kim birch 90 alice amber 59 hana cobalt 117
FARAH KIM ALICE KIM ALICE HANA
gus delta 39 eli fable 74 alice indigo 70 lina ember 101 hana juniper 42 bruno cobalt 51 bruno harbor 38 alice delta 89 dina cobalt 65 eli delta 90
GUS ELI ALICE LINA HANA BRUNO BRUNO ALICE DINA ELI
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042843
qwen/qwen3.7-plus
awkweave-0042844
From column 1, print 4 characters starting at character 2.
{print substr($1,2,4)}
ember 115 grove 15 juniper 24 cobalt 40 juniper 81 juniper 26 delta 33 amber 12 cobalt 107
mber rove unip obal unip unip elta mber obal
fable 100 indigo 96 ember 24 grove 22 amber 30 delta 44 fable 69 amber 75
able ndig mber rove mber elta able mber
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042844-p1
Extract and print a substring of 4 characters from the first column, starting at the second character.
{print substr($1,2,4)}
ember 115 grove 15 juniper 24 cobalt 40 juniper 81 juniper 26 delta 33 amber 12 cobalt 107
mber rove unip obal unip unip elta mber obal
fable 100 indigo 96 ember 24 grove 22 amber 30 delta 44 fable 69 amber 75
able ndig mber rove mber elta able mber
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042844
qwen/qwen3.7-plus
awkweave-0042845
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
cobalt_amber 120 birch_grove 14 fable_ember 52 juniper_juniper 57 birch_indigo 21 ember_cobalt 48
cobalt amber birch grove fable ember juniper juniper birch indigo ember cobalt
harbor_fable 33 juniper_fable 0 amber_fable 30 indigo_birch 14 amber_amber 18 amber_fable 104 grove_fable 4
harbor fable juniper fable amber fable indigo birch amber amber amber fable grove fable
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042845-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
cobalt_amber 120 birch_grove 14 fable_ember 52 juniper_juniper 57 birch_indigo 21 ember_cobalt 48
cobalt amber birch grove fable ember juniper juniper birch indigo ember cobalt
harbor_fable 33 juniper_fable 0 amber_fable 30 indigo_birch 14 amber_amber 18 amber_fable 104 grove_fable 4
harbor fable juniper fable amber fable indigo birch amber amber amber fable grove fable
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042845
qwen/qwen3.7-plus
awkweave-0042846
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)}
eli indigo 21 failed eli cobalt 6 paused bruno cobalt 82 pending gus delta 89 ready eli amber 13 active lina harbor 13 paused
failed 21 indigo eli paused 6 cobalt eli pending 82 cobalt bruno ready 89 delta gus active 13 amber eli paused 13 harbor lina
bruno indigo 111 ready ivan birch 12 paused eli cobalt 65 closed lina indigo 80 paused gus cobalt 114 closed hana cobalt 112 active farah juniper 62 failed jules ember 118 pending farah grove 24 closed bruno juniper 56 ready
ready 111 indigo bruno paused 12 birch ivan closed 65 cobalt eli paused 80 indigo lina closed 114 cobalt gus active 112 cobalt hana failed 62 juniper farah pending 118 ember jules closed 24 grove farah ready 56 juniper bruno
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042846-p1
Reverse the sequence of fields on each line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
eli indigo 21 failed eli cobalt 6 paused bruno cobalt 82 pending gus delta 89 ready eli amber 13 active lina harbor 13 paused
failed 21 indigo eli paused 6 cobalt eli pending 82 cobalt bruno ready 89 delta gus active 13 amber eli paused 13 harbor lina
bruno indigo 111 ready ivan birch 12 paused eli cobalt 65 closed lina indigo 80 paused gus cobalt 114 closed hana cobalt 112 active farah juniper 62 failed jules ember 118 pending farah grove 24 closed bruno juniper 56 ready
ready 111 indigo bruno paused 12 birch ivan closed 65 cobalt eli paused 80 indigo lina closed 114 cobalt gus active 112 cobalt hana failed 62 juniper farah pending 118 ember jules closed 24 grove farah ready 56 juniper bruno
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042846
qwen/qwen3.7-plus
awkweave-0042847
Print the number of whitespace-separated fields on each line.
{print NF}
lina amber 67 ready alice indigo 2 closed eli amber 99 failed eli amber 120 paused chen juniper 109 pending eli ember 33 pending jules grove 81 pending chen cobalt 120 pending ivan grove 43 failed kim amber 7 active
4 4 4 4 4 4 4 4 4 4
bruno delta 24 paused alice ember 52 ready farah amber 29 active dina grove 73 active hana indigo 84 ready jules juniper 7 ready chen ember 22 closed
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042847-p1
Display the count of whitespace-delimited fields for every line.
{print NF}
lina amber 67 ready alice indigo 2 closed eli amber 99 failed eli amber 120 paused chen juniper 109 pending eli ember 33 pending jules grove 81 pending chen cobalt 120 pending ivan grove 43 failed kim amber 7 active
4 4 4 4 4 4 4 4 4 4
bruno delta 24 paused alice ember 52 ready farah amber 29 active dina grove 73 active hana indigo 84 ready jules juniper 7 ready chen ember 22 closed
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042847
qwen/qwen3.7-plus
awkweave-0042848
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]]}
eli alpha 35 chen alpha 33 chen delta 19 gus beta 76 ivan gamma 118 farah delta 55 gus gamma 99 hana delta 52 eli beta 3 ivan beta 91
alpha 2 delta 3 beta 3 gamma 2
kim alpha 109 dina delta 8 chen beta 114 chen beta 3 lina gamma 79 lina alpha 93 bruno delta 44 dina gamma 112
alpha 2 delta 2 beta 2 gamma 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042848-p1
Tally the occurrences of each unique value in column 2 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]]}
eli alpha 35 chen alpha 33 chen delta 19 gus beta 76 ivan gamma 118 farah delta 55 gus gamma 99 hana delta 52 eli beta 3 ivan beta 91
alpha 2 delta 3 beta 3 gamma 2
kim alpha 109 dina delta 8 chen beta 114 chen beta 3 lina gamma 79 lina alpha 93 bruno delta 44 dina gamma 112
alpha 2 delta 2 beta 2 gamma 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042848
qwen/qwen3.7-plus
awkweave-0042849
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 alpha 29 ivan delta 15 hana alpha 19 dina gamma 21 lina alpha 15 chen delta 16 lina delta 23 bruno delta 21
alpha 63 delta 75 gamma 21
jules alpha 30 eli alpha 6 dina beta 17 alice beta 7 kim alpha 21 farah alpha 23 jules delta 16
alpha 80 beta 24 delta 16
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042849-p1
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
bruno alpha 29 ivan delta 15 hana alpha 19 dina gamma 21 lina alpha 15 chen delta 16 lina delta 23 bruno delta 21
alpha 63 delta 75 gamma 21
jules alpha 30 eli alpha 6 dina beta 17 alice beta 7 kim alpha 21 farah alpha 23 jules delta 16
alpha 80 beta 24 delta 16
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0042849
qwen/qwen3.7-plus
awkweave-0042850
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 117 delta amber 89 beta delta 90 gamma ember 17 alpha ember 97 gamma juniper 71 gamma amber 78 delta indigo 40
alpha 2 delta 2 gamma 3
alpha fable 112 delta indigo 86 beta harbor 68 gamma ember 89 beta fable 79 alpha delta 107 gamma indigo 92 beta grove 45
alpha 2 beta 3 gamma 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042850-p1
Identify duplicate entries in column 1 and output each repeated value with its total occurrence count, sorted by the order of 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 harbor 117 delta amber 89 beta delta 90 gamma ember 17 alpha ember 97 gamma juniper 71 gamma amber 78 delta indigo 40
alpha 2 delta 2 gamma 3
alpha fable 112 delta indigo 86 beta harbor 68 gamma ember 89 beta fable 79 alpha delta 107 gamma indigo 92 beta grove 45
alpha 2 beta 3 gamma 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042850
qwen/qwen3.7-plus
awkweave-0042851
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"]}
note display_name state record_id r001 gus 9 pending r002 eli 26 paused r003 alice 25 ready r004 bruno 18 active r005 hana 26 failed r006 ivan 1 pending r007 farah 24 pending
pending paused ready active failed pending pending
note display_name state record_id r001 lina 19 ready r002 bruno 2 pending r003 kim 4 pending r004 farah 2 ready r005 lina 5 active r006 ivan 20 ready r007 hana 2 ready
ready pending pending ready active ready ready
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042851-p1
Treating the first line as a header, extract and print the values from the record_id column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
note display_name state record_id r001 gus 9 pending r002 eli 26 paused r003 alice 25 ready r004 bruno 18 active r005 hana 26 failed r006 ivan 1 pending r007 farah 24 pending
pending paused ready active failed pending pending
note display_name state record_id r001 lina 19 ready r002 bruno 2 pending r003 kim 4 pending r004 farah 2 ready r005 lina 5 active r006 ivan 20 ready r007 hana 2 ready
ready pending pending ready active ready ready
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042851
qwen/qwen3.7-plus
awkweave-0042852
The first row is a header. Print display_name for data rows whose score is greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 ivan 9 closed r002 dina 28 pending r003 gus 24 pending r004 kim 28 active r005 bruno 12 ready r006 eli 4 closed
dina gus kim
record_id display_name score state r001 farah 25 pending r002 lina 22 pending r003 hana 14 active r004 chen 1 ready r005 gus 24 paused r006 ivan 4 closed
farah lina gus
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042852-p1
Ignoring the header row, output the display_name field for any data row where the score value is strictly greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 ivan 9 closed r002 dina 28 pending r003 gus 24 pending r004 kim 28 active r005 bruno 12 ready r006 eli 4 closed
dina gus kim
record_id display_name score state r001 farah 25 pending r002 lina 22 pending r003 hana 14 active r004 chen 1 ready r005 gus 24 paused r006 ivan 4 closed
farah lina gus
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042852
qwen/qwen3.7-plus
awkweave-0042853
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
kim 1 ready dina 29 ready farah 14 ready chen 3 active chen 25 active eli 21 active chen 19 ready gus 6 ready gus 20 failed hana 22 paused
1 29 14 3 25 21 19 6 20 22
ivan 8 active eli 29 failed alice 22 paused kim 4 ready lina 5 failed bruno 16 paused dina 3 active alice 15 failed lina 6 failed
8 29 22 4 5 16 3 15 6
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042853-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
kim 1 ready dina 29 ready farah 14 ready chen 3 active chen 25 active eli 21 active chen 19 ready gus 6 ready gus 20 failed hana 22 paused
1 29 14 3 25 21 19 6 20 22
ivan 8 active eli 29 failed alice 22 paused kim 4 ready lina 5 failed bruno 16 paused dina 3 active alice 15 failed lina 6 failed
8 29 22 4 5 16 3 15 6
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0042853
qwen/qwen3.7-plus
awkweave-0042854
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 20.
BEGIN{FS=OFS=","}$2>20{print $1}
jules,12,paused farah,29,ready farah,21,active lina,1,paused gus,22,active kim,21,closed
farah farah gus kim
eli,4,closed kim,28,pending lina,12,paused jules,10,closed chen,28,active eli,30,failed ivan,1,paused hana,16,active
kim chen eli
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042854-p1
For simple comma-separated input without quoted fields, print the first column only if the value in the second column is greater than 20.
BEGIN{FS=OFS=","}$2>20{print $1}
jules,12,paused farah,29,ready farah,21,active lina,1,paused gus,22,active kim,21,closed
farah farah gus kim
eli,4,closed kim,28,pending lina,12,paused jules,10,closed chen,28,active eli,30,failed ivan,1,paused hana,16,active
kim chen eli
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042854
qwen/qwen3.7-plus
awkweave-0042855
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
ivan indigo 36 ivan harbor 78 chen birch 26 eli harbor 113 ivan indigo 81 eli harbor 42
ivan indigo 36 ivan harbor 78 chen birch 26 eli harbor 113 ivan indigo 81 eli harbor 42
farah amber 92 gus harbor 19 hana harbor 30 alice cobalt 79 alice juniper 36 hana harbor 53 gus delta 37
farah amber 92 gus harbor 19 hana harbor 30 alice cobalt 79 alice juniper 36 hana harbor 53 gus delta 37
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042855-p1
Remove leading and trailing whitespace from the text and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
ivan indigo 36 ivan harbor 78 chen birch 26 eli harbor 113 ivan indigo 81 eli harbor 42
ivan indigo 36 ivan harbor 78 chen birch 26 eli harbor 113 ivan indigo 81 eli harbor 42
farah amber 92 gus harbor 19 hana harbor 30 alice cobalt 79 alice juniper 36 hana harbor 53 gus delta 37
farah amber 92 gus harbor 19 hana harbor 30 alice cobalt 79 alice juniper 36 hana harbor 53 gus delta 37
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042855
qwen/qwen3.7-plus
awkweave-0042856
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan delta 115 paused hana grove 96 ready eli ember 82 paused bruno ember 28 failed dina amber 50 paused ivan harbor 80 failed chen indigo 92 paused dina fable 80 paused lina indigo 114 paused eli delta 26 closed
lina indigo 114 paused
chen ember 83 failed gus indigo 20 active chen ember 20 paused jules delta 96 active eli juniper 108 active farah fable 114 active ivan birch 80 pending hana harbor 106 closed
eli juniper 108 active
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042856-p1
Identify and output the longest line from the input; in the event of a tie in length, select the line that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan delta 115 paused hana grove 96 ready eli ember 82 paused bruno ember 28 failed dina amber 50 paused ivan harbor 80 failed chen indigo 92 paused dina fable 80 paused lina indigo 114 paused eli delta 26 closed
lina indigo 114 paused
chen ember 83 failed gus indigo 20 active chen ember 20 paused jules delta 96 active eli juniper 108 active farah fable 114 active ivan birch 80 pending hana harbor 106 closed
eli juniper 108 active
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042856
qwen/qwen3.7-plus
awkweave-0042857
Print every 3rd line starting at line 3 (then line 6, and so on).
NR%3==0
kim 15 ivan 67 eli 83 kim 67 ivan 98 kim 31
eli 83 kim 31
lina 58 alice 8 hana 4 gus 34 gus 69 lina 5 bruno 92
hana 4 lina 5
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042857-p1
Output every third line of the input, beginning with line 3 (i.e., lines 3, 6, 9, etc.).
NR%3==0
kim 15 ivan 67 eli 83 kim 67 ivan 98 kim 31
eli 83 kim 31
lina 58 alice 8 hana 4 gus 34 gus 69 lina 5 bruno 92
hana 4 lina 5
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042857
qwen/qwen3.7-plus
awkweave-0042858
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha amber 76 delta grove 82 delta grove 77 gamma birch 91 gamma harbor 87 gamma cobalt 72 gamma fable 90
6
alpha amber 91 alpha fable 84 alpha grove 77 alpha ember 96 delta fable 46 gamma indigo 90 beta fable 111 beta ember 0 gamma juniper 108 alpha fable 13
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042858-p1
Determine the number of unique values present in column 2 and print only this total count.
{if(!seen[$2]++)n++}END{print n+0}
alpha amber 76 delta grove 82 delta grove 77 gamma birch 91 gamma harbor 87 gamma cobalt 72 gamma fable 90
6
alpha amber 91 alpha fable 84 alpha grove 77 alpha ember 96 delta fable 46 gamma indigo 90 beta fable 111 beta ember 0 gamma juniper 108 alpha fable 13
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042858
qwen/qwen3.7-plus
awkweave-0042859
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}
gus 24 0 hana 3 9 dina 10 1 lina 13 18 eli 10 20 bruno 18 1
hana 0.33 dina 10.00 lina 0.72 eli 0.50 bruno 18.00
hana 20 0 farah 19 3 gus 6 10 ivan 19 9 alice 26 10 farah 21 21 hana 10 3 gus 1 22
farah 6.33 gus 0.60 ivan 2.11 alice 2.60 farah 1.00 hana 3.33 gus 0.05
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042859-p1
For each row where column 3 is non-zero, print column 1 and the result of dividing column 2 by column 3, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 24 0 hana 3 9 dina 10 1 lina 13 18 eli 10 20 bruno 18 1
hana 0.33 dina 10.00 lina 0.72 eli 0.50 bruno 18.00
hana 20 0 farah 19 3 gus 6 10 ivan 19 9 alice 26 10 farah 21 21 hana 10 3 gus 1 22
farah 6.33 gus 0.60 ivan 2.11 alice 2.60 farah 1.00 hana 3.33 gus 0.05
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042859
qwen/qwen3.7-plus
awkweave-0042860
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 5 dina amber 17 jules delta 13 ivan grove 19 eli amber 10 chen indigo 9 lina grove 23 eli ember 5 hana grove 6
lina grove 23 ivan grove 19 dina amber 17
alice birch 15 jules birch 15 eli harbor 15 kim juniper 28 farah amber 11 lina cobalt 16 alice delta 3 hana juniper 13 farah ember 14 lina ember 25
kim juniper 28 lina ember 25 lina cobalt 16
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042860-p1
Display the top three full records based on the highest numeric values in column 3, sorted in descending order, while 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]}
alice ember 5 dina amber 17 jules delta 13 ivan grove 19 eli amber 10 chen indigo 9 lina grove 23 eli ember 5 hana grove 6
lina grove 23 ivan grove 19 dina amber 17
alice birch 15 jules birch 15 eli harbor 15 kim juniper 28 farah amber 11 lina cobalt 16 alice delta 3 hana juniper 13 farah ember 14 lina ember 25
kim juniper 28 lina ember 25 lina cobalt 16
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042860
qwen/qwen3.7-plus
awkweave-0042861
Print column 3 followed by column 2 for every record.
{print $3, $2}
juniper delta 48 bruno amber harbor 26 alice amber birch 25 hana amber delta 106 gus harbor grove 12 gus harbor harbor 119 gus
48 delta 26 harbor 25 birch 106 delta 12 grove 119 harbor
fable cobalt 109 eli grove fable 117 kim indigo ember 112 kim fable harbor 89 bruno cobalt delta 100 gus grove ember 76 jules
109 cobalt 117 fable 112 ember 89 harbor 100 delta 76 ember
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042861-p1
For each record, output the value from column 3 followed by the value from column 2.
{print $3, $2}
juniper delta 48 bruno amber harbor 26 alice amber birch 25 hana amber delta 106 gus harbor grove 12 gus harbor harbor 119 gus
48 delta 26 harbor 25 birch 106 delta 12 grove 119 harbor
fable cobalt 109 eli grove fable 117 kim indigo ember 112 kim fable harbor 89 bruno cobalt delta 100 gus grove ember 76 jules
109 cobalt 117 fable 112 ember 89 harbor 100 delta 76 ember
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042861
qwen/qwen3.7-plus
awkweave-0042862
Print the last field of every input line.
{print $NF}
amber closed indigo indigo ready delta harbor pending cobalt indigo closed amber indigo ready ember juniper pending harbor amber closed juniper ember ready harbor delta failed cobalt
indigo delta cobalt amber ember harbor juniper harbor cobalt
delta paused cobalt juniper active indigo grove pending grove cobalt closed delta delta closed grove grove closed juniper grove failed delta amber closed ember indigo pending cobalt harbor ready cobalt
cobalt indigo grove delta grove juniper delta ember cobalt cobalt
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042862-p1
Output the final field from every line of input.
{print $NF}
amber closed indigo indigo ready delta harbor pending cobalt indigo closed amber indigo ready ember juniper pending harbor amber closed juniper ember ready harbor delta failed cobalt
indigo delta cobalt amber ember harbor juniper harbor cobalt
delta paused cobalt juniper active indigo grove pending grove cobalt closed delta delta closed grove grove closed juniper grove failed delta amber closed ember indigo pending cobalt harbor ready cobalt
cobalt indigo grove delta grove juniper delta ember cobalt cobalt
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042862
qwen/qwen3.7-plus
awkweave-0042863
Print the complete records where column 1 is at most 25.
$1 <= 25
50 failed hana 101 ready gus 70 paused bruno 83 closed hana 0 pending bruno 37 ready farah
0 pending bruno
37 failed jules 78 closed kim 20 failed lina 84 failed hana 13 failed eli 67 failed chen 91 pending dina 83 paused jules 96 paused farah 49 active kim
20 failed lina 13 failed eli
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042863-p1
Display the full records where the value in column 1 is less than or equal to 25.
$1 <= 25
50 failed hana 101 ready gus 70 paused bruno 83 closed hana 0 pending bruno 37 ready farah
0 pending bruno
37 failed jules 78 closed kim 20 failed lina 84 failed hana 13 failed eli 67 failed chen 91 pending dina 83 paused jules 96 paused farah 49 active kim
20 failed lina 13 failed eli
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042863
qwen/qwen3.7-plus
awkweave-0042864
Show whole lines whose 2nd field is between 12 and 26, inclusive.
$2 >= 12 && $2 <= 26
dina 30 lina gus bruno 20 ivan hana hana 2 lina alice hana 5 chen hana farah 13 kim dina hana 30 bruno lina chen 22 bruno hana
bruno 20 ivan hana farah 13 kim dina chen 22 bruno hana
kim 10 alice jules eli 25 ivan kim dina 26 hana alice chen 20 gus hana lina 16 gus dina lina 23 lina farah chen 28 eli kim ivan 11 farah alice bruno 18 jules hana lina 15 jules jules
eli 25 ivan kim dina 26 hana alice chen 20 gus hana lina 16 gus dina lina 23 lina farah bruno 18 jules hana lina 15 jules jules
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042864-p1
Show entire lines where the second field falls within the inclusive range of 12 to 26.
$2 >= 12 && $2 <= 26
dina 30 lina gus bruno 20 ivan hana hana 2 lina alice hana 5 chen hana farah 13 kim dina hana 30 bruno lina chen 22 bruno hana
bruno 20 ivan hana farah 13 kim dina chen 22 bruno hana
kim 10 alice jules eli 25 ivan kim dina 26 hana alice chen 20 gus hana lina 16 gus dina lina 23 lina farah chen 28 eli kim ivan 11 farah alice bruno 18 jules hana lina 15 jules jules
eli 25 ivan kim dina 26 hana alice chen 20 gus hana lina 16 gus dina lina 23 lina farah bruno 18 jules hana lina 15 jules jules
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042864
qwen/qwen3.7-plus
awkweave-0042865
Print column 2 only for rows where column 1 is exactly active.
$1 == "active"{print $2}
pending farah amber 97 active jules ember 25 ready gus harbor 120 ready chen indigo 66 paused jules amber 94 active eli delta 64 pending farah juniper 84 pending jules fable 47 failed farah ember 102
jules eli
ready lina delta 19 closed chen indigo 67 ready gus ember 84 failed alice ember 11 paused dina ember 107 failed ivan harbor 42
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042865-p1
Output only column 2 for rows where column 1 contains the exact string 'active'.
$1 == "active"{print $2}
pending farah amber 97 active jules ember 25 ready gus harbor 120 ready chen indigo 66 paused jules amber 94 active eli delta 64 pending farah juniper 84 pending jules fable 47 failed farah ember 102
jules eli
ready lina delta 19 closed chen indigo 67 ready gus ember 84 failed alice ember 11 paused dina ember 107 failed ivan harbor 42
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042865
qwen/qwen3.7-plus
awkweave-0042866
Print all fields from lines where field 2 begins with INFO.
$2 ~ /^INFO/
117 DEBUG delta 21 WARN birch 77 ERROR amber 18 INFO amber 9 ERROR indigo 53 DEBUG amber 50 ERROR delta 3 WARN cobalt 21 WARN harbor 96 INFO ember
18 INFO amber 96 INFO ember
5 ERROR juniper 98 ERROR delta 110 DEBUG ember 72 DEBUG amber 14 WARN ember 107 ERROR delta 27 INFO fable 80 WARN birch
27 INFO fable
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042866-p1
Print all fields from lines where the second field starts with the prefix 'INFO'.
$2 ~ /^INFO/
117 DEBUG delta 21 WARN birch 77 ERROR amber 18 INFO amber 9 ERROR indigo 53 DEBUG amber 50 ERROR delta 3 WARN cobalt 21 WARN harbor 96 INFO ember
18 INFO amber 96 INFO ember
5 ERROR juniper 98 ERROR delta 110 DEBUG ember 72 DEBUG amber 14 WARN ember 107 ERROR delta 27 INFO fable 80 WARN birch
27 INFO fable
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042866
qwen/qwen3.7-plus
awkweave-0042867
Print every line except those containing the exact text birch.
$0 !~ /birch/
juniper 56 active harbor 108 closed birch 5 failed grove 45 failed juniper 89 closed cobalt 64 closed harbor 51 ready harbor 33 failed indigo 33 closed delta 8 failed birch 999 active
juniper 56 active harbor 108 closed grove 45 failed juniper 89 closed cobalt 64 closed harbor 51 ready harbor 33 failed indigo 33 closed delta 8 failed
grove 29 ready grove 44 pending amber 99 closed fable 21 pending harbor 98 failed indigo 53 active cobalt 19 failed juniper 95 ready birch 999 active
grove 29 ready grove 44 pending amber 99 closed fable 21 pending harbor 98 failed indigo 53 active cobalt 19 failed juniper 95 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042867-p1
Output every line that does not contain the exact string 'birch'.
$0 !~ /birch/
juniper 56 active harbor 108 closed birch 5 failed grove 45 failed juniper 89 closed cobalt 64 closed harbor 51 ready harbor 33 failed indigo 33 closed delta 8 failed birch 999 active
juniper 56 active harbor 108 closed grove 45 failed juniper 89 closed cobalt 64 closed harbor 51 ready harbor 33 failed indigo 33 closed delta 8 failed
grove 29 ready grove 44 pending amber 99 closed fable 21 pending harbor 98 failed indigo 53 active cobalt 19 failed juniper 95 ready birch 999 active
grove 29 ready grove 44 pending amber 99 closed fable 21 pending harbor 98 failed indigo 53 active cobalt 19 failed juniper 95 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042867
qwen/qwen3.7-plus
awkweave-0042868
Print lines 3 through 5, including both endpoints.
NR >= 3 && NR <= 5
jules delta 57 dina cobalt 99 chen indigo 92 alice birch 113 dina indigo 35 hana ember 12 dina amber 91 farah harbor 70
chen indigo 92 alice birch 113 dina indigo 35
kim delta 98 gus delta 65 eli amber 87 dina ember 65 bruno ember 43 eli harbor 3 dina harbor 61
eli amber 87 dina ember 65 bruno ember 43
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042868-p1
Print lines 3 through 5, inclusive of both endpoints.
NR >= 3 && NR <= 5
jules delta 57 dina cobalt 99 chen indigo 92 alice birch 113 dina indigo 35 hana ember 12 dina amber 91 farah harbor 70
chen indigo 92 alice birch 113 dina indigo 35
kim delta 98 gus delta 65 eli amber 87 dina ember 65 bruno ember 43 eli harbor 3 dina harbor 61
eli amber 87 dina ember 65 bruno ember 43
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042868
qwen/qwen3.7-plus
awkweave-0042869
Output only the first 2 records.
NR <= 2
chen 17 indigo hana 70 harbor eli 15 amber farah 39 fable gus 44 juniper alice 109 birch chen 82 ember bruno 68 juniper hana 4 cobalt
chen 17 indigo hana 70 harbor
lina 111 birch lina 112 ember gus 4 harbor gus 38 ember hana 22 juniper alice 96 amber
lina 111 birch lina 112 ember
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042869-p1
Output only the first 2 records.
NR <= 2
chen 17 indigo hana 70 harbor eli 15 amber farah 39 fable gus 44 juniper alice 109 birch chen 82 ember bruno 68 juniper hana 4 cobalt
chen 17 indigo hana 70 harbor
lina 111 birch lina 112 ember gus 4 harbor gus 38 ember hana 22 juniper alice 96 amber
lina 111 birch lina 112 ember
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0042869
qwen/qwen3.7-plus
awkweave-0042870
Skip the first line and print every remaining line unchanged.
NR > 1
jules 46 birch alice 19 fable ivan 46 grove hana 67 indigo farah 0 fable gus 86 birch lina 63 indigo kim 25 cobalt lina 35 birch
alice 19 fable ivan 46 grove hana 67 indigo farah 0 fable gus 86 birch lina 63 indigo kim 25 cobalt lina 35 birch
lina 74 juniper alice 4 indigo gus 62 harbor alice 114 ember kim 87 birch chen 69 grove ivan 104 amber gus 82 ember eli 83 juniper dina 73 birch
alice 4 indigo gus 62 harbor alice 114 ember kim 87 birch chen 69 grove ivan 104 amber gus 82 ember eli 83 juniper dina 73 birch
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042870-p1
Ignore the first line and print all subsequent lines exactly as they appear.
NR > 1
jules 46 birch alice 19 fable ivan 46 grove hana 67 indigo farah 0 fable gus 86 birch lina 63 indigo kim 25 cobalt lina 35 birch
alice 19 fable ivan 46 grove hana 67 indigo farah 0 fable gus 86 birch lina 63 indigo kim 25 cobalt lina 35 birch
lina 74 juniper alice 4 indigo gus 62 harbor alice 114 ember kim 87 birch chen 69 grove ivan 104 amber gus 82 ember eli 83 juniper dina 73 birch
alice 4 indigo gus 62 harbor alice 114 ember kim 87 birch chen 69 grove ivan 104 amber gus 82 ember eli 83 juniper dina 73 birch
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042870
qwen/qwen3.7-plus
awkweave-0042871
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
bruno closed 87 hana paused 36 alice paused 112 lina closed 74 jules failed 40 eli failed 93 hana failed 102 dina active 20 alice paused 28 gus pending 40
2
lina failed 44 farah failed 112 eli ready 107 lina closed 86 bruno active 41 jules active 67 eli ready 33 chen failed 83 kim failed 95
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042871-p1
Count the number of records where column 2 is 'closed', and print 0 if no such records exist.
$2 == "closed"{n++}END{print n+0}
bruno closed 87 hana paused 36 alice paused 112 lina closed 74 jules failed 40 eli failed 93 hana failed 102 dina active 20 alice paused 28 gus pending 40
2
lina failed 44 farah failed 112 eli ready 107 lina closed 86 bruno active 41 jules active 67 eli ready 33 chen failed 83 kim failed 95
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042871
qwen/qwen3.7-plus
awkweave-0042872
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
chen 9 indigo farah 21 ember dina 28 birch hana 4 harbor dina 26 grove dina 17 juniper dina 17 fable hana 13 delta farah 18 indigo
153
bruno 28 delta jules 16 birch alice 15 indigo dina 25 grove bruno 19 cobalt lina 30 ember kim 15 indigo bruno 6 indigo farah 6 delta bruno 14 grove
174
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042872-p1
Compute and output the total of all integer values found in the second column.
{s+=$2}END{print s+0}
chen 9 indigo farah 21 ember dina 28 birch hana 4 harbor dina 26 grove dina 17 juniper dina 17 fable hana 13 delta farah 18 indigo
153
bruno 28 delta jules 16 birch alice 15 indigo dina 25 grove bruno 19 cobalt lina 30 ember kim 15 indigo bruno 6 indigo farah 6 delta bruno 14 grove
174
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042872
qwen/qwen3.7-plus
awkweave-0042873
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
28 alice juniper 7 jules harbor 1 lina harbor 6 hana cobalt 4 hana ember 17 kim juniper
10.50
15 dina indigo 1 gus indigo 21 jules birch 14 gus harbor 9 chen harbor 15 farah cobalt 16 jules cobalt 16 chen juniper 13 chen delta
13.33
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042873-p1
Output the average of the values in the first column, formatted to precisely two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
28 alice juniper 7 jules harbor 1 lina harbor 6 hana cobalt 4 hana ember 17 kim juniper
10.50
15 dina indigo 1 gus indigo 21 jules birch 14 gus harbor 9 chen harbor 15 farah cobalt 16 jules cobalt 16 chen juniper 13 chen delta
13.33
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042873
qwen/qwen3.7-plus
awkweave-0042874
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
gus 25 indigo hana 22 fable kim 18 ember gus 12 juniper jules 15 grove kim 29 birch
12
alice 19 birch ivan 24 fable lina 12 cobalt farah 16 birch jules 22 grove alice 6 fable chen 22 amber
6
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042874-p1
Identify and display the minimum numerical value present in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
gus 25 indigo hana 22 fable kim 18 ember gus 12 juniper jules 15 grove kim 29 birch
12
alice 19 birch ivan 24 fable lina 12 cobalt farah 16 birch jules 22 grove alice 6 fable chen 22 amber
6
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042874
qwen/qwen3.7-plus
awkweave-0042875
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
amber 4 farah amber 26 kim grove 13 gus juniper 11 eli delta 18 ivan fable 12 alice amber 20 farah indigo 30 farah fable 26 dina
30
cobalt 25 gus fable 10 lina grove 29 chen juniper 21 bruno birch 6 chen birch 10 eli birch 18 alice cobalt 18 ivan ember 14 ivan fable 25 eli
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042875-p1
Identify and display the maximum numerical value present in the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
amber 4 farah amber 26 kim grove 13 gus juniper 11 eli delta 18 ivan fable 12 alice amber 20 farah indigo 30 farah fable 26 dina
30
cobalt 25 gus fable 10 lina grove 29 chen juniper 21 bruno birch 6 chen birch 10 eli birch 18 alice cobalt 18 ivan ember 14 ivan fable 25 eli
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042875
qwen/qwen3.7-plus
awkweave-0042876
Count all input records and print the total.
END{print NR}
chen 34 lina 18 ivan 48 kim 65 kim 27 ivan 37 eli 35 alice 30 chen 88
9
eli 5 jules 12 bruno 49 kim 72 farah 78 alice 84
6
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042876-p1
Count the total number of input lines and print the result.
END{print NR}
chen 34 lina 18 ivan 48 kim 65 kim 27 ivan 37 eli 35 alice 30 chen 88
9
eli 5 jules 12 bruno 49 kim 72 farah 78 alice 84
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042876
qwen/qwen3.7-plus
awkweave-0042877
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
eli grove 33 farah harbor 66 chen grove 96 bruno delta 83 farah indigo 112 chen indigo 22 chen cobalt 19 chen indigo 22 hana ember 89
eli grove 33 farah harbor 66 chen grove 96 bruno delta 83 farah indigo 112 chen indigo 22 chen cobalt 19 hana ember 89
jules birch 64 alice fable 2 jules fable 47 jules fable 47 bruno ember 10 farah indigo 64 chen indigo 8 dina ember 104 kim ember 9 dina fable 99
jules birch 64 alice fable 2 jules fable 47 bruno ember 10 farah indigo 64 chen indigo 8 dina ember 104 kim ember 9 dina fable 99
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042877-p1
Eliminate exact duplicate lines while maintaining the original sequence and keeping the first instance of each.
!seen[$0]++
eli grove 33 farah harbor 66 chen grove 96 bruno delta 83 farah indigo 112 chen indigo 22 chen cobalt 19 chen indigo 22 hana ember 89
eli grove 33 farah harbor 66 chen grove 96 bruno delta 83 farah indigo 112 chen indigo 22 chen cobalt 19 hana ember 89
jules birch 64 alice fable 2 jules fable 47 jules fable 47 bruno ember 10 farah indigo 64 chen indigo 8 dina ember 104 kim ember 9 dina fable 99
jules birch 64 alice fable 2 jules fable 47 bruno ember 10 farah indigo 64 chen indigo 8 dina ember 104 kim ember 9 dina fable 99
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042877
qwen/qwen3.7-plus
awkweave-0042878
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
dina juniper 84 bruno delta 32 dina amber 102 dina amber 92 eli juniper 19 farah ember 0 chen delta 95 lina delta 54 ivan cobalt 74 bruno ember 89
dina juniper 84 bruno delta 32 dina amber 102 dina amber 92 eli juniper 19 farah ember 0 chen delta 95 lina delta 54 ivan cobalt 74 bruno ember 89
dina grove 77 eli cobalt 115 lina ember 110 farah birch 91 farah fable 58 alice amber 94 ivan grove 20 eli juniper 49 gus amber 31
dina grove 77 eli cobalt 115 lina ember 110 farah birch 91 farah fable 58 alice amber 94 ivan grove 20 eli juniper 49 gus amber 31
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042878-p1
Retain only the initial occurrence for every unique value in the third column, keeping the original input order.
!seen[$3]++
dina juniper 84 bruno delta 32 dina amber 102 dina amber 92 eli juniper 19 farah ember 0 chen delta 95 lina delta 54 ivan cobalt 74 bruno ember 89
dina juniper 84 bruno delta 32 dina amber 102 dina amber 92 eli juniper 19 farah ember 0 chen delta 95 lina delta 54 ivan cobalt 74 bruno ember 89
dina grove 77 eli cobalt 115 lina ember 110 farah birch 91 farah fable 58 alice amber 94 ivan grove 20 eli juniper 49 gus amber 31
dina grove 77 eli cobalt 115 lina ember 110 farah birch 91 farah fable 58 alice amber 94 ivan grove 20 eli juniper 49 gus amber 31
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042878
qwen/qwen3.7-plus
awkweave-0042879
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
hana 13 fable bruno 15 amber alice 9 fable gus 10 ember hana 25 amber eli 20 indigo dina 21 delta kim 10 harbor kim 17 amber hana 26 birch
hana 13 bruno 28 alice 37 gus 47 hana 72 eli 92 dina 113 kim 123 kim 140 hana 166
hana 12 delta gus 9 juniper gus 29 harbor farah 8 fable hana 26 grove chen 27 cobalt hana 10 cobalt kim 25 indigo farah 17 indigo
hana 12 gus 21 gus 50 farah 58 hana 84 chen 111 hana 121 kim 146 farah 163
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042879-p1
For each entry, output the first column and the cumulative sum of the second column, separated by a space.
{s+=$2;print $1,s}
hana 13 fable bruno 15 amber alice 9 fable gus 10 ember hana 25 amber eli 20 indigo dina 21 delta kim 10 harbor kim 17 amber hana 26 birch
hana 13 bruno 28 alice 37 gus 47 hana 72 eli 92 dina 113 kim 123 kim 140 hana 166
hana 12 delta gus 9 juniper gus 29 harbor farah 8 fable hana 26 grove chen 27 cobalt hana 10 cobalt kim 25 indigo farah 17 indigo
hana 12 gus 21 gus 50 farah 58 hana 84 chen 111 hana 121 kim 146 farah 163
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042879
qwen/qwen3.7-plus
awkweave-0042880
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
lina 15 5 ember lina 22 24 harbor jules 23 3 amber alice 13 4 juniper chen 15 6 juniper chen 30 24 fable ivan 27 25 ember hana 25 17 fable kim 22 27 amber
lina 20 lina 46 jules 26 alice 17 chen 21 chen 54 ivan 52 hana 42 kim 49
farah 10 23 juniper dina 22 16 indigo chen 12 17 fable lina 30 17 harbor bruno 8 6 harbor hana 29 21 amber eli 13 25 amber dina 17 27 ember
farah 33 dina 38 chen 29 lina 47 bruno 14 hana 50 eli 38 dina 44
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042880-p1
For each row, output the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
lina 15 5 ember lina 22 24 harbor jules 23 3 amber alice 13 4 juniper chen 15 6 juniper chen 30 24 fable ivan 27 25 ember hana 25 17 fable kim 22 27 amber
lina 20 lina 46 jules 26 alice 17 chen 21 chen 54 ivan 52 hana 42 kim 49
farah 10 23 juniper dina 22 16 indigo chen 12 17 fable lina 30 17 harbor bruno 8 6 harbor hana 29 21 amber eli 13 25 amber dina 17 27 ember
farah 33 dina 38 chen 29 lina 47 bruno 14 hana 50 eli 38 dina 44
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042880
qwen/qwen3.7-plus
awkweave-0042881
Print column 1 and pass when column 2 is at least 22; otherwise print fail.
{print $1,($2>=22?"pass":"fail")}
eli 25 gus 20 chen 26 jules 29 kim 1 farah 24
eli pass gus fail chen pass jules pass kim fail farah pass
jules 2 dina 9 farah 18 bruno 8 bruno 8 gus 18 alice 3
jules fail dina fail farah fail bruno fail bruno fail gus fail alice fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0042881-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")}
eli 25 gus 20 chen 26 jules 29 kim 1 farah 24
eli pass gus fail chen pass jules pass kim fail farah pass
jules 2 dina 9 farah 18 bruno 8 bruno 8 gus 18 alice 3
jules fail dina fail farah fail bruno fail bruno fail gus fail alice fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0042881
qwen/qwen3.7-plus