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-0021331
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}
eli 30 0 eli 5 1 gus 4 1 ivan 26 9 bruno 4 12 ivan 24 23 ivan 3 21 bruno 26 27 bruno 6 16
eli 5.00 gus 4.00 ivan 2.89 bruno 0.33 ivan 1.04 ivan 0.14 bruno 0.96 bruno 0.38
eli 14 0 dina 26 5 alice 27 22 eli 26 5 jules 4 10 farah 28 13 gus 24 14
dina 5.20 alice 1.23 eli 5.20 jules 0.40 farah 2.15 gus 1.71
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021331-p1
For every row where the third column is not zero, display the first and second columns along with the result of dividing the second by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
eli 30 0 eli 5 1 gus 4 1 ivan 26 9 bruno 4 12 ivan 24 23 ivan 3 21 bruno 26 27 bruno 6 16
eli 5.00 gus 4.00 ivan 2.89 bruno 0.33 ivan 1.04 ivan 0.14 bruno 0.96 bruno 0.38
eli 14 0 dina 26 5 alice 27 22 eli 26 5 jules 4 10 farah 28 13 gus 24 14
dina 5.20 alice 1.23 eli 5.20 jules 0.40 farah 2.15 gus 1.71
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021331
qwen/qwen3.7-plus
awkweave-0021332
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
jules delta 26 eli cobalt 12 eli cobalt 20 chen juniper 14 lina indigo 18 hana juniper 20 hana delta 14 kim juniper 6
jules delta 26 eli cobalt 20 hana juniper 20
kim juniper 23 chen fable 21 lina birch 19 alice ember 12 farah birch 9 dina grove 23
kim juniper 23 dina grove 23 chen fable 21
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021332-p1
Display the top three records based on the numeric value in column 3 in descending order, keeping the original input sequence for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
jules delta 26 eli cobalt 12 eli cobalt 20 chen juniper 14 lina indigo 18 hana juniper 20 hana delta 14 kim juniper 6
jules delta 26 eli cobalt 20 hana juniper 20
kim juniper 23 chen fable 21 lina birch 19 alice ember 12 farah birch 9 dina grove 23
kim juniper 23 dina grove 23 chen fable 21
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021332
qwen/qwen3.7-plus
awkweave-0021333
Select the 3rd and 1st fields in that order.
{print $3, $1}
hana birch 101 ember jules farah juniper 5 harbor lina lina delta 60 ember jules gus amber 106 ember eli farah ember 28 birch bruno farah juniper 113 grove jules farah cobalt 91 juniper alice
101 hana 5 farah 60 lina 106 gus 28 farah 113 farah 91 farah
hana juniper 71 delta lina chen ember 109 cobalt ivan eli amber 84 fable ivan alice birch 60 fable ivan lina birch 90 grove kim alice juniper 22 birch dina ivan ember 85 cobalt chen gus amber 83 grove alice
71 hana 109 chen 84 eli 60 alice 90 lina 22 alice 85 ivan 83 gus
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021333-p1
Extract and print the third field followed by the first field.
{print $3, $1}
hana birch 101 ember jules farah juniper 5 harbor lina lina delta 60 ember jules gus amber 106 ember eli farah ember 28 birch bruno farah juniper 113 grove jules farah cobalt 91 juniper alice
101 hana 5 farah 60 lina 106 gus 28 farah 113 farah 91 farah
hana juniper 71 delta lina chen ember 109 cobalt ivan eli amber 84 fable ivan alice birch 60 fable ivan lina birch 90 grove kim alice juniper 22 birch dina ivan ember 85 cobalt chen gus amber 83 grove alice
71 hana 109 chen 84 eli 60 alice 90 lina 22 alice 85 ivan 83 gus
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021333
qwen/qwen3.7-plus
awkweave-0021334
Print the last field of every input line.
{print $NF}
birch 67 paused amber ember cobalt 106 ready fable fable ember 64 active birch juniper birch 103 closed juniper fable ember 13 closed ember amber delta 38 closed ember harbor grove 31 failed birch harbor
ember fable juniper fable amber harbor harbor
delta 115 failed delta fable delta 70 active fable cobalt harbor 31 closed birch harbor juniper 110 closed delta ember fable 79 closed grove grove harbor 97 pending juniper delta delta 42 paused delta fable
fable cobalt harbor ember grove delta fable
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021334-p1
Output the final field from each line of input.
{print $NF}
birch 67 paused amber ember cobalt 106 ready fable fable ember 64 active birch juniper birch 103 closed juniper fable ember 13 closed ember amber delta 38 closed ember harbor grove 31 failed birch harbor
ember fable juniper fable amber harbor harbor
delta 115 failed delta fable delta 70 active fable cobalt harbor 31 closed birch harbor juniper 110 closed delta ember fable 79 closed grove grove harbor 97 pending juniper delta delta 42 paused delta fable
fable cobalt harbor ember grove delta fable
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021334
qwen/qwen3.7-plus
awkweave-0021335
Print the complete records where column 3 is at least 75.
$3 >= 75
chen ready 70 ember gus failed 97 amber farah pending 28 birch ivan pending 55 birch hana active 62 delta farah paused 112 birch dina active 2 grove kim closed 52 harbor kim active 23 birch
gus failed 97 amber farah paused 112 birch
gus failed 114 birch farah active 118 juniper dina closed 22 ember farah failed 89 juniper hana paused 103 indigo alice closed 40 cobalt dina pending 45 ember farah active 48 birch
gus failed 114 birch farah active 118 juniper farah failed 89 juniper hana paused 103 indigo
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021335-p1
Print full lines where the value in the third column is greater than or equal to 75.
$3 >= 75
chen ready 70 ember gus failed 97 amber farah pending 28 birch ivan pending 55 birch hana active 62 delta farah paused 112 birch dina active 2 grove kim closed 52 harbor kim active 23 birch
gus failed 97 amber farah paused 112 birch
gus failed 114 birch farah active 118 juniper dina closed 22 ember farah failed 89 juniper hana paused 103 indigo alice closed 40 cobalt dina pending 45 ember farah active 48 birch
gus failed 114 birch farah active 118 juniper farah failed 89 juniper hana paused 103 indigo
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021335
qwen/qwen3.7-plus
awkweave-0021336
Show whole lines whose 2nd field is between 6 and 18, inclusive.
$2 >= 6 && $2 <= 18
amber 2 amber harbor indigo 8 indigo cobalt delta 1 harbor harbor amber 6 delta harbor cobalt 12 grove harbor harbor 21 delta birch fable 4 birch cobalt
indigo 8 indigo cobalt amber 6 delta harbor cobalt 12 grove harbor
grove 5 birch fable grove 13 juniper harbor cobalt 20 amber birch fable 21 cobalt juniper fable 8 indigo birch fable 4 juniper ember
grove 13 juniper harbor fable 8 indigo birch
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021336-p1
Display entire lines where the second field falls within the inclusive range of 6 to 18.
$2 >= 6 && $2 <= 18
amber 2 amber harbor indigo 8 indigo cobalt delta 1 harbor harbor amber 6 delta harbor cobalt 12 grove harbor harbor 21 delta birch fable 4 birch cobalt
indigo 8 indigo cobalt amber 6 delta harbor cobalt 12 grove harbor
grove 5 birch fable grove 13 juniper harbor cobalt 20 amber birch fable 21 cobalt juniper fable 8 indigo birch fable 4 juniper ember
grove 13 juniper harbor fable 8 indigo birch
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021336
qwen/qwen3.7-plus
awkweave-0021337
Print column 1 only for rows where column 2 is exactly paused.
$2 == "paused"{print $1}
ivan active grove 15 ivan closed grove 87 bruno ready grove 16 chen active juniper 1 jules paused cobalt 72 dina pending fable 102
jules
alice failed cobalt 30 dina closed grove 98 farah failed birch 59 eli ready cobalt 76 kim active amber 54 jules active birch 42 chen pending birch 107 bruno failed harbor 61
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021337-p1
Print only the first column for rows where the second column matches the exact string 'paused'.
$2 == "paused"{print $1}
ivan active grove 15 ivan closed grove 87 bruno ready grove 16 chen active juniper 1 jules paused cobalt 72 dina pending fable 102
jules
alice failed cobalt 30 dina closed grove 98 farah failed birch 59 eli ready cobalt 76 kim active amber 54 jules active birch 42 chen pending birch 107 bruno failed harbor 61
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021337
qwen/qwen3.7-plus
awkweave-0021338
Print all fields from lines where field 2 begins with WARN.
$2 ~ /^WARN/
grove DEBUG 109 birch WARN 112 ember ERROR 35 cobalt DEBUG 19 fable WARN 24 fable INFO 50
birch WARN 112 fable WARN 24
fable WARN 109 grove WARN 45 delta DEBUG 105 indigo WARN 3 harbor WARN 91 cobalt DEBUG 50 grove DEBUG 8
fable WARN 109 grove WARN 45 indigo WARN 3 harbor WARN 91
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021338-p1
Output all fields from lines where the second field starts with the prefix 'WARN'.
$2 ~ /^WARN/
grove DEBUG 109 birch WARN 112 ember ERROR 35 cobalt DEBUG 19 fable WARN 24 fable INFO 50
birch WARN 112 fable WARN 24
fable WARN 109 grove WARN 45 delta DEBUG 105 indigo WARN 3 harbor WARN 91 cobalt DEBUG 50 grove DEBUG 8
fable WARN 109 grove WARN 45 indigo WARN 3 harbor WARN 91
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021338
qwen/qwen3.7-plus
awkweave-0021339
Print every line except those containing the exact text delta.
$0 !~ /delta/
fable 55 pending harbor 24 paused harbor 5 failed harbor 117 pending cobalt 29 paused fable 1 closed ember 74 failed delta 999 active
fable 55 pending harbor 24 paused harbor 5 failed harbor 117 pending cobalt 29 paused fable 1 closed ember 74 failed
ember 110 ready grove 77 ready harbor 69 active ember 14 active amber 43 pending fable 26 closed delta 999 active
ember 110 ready grove 77 ready harbor 69 active ember 14 active amber 43 pending fable 26 closed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021339-p1
Print every line that does not contain the exact string 'delta'.
$0 !~ /delta/
fable 55 pending harbor 24 paused harbor 5 failed harbor 117 pending cobalt 29 paused fable 1 closed ember 74 failed delta 999 active
fable 55 pending harbor 24 paused harbor 5 failed harbor 117 pending cobalt 29 paused fable 1 closed ember 74 failed
ember 110 ready grove 77 ready harbor 69 active ember 14 active amber 43 pending fable 26 closed delta 999 active
ember 110 ready grove 77 ready harbor 69 active ember 14 active amber 43 pending fable 26 closed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021339
qwen/qwen3.7-plus
awkweave-0021340
Print lines 4 through 5, including both endpoints.
NR >= 4 && NR <= 5
lina fable 93 ivan grove 119 gus harbor 98 kim fable 70 eli harbor 26 dina amber 7 eli cobalt 83
kim fable 70 eli harbor 26
dina indigo 13 alice delta 102 ivan grove 89 eli indigo 5 farah fable 108 gus indigo 51
eli indigo 5 farah fable 108
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021340-p1
Output lines 4 through 5, inclusive.
NR >= 4 && NR <= 5
lina fable 93 ivan grove 119 gus harbor 98 kim fable 70 eli harbor 26 dina amber 7 eli cobalt 83
kim fable 70 eli harbor 26
dina indigo 13 alice delta 102 ivan grove 89 eli indigo 5 farah fable 108 gus indigo 51
eli indigo 5 farah fable 108
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021340
qwen/qwen3.7-plus
awkweave-0021341
Output only the first 3 records.
NR <= 3
hana 42 juniper kim 42 delta alice 88 fable lina 83 delta alice 45 delta dina 8 ember
hana 42 juniper kim 42 delta alice 88 fable
eli 58 fable dina 31 fable kim 13 ember kim 99 cobalt lina 111 amber eli 71 amber hana 10 birch kim 46 harbor
eli 58 fable dina 31 fable kim 13 ember
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021341-p1
Print only the first 3 records from the input.
NR <= 3
hana 42 juniper kim 42 delta alice 88 fable lina 83 delta alice 45 delta dina 8 ember
hana 42 juniper kim 42 delta alice 88 fable
eli 58 fable dina 31 fable kim 13 ember kim 99 cobalt lina 111 amber eli 71 amber hana 10 birch kim 46 harbor
eli 58 fable dina 31 fable kim 13 ember
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021341
qwen/qwen3.7-plus
awkweave-0021342
Skip the first line and print every remaining line unchanged.
NR > 1
chen 58 fable alice 55 harbor eli 30 birch chen 42 juniper hana 73 juniper lina 102 ember chen 11 cobalt ivan 88 indigo dina 67 cobalt
alice 55 harbor eli 30 birch chen 42 juniper hana 73 juniper lina 102 ember chen 11 cobalt ivan 88 indigo dina 67 cobalt
kim 87 birch lina 42 cobalt farah 14 grove eli 37 amber dina 101 amber jules 120 harbor ivan 82 grove bruno 35 cobalt hana 96 amber
lina 42 cobalt farah 14 grove eli 37 amber dina 101 amber jules 120 harbor ivan 82 grove bruno 35 cobalt hana 96 amber
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021342-p1
Omit the initial line and output all subsequent lines exactly as they appear.
NR > 1
chen 58 fable alice 55 harbor eli 30 birch chen 42 juniper hana 73 juniper lina 102 ember chen 11 cobalt ivan 88 indigo dina 67 cobalt
alice 55 harbor eli 30 birch chen 42 juniper hana 73 juniper lina 102 ember chen 11 cobalt ivan 88 indigo dina 67 cobalt
kim 87 birch lina 42 cobalt farah 14 grove eli 37 amber dina 101 amber jules 120 harbor ivan 82 grove bruno 35 cobalt hana 96 amber
lina 42 cobalt farah 14 grove eli 37 amber dina 101 amber jules 120 harbor ivan 82 grove bruno 35 cobalt hana 96 amber
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021342
qwen/qwen3.7-plus
awkweave-0021343
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
farah pending 54 jules active 20 kim pending 108 dina pending 6 farah ready 109 gus closed 65 dina failed 107 hana paused 63
1
alice closed 59 hana ready 106 lina closed 114 jules closed 102 lina failed 49 bruno ready 7 dina ready 46 alice ready 113 chen paused 1 dina pending 27
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021343-p1
Tally the number of entries marked as failed in the second column, outputting 0 if the count is zero.
$2 == "failed"{n++}END{print n+0}
farah pending 54 jules active 20 kim pending 108 dina pending 6 farah ready 109 gus closed 65 dina failed 107 hana paused 63
1
alice closed 59 hana ready 106 lina closed 114 jules closed 102 lina failed 49 bruno ready 7 dina ready 46 alice ready 113 chen paused 1 dina pending 27
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021343
qwen/qwen3.7-plus
awkweave-0021344
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
19 lina delta 4 bruno grove 29 dina harbor 8 alice fable 24 dina juniper 13 chen harbor
97
7 jules cobalt 6 gus amber 26 hana ember 21 gus delta 28 jules ember 13 gus cobalt 1 hana ember
102
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021344-p1
Compute and display the total sum of integer values found in the first column.
{s+=$1}END{print s+0}
19 lina delta 4 bruno grove 29 dina harbor 8 alice fable 24 dina juniper 13 chen harbor
97
7 jules cobalt 6 gus amber 26 hana ember 21 gus delta 28 jules ember 13 gus cobalt 1 hana ember
102
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021344
qwen/qwen3.7-plus
awkweave-0021345
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
dina 26 birch alice 21 amber farah 8 grove hana 22 cobalt eli 1 juniper jules 11 grove lina 21 fable chen 13 juniper bruno 8 birch farah 15 amber
14.60
lina 30 cobalt eli 10 harbor jules 27 ember alice 2 grove lina 13 fable eli 4 harbor farah 21 fable
15.29
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021345-p1
Output the average of the values in column 2, formatted to precisely two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
dina 26 birch alice 21 amber farah 8 grove hana 22 cobalt eli 1 juniper jules 11 grove lina 21 fable chen 13 juniper bruno 8 birch farah 15 amber
14.60
lina 30 cobalt eli 10 harbor jules 27 ember alice 2 grove lina 13 fable eli 4 harbor farah 21 fable
15.29
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021345
qwen/qwen3.7-plus
awkweave-0021346
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
grove farah 11 amber ivan 27 indigo gus 19 ember gus 2 delta eli 21 delta farah 4 harbor chen 24 indigo jules 14
2
ember ivan 1 grove farah 27 birch alice 19 delta eli 20 cobalt dina 18 harbor kim 12 cobalt lina 12 delta gus 8 juniper ivan 13
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021346-p1
Identify and display the minimum numeric value present in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
grove farah 11 amber ivan 27 indigo gus 19 ember gus 2 delta eli 21 delta farah 4 harbor chen 24 indigo jules 14
2
ember ivan 1 grove farah 27 birch alice 19 delta eli 20 cobalt dina 18 harbor kim 12 cobalt lina 12 delta gus 8 juniper ivan 13
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021346
qwen/qwen3.7-plus
awkweave-0021347
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
13 indigo alice 28 harbor farah 9 juniper dina 7 cobalt lina 30 juniper jules 7 amber alice 10 delta lina
30
15 cobalt dina 29 juniper ivan 22 fable ivan 17 grove dina 6 cobalt alice 25 fable dina
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021347-p1
Identify and display the maximum numeric value present in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
13 indigo alice 28 harbor farah 9 juniper dina 7 cobalt lina 30 juniper jules 7 amber alice 10 delta lina
30
15 cobalt dina 29 juniper ivan 22 fable ivan 17 grove dina 6 cobalt alice 25 fable dina
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021347
qwen/qwen3.7-plus
awkweave-0021348
Count all input records and print the total.
END{print NR}
gus 57 bruno 105 farah 113 lina 110 eli 117 ivan 26 chen 118 bruno 9 ivan 35 eli 71
10
kim 17 gus 65 dina 36 alice 43 jules 46 lina 7 bruno 14 lina 59
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021348-p1
Count the total number of input records and print the result.
END{print NR}
gus 57 bruno 105 farah 113 lina 110 eli 117 ivan 26 chen 118 bruno 9 ivan 35 eli 71
10
kim 17 gus 65 dina 36 alice 43 jules 46 lina 7 bruno 14 lina 59
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021348
qwen/qwen3.7-plus
awkweave-0021349
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
ivan delta 112 lina amber 28 chen cobalt 70 kim indigo 102 dina indigo 105 hana fable 29 dina ember 61 farah juniper 3 alice delta 106 chen cobalt 70
ivan delta 112 lina amber 28 chen cobalt 70 kim indigo 102 dina indigo 105 hana fable 29 dina ember 61 farah juniper 3 alice delta 106
kim cobalt 53 chen juniper 1 chen juniper 1 jules birch 90 gus fable 4 kim birch 119 ivan indigo 54 dina delta 89
kim cobalt 53 chen juniper 1 jules birch 90 gus fable 4 kim birch 119 ivan indigo 54 dina delta 89
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021349-p1
Eliminate exact duplicate lines while maintaining the original sequence and keeping the first instance of each.
!seen[$0]++
ivan delta 112 lina amber 28 chen cobalt 70 kim indigo 102 dina indigo 105 hana fable 29 dina ember 61 farah juniper 3 alice delta 106 chen cobalt 70
ivan delta 112 lina amber 28 chen cobalt 70 kim indigo 102 dina indigo 105 hana fable 29 dina ember 61 farah juniper 3 alice delta 106
kim cobalt 53 chen juniper 1 chen juniper 1 jules birch 90 gus fable 4 kim birch 119 ivan indigo 54 dina delta 89
kim cobalt 53 chen juniper 1 jules birch 90 gus fable 4 kim birch 119 ivan indigo 54 dina delta 89
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021349
qwen/qwen3.7-plus
awkweave-0021350
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
hana birch 95 alice amber 103 gus harbor 62 hana cobalt 60 alice harbor 30 kim harbor 113 bruno juniper 65 farah grove 13 gus indigo 28 farah grove 25
hana birch 95 alice amber 103 gus harbor 62 kim harbor 113 bruno juniper 65 farah grove 13
alice birch 16 alice amber 54 ivan indigo 0 chen indigo 55 lina juniper 30 ivan grove 17 hana fable 91 jules harbor 8 ivan delta 65
alice birch 16 ivan indigo 0 chen indigo 55 lina juniper 30 hana fable 91 jules harbor 8
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021350-p1
Retain only the first occurrence for every unique value in column 1, preserving the original input order.
!seen[$1]++
hana birch 95 alice amber 103 gus harbor 62 hana cobalt 60 alice harbor 30 kim harbor 113 bruno juniper 65 farah grove 13 gus indigo 28 farah grove 25
hana birch 95 alice amber 103 gus harbor 62 kim harbor 113 bruno juniper 65 farah grove 13
alice birch 16 alice amber 54 ivan indigo 0 chen indigo 55 lina juniper 30 ivan grove 17 hana fable 91 jules harbor 8 ivan delta 65
alice birch 16 ivan indigo 0 chen indigo 55 lina juniper 30 hana fable 91 jules harbor 8
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021350
qwen/qwen3.7-plus
awkweave-0021351
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
hana 2 grove chen 14 ember bruno 21 cobalt kim 28 cobalt jules 9 delta farah 26 amber jules 14 amber
hana 2 chen 16 bruno 37 kim 65 jules 74 farah 100 jules 114
eli 22 indigo farah 18 juniper jules 27 indigo hana 19 fable farah 13 cobalt alice 14 fable
eli 22 farah 40 jules 67 hana 86 farah 99 alice 113
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021351-p1
For each entry, output the value from column 1 alongside the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
hana 2 grove chen 14 ember bruno 21 cobalt kim 28 cobalt jules 9 delta farah 26 amber jules 14 amber
hana 2 chen 16 bruno 37 kim 65 jules 74 farah 100 jules 114
eli 22 indigo farah 18 juniper jules 27 indigo hana 19 fable farah 13 cobalt alice 14 fable
eli 22 farah 40 jules 67 hana 86 farah 99 alice 113
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021351
qwen/qwen3.7-plus
awkweave-0021352
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
dina 8 8 delta kim 27 4 birch farah 14 12 grove jules 10 24 juniper bruno 19 22 juniper kim 22 20 cobalt gus 29 15 amber
dina 16 kim 31 farah 26 jules 34 bruno 41 kim 42 gus 44
hana 19 25 cobalt alice 13 28 indigo farah 14 16 grove dina 15 2 juniper alice 20 21 grove kim 16 22 indigo jules 8 8 delta alice 13 19 juniper farah 4 11 ember alice 4 30 amber
hana 44 alice 41 farah 30 dina 17 alice 41 kim 38 jules 16 alice 32 farah 15 alice 34
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021352-p1
For each row, output the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
dina 8 8 delta kim 27 4 birch farah 14 12 grove jules 10 24 juniper bruno 19 22 juniper kim 22 20 cobalt gus 29 15 amber
dina 16 kim 31 farah 26 jules 34 bruno 41 kim 42 gus 44
hana 19 25 cobalt alice 13 28 indigo farah 14 16 grove dina 15 2 juniper alice 20 21 grove kim 16 22 indigo jules 8 8 delta alice 13 19 juniper farah 4 11 ember alice 4 30 amber
hana 44 alice 41 farah 30 dina 17 alice 41 kim 38 jules 16 alice 32 farah 15 alice 34
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021352
qwen/qwen3.7-plus
awkweave-0021353
Print column 1 and pass when column 2 is at least 27; otherwise print fail.
{print $1,($2>=27?"pass":"fail")}
hana 16 hana 10 kim 1 bruno 24 eli 30 dina 20
hana fail hana fail kim fail bruno fail eli pass dina fail
farah 29 dina 24 hana 24 gus 22 dina 6 gus 29 jules 22 alice 5
farah pass dina fail hana fail gus fail dina fail gus pass jules fail alice fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021353-p1
Output the value from column 1 followed by 'pass' if column 2 is 27 or greater, otherwise output 'fail'.
{print $1,($2>=27?"pass":"fail")}
hana 16 hana 10 kim 1 bruno 24 eli 30 dina 20
hana fail hana fail kim fail bruno fail eli pass dina fail
farah 29 dina 24 hana 24 gus 22 dina 6 gus 29 jules 22 alice 5
farah pass dina fail hana fail gus fail dina fail gus pass jules fail alice fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021353
qwen/qwen3.7-plus
awkweave-0021354
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
gus cobalt 117 dina grove 21 dina harbor 85 farah birch 28 farah ember 28 lina harbor 35 jules cobalt 64 kim delta 63
COBALT GROVE HARBOR BIRCH EMBER HARBOR COBALT DELTA
bruno grove 13 hana harbor 49 gus amber 48 hana juniper 68 kim fable 120 farah grove 113 gus delta 85 dina juniper 92
GROVE HARBOR AMBER JUNIPER FABLE GROVE DELTA JUNIPER
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021354-p1
Transform the second field to uppercase and output only that field.
{print toupper($2)}
gus cobalt 117 dina grove 21 dina harbor 85 farah birch 28 farah ember 28 lina harbor 35 jules cobalt 64 kim delta 63
COBALT GROVE HARBOR BIRCH EMBER HARBOR COBALT DELTA
bruno grove 13 hana harbor 49 gus amber 48 hana juniper 68 kim fable 120 farah grove 113 gus delta 85 dina juniper 92
GROVE HARBOR AMBER JUNIPER FABLE GROVE DELTA JUNIPER
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021354
qwen/qwen3.7-plus
awkweave-0021355
From column 1, print 2 characters starting at character 2.
{print substr($1,2,2)}
cobalt 21 cobalt 113 fable 111 amber 106 harbor 86 delta 45
ob ob ab mb ar el
birch 17 juniper 84 cobalt 91 cobalt 10 birch 74 birch 50
ir un ob ob ir ir
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021355-p1
Extract a substring of length 2 starting at index 2 from the first field and print it.
{print substr($1,2,2)}
cobalt 21 cobalt 113 fable 111 amber 106 harbor 86 delta 45
ob ob ab mb ar el
birch 17 juniper 84 cobalt 91 cobalt 10 birch 74 birch 50
ir un ob ob ir ir
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021355
qwen/qwen3.7-plus
awkweave-0021356
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
birch_juniper 51 grove_birch 46 ember_grove 103 harbor_birch 69 birch_grove 101 birch_birch 14 fable_cobalt 105 juniper_fable 6 cobalt_cobalt 43
birch juniper grove birch ember grove harbor birch birch grove birch birch fable cobalt juniper fable cobalt cobalt
fable_birch 60 ember_birch 84 harbor_cobalt 79 ember_juniper 7 juniper_ember 118 ember_delta 73 grove_birch 10
fable birch ember birch harbor cobalt ember juniper juniper ember ember delta grove birch
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021356-p1
Substitute all underscores with spaces in the first field and display the modified values.
{gsub(/_/," ",$1);print $1}
birch_juniper 51 grove_birch 46 ember_grove 103 harbor_birch 69 birch_grove 101 birch_birch 14 fable_cobalt 105 juniper_fable 6 cobalt_cobalt 43
birch juniper grove birch ember grove harbor birch birch grove birch birch fable cobalt juniper fable cobalt cobalt
fable_birch 60 ember_birch 84 harbor_cobalt 79 ember_juniper 7 juniper_ember 118 ember_delta 73 grove_birch 10
fable birch ember birch harbor cobalt ember juniper juniper ember ember delta grove birch
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021356
qwen/qwen3.7-plus
awkweave-0021357
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)}
chen delta 21 ready bruno amber 28 active jules amber 70 ready chen juniper 115 paused alice cobalt 12 ready farah harbor 41 active dina cobalt 59 paused
ready 21 delta chen active 28 amber bruno ready 70 amber jules paused 115 juniper chen ready 12 cobalt alice active 41 harbor farah paused 59 cobalt dina
bruno ember 37 pending eli delta 84 failed kim cobalt 101 active eli birch 32 paused kim juniper 26 active bruno harbor 46 pending gus amber 102 closed
pending 37 ember bruno failed 84 delta eli active 101 cobalt kim paused 32 birch eli active 26 juniper kim pending 46 harbor bruno closed 102 amber gus
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021357-p1
Reverse the sequence of fields for each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
chen delta 21 ready bruno amber 28 active jules amber 70 ready chen juniper 115 paused alice cobalt 12 ready farah harbor 41 active dina cobalt 59 paused
ready 21 delta chen active 28 amber bruno ready 70 amber jules paused 115 juniper chen ready 12 cobalt alice active 41 harbor farah paused 59 cobalt dina
bruno ember 37 pending eli delta 84 failed kim cobalt 101 active eli birch 32 paused kim juniper 26 active bruno harbor 46 pending gus amber 102 closed
pending 37 ember bruno failed 84 delta eli active 101 cobalt kim paused 32 birch eli active 26 juniper kim pending 46 harbor bruno closed 102 amber gus
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021357
qwen/qwen3.7-plus
awkweave-0021358
Print the number of whitespace-separated fields on each line.
{print NF}
bruno indigo 11 closed chen cobalt 68 pending farah harbor 84 active jules indigo 32 failed alice grove 89 failed alice fable 55 pending ivan ember 19 ready kim delta 47 ready hana birch 36 ready
4 4 4 4 4 4 4 4 4
hana juniper 109 failed lina harbor 25 paused jules birch 47 ready lina indigo 29 paused dina juniper 116 closed chen juniper 52 active hana harbor 82 ready bruno indigo 31 active
4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021358-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
bruno indigo 11 closed chen cobalt 68 pending farah harbor 84 active jules indigo 32 failed alice grove 89 failed alice fable 55 pending ivan ember 19 ready kim delta 47 ready hana birch 36 ready
4 4 4 4 4 4 4 4 4
hana juniper 109 failed lina harbor 25 paused jules birch 47 ready lina indigo 29 paused dina juniper 116 closed chen juniper 52 active hana harbor 82 ready bruno indigo 31 active
4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021358
qwen/qwen3.7-plus
awkweave-0021359
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 delta 102 ivan gamma 93 gus beta 25 alice beta 119 farah alpha 85 lina gamma 59 kim gamma 91 dina delta 119
delta 2 gamma 3 beta 2 alpha 1
hana gamma 83 eli alpha 88 bruno beta 89 farah gamma 109 chen alpha 64 kim delta 106 dina gamma 20 jules gamma 7
gamma 4 alpha 2 beta 1 delta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021359-p1
Tally the occurrences of each unique value in the second field and list each value with its count, maintaining the order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
eli delta 102 ivan gamma 93 gus beta 25 alice beta 119 farah alpha 85 lina gamma 59 kim gamma 91 dina delta 119
delta 2 gamma 3 beta 2 alpha 1
hana gamma 83 eli alpha 88 bruno beta 89 farah gamma 109 chen alpha 64 kim delta 106 dina gamma 20 jules gamma 7
gamma 4 alpha 2 beta 1 delta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021359
qwen/qwen3.7-plus
awkweave-0021360
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]]}
farah gamma 2 lina beta 18 lina delta 8 eli beta 17 jules alpha 2 eli alpha 3 dina alpha 14 farah delta 29 chen beta 11
gamma 2 beta 46 delta 37 alpha 19
dina beta 4 dina beta 18 lina delta 7 jules beta 29 ivan beta 14 lina alpha 20 farah beta 10 farah alpha 11 eli delta 26 lina delta 18
beta 75 delta 51 alpha 31
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021360-p1
Calculate the sum of the third field grouped by the second field, presenting the results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
farah gamma 2 lina beta 18 lina delta 8 eli beta 17 jules alpha 2 eli alpha 3 dina alpha 14 farah delta 29 chen beta 11
gamma 2 beta 46 delta 37 alpha 19
dina beta 4 dina beta 18 lina delta 7 jules beta 29 ivan beta 14 lina alpha 20 farah beta 10 farah alpha 11 eli delta 26 lina delta 18
beta 75 delta 51 alpha 31
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021360
qwen/qwen3.7-plus
awkweave-0021361
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 amber 45 alpha indigo 104 delta harbor 99 delta delta 22 delta fable 35 gamma amber 115
alpha 2 delta 3
beta ember 49 gamma ember 75 gamma fable 65 gamma birch 114 alpha indigo 17 delta juniper 84 beta grove 47 delta juniper 21 alpha indigo 75 alpha cobalt 110
beta 2 gamma 3 alpha 3 delta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021361-p1
List each duplicate value from the first field along with its frequency, ordered by first occurrence.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
alpha amber 45 alpha indigo 104 delta harbor 99 delta delta 22 delta fable 35 gamma amber 115
alpha 2 delta 3
beta ember 49 gamma ember 75 gamma fable 65 gamma birch 114 alpha indigo 17 delta juniper 84 beta grove 47 delta juniper 21 alpha indigo 75 alpha cobalt 110
beta 2 gamma 3 alpha 3 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021361
qwen/qwen3.7-plus
awkweave-0021362
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"]}
region record_id display_name score r001 dina 1 failed r002 bruno 10 ready r003 hana 19 pending r004 ivan 5 active r005 farah 15 failed r006 ivan 19 ready r007 farah 3 active r008 gus 9 paused r009 chen 5 closed r010 bruno 15 paused
1 10 19 5 15 19 3 9 5 15
region record_id display_name score r001 gus 25 pending r002 eli 24 pending r003 lina 10 paused r004 dina 2 active r005 gus 8 pending r006 gus 18 ready r007 farah 10 pending
25 24 10 2 8 18 10
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021362-p1
Treating the initial row as a header, output the 'display_name' column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
region record_id display_name score r001 dina 1 failed r002 bruno 10 ready r003 hana 19 pending r004 ivan 5 active r005 farah 15 failed r006 ivan 19 ready r007 farah 3 active r008 gus 9 paused r009 chen 5 closed r010 bruno 15 paused
1 10 19 5 15 19 3 9 5 15
region record_id display_name score r001 gus 25 pending r002 eli 24 pending r003 lina 10 paused r004 dina 2 active r005 gus 8 pending r006 gus 18 ready r007 farah 10 pending
25 24 10 2 8 18 10
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021362
qwen/qwen3.7-plus
awkweave-0021363
The first row is a header. Print display_name for data rows whose score is greater than 18.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]}
record_id display_name score state r001 ivan 17 paused r002 jules 21 ready r003 jules 18 closed r004 hana 12 closed r005 lina 3 paused r006 jules 23 paused r007 gus 26 failed
jules jules gus
record_id display_name score state r001 chen 18 paused r002 lina 7 pending r003 kim 28 failed r004 farah 2 failed r005 kim 30 closed r006 dina 24 failed r007 lina 29 ready r008 lina 16 paused r009 ivan 6 failed
kim kim dina lina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021363-p1
With the first row as a header, output the 'display_name' for data rows where the 'score' is strictly greater than 18.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]}
record_id display_name score state r001 ivan 17 paused r002 jules 21 ready r003 jules 18 closed r004 hana 12 closed r005 lina 3 paused r006 jules 23 paused r007 gus 26 failed
jules jules gus
record_id display_name score state r001 chen 18 paused r002 lina 7 pending r003 kim 28 failed r004 farah 2 failed r005 kim 30 closed r006 dina 24 failed r007 lina 29 ready r008 lina 16 paused r009 ivan 6 failed
kim kim dina lina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021363
qwen/qwen3.7-plus
awkweave-0021364
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
dina 20 active alice 5 active bruno 20 failed lina 1 pending dina 14 failed eli 17 closed gus 2 paused bruno 14 closed lina 20 pending kim 25 active
20 5 20 1 14 17 2 14 20 25
kim 15 paused kim 28 failed chen 14 closed chen 24 ready bruno 19 ready ivan 18 paused alice 18 paused
15 28 14 24 19 18 18
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021364-p1
Given tab-separated input, output the second field from every record.
BEGIN{FS=OFS="\t"}{print $2}
dina 20 active alice 5 active bruno 20 failed lina 1 pending dina 14 failed eli 17 closed gus 2 paused bruno 14 closed lina 20 pending kim 25 active
20 5 20 1 14 17 2 14 20 25
kim 15 paused kim 28 failed chen 14 closed chen 24 ready bruno 19 ready ivan 18 paused alice 18 paused
15 28 14 24 19 18 18
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021364
qwen/qwen3.7-plus
awkweave-0021365
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 15.
BEGIN{FS=OFS=","}$2>15{print $1}
lina,11,pending chen,20,paused hana,27,ready gus,28,ready lina,13,pending chen,10,closed gus,4,closed
chen hana gus
farah,24,active hana,24,active lina,28,ready ivan,16,failed lina,8,failed bruno,19,ready dina,25,closed farah,16,paused
farah hana lina ivan bruno dina farah
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021365-p1
For simple comma-separated input without quoted commas, output the first field if the second field is greater than 15.
BEGIN{FS=OFS=","}$2>15{print $1}
lina,11,pending chen,20,paused hana,27,ready gus,28,ready lina,13,pending chen,10,closed gus,4,closed
chen hana gus
farah,24,active hana,24,active lina,28,ready ivan,16,failed lina,8,failed bruno,19,ready dina,25,closed farah,16,paused
farah hana lina ivan bruno dina farah
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021365
qwen/qwen3.7-plus
awkweave-0021366
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
gus amber 51 ivan indigo 13 hana fable 119 dina harbor 31 alice grove 81 ivan amber 79 bruno birch 100
gus amber 51 ivan indigo 13 hana fable 119 dina harbor 31 alice grove 81 ivan amber 79 bruno birch 100
farah cobalt 85 alice grove 74 chen indigo 89 bruno delta 17 lina birch 16 dina grove 3 lina fable 49 alice indigo 88 eli cobalt 112
farah cobalt 85 alice grove 74 chen indigo 89 bruno delta 17 lina birch 16 dina grove 3 lina fable 49 alice indigo 88 eli cobalt 112
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021366-p1
Remove leading and trailing whitespace, then replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
gus amber 51 ivan indigo 13 hana fable 119 dina harbor 31 alice grove 81 ivan amber 79 bruno birch 100
gus amber 51 ivan indigo 13 hana fable 119 dina harbor 31 alice grove 81 ivan amber 79 bruno birch 100
farah cobalt 85 alice grove 74 chen indigo 89 bruno delta 17 lina birch 16 dina grove 3 lina fable 49 alice indigo 88 eli cobalt 112
farah cobalt 85 alice grove 74 chen indigo 89 bruno delta 17 lina birch 16 dina grove 3 lina fable 49 alice indigo 88 eli cobalt 112
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021366
qwen/qwen3.7-plus
awkweave-0021367
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
kim indigo 39 failed bruno amber 119 ready ivan fable 66 paused dina fable 101 ready farah ember 118 closed gus juniper 61 active kim fable 17 ready kim fable 20 paused lina grove 21 active jules cobalt 63 paused
farah ember 118 closed
chen birch 63 failed alice fable 0 active bruno fable 80 active kim indigo 57 ready dina ember 33 ready farah delta 106 active dina delta 81 pending kim grove 85 active chen birch 19 failed hana juniper 5 active
farah delta 106 active
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021367-p1
Identify and output the longest line from the input; if multiple lines share the maximum length, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
kim indigo 39 failed bruno amber 119 ready ivan fable 66 paused dina fable 101 ready farah ember 118 closed gus juniper 61 active kim fable 17 ready kim fable 20 paused lina grove 21 active jules cobalt 63 paused
farah ember 118 closed
chen birch 63 failed alice fable 0 active bruno fable 80 active kim indigo 57 ready dina ember 33 ready farah delta 106 active dina delta 81 pending kim grove 85 active chen birch 19 failed hana juniper 5 active
farah delta 106 active
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021367
qwen/qwen3.7-plus
awkweave-0021368
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
jules 54 alice 63 ivan 44 dina 87 gus 116 jules 102 farah 13 alice 88 farah 49 bruno 32
alice 63 gus 116 alice 88
kim 21 kim 120 jules 56 lina 51 chen 20 bruno 30 hana 42 chen 92
kim 120 chen 20 chen 92
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021368-p1
Output every third line beginning with line 2 (i.e., lines 2, 5, 8, etc.).
NR%3==2
jules 54 alice 63 ivan 44 dina 87 gus 116 jules 102 farah 13 alice 88 farah 49 bruno 32
alice 63 gus 116 alice 88
kim 21 kim 120 jules 56 lina 51 chen 20 bruno 30 hana 42 chen 92
kim 120 chen 20 chen 92
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021368
qwen/qwen3.7-plus
awkweave-0021369
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
alpha delta 56 alpha fable 54 gamma grove 94 delta birch 10 delta delta 94 delta indigo 83
3
alpha indigo 82 alpha harbor 106 gamma fable 89 beta grove 64 alpha juniper 63 gamma birch 33 alpha juniper 101
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021369-p1
Calculate the number of unique values in the first column and display only that total count.
{if(!seen[$1]++)n++}END{print n+0}
alpha delta 56 alpha fable 54 gamma grove 94 delta birch 10 delta delta 94 delta indigo 83
3
alpha indigo 82 alpha harbor 106 gamma fable 89 beta grove 64 alpha juniper 63 gamma birch 33 alpha juniper 101
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021369
qwen/qwen3.7-plus
awkweave-0021370
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
dina 15 0 eli 14 2 farah 25 10 dina 4 10 ivan 18 23 gus 24 16 kim 22 3
eli 7.00 farah 2.50 dina 0.40 ivan 0.78 gus 1.50 kim 7.33
hana 2 0 chen 21 28 lina 8 6 eli 29 6 lina 15 4 chen 21 22 alice 22 23 ivan 22 5 bruno 18 9 bruno 13 20
chen 0.75 lina 1.33 eli 4.83 lina 3.75 chen 0.95 alice 0.96 ivan 4.40 bruno 2.00 bruno 0.65
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021370-p1
For each row where the third column is not zero, output the first column and the result of dividing the second column by the third column, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
dina 15 0 eli 14 2 farah 25 10 dina 4 10 ivan 18 23 gus 24 16 kim 22 3
eli 7.00 farah 2.50 dina 0.40 ivan 0.78 gus 1.50 kim 7.33
hana 2 0 chen 21 28 lina 8 6 eli 29 6 lina 15 4 chen 21 22 alice 22 23 ivan 22 5 bruno 18 9 bruno 13 20
chen 0.75 lina 1.33 eli 4.83 lina 3.75 chen 0.95 alice 0.96 ivan 4.40 bruno 2.00 bruno 0.65
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021370
qwen/qwen3.7-plus
awkweave-0021371
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
dina birch 24 alice juniper 26 jules delta 7 bruno indigo 20 lina indigo 27 bruno harbor 20 bruno birch 17 farah harbor 25
lina indigo 27 alice juniper 26 farah harbor 25
alice ember 27 bruno indigo 29 bruno birch 14 kim juniper 12 jules indigo 11 chen cobalt 27 chen ember 21
bruno indigo 29 alice ember 27 chen cobalt 27
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021371-p1
Display the three full records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any tied values.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
dina birch 24 alice juniper 26 jules delta 7 bruno indigo 20 lina indigo 27 bruno harbor 20 bruno birch 17 farah harbor 25
lina indigo 27 alice juniper 26 farah harbor 25
alice ember 27 bruno indigo 29 bruno birch 14 kim juniper 12 jules indigo 11 chen cobalt 27 chen ember 21
bruno indigo 29 alice ember 27 chen cobalt 27
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021371
qwen/qwen3.7-plus
awkweave-0021372
Print column 5 followed by column 2 for every record.
{print $5, $2}
closed juniper 109 closed lina closed harbor 62 failed chen pending fable 76 pending ivan ready ember 6 active dina paused harbor 98 paused eli pending indigo 10 pending eli ready fable 0 ready lina failed fable 47 closed bruno ready cobalt 44 active hana active fable 15 failed farah
lina juniper chen harbor ivan fable dina ember eli harbor eli indigo lina fable bruno fable hana cobalt farah fable
pending juniper 81 pending alice active cobalt 102 active hana active juniper 89 closed eli paused ember 22 paused dina paused indigo 96 failed ivan active harbor 91 failed jules ready grove 39 active farah active cobalt 117 failed chen failed cobalt 107 pending eli
alice juniper hana cobalt eli juniper dina ember ivan indigo jules harbor farah grove chen cobalt eli cobalt
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021372-p1
For every record, output the value from column 5 followed by the value from column 2.
{print $5, $2}
closed juniper 109 closed lina closed harbor 62 failed chen pending fable 76 pending ivan ready ember 6 active dina paused harbor 98 paused eli pending indigo 10 pending eli ready fable 0 ready lina failed fable 47 closed bruno ready cobalt 44 active hana active fable 15 failed farah
lina juniper chen harbor ivan fable dina ember eli harbor eli indigo lina fable bruno fable hana cobalt farah fable
pending juniper 81 pending alice active cobalt 102 active hana active juniper 89 closed eli paused ember 22 paused dina paused indigo 96 failed ivan active harbor 91 failed jules ready grove 39 active farah active cobalt 117 failed chen failed cobalt 107 pending eli
alice juniper hana cobalt eli juniper dina ember ivan indigo jules harbor farah grove chen cobalt eli cobalt
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021372
qwen/qwen3.7-plus
awkweave-0021373
Print the last field of every input line.
{print $NF}
ready birch dina harbor 46 56 fable active cobalt alice juniper 23 34 ember failed delta jules grove 87 70 delta pending delta gus cobalt 44 99 indigo closed birch jules indigo 84 96 fable ready grove gus delta 13 105 cobalt
fable ember delta indigo fable cobalt
active cobalt dina cobalt 6 44 indigo closed grove lina ember 45 74 indigo ready birch gus amber 43 26 delta closed birch lina delta 60 89 indigo pending harbor hana cobalt 60 14 ember pending juniper jules indigo 30 50 cobalt
indigo indigo delta indigo ember cobalt
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021373-p1
Output the final field of each input line.
{print $NF}
ready birch dina harbor 46 56 fable active cobalt alice juniper 23 34 ember failed delta jules grove 87 70 delta pending delta gus cobalt 44 99 indigo closed birch jules indigo 84 96 fable ready grove gus delta 13 105 cobalt
fable ember delta indigo fable cobalt
active cobalt dina cobalt 6 44 indigo closed grove lina ember 45 74 indigo ready birch gus amber 43 26 delta closed birch lina delta 60 89 indigo pending harbor hana cobalt 60 14 ember pending juniper jules indigo 30 50 cobalt
indigo indigo delta indigo ember cobalt
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021373
qwen/qwen3.7-plus
awkweave-0021374
Print the complete records where column 1 is greater than 59.
$1 > 59
111 closed grove 68 pending ember 69 ready birch 83 failed birch 62 paused harbor 94 active amber 58 ready birch 70 ready fable 50 pending fable 14 paused harbor
111 closed grove 68 pending ember 69 ready birch 83 failed birch 62 paused harbor 94 active amber 70 ready fable
19 pending juniper 74 active delta 116 pending fable 105 closed fable 86 pending cobalt 71 active juniper 114 closed birch 5 active grove 27 paused indigo 105 closed harbor
74 active delta 116 pending fable 105 closed fable 86 pending cobalt 71 active juniper 114 closed birch 105 closed harbor
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021374-p1
Print the entire records for which the value in column 1 exceeds 59.
$1 > 59
111 closed grove 68 pending ember 69 ready birch 83 failed birch 62 paused harbor 94 active amber 58 ready birch 70 ready fable 50 pending fable 14 paused harbor
111 closed grove 68 pending ember 69 ready birch 83 failed birch 62 paused harbor 94 active amber 70 ready fable
19 pending juniper 74 active delta 116 pending fable 105 closed fable 86 pending cobalt 71 active juniper 114 closed birch 5 active grove 27 paused indigo 105 closed harbor
74 active delta 116 pending fable 105 closed fable 86 pending cobalt 71 active juniper 114 closed birch 105 closed harbor
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021374
qwen/qwen3.7-plus
awkweave-0021375
Show whole lines whose 1st field is between 11 and 25, inclusive.
$1 >= 11 && $1 <= 25
14 amber bruno active 27 grove dina failed 27 cobalt bruno closed 10 ember bruno failed 9 juniper gus closed 24 harbor bruno active 20 indigo gus ready
14 amber bruno active 24 harbor bruno active 20 indigo gus ready
17 harbor kim paused 27 grove bruno paused 29 indigo alice paused 14 ember jules closed 7 grove bruno paused 13 grove eli paused 19 grove gus active 14 amber eli closed 28 ember gus failed 12 birch eli closed
17 harbor kim paused 14 ember jules closed 13 grove eli paused 19 grove gus active 14 amber eli closed 12 birch eli closed
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021375-p1
Display complete lines where the first field falls within the inclusive range of 11 to 25.
$1 >= 11 && $1 <= 25
14 amber bruno active 27 grove dina failed 27 cobalt bruno closed 10 ember bruno failed 9 juniper gus closed 24 harbor bruno active 20 indigo gus ready
14 amber bruno active 24 harbor bruno active 20 indigo gus ready
17 harbor kim paused 27 grove bruno paused 29 indigo alice paused 14 ember jules closed 7 grove bruno paused 13 grove eli paused 19 grove gus active 14 amber eli closed 28 ember gus failed 12 birch eli closed
17 harbor kim paused 14 ember jules closed 13 grove eli paused 19 grove gus active 14 amber eli closed 12 birch eli closed
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021375
qwen/qwen3.7-plus
awkweave-0021376
Print column 4 only for rows where column 2 is exactly closed.
$2 == "closed"{print $4}
73 paused juniper kim 88 ready amber chen 47 pending indigo chen 62 failed harbor chen 20 pending birch gus 82 active amber gus 42 pending ember eli 114 closed harbor bruno 44 pending indigo jules
bruno
71 pending harbor hana 62 active fable gus 116 paused indigo lina 75 closed ember ivan 44 active delta bruno 118 active cobalt eli 65 active juniper farah 55 ready ember lina 95 closed delta chen
ivan chen
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021376-p1
Output only the fourth column for rows where the second column contains exactly the value 'closed'.
$2 == "closed"{print $4}
73 paused juniper kim 88 ready amber chen 47 pending indigo chen 62 failed harbor chen 20 pending birch gus 82 active amber gus 42 pending ember eli 114 closed harbor bruno 44 pending indigo jules
bruno
71 pending harbor hana 62 active fable gus 116 paused indigo lina 75 closed ember ivan 44 active delta bruno 118 active cobalt eli 65 active juniper farah 55 ready ember lina 95 closed delta chen
ivan chen
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021376
qwen/qwen3.7-plus
awkweave-0021377
Print all fields from lines where field 1 begins with INFO.
$1 ~ /^INFO/
INFO indigo 112 DEBUG juniper 81 DEBUG indigo 43 INFO harbor 89 ERROR fable 25 INFO birch 28 ERROR delta 80 ERROR grove 34 DEBUG ember 64 INFO amber 120
INFO indigo 112 INFO harbor 89 INFO birch 28 INFO amber 120
ERROR cobalt 113 ERROR juniper 65 DEBUG amber 31 INFO cobalt 67 WARN birch 71 DEBUG indigo 101 INFO birch 94 WARN birch 9 ERROR birch 23
INFO cobalt 67 INFO birch 94
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021377-p1
Print all fields from any line where the first field starts with the string 'INFO'.
$1 ~ /^INFO/
INFO indigo 112 DEBUG juniper 81 DEBUG indigo 43 INFO harbor 89 ERROR fable 25 INFO birch 28 ERROR delta 80 ERROR grove 34 DEBUG ember 64 INFO amber 120
INFO indigo 112 INFO harbor 89 INFO birch 28 INFO amber 120
ERROR cobalt 113 ERROR juniper 65 DEBUG amber 31 INFO cobalt 67 WARN birch 71 DEBUG indigo 101 INFO birch 94 WARN birch 9 ERROR birch 23
INFO cobalt 67 INFO birch 94
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021377
qwen/qwen3.7-plus
awkweave-0021378
Print every line except those containing the exact text grove.
$0 !~ /grove/
fable 102 closed cobalt 68 paused grove 58 ready fable 101 paused amber 61 closed delta 49 pending grove 999 active
fable 102 closed cobalt 68 paused fable 101 paused amber 61 closed delta 49 pending
birch 5 failed birch 60 pending harbor 103 ready amber 94 ready indigo 42 pending birch 119 failed juniper 64 closed birch 57 pending juniper 0 paused grove 999 active
birch 5 failed birch 60 pending harbor 103 ready amber 94 ready indigo 42 pending birch 119 failed juniper 64 closed birch 57 pending juniper 0 paused
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021378-p1
Display all lines that do not contain the exact string grove.
$0 !~ /grove/
fable 102 closed cobalt 68 paused grove 58 ready fable 101 paused amber 61 closed delta 49 pending grove 999 active
fable 102 closed cobalt 68 paused fable 101 paused amber 61 closed delta 49 pending
birch 5 failed birch 60 pending harbor 103 ready amber 94 ready indigo 42 pending birch 119 failed juniper 64 closed birch 57 pending juniper 0 paused grove 999 active
birch 5 failed birch 60 pending harbor 103 ready amber 94 ready indigo 42 pending birch 119 failed juniper 64 closed birch 57 pending juniper 0 paused
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021378
qwen/qwen3.7-plus
awkweave-0021379
Print lines 3 through 6, including both endpoints.
NR >= 3 && NR <= 6
gus cobalt 95 farah harbor 61 alice harbor 84 hana grove 91 hana juniper 25 bruno indigo 89 chen delta 16 chen harbor 68 gus birch 6 gus grove 88
alice harbor 84 hana grove 91 hana juniper 25 bruno indigo 89
jules delta 53 eli juniper 45 ivan ember 70 gus cobalt 74 gus ember 87 hana cobalt 12
ivan ember 70 gus cobalt 74 gus ember 87 hana cobalt 12
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021379-p1
Output lines 3 to 6, inclusive of both the start and end lines.
NR >= 3 && NR <= 6
gus cobalt 95 farah harbor 61 alice harbor 84 hana grove 91 hana juniper 25 bruno indigo 89 chen delta 16 chen harbor 68 gus birch 6 gus grove 88
alice harbor 84 hana grove 91 hana juniper 25 bruno indigo 89
jules delta 53 eli juniper 45 ivan ember 70 gus cobalt 74 gus ember 87 hana cobalt 12
ivan ember 70 gus cobalt 74 gus ember 87 hana cobalt 12
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021379
qwen/qwen3.7-plus
awkweave-0021380
Output only the first 3 records.
NR <= 3
bruno 9 indigo hana 81 delta eli 13 fable hana 104 delta hana 119 indigo alice 63 grove ivan 42 birch jules 1 juniper hana 85 amber
bruno 9 indigo hana 81 delta eli 13 fable
gus 96 ember gus 61 delta dina 25 ember bruno 120 ember gus 29 delta eli 104 birch eli 118 indigo lina 72 delta gus 34 indigo
gus 96 ember gus 61 delta dina 25 ember
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021380-p1
Show only the initial 3 records from the input.
NR <= 3
bruno 9 indigo hana 81 delta eli 13 fable hana 104 delta hana 119 indigo alice 63 grove ivan 42 birch jules 1 juniper hana 85 amber
bruno 9 indigo hana 81 delta eli 13 fable
gus 96 ember gus 61 delta dina 25 ember bruno 120 ember gus 29 delta eli 104 birch eli 118 indigo lina 72 delta gus 34 indigo
gus 96 ember gus 61 delta dina 25 ember
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021380
qwen/qwen3.7-plus