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-0014000-p1
Output the top 3 full records based on descending numeric values in column 3, maintaining original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
alice ember 25 alice harbor 13 chen birch 4 hana fable 30 lina cobalt 13 chen fable 10
hana fable 30 alice ember 25 alice harbor 13
dina fable 1 gus grove 9 gus birch 4 dina fable 13 hana indigo 27 alice amber 14 lina grove 30
lina grove 30 hana indigo 27 alice amber 14
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014000
qwen/qwen3.7-plus
awkweave-0014001
For each line, output fields 5 and 3, in that order.
{print $5, $3}
ember fable dina pending 73 indigo cobalt hana failed 95 amber juniper eli active 20 grove amber lina paused 40 fable grove eli active 54 ember birch lina ready 116
73 dina 95 hana 20 eli 40 lina 54 eli 116 lina
grove birch farah pending 2 amber fable dina pending 58 grove amber farah closed 13 harbor ember farah active 89 cobalt amber chen closed 78 juniper ember gus pending 17 grove indigo jules paused 30 birch birch kim failed 72 grove ember dina active 55 delta delta kim closed 118
2 farah 58 dina 13 farah 89 farah 78 chen 17 gus 30 jules 72 kim 55 dina 118 kim
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014001-p1
For every line, display field 5 followed by field 3.
{print $5, $3}
ember fable dina pending 73 indigo cobalt hana failed 95 amber juniper eli active 20 grove amber lina paused 40 fable grove eli active 54 ember birch lina ready 116
73 dina 95 hana 20 eli 40 lina 54 eli 116 lina
grove birch farah pending 2 amber fable dina pending 58 grove amber farah closed 13 harbor ember farah active 89 cobalt amber chen closed 78 juniper ember gus pending 17 grove indigo jules paused 30 birch birch kim failed 72 grove ember dina active 55 delta delta kim closed 118
2 farah 58 dina 13 farah 89 farah 78 chen 17 gus 30 jules 72 kim 55 dina 118 kim
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014001
qwen/qwen3.7-plus
awkweave-0014002
Print the last field of every input line.
{print $NF}
birch ready indigo 2 harbor 49 farah fable pending amber 30 amber 20 lina ember pending fable 20 indigo 5 dina harbor closed amber 38 amber 119 eli fable ready amber 34 ember 105 gus juniper pending grove 93 harbor 97 hana grove paused grove 41 amber 23 gus indigo pending juniper 25 ember 104 jules
farah lina dina eli gus hana gus jules
grove closed grove 17 cobalt 9 alice delta ready cobalt 99 cobalt 94 ivan fable ready indigo 17 ember 71 lina fable ready delta 33 grove 65 farah delta pending harbor 51 delta 102 gus delta closed delta 91 amber 7 farah
alice ivan lina farah gus farah
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014002-p1
Print the final field from each input line.
{print $NF}
birch ready indigo 2 harbor 49 farah fable pending amber 30 amber 20 lina ember pending fable 20 indigo 5 dina harbor closed amber 38 amber 119 eli fable ready amber 34 ember 105 gus juniper pending grove 93 harbor 97 hana grove paused grove 41 amber 23 gus indigo pending juniper 25 ember 104 jules
farah lina dina eli gus hana gus jules
grove closed grove 17 cobalt 9 alice delta ready cobalt 99 cobalt 94 ivan fable ready indigo 17 ember 71 lina fable ready delta 33 grove 65 farah delta pending harbor 51 delta 102 gus delta closed delta 91 amber 7 farah
alice ivan lina farah gus farah
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014002
qwen/qwen3.7-plus
awkweave-0014003
Print the complete records where column 1 is at least 59.
$1 >= 59
43 gus pending paused 119 chen closed ready 60 lina active active 49 ivan pending failed 82 bruno ready pending 13 ivan pending closed 65 ivan pending paused 29 dina ready pending 110 kim active ready
119 chen closed ready 60 lina active active 82 bruno ready pending 65 ivan pending paused 110 kim active ready
17 bruno closed closed 52 gus active active 72 dina pending paused 100 dina active active 1 dina active active 83 lina active failed
72 dina pending paused 100 dina active active 83 lina active failed
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014003-p1
Display all complete records where the value in column 1 is greater than or equal to 59.
$1 >= 59
43 gus pending paused 119 chen closed ready 60 lina active active 49 ivan pending failed 82 bruno ready pending 13 ivan pending closed 65 ivan pending paused 29 dina ready pending 110 kim active ready
119 chen closed ready 60 lina active active 82 bruno ready pending 65 ivan pending paused 110 kim active ready
17 bruno closed closed 52 gus active active 72 dina pending paused 100 dina active active 1 dina active active 83 lina active failed
72 dina pending paused 100 dina active active 83 lina active failed
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014003
qwen/qwen3.7-plus
awkweave-0014004
Show whole lines whose 3rd field is between 10 and 27, inclusive.
$3 >= 10 && $3 <= 27
grove kim 23 delta indigo ivan 30 indigo delta eli 28 delta birch farah 29 harbor cobalt eli 23 harbor juniper gus 19 fable harbor chen 7 delta
grove kim 23 delta cobalt eli 23 harbor juniper gus 19 fable
harbor ivan 20 harbor grove eli 25 amber delta chen 6 ember amber eli 1 cobalt grove hana 21 delta grove lina 1 juniper harbor jules 20 ember ember kim 13 indigo delta hana 4 delta grove gus 4 cobalt
harbor ivan 20 harbor grove eli 25 amber grove hana 21 delta harbor jules 20 ember ember kim 13 indigo
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014004-p1
Show entire lines where the third field falls within the inclusive range of 10 to 27.
$3 >= 10 && $3 <= 27
grove kim 23 delta indigo ivan 30 indigo delta eli 28 delta birch farah 29 harbor cobalt eli 23 harbor juniper gus 19 fable harbor chen 7 delta
grove kim 23 delta cobalt eli 23 harbor juniper gus 19 fable
harbor ivan 20 harbor grove eli 25 amber delta chen 6 ember amber eli 1 cobalt grove hana 21 delta grove lina 1 juniper harbor jules 20 ember ember kim 13 indigo delta hana 4 delta grove gus 4 cobalt
harbor ivan 20 harbor grove eli 25 amber grove hana 21 delta harbor jules 20 ember ember kim 13 indigo
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014004
qwen/qwen3.7-plus
awkweave-0014005
Print column 2 only for rows where column 3 is exactly active.
$3 == "active"{print $2}
21 chen closed birch 106 chen closed amber 66 lina closed birch 58 chen pending indigo 116 alice ready amber 65 gus ready grove 3 farah active harbor
farah
4 dina pending juniper 57 dina closed indigo 2 jules pending grove 33 jules pending delta 32 chen closed ember 17 chen pending juniper 10 eli ready cobalt
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014005-p1
Output only column 2 for rows where column 3 matches the exact string active.
$3 == "active"{print $2}
21 chen closed birch 106 chen closed amber 66 lina closed birch 58 chen pending indigo 116 alice ready amber 65 gus ready grove 3 farah active harbor
farah
4 dina pending juniper 57 dina closed indigo 2 jules pending grove 33 jules pending delta 32 chen closed ember 17 chen pending juniper 10 eli ready cobalt
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014005
qwen/qwen3.7-plus
awkweave-0014006
Print all fields from lines where field 1 begins with INFO.
$1 ~ /^INFO/
WARN 86 cobalt DEBUG 120 ember WARN 11 indigo ERROR 10 amber WARN 96 harbor ERROR 87 cobalt ERROR 89 grove DEBUG 86 harbor ERROR 56 delta INFO 14 ember
INFO 14 ember
ERROR 82 grove INFO 31 harbor WARN 79 harbor ERROR 54 indigo INFO 21 fable ERROR 120 fable ERROR 113 ember
INFO 31 harbor INFO 21 fable
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014006-p1
Print all fields from lines where the first field starts with the prefix INFO.
$1 ~ /^INFO/
WARN 86 cobalt DEBUG 120 ember WARN 11 indigo ERROR 10 amber WARN 96 harbor ERROR 87 cobalt ERROR 89 grove DEBUG 86 harbor ERROR 56 delta INFO 14 ember
INFO 14 ember
ERROR 82 grove INFO 31 harbor WARN 79 harbor ERROR 54 indigo INFO 21 fable ERROR 120 fable ERROR 113 ember
INFO 31 harbor INFO 21 fable
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014006
qwen/qwen3.7-plus
awkweave-0014007
Print every line except those containing the exact text indigo.
$0 !~ /indigo/
amber 22 paused delta 16 pending juniper 28 ready birch 79 pending harbor 72 closed indigo 56 pending grove 79 paused indigo 999 active
amber 22 paused delta 16 pending juniper 28 ready birch 79 pending harbor 72 closed grove 79 paused
grove 51 failed delta 36 failed juniper 20 closed ember 22 ready fable 89 closed harbor 114 closed juniper 113 failed amber 51 closed indigo 2 closed cobalt 2 pending indigo 999 active
grove 51 failed delta 36 failed juniper 20 closed ember 22 ready fable 89 closed harbor 114 closed juniper 113 failed amber 51 closed cobalt 2 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014007-p1
Print every line that does not contain the exact substring indigo.
$0 !~ /indigo/
amber 22 paused delta 16 pending juniper 28 ready birch 79 pending harbor 72 closed indigo 56 pending grove 79 paused indigo 999 active
amber 22 paused delta 16 pending juniper 28 ready birch 79 pending harbor 72 closed grove 79 paused
grove 51 failed delta 36 failed juniper 20 closed ember 22 ready fable 89 closed harbor 114 closed juniper 113 failed amber 51 closed indigo 2 closed cobalt 2 pending indigo 999 active
grove 51 failed delta 36 failed juniper 20 closed ember 22 ready fable 89 closed harbor 114 closed juniper 113 failed amber 51 closed cobalt 2 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014007
qwen/qwen3.7-plus
awkweave-0014008
Print lines 3 through 6, including both endpoints.
NR >= 3 && NR <= 6
hana cobalt 111 jules cobalt 75 farah harbor 53 hana juniper 7 alice birch 69 hana juniper 34 bruno juniper 12 gus harbor 48 alice cobalt 54
farah harbor 53 hana juniper 7 alice birch 69 hana juniper 34
kim ember 44 kim amber 0 dina juniper 107 hana cobalt 44 chen birch 1 alice cobalt 108 chen cobalt 29 dina indigo 30 eli cobalt 68 dina amber 1
dina juniper 107 hana cobalt 44 chen birch 1 alice cobalt 108
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014008-p1
Output lines 3 through 6, inclusive of both endpoints.
NR >= 3 && NR <= 6
hana cobalt 111 jules cobalt 75 farah harbor 53 hana juniper 7 alice birch 69 hana juniper 34 bruno juniper 12 gus harbor 48 alice cobalt 54
farah harbor 53 hana juniper 7 alice birch 69 hana juniper 34
kim ember 44 kim amber 0 dina juniper 107 hana cobalt 44 chen birch 1 alice cobalt 108 chen cobalt 29 dina indigo 30 eli cobalt 68 dina amber 1
dina juniper 107 hana cobalt 44 chen birch 1 alice cobalt 108
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014008
qwen/qwen3.7-plus
awkweave-0014009
Output only the first 5 records.
NR <= 5
dina 76 birch lina 26 ember jules 61 amber gus 40 juniper alice 42 amber eli 117 cobalt
dina 76 birch lina 26 ember jules 61 amber gus 40 juniper alice 42 amber
dina 84 birch eli 2 cobalt ivan 30 grove hana 57 indigo kim 41 grove jules 3 indigo farah 20 ember
dina 84 birch eli 2 cobalt ivan 30 grove hana 57 indigo kim 41 grove
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014009-p1
Display only the first 5 records.
NR <= 5
dina 76 birch lina 26 ember jules 61 amber gus 40 juniper alice 42 amber eli 117 cobalt
dina 76 birch lina 26 ember jules 61 amber gus 40 juniper alice 42 amber
dina 84 birch eli 2 cobalt ivan 30 grove hana 57 indigo kim 41 grove jules 3 indigo farah 20 ember
dina 84 birch eli 2 cobalt ivan 30 grove hana 57 indigo kim 41 grove
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014009
qwen/qwen3.7-plus
awkweave-0014010
Skip the first line and print every remaining line unchanged.
NR > 1
farah 7 birch hana 73 birch ivan 24 cobalt ivan 15 ember alice 107 grove jules 53 harbor hana 68 delta jules 93 ember jules 98 indigo
hana 73 birch ivan 24 cobalt ivan 15 ember alice 107 grove jules 53 harbor hana 68 delta jules 93 ember jules 98 indigo
ivan 109 fable chen 34 delta jules 56 cobalt kim 29 indigo chen 35 indigo hana 30 fable
chen 34 delta jules 56 cobalt kim 29 indigo chen 35 indigo hana 30 fable
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014010-p1
Omit the first line and print all subsequent lines exactly as they appear.
NR > 1
farah 7 birch hana 73 birch ivan 24 cobalt ivan 15 ember alice 107 grove jules 53 harbor hana 68 delta jules 93 ember jules 98 indigo
hana 73 birch ivan 24 cobalt ivan 15 ember alice 107 grove jules 53 harbor hana 68 delta jules 93 ember jules 98 indigo
ivan 109 fable chen 34 delta jules 56 cobalt kim 29 indigo chen 35 indigo hana 30 fable
chen 34 delta jules 56 cobalt kim 29 indigo chen 35 indigo hana 30 fable
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014010
qwen/qwen3.7-plus
awkweave-0014011
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
lina closed 89 chen closed 56 alice ready 53 chen paused 0 kim ready 101 ivan ready 116 bruno active 65 jules active 67 kim pending 49
0
bruno active 27 dina active 90 kim ready 54 eli paused 6 kim paused 16 farah failed 13 alice failed 90 chen ready 108
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014011-p1
Count the number of records where column 2 contains failed, outputting 0 if no such records exist.
$2 == "failed"{n++}END{print n+0}
lina closed 89 chen closed 56 alice ready 53 chen paused 0 kim ready 101 ivan ready 116 bruno active 65 jules active 67 kim pending 49
0
bruno active 27 dina active 90 kim ready 54 eli paused 6 kim paused 16 farah failed 13 alice failed 90 chen ready 108
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014011
qwen/qwen3.7-plus
awkweave-0014012
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
30 bruno birch 11 dina delta 29 jules fable 10 lina cobalt 30 ivan fable 14 farah delta 3 kim harbor 8 chen ember
135
26 kim fable 8 bruno ember 3 chen ember 10 bruno delta 18 ivan juniper 1 kim fable 27 bruno fable 27 farah cobalt 25 farah birch
145
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014012-p1
Compute the total of all integer values found in the first column and output the result.
{s+=$1}END{print s+0}
30 bruno birch 11 dina delta 29 jules fable 10 lina cobalt 30 ivan fable 14 farah delta 3 kim harbor 8 chen ember
135
26 kim fable 8 bruno ember 3 chen ember 10 bruno delta 18 ivan juniper 1 kim fable 27 bruno fable 27 farah cobalt 25 farah birch
145
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014012
qwen/qwen3.7-plus
awkweave-0014013
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
bruno 9 cobalt farah 21 amber kim 5 ember eli 20 cobalt gus 3 ember ivan 16 amber chen 23 ember farah 17 harbor
14.25
alice 15 indigo alice 25 fable bruno 14 juniper kim 1 birch bruno 25 birch alice 4 delta jules 26 indigo chen 8 delta
14.75
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014013-p1
Output the average of the values in the second column, formatted to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
bruno 9 cobalt farah 21 amber kim 5 ember eli 20 cobalt gus 3 ember ivan 16 amber chen 23 ember farah 17 harbor
14.25
alice 15 indigo alice 25 fable bruno 14 juniper kim 1 birch bruno 25 birch alice 4 delta jules 26 indigo chen 8 delta
14.75
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014013
qwen/qwen3.7-plus
awkweave-0014014
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
grove 19 gus indigo 18 farah grove 9 chen amber 1 jules grove 22 alice birch 20 alice delta 30 farah ember 28 eli ember 29 lina amber 9 chen
1
delta 24 lina amber 26 bruno ember 7 alice juniper 21 farah juniper 18 dina fable 18 kim
7
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014014-p1
Identify and display the minimum numeric value present in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
grove 19 gus indigo 18 farah grove 9 chen amber 1 jules grove 22 alice birch 20 alice delta 30 farah ember 28 eli ember 29 lina amber 9 chen
1
delta 24 lina amber 26 bruno ember 7 alice juniper 21 farah juniper 18 dina fable 18 kim
7
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014014
qwen/qwen3.7-plus
awkweave-0014015
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
10 gus harbor 16 lina harbor 3 gus delta 18 farah amber 11 jules fable 17 chen indigo 13 dina cobalt
18
26 farah harbor 21 jules juniper 10 ivan delta 30 eli harbor 15 bruno juniper 23 ivan amber 14 farah fable 2 ivan fable
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014015-p1
Identify and display the maximum numeric value present in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
10 gus harbor 16 lina harbor 3 gus delta 18 farah amber 11 jules fable 17 chen indigo 13 dina cobalt
18
26 farah harbor 21 jules juniper 10 ivan delta 30 eli harbor 15 bruno juniper 23 ivan amber 14 farah fable 2 ivan fable
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014015
qwen/qwen3.7-plus
awkweave-0014016
Count all input records and print the total.
END{print NR}
ivan 33 dina 116 jules 116 gus 4 gus 30 chen 47 farah 10 kim 45 bruno 32
9
ivan 89 bruno 34 hana 51 hana 90 bruno 87 bruno 93 eli 18 kim 50
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014016-p1
Count the total number of input lines and print this count.
END{print NR}
ivan 33 dina 116 jules 116 gus 4 gus 30 chen 47 farah 10 kim 45 bruno 32
9
ivan 89 bruno 34 hana 51 hana 90 bruno 87 bruno 93 eli 18 kim 50
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014016
qwen/qwen3.7-plus
awkweave-0014017
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
chen juniper 43 bruno indigo 80 bruno fable 52 ivan grove 16 eli ember 43 ivan grove 16 gus cobalt 18 dina fable 96 chen cobalt 87 eli cobalt 2
chen juniper 43 bruno indigo 80 bruno fable 52 ivan grove 16 eli ember 43 gus cobalt 18 dina fable 96 chen cobalt 87 eli cobalt 2
kim amber 31 alice cobalt 34 kim grove 18 dina ember 34 hana fable 12 ivan delta 65 eli indigo 18 hana cobalt 104 farah indigo 81 farah indigo 81 alice cobalt 83
kim amber 31 alice cobalt 34 kim grove 18 dina ember 34 hana fable 12 ivan delta 65 eli indigo 18 hana cobalt 104 farah indigo 81 alice cobalt 83
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014017-p1
Eliminate duplicate lines by keeping only the first instance of each unique line, maintaining the original sequence.
!seen[$0]++
chen juniper 43 bruno indigo 80 bruno fable 52 ivan grove 16 eli ember 43 ivan grove 16 gus cobalt 18 dina fable 96 chen cobalt 87 eli cobalt 2
chen juniper 43 bruno indigo 80 bruno fable 52 ivan grove 16 eli ember 43 gus cobalt 18 dina fable 96 chen cobalt 87 eli cobalt 2
kim amber 31 alice cobalt 34 kim grove 18 dina ember 34 hana fable 12 ivan delta 65 eli indigo 18 hana cobalt 104 farah indigo 81 farah indigo 81 alice cobalt 83
kim amber 31 alice cobalt 34 kim grove 18 dina ember 34 hana fable 12 ivan delta 65 eli indigo 18 hana cobalt 104 farah indigo 81 alice cobalt 83
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014017
qwen/qwen3.7-plus
awkweave-0014018
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
gus amber 79 alice delta 72 jules amber 11 ivan birch 100 gus birch 104 lina birch 119 farah ember 77
gus amber 79 alice delta 72 jules amber 11 ivan birch 100 lina birch 119 farah ember 77
dina delta 95 dina indigo 35 farah juniper 8 alice juniper 32 gus grove 52 hana ember 30 ivan grove 44 alice amber 93 farah harbor 40
dina delta 95 farah juniper 8 alice juniper 32 gus grove 52 hana ember 30 ivan grove 44
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014018-p1
Retain only the initial occurrence for every unique value in the first column, ensuring the original order is preserved.
!seen[$1]++
gus amber 79 alice delta 72 jules amber 11 ivan birch 100 gus birch 104 lina birch 119 farah ember 77
gus amber 79 alice delta 72 jules amber 11 ivan birch 100 lina birch 119 farah ember 77
dina delta 95 dina indigo 35 farah juniper 8 alice juniper 32 gus grove 52 hana ember 30 ivan grove 44 alice amber 93 farah harbor 40
dina delta 95 farah juniper 8 alice juniper 32 gus grove 52 hana ember 30 ivan grove 44
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014018
qwen/qwen3.7-plus
awkweave-0014019
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
hana 17 amber eli 27 ember jules 23 fable eli 18 delta gus 27 indigo ivan 18 harbor kim 9 harbor
hana 17 eli 44 jules 67 eli 85 gus 112 ivan 130 kim 139
lina 25 cobalt hana 16 grove lina 30 delta alice 9 birch gus 9 ember lina 25 juniper alice 30 harbor jules 17 birch
lina 25 hana 41 lina 71 alice 80 gus 89 lina 114 alice 144 jules 161
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014019-p1
For each entry, output the value from the first column alongside the cumulative sum of the second column, separated by a space.
{s+=$2;print $1,s}
hana 17 amber eli 27 ember jules 23 fable eli 18 delta gus 27 indigo ivan 18 harbor kim 9 harbor
hana 17 eli 44 jules 67 eli 85 gus 112 ivan 130 kim 139
lina 25 cobalt hana 16 grove lina 30 delta alice 9 birch gus 9 ember lina 25 juniper alice 30 harbor jules 17 birch
lina 25 hana 41 lina 71 alice 80 gus 89 lina 114 alice 144 jules 161
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014019
qwen/qwen3.7-plus
awkweave-0014020
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
jules 30 24 harbor gus 12 9 harbor ivan 20 8 delta chen 30 13 fable ivan 12 17 cobalt eli 23 28 delta bruno 29 3 harbor
jules 54 gus 21 ivan 28 chen 43 ivan 29 eli 51 bruno 32
farah 9 7 birch alice 28 18 juniper farah 6 24 birch gus 2 11 indigo kim 20 1 harbor lina 15 7 delta chen 4 1 amber hana 30 24 birch hana 1 7 harbor
farah 16 alice 46 farah 30 gus 13 kim 21 lina 22 chen 5 hana 54 hana 8
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014020-p1
For each row, output the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
jules 30 24 harbor gus 12 9 harbor ivan 20 8 delta chen 30 13 fable ivan 12 17 cobalt eli 23 28 delta bruno 29 3 harbor
jules 54 gus 21 ivan 28 chen 43 ivan 29 eli 51 bruno 32
farah 9 7 birch alice 28 18 juniper farah 6 24 birch gus 2 11 indigo kim 20 1 harbor lina 15 7 delta chen 4 1 amber hana 30 24 birch hana 1 7 harbor
farah 16 alice 46 farah 30 gus 13 kim 21 lina 22 chen 5 hana 54 hana 8
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014020
qwen/qwen3.7-plus
awkweave-0014021
Print column 1 and pass when column 2 is at least 27; otherwise print fail.
{print $1,($2>=27?"pass":"fail")}
jules 24 chen 14 bruno 19 gus 18 bruno 14 chen 20 dina 17 chen 30 eli 19
jules fail chen fail bruno fail gus fail bruno fail chen fail dina fail chen pass eli fail
farah 29 hana 20 hana 15 chen 26 farah 24 alice 13 chen 1
farah pass hana fail hana fail chen fail farah fail alice fail chen fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014021-p1
Output the value from the first column; append 'pass' if the second column's value is 27 or greater, otherwise append 'fail'.
{print $1,($2>=27?"pass":"fail")}
jules 24 chen 14 bruno 19 gus 18 bruno 14 chen 20 dina 17 chen 30 eli 19
jules fail chen fail bruno fail gus fail bruno fail chen fail dina fail chen pass eli fail
farah 29 hana 20 hana 15 chen 26 farah 24 alice 13 chen 1
farah pass hana fail hana fail chen fail farah fail alice fail chen fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014021
qwen/qwen3.7-plus
awkweave-0014022
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
hana fable 72 chen harbor 22 bruno fable 1 gus harbor 45 gus juniper 71 farah grove 33
HANA CHEN BRUNO GUS GUS FARAH
alice delta 38 kim amber 96 bruno indigo 95 alice indigo 36 ivan indigo 23 ivan indigo 112
ALICE KIM BRUNO ALICE IVAN IVAN
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014022-p1
Transform the text in the first column to uppercase and print only that modified column.
{print toupper($1)}
hana fable 72 chen harbor 22 bruno fable 1 gus harbor 45 gus juniper 71 farah grove 33
HANA CHEN BRUNO GUS GUS FARAH
alice delta 38 kim amber 96 bruno indigo 95 alice indigo 36 ivan indigo 23 ivan indigo 112
ALICE KIM BRUNO ALICE IVAN IVAN
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014022
qwen/qwen3.7-plus
awkweave-0014023
From column 1, print 2 characters starting at character 2.
{print substr($1,2,2)}
harbor 9 indigo 65 birch 112 juniper 109 ember 43 amber 78 birch 85
ar nd ir un mb mb ir
harbor 9 grove 103 harbor 60 delta 23 amber 50 birch 86
ar ro ar el mb ir
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014023-p1
Extract and print a substring of length 2 from the first column, starting at the second character.
{print substr($1,2,2)}
harbor 9 indigo 65 birch 112 juniper 109 ember 43 amber 78 birch 85
ar nd ir un mb mb ir
harbor 9 grove 103 harbor 60 delta 23 amber 50 birch 86
ar ro ar el mb ir
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014023
qwen/qwen3.7-plus
awkweave-0014024
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
juniper_harbor 20 indigo_juniper 4 delta_delta 18 fable_delta 111 ember_birch 47 delta_ember 116 grove_birch 8
juniper harbor indigo juniper delta delta fable delta ember birch delta ember grove birch
ember_indigo 83 indigo_indigo 109 cobalt_birch 89 birch_cobalt 2 delta_harbor 39 delta_grove 63 indigo_grove 45
ember indigo indigo indigo cobalt birch birch cobalt delta harbor delta grove indigo grove
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014024-p1
Substitute all underscores with spaces in the first column and output the modified values.
{gsub(/_/," ",$1);print $1}
juniper_harbor 20 indigo_juniper 4 delta_delta 18 fable_delta 111 ember_birch 47 delta_ember 116 grove_birch 8
juniper harbor indigo juniper delta delta fable delta ember birch delta ember grove birch
ember_indigo 83 indigo_indigo 109 cobalt_birch 89 birch_cobalt 2 delta_harbor 39 delta_grove 63 indigo_grove 45
ember indigo indigo indigo cobalt birch birch cobalt delta harbor delta grove indigo grove
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014024
qwen/qwen3.7-plus
awkweave-0014025
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)}
dina fable 12 ready farah amber 18 failed hana birch 52 closed gus cobalt 56 active lina grove 11 paused chen birch 117 ready
ready 12 fable dina failed 18 amber farah closed 52 birch hana active 56 cobalt gus paused 11 grove lina ready 117 birch chen
alice ember 97 active lina ember 15 closed lina cobalt 41 ready kim juniper 7 active dina juniper 97 ready eli grove 28 pending farah delta 61 active chen birch 27 closed
active 97 ember alice closed 15 ember lina ready 41 cobalt lina active 7 juniper kim ready 97 juniper dina pending 28 grove eli active 61 delta farah closed 27 birch chen
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014025-p1
Reverse the sequence of fields for each line and display every field.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
dina fable 12 ready farah amber 18 failed hana birch 52 closed gus cobalt 56 active lina grove 11 paused chen birch 117 ready
ready 12 fable dina failed 18 amber farah closed 52 birch hana active 56 cobalt gus paused 11 grove lina ready 117 birch chen
alice ember 97 active lina ember 15 closed lina cobalt 41 ready kim juniper 7 active dina juniper 97 ready eli grove 28 pending farah delta 61 active chen birch 27 closed
active 97 ember alice closed 15 ember lina ready 41 cobalt lina active 7 juniper kim ready 97 juniper dina pending 28 grove eli active 61 delta farah closed 27 birch chen
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014025
qwen/qwen3.7-plus
awkweave-0014026
Print the number of whitespace-separated fields on each line.
{print NF}
bruno juniper 69 ready kim cobalt 64 active eli fable 43 paused bruno cobalt 1 active lina grove 40 closed dina cobalt 22 active hana fable 20 closed chen birch 110 paused bruno amber 72 active hana indigo 112 active
4 4 4 4 4 4 4 4 4 4
eli birch 110 ready eli grove 81 pending hana grove 57 closed bruno grove 3 closed chen birch 47 failed jules juniper 83 closed chen harbor 38 pending kim indigo 18 ready farah cobalt 18 pending eli ember 54 pending
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014026-p1
Output the count of whitespace-delimited fields present on each line.
{print NF}
bruno juniper 69 ready kim cobalt 64 active eli fable 43 paused bruno cobalt 1 active lina grove 40 closed dina cobalt 22 active hana fable 20 closed chen birch 110 paused bruno amber 72 active hana indigo 112 active
4 4 4 4 4 4 4 4 4 4
eli birch 110 ready eli grove 81 pending hana grove 57 closed bruno grove 3 closed chen birch 47 failed jules juniper 83 closed chen harbor 38 pending kim indigo 18 ready farah cobalt 18 pending eli ember 54 pending
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014026
qwen/qwen3.7-plus
awkweave-0014027
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]]}
ivan gamma 21 farah beta 35 gus alpha 20 chen delta 6 alice gamma 92 lina beta 75 lina gamma 69 ivan beta 13 lina delta 22 bruno delta 69
gamma 3 beta 3 alpha 1 delta 3
hana alpha 68 kim alpha 53 bruno delta 104 ivan delta 6 ivan gamma 75 hana gamma 16 dina gamma 105
alpha 2 delta 2 gamma 3
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014027-p1
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]]}
ivan gamma 21 farah beta 35 gus alpha 20 chen delta 6 alice gamma 92 lina beta 75 lina gamma 69 ivan beta 13 lina delta 22 bruno delta 69
gamma 3 beta 3 alpha 1 delta 3
hana alpha 68 kim alpha 53 bruno delta 104 ivan delta 6 ivan gamma 75 hana gamma 16 dina gamma 105
alpha 2 delta 2 gamma 3
count_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0014027
qwen/qwen3.7-plus
awkweave-0014028
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
lina gamma 26 eli beta 12 eli alpha 22 ivan alpha 27 chen beta 15 eli alpha 29 chen beta 20
gamma 26 beta 47 alpha 78
farah gamma 7 farah alpha 10 chen gamma 24 jules delta 16 jules beta 1 eli beta 12 hana delta 27 gus beta 29 ivan beta 7 eli beta 13
gamma 31 alpha 10 delta 43 beta 62
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014028-p1
Calculate the sum of the third column grouped by the second column's categories, displaying 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]]}
lina gamma 26 eli beta 12 eli alpha 22 ivan alpha 27 chen beta 15 eli alpha 29 chen beta 20
gamma 26 beta 47 alpha 78
farah gamma 7 farah alpha 10 chen gamma 24 jules delta 16 jules beta 1 eli beta 12 hana delta 27 gus beta 29 ivan beta 7 eli beta 13
gamma 31 alpha 10 delta 43 beta 62
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014028
qwen/qwen3.7-plus
awkweave-0014029
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]]}
gamma grove 15 gamma ember 50 gamma cobalt 59 beta grove 71 beta birch 93 beta grove 29 delta fable 50 gamma juniper 70 alpha harbor 68 delta harbor 36
gamma 4 beta 3 delta 2
gamma cobalt 34 gamma indigo 100 beta juniper 70 beta fable 30 delta birch 70 delta birch 70 beta delta 45
gamma 2 beta 3 delta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014029-p1
List each duplicate value from the first column along with its frequency, sorted by the order of 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]]}
gamma grove 15 gamma ember 50 gamma cobalt 59 beta grove 71 beta birch 93 beta grove 29 delta fable 50 gamma juniper 70 alpha harbor 68 delta harbor 36
gamma 4 beta 3 delta 2
gamma cobalt 34 gamma indigo 100 beta juniper 70 beta fable 30 delta birch 70 delta birch 70 beta delta 45
gamma 2 beta 3 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014029
qwen/qwen3.7-plus
awkweave-0014030
The first row is a header. Print the record_id column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
state score record_id note r001 bruno 14 paused r002 bruno 6 closed r003 bruno 8 paused r004 ivan 28 ready r005 dina 21 failed r006 dina 25 pending r007 farah 16 closed r008 hana 3 paused r009 kim 2 failed
14 6 8 28 21 25 16 3 2
state score record_id note r001 alice 22 paused r002 chen 18 failed r003 bruno 9 closed r004 chen 28 ready r005 alice 4 active r006 eli 9 paused r007 alice 5 failed r008 ivan 7 pending r009 dina 14 pending r010 kim 17 pending
22 18 9 28 4 9 5 7 14 17
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014030-p1
Treating the first line as a header, output the record_id field for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["record_id"]}
state score record_id note r001 bruno 14 paused r002 bruno 6 closed r003 bruno 8 paused r004 ivan 28 ready r005 dina 21 failed r006 dina 25 pending r007 farah 16 closed r008 hana 3 paused r009 kim 2 failed
14 6 8 28 21 25 16 3 2
state score record_id note r001 alice 22 paused r002 chen 18 failed r003 bruno 9 closed r004 chen 28 ready r005 alice 4 active r006 eli 9 paused r007 alice 5 failed r008 ivan 7 pending r009 dina 14 pending r010 kim 17 pending
22 18 9 28 4 9 5 7 14 17
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014030
qwen/qwen3.7-plus
awkweave-0014031
The first row is a header. Print display_name for data rows whose score is greater than 24.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>24{print $h["display_name"]}
record_id display_name score state r001 eli 15 ready r002 chen 15 failed r003 gus 10 failed r004 lina 19 paused r005 gus 11 active r006 jules 6 active r007 kim 26 active r008 hana 14 failed
kim
record_id display_name score state r001 lina 14 failed r002 dina 16 active r003 alice 14 failed r004 gus 22 pending r005 ivan 16 closed r006 bruno 6 paused r007 eli 3 paused r008 alice 11 paused r009 kim 10 paused
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014031-p1
With the first line as a header, output the display_name field for data rows where the score is strictly greater than 24.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>24{print $h["display_name"]}
record_id display_name score state r001 eli 15 ready r002 chen 15 failed r003 gus 10 failed r004 lina 19 paused r005 gus 11 active r006 jules 6 active r007 kim 26 active r008 hana 14 failed
kim
record_id display_name score state r001 lina 14 failed r002 dina 16 active r003 alice 14 failed r004 gus 22 pending r005 ivan 16 closed r006 bruno 6 paused r007 eli 3 paused r008 alice 11 paused r009 kim 10 paused
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014031
qwen/qwen3.7-plus
awkweave-0014032
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
hana 9 failed jules 20 paused eli 10 active gus 26 ready dina 3 paused dina 2 closed hana 29 failed lina 19 ready
9 20 10 26 3 2 29 19
chen 13 failed kim 4 ready farah 30 closed hana 15 paused eli 30 active chen 16 failed jules 10 active farah 15 pending alice 25 active chen 24 ready
13 4 30 15 30 16 10 15 25 24
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014032-p1
Given tab-separated input, extract and print the second column from every record.
BEGIN{FS=OFS="\t"}{print $2}
hana 9 failed jules 20 paused eli 10 active gus 26 ready dina 3 paused dina 2 closed hana 29 failed lina 19 ready
9 20 10 26 3 2 29 19
chen 13 failed kim 4 ready farah 30 closed hana 15 paused eli 30 active chen 16 failed jules 10 active farah 15 pending alice 25 active chen 24 ready
13 4 30 15 30 16 10 15 25 24
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014032
qwen/qwen3.7-plus
awkweave-0014033
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 19.
BEGIN{FS=OFS=","}$2>19{print $1}
kim,20,pending ivan,12,ready kim,20,ready kim,29,ready ivan,27,failed eli,25,paused alice,1,ready lina,16,ready
kim kim kim ivan eli
dina,15,closed eli,3,pending farah,12,closed dina,19,ready ivan,10,ready eli,2,closed farah,7,closed
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014033-p1
For simple comma-separated input without quoted commas, print the first column if the second column's value is greater than 19.
BEGIN{FS=OFS=","}$2>19{print $1}
kim,20,pending ivan,12,ready kim,20,ready kim,29,ready ivan,27,failed eli,25,paused alice,1,ready lina,16,ready
kim kim kim ivan eli
dina,15,closed eli,3,pending farah,12,closed dina,19,ready ivan,10,ready eli,2,closed farah,7,closed
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014033
qwen/qwen3.7-plus
awkweave-0014034
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
ivan fable 89 gus delta 40 farah birch 55 ivan cobalt 64 gus amber 34 eli birch 81
ivan fable 89 gus delta 40 farah birch 55 ivan cobalt 64 gus amber 34 eli birch 81
jules birch 29 alice amber 106 bruno harbor 46 kim birch 48 gus ember 115 farah juniper 50 chen cobalt 80 lina ember 0 bruno juniper 0
jules birch 29 alice amber 106 bruno harbor 46 kim birch 48 gus ember 115 farah juniper 50 chen cobalt 80 lina ember 0 bruno juniper 0
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014034-p1
Remove leading and trailing whitespace, and replace any internal sequences of whitespace with a single space.
{$1=$1;print}
ivan fable 89 gus delta 40 farah birch 55 ivan cobalt 64 gus amber 34 eli birch 81
ivan fable 89 gus delta 40 farah birch 55 ivan cobalt 64 gus amber 34 eli birch 81
jules birch 29 alice amber 106 bruno harbor 46 kim birch 48 gus ember 115 farah juniper 50 chen cobalt 80 lina ember 0 bruno juniper 0
jules birch 29 alice amber 106 bruno harbor 46 kim birch 48 gus ember 115 farah juniper 50 chen cobalt 80 lina ember 0 bruno juniper 0
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014034
qwen/qwen3.7-plus
awkweave-0014035
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
chen birch 41 active eli cobalt 53 failed chen cobalt 21 failed jules grove 93 active chen delta 38 pending dina indigo 76 pending
dina indigo 76 pending
jules grove 94 failed chen fable 11 closed alice juniper 65 pending kim cobalt 81 pending lina delta 8 ready chen juniper 41 ready gus juniper 21 ready
alice juniper 65 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014035-p1
Identify and print the longest line from the input; in case of a tie in length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
chen birch 41 active eli cobalt 53 failed chen cobalt 21 failed jules grove 93 active chen delta 38 pending dina indigo 76 pending
dina indigo 76 pending
jules grove 94 failed chen fable 11 closed alice juniper 65 pending kim cobalt 81 pending lina delta 8 ready chen juniper 41 ready gus juniper 21 ready
alice juniper 65 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014035
qwen/qwen3.7-plus
awkweave-0014036
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
jules 75 gus 91 lina 20 hana 92 hana 53 jules 28 farah 113 dina 1
gus 91 hana 53 dina 1
lina 7 farah 33 dina 89 gus 36 dina 120 hana 35
farah 33 dina 120
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014036-p1
Output every third line beginning with the second line (i.e., lines 2, 5, etc.).
NR%3==2
jules 75 gus 91 lina 20 hana 92 hana 53 jules 28 farah 113 dina 1
gus 91 hana 53 dina 1
lina 7 farah 33 dina 89 gus 36 dina 120 hana 35
farah 33 dina 120
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014036
qwen/qwen3.7-plus
awkweave-0014037
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
delta harbor 91 beta harbor 37 alpha fable 56 delta harbor 5 beta juniper 68 gamma grove 113
4
gamma indigo 107 alpha fable 110 beta indigo 112 beta grove 8 gamma juniper 19 beta ember 37 alpha harbor 40 beta grove 64 alpha juniper 25 alpha grove 75
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014037-p1
Calculate and display only the number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
delta harbor 91 beta harbor 37 alpha fable 56 delta harbor 5 beta juniper 68 gamma grove 113
4
gamma indigo 107 alpha fable 110 beta indigo 112 beta grove 8 gamma juniper 19 beta ember 37 alpha harbor 40 beta grove 64 alpha juniper 25 alpha grove 75
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014037
qwen/qwen3.7-plus
awkweave-0014038
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}
hana 3 0 lina 21 13 jules 22 8 gus 6 29 lina 28 20 kim 19 23 eli 22 12 gus 8 13 jules 9 4
lina 1.62 jules 2.75 gus 0.21 lina 1.40 kim 0.83 eli 1.83 gus 0.62 jules 2.25
gus 14 0 bruno 10 23 ivan 13 25 dina 7 6 bruno 29 27 kim 15 19 hana 29 11 lina 13 1 alice 20 27 jules 12 13
bruno 0.43 ivan 0.52 dina 1.17 bruno 1.07 kim 0.79 hana 2.64 lina 13.00 alice 0.74 jules 0.92
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014038-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, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
hana 3 0 lina 21 13 jules 22 8 gus 6 29 lina 28 20 kim 19 23 eli 22 12 gus 8 13 jules 9 4
lina 1.62 jules 2.75 gus 0.21 lina 1.40 kim 0.83 eli 1.83 gus 0.62 jules 2.25
gus 14 0 bruno 10 23 ivan 13 25 dina 7 6 bruno 29 27 kim 15 19 hana 29 11 lina 13 1 alice 20 27 jules 12 13
bruno 0.43 ivan 0.52 dina 1.17 bruno 1.07 kim 0.79 hana 2.64 lina 13.00 alice 0.74 jules 0.92
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014038
qwen/qwen3.7-plus
awkweave-0014039
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]}
eli amber 3 alice grove 17 alice harbor 10 eli birch 22 kim harbor 20 chen harbor 26 jules fable 5 eli delta 14 lina ember 22
chen harbor 26 eli birch 22 lina ember 22
gus indigo 24 alice harbor 19 alice fable 20 ivan birch 9 gus ember 23 eli delta 12 hana ember 18 chen grove 14
gus indigo 24 gus ember 23 alice fable 20
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014039-p1
Display the full records corresponding to the top three 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]}
eli amber 3 alice grove 17 alice harbor 10 eli birch 22 kim harbor 20 chen harbor 26 jules fable 5 eli delta 14 lina ember 22
chen harbor 26 eli birch 22 lina ember 22
gus indigo 24 alice harbor 19 alice fable 20 ivan birch 9 gus ember 23 eli delta 12 hana ember 18 chen grove 14
gus indigo 24 gus ember 23 alice fable 20
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014039
qwen/qwen3.7-plus
awkweave-0014040
Print column 4 followed by column 3 for every record.
{print $4, $3}
22 juniper 112 38 115 birch 57 114 63 juniper 27 57 53 ember 58 10 58 amber 13 61 111 cobalt 95 58 5 fable 106 64 93 indigo 61 10 37 grove 43 106 46 amber 73 20
38 112 114 57 57 27 10 58 61 13 58 95 64 106 10 61 106 43 20 73
109 indigo 114 12 5 delta 100 117 76 ember 120 39 22 juniper 83 8 116 delta 113 103 73 indigo 10 90 9 grove 106 62 68 delta 48 4 72 fable 85 56
12 114 117 100 39 120 8 83 103 113 90 10 62 106 4 48 56 85
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014040-p1
Output the fourth column followed by the third column for every record.
{print $4, $3}
22 juniper 112 38 115 birch 57 114 63 juniper 27 57 53 ember 58 10 58 amber 13 61 111 cobalt 95 58 5 fable 106 64 93 indigo 61 10 37 grove 43 106 46 amber 73 20
38 112 114 57 57 27 10 58 61 13 58 95 64 106 10 61 106 43 20 73
109 indigo 114 12 5 delta 100 117 76 ember 120 39 22 juniper 83 8 116 delta 113 103 73 indigo 10 90 9 grove 106 62 68 delta 48 4 72 fable 85 56
12 114 117 100 39 120 8 83 103 113 90 10 62 106 4 48 56 85
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014040
qwen/qwen3.7-plus
awkweave-0014041
Print the last field of every input line.
{print $NF}
52 40 9 cobalt fable 120 101 7 grove cobalt 83 91 22 juniper cobalt 44 18 119 delta harbor 26 3 66 ember birch 46 65 22 fable indigo 64 84 75 grove birch 56 112 0 harbor amber
fable cobalt cobalt harbor birch indigo birch amber
91 63 53 birch delta 23 62 35 harbor juniper 68 116 13 amber amber 11 63 49 fable birch 61 53 20 amber birch 64 54 18 birch juniper 62 110 110 fable grove 54 89 32 indigo ember 47 0 42 amber grove 117 14 32 birch juniper
delta juniper amber birch birch juniper grove ember grove juniper
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014041-p1
Print the final field from each input line.
{print $NF}
52 40 9 cobalt fable 120 101 7 grove cobalt 83 91 22 juniper cobalt 44 18 119 delta harbor 26 3 66 ember birch 46 65 22 fable indigo 64 84 75 grove birch 56 112 0 harbor amber
fable cobalt cobalt harbor birch indigo birch amber
91 63 53 birch delta 23 62 35 harbor juniper 68 116 13 amber amber 11 63 49 fable birch 61 53 20 amber birch 64 54 18 birch juniper 62 110 110 fable grove 54 89 32 indigo ember 47 0 42 amber grove 117 14 32 birch juniper
delta juniper amber birch birch juniper grove ember grove juniper
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014041
qwen/qwen3.7-plus
awkweave-0014042
Print the complete records where column 2 is at most 49.
$2 <= 49
paused 9 alice pending 95 eli failed 70 hana failed 1 dina closed 31 farah failed 48 hana pending 95 gus closed 60 eli closed 112 farah
paused 9 alice failed 1 dina closed 31 farah failed 48 hana
pending 40 gus pending 92 bruno closed 78 lina ready 39 lina paused 97 hana pending 30 chen paused 28 farah
pending 40 gus ready 39 lina pending 30 chen paused 28 farah
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014042-p1
Output the full records where the value in the second column is less than or equal to 49.
$2 <= 49
paused 9 alice pending 95 eli failed 70 hana failed 1 dina closed 31 farah failed 48 hana pending 95 gus closed 60 eli closed 112 farah
paused 9 alice failed 1 dina closed 31 farah failed 48 hana
pending 40 gus pending 92 bruno closed 78 lina ready 39 lina paused 97 hana pending 30 chen paused 28 farah
pending 40 gus ready 39 lina pending 30 chen paused 28 farah
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014042
qwen/qwen3.7-plus
awkweave-0014043
Show whole lines whose 2nd field is between 11 and 21, inclusive.
$2 >= 11 && $2 <= 21
alice 21 active gus jules 2 paused eli jules 1 pending lina chen 20 active jules alice 2 closed kim gus 14 ready dina
alice 21 active gus chen 20 active jules gus 14 ready dina
bruno 20 paused jules eli 11 ready lina lina 20 pending eli hana 23 paused chen eli 19 closed chen eli 12 paused eli jules 18 pending alice chen 27 paused farah alice 28 paused ivan eli 12 active alice
bruno 20 paused jules eli 11 ready lina lina 20 pending eli eli 19 closed chen eli 12 paused eli jules 18 pending alice eli 12 active alice
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014043-p1
Display entire lines where the second field falls within the inclusive range of 11 to 21.
$2 >= 11 && $2 <= 21
alice 21 active gus jules 2 paused eli jules 1 pending lina chen 20 active jules alice 2 closed kim gus 14 ready dina
alice 21 active gus chen 20 active jules gus 14 ready dina
bruno 20 paused jules eli 11 ready lina lina 20 pending eli hana 23 paused chen eli 19 closed chen eli 12 paused eli jules 18 pending alice chen 27 paused farah alice 28 paused ivan eli 12 active alice
bruno 20 paused jules eli 11 ready lina lina 20 pending eli eli 19 closed chen eli 12 paused eli jules 18 pending alice eli 12 active alice
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014043
qwen/qwen3.7-plus
awkweave-0014044
Print column 4 only for rows where column 3 is exactly closed.
$3 == "closed"{print $4}
27 cobalt active kim 86 ember closed bruno 119 delta failed alice 21 cobalt active alice 1 fable closed dina 41 juniper active alice 48 delta paused chen 84 grove closed farah 54 birch pending lina
bruno dina farah
104 harbor closed chen 103 ember ready lina 95 ember pending dina 76 amber ready gus 48 cobalt closed alice 75 juniper active lina 18 grove pending bruno 31 delta failed kim 57 indigo active chen 61 birch pending bruno
chen alice
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014044-p1
Output only the fourth column for rows where the third column contains exactly 'closed'.
$3 == "closed"{print $4}
27 cobalt active kim 86 ember closed bruno 119 delta failed alice 21 cobalt active alice 1 fable closed dina 41 juniper active alice 48 delta paused chen 84 grove closed farah 54 birch pending lina
bruno dina farah
104 harbor closed chen 103 ember ready lina 95 ember pending dina 76 amber ready gus 48 cobalt closed alice 75 juniper active lina 18 grove pending bruno 31 delta failed kim 57 indigo active chen 61 birch pending bruno
chen alice
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014044
qwen/qwen3.7-plus
awkweave-0014045
Print all fields from lines where field 1 begins with WARN.
$1 ~ /^WARN/
WARN 38 grove ERROR 82 grove DEBUG 51 juniper DEBUG 53 cobalt ERROR 99 amber DEBUG 93 amber INFO 65 birch INFO 3 cobalt WARN 98 indigo
WARN 38 grove WARN 98 indigo
WARN 80 ember DEBUG 111 harbor INFO 29 fable WARN 16 ember DEBUG 115 birch DEBUG 61 harbor ERROR 0 cobalt ERROR 1 juniper
WARN 80 ember WARN 16 ember
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014045-p1
Print all fields from lines where the first field starts with 'WARN'.
$1 ~ /^WARN/
WARN 38 grove ERROR 82 grove DEBUG 51 juniper DEBUG 53 cobalt ERROR 99 amber DEBUG 93 amber INFO 65 birch INFO 3 cobalt WARN 98 indigo
WARN 38 grove WARN 98 indigo
WARN 80 ember DEBUG 111 harbor INFO 29 fable WARN 16 ember DEBUG 115 birch DEBUG 61 harbor ERROR 0 cobalt ERROR 1 juniper
WARN 80 ember WARN 16 ember
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014045
qwen/qwen3.7-plus
awkweave-0014046
Print every line except those containing the exact text ember.
$0 !~ /ember/
indigo 39 active grove 105 pending fable 26 failed indigo 82 ready ember 17 active grove 110 ready ember 999 active
indigo 39 active grove 105 pending fable 26 failed indigo 82 ready grove 110 ready
cobalt 86 ready birch 93 ready ember 83 active grove 27 ready amber 5 pending juniper 93 active indigo 94 failed harbor 120 closed delta 104 failed fable 101 ready ember 999 active
cobalt 86 ready birch 93 ready grove 27 ready amber 5 pending juniper 93 active indigo 94 failed harbor 120 closed delta 104 failed fable 101 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014046-p1
Output every line that does not contain the exact string 'ember'.
$0 !~ /ember/
indigo 39 active grove 105 pending fable 26 failed indigo 82 ready ember 17 active grove 110 ready ember 999 active
indigo 39 active grove 105 pending fable 26 failed indigo 82 ready grove 110 ready
cobalt 86 ready birch 93 ready ember 83 active grove 27 ready amber 5 pending juniper 93 active indigo 94 failed harbor 120 closed delta 104 failed fable 101 ready ember 999 active
cobalt 86 ready birch 93 ready grove 27 ready amber 5 pending juniper 93 active indigo 94 failed harbor 120 closed delta 104 failed fable 101 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014046
qwen/qwen3.7-plus
awkweave-0014047
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
jules indigo 3 dina delta 85 ivan grove 66 kim ember 85 gus grove 103 hana delta 48 eli grove 104 alice amber 13
dina delta 85 ivan grove 66
kim cobalt 105 hana cobalt 98 farah ember 61 lina ember 106 chen juniper 25 farah harbor 38 eli delta 88
hana cobalt 98 farah ember 61
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014047-p1
Print lines 2 through 3, inclusive.
NR >= 2 && NR <= 3
jules indigo 3 dina delta 85 ivan grove 66 kim ember 85 gus grove 103 hana delta 48 eli grove 104 alice amber 13
dina delta 85 ivan grove 66
kim cobalt 105 hana cobalt 98 farah ember 61 lina ember 106 chen juniper 25 farah harbor 38 eli delta 88
hana cobalt 98 farah ember 61
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014047
qwen/qwen3.7-plus
awkweave-0014048
Output only the first 3 records.
NR <= 3
farah 52 harbor ivan 43 amber gus 6 delta bruno 85 indigo hana 83 indigo chen 78 amber
farah 52 harbor ivan 43 amber gus 6 delta
jules 81 ember gus 86 ember eli 109 fable gus 108 delta kim 55 indigo lina 22 delta gus 51 delta hana 47 delta
jules 81 ember gus 86 ember eli 109 fable
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014048-p1
Display only the initial three records.
NR <= 3
farah 52 harbor ivan 43 amber gus 6 delta bruno 85 indigo hana 83 indigo chen 78 amber
farah 52 harbor ivan 43 amber gus 6 delta
jules 81 ember gus 86 ember eli 109 fable gus 108 delta kim 55 indigo lina 22 delta gus 51 delta hana 47 delta
jules 81 ember gus 86 ember eli 109 fable
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014048
qwen/qwen3.7-plus
awkweave-0014049
Skip the first line and print every remaining line unchanged.
NR > 1
alice 46 indigo chen 118 birch dina 101 amber jules 19 cobalt kim 35 fable bruno 83 fable eli 57 birch
chen 118 birch dina 101 amber jules 19 cobalt kim 35 fable bruno 83 fable eli 57 birch
eli 75 fable jules 54 ember hana 67 amber farah 15 birch bruno 80 cobalt hana 28 indigo ivan 33 fable gus 10 amber
jules 54 ember hana 67 amber farah 15 birch bruno 80 cobalt hana 28 indigo ivan 33 fable gus 10 amber
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0014049-p1
Omit the first line and output all subsequent lines exactly as they appear.
NR > 1
alice 46 indigo chen 118 birch dina 101 amber jules 19 cobalt kim 35 fable bruno 83 fable eli 57 birch
chen 118 birch dina 101 amber jules 19 cobalt kim 35 fable bruno 83 fable eli 57 birch
eli 75 fable jules 54 ember hana 67 amber farah 15 birch bruno 80 cobalt hana 28 indigo ivan 33 fable gus 10 amber
jules 54 ember hana 67 amber farah 15 birch bruno 80 cobalt hana 28 indigo ivan 33 fable gus 10 amber
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0014049
qwen/qwen3.7-plus
awkweave-0014050
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
dina pending 8 alice active 16 bruno active 48 dina closed 47 kim closed 10 dina ready 94 gus paused 80 ivan active 61
2
kim active 50 farah active 95 eli failed 48 lina paused 50 hana active 16 chen closed 81 bruno paused 9 bruno active 51 hana pending 64
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null