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-0040831-p1
For each row where the third column is non-zero, print the first column and the result of dividing the second column by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 20 0 farah 5 5 farah 2 8 eli 9 27 alice 18 28 jules 15 21 hana 18 17
farah 1.00 farah 0.25 eli 0.33 alice 0.64 jules 0.71 hana 1.06
hana 1 0 farah 29 25 farah 12 17 bruno 29 1 hana 25 23 alice 2 24 gus 1 23 alice 8 29
farah 1.16 farah 0.71 bruno 29.00 hana 1.09 alice 0.08 gus 0.04 alice 0.28
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040831
qwen/qwen3.7-plus
awkweave-0040832
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
chen delta 27 alice birch 23 eli birch 11 farah fable 16 kim delta 25 jules delta 29 alice delta 6 eli harbor 5
jules delta 29 chen delta 27 kim delta 25
dina grove 14 bruno juniper 6 jules cobalt 6 alice delta 20 bruno ember 28 ivan harbor 12
bruno ember 28 alice delta 20 dina grove 14
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040832-p1
Output the three full records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
chen delta 27 alice birch 23 eli birch 11 farah fable 16 kim delta 25 jules delta 29 alice delta 6 eli harbor 5
jules delta 29 chen delta 27 kim delta 25
dina grove 14 bruno juniper 6 jules cobalt 6 alice delta 20 bruno ember 28 ivan harbor 12
bruno ember 28 alice delta 20 dina grove 14
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040832
qwen/qwen3.7-plus
awkweave-0040833
Print column 5 followed by column 4 for every record.
{print $5, $4}
109 gus juniper grove hana farah 104 jules amber ember hana kim 22 ivan ember juniper ivan eli 40 chen delta indigo bruno chen 56 farah delta harbor dina alice 106 eli grove fable gus lina 6 gus ember juniper lina chen 114 hana amber cobalt alice hana
hana grove hana ember ivan juniper bruno indigo dina harbor gus fable lina juniper alice cobalt
73 gus cobalt amber lina hana 94 lina juniper cobalt kim chen 47 eli grove harbor farah alice 92 alice juniper amber eli lina 115 farah juniper amber ivan bruno 86 jules harbor delta lina hana 89 gus indigo ember jules jules 38 farah fable indigo gus jules 16 kim fable indigo chen farah 63 gus ember juniper lina farah
lina amber kim cobalt farah harbor eli amber ivan amber lina delta jules ember gus indigo chen indigo lina juniper
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040833-p1
For every record, print the fifth column followed immediately by the fourth column.
{print $5, $4}
109 gus juniper grove hana farah 104 jules amber ember hana kim 22 ivan ember juniper ivan eli 40 chen delta indigo bruno chen 56 farah delta harbor dina alice 106 eli grove fable gus lina 6 gus ember juniper lina chen 114 hana amber cobalt alice hana
hana grove hana ember ivan juniper bruno indigo dina harbor gus fable lina juniper alice cobalt
73 gus cobalt amber lina hana 94 lina juniper cobalt kim chen 47 eli grove harbor farah alice 92 alice juniper amber eli lina 115 farah juniper amber ivan bruno 86 jules harbor delta lina hana 89 gus indigo ember jules jules 38 farah fable indigo gus jules 16 kim fable indigo chen farah 63 gus ember juniper lina farah
lina amber kim cobalt farah harbor eli amber ivan amber lina delta jules ember gus indigo chen indigo lina juniper
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040833
qwen/qwen3.7-plus
awkweave-0040834
Print the last field of every input line.
{print $NF}
jules 29 paused ready farah 43 paused active ivan 50 ready pending chen 55 active ready eli 87 failed paused eli 99 active paused jules 77 failed pending
ready active pending ready paused paused pending
kim 61 paused closed ivan 20 active closed hana 66 pending paused lina 106 pending failed dina 40 active active alice 23 failed active hana 4 failed paused eli 71 ready pending ivan 86 closed active chen 11 pending ready
closed closed paused failed active active paused pending active ready
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040834-p1
Print the final field from each line of input.
{print $NF}
jules 29 paused ready farah 43 paused active ivan 50 ready pending chen 55 active ready eli 87 failed paused eli 99 active paused jules 77 failed pending
ready active pending ready paused paused pending
kim 61 paused closed ivan 20 active closed hana 66 pending paused lina 106 pending failed dina 40 active active alice 23 failed active hana 4 failed paused eli 71 ready pending ivan 86 closed active chen 11 pending ready
closed closed paused failed active active paused pending active ready
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040834
qwen/qwen3.7-plus
awkweave-0040835
Print the complete records where column 3 is greater than 39.
$3 > 39
lina ready 118 closed gus ready 66 paused kim closed 14 paused hana failed 100 failed dina paused 21 active bruno ready 53 pending dina pending 31 failed farah closed 57 active kim ready 49 pending
lina ready 118 closed gus ready 66 paused hana failed 100 failed bruno ready 53 pending farah closed 57 active kim ready 49 pending
alice closed 117 ready dina closed 102 ready chen pending 34 failed farah closed 57 active ivan closed 70 active dina active 14 closed
alice closed 117 ready dina closed 102 ready farah closed 57 active ivan closed 70 active
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040835-p1
Output the entire record for any row where the value in column 3 is greater than 39.
$3 > 39
lina ready 118 closed gus ready 66 paused kim closed 14 paused hana failed 100 failed dina paused 21 active bruno ready 53 pending dina pending 31 failed farah closed 57 active kim ready 49 pending
lina ready 118 closed gus ready 66 paused hana failed 100 failed bruno ready 53 pending farah closed 57 active kim ready 49 pending
alice closed 117 ready dina closed 102 ready chen pending 34 failed farah closed 57 active ivan closed 70 active dina active 14 closed
alice closed 117 ready dina closed 102 ready farah closed 57 active ivan closed 70 active
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040835
qwen/qwen3.7-plus
awkweave-0040836
Show whole lines whose 1st field is between 4 and 19, inclusive.
$1 >= 4 && $1 <= 19
21 ready grove harbor 5 closed ember birch 13 paused harbor amber 9 active fable indigo 22 failed indigo ember 13 failed grove delta 29 paused amber juniper
5 closed ember birch 13 paused harbor amber 9 active fable indigo 13 failed grove delta
19 failed grove cobalt 28 active birch juniper 1 pending harbor amber 11 active indigo indigo 13 pending fable amber 19 pending grove ember
19 failed grove cobalt 11 active indigo indigo 13 pending fable amber 19 pending grove ember
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040836-p1
Display complete lines where the first field falls within the inclusive range of 4 to 19.
$1 >= 4 && $1 <= 19
21 ready grove harbor 5 closed ember birch 13 paused harbor amber 9 active fable indigo 22 failed indigo ember 13 failed grove delta 29 paused amber juniper
5 closed ember birch 13 paused harbor amber 9 active fable indigo 13 failed grove delta
19 failed grove cobalt 28 active birch juniper 1 pending harbor amber 11 active indigo indigo 13 pending fable amber 19 pending grove ember
19 failed grove cobalt 11 active indigo indigo 13 pending fable amber 19 pending grove ember
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040836
qwen/qwen3.7-plus
awkweave-0040837
Print column 4 only for rows where column 2 is exactly ready.
$2 == "ready"{print $4}
52 pending cobalt hana 14 ready ember alice 110 active amber dina 16 failed fable gus 38 pending fable farah 28 closed birch gus 5 paused delta jules 108 ready fable gus 6 closed harbor ivan 28 failed amber eli
alice gus
116 closed ember kim 29 paused grove lina 30 paused cobalt hana 0 failed indigo ivan 1 ready cobalt chen 20 paused ember eli 34 failed birch farah
chen
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040837-p1
Output only the fourth column for rows where the second column matches 'ready' exactly.
$2 == "ready"{print $4}
52 pending cobalt hana 14 ready ember alice 110 active amber dina 16 failed fable gus 38 pending fable farah 28 closed birch gus 5 paused delta jules 108 ready fable gus 6 closed harbor ivan 28 failed amber eli
alice gus
116 closed ember kim 29 paused grove lina 30 paused cobalt hana 0 failed indigo ivan 1 ready cobalt chen 20 paused ember eli 34 failed birch farah
chen
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040837
qwen/qwen3.7-plus
awkweave-0040838
Print all fields from lines where field 3 begins with ERROR.
$3 ~ /^ERROR/
delta 49 DEBUG cobalt 2 WARN birch 109 ERROR fable 69 WARN fable 68 WARN delta 66 WARN
birch 109 ERROR
amber 40 DEBUG indigo 119 DEBUG grove 31 WARN ember 106 INFO indigo 118 DEBUG fable 114 DEBUG grove 57 ERROR indigo 22 WARN
grove 57 ERROR
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040838-p1
Print all fields from lines where the third field starts with the prefix 'ERROR'.
$3 ~ /^ERROR/
delta 49 DEBUG cobalt 2 WARN birch 109 ERROR fable 69 WARN fable 68 WARN delta 66 WARN
birch 109 ERROR
amber 40 DEBUG indigo 119 DEBUG grove 31 WARN ember 106 INFO indigo 118 DEBUG fable 114 DEBUG grove 57 ERROR indigo 22 WARN
grove 57 ERROR
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040838
qwen/qwen3.7-plus
awkweave-0040839
Print every line except those containing the exact text birch.
$0 !~ /birch/
birch 1 pending grove 118 ready birch 51 active fable 98 failed delta 37 active indigo 71 active harbor 25 failed delta 36 closed birch 999 active
grove 118 ready fable 98 failed delta 37 active indigo 71 active harbor 25 failed delta 36 closed
harbor 71 ready birch 100 failed birch 65 ready indigo 101 closed fable 14 active grove 65 paused fable 64 pending juniper 23 active ember 51 paused cobalt 67 closed birch 999 active
harbor 71 ready indigo 101 closed fable 14 active grove 65 paused fable 64 pending juniper 23 active ember 51 paused cobalt 67 closed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040839-p1
Output every line that does not contain the exact string 'birch'.
$0 !~ /birch/
birch 1 pending grove 118 ready birch 51 active fable 98 failed delta 37 active indigo 71 active harbor 25 failed delta 36 closed birch 999 active
grove 118 ready fable 98 failed delta 37 active indigo 71 active harbor 25 failed delta 36 closed
harbor 71 ready birch 100 failed birch 65 ready indigo 101 closed fable 14 active grove 65 paused fable 64 pending juniper 23 active ember 51 paused cobalt 67 closed birch 999 active
harbor 71 ready indigo 101 closed fable 14 active grove 65 paused fable 64 pending juniper 23 active ember 51 paused cobalt 67 closed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040839
qwen/qwen3.7-plus
awkweave-0040840
Print lines 3 through 6, including both endpoints.
NR >= 3 && NR <= 6
chen amber 87 ivan juniper 63 kim harbor 36 ivan amber 85 dina juniper 4 farah grove 77
kim harbor 36 ivan amber 85 dina juniper 4 farah grove 77
hana birch 26 kim ember 54 gus birch 82 chen harbor 39 bruno delta 64 ivan grove 55 alice cobalt 32 ivan cobalt 7 hana harbor 110 jules amber 10
gus birch 82 chen harbor 39 bruno delta 64 ivan grove 55
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040840-p1
Print lines 3 through 6, inclusive of both the start and end lines.
NR >= 3 && NR <= 6
chen amber 87 ivan juniper 63 kim harbor 36 ivan amber 85 dina juniper 4 farah grove 77
kim harbor 36 ivan amber 85 dina juniper 4 farah grove 77
hana birch 26 kim ember 54 gus birch 82 chen harbor 39 bruno delta 64 ivan grove 55 alice cobalt 32 ivan cobalt 7 hana harbor 110 jules amber 10
gus birch 82 chen harbor 39 bruno delta 64 ivan grove 55
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040840
qwen/qwen3.7-plus
awkweave-0040841
Output only the first 3 records.
NR <= 3
alice 37 amber farah 64 indigo jules 89 ember bruno 16 cobalt dina 21 amber chen 100 grove
alice 37 amber farah 64 indigo jules 89 ember
dina 42 fable gus 27 fable dina 10 delta dina 13 birch jules 89 ember gus 104 delta kim 8 indigo gus 23 indigo dina 100 indigo hana 54 ember
dina 42 fable gus 27 fable dina 10 delta
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040841-p1
Display only the first three records.
NR <= 3
alice 37 amber farah 64 indigo jules 89 ember bruno 16 cobalt dina 21 amber chen 100 grove
alice 37 amber farah 64 indigo jules 89 ember
dina 42 fable gus 27 fable dina 10 delta dina 13 birch jules 89 ember gus 104 delta kim 8 indigo gus 23 indigo dina 100 indigo hana 54 ember
dina 42 fable gus 27 fable dina 10 delta
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040841
qwen/qwen3.7-plus
awkweave-0040842
Skip the first line and print every remaining line unchanged.
NR > 1
hana 1 ember ivan 113 indigo hana 3 harbor ivan 98 birch hana 35 grove dina 70 birch jules 43 juniper lina 50 ember ivan 96 grove
ivan 113 indigo hana 3 harbor ivan 98 birch hana 35 grove dina 70 birch jules 43 juniper lina 50 ember ivan 96 grove
dina 79 harbor kim 1 ember bruno 75 cobalt eli 89 delta kim 28 delta jules 0 grove lina 115 birch lina 2 ember ivan 101 grove
kim 1 ember bruno 75 cobalt eli 89 delta kim 28 delta jules 0 grove lina 115 birch lina 2 ember ivan 101 grove
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040842-p1
Omit the first line and print all subsequent lines without modification.
NR > 1
hana 1 ember ivan 113 indigo hana 3 harbor ivan 98 birch hana 35 grove dina 70 birch jules 43 juniper lina 50 ember ivan 96 grove
ivan 113 indigo hana 3 harbor ivan 98 birch hana 35 grove dina 70 birch jules 43 juniper lina 50 ember ivan 96 grove
dina 79 harbor kim 1 ember bruno 75 cobalt eli 89 delta kim 28 delta jules 0 grove lina 115 birch lina 2 ember ivan 101 grove
kim 1 ember bruno 75 cobalt eli 89 delta kim 28 delta jules 0 grove lina 115 birch lina 2 ember ivan 101 grove
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040842
qwen/qwen3.7-plus
awkweave-0040843
Count how many records have paused in column 2. Print 0 if there are none.
$2 == "paused"{n++}END{print n+0}
farah closed 119 dina paused 8 eli ready 72 bruno failed 62 dina paused 106 jules pending 107 farah failed 11 kim closed 113
2
hana pending 8 dina pending 36 bruno ready 118 lina failed 63 eli closed 80 gus active 21
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040843-p1
Count the number of records where the second column is 'paused', outputting 0 if no matches are found.
$2 == "paused"{n++}END{print n+0}
farah closed 119 dina paused 8 eli ready 72 bruno failed 62 dina paused 106 jules pending 107 farah failed 11 kim closed 113
2
hana pending 8 dina pending 36 bruno ready 118 lina failed 63 eli closed 80 gus active 21
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040843
qwen/qwen3.7-plus
awkweave-0040844
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
juniper jules 25 amber hana 19 grove jules 11 fable farah 22 juniper alice 21 delta lina 9 harbor hana 8 harbor farah 23 delta chen 27 ember farah 30
195
cobalt alice 29 amber bruno 7 juniper ivan 27 grove lina 28 birch kim 27 indigo hana 11 juniper bruno 7 amber ivan 5
141
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040844-p1
Compute and display the sum of all integer values in the third column.
{s+=$3}END{print s+0}
juniper jules 25 amber hana 19 grove jules 11 fable farah 22 juniper alice 21 delta lina 9 harbor hana 8 harbor farah 23 delta chen 27 ember farah 30
195
cobalt alice 29 amber bruno 7 juniper ivan 27 grove lina 28 birch kim 27 indigo hana 11 juniper bruno 7 amber ivan 5
141
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040844
qwen/qwen3.7-plus
awkweave-0040845
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
21 juniper alice 2 indigo kim 11 harbor gus 28 cobalt gus 10 grove chen 13 ember alice 24 grove hana
15.57
24 birch kim 28 fable eli 12 grove jules 5 harbor kim 19 grove gus 16 amber ivan 13 ember alice 14 grove ivan
16.38
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040845-p1
Calculate the arithmetic mean of the first column and print it rounded to two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
21 juniper alice 2 indigo kim 11 harbor gus 28 cobalt gus 10 grove chen 13 ember alice 24 grove hana
15.57
24 birch kim 28 fable eli 12 grove jules 5 harbor kim 19 grove gus 16 amber ivan 13 ember alice 14 grove ivan
16.38
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040845
qwen/qwen3.7-plus
awkweave-0040846
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
26 delta farah 23 indigo ivan 4 ember farah 25 juniper jules 29 grove alice 22 grove bruno 9 birch ivan 18 indigo ivan
4
8 juniper alice 11 amber jules 1 juniper eli 24 fable ivan 24 ember bruno 5 cobalt gus 6 grove bruno 2 indigo eli
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040846-p1
Identify and print the minimum numeric value found in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
26 delta farah 23 indigo ivan 4 ember farah 25 juniper jules 29 grove alice 22 grove bruno 9 birch ivan 18 indigo ivan
4
8 juniper alice 11 amber jules 1 juniper eli 24 fable ivan 24 ember bruno 5 cobalt gus 6 grove bruno 2 indigo eli
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040846
qwen/qwen3.7-plus
awkweave-0040847
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
eli 11 ember alice 28 amber alice 15 grove jules 21 fable alice 12 delta eli 2 birch farah 16 ember dina 5 grove ivan 28 grove bruno 19 harbor
28
hana 10 indigo jules 17 fable hana 22 cobalt gus 18 juniper gus 11 indigo eli 17 juniper eli 5 juniper lina 29 indigo
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040847-p1
Identify and print the maximum numeric value found in the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
eli 11 ember alice 28 amber alice 15 grove jules 21 fable alice 12 delta eli 2 birch farah 16 ember dina 5 grove ivan 28 grove bruno 19 harbor
28
hana 10 indigo jules 17 fable hana 22 cobalt gus 18 juniper gus 11 indigo eli 17 juniper eli 5 juniper lina 29 indigo
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040847
qwen/qwen3.7-plus
awkweave-0040848
Count all input records and print the total.
END{print NR}
farah 4 bruno 74 jules 12 gus 60 bruno 24 dina 103 ivan 8 alice 104
8
jules 49 ivan 56 chen 84 jules 46 farah 26 lina 112 eli 24 hana 116 farah 103 ivan 35
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040848-p1
Calculate and display the total number of input records.
END{print NR}
farah 4 bruno 74 jules 12 gus 60 bruno 24 dina 103 ivan 8 alice 104
8
jules 49 ivan 56 chen 84 jules 46 farah 26 lina 112 eli 24 hana 116 farah 103 ivan 35
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040848
qwen/qwen3.7-plus
awkweave-0040849
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
alice fable 22 jules birch 18 kim cobalt 32 dina birch 103 farah ember 36 ivan grove 87 kim cobalt 32
alice fable 22 jules birch 18 kim cobalt 32 dina birch 103 farah ember 36 ivan grove 87
gus grove 27 lina juniper 114 gus juniper 108 lina fable 21 alice ember 48 ivan amber 3 lina fable 21
gus grove 27 lina juniper 114 gus juniper 108 lina fable 21 alice ember 48 ivan amber 3
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040849-p1
Eliminate exact duplicate lines while maintaining the original sequence and keeping the first instance of each.
!seen[$0]++
alice fable 22 jules birch 18 kim cobalt 32 dina birch 103 farah ember 36 ivan grove 87 kim cobalt 32
alice fable 22 jules birch 18 kim cobalt 32 dina birch 103 farah ember 36 ivan grove 87
gus grove 27 lina juniper 114 gus juniper 108 lina fable 21 alice ember 48 ivan amber 3 lina fable 21
gus grove 27 lina juniper 114 gus juniper 108 lina fable 21 alice ember 48 ivan amber 3
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040849
qwen/qwen3.7-plus
awkweave-0040850
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
hana fable 20 gus grove 15 eli grove 39 hana indigo 101 gus juniper 117 dina amber 107 alice cobalt 58
hana fable 20 gus grove 15 hana indigo 101 gus juniper 117 dina amber 107 alice cobalt 58
ivan delta 93 gus fable 33 dina delta 25 eli delta 12 lina cobalt 71 gus delta 23 dina juniper 81 ivan amber 75 bruno harbor 14
ivan delta 93 gus fable 33 lina cobalt 71 dina juniper 81 ivan amber 75 bruno harbor 14
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040850-p1
Retain only the initial line for every unique value found in the second column, ensuring the original input order is preserved.
!seen[$2]++
hana fable 20 gus grove 15 eli grove 39 hana indigo 101 gus juniper 117 dina amber 107 alice cobalt 58
hana fable 20 gus grove 15 hana indigo 101 gus juniper 117 dina amber 107 alice cobalt 58
ivan delta 93 gus fable 33 dina delta 25 eli delta 12 lina cobalt 71 gus delta 23 dina juniper 81 ivan amber 75 bruno harbor 14
ivan delta 93 gus fable 33 lina cobalt 71 dina juniper 81 ivan amber 75 bruno harbor 14
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040850
qwen/qwen3.7-plus
awkweave-0040851
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
chen 5 birch chen 25 birch gus 18 grove farah 15 fable alice 27 indigo bruno 6 fable
chen 5 chen 30 gus 48 farah 63 alice 90 bruno 96
dina 22 birch kim 5 ember farah 14 delta alice 28 ember chen 2 grove ivan 18 amber alice 9 birch bruno 10 birch ivan 24 delta farah 29 grove
dina 22 kim 27 farah 41 alice 69 chen 71 ivan 89 alice 98 bruno 108 ivan 132 farah 161
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040851-p1
Output the first column alongside the cumulative sum of the second column for each record, using a space as the delimiter.
{s+=$2;print $1,s}
chen 5 birch chen 25 birch gus 18 grove farah 15 fable alice 27 indigo bruno 6 fable
chen 5 chen 30 gus 48 farah 63 alice 90 bruno 96
dina 22 birch kim 5 ember farah 14 delta alice 28 ember chen 2 grove ivan 18 amber alice 9 birch bruno 10 birch ivan 24 delta farah 29 grove
dina 22 kim 27 farah 41 alice 69 chen 71 ivan 89 alice 98 bruno 108 ivan 132 farah 161
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040851
qwen/qwen3.7-plus
awkweave-0040852
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
gus 11 11 harbor farah 4 25 cobalt lina 12 25 harbor gus 11 15 juniper dina 30 18 juniper dina 17 23 harbor eli 16 7 juniper kim 1 12 harbor gus 19 19 cobalt lina 19 2 fable
gus 22 farah 29 lina 37 gus 26 dina 48 dina 40 eli 23 kim 13 gus 38 lina 21
lina 15 24 grove gus 3 17 cobalt farah 6 5 grove jules 16 19 indigo dina 1 16 delta jules 22 21 cobalt
lina 39 gus 20 farah 11 jules 35 dina 17 jules 43
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040852-p1
For each row, output the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
gus 11 11 harbor farah 4 25 cobalt lina 12 25 harbor gus 11 15 juniper dina 30 18 juniper dina 17 23 harbor eli 16 7 juniper kim 1 12 harbor gus 19 19 cobalt lina 19 2 fable
gus 22 farah 29 lina 37 gus 26 dina 48 dina 40 eli 23 kim 13 gus 38 lina 21
lina 15 24 grove gus 3 17 cobalt farah 6 5 grove jules 16 19 indigo dina 1 16 delta jules 22 21 cobalt
lina 39 gus 20 farah 11 jules 35 dina 17 jules 43
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040852
qwen/qwen3.7-plus
awkweave-0040853
Print column 1 and pass when column 2 is at least 21; otherwise print fail.
{print $1,($2>=21?"pass":"fail")}
lina 15 hana 25 hana 2 gus 2 alice 15 kim 2
lina fail hana pass hana fail gus fail alice fail kim fail
alice 11 lina 7 jules 22 dina 25 dina 16 dina 14 chen 15 gus 8
alice fail lina fail jules pass dina pass dina fail dina fail chen fail gus fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040853-p1
Display the first column and output 'pass' if the second column is 21 or greater; otherwise, output 'fail'.
{print $1,($2>=21?"pass":"fail")}
lina 15 hana 25 hana 2 gus 2 alice 15 kim 2
lina fail hana pass hana fail gus fail alice fail kim fail
alice 11 lina 7 jules 22 dina 25 dina 16 dina 14 chen 15 gus 8
alice fail lina fail jules pass dina pass dina fail dina fail chen fail gus fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040853
qwen/qwen3.7-plus
awkweave-0040854
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
dina delta 111 chen cobalt 107 kim delta 48 gus delta 120 lina delta 118 jules amber 25 dina harbor 67 farah indigo 36
DINA CHEN KIM GUS LINA JULES DINA FARAH
ivan indigo 35 dina delta 98 dina ember 73 bruno grove 60 alice harbor 27 kim fable 88 kim indigo 40 ivan delta 55
IVAN DINA DINA BRUNO ALICE KIM KIM IVAN
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040854-p1
Transform the first column to uppercase and print only that modified column.
{print toupper($1)}
dina delta 111 chen cobalt 107 kim delta 48 gus delta 120 lina delta 118 jules amber 25 dina harbor 67 farah indigo 36
DINA CHEN KIM GUS LINA JULES DINA FARAH
ivan indigo 35 dina delta 98 dina ember 73 bruno grove 60 alice harbor 27 kim fable 88 kim indigo 40 ivan delta 55
IVAN DINA DINA BRUNO ALICE KIM KIM IVAN
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040854
qwen/qwen3.7-plus
awkweave-0040855
From column 1, print 3 characters starting at character 3.
{print substr($1,3,3)}
ember 27 ember 32 harbor 98 harbor 107 cobalt 20 birch 108 amber 9 indigo 19 amber 84 amber 120
ber ber rbo rbo bal rch ber dig ber ber
delta 108 indigo 111 ember 95 fable 90 cobalt 104 harbor 118 ember 95 juniper 91
lta dig ber ble bal rbo ber nip
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040855-p1
Extract and print a substring of 3 characters from the first column, beginning at the third character position.
{print substr($1,3,3)}
ember 27 ember 32 harbor 98 harbor 107 cobalt 20 birch 108 amber 9 indigo 19 amber 84 amber 120
ber ber rbo rbo bal rch ber dig ber ber
delta 108 indigo 111 ember 95 fable 90 cobalt 104 harbor 118 ember 95 juniper 91
lta dig ber ble bal rbo ber nip
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040855
qwen/qwen3.7-plus
awkweave-0040856
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
birch_fable 95 delta_harbor 64 delta_ember 42 harbor_grove 76 indigo_juniper 2 harbor_fable 87 harbor_grove 33 grove_indigo 78 indigo_juniper 79
birch fable delta harbor delta ember harbor grove indigo juniper harbor fable harbor grove grove indigo indigo juniper
delta_harbor 72 amber_delta 117 birch_indigo 1 fable_fable 75 amber_amber 56 ember_birch 99
delta harbor amber delta birch indigo fable fable amber amber ember birch
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040856-p1
Substitute all underscores in the first column with spaces and print the updated values.
{gsub(/_/," ",$1);print $1}
birch_fable 95 delta_harbor 64 delta_ember 42 harbor_grove 76 indigo_juniper 2 harbor_fable 87 harbor_grove 33 grove_indigo 78 indigo_juniper 79
birch fable delta harbor delta ember harbor grove indigo juniper harbor fable harbor grove grove indigo indigo juniper
delta_harbor 72 amber_delta 117 birch_indigo 1 fable_fable 75 amber_amber 56 ember_birch 99
delta harbor amber delta birch indigo fable fable amber amber ember birch
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040856
qwen/qwen3.7-plus
awkweave-0040857
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 fable 42 ready gus delta 24 closed bruno juniper 83 failed ivan harbor 16 closed hana indigo 80 closed gus harbor 53 closed dina ember 44 ready chen harbor 102 ready
ready 42 fable chen closed 24 delta gus failed 83 juniper bruno closed 16 harbor ivan closed 80 indigo hana closed 53 harbor gus ready 44 ember dina ready 102 harbor chen
dina ember 112 paused eli harbor 48 paused gus fable 66 paused kim birch 27 pending alice delta 28 paused jules harbor 28 closed lina fable 119 ready ivan ember 116 ready
paused 112 ember dina paused 48 harbor eli paused 66 fable gus pending 27 birch kim paused 28 delta alice closed 28 harbor jules ready 119 fable lina ready 116 ember ivan
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040857-p1
Reverse the sequence of fields for every line and print all fields in the new order.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
chen fable 42 ready gus delta 24 closed bruno juniper 83 failed ivan harbor 16 closed hana indigo 80 closed gus harbor 53 closed dina ember 44 ready chen harbor 102 ready
ready 42 fable chen closed 24 delta gus failed 83 juniper bruno closed 16 harbor ivan closed 80 indigo hana closed 53 harbor gus ready 44 ember dina ready 102 harbor chen
dina ember 112 paused eli harbor 48 paused gus fable 66 paused kim birch 27 pending alice delta 28 paused jules harbor 28 closed lina fable 119 ready ivan ember 116 ready
paused 112 ember dina paused 48 harbor eli paused 66 fable gus pending 27 birch kim paused 28 delta alice closed 28 harbor jules ready 119 fable lina ready 116 ember ivan
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040857
qwen/qwen3.7-plus
awkweave-0040858
Print the number of whitespace-separated fields on each line.
{print NF}
farah fable 115 closed farah ember 43 closed kim delta 18 failed chen cobalt 98 failed chen birch 90 failed dina delta 6 ready hana delta 61 pending
4 4 4 4 4 4 4
alice harbor 9 ready gus juniper 47 closed ivan harbor 19 active farah harbor 62 active farah indigo 118 closed dina harbor 74 paused eli harbor 37 ready
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040858-p1
Output the count of whitespace-delimited fields for each line.
{print NF}
farah fable 115 closed farah ember 43 closed kim delta 18 failed chen cobalt 98 failed chen birch 90 failed dina delta 6 ready hana delta 61 pending
4 4 4 4 4 4 4
alice harbor 9 ready gus juniper 47 closed ivan harbor 19 active farah harbor 62 active farah indigo 118 closed dina harbor 74 paused eli harbor 37 ready
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040858
qwen/qwen3.7-plus
awkweave-0040859
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
kim gamma 111 dina beta 106 lina delta 8 lina delta 37 farah beta 36 bruno gamma 57 lina alpha 86
gamma 2 beta 2 delta 2 alpha 1
bruno alpha 8 ivan beta 1 alice gamma 76 jules beta 119 chen alpha 28 farah gamma 65
alpha 2 beta 2 gamma 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040859-p1
Tally the number of records for each distinct value in the second column and print each value with its count, ordered by their first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
kim gamma 111 dina beta 106 lina delta 8 lina delta 37 farah beta 36 bruno gamma 57 lina alpha 86
gamma 2 beta 2 delta 2 alpha 1
bruno alpha 8 ivan beta 1 alice gamma 76 jules beta 119 chen alpha 28 farah gamma 65
alpha 2 beta 2 gamma 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040859
qwen/qwen3.7-plus
awkweave-0040860
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
jules beta 23 ivan beta 19 alice delta 1 farah delta 10 farah beta 8 gus beta 1
beta 51 delta 11
chen beta 3 gus gamma 8 ivan delta 15 gus gamma 17 ivan alpha 16 hana gamma 21
beta 3 gamma 46 delta 15 alpha 16
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040860-p1
Calculate the sum of values in column 3 for each unique category found in column 2, and output the results maintaining the order in which each category first appears.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
jules beta 23 ivan beta 19 alice delta 1 farah delta 10 farah beta 8 gus beta 1
beta 51 delta 11
chen beta 3 gus gamma 8 ivan delta 15 gus gamma 17 ivan alpha 16 hana gamma 21
beta 3 gamma 46 delta 15 alpha 16
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040860
qwen/qwen3.7-plus
awkweave-0040861
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 119 beta delta 38 beta delta 94 beta grove 93 delta grove 2 alpha ember 57 gamma birch 75
delta 2 beta 3
gamma cobalt 74 beta delta 45 delta juniper 90 alpha delta 72 beta ember 23 alpha harbor 34 beta delta 2 delta indigo 104
beta 3 delta 2 alpha 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040861-p1
Identify all duplicate entries in column 1, count their occurrences, and list them alongside their counts in the order they first appeared in the data.
{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 119 beta delta 38 beta delta 94 beta grove 93 delta grove 2 alpha ember 57 gamma birch 75
delta 2 beta 3
gamma cobalt 74 beta delta 45 delta juniper 90 alpha delta 72 beta ember 23 alpha harbor 34 beta delta 2 delta indigo 104
beta 3 delta 2 alpha 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040861
qwen/qwen3.7-plus
awkweave-0040862
The first row is a header. Print the state column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
region score state note r001 jules 19 pending r002 jules 11 paused r003 ivan 30 failed r004 ivan 21 pending r005 chen 26 ready r006 alice 22 pending r007 kim 17 pending
19 11 30 21 26 22 17
region score state note r001 dina 5 pending r002 dina 28 closed r003 bruno 18 pending r004 chen 17 ready r005 ivan 15 pending r006 gus 19 pending r007 ivan 15 pending
5 28 18 17 15 19 15
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040862-p1
Treating the initial row as a header, extract and display the content of the state column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
region score state note r001 jules 19 pending r002 jules 11 paused r003 ivan 30 failed r004 ivan 21 pending r005 chen 26 ready r006 alice 22 pending r007 kim 17 pending
19 11 30 21 26 22 17
region score state note r001 dina 5 pending r002 dina 28 closed r003 bruno 18 pending r004 chen 17 ready r005 ivan 15 pending r006 gus 19 pending r007 ivan 15 pending
5 28 18 17 15 19 15
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040862
qwen/qwen3.7-plus
awkweave-0040863
The first row is a header. Print display_name for data rows whose score is greater than 13.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>13{print $h["display_name"]}
record_id display_name score state r001 ivan 17 closed r002 jules 8 active r003 alice 20 pending r004 ivan 6 closed r005 farah 1 ready r006 ivan 24 active r007 chen 30 ready r008 kim 19 closed r009 farah 23 failed r010 gus 8 active
ivan alice ivan chen kim farah
record_id display_name score state r001 kim 25 paused r002 lina 13 paused r003 hana 3 closed r004 eli 24 paused r005 bruno 5 closed r006 bruno 13 pending r007 hana 22 failed
kim eli hana
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040863-p1
Ignoring the header row, output the display_name field for any record where the score value is strictly greater than 13.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>13{print $h["display_name"]}
record_id display_name score state r001 ivan 17 closed r002 jules 8 active r003 alice 20 pending r004 ivan 6 closed r005 farah 1 ready r006 ivan 24 active r007 chen 30 ready r008 kim 19 closed r009 farah 23 failed r010 gus 8 active
ivan alice ivan chen kim farah
record_id display_name score state r001 kim 25 paused r002 lina 13 paused r003 hana 3 closed r004 eli 24 paused r005 bruno 5 closed r006 bruno 13 pending r007 hana 22 failed
kim eli hana
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040863
qwen/qwen3.7-plus
awkweave-0040864
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
gus 16 closed gus 14 failed dina 25 pending ivan 28 ready jules 11 paused dina 7 active ivan 13 paused kim 27 closed chen 8 paused
closed failed pending ready paused active paused closed paused
jules 22 active farah 10 active jules 1 paused gus 22 paused alice 27 pending lina 12 pending
active active paused paused pending pending
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040864-p1
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
gus 16 closed gus 14 failed dina 25 pending ivan 28 ready jules 11 paused dina 7 active ivan 13 paused kim 27 closed chen 8 paused
closed failed pending ready paused active paused closed paused
jules 22 active farah 10 active jules 1 paused gus 22 paused alice 27 pending lina 12 pending
active active paused paused pending pending
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0040864
qwen/qwen3.7-plus
awkweave-0040865
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 20.
BEGIN{FS=OFS=","}$2>20{print $1}
chen,23,closed kim,13,ready kim,22,failed gus,18,paused bruno,23,pending ivan,7,closed alice,7,paused
chen kim bruno
eli,18,paused chen,10,paused gus,11,active ivan,23,failed lina,28,paused gus,1,paused lina,27,failed
ivan lina lina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040865-p1
Process simple comma-separated values without quoted fields; output the first column only if the corresponding value in the second column is greater than 20.
BEGIN{FS=OFS=","}$2>20{print $1}
chen,23,closed kim,13,ready kim,22,failed gus,18,paused bruno,23,pending ivan,7,closed alice,7,paused
chen kim bruno
eli,18,paused chen,10,paused gus,11,active ivan,23,failed lina,28,paused gus,1,paused lina,27,failed
ivan lina lina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040865
qwen/qwen3.7-plus
awkweave-0040866
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
bruno harbor 52 ivan juniper 111 dina delta 79 ivan ember 50 farah fable 97 jules amber 40 jules harbor 30 chen juniper 47 jules ember 21
bruno harbor 52 ivan juniper 111 dina delta 79 ivan ember 50 farah fable 97 jules amber 40 jules harbor 30 chen juniper 47 jules ember 21
bruno cobalt 40 chen cobalt 84 farah birch 39 ivan cobalt 84 jules ember 61 alice delta 20 alice cobalt 101 bruno cobalt 73 gus birch 119
bruno cobalt 40 chen cobalt 84 farah birch 39 ivan cobalt 84 jules ember 61 alice delta 20 alice cobalt 101 bruno cobalt 73 gus birch 119
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040866-p1
Remove leading and trailing whitespace from the text, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
bruno harbor 52 ivan juniper 111 dina delta 79 ivan ember 50 farah fable 97 jules amber 40 jules harbor 30 chen juniper 47 jules ember 21
bruno harbor 52 ivan juniper 111 dina delta 79 ivan ember 50 farah fable 97 jules amber 40 jules harbor 30 chen juniper 47 jules ember 21
bruno cobalt 40 chen cobalt 84 farah birch 39 ivan cobalt 84 jules ember 61 alice delta 20 alice cobalt 101 bruno cobalt 73 gus birch 119
bruno cobalt 40 chen cobalt 84 farah birch 39 ivan cobalt 84 jules ember 61 alice delta 20 alice cobalt 101 bruno cobalt 73 gus birch 119
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040866
qwen/qwen3.7-plus
awkweave-0040867
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan cobalt 41 closed chen amber 102 paused alice ember 99 active bruno grove 22 active bruno juniper 71 pending gus birch 16 pending alice ember 58 ready gus grove 60 ready jules cobalt 66 failed eli indigo 97 active
bruno juniper 71 pending
chen grove 19 closed hana juniper 39 failed eli harbor 99 closed chen delta 78 failed chen cobalt 59 closed farah amber 66 failed
hana juniper 39 failed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040867-p1
Identify and output the longest line from the input; if multiple lines share the maximum length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan cobalt 41 closed chen amber 102 paused alice ember 99 active bruno grove 22 active bruno juniper 71 pending gus birch 16 pending alice ember 58 ready gus grove 60 ready jules cobalt 66 failed eli indigo 97 active
bruno juniper 71 pending
chen grove 19 closed hana juniper 39 failed eli harbor 99 closed chen delta 78 failed chen cobalt 59 closed farah amber 66 failed
hana juniper 39 failed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040867
qwen/qwen3.7-plus
awkweave-0040868
Print every 4th line starting at line 2 (then line 6, and so on).
NR%4==2
gus 102 jules 14 chen 32 dina 78 dina 63 farah 45 lina 3 farah 115 ivan 95 farah 25
jules 14 farah 45 farah 25
gus 35 alice 36 gus 29 alice 53 ivan 95 hana 35 farah 11 dina 6 bruno 10 jules 3
alice 36 hana 35 jules 3
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040868-p1
Output every fourth line of the input, beginning with line 2 (i.e., lines 2, 6, 10, etc.).
NR%4==2
gus 102 jules 14 chen 32 dina 78 dina 63 farah 45 lina 3 farah 115 ivan 95 farah 25
jules 14 farah 45 farah 25
gus 35 alice 36 gus 29 alice 53 ivan 95 hana 35 farah 11 dina 6 bruno 10 jules 3
alice 36 hana 35 jules 3
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040868
qwen/qwen3.7-plus
awkweave-0040869
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha juniper 84 gamma juniper 71 beta indigo 38 beta delta 96 delta fable 64 beta harbor 69 beta birch 20
6
delta amber 30 gamma fable 44 alpha ember 23 beta delta 14 gamma delta 39 alpha fable 44
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040869-p1
Determine the number of unique values present in column 2 and print only this total count.
{if(!seen[$2]++)n++}END{print n+0}
alpha juniper 84 gamma juniper 71 beta indigo 38 beta delta 96 delta fable 64 beta harbor 69 beta birch 20
6
delta amber 30 gamma fable 44 alpha ember 23 beta delta 14 gamma delta 39 alpha fable 44
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040869
qwen/qwen3.7-plus
awkweave-0040870
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 18 0 farah 23 19 bruno 3 18 ivan 13 25 farah 4 20 ivan 22 30 eli 18 18 ivan 10 7 kim 12 20 chen 12 18
farah 1.21 bruno 0.17 ivan 0.52 farah 0.20 ivan 0.73 eli 1.00 ivan 1.43 kim 0.60 chen 0.67
gus 13 0 alice 6 26 bruno 19 21 kim 12 2 dina 11 13 hana 15 13
alice 0.23 bruno 0.90 kim 6.00 dina 0.85 hana 1.15
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040870-p1
For each row, compute column 2 divided by column 3, formatted to two decimal places, and print it alongside column 1; exclude any rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 18 0 farah 23 19 bruno 3 18 ivan 13 25 farah 4 20 ivan 22 30 eli 18 18 ivan 10 7 kim 12 20 chen 12 18
farah 1.21 bruno 0.17 ivan 0.52 farah 0.20 ivan 0.73 eli 1.00 ivan 1.43 kim 0.60 chen 0.67
gus 13 0 alice 6 26 bruno 19 21 kim 12 2 dina 11 13 hana 15 13
alice 0.23 bruno 0.90 kim 6.00 dina 0.85 hana 1.15
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040870
qwen/qwen3.7-plus
awkweave-0040871
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]}
bruno delta 24 ivan indigo 9 hana delta 4 dina cobalt 7 eli harbor 21 jules amber 5 dina juniper 9 hana fable 6 chen cobalt 25
chen cobalt 25 bruno delta 24 eli harbor 21
ivan harbor 9 ivan fable 11 ivan grove 7 kim grove 3 gus fable 25 gus grove 11 ivan indigo 1 ivan birch 13 bruno cobalt 16 hana delta 23
gus fable 25 hana delta 23 bruno cobalt 16
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040871-p1
Select the top three 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]}
bruno delta 24 ivan indigo 9 hana delta 4 dina cobalt 7 eli harbor 21 jules amber 5 dina juniper 9 hana fable 6 chen cobalt 25
chen cobalt 25 bruno delta 24 eli harbor 21
ivan harbor 9 ivan fable 11 ivan grove 7 kim grove 3 gus fable 25 gus grove 11 ivan indigo 1 ivan birch 13 bruno cobalt 16 hana delta 23
gus fable 25 hana delta 23 bruno cobalt 16
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040871
qwen/qwen3.7-plus
awkweave-0040872
Select the 3rd and 2nd fields in that order.
{print $3, $2}
ember 85 10 paused amber 106 16 failed indigo 44 62 pending cobalt 110 54 paused fable 61 106 paused fable 87 50 closed
10 85 16 106 62 44 54 110 106 61 50 87
ember 113 27 active harbor 100 49 pending cobalt 64 13 pending harbor 116 6 ready amber 99 17 failed birch 45 107 paused grove 57 10 pending grove 52 85 paused
27 113 49 100 13 64 6 116 17 99 107 45 10 57 85 52
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040872-p1
Extract the third field followed by the second field.
{print $3, $2}
ember 85 10 paused amber 106 16 failed indigo 44 62 pending cobalt 110 54 paused fable 61 106 paused fable 87 50 closed
10 85 16 106 62 44 54 110 106 61 50 87
ember 113 27 active harbor 100 49 pending cobalt 64 13 pending harbor 116 6 ready amber 99 17 failed birch 45 107 paused grove 57 10 pending grove 52 85 paused
27 113 49 100 13 64 6 116 17 99 107 45 10 57 85 52
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040872
qwen/qwen3.7-plus
awkweave-0040873
Print the last field of every input line.
{print $NF}
12 gus 87 15 juniper 82 eli 92 48 juniper 57 hana 17 49 amber 14 alice 10 52 delta 13 farah 53 16 juniper 15 kim 7 86 fable
juniper juniper amber delta juniper fable
97 bruno 10 42 ember 36 bruno 57 80 birch 111 jules 4 25 indigo 87 farah 99 71 birch 44 hana 50 47 birch 36 alice 114 118 juniper 102 kim 109 80 delta
ember birch indigo birch birch juniper delta
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040873-p1
Output the final field from each line of input.
{print $NF}
12 gus 87 15 juniper 82 eli 92 48 juniper 57 hana 17 49 amber 14 alice 10 52 delta 13 farah 53 16 juniper 15 kim 7 86 fable
juniper juniper amber delta juniper fable
97 bruno 10 42 ember 36 bruno 57 80 birch 111 jules 4 25 indigo 87 farah 99 71 birch 44 hana 50 47 birch 36 alice 114 118 juniper 102 kim 109 80 delta
ember birch indigo birch birch juniper delta
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040873
qwen/qwen3.7-plus
awkweave-0040874
Print the complete records where column 2 is at least 60.
$2 >= 60
grove 21 birch failed cobalt 92 harbor ready fable 92 birch failed delta 5 ember active indigo 40 harbor pending birch 25 ember closed cobalt 48 grove paused grove 18 ember active birch 2 fable closed
cobalt 92 harbor ready fable 92 birch failed
fable 119 fable failed amber 66 indigo ready cobalt 50 indigo paused indigo 115 grove active birch 10 amber failed harbor 115 birch paused indigo 77 harbor closed amber 112 grove closed fable 99 delta ready
fable 119 fable failed amber 66 indigo ready indigo 115 grove active harbor 115 birch paused indigo 77 harbor closed amber 112 grove closed fable 99 delta ready
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040874-p1
Display full records where the value in the second column is greater than or equal to 60.
$2 >= 60
grove 21 birch failed cobalt 92 harbor ready fable 92 birch failed delta 5 ember active indigo 40 harbor pending birch 25 ember closed cobalt 48 grove paused grove 18 ember active birch 2 fable closed
cobalt 92 harbor ready fable 92 birch failed
fable 119 fable failed amber 66 indigo ready cobalt 50 indigo paused indigo 115 grove active birch 10 amber failed harbor 115 birch paused indigo 77 harbor closed amber 112 grove closed fable 99 delta ready
fable 119 fable failed amber 66 indigo ready indigo 115 grove active harbor 115 birch paused indigo 77 harbor closed amber 112 grove closed fable 99 delta ready
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040874
qwen/qwen3.7-plus
awkweave-0040875
Show whole lines whose 3rd field is between 4 and 28, inclusive.
$3 >= 4 && $3 <= 28
active fable 3 failed closed grove 24 ready paused delta 15 pending failed delta 29 closed failed juniper 1 paused paused fable 19 pending closed delta 22 closed closed harbor 22 closed active harbor 16 ready
closed grove 24 ready paused delta 15 pending paused fable 19 pending closed delta 22 closed closed harbor 22 closed active harbor 16 ready
ready amber 5 pending ready birch 15 closed closed indigo 3 paused ready delta 19 failed active birch 27 pending pending birch 28 closed pending birch 26 paused
ready amber 5 pending ready birch 15 closed ready delta 19 failed active birch 27 pending pending birch 28 closed pending birch 26 paused
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040875-p1
Show entire lines where the third field falls within the inclusive range of 4 to 28.
$3 >= 4 && $3 <= 28
active fable 3 failed closed grove 24 ready paused delta 15 pending failed delta 29 closed failed juniper 1 paused paused fable 19 pending closed delta 22 closed closed harbor 22 closed active harbor 16 ready
closed grove 24 ready paused delta 15 pending paused fable 19 pending closed delta 22 closed closed harbor 22 closed active harbor 16 ready
ready amber 5 pending ready birch 15 closed closed indigo 3 paused ready delta 19 failed active birch 27 pending pending birch 28 closed pending birch 26 paused
ready amber 5 pending ready birch 15 closed ready delta 19 failed active birch 27 pending pending birch 28 closed pending birch 26 paused
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040875
qwen/qwen3.7-plus
awkweave-0040876
Print column 2 only for rows where column 1 is exactly paused.
$1 == "paused"{print $2}
paused ivan grove 14 paused kim grove 120 pending eli indigo 29 failed lina delta 33 pending alice indigo 1 active bruno cobalt 22 pending ivan indigo 52 paused kim grove 66 ready dina birch 110 failed kim harbor 77
ivan kim kim
active hana fable 71 active dina fable 50 ready hana indigo 112 failed kim delta 75 active jules juniper 52 ready hana juniper 70 closed kim harbor 120 failed bruno birch 64 closed dina amber 93 ready chen ember 66
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040876-p1
Output only the second column for rows where the first column matches 'paused' exactly.
$1 == "paused"{print $2}
paused ivan grove 14 paused kim grove 120 pending eli indigo 29 failed lina delta 33 pending alice indigo 1 active bruno cobalt 22 pending ivan indigo 52 paused kim grove 66 ready dina birch 110 failed kim harbor 77
ivan kim kim
active hana fable 71 active dina fable 50 ready hana indigo 112 failed kim delta 75 active jules juniper 52 ready hana juniper 70 closed kim harbor 120 failed bruno birch 64 closed dina amber 93 ready chen ember 66
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040876
qwen/qwen3.7-plus
awkweave-0040877
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
83 DEBUG juniper 43 WARN cobalt 31 WARN birch 80 INFO birch 47 INFO juniper 31 ERROR juniper 92 DEBUG delta 18 ERROR juniper
31 ERROR juniper 18 ERROR juniper
114 WARN fable 26 DEBUG birch 12 INFO fable 84 INFO fable 43 DEBUG birch 66 ERROR grove
66 ERROR grove
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040877-p1
Print all fields from lines where the second field starts with 'ERROR'.
$2 ~ /^ERROR/
83 DEBUG juniper 43 WARN cobalt 31 WARN birch 80 INFO birch 47 INFO juniper 31 ERROR juniper 92 DEBUG delta 18 ERROR juniper
31 ERROR juniper 18 ERROR juniper
114 WARN fable 26 DEBUG birch 12 INFO fable 84 INFO fable 43 DEBUG birch 66 ERROR grove
66 ERROR grove
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040877
qwen/qwen3.7-plus
awkweave-0040878
Print every line except those containing the exact text delta.
$0 !~ /delta/
harbor 84 ready juniper 89 failed fable 2 ready ember 83 active delta 51 failed grove 80 paused delta 100 closed harbor 79 paused delta 999 active
harbor 84 ready juniper 89 failed fable 2 ready ember 83 active grove 80 paused harbor 79 paused
fable 60 ready juniper 20 active fable 60 failed indigo 34 ready cobalt 92 ready indigo 38 active fable 27 active delta 999 active
fable 60 ready juniper 20 active fable 60 failed indigo 34 ready cobalt 92 ready indigo 38 active fable 27 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040878-p1
Output every line that does not contain the exact string 'delta'.
$0 !~ /delta/
harbor 84 ready juniper 89 failed fable 2 ready ember 83 active delta 51 failed grove 80 paused delta 100 closed harbor 79 paused delta 999 active
harbor 84 ready juniper 89 failed fable 2 ready ember 83 active grove 80 paused harbor 79 paused
fable 60 ready juniper 20 active fable 60 failed indigo 34 ready cobalt 92 ready indigo 38 active fable 27 active delta 999 active
fable 60 ready juniper 20 active fable 60 failed indigo 34 ready cobalt 92 ready indigo 38 active fable 27 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040878
qwen/qwen3.7-plus
awkweave-0040879
Print lines 2 through 4, including both endpoints.
NR >= 2 && NR <= 4
ivan harbor 108 alice birch 59 farah harbor 76 kim delta 59 ivan grove 33 eli juniper 115
alice birch 59 farah harbor 76 kim delta 59
ivan harbor 92 farah fable 99 chen amber 13 kim grove 12 ivan harbor 75 eli delta 52 lina delta 64 gus harbor 91 ivan amber 96
farah fable 99 chen amber 13 kim grove 12
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040879-p1
Print lines 2 through 4, inclusive of both ends.
NR >= 2 && NR <= 4
ivan harbor 108 alice birch 59 farah harbor 76 kim delta 59 ivan grove 33 eli juniper 115
alice birch 59 farah harbor 76 kim delta 59
ivan harbor 92 farah fable 99 chen amber 13 kim grove 12 ivan harbor 75 eli delta 52 lina delta 64 gus harbor 91 ivan amber 96
farah fable 99 chen amber 13 kim grove 12
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0040879
qwen/qwen3.7-plus
awkweave-0040880
Output only the first 2 records.
NR <= 2
eli 7 delta kim 37 grove jules 2 harbor lina 18 delta eli 15 grove kim 54 amber dina 77 delta farah 14 grove hana 8 ember gus 101 cobalt
eli 7 delta kim 37 grove
jules 54 ember gus 20 juniper hana 115 delta farah 107 harbor gus 69 amber bruno 94 delta
jules 54 ember gus 20 juniper
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0040880-p1
Output only the first 2 records.
NR <= 2
eli 7 delta kim 37 grove jules 2 harbor lina 18 delta eli 15 grove kim 54 amber dina 77 delta farah 14 grove hana 8 ember gus 101 cobalt
eli 7 delta kim 37 grove
jules 54 ember gus 20 juniper hana 115 delta farah 107 harbor gus 69 amber bruno 94 delta
jules 54 ember gus 20 juniper
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0040880
qwen/qwen3.7-plus
awkweave-0040881
Skip the first line and print every remaining line unchanged.
NR > 1
chen 1 birch dina 7 harbor kim 57 fable alice 109 harbor alice 57 birch gus 104 indigo kim 5 cobalt jules 55 indigo
dina 7 harbor kim 57 fable alice 109 harbor alice 57 birch gus 104 indigo kim 5 cobalt jules 55 indigo
farah 71 fable lina 63 harbor chen 50 birch jules 66 birch ivan 26 amber farah 109 indigo chen 42 fable
lina 63 harbor chen 50 birch jules 66 birch ivan 26 amber farah 109 indigo chen 42 fable
skip_header
1
train
original-grammar
CC-BY-4.0
null
null