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-0018050-p1
Process simple CSV data without quoted commas; output the first column only if the second column is greater than 18.
BEGIN{FS=OFS=","}$2>18{print $1}
alice,28,active farah,6,active alice,11,closed lina,26,closed farah,3,paused hana,10,failed
alice lina
dina,22,failed lina,2,paused alice,1,pending eli,7,pending chen,6,closed farah,2,paused lina,30,closed bruno,4,closed ivan,15,active
dina lina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018050
qwen/qwen3.7-plus
awkweave-0018051
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
chen fable 45 eli grove 19 bruno fable 58 dina ember 6 dina birch 65 hana indigo 68 dina juniper 119 chen birch 31 hana harbor 73
chen fable 45 eli grove 19 bruno fable 58 dina ember 6 dina birch 65 hana indigo 68 dina juniper 119 chen birch 31 hana harbor 73
ivan birch 4 eli delta 53 dina delta 59 chen birch 100 bruno birch 43 chen harbor 56 kim delta 83 eli amber 64 farah ember 20 alice cobalt 33
ivan birch 4 eli delta 53 dina delta 59 chen birch 100 bruno birch 43 chen harbor 56 kim delta 83 eli amber 64 farah ember 20 alice cobalt 33
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018051-p1
Remove leading and trailing whitespace from each line and replace sequences of internal whitespace with a single space.
{$1=$1;print}
chen fable 45 eli grove 19 bruno fable 58 dina ember 6 dina birch 65 hana indigo 68 dina juniper 119 chen birch 31 hana harbor 73
chen fable 45 eli grove 19 bruno fable 58 dina ember 6 dina birch 65 hana indigo 68 dina juniper 119 chen birch 31 hana harbor 73
ivan birch 4 eli delta 53 dina delta 59 chen birch 100 bruno birch 43 chen harbor 56 kim delta 83 eli amber 64 farah ember 20 alice cobalt 33
ivan birch 4 eli delta 53 dina delta 59 chen birch 100 bruno birch 43 chen harbor 56 kim delta 83 eli amber 64 farah ember 20 alice cobalt 33
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018051
qwen/qwen3.7-plus
awkweave-0018052
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
gus birch 60 ready farah delta 7 failed hana harbor 100 failed alice delta 49 ready hana grove 99 active eli fable 12 ready
hana harbor 100 failed
jules ember 43 active lina cobalt 46 paused kim indigo 29 ready kim juniper 97 failed kim fable 78 active kim grove 83 failed
jules ember 43 active
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018052-p1
Identify and print the longest line in 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}
gus birch 60 ready farah delta 7 failed hana harbor 100 failed alice delta 49 ready hana grove 99 active eli fable 12 ready
hana harbor 100 failed
jules ember 43 active lina cobalt 46 paused kim indigo 29 ready kim juniper 97 failed kim fable 78 active kim grove 83 failed
jules ember 43 active
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018052
qwen/qwen3.7-plus
awkweave-0018053
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
chen 18 kim 70 chen 79 chen 107 lina 15 dina 41 farah 5 lina 1 eli 77
kim 70 chen 107 dina 41 lina 1
farah 64 ivan 13 alice 81 bruno 51 hana 117 alice 86 farah 47 alice 118 alice 79
ivan 13 bruno 51 alice 86 alice 118
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018053-p1
Output every second line of the input, beginning with line 2 (i.e., lines 2, 4, 6, etc.).
NR%2==0
chen 18 kim 70 chen 79 chen 107 lina 15 dina 41 farah 5 lina 1 eli 77
kim 70 chen 107 dina 41 lina 1
farah 64 ivan 13 alice 81 bruno 51 hana 117 alice 86 farah 47 alice 118 alice 79
ivan 13 bruno 51 alice 86 alice 118
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018053
qwen/qwen3.7-plus
awkweave-0018054
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha indigo 98 alpha birch 15 alpha amber 78 alpha juniper 18 delta delta 106 gamma fable 31 beta birch 38 beta harbor 60
7
gamma harbor 40 gamma harbor 91 alpha ember 41 beta indigo 60 alpha grove 53 gamma birch 20
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018054-p1
Calculate the number of unique values found in the second column and print only that total count.
{if(!seen[$2]++)n++}END{print n+0}
alpha indigo 98 alpha birch 15 alpha amber 78 alpha juniper 18 delta delta 106 gamma fable 31 beta birch 38 beta harbor 60
7
gamma harbor 40 gamma harbor 91 alpha ember 41 beta indigo 60 alpha grove 53 gamma birch 20
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018054
qwen/qwen3.7-plus
awkweave-0018055
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
chen 12 0 lina 16 8 eli 3 21 chen 16 24 dina 20 24 chen 4 2 chen 13 23 eli 19 8 lina 3 5 bruno 11 7
lina 2.00 eli 0.14 chen 0.67 dina 0.83 chen 2.00 chen 0.57 eli 2.38 lina 0.60 bruno 1.57
dina 12 0 dina 12 16 ivan 5 23 farah 28 27 chen 15 13 hana 18 11 farah 23 20 bruno 13 27 jules 16 27
dina 0.75 ivan 0.22 farah 1.04 chen 1.15 hana 1.64 farah 1.15 bruno 0.48 jules 0.59
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018055-p1
For each row, output the first column and the result of dividing the second column by the third column formatted to two decimal places, omitting any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
chen 12 0 lina 16 8 eli 3 21 chen 16 24 dina 20 24 chen 4 2 chen 13 23 eli 19 8 lina 3 5 bruno 11 7
lina 2.00 eli 0.14 chen 0.67 dina 0.83 chen 2.00 chen 0.57 eli 2.38 lina 0.60 bruno 1.57
dina 12 0 dina 12 16 ivan 5 23 farah 28 27 chen 15 13 hana 18 11 farah 23 20 bruno 13 27 jules 16 27
dina 0.75 ivan 0.22 farah 1.04 chen 1.15 hana 1.64 farah 1.15 bruno 0.48 jules 0.59
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018055
qwen/qwen3.7-plus
awkweave-0018056
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 grove 24 ivan indigo 11 hana juniper 21 bruno amber 1 jules harbor 4 ivan ember 8 farah indigo 8 dina indigo 2 alice indigo 17
eli grove 24 hana juniper 21 alice indigo 17
alice ember 12 chen cobalt 18 eli grove 17 bruno harbor 8 alice indigo 8 chen amber 21
chen amber 21 chen cobalt 18 eli grove 17
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018056-p1
Output the top three records based on the highest numeric values in the third column, 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 grove 24 ivan indigo 11 hana juniper 21 bruno amber 1 jules harbor 4 ivan ember 8 farah indigo 8 dina indigo 2 alice indigo 17
eli grove 24 hana juniper 21 alice indigo 17
alice ember 12 chen cobalt 18 eli grove 17 bruno harbor 8 alice indigo 8 chen amber 21
chen amber 21 chen cobalt 18 eli grove 17
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018056
qwen/qwen3.7-plus
awkweave-0018057
Select the 5th and 3rd fields in that order.
{print $5, $3}
paused pending gus pending indigo cobalt failed failed alice active delta birch active pending eli pending birch ember active pending kim active cobalt harbor closed closed kim pending fable grove pending pending eli ready juniper ember failed failed alice failed grove cobalt
indigo gus delta alice birch eli cobalt kim fable kim juniper eli grove alice
failed active kim active indigo fable active ready lina active cobalt cobalt paused pending dina failed cobalt indigo ready closed chen ready harbor amber paused active bruno ready fable juniper paused ready bruno closed fable juniper
indigo kim cobalt lina cobalt dina harbor chen fable bruno fable bruno
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018057-p1
Extract and print the 5th and 3rd fields, preserving that specific order.
{print $5, $3}
paused pending gus pending indigo cobalt failed failed alice active delta birch active pending eli pending birch ember active pending kim active cobalt harbor closed closed kim pending fable grove pending pending eli ready juniper ember failed failed alice failed grove cobalt
indigo gus delta alice birch eli cobalt kim fable kim juniper eli grove alice
failed active kim active indigo fable active ready lina active cobalt cobalt paused pending dina failed cobalt indigo ready closed chen ready harbor amber paused active bruno ready fable juniper paused ready bruno closed fable juniper
indigo kim cobalt lina cobalt dina harbor chen fable bruno fable bruno
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018057
qwen/qwen3.7-plus
awkweave-0018058
Print the last field of every input line.
{print $NF}
ember active juniper fable closed failed ember closed ember indigo pending failed grove closed ember grove ready paused harbor closed fable amber failed failed birch active grove cobalt active closed ember pending cobalt delta active closed delta active amber fable paused active cobalt active juniper grove pending pend...
failed failed paused failed closed closed active pending
juniper pending grove ember failed active cobalt pending harbor delta pending ready grove paused grove ember ready closed juniper paused grove harbor failed failed birch failed harbor juniper paused failed amber ready ember birch paused paused harbor ready birch delta paused active ember active fable ember ready ready ...
active ready closed failed failed paused active ready pending failed
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018058-p1
Print the final field from every line of the input.
{print $NF}
ember active juniper fable closed failed ember closed ember indigo pending failed grove closed ember grove ready paused harbor closed fable amber failed failed birch active grove cobalt active closed ember pending cobalt delta active closed delta active amber fable paused active cobalt active juniper grove pending pend...
failed failed paused failed closed closed active pending
juniper pending grove ember failed active cobalt pending harbor delta pending ready grove paused grove ember ready closed juniper paused grove harbor failed failed birch failed harbor juniper paused failed amber ready ember birch paused paused harbor ready birch delta paused active ember active fable ember ready ready ...
active ready closed failed failed paused active ready pending failed
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018058
qwen/qwen3.7-plus
awkweave-0018059
Print the complete records where column 4 is at least 30.
$4 >= 30
kim active eli 65 closed ivan ready lina 85 failed alice active bruno 54 ready bruno pending kim 120 paused jules ready ivan 117 ready chen pending bruno 110 pending farah pending alice 58 failed farah failed bruno 65 active farah ready farah 22 paused ivan closed bruno 84 paused
kim active eli 65 closed ivan ready lina 85 failed alice active bruno 54 ready bruno pending kim 120 paused jules ready ivan 117 ready chen pending bruno 110 pending farah pending alice 58 failed farah failed bruno 65 active ivan closed bruno 84 paused
chen closed bruno 63 paused hana closed ivan 51 pending gus pending eli 57 active gus closed kim 54 pending lina active chen 33 failed kim ready gus 14 failed
chen closed bruno 63 paused hana closed ivan 51 pending gus pending eli 57 active gus closed kim 54 pending lina active chen 33 failed
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018059-p1
Output full records where the value in the fourth column is 30 or higher.
$4 >= 30
kim active eli 65 closed ivan ready lina 85 failed alice active bruno 54 ready bruno pending kim 120 paused jules ready ivan 117 ready chen pending bruno 110 pending farah pending alice 58 failed farah failed bruno 65 active farah ready farah 22 paused ivan closed bruno 84 paused
kim active eli 65 closed ivan ready lina 85 failed alice active bruno 54 ready bruno pending kim 120 paused jules ready ivan 117 ready chen pending bruno 110 pending farah pending alice 58 failed farah failed bruno 65 active ivan closed bruno 84 paused
chen closed bruno 63 paused hana closed ivan 51 pending gus pending eli 57 active gus closed kim 54 pending lina active chen 33 failed kim ready gus 14 failed
chen closed bruno 63 paused hana closed ivan 51 pending gus pending eli 57 active gus closed kim 54 pending lina active chen 33 failed
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018059
qwen/qwen3.7-plus
awkweave-0018060
Show whole lines whose 1st field is between 9 and 28, inclusive.
$1 >= 9 && $1 <= 28
10 ready juniper harbor 27 closed birch delta 9 closed harbor ember 22 active fable harbor 7 active indigo juniper 28 ready harbor delta 19 pending indigo delta 22 ready amber indigo 19 pending grove fable
10 ready juniper harbor 27 closed birch delta 9 closed harbor ember 22 active fable harbor 28 ready harbor delta 19 pending indigo delta 22 ready amber indigo 19 pending grove fable
20 paused indigo grove 20 ready ember ember 17 pending grove birch 4 closed cobalt birch 26 paused amber grove 4 pending indigo juniper
20 paused indigo grove 20 ready ember ember 17 pending grove birch 26 paused amber grove
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018060-p1
Display entire lines where the first field falls within the range of 9 to 28, inclusive.
$1 >= 9 && $1 <= 28
10 ready juniper harbor 27 closed birch delta 9 closed harbor ember 22 active fable harbor 7 active indigo juniper 28 ready harbor delta 19 pending indigo delta 22 ready amber indigo 19 pending grove fable
10 ready juniper harbor 27 closed birch delta 9 closed harbor ember 22 active fable harbor 28 ready harbor delta 19 pending indigo delta 22 ready amber indigo 19 pending grove fable
20 paused indigo grove 20 ready ember ember 17 pending grove birch 4 closed cobalt birch 26 paused amber grove 4 pending indigo juniper
20 paused indigo grove 20 ready ember ember 17 pending grove birch 26 paused amber grove
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018060
qwen/qwen3.7-plus
awkweave-0018061
Print column 3 only for rows where column 1 is exactly active.
$1 == "active"{print $3}
active 100 ivan amber pending 75 hana ember failed 5 farah fable active 84 lina ember active 34 eli amber active 115 chen amber ready 46 alice indigo
ivan lina eli chen
closed 37 kim harbor closed 65 dina juniper active 3 jules ember closed 88 jules harbor active 15 farah indigo active 79 bruno indigo closed 25 jules amber
jules farah bruno
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018061-p1
Output only the third column for rows where the first column matches 'active' exactly.
$1 == "active"{print $3}
active 100 ivan amber pending 75 hana ember failed 5 farah fable active 84 lina ember active 34 eli amber active 115 chen amber ready 46 alice indigo
ivan lina eli chen
closed 37 kim harbor closed 65 dina juniper active 3 jules ember closed 88 jules harbor active 15 farah indigo active 79 bruno indigo closed 25 jules amber
jules farah bruno
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018061
qwen/qwen3.7-plus
awkweave-0018062
Print all fields from lines where field 2 begins with WARN.
$2 ~ /^WARN/
117 WARN birch 12 ERROR amber 53 ERROR indigo 51 ERROR ember 53 INFO delta 104 WARN birch 14 DEBUG fable 112 ERROR delta
117 WARN birch 104 WARN birch
57 ERROR indigo 24 WARN harbor 110 DEBUG ember 79 WARN juniper 43 ERROR amber 95 WARN cobalt
24 WARN harbor 79 WARN juniper 95 WARN cobalt
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018062-p1
Print all fields from lines where the second field starts with 'WARN'.
$2 ~ /^WARN/
117 WARN birch 12 ERROR amber 53 ERROR indigo 51 ERROR ember 53 INFO delta 104 WARN birch 14 DEBUG fable 112 ERROR delta
117 WARN birch 104 WARN birch
57 ERROR indigo 24 WARN harbor 110 DEBUG ember 79 WARN juniper 43 ERROR amber 95 WARN cobalt
24 WARN harbor 79 WARN juniper 95 WARN cobalt
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018062
qwen/qwen3.7-plus
awkweave-0018063
Print every line except those containing the exact text cobalt.
$0 !~ /cobalt/
delta 58 active birch 83 ready grove 96 pending indigo 24 paused juniper 114 active indigo 23 failed cobalt 999 active
delta 58 active birch 83 ready grove 96 pending indigo 24 paused juniper 114 active indigo 23 failed
indigo 22 failed ember 82 closed grove 115 failed amber 86 active ember 106 failed amber 14 failed indigo 27 failed amber 38 closed grove 49 ready juniper 72 ready cobalt 999 active
indigo 22 failed ember 82 closed grove 115 failed amber 86 active ember 106 failed amber 14 failed indigo 27 failed amber 38 closed grove 49 ready juniper 72 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018063-p1
Print every line that does not contain the exact string 'cobalt'.
$0 !~ /cobalt/
delta 58 active birch 83 ready grove 96 pending indigo 24 paused juniper 114 active indigo 23 failed cobalt 999 active
delta 58 active birch 83 ready grove 96 pending indigo 24 paused juniper 114 active indigo 23 failed
indigo 22 failed ember 82 closed grove 115 failed amber 86 active ember 106 failed amber 14 failed indigo 27 failed amber 38 closed grove 49 ready juniper 72 ready cobalt 999 active
indigo 22 failed ember 82 closed grove 115 failed amber 86 active ember 106 failed amber 14 failed indigo 27 failed amber 38 closed grove 49 ready juniper 72 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018063
qwen/qwen3.7-plus
awkweave-0018064
Print lines 3 through 5, including both endpoints.
NR >= 3 && NR <= 5
farah ember 63 eli amber 113 dina fable 97 farah grove 55 dina birch 111 lina grove 118 bruno juniper 116 alice delta 89 dina juniper 67
dina fable 97 farah grove 55 dina birch 111
lina harbor 33 hana juniper 85 lina indigo 94 hana indigo 107 alice fable 50 alice birch 59 gus fable 4
lina indigo 94 hana indigo 107 alice fable 50
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018064-p1
Output lines 3 to 5, inclusive of both start and end lines.
NR >= 3 && NR <= 5
farah ember 63 eli amber 113 dina fable 97 farah grove 55 dina birch 111 lina grove 118 bruno juniper 116 alice delta 89 dina juniper 67
dina fable 97 farah grove 55 dina birch 111
lina harbor 33 hana juniper 85 lina indigo 94 hana indigo 107 alice fable 50 alice birch 59 gus fable 4
lina indigo 94 hana indigo 107 alice fable 50
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018064
qwen/qwen3.7-plus
awkweave-0018065
Output only the first 4 records.
NR <= 4
alice 34 fable eli 39 amber jules 54 juniper eli 6 birch eli 47 birch alice 9 ember ivan 58 grove gus 30 cobalt
alice 34 fable eli 39 amber jules 54 juniper eli 6 birch
hana 55 ember jules 85 harbor alice 23 indigo bruno 95 fable alice 74 juniper jules 67 cobalt alice 120 indigo bruno 56 delta ivan 11 birch eli 38 ember
hana 55 ember jules 85 harbor alice 23 indigo bruno 95 fable
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018065-p1
Display only the first 4 records.
NR <= 4
alice 34 fable eli 39 amber jules 54 juniper eli 6 birch eli 47 birch alice 9 ember ivan 58 grove gus 30 cobalt
alice 34 fable eli 39 amber jules 54 juniper eli 6 birch
hana 55 ember jules 85 harbor alice 23 indigo bruno 95 fable alice 74 juniper jules 67 cobalt alice 120 indigo bruno 56 delta ivan 11 birch eli 38 ember
hana 55 ember jules 85 harbor alice 23 indigo bruno 95 fable
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018065
qwen/qwen3.7-plus
awkweave-0018066
Skip the first line and print every remaining line unchanged.
NR > 1
dina 68 amber hana 6 fable bruno 111 ember kim 45 cobalt bruno 107 grove ivan 7 ember
hana 6 fable bruno 111 ember kim 45 cobalt bruno 107 grove ivan 7 ember
bruno 105 fable jules 53 fable hana 90 birch kim 84 grove alice 30 cobalt bruno 117 delta hana 32 fable eli 119 cobalt alice 100 fable bruno 93 indigo
jules 53 fable hana 90 birch kim 84 grove alice 30 cobalt bruno 117 delta hana 32 fable eli 119 cobalt alice 100 fable bruno 93 indigo
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018066-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
dina 68 amber hana 6 fable bruno 111 ember kim 45 cobalt bruno 107 grove ivan 7 ember
hana 6 fable bruno 111 ember kim 45 cobalt bruno 107 grove ivan 7 ember
bruno 105 fable jules 53 fable hana 90 birch kim 84 grove alice 30 cobalt bruno 117 delta hana 32 fable eli 119 cobalt alice 100 fable bruno 93 indigo
jules 53 fable hana 90 birch kim 84 grove alice 30 cobalt bruno 117 delta hana 32 fable eli 119 cobalt alice 100 fable bruno 93 indigo
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018066
qwen/qwen3.7-plus
awkweave-0018067
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
eli failed 58 alice ready 113 alice paused 2 alice pending 24 gus failed 19 gus active 15 ivan paused 23 bruno failed 8 eli closed 99 ivan paused 31
1
hana pending 4 dina closed 11 lina ready 109 dina active 32 kim paused 38 lina failed 43 ivan closed 22 jules active 6 chen failed 94 bruno ready 68
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018067-p1
Count the number of records with 'closed' in the second column; output 0 if none exist.
$2 == "closed"{n++}END{print n+0}
eli failed 58 alice ready 113 alice paused 2 alice pending 24 gus failed 19 gus active 15 ivan paused 23 bruno failed 8 eli closed 99 ivan paused 31
1
hana pending 4 dina closed 11 lina ready 109 dina active 32 kim paused 38 lina failed 43 ivan closed 22 jules active 6 chen failed 94 bruno ready 68
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018067
qwen/qwen3.7-plus
awkweave-0018068
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
birch 4 lina juniper 7 hana grove 2 jules juniper 18 eli fable 3 dina delta 5 bruno birch 10 kim grove 30 jules
79
ember 24 chen indigo 1 gus amber 22 eli cobalt 9 farah birch 23 bruno harbor 9 alice amber 29 eli ember 7 farah
124
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018068-p1
Compute and display the sum of integer values in the second column.
{s+=$2}END{print s+0}
birch 4 lina juniper 7 hana grove 2 jules juniper 18 eli fable 3 dina delta 5 bruno birch 10 kim grove 30 jules
79
ember 24 chen indigo 1 gus amber 22 eli cobalt 9 farah birch 23 bruno harbor 9 alice amber 29 eli ember 7 farah
124
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018068
qwen/qwen3.7-plus
awkweave-0018069
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
20 cobalt jules 9 fable eli 28 indigo farah 11 juniper gus 20 birch lina 29 juniper lina 20 cobalt hana
19.57
11 juniper dina 4 cobalt lina 9 fable lina 26 grove chen 5 juniper chen 26 birch gus 15 harbor eli
13.71
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018069-p1
Print the average of the first column, rounded to two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
20 cobalt jules 9 fable eli 28 indigo farah 11 juniper gus 20 birch lina 29 juniper lina 20 cobalt hana
19.57
11 juniper dina 4 cobalt lina 9 fable lina 26 grove chen 5 juniper chen 26 birch gus 15 harbor eli
13.71
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018069
qwen/qwen3.7-plus
awkweave-0018070
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
30 juniper lina 23 ember dina 5 fable chen 5 delta alice 9 indigo eli 16 indigo ivan 16 birch jules 20 amber kim 2 juniper jules
2
5 amber farah 5 juniper gus 1 amber ivan 3 indigo ivan 20 amber hana 15 amber jules 15 birch jules
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018070-p1
Identify and print the minimum numeric value found in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
30 juniper lina 23 ember dina 5 fable chen 5 delta alice 9 indigo eli 16 indigo ivan 16 birch jules 20 amber kim 2 juniper jules
2
5 amber farah 5 juniper gus 1 amber ivan 3 indigo ivan 20 amber hana 15 amber jules 15 birch jules
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018070
qwen/qwen3.7-plus
awkweave-0018071
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
indigo jules 30 cobalt farah 1 amber jules 3 amber alice 24 harbor farah 19 cobalt lina 12 indigo eli 14 cobalt chen 25 cobalt bruno 19
30
grove jules 13 amber bruno 18 indigo hana 12 delta eli 27 fable alice 15 delta alice 16 amber ivan 16 delta kim 19
27
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018071-p1
Identify and print the maximum numeric value found in the third column.
NR==1||$3>extreme{extreme=$3}END{print extreme}
indigo jules 30 cobalt farah 1 amber jules 3 amber alice 24 harbor farah 19 cobalt lina 12 indigo eli 14 cobalt chen 25 cobalt bruno 19
30
grove jules 13 amber bruno 18 indigo hana 12 delta eli 27 fable alice 15 delta alice 16 amber ivan 16 delta kim 19
27
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018071
qwen/qwen3.7-plus
awkweave-0018072
Count all input records and print the total.
END{print NR}
alice 103 alice 85 ivan 75 lina 65 lina 103 ivan 14 chen 59
7
gus 69 gus 17 kim 21 bruno 118 farah 17 bruno 52 eli 32 hana 18 lina 55
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018072-p1
Calculate the total number of input records and output the count.
END{print NR}
alice 103 alice 85 ivan 75 lina 65 lina 103 ivan 14 chen 59
7
gus 69 gus 17 kim 21 bruno 118 farah 17 bruno 52 eli 32 hana 18 lina 55
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018072
qwen/qwen3.7-plus
awkweave-0018073
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
farah fable 0 kim grove 100 eli juniper 115 ivan grove 49 kim amber 20 eli juniper 115 hana birch 59 lina birch 101
farah fable 0 kim grove 100 eli juniper 115 ivan grove 49 kim amber 20 hana birch 59 lina birch 101
farah indigo 86 hana amber 77 bruno fable 110 gus indigo 48 alice fable 9 bruno fable 110 gus indigo 79 hana grove 62 dina indigo 11 ivan cobalt 92
farah indigo 86 hana amber 77 bruno fable 110 gus indigo 48 alice fable 9 gus indigo 79 hana grove 62 dina indigo 11 ivan cobalt 92
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018073-p1
Eliminate exact duplicate lines while maintaining the original sequence and keeping the first instance of each.
!seen[$0]++
farah fable 0 kim grove 100 eli juniper 115 ivan grove 49 kim amber 20 eli juniper 115 hana birch 59 lina birch 101
farah fable 0 kim grove 100 eli juniper 115 ivan grove 49 kim amber 20 hana birch 59 lina birch 101
farah indigo 86 hana amber 77 bruno fable 110 gus indigo 48 alice fable 9 bruno fable 110 gus indigo 79 hana grove 62 dina indigo 11 ivan cobalt 92
farah indigo 86 hana amber 77 bruno fable 110 gus indigo 48 alice fable 9 gus indigo 79 hana grove 62 dina indigo 11 ivan cobalt 92
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018073
qwen/qwen3.7-plus
awkweave-0018074
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
chen ember 71 chen delta 55 farah harbor 42 hana grove 24 farah amber 20 dina juniper 66 kim cobalt 87 eli juniper 108 lina ember 12
chen ember 71 chen delta 55 farah harbor 42 hana grove 24 farah amber 20 dina juniper 66 kim cobalt 87 eli juniper 108 lina ember 12
hana delta 14 bruno delta 27 lina harbor 119 lina fable 117 jules juniper 43 jules fable 103
hana delta 14 bruno delta 27 lina harbor 119 lina fable 117 jules juniper 43 jules fable 103
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018074-p1
Retain only the initial line for every unique value found in the third column, ensuring the original input order is preserved.
!seen[$3]++
chen ember 71 chen delta 55 farah harbor 42 hana grove 24 farah amber 20 dina juniper 66 kim cobalt 87 eli juniper 108 lina ember 12
chen ember 71 chen delta 55 farah harbor 42 hana grove 24 farah amber 20 dina juniper 66 kim cobalt 87 eli juniper 108 lina ember 12
hana delta 14 bruno delta 27 lina harbor 119 lina fable 117 jules juniper 43 jules fable 103
hana delta 14 bruno delta 27 lina harbor 119 lina fable 117 jules juniper 43 jules fable 103
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018074
qwen/qwen3.7-plus
awkweave-0018075
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
hana 19 cobalt jules 21 indigo eli 15 harbor chen 18 birch dina 6 harbor lina 29 delta alice 1 juniper lina 22 ember
hana 19 jules 40 eli 55 chen 73 dina 79 lina 108 alice 109 lina 131
hana 13 amber dina 11 fable gus 3 juniper farah 9 cobalt eli 7 harbor lina 14 indigo gus 25 juniper
hana 13 dina 24 gus 27 farah 36 eli 43 lina 57 gus 82
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018075-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}
hana 19 cobalt jules 21 indigo eli 15 harbor chen 18 birch dina 6 harbor lina 29 delta alice 1 juniper lina 22 ember
hana 19 jules 40 eli 55 chen 73 dina 79 lina 108 alice 109 lina 131
hana 13 amber dina 11 fable gus 3 juniper farah 9 cobalt eli 7 harbor lina 14 indigo gus 25 juniper
hana 13 dina 24 gus 27 farah 36 eli 43 lina 57 gus 82
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018075
qwen/qwen3.7-plus
awkweave-0018076
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
gus 15 10 grove gus 14 8 ember lina 8 29 indigo gus 1 8 grove farah 13 30 fable gus 1 3 juniper bruno 25 28 delta hana 20 15 birch kim 3 30 birch dina 1 6 amber
gus 25 gus 22 lina 37 gus 9 farah 43 gus 4 bruno 53 hana 35 kim 33 dina 7
lina 1 14 amber alice 9 18 ember hana 14 11 ember kim 17 7 fable gus 25 22 amber lina 23 22 grove bruno 24 30 ember
lina 15 alice 27 hana 25 kim 24 gus 47 lina 45 bruno 54
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018076-p1
For each row, display the first field followed by the total of the second and third fields.
{print $1,$2+$3}
gus 15 10 grove gus 14 8 ember lina 8 29 indigo gus 1 8 grove farah 13 30 fable gus 1 3 juniper bruno 25 28 delta hana 20 15 birch kim 3 30 birch dina 1 6 amber
gus 25 gus 22 lina 37 gus 9 farah 43 gus 4 bruno 53 hana 35 kim 33 dina 7
lina 1 14 amber alice 9 18 ember hana 14 11 ember kim 17 7 fable gus 25 22 amber lina 23 22 grove bruno 24 30 ember
lina 15 alice 27 hana 25 kim 24 gus 47 lina 45 bruno 54
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018076
qwen/qwen3.7-plus
awkweave-0018077
Print column 1 and pass when column 2 is at least 22; otherwise print fail.
{print $1,($2>=22?"pass":"fail")}
hana 14 gus 10 farah 8 ivan 21 chen 21 bruno 1 bruno 29
hana fail gus fail farah fail ivan fail chen fail bruno fail bruno pass
gus 25 bruno 2 kim 3 chen 17 ivan 12 dina 26 alice 26 gus 1
gus pass bruno fail kim fail chen fail ivan fail dina pass alice pass gus fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018077-p1
Output the first column along with 'pass' if the second column is 22 or greater; otherwise, output 'fail'.
{print $1,($2>=22?"pass":"fail")}
hana 14 gus 10 farah 8 ivan 21 chen 21 bruno 1 bruno 29
hana fail gus fail farah fail ivan fail chen fail bruno fail bruno pass
gus 25 bruno 2 kim 3 chen 17 ivan 12 dina 26 alice 26 gus 1
gus pass bruno fail kim fail chen fail ivan fail dina pass alice pass gus fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018077
qwen/qwen3.7-plus
awkweave-0018078
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
gus juniper 32 kim fable 68 kim ember 81 jules juniper 27 kim amber 55 hana amber 13 alice indigo 26
GUS KIM KIM JULES KIM HANA ALICE
chen indigo 36 chen ember 71 bruno harbor 63 alice delta 1 dina fable 54 jules cobalt 27 chen fable 119 kim delta 71 bruno indigo 114 chen grove 15
CHEN CHEN BRUNO ALICE DINA JULES CHEN KIM BRUNO CHEN
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018078-p1
Transform the first column to uppercase letters and print only that modified column.
{print toupper($1)}
gus juniper 32 kim fable 68 kim ember 81 jules juniper 27 kim amber 55 hana amber 13 alice indigo 26
GUS KIM KIM JULES KIM HANA ALICE
chen indigo 36 chen ember 71 bruno harbor 63 alice delta 1 dina fable 54 jules cobalt 27 chen fable 119 kim delta 71 bruno indigo 114 chen grove 15
CHEN CHEN BRUNO ALICE DINA JULES CHEN KIM BRUNO CHEN
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018078
qwen/qwen3.7-plus
awkweave-0018079
From column 1, print 3 characters starting at character 3.
{print substr($1,3,3)}
fable 3 indigo 115 delta 31 cobalt 113 fable 55 delta 40
ble dig lta bal ble lta
grove 51 indigo 55 fable 118 delta 49 indigo 4 birch 83 amber 120 birch 50
ove dig ble lta dig rch ber rch
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018079-p1
Extract and print a substring of 3 characters from the first column, beginning at the third character position.
{print substr($1,3,3)}
fable 3 indigo 115 delta 31 cobalt 113 fable 55 delta 40
ble dig lta bal ble lta
grove 51 indigo 55 fable 118 delta 49 indigo 4 birch 83 amber 120 birch 50
ove dig ble lta dig rch ber rch
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018079
qwen/qwen3.7-plus
awkweave-0018080
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
harbor_grove 27 fable_indigo 109 juniper_fable 33 amber_fable 77 delta_birch 44 juniper_juniper 72
harbor grove fable indigo juniper fable amber fable delta birch juniper juniper
ember_cobalt 56 grove_ember 79 amber_ember 9 amber_amber 109 juniper_amber 94 fable_birch 72 grove_birch 80 amber_indigo 35
ember cobalt grove ember amber ember amber amber juniper amber fable birch grove birch amber indigo
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018080-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
harbor_grove 27 fable_indigo 109 juniper_fable 33 amber_fable 77 delta_birch 44 juniper_juniper 72
harbor grove fable indigo juniper fable amber fable delta birch juniper juniper
ember_cobalt 56 grove_ember 79 amber_ember 9 amber_amber 109 juniper_amber 94 fable_birch 72 grove_birch 80 amber_indigo 35
ember cobalt grove ember amber ember amber amber juniper amber fable birch grove birch amber indigo
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018080
qwen/qwen3.7-plus
awkweave-0018081
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)}
lina harbor 15 ready chen amber 104 pending hana delta 117 active alice ember 27 paused farah ember 109 active eli harbor 19 ready lina harbor 90 failed hana indigo 8 pending bruno cobalt 73 pending
ready 15 harbor lina pending 104 amber chen active 117 delta hana paused 27 ember alice active 109 ember farah ready 19 harbor eli failed 90 harbor lina pending 8 indigo hana pending 73 cobalt bruno
lina juniper 91 failed kim juniper 55 ready lina delta 31 pending lina juniper 109 ready jules cobalt 116 active ivan harbor 66 active alice grove 41 active bruno grove 29 active
failed 91 juniper lina ready 55 juniper kim pending 31 delta lina ready 109 juniper lina active 116 cobalt jules active 66 harbor ivan active 41 grove alice active 29 grove bruno
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018081-p1
Invert 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)}
lina harbor 15 ready chen amber 104 pending hana delta 117 active alice ember 27 paused farah ember 109 active eli harbor 19 ready lina harbor 90 failed hana indigo 8 pending bruno cobalt 73 pending
ready 15 harbor lina pending 104 amber chen active 117 delta hana paused 27 ember alice active 109 ember farah ready 19 harbor eli failed 90 harbor lina pending 8 indigo hana pending 73 cobalt bruno
lina juniper 91 failed kim juniper 55 ready lina delta 31 pending lina juniper 109 ready jules cobalt 116 active ivan harbor 66 active alice grove 41 active bruno grove 29 active
failed 91 juniper lina ready 55 juniper kim pending 31 delta lina ready 109 juniper lina active 116 cobalt jules active 66 harbor ivan active 41 grove alice active 29 grove bruno
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018081
qwen/qwen3.7-plus
awkweave-0018082
Print the number of whitespace-separated fields on each line.
{print NF}
chen grove 108 closed gus harbor 83 paused farah birch 93 pending lina delta 17 closed farah amber 81 paused chen amber 119 ready
4 4 4 4 4 4
hana indigo 74 pending chen indigo 71 paused dina indigo 6 pending jules harbor 40 pending farah juniper 34 closed gus amber 59 closed dina grove 69 closed bruno delta 22 active
4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018082-p1
Display the count of whitespace-delimited fields present on each line.
{print NF}
chen grove 108 closed gus harbor 83 paused farah birch 93 pending lina delta 17 closed farah amber 81 paused chen amber 119 ready
4 4 4 4 4 4
hana indigo 74 pending chen indigo 71 paused dina indigo 6 pending jules harbor 40 pending farah juniper 34 closed gus amber 59 closed dina grove 69 closed bruno delta 22 active
4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018082
qwen/qwen3.7-plus
awkweave-0018083
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]]}
alice alpha 92 chen alpha 45 hana delta 88 ivan gamma 28 alice beta 62 gus gamma 63 chen beta 98
alpha 2 delta 1 gamma 2 beta 2
kim gamma 82 kim delta 61 dina beta 40 bruno gamma 84 farah alpha 66 hana delta 95 dina beta 20 bruno gamma 68 chen delta 19
gamma 3 delta 3 beta 2 alpha 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018083-p1
Tally the number of records for each distinct value in the second column, then print each value and its corresponding count in the order they first appeared.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
alice alpha 92 chen alpha 45 hana delta 88 ivan gamma 28 alice beta 62 gus gamma 63 chen beta 98
alpha 2 delta 1 gamma 2 beta 2
kim gamma 82 kim delta 61 dina beta 40 bruno gamma 84 farah alpha 66 hana delta 95 dina beta 20 bruno gamma 68 chen delta 19
gamma 3 delta 3 beta 2 alpha 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018083
qwen/qwen3.7-plus
awkweave-0018084
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]]}
kim alpha 23 alice alpha 3 ivan alpha 30 bruno delta 26 gus gamma 15 kim gamma 10
alpha 56 delta 26 gamma 25
lina beta 21 dina beta 20 eli delta 6 bruno alpha 27 eli delta 6 eli delta 21
beta 41 delta 33 alpha 27
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018084-p1
Aggregate the values in column 3 by the categories in column 2, listing the results in the order the 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]]}
kim alpha 23 alice alpha 3 ivan alpha 30 bruno delta 26 gus gamma 15 kim gamma 10
alpha 56 delta 26 gamma 25
lina beta 21 dina beta 20 eli delta 6 bruno alpha 27 eli delta 6 eli delta 21
beta 41 delta 33 alpha 27
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018084
qwen/qwen3.7-plus
awkweave-0018085
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 harbor 51 delta harbor 89 beta cobalt 39 alpha grove 33 delta ember 17 alpha birch 75 gamma indigo 49 gamma cobalt 46
gamma 3 delta 2 alpha 2
delta delta 13 beta indigo 68 beta delta 10 delta juniper 21 alpha indigo 87 delta harbor 43 beta delta 67 gamma indigo 61
delta 3 beta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018085-p1
List each duplicate entry from column 1 alongside its frequency count, 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 harbor 51 delta harbor 89 beta cobalt 39 alpha grove 33 delta ember 17 alpha birch 75 gamma indigo 49 gamma cobalt 46
gamma 3 delta 2 alpha 2
delta delta 13 beta indigo 68 beta delta 10 delta juniper 21 alpha indigo 87 delta harbor 43 beta delta 67 gamma indigo 61
delta 3 beta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018085
qwen/qwen3.7-plus
awkweave-0018086
The first row is a header. Print the note column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
state note display_name score r001 chen 17 pending r002 dina 11 closed r003 bruno 17 ready r004 chen 9 paused r005 dina 28 failed r006 dina 19 ready
chen dina bruno chen dina dina
state note display_name score r001 eli 20 ready r002 chen 16 failed r003 chen 9 pending r004 jules 5 closed r005 bruno 30 failed r006 farah 15 pending r007 kim 1 failed r008 hana 15 pending r009 alice 3 pending r010 hana 22 pending
eli chen chen jules bruno farah kim hana alice hana
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018086-p1
Treating the initial row as a header, output the note column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
state note display_name score r001 chen 17 pending r002 dina 11 closed r003 bruno 17 ready r004 chen 9 paused r005 dina 28 failed r006 dina 19 ready
chen dina bruno chen dina dina
state note display_name score r001 eli 20 ready r002 chen 16 failed r003 chen 9 pending r004 jules 5 closed r005 bruno 30 failed r006 farah 15 pending r007 kim 1 failed r008 hana 15 pending r009 alice 3 pending r010 hana 22 pending
eli chen chen jules bruno farah kim hana alice hana
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018086
qwen/qwen3.7-plus
awkweave-0018087
The first row is a header. Print display_name for data rows whose score is greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 bruno 10 closed r002 ivan 12 closed r003 chen 25 active r004 gus 2 pending r005 ivan 17 active r006 chen 25 closed r007 jules 2 paused
chen ivan chen
record_id display_name score state r001 bruno 21 pending r002 bruno 16 paused r003 bruno 30 ready r004 eli 12 ready r005 bruno 9 pending r006 hana 11 active r007 alice 22 pending r008 alice 20 paused
bruno bruno alice alice
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018087-p1
With the first line as a header, display the display_name field for records where the score is strictly greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 bruno 10 closed r002 ivan 12 closed r003 chen 25 active r004 gus 2 pending r005 ivan 17 active r006 chen 25 closed r007 jules 2 paused
chen ivan chen
record_id display_name score state r001 bruno 21 pending r002 bruno 16 paused r003 bruno 30 ready r004 eli 12 ready r005 bruno 9 pending r006 hana 11 active r007 alice 22 pending r008 alice 20 paused
bruno bruno alice alice
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018087
qwen/qwen3.7-plus
awkweave-0018088
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
bruno 22 paused ivan 11 paused kim 4 ready bruno 10 failed bruno 24 paused farah 7 closed
bruno ivan kim bruno bruno farah
ivan 17 ready farah 9 ready ivan 10 failed chen 15 active ivan 11 ready ivan 29 closed alice 8 pending hana 11 closed
ivan farah ivan chen ivan ivan alice hana
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018088-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
bruno 22 paused ivan 11 paused kim 4 ready bruno 10 failed bruno 24 paused farah 7 closed
bruno ivan kim bruno bruno farah
ivan 17 ready farah 9 ready ivan 10 failed chen 15 active ivan 11 ready ivan 29 closed alice 8 pending hana 11 closed
ivan farah ivan chen ivan ivan alice hana
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0018088
qwen/qwen3.7-plus
awkweave-0018089
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 16.
BEGIN{FS=OFS=","}$2>16{print $1}
hana,18,ready dina,29,failed alice,23,ready bruno,6,pending farah,19,ready gus,11,active
hana dina alice farah
kim,17,closed lina,14,closed farah,14,ready kim,12,paused farah,17,ready chen,9,pending lina,11,failed alice,8,ready
kim farah
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018089-p1
For simple comma-separated input without quoted commas, output the first column whenever the second column value is greater than 16.
BEGIN{FS=OFS=","}$2>16{print $1}
hana,18,ready dina,29,failed alice,23,ready bruno,6,pending farah,19,ready gus,11,active
hana dina alice farah
kim,17,closed lina,14,closed farah,14,ready kim,12,paused farah,17,ready chen,9,pending lina,11,failed alice,8,ready
kim farah
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018089
qwen/qwen3.7-plus
awkweave-0018100
Print column 2 only for rows where column 4 is exactly failed.
$4 == "failed"{print $2}
indigo eli 94 failed grove hana 81 closed cobalt gus 4 closed juniper dina 54 pending birch chen 4 closed grove gus 11 closed grove chen 56 active ember chen 23 failed harbor jules 107 pending
eli chen
indigo dina 120 pending fable ivan 53 failed amber kim 83 closed amber bruno 24 ready harbor ivan 74 ready amber dina 44 paused birch bruno 73 failed harbor dina 102 ready delta ivan 55 closed
ivan bruno
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018100-p1
Output the second column exclusively for rows where the fourth column matches the string 'failed' exactly.
$4 == "failed"{print $2}
indigo eli 94 failed grove hana 81 closed cobalt gus 4 closed juniper dina 54 pending birch chen 4 closed grove gus 11 closed grove chen 56 active ember chen 23 failed harbor jules 107 pending
eli chen
indigo dina 120 pending fable ivan 53 failed amber kim 83 closed amber bruno 24 ready harbor ivan 74 ready amber dina 44 paused birch bruno 73 failed harbor dina 102 ready delta ivan 55 closed
ivan bruno
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018100
qwen/qwen3.7-plus
awkweave-0018101
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
67 INFO cobalt 115 WARN fable 60 INFO fable 117 WARN ember 40 DEBUG juniper 16 ERROR ember 27 DEBUG juniper 3 INFO birch 63 INFO birch 56 DEBUG ember
16 ERROR ember
15 INFO amber 85 ERROR ember 35 ERROR grove 39 WARN grove 30 INFO juniper 80 ERROR birch 99 WARN juniper 13 WARN delta 92 WARN cobalt
85 ERROR ember 35 ERROR grove 80 ERROR birch
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018101-p1
Display all fields from any line where the second field starts with the prefix 'ERROR'.
$2 ~ /^ERROR/
67 INFO cobalt 115 WARN fable 60 INFO fable 117 WARN ember 40 DEBUG juniper 16 ERROR ember 27 DEBUG juniper 3 INFO birch 63 INFO birch 56 DEBUG ember
16 ERROR ember
15 INFO amber 85 ERROR ember 35 ERROR grove 39 WARN grove 30 INFO juniper 80 ERROR birch 99 WARN juniper 13 WARN delta 92 WARN cobalt
85 ERROR ember 35 ERROR grove 80 ERROR birch
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018101
qwen/qwen3.7-plus
awkweave-0018102
Print every line except those containing the exact text cobalt.
$0 !~ /cobalt/
delta 79 failed indigo 20 ready cobalt 37 failed fable 75 ready grove 74 paused cobalt 44 paused cobalt 999 active
delta 79 failed indigo 20 ready fable 75 ready grove 74 paused
harbor 43 pending juniper 54 pending delta 50 closed juniper 88 pending cobalt 44 failed birch 92 pending cobalt 999 active
harbor 43 pending juniper 54 pending delta 50 closed juniper 88 pending birch 92 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018102-p1
Print every line that does not contain the exact substring 'cobalt'.
$0 !~ /cobalt/
delta 79 failed indigo 20 ready cobalt 37 failed fable 75 ready grove 74 paused cobalt 44 paused cobalt 999 active
delta 79 failed indigo 20 ready fable 75 ready grove 74 paused
harbor 43 pending juniper 54 pending delta 50 closed juniper 88 pending cobalt 44 failed birch 92 pending cobalt 999 active
harbor 43 pending juniper 54 pending delta 50 closed juniper 88 pending birch 92 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018102
qwen/qwen3.7-plus
awkweave-0018103
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
gus fable 16 chen delta 61 hana cobalt 69 bruno harbor 81 dina cobalt 48 jules indigo 82 bruno grove 83 kim amber 19 farah fable 59
bruno harbor 81 dina cobalt 48 jules indigo 82 bruno grove 83
dina grove 29 kim birch 78 chen grove 29 jules amber 0 eli fable 66 chen ember 117 alice grove 4 chen delta 28 farah cobalt 47
jules amber 0 eli fable 66 chen ember 117 alice grove 4
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018103-p1
Output lines 4 through 7, inclusive of both the start and end lines.
NR >= 4 && NR <= 7
gus fable 16 chen delta 61 hana cobalt 69 bruno harbor 81 dina cobalt 48 jules indigo 82 bruno grove 83 kim amber 19 farah fable 59
bruno harbor 81 dina cobalt 48 jules indigo 82 bruno grove 83
dina grove 29 kim birch 78 chen grove 29 jules amber 0 eli fable 66 chen ember 117 alice grove 4 chen delta 28 farah cobalt 47
jules amber 0 eli fable 66 chen ember 117 alice grove 4
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018103
qwen/qwen3.7-plus
awkweave-0018104
Output only the first 5 records.
NR <= 5
kim 20 amber ivan 81 grove gus 7 ember alice 117 amber chen 29 juniper bruno 7 birch hana 83 delta alice 5 indigo eli 50 juniper bruno 102 indigo
kim 20 amber ivan 81 grove gus 7 ember alice 117 amber chen 29 juniper
farah 52 amber ivan 63 juniper dina 118 amber jules 17 cobalt bruno 86 cobalt eli 36 ember jules 12 grove kim 91 ember
farah 52 amber ivan 63 juniper dina 118 amber jules 17 cobalt bruno 86 cobalt
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018104-p1
Restrict the output to only the first five records.
NR <= 5
kim 20 amber ivan 81 grove gus 7 ember alice 117 amber chen 29 juniper bruno 7 birch hana 83 delta alice 5 indigo eli 50 juniper bruno 102 indigo
kim 20 amber ivan 81 grove gus 7 ember alice 117 amber chen 29 juniper
farah 52 amber ivan 63 juniper dina 118 amber jules 17 cobalt bruno 86 cobalt eli 36 ember jules 12 grove kim 91 ember
farah 52 amber ivan 63 juniper dina 118 amber jules 17 cobalt bruno 86 cobalt
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018104
qwen/qwen3.7-plus
awkweave-0018105
Skip the first line and print every remaining line unchanged.
NR > 1
gus 104 fable hana 17 harbor alice 5 delta bruno 95 ember eli 9 harbor eli 23 amber ivan 34 juniper ivan 95 harbor alice 29 fable
hana 17 harbor alice 5 delta bruno 95 ember eli 9 harbor eli 23 amber ivan 34 juniper ivan 95 harbor alice 29 fable
eli 5 cobalt hana 78 ember eli 28 juniper kim 0 indigo kim 21 cobalt eli 59 indigo gus 11 grove
hana 78 ember eli 28 juniper kim 0 indigo kim 21 cobalt eli 59 indigo gus 11 grove
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018105-p1
Omit the first line and print all remaining lines exactly as they appear.
NR > 1
gus 104 fable hana 17 harbor alice 5 delta bruno 95 ember eli 9 harbor eli 23 amber ivan 34 juniper ivan 95 harbor alice 29 fable
hana 17 harbor alice 5 delta bruno 95 ember eli 9 harbor eli 23 amber ivan 34 juniper ivan 95 harbor alice 29 fable
eli 5 cobalt hana 78 ember eli 28 juniper kim 0 indigo kim 21 cobalt eli 59 indigo gus 11 grove
hana 78 ember eli 28 juniper kim 0 indigo kim 21 cobalt eli 59 indigo gus 11 grove
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018105
qwen/qwen3.7-plus
awkweave-0018106
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
dina failed 95 hana paused 48 dina paused 20 kim pending 54 kim active 5 farah ready 99 farah active 84 alice active 58
0
bruno pending 103 kim closed 73 jules closed 112 eli ready 87 hana pending 81 ivan failed 80
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018106-p1
Determine the number of entries where column 2 contains 'closed', outputting 0 if no such entries exist.
$2 == "closed"{n++}END{print n+0}
dina failed 95 hana paused 48 dina paused 20 kim pending 54 kim active 5 farah ready 99 farah active 84 alice active 58
0
bruno pending 103 kim closed 73 jules closed 112 eli ready 87 hana pending 81 ivan failed 80
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018106
qwen/qwen3.7-plus
awkweave-0018107
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
hana 25 fable chen 30 amber dina 13 juniper farah 3 cobalt gus 29 juniper hana 27 amber ivan 27 amber gus 20 delta jules 22 indigo lina 27 cobalt
223
hana 5 delta alice 5 harbor gus 2 fable chen 7 harbor ivan 26 birch lina 5 ember ivan 17 grove alice 6 fable farah 19 delta hana 10 birch
102
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018107-p1
Compute and display the total sum of all integer values found in column 2.
{s+=$2}END{print s+0}
hana 25 fable chen 30 amber dina 13 juniper farah 3 cobalt gus 29 juniper hana 27 amber ivan 27 amber gus 20 delta jules 22 indigo lina 27 cobalt
223
hana 5 delta alice 5 harbor gus 2 fable chen 7 harbor ivan 26 birch lina 5 ember ivan 17 grove alice 6 fable farah 19 delta hana 10 birch
102
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018107
qwen/qwen3.7-plus
awkweave-0018108
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
27 birch dina 1 harbor kim 2 fable dina 23 amber hana 24 juniper lina 5 indigo bruno 24 delta bruno
15.14
1 birch chen 25 juniper hana 12 cobalt farah 9 ember hana 2 grove farah 11 cobalt ivan
10.00
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018108-p1
Output the average of the values in column 1, formatted to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
27 birch dina 1 harbor kim 2 fable dina 23 amber hana 24 juniper lina 5 indigo bruno 24 delta bruno
15.14
1 birch chen 25 juniper hana 12 cobalt farah 9 ember hana 2 grove farah 11 cobalt ivan
10.00
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018108
qwen/qwen3.7-plus
awkweave-0018109
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
chen 2 fable ivan 14 fable kim 3 amber jules 2 amber jules 10 grove lina 9 ember hana 28 juniper lina 23 juniper
2
ivan 11 delta hana 21 birch jules 1 fable jules 2 ember gus 21 birch chen 1 harbor eli 16 amber kim 6 birch eli 30 juniper
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0018109-p1
Identify and print the minimum numeric value present in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
chen 2 fable ivan 14 fable kim 3 amber jules 2 amber jules 10 grove lina 9 ember hana 28 juniper lina 23 juniper
2
ivan 11 delta hana 21 birch jules 1 fable jules 2 ember gus 21 birch chen 1 harbor eli 16 amber kim 6 birch eli 30 juniper
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0018109
qwen/qwen3.7-plus
awkweave-0018110
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
2 harbor lina 18 grove bruno 4 amber kim 21 birch ivan 12 indigo jules 16 juniper bruno 15 birch farah 23 amber alice 16 harbor gus
23
29 birch lina 24 grove dina 6 delta farah 20 delta lina 16 ember lina 6 birch bruno 27 harbor bruno 18 delta gus 10 birch eli 8 juniper dina
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null