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-0037721-p1
Output only the first two records from the input.
NR <= 2
kim 39 cobalt chen 32 indigo alice 62 harbor eli 86 cobalt hana 110 fable jules 65 birch
kim 39 cobalt chen 32 indigo
bruno 82 amber jules 17 ember lina 6 indigo alice 96 delta jules 4 harbor hana 63 delta alice 74 juniper jules 55 birch dina 80 harbor
bruno 82 amber jules 17 ember
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037721
qwen/qwen3.7-plus
awkweave-0037722
Skip the first line and print every remaining line unchanged.
NR > 1
farah 57 indigo bruno 82 fable hana 43 ember eli 55 juniper gus 82 cobalt lina 71 fable
bruno 82 fable hana 43 ember eli 55 juniper gus 82 cobalt lina 71 fable
dina 0 indigo lina 72 cobalt eli 96 birch ivan 66 delta farah 100 indigo farah 24 grove kim 103 cobalt bruno 35 amber
lina 72 cobalt eli 96 birch ivan 66 delta farah 100 indigo farah 24 grove kim 103 cobalt bruno 35 amber
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037722-p1
Omit the header line and print all subsequent lines exactly as they appear.
NR > 1
farah 57 indigo bruno 82 fable hana 43 ember eli 55 juniper gus 82 cobalt lina 71 fable
bruno 82 fable hana 43 ember eli 55 juniper gus 82 cobalt lina 71 fable
dina 0 indigo lina 72 cobalt eli 96 birch ivan 66 delta farah 100 indigo farah 24 grove kim 103 cobalt bruno 35 amber
lina 72 cobalt eli 96 birch ivan 66 delta farah 100 indigo farah 24 grove kim 103 cobalt bruno 35 amber
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037722
qwen/qwen3.7-plus
awkweave-0037723
Count how many records have ready in column 2. Print 0 if there are none.
$2 == "ready"{n++}END{print n+0}
bruno closed 15 farah paused 119 ivan closed 108 alice failed 31 lina active 114 alice active 101 eli closed 97
0
gus closed 37 eli paused 93 hana ready 58 gus ready 99 jules paused 41 jules ready 47 chen closed 111 kim paused 90 alice closed 101
3
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037723-p1
Count the number of records where the second column is ready; output 0 if the count is zero.
$2 == "ready"{n++}END{print n+0}
bruno closed 15 farah paused 119 ivan closed 108 alice failed 31 lina active 114 alice active 101 eli closed 97
0
gus closed 37 eli paused 93 hana ready 58 gus ready 99 jules paused 41 jules ready 47 chen closed 111 kim paused 90 alice closed 101
3
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037723
qwen/qwen3.7-plus
awkweave-0037724
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
9 amber jules 14 birch ivan 17 juniper lina 14 indigo gus 14 grove jules 9 amber jules 11 delta chen
88
22 cobalt farah 30 amber bruno 12 amber dina 7 indigo bruno 17 amber hana 20 birch chen 6 grove kim 15 ember farah
129
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037724-p1
Compute and display the total sum of all integer values found in the first column.
{s+=$1}END{print s+0}
9 amber jules 14 birch ivan 17 juniper lina 14 indigo gus 14 grove jules 9 amber jules 11 delta chen
88
22 cobalt farah 30 amber bruno 12 amber dina 7 indigo bruno 17 amber hana 20 birch chen 6 grove kim 15 ember farah
129
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037724
qwen/qwen3.7-plus
awkweave-0037725
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
26 chen amber 15 chen birch 22 dina grove 28 ivan cobalt 17 dina delta 17 dina grove 4 hana indigo 9 dina indigo 4 eli harbor 3 lina juniper
14.50
1 hana cobalt 15 farah juniper 20 eli grove 5 dina fable 30 lina juniper 28 farah amber
16.50
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037725-p1
Calculate the average of the values in the first column and print the result rounded to two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
26 chen amber 15 chen birch 22 dina grove 28 ivan cobalt 17 dina delta 17 dina grove 4 hana indigo 9 dina indigo 4 eli harbor 3 lina juniper
14.50
1 hana cobalt 15 farah juniper 20 eli grove 5 dina fable 30 lina juniper 28 farah amber
16.50
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037725
qwen/qwen3.7-plus
awkweave-0037726
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
alice ember 27 chen grove 4 kim grove 6 ivan indigo 13 kim cobalt 29 lina harbor 27 jules juniper 29 lina harbor 1
1
bruno fable 25 dina harbor 9 ivan indigo 15 hana cobalt 19 bruno harbor 3 chen ember 7 hana amber 7 lina harbor 23
3
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037726-p1
Identify and output the minimum numeric value present in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
alice ember 27 chen grove 4 kim grove 6 ivan indigo 13 kim cobalt 29 lina harbor 27 jules juniper 29 lina harbor 1
1
bruno fable 25 dina harbor 9 ivan indigo 15 hana cobalt 19 bruno harbor 3 chen ember 7 hana amber 7 lina harbor 23
3
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037726
qwen/qwen3.7-plus
awkweave-0037727
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
grove jules 1 cobalt hana 4 harbor bruno 1 harbor hana 9 grove kim 6 juniper jules 19
19
harbor farah 21 birch alice 18 amber kim 28 ember gus 16 juniper hana 24 harbor farah 16 cobalt hana 26
28
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037727-p1
Identify and output the maximum numeric value present in the third column.
NR==1||$3>extreme{extreme=$3}END{print extreme}
grove jules 1 cobalt hana 4 harbor bruno 1 harbor hana 9 grove kim 6 juniper jules 19
19
harbor farah 21 birch alice 18 amber kim 28 ember gus 16 juniper hana 24 harbor farah 16 cobalt hana 26
28
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037727
qwen/qwen3.7-plus
awkweave-0037728
Count all input records and print the total.
END{print NR}
ivan 21 jules 23 hana 65 kim 110 farah 63 hana 89 jules 6 kim 10 jules 13
9
lina 108 eli 20 jules 54 gus 86 gus 42 ivan 33
6
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037728-p1
Count the total number of input records and print this final count.
END{print NR}
ivan 21 jules 23 hana 65 kim 110 farah 63 hana 89 jules 6 kim 10 jules 13
9
lina 108 eli 20 jules 54 gus 86 gus 42 ivan 33
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037728
qwen/qwen3.7-plus
awkweave-0037729
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
jules birch 114 kim cobalt 85 jules birch 60 dina amber 98 chen birch 98 gus harbor 17 jules birch 79 hana juniper 63 hana juniper 63 chen amber 9 alice harbor 105
jules birch 114 kim cobalt 85 jules birch 60 dina amber 98 chen birch 98 gus harbor 17 jules birch 79 hana juniper 63 chen amber 9 alice harbor 105
kim cobalt 16 alice amber 68 kim cobalt 16 alice cobalt 96 chen juniper 100 hana grove 62 dina harbor 92
kim cobalt 16 alice amber 68 alice cobalt 96 chen juniper 100 hana grove 62 dina harbor 92
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037729-p1
Eliminate duplicate lines while keeping the first instance of each unique line and maintaining the original sequence.
!seen[$0]++
jules birch 114 kim cobalt 85 jules birch 60 dina amber 98 chen birch 98 gus harbor 17 jules birch 79 hana juniper 63 hana juniper 63 chen amber 9 alice harbor 105
jules birch 114 kim cobalt 85 jules birch 60 dina amber 98 chen birch 98 gus harbor 17 jules birch 79 hana juniper 63 chen amber 9 alice harbor 105
kim cobalt 16 alice amber 68 kim cobalt 16 alice cobalt 96 chen juniper 100 hana grove 62 dina harbor 92
kim cobalt 16 alice amber 68 alice cobalt 96 chen juniper 100 hana grove 62 dina harbor 92
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037729
qwen/qwen3.7-plus
awkweave-0037730
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
farah cobalt 15 hana grove 64 hana indigo 96 gus amber 35 jules juniper 56 lina juniper 18 lina birch 100 dina harbor 10 gus juniper 107
farah cobalt 15 hana grove 64 hana indigo 96 gus amber 35 jules juniper 56 lina birch 100 dina harbor 10
jules birch 52 bruno indigo 24 kim amber 63 bruno indigo 106 alice cobalt 54 ivan juniper 40 gus cobalt 88 ivan amber 60
jules birch 52 bruno indigo 24 kim amber 63 alice cobalt 54 ivan juniper 40
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037730-p1
For every unique value in column 2, output only the first occurrence while maintaining the original input sequence.
!seen[$2]++
farah cobalt 15 hana grove 64 hana indigo 96 gus amber 35 jules juniper 56 lina juniper 18 lina birch 100 dina harbor 10 gus juniper 107
farah cobalt 15 hana grove 64 hana indigo 96 gus amber 35 jules juniper 56 lina birch 100 dina harbor 10
jules birch 52 bruno indigo 24 kim amber 63 bruno indigo 106 alice cobalt 54 ivan juniper 40 gus cobalt 88 ivan amber 60
jules birch 52 bruno indigo 24 kim amber 63 alice cobalt 54 ivan juniper 40
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037730
qwen/qwen3.7-plus
awkweave-0037731
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
jules 7 harbor lina 27 indigo alice 18 ember alice 3 amber hana 3 amber chen 12 ember eli 19 ember
jules 7 lina 34 alice 52 alice 55 hana 58 chen 70 eli 89
eli 25 fable ivan 30 birch chen 23 fable ivan 28 indigo ivan 20 fable gus 20 harbor lina 8 birch gus 20 harbor
eli 25 ivan 55 chen 78 ivan 106 ivan 126 gus 146 lina 154 gus 174
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037731-p1
Output column 1 alongside the cumulative total of column 2 for each row, using a space as the delimiter.
{s+=$2;print $1,s}
jules 7 harbor lina 27 indigo alice 18 ember alice 3 amber hana 3 amber chen 12 ember eli 19 ember
jules 7 lina 34 alice 52 alice 55 hana 58 chen 70 eli 89
eli 25 fable ivan 30 birch chen 23 fable ivan 28 indigo ivan 20 fable gus 20 harbor lina 8 birch gus 20 harbor
eli 25 ivan 55 chen 78 ivan 106 ivan 126 gus 146 lina 154 gus 174
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037731
qwen/qwen3.7-plus
awkweave-0037732
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
lina 10 18 amber eli 19 26 ember gus 20 8 birch gus 29 25 cobalt jules 21 21 fable bruno 14 20 birch farah 20 3 cobalt alice 13 13 fable
lina 28 eli 45 gus 28 gus 54 jules 42 bruno 34 farah 23 alice 26
lina 6 7 delta bruno 26 13 fable eli 24 21 indigo eli 11 30 indigo jules 4 1 cobalt farah 13 23 fable
lina 13 bruno 39 eli 45 eli 41 jules 5 farah 36
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037732-p1
Display field 1 followed by the sum of fields 2 and 3 for each record.
{print $1,$2+$3}
lina 10 18 amber eli 19 26 ember gus 20 8 birch gus 29 25 cobalt jules 21 21 fable bruno 14 20 birch farah 20 3 cobalt alice 13 13 fable
lina 28 eli 45 gus 28 gus 54 jules 42 bruno 34 farah 23 alice 26
lina 6 7 delta bruno 26 13 fable eli 24 21 indigo eli 11 30 indigo jules 4 1 cobalt farah 13 23 fable
lina 13 bruno 39 eli 45 eli 41 jules 5 farah 36
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037732
qwen/qwen3.7-plus
awkweave-0037733
Print column 1 and pass when column 2 is at least 20; otherwise print fail.
{print $1,($2>=20?"pass":"fail")}
eli 6 eli 23 lina 16 gus 12 bruno 1 gus 9 jules 1 lina 4 chen 21
eli fail eli pass lina fail gus fail bruno fail gus fail jules fail lina fail chen pass
kim 21 eli 21 kim 6 bruno 17 bruno 2 kim 11
kim pass eli pass kim fail bruno fail bruno fail kim fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037733-p1
Output column 1 with 'pass' if column 2 is 20 or greater, otherwise output 'fail'.
{print $1,($2>=20?"pass":"fail")}
eli 6 eli 23 lina 16 gus 12 bruno 1 gus 9 jules 1 lina 4 chen 21
eli fail eli pass lina fail gus fail bruno fail gus fail jules fail lina fail chen pass
kim 21 eli 21 kim 6 bruno 17 bruno 2 kim 11
kim pass eli pass kim fail bruno fail bruno fail kim fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037733
qwen/qwen3.7-plus
awkweave-0037734
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
alice fable 76 chen fable 14 chen grove 85 farah birch 65 dina grove 112 eli ember 72 jules delta 74 hana grove 0
ALICE CHEN CHEN FARAH DINA ELI JULES HANA
farah delta 114 lina fable 32 eli harbor 61 farah amber 35 eli cobalt 24 eli harbor 75 ivan delta 85 hana fable 10
FARAH LINA ELI FARAH ELI ELI IVAN HANA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037734-p1
Transform column 1 to uppercase letters and print exclusively that column.
{print toupper($1)}
alice fable 76 chen fable 14 chen grove 85 farah birch 65 dina grove 112 eli ember 72 jules delta 74 hana grove 0
ALICE CHEN CHEN FARAH DINA ELI JULES HANA
farah delta 114 lina fable 32 eli harbor 61 farah amber 35 eli cobalt 24 eli harbor 75 ivan delta 85 hana fable 10
FARAH LINA ELI FARAH ELI ELI IVAN HANA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037734
qwen/qwen3.7-plus
awkweave-0037735
From column 1, print 4 characters starting at character 1.
{print substr($1,1,4)}
ember 96 amber 36 fable 93 indigo 18 fable 71 harbor 41 delta 18
embe ambe fabl indi fabl harb delt
juniper 75 fable 24 cobalt 119 cobalt 22 delta 33 delta 89 fable 6 amber 11 juniper 116
juni fabl coba coba delt delt fabl ambe juni
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037735-p1
Extract and print the first 4 characters from column 1.
{print substr($1,1,4)}
ember 96 amber 36 fable 93 indigo 18 fable 71 harbor 41 delta 18
embe ambe fabl indi fabl harb delt
juniper 75 fable 24 cobalt 119 cobalt 22 delta 33 delta 89 fable 6 amber 11 juniper 116
juni fabl coba coba delt delt fabl ambe juni
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037735
qwen/qwen3.7-plus
awkweave-0037736
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
juniper_birch 11 fable_birch 9 indigo_amber 37 ember_birch 86 ember_indigo 36 ember_birch 5
juniper birch fable birch indigo amber ember birch ember indigo ember birch
birch_cobalt 87 delta_amber 97 ember_harbor 97 amber_birch 33 indigo_delta 89 juniper_harbor 90 grove_birch 107
birch cobalt delta amber ember harbor amber birch indigo delta juniper harbor grove birch
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037736-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
juniper_birch 11 fable_birch 9 indigo_amber 37 ember_birch 86 ember_indigo 36 ember_birch 5
juniper birch fable birch indigo amber ember birch ember indigo ember birch
birch_cobalt 87 delta_amber 97 ember_harbor 97 amber_birch 33 indigo_delta 89 juniper_harbor 90 grove_birch 107
birch cobalt delta amber ember harbor amber birch indigo delta juniper harbor grove birch
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037736
qwen/qwen3.7-plus
awkweave-0037737
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)}
bruno delta 58 ready kim delta 100 ready hana amber 19 failed dina juniper 90 failed hana juniper 34 active alice cobalt 24 ready lina juniper 110 failed kim fable 82 closed eli cobalt 2 pending bruno delta 9 pending
ready 58 delta bruno ready 100 delta kim failed 19 amber hana failed 90 juniper dina active 34 juniper hana ready 24 cobalt alice failed 110 juniper lina closed 82 fable kim pending 2 cobalt eli pending 9 delta bruno
hana indigo 64 closed farah juniper 94 active hana ember 109 active chen cobalt 13 closed hana fable 81 ready lina indigo 10 paused bruno birch 33 active
closed 64 indigo hana active 94 juniper farah active 109 ember hana closed 13 cobalt chen ready 81 fable hana paused 10 indigo lina active 33 birch bruno
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037737-p1
Reverse the sequence of fields on each line and print the entire line.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
bruno delta 58 ready kim delta 100 ready hana amber 19 failed dina juniper 90 failed hana juniper 34 active alice cobalt 24 ready lina juniper 110 failed kim fable 82 closed eli cobalt 2 pending bruno delta 9 pending
ready 58 delta bruno ready 100 delta kim failed 19 amber hana failed 90 juniper dina active 34 juniper hana ready 24 cobalt alice failed 110 juniper lina closed 82 fable kim pending 2 cobalt eli pending 9 delta bruno
hana indigo 64 closed farah juniper 94 active hana ember 109 active chen cobalt 13 closed hana fable 81 ready lina indigo 10 paused bruno birch 33 active
closed 64 indigo hana active 94 juniper farah active 109 ember hana closed 13 cobalt chen ready 81 fable hana paused 10 indigo lina active 33 birch bruno
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037737
qwen/qwen3.7-plus
awkweave-0037738
Print the number of whitespace-separated fields on each line.
{print NF}
ivan ember 120 ready hana juniper 25 active jules birch 116 pending hana birch 78 pending gus juniper 64 pending ivan fable 72 pending hana cobalt 41 failed
4 4 4 4 4 4 4
jules cobalt 33 active hana juniper 40 active lina grove 58 failed dina fable 101 ready gus harbor 3 active ivan cobalt 63 active jules fable 58 failed dina harbor 118 active dina juniper 109 closed lina indigo 5 pending
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037738-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
ivan ember 120 ready hana juniper 25 active jules birch 116 pending hana birch 78 pending gus juniper 64 pending ivan fable 72 pending hana cobalt 41 failed
4 4 4 4 4 4 4
jules cobalt 33 active hana juniper 40 active lina grove 58 failed dina fable 101 ready gus harbor 3 active ivan cobalt 63 active jules fable 58 failed dina harbor 118 active dina juniper 109 closed lina indigo 5 pending
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037738
qwen/qwen3.7-plus
awkweave-0037739
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
lina alpha 120 dina delta 104 farah beta 87 bruno gamma 20 hana beta 119 chen beta 40 bruno beta 20 lina alpha 2
alpha 2 delta 1 beta 4 gamma 1
alice beta 110 ivan beta 82 ivan delta 114 hana beta 71 jules delta 34 hana beta 71
beta 4 delta 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037739-p1
Tally the number of records for each distinct value in column 2, printing the value and its count in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
lina alpha 120 dina delta 104 farah beta 87 bruno gamma 20 hana beta 119 chen beta 40 bruno beta 20 lina alpha 2
alpha 2 delta 1 beta 4 gamma 1
alice beta 110 ivan beta 82 ivan delta 114 hana beta 71 jules delta 34 hana beta 71
beta 4 delta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037739
qwen/qwen3.7-plus
awkweave-0037740
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]]}
alice beta 22 chen delta 15 jules beta 27 kim beta 26 gus delta 19 eli delta 2 gus beta 21
beta 96 delta 36
lina alpha 9 jules beta 27 bruno beta 27 kim gamma 18 lina beta 11 farah gamma 21 hana alpha 22 kim alpha 9 jules gamma 13
alpha 40 beta 65 gamma 52
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037740-p1
Calculate the sum of column 3 grouped by column 2 categories, displaying results in the 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]]}
alice beta 22 chen delta 15 jules beta 27 kim beta 26 gus delta 19 eli delta 2 gus beta 21
beta 96 delta 36
lina alpha 9 jules beta 27 bruno beta 27 kim gamma 18 lina beta 11 farah gamma 21 hana alpha 22 kim alpha 9 jules gamma 13
alpha 40 beta 65 gamma 52
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037740
qwen/qwen3.7-plus
awkweave-0037741
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
delta birch 29 beta harbor 50 delta harbor 49 alpha delta 27 gamma indigo 18 beta indigo 25 gamma cobalt 5
delta 2 beta 2 gamma 2
gamma ember 77 gamma fable 50 gamma juniper 115 delta delta 36 delta indigo 17 delta juniper 86
gamma 3 delta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037741-p1
List each duplicate value from column 1 along with its frequency, ordered by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
delta birch 29 beta harbor 50 delta harbor 49 alpha delta 27 gamma indigo 18 beta indigo 25 gamma cobalt 5
delta 2 beta 2 gamma 2
gamma ember 77 gamma fable 50 gamma juniper 115 delta delta 36 delta indigo 17 delta juniper 86
gamma 3 delta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037741
qwen/qwen3.7-plus
awkweave-0037742
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 record_id display_name r001 dina 29 ready r002 bruno 11 pending r003 eli 10 ready r004 jules 29 failed r005 hana 23 active r006 gus 6 paused r007 kim 12 pending r008 jules 13 pending
ready pending ready failed active paused pending pending
note score record_id display_name r001 hana 28 ready r002 jules 15 paused r003 chen 5 pending r004 alice 4 active r005 ivan 20 active r006 kim 13 failed
ready paused pending active active failed
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037742-p1
Skip the header row and output the display_name column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
note score record_id display_name r001 dina 29 ready r002 bruno 11 pending r003 eli 10 ready r004 jules 29 failed r005 hana 23 active r006 gus 6 paused r007 kim 12 pending r008 jules 13 pending
ready pending ready failed active paused pending pending
note score record_id display_name r001 hana 28 ready r002 jules 15 paused r003 chen 5 pending r004 alice 4 active r005 ivan 20 active r006 kim 13 failed
ready paused pending active active failed
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037742
qwen/qwen3.7-plus
awkweave-0037743
The first row is a header. Print display_name for data rows whose score is greater than 10.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>10{print $h["display_name"]}
record_id display_name score state r001 kim 29 active r002 chen 9 closed r003 bruno 28 active r004 hana 12 pending r005 eli 8 pending r006 ivan 9 failed r007 kim 18 ready r008 ivan 11 paused
kim bruno hana kim ivan
record_id display_name score state r001 alice 11 failed r002 lina 27 pending r003 kim 26 closed r004 dina 30 closed r005 lina 22 closed r006 jules 6 ready r007 kim 27 ready r008 hana 14 paused r009 alice 10 ready r010 eli 8 failed
alice lina kim dina lina kim hana
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037743-p1
Ignoring the header, print the display_name for rows where the score exceeds 10.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>10{print $h["display_name"]}
record_id display_name score state r001 kim 29 active r002 chen 9 closed r003 bruno 28 active r004 hana 12 pending r005 eli 8 pending r006 ivan 9 failed r007 kim 18 ready r008 ivan 11 paused
kim bruno hana kim ivan
record_id display_name score state r001 alice 11 failed r002 lina 27 pending r003 kim 26 closed r004 dina 30 closed r005 lina 22 closed r006 jules 6 ready r007 kim 27 ready r008 hana 14 paused r009 alice 10 ready r010 eli 8 failed
alice lina kim dina lina kim hana
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037743
qwen/qwen3.7-plus
awkweave-0037744
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
dina 1 ready farah 21 active kim 7 pending jules 6 active alice 15 closed bruno 4 ready bruno 29 failed gus 25 failed gus 13 failed farah 7 closed
ready active pending active closed ready failed failed failed closed
eli 6 closed hana 30 active kim 5 paused eli 19 closed ivan 1 failed farah 24 closed
closed active paused closed failed closed
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037744-p1
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
dina 1 ready farah 21 active kim 7 pending jules 6 active alice 15 closed bruno 4 ready bruno 29 failed gus 25 failed gus 13 failed farah 7 closed
ready active pending active closed ready failed failed failed closed
eli 6 closed hana 30 active kim 5 paused eli 19 closed ivan 1 failed farah 24 closed
closed active paused closed failed closed
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0037744
qwen/qwen3.7-plus
awkweave-0037745
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 23.
BEGIN{FS=OFS=","}$2>23{print $1}
alice,16,ready lina,3,closed farah,30,pending alice,16,paused hana,26,failed alice,21,closed gus,2,closed gus,3,failed kim,10,closed dina,2,paused
farah hana
dina,11,active alice,5,active farah,20,closed gus,6,closed alice,1,active ivan,27,paused
ivan
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037745-p1
For comma-separated input without quoted fields, output the first column if the second column is greater than 23.
BEGIN{FS=OFS=","}$2>23{print $1}
alice,16,ready lina,3,closed farah,30,pending alice,16,paused hana,26,failed alice,21,closed gus,2,closed gus,3,failed kim,10,closed dina,2,paused
farah hana
dina,11,active alice,5,active farah,20,closed gus,6,closed alice,1,active ivan,27,paused
ivan
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037745
qwen/qwen3.7-plus
awkweave-0037746
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
ivan grove 22 gus delta 90 farah ember 25 chen birch 57 dina grove 59 eli juniper 28 ivan delta 2 hana ember 27 farah juniper 7 dina indigo 113
ivan grove 22 gus delta 90 farah ember 25 chen birch 57 dina grove 59 eli juniper 28 ivan delta 2 hana ember 27 farah juniper 7 dina indigo 113
farah birch 110 dina juniper 107 alice juniper 63 eli cobalt 90 dina juniper 102 kim grove 109 jules indigo 54 dina harbor 105
farah birch 110 dina juniper 107 alice juniper 63 eli cobalt 90 dina juniper 102 kim grove 109 jules indigo 54 dina harbor 105
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037746-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
ivan grove 22 gus delta 90 farah ember 25 chen birch 57 dina grove 59 eli juniper 28 ivan delta 2 hana ember 27 farah juniper 7 dina indigo 113
ivan grove 22 gus delta 90 farah ember 25 chen birch 57 dina grove 59 eli juniper 28 ivan delta 2 hana ember 27 farah juniper 7 dina indigo 113
farah birch 110 dina juniper 107 alice juniper 63 eli cobalt 90 dina juniper 102 kim grove 109 jules indigo 54 dina harbor 105
farah birch 110 dina juniper 107 alice juniper 63 eli cobalt 90 dina juniper 102 kim grove 109 jules indigo 54 dina harbor 105
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037746
qwen/qwen3.7-plus
awkweave-0037747
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
alice delta 66 paused gus indigo 95 active jules harbor 56 active jules ember 75 closed gus delta 117 closed hana indigo 21 failed bruno indigo 87 active
jules harbor 56 active
alice cobalt 81 closed eli cobalt 34 closed farah grove 33 closed dina grove 43 closed bruno amber 31 closed eli amber 97 ready kim grove 74 ready ivan indigo 19 pending ivan cobalt 86 paused
alice cobalt 81 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037747-p1
Output the longest line from the input; if multiple lines share the maximum length, select the first one.
{if(length($0)>length(best))best=$0}END{print best}
alice delta 66 paused gus indigo 95 active jules harbor 56 active jules ember 75 closed gus delta 117 closed hana indigo 21 failed bruno indigo 87 active
jules harbor 56 active
alice cobalt 81 closed eli cobalt 34 closed farah grove 33 closed dina grove 43 closed bruno amber 31 closed eli amber 97 ready kim grove 74 ready ivan indigo 19 pending ivan cobalt 86 paused
alice cobalt 81 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037747
qwen/qwen3.7-plus
awkweave-0037748
Print every 4th line starting at line 2 (then line 6, and so on).
NR%4==2
ivan 100 eli 87 lina 36 chen 48 kim 55 kim 52
eli 87 kim 52
dina 81 hana 104 kim 94 bruno 109 dina 44 alice 108 eli 115 chen 66 dina 20 jules 43
hana 104 alice 108 jules 43
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037748-p1
Print every fourth line beginning with line 2 (i.e., lines 2, 6, 10, etc.).
NR%4==2
ivan 100 eli 87 lina 36 chen 48 kim 55 kim 52
eli 87 kim 52
dina 81 hana 104 kim 94 bruno 109 dina 44 alice 108 eli 115 chen 66 dina 20 jules 43
hana 104 alice 108 jules 43
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037748
qwen/qwen3.7-plus
awkweave-0037749
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
gamma cobalt 52 delta fable 93 delta cobalt 7 gamma juniper 26 beta delta 55 delta ember 60
3
gamma juniper 24 alpha harbor 21 alpha juniper 34 gamma ember 79 delta ember 120 gamma harbor 64 beta indigo 51 delta delta 95 beta ember 117
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037749-p1
Calculate the number of unique values in the first column and output only that count.
{if(!seen[$1]++)n++}END{print n+0}
gamma cobalt 52 delta fable 93 delta cobalt 7 gamma juniper 26 beta delta 55 delta ember 60
3
gamma juniper 24 alpha harbor 21 alpha juniper 34 gamma ember 79 delta ember 120 gamma harbor 64 beta indigo 51 delta delta 95 beta ember 117
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037749
qwen/qwen3.7-plus
awkweave-0037750
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}
chen 22 0 bruno 2 23 gus 23 13 bruno 24 4 jules 20 19 bruno 29 25 alice 22 7 eli 11 1 gus 5 8
bruno 0.09 gus 1.77 bruno 6.00 jules 1.05 bruno 1.16 alice 3.14 eli 11.00 gus 0.62
lina 27 0 farah 30 19 alice 5 23 dina 27 17 farah 24 3 jules 28 2 lina 4 19
farah 1.58 alice 0.22 dina 1.59 farah 8.00 jules 14.00 lina 0.21
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037750-p1
For each row, output column 1 and the result of column 2 divided by column 3 formatted to two decimal places, omitting rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
chen 22 0 bruno 2 23 gus 23 13 bruno 24 4 jules 20 19 bruno 29 25 alice 22 7 eli 11 1 gus 5 8
bruno 0.09 gus 1.77 bruno 6.00 jules 1.05 bruno 1.16 alice 3.14 eli 11.00 gus 0.62
lina 27 0 farah 30 19 alice 5 23 dina 27 17 farah 24 3 jules 28 2 lina 4 19
farah 1.58 alice 0.22 dina 1.59 farah 8.00 jules 14.00 lina 0.21
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037750
qwen/qwen3.7-plus
awkweave-0037751
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 indigo 19 gus ember 18 ivan juniper 6 chen ember 9 chen ember 1 hana harbor 30 ivan fable 24 kim grove 26
hana harbor 30 kim grove 26 ivan fable 24
gus delta 12 kim harbor 5 bruno juniper 16 bruno cobalt 29 alice birch 27 chen grove 4 dina amber 22 dina birch 28 ivan fable 17 dina delta 1
bruno cobalt 29 dina birch 28 alice birch 27
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037751-p1
Output the three records with the highest numeric values in column 3, sorted in descending order; maintain original 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 indigo 19 gus ember 18 ivan juniper 6 chen ember 9 chen ember 1 hana harbor 30 ivan fable 24 kim grove 26
hana harbor 30 kim grove 26 ivan fable 24
gus delta 12 kim harbor 5 bruno juniper 16 bruno cobalt 29 alice birch 27 chen grove 4 dina amber 22 dina birch 28 ivan fable 17 dina delta 1
bruno cobalt 29 dina birch 28 alice birch 27
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037751
qwen/qwen3.7-plus
awkweave-0037752
For each line, output fields 2 and 1, in that order.
{print $2, $1}
107 dina 2 pending ready 7 52 hana 35 pending active 9 14 chen 85 paused paused 107 22 dina 61 pending failed 86 60 eli 105 failed paused 62 72 jules 50 closed active 41 86 jules 118 active active 24
dina 107 hana 52 chen 14 dina 22 eli 60 jules 72 jules 86
116 bruno 37 closed active 58 94 hana 109 failed active 23 80 farah 63 pending closed 79 82 kim 103 ready ready 65 114 ivan 54 ready active 70 27 eli 20 ready pending 33 116 farah 25 ready pending 72
bruno 116 hana 94 farah 80 kim 82 ivan 114 eli 27 farah 116
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037752-p1
For each line, print the second field followed by the first field.
{print $2, $1}
107 dina 2 pending ready 7 52 hana 35 pending active 9 14 chen 85 paused paused 107 22 dina 61 pending failed 86 60 eli 105 failed paused 62 72 jules 50 closed active 41 86 jules 118 active active 24
dina 107 hana 52 chen 14 dina 22 eli 60 jules 72 jules 86
116 bruno 37 closed active 58 94 hana 109 failed active 23 80 farah 63 pending closed 79 82 kim 103 ready ready 65 114 ivan 54 ready active 70 27 eli 20 ready pending 33 116 farah 25 ready pending 72
bruno 116 hana 94 farah 80 kim 82 ivan 114 eli 27 farah 116
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037752
qwen/qwen3.7-plus
awkweave-0037753
Print the last field of every input line.
{print $NF}
cobalt ready 72 eli eli failed delta pending 45 dina kim paused delta active 10 kim eli active delta active 76 gus kim active juniper active 0 ivan alice active indigo ready 81 farah jules failed ember paused 17 hana farah active cobalt ready 78 chen farah ready delta active 45 kim hana closed cobalt pending 112 eli ki...
failed paused active active active failed active ready closed active
harbor failed 20 gus eli paused cobalt ready 36 hana lina failed delta paused 34 dina bruno active juniper closed 56 eli gus ready amber ready 33 eli ivan failed cobalt failed 8 jules jules active
paused failed active ready failed active
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037753-p1
Output the final field of every input line.
{print $NF}
cobalt ready 72 eli eli failed delta pending 45 dina kim paused delta active 10 kim eli active delta active 76 gus kim active juniper active 0 ivan alice active indigo ready 81 farah jules failed ember paused 17 hana farah active cobalt ready 78 chen farah ready delta active 45 kim hana closed cobalt pending 112 eli ki...
failed paused active active active failed active ready closed active
harbor failed 20 gus eli paused cobalt ready 36 hana lina failed delta paused 34 dina bruno active juniper closed 56 eli gus ready amber ready 33 eli ivan failed cobalt failed 8 jules jules active
paused failed active ready failed active
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037753
qwen/qwen3.7-plus
awkweave-0037754
Print the complete records where column 1 is at least 71.
$1 >= 71
69 delta cobalt harbor closed 63 grove ember birch ready 40 cobalt indigo delta ready 92 ember birch harbor closed 28 birch amber birch failed 22 birch birch delta active
92 ember birch harbor closed
91 birch fable harbor closed 59 juniper fable grove pending 17 cobalt grove fable paused 111 cobalt cobalt cobalt active 15 amber cobalt cobalt paused 51 delta fable ember paused 34 grove harbor delta failed
91 birch fable harbor closed 111 cobalt cobalt cobalt active
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037754-p1
Output full records where the value in column 1 is greater than or equal to 71.
$1 >= 71
69 delta cobalt harbor closed 63 grove ember birch ready 40 cobalt indigo delta ready 92 ember birch harbor closed 28 birch amber birch failed 22 birch birch delta active
92 ember birch harbor closed
91 birch fable harbor closed 59 juniper fable grove pending 17 cobalt grove fable paused 111 cobalt cobalt cobalt active 15 amber cobalt cobalt paused 51 delta fable ember paused 34 grove harbor delta failed
91 birch fable harbor closed 111 cobalt cobalt cobalt active
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037754
qwen/qwen3.7-plus
awkweave-0037755
Show whole lines whose 1st field is between 10 and 23, inclusive.
$1 >= 10 && $1 <= 23
8 closed pending active 21 failed paused active 30 ready ready paused 27 pending ready closed 5 active active active 30 closed pending pending
21 failed paused active
21 closed active failed 16 pending failed paused 25 failed active failed 17 paused ready paused 14 paused paused paused 7 active ready closed 27 failed pending ready
21 closed active failed 16 pending failed paused 17 paused ready paused 14 paused paused paused
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037755-p1
Display entire lines where the first field falls within the inclusive range of 10 to 23.
$1 >= 10 && $1 <= 23
8 closed pending active 21 failed paused active 30 ready ready paused 27 pending ready closed 5 active active active 30 closed pending pending
21 failed paused active
21 closed active failed 16 pending failed paused 25 failed active failed 17 paused ready paused 14 paused paused paused 7 active ready closed 27 failed pending ready
21 closed active failed 16 pending failed paused 17 paused ready paused 14 paused paused paused
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037755
qwen/qwen3.7-plus
awkweave-0037756
Print column 3 only for rows where column 2 is exactly ready.
$2 == "ready"{print $3}
harbor active dina 39 cobalt paused eli 39 amber active eli 120 indigo paused bruno 107 ember failed chen 1 ember closed farah 17 grove active bruno 19 cobalt pending dina 32 fable failed dina 60 indigo ready chen 13
chen
ember pending kim 87 ember closed alice 8 amber pending kim 20 birch pending dina 120 birch pending kim 6 amber active chen 36 harbor active kim 52 juniper pending lina 96
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037756-p1
Print only the third column for rows where the second column matches 'ready' exactly.
$2 == "ready"{print $3}
harbor active dina 39 cobalt paused eli 39 amber active eli 120 indigo paused bruno 107 ember failed chen 1 ember closed farah 17 grove active bruno 19 cobalt pending dina 32 fable failed dina 60 indigo ready chen 13
chen
ember pending kim 87 ember closed alice 8 amber pending kim 20 birch pending dina 120 birch pending kim 6 amber active chen 36 harbor active kim 52 juniper pending lina 96
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037756
qwen/qwen3.7-plus
awkweave-0037757
Print all fields from lines where field 1 begins with INFO.
$1 ~ /^INFO/
DEBUG 118 ember WARN 96 amber INFO 78 indigo INFO 72 fable DEBUG 106 juniper ERROR 117 fable WARN 40 birch INFO 113 ember
INFO 78 indigo INFO 72 fable INFO 113 ember
ERROR 95 amber WARN 79 cobalt WARN 32 delta DEBUG 81 ember ERROR 67 ember WARN 105 grove DEBUG 34 fable ERROR 72 delta INFO 42 indigo WARN 5 ember
INFO 42 indigo
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037757-p1
Output all fields from lines where the first field starts with the string 'INFO'.
$1 ~ /^INFO/
DEBUG 118 ember WARN 96 amber INFO 78 indigo INFO 72 fable DEBUG 106 juniper ERROR 117 fable WARN 40 birch INFO 113 ember
INFO 78 indigo INFO 72 fable INFO 113 ember
ERROR 95 amber WARN 79 cobalt WARN 32 delta DEBUG 81 ember ERROR 67 ember WARN 105 grove DEBUG 34 fable ERROR 72 delta INFO 42 indigo WARN 5 ember
INFO 42 indigo
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037757
qwen/qwen3.7-plus
awkweave-0037758
Print every line except those containing the exact text birch.
$0 !~ /birch/
amber 114 closed birch 41 ready amber 105 paused amber 3 closed juniper 65 ready amber 108 paused grove 83 closed harbor 26 pending birch 999 active
amber 114 closed amber 105 paused amber 3 closed juniper 65 ready amber 108 paused grove 83 closed harbor 26 pending
harbor 48 ready harbor 113 ready fable 86 active juniper 53 pending cobalt 91 ready harbor 39 active birch 72 failed indigo 94 ready delta 58 pending cobalt 46 closed birch 999 active
harbor 48 ready harbor 113 ready fable 86 active juniper 53 pending cobalt 91 ready harbor 39 active indigo 94 ready delta 58 pending cobalt 46 closed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037758-p1
Print every line that does not contain the exact string 'birch'.
$0 !~ /birch/
amber 114 closed birch 41 ready amber 105 paused amber 3 closed juniper 65 ready amber 108 paused grove 83 closed harbor 26 pending birch 999 active
amber 114 closed amber 105 paused amber 3 closed juniper 65 ready amber 108 paused grove 83 closed harbor 26 pending
harbor 48 ready harbor 113 ready fable 86 active juniper 53 pending cobalt 91 ready harbor 39 active birch 72 failed indigo 94 ready delta 58 pending cobalt 46 closed birch 999 active
harbor 48 ready harbor 113 ready fable 86 active juniper 53 pending cobalt 91 ready harbor 39 active indigo 94 ready delta 58 pending cobalt 46 closed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037758
qwen/qwen3.7-plus
awkweave-0037759
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
farah ember 109 jules grove 115 jules ember 50 lina delta 2 dina grove 7 eli indigo 13 jules ember 29
lina delta 2 dina grove 7 eli indigo 13 jules ember 29
kim harbor 11 hana birch 114 ivan delta 59 gus indigo 104 farah amber 85 gus harbor 50 ivan ember 75 lina delta 33 jules delta 51
gus indigo 104 farah amber 85 gus harbor 50 ivan ember 75
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037759-p1
Output lines 4 through 7, inclusive of both the start and end lines.
NR >= 4 && NR <= 7
farah ember 109 jules grove 115 jules ember 50 lina delta 2 dina grove 7 eli indigo 13 jules ember 29
lina delta 2 dina grove 7 eli indigo 13 jules ember 29
kim harbor 11 hana birch 114 ivan delta 59 gus indigo 104 farah amber 85 gus harbor 50 ivan ember 75 lina delta 33 jules delta 51
gus indigo 104 farah amber 85 gus harbor 50 ivan ember 75
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037759
qwen/qwen3.7-plus
awkweave-0037760
Output only the first 2 records.
NR <= 2
alice 30 birch eli 66 juniper alice 47 ember alice 10 harbor farah 102 grove jules 42 fable alice 120 juniper alice 12 cobalt
alice 30 birch eli 66 juniper
bruno 116 delta dina 57 cobalt eli 38 ember lina 58 cobalt hana 112 amber bruno 85 birch alice 35 grove dina 87 amber
bruno 116 delta dina 57 cobalt
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037760-p1
Display only the first 2 records.
NR <= 2
alice 30 birch eli 66 juniper alice 47 ember alice 10 harbor farah 102 grove jules 42 fable alice 120 juniper alice 12 cobalt
alice 30 birch eli 66 juniper
bruno 116 delta dina 57 cobalt eli 38 ember lina 58 cobalt hana 112 amber bruno 85 birch alice 35 grove dina 87 amber
bruno 116 delta dina 57 cobalt
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037760
qwen/qwen3.7-plus
awkweave-0037761
Skip the first line and print every remaining line unchanged.
NR > 1
gus 53 fable farah 14 grove ivan 7 indigo alice 106 cobalt lina 100 harbor jules 96 grove farah 34 delta gus 88 fable
farah 14 grove ivan 7 indigo alice 106 cobalt lina 100 harbor jules 96 grove farah 34 delta gus 88 fable
ivan 58 juniper gus 5 birch alice 84 ember farah 83 juniper lina 65 juniper hana 77 ember bruno 33 ember kim 110 delta jules 100 juniper
gus 5 birch alice 84 ember farah 83 juniper lina 65 juniper hana 77 ember bruno 33 ember kim 110 delta jules 100 juniper
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037761-p1
Ignore the first line and print all subsequent lines without modification.
NR > 1
gus 53 fable farah 14 grove ivan 7 indigo alice 106 cobalt lina 100 harbor jules 96 grove farah 34 delta gus 88 fable
farah 14 grove ivan 7 indigo alice 106 cobalt lina 100 harbor jules 96 grove farah 34 delta gus 88 fable
ivan 58 juniper gus 5 birch alice 84 ember farah 83 juniper lina 65 juniper hana 77 ember bruno 33 ember kim 110 delta jules 100 juniper
gus 5 birch alice 84 ember farah 83 juniper lina 65 juniper hana 77 ember bruno 33 ember kim 110 delta jules 100 juniper
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037761
qwen/qwen3.7-plus
awkweave-0037762
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
alice active 105 lina paused 78 chen ready 114 eli pending 105 ivan closed 103 jules paused 120 gus closed 85 lina ready 59
1
bruno active 58 dina closed 100 alice pending 111 farah paused 33 gus pending 35 alice ready 15 bruno active 19 bruno active 55
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037762-p1
Count the number of records where column 2 contains 'pending'; output 0 if no such records exist.
$2 == "pending"{n++}END{print n+0}
alice active 105 lina paused 78 chen ready 114 eli pending 105 ivan closed 103 jules paused 120 gus closed 85 lina ready 59
1
bruno active 58 dina closed 100 alice pending 111 farah paused 33 gus pending 35 alice ready 15 bruno active 19 bruno active 55
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037762
qwen/qwen3.7-plus
awkweave-0037763
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
16 alice indigo 9 farah birch 3 alice juniper 23 chen indigo 9 chen cobalt 15 lina cobalt 27 alice fable 9 alice indigo 18 bruno grove
129
27 farah harbor 23 chen indigo 4 farah indigo 7 alice cobalt 12 chen birch 11 bruno ember 14 ivan birch 27 bruno delta
125
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037763-p1
Compute and display the sum of all integer values found in column 1.
{s+=$1}END{print s+0}
16 alice indigo 9 farah birch 3 alice juniper 23 chen indigo 9 chen cobalt 15 lina cobalt 27 alice fable 9 alice indigo 18 bruno grove
129
27 farah harbor 23 chen indigo 4 farah indigo 7 alice cobalt 12 chen birch 11 bruno ember 14 ivan birch 27 bruno delta
125
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037763
qwen/qwen3.7-plus
awkweave-0037764
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
fable 17 kim birch 26 bruno grove 23 chen birch 18 alice juniper 28 dina grove 18 lina
21.67
fable 4 chen juniper 6 eli fable 6 kim birch 12 farah indigo 23 ivan grove 26 kim grove 19 jules birch 30 gus
15.75
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037764-p1
Calculate the average of column 2 and print it rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
fable 17 kim birch 26 bruno grove 23 chen birch 18 alice juniper 28 dina grove 18 lina
21.67
fable 4 chen juniper 6 eli fable 6 kim birch 12 farah indigo 23 ivan grove 26 kim grove 19 jules birch 30 gus
15.75
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037764
qwen/qwen3.7-plus
awkweave-0037765
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
amber 23 dina birch 7 eli amber 14 alice harbor 30 ivan delta 11 dina delta 26 chen
7
delta 14 alice birch 16 chen harbor 18 alice birch 12 hana birch 16 jules grove 9 eli juniper 26 chen fable 19 kim
9
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037765-p1
Identify and print the minimum numeric value present in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
amber 23 dina birch 7 eli amber 14 alice harbor 30 ivan delta 11 dina delta 26 chen
7
delta 14 alice birch 16 chen harbor 18 alice birch 12 hana birch 16 jules grove 9 eli juniper 26 chen fable 19 kim
9
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037765
qwen/qwen3.7-plus
awkweave-0037766
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
18 cobalt alice 6 birch chen 2 harbor lina 3 amber gus 22 birch jules 3 harbor kim 26 harbor alice
26
30 grove chen 20 cobalt dina 12 cobalt kim 18 juniper dina 6 amber kim 14 amber hana 3 amber lina
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037766-p1
Identify and output the maximum number found in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
18 cobalt alice 6 birch chen 2 harbor lina 3 amber gus 22 birch jules 3 harbor kim 26 harbor alice
26
30 grove chen 20 cobalt dina 12 cobalt kim 18 juniper dina 6 amber kim 14 amber hana 3 amber lina
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037766
qwen/qwen3.7-plus
awkweave-0037767
Count all input records and print the total.
END{print NR}
chen 17 bruno 107 gus 57 dina 46 farah 22 lina 118 lina 21
7
kim 35 kim 33 kim 41 lina 20 gus 65 eli 56 chen 28
7
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037767-p1
Calculate the total number of input records and display the count.
END{print NR}
chen 17 bruno 107 gus 57 dina 46 farah 22 lina 118 lina 21
7
kim 35 kim 33 kim 41 lina 20 gus 65 eli 56 chen 28
7
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037767
qwen/qwen3.7-plus
awkweave-0037768
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
lina juniper 90 kim juniper 57 lina juniper 90 lina juniper 118 dina ember 109 hana harbor 118 dina delta 24 gus amber 56
lina juniper 90 kim juniper 57 lina juniper 118 dina ember 109 hana harbor 118 dina delta 24 gus amber 56
lina ember 107 chen harbor 31 alice indigo 72 gus ember 55 bruno cobalt 111 lina grove 21 bruno cobalt 111 chen indigo 115 farah indigo 79 farah birch 92
lina ember 107 chen harbor 31 alice indigo 72 gus ember 55 bruno cobalt 111 lina grove 21 chen indigo 115 farah indigo 79 farah birch 92
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037768-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
lina juniper 90 kim juniper 57 lina juniper 90 lina juniper 118 dina ember 109 hana harbor 118 dina delta 24 gus amber 56
lina juniper 90 kim juniper 57 lina juniper 118 dina ember 109 hana harbor 118 dina delta 24 gus amber 56
lina ember 107 chen harbor 31 alice indigo 72 gus ember 55 bruno cobalt 111 lina grove 21 bruno cobalt 111 chen indigo 115 farah indigo 79 farah birch 92
lina ember 107 chen harbor 31 alice indigo 72 gus ember 55 bruno cobalt 111 lina grove 21 chen indigo 115 farah indigo 79 farah birch 92
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037768
qwen/qwen3.7-plus
awkweave-0037769
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
eli ember 60 alice fable 111 hana delta 108 lina grove 33 kim ember 86 chen harbor 107 eli indigo 50 kim cobalt 23 eli ember 5 chen delta 98
eli ember 60 alice fable 111 hana delta 108 lina grove 33 chen harbor 107 eli indigo 50 kim cobalt 23
gus birch 83 hana indigo 87 hana harbor 73 alice birch 104 farah delta 47 ivan grove 46 gus grove 17 jules fable 106 hana birch 58
gus birch 83 hana indigo 87 hana harbor 73 farah delta 47 ivan grove 46 jules fable 106
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037769-p1
Retain only the initial line for every unique value in the second column, keeping the original order.
!seen[$2]++
eli ember 60 alice fable 111 hana delta 108 lina grove 33 kim ember 86 chen harbor 107 eli indigo 50 kim cobalt 23 eli ember 5 chen delta 98
eli ember 60 alice fable 111 hana delta 108 lina grove 33 chen harbor 107 eli indigo 50 kim cobalt 23
gus birch 83 hana indigo 87 hana harbor 73 alice birch 104 farah delta 47 ivan grove 46 gus grove 17 jules fable 106 hana birch 58
gus birch 83 hana indigo 87 hana harbor 73 farah delta 47 ivan grove 46 jules fable 106
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037769
qwen/qwen3.7-plus
awkweave-0037770
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 1 ember ivan 26 ember chen 25 grove dina 18 grove kim 6 indigo dina 5 indigo hana 18 cobalt kim 17 amber eli 19 harbor
ivan 1 ivan 27 chen 52 dina 70 kim 76 dina 81 hana 99 kim 116 eli 135
farah 29 juniper gus 17 harbor hana 19 harbor eli 26 cobalt eli 23 harbor hana 10 ember eli 19 amber
farah 29 gus 46 hana 65 eli 91 eli 114 hana 124 eli 143
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0037770-p1
Output the first column alongside the cumulative total of the second column for each record, separated by a space.
{s+=$2;print $1,s}
ivan 1 ember ivan 26 ember chen 25 grove dina 18 grove kim 6 indigo dina 5 indigo hana 18 cobalt kim 17 amber eli 19 harbor
ivan 1 ivan 27 chen 52 dina 70 kim 76 dina 81 hana 99 kim 116 eli 135
farah 29 juniper gus 17 harbor hana 19 harbor eli 26 cobalt eli 23 harbor hana 10 ember eli 19 amber
farah 29 gus 46 hana 65 eli 91 eli 114 hana 124 eli 143
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0037770
qwen/qwen3.7-plus
awkweave-0037771
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
kim 14 15 ember ivan 15 29 cobalt dina 30 6 birch eli 19 6 indigo ivan 8 9 ember ivan 12 27 harbor chen 21 14 juniper kim 8 19 indigo
kim 29 ivan 44 dina 36 eli 25 ivan 17 ivan 39 chen 35 kim 27
lina 24 13 ember hana 19 21 grove dina 8 16 harbor gus 26 1 delta farah 15 7 delta farah 14 28 cobalt alice 13 22 cobalt gus 5 14 delta dina 21 12 fable ivan 17 14 harbor
lina 37 hana 40 dina 24 gus 27 farah 22 farah 42 alice 35 gus 19 dina 33 ivan 31
computed_field
1
train
original-grammar
CC-BY-4.0
null
null