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-0034661-p1
Skip the header row and output the 'state' field for all remaining records.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
note record_id state score r001 eli 29 pending r002 eli 11 closed r003 alice 25 paused r004 hana 5 failed r005 gus 22 closed r006 jules 22 closed r007 ivan 29 failed r008 alice 20 ready r009 eli 16 ready r010 farah 29 active
29 11 25 5 22 22 29 20 16 29
note record_id state score r001 lina 21 active r002 eli 9 active r003 farah 9 failed r004 lina 25 paused r005 kim 28 pending r006 kim 12 pending r007 farah 6 ready r008 bruno 4 active r009 alice 7 failed
21 9 9 25 28 12 6 4 7
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034661
qwen/qwen3.7-plus
awkweave-0034662
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 farah 14 pending r002 jules 22 active r003 farah 22 active r004 lina 18 pending r005 lina 8 paused r006 jules 29 ready
jules farah lina jules
record_id display_name score state r001 lina 9 closed r002 jules 30 closed r003 dina 15 ready r004 farah 18 pending r005 chen 11 paused r006 hana 27 failed r007 lina 16 closed r008 hana 13 ready
jules farah hana
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034662-p1
Ignore the header line and print the 'display_name' field for rows 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 farah 14 pending r002 jules 22 active r003 farah 22 active r004 lina 18 pending r005 lina 8 paused r006 jules 29 ready
jules farah lina jules
record_id display_name score state r001 lina 9 closed r002 jules 30 closed r003 dina 15 ready r004 farah 18 pending r005 chen 11 paused r006 hana 27 failed r007 lina 16 closed r008 hana 13 ready
jules farah hana
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034662
qwen/qwen3.7-plus
awkweave-0034663
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 30 active farah 12 ready eli 22 paused hana 24 pending dina 14 failed eli 22 closed
30 12 22 24 14 22
chen 17 active gus 2 closed chen 20 paused kim 4 ready kim 7 pending dina 16 active kim 30 closed kim 19 pending
17 2 20 4 7 16 30 19
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034663-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 30 active farah 12 ready eli 22 paused hana 24 pending dina 14 failed eli 22 closed
30 12 22 24 14 22
chen 17 active gus 2 closed chen 20 paused kim 4 ready kim 7 pending dina 16 active kim 30 closed kim 19 pending
17 2 20 4 7 16 30 19
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0034663
qwen/qwen3.7-plus
awkweave-0034664
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 10.
BEGIN{FS=OFS=","}$2>10{print $1}
chen,1,active jules,14,active eli,25,ready farah,29,active farah,8,closed dina,23,closed hana,18,paused ivan,22,failed chen,24,closed eli,22,failed
jules eli farah dina hana ivan chen eli
dina,14,pending ivan,8,pending farah,7,paused alice,27,closed farah,12,pending eli,16,failed alice,20,closed
dina alice farah eli alice
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034664-p1
Process simple CSV data without quoted commas; output the first field only if the second field is greater than 10.
BEGIN{FS=OFS=","}$2>10{print $1}
chen,1,active jules,14,active eli,25,ready farah,29,active farah,8,closed dina,23,closed hana,18,paused ivan,22,failed chen,24,closed eli,22,failed
jules eli farah dina hana ivan chen eli
dina,14,pending ivan,8,pending farah,7,paused alice,27,closed farah,12,pending eli,16,failed alice,20,closed
dina alice farah eli alice
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034664
qwen/qwen3.7-plus
awkweave-0034665
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
eli grove 91 hana fable 108 chen amber 22 eli cobalt 104 ivan juniper 120 bruno harbor 89 farah harbor 70 gus juniper 41
eli grove 91 hana fable 108 chen amber 22 eli cobalt 104 ivan juniper 120 bruno harbor 89 farah harbor 70 gus juniper 41
kim birch 89 jules fable 114 kim fable 54 ivan juniper 56 chen ember 6 dina indigo 7
kim birch 89 jules fable 114 kim fable 54 ivan juniper 56 chen ember 6 dina indigo 7
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034665-p1
Remove leading and trailing whitespace from each line and replace sequences of internal whitespace with a single space.
{$1=$1;print}
eli grove 91 hana fable 108 chen amber 22 eli cobalt 104 ivan juniper 120 bruno harbor 89 farah harbor 70 gus juniper 41
eli grove 91 hana fable 108 chen amber 22 eli cobalt 104 ivan juniper 120 bruno harbor 89 farah harbor 70 gus juniper 41
kim birch 89 jules fable 114 kim fable 54 ivan juniper 56 chen ember 6 dina indigo 7
kim birch 89 jules fable 114 kim fable 54 ivan juniper 56 chen ember 6 dina indigo 7
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034665
qwen/qwen3.7-plus
awkweave-0034666
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
lina juniper 62 failed farah birch 24 paused lina delta 82 failed eli harbor 105 failed jules ember 43 paused ivan cobalt 23 pending alice birch 20 pending
lina juniper 62 failed
dina indigo 33 ready lina indigo 35 pending alice grove 73 closed farah cobalt 115 active bruno delta 36 active lina juniper 35 closed chen indigo 71 failed gus cobalt 33 ready ivan fable 26 closed
farah cobalt 115 active
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034666-p1
Identify and output 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}
lina juniper 62 failed farah birch 24 paused lina delta 82 failed eli harbor 105 failed jules ember 43 paused ivan cobalt 23 pending alice birch 20 pending
lina juniper 62 failed
dina indigo 33 ready lina indigo 35 pending alice grove 73 closed farah cobalt 115 active bruno delta 36 active lina juniper 35 closed chen indigo 71 failed gus cobalt 33 ready ivan fable 26 closed
farah cobalt 115 active
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034666
qwen/qwen3.7-plus
awkweave-0034667
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
dina 39 lina 13 bruno 55 lina 48 bruno 116 ivan 116 kim 51 ivan 103 eli 92
dina 39 bruno 55 bruno 116 kim 51 eli 92
dina 26 eli 21 ivan 113 lina 103 eli 97 eli 111
dina 26 ivan 113 eli 97
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034667-p1
Output lines 1, 3, 5, and so on, effectively printing every other line starting from the first.
NR%2==1
dina 39 lina 13 bruno 55 lina 48 bruno 116 ivan 116 kim 51 ivan 103 eli 92
dina 39 bruno 55 bruno 116 kim 51 eli 92
dina 26 eli 21 ivan 113 lina 103 eli 97 eli 111
dina 26 ivan 113 eli 97
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034667
qwen/qwen3.7-plus
awkweave-0034668
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
gamma amber 24 gamma indigo 101 gamma birch 15 beta cobalt 95 alpha birch 77 delta cobalt 90 delta delta 76 delta grove 30 gamma cobalt 60
6
gamma ember 87 beta ember 76 alpha indigo 82 gamma birch 114 gamma juniper 51 delta harbor 112 delta grove 118 gamma harbor 60
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034668-p1
Calculate the number of unique values in the second column and print only that total count.
{if(!seen[$2]++)n++}END{print n+0}
gamma amber 24 gamma indigo 101 gamma birch 15 beta cobalt 95 alpha birch 77 delta cobalt 90 delta delta 76 delta grove 30 gamma cobalt 60
6
gamma ember 87 beta ember 76 alpha indigo 82 gamma birch 114 gamma juniper 51 delta harbor 112 delta grove 118 gamma harbor 60
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034668
qwen/qwen3.7-plus
awkweave-0034669
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}
jules 7 0 alice 7 23 eli 5 25 kim 7 23 jules 8 21 bruno 18 22 hana 7 26 hana 15 12 bruno 16 26
alice 0.30 eli 0.20 kim 0.30 jules 0.38 bruno 0.82 hana 0.27 hana 1.25 bruno 0.62
hana 15 0 chen 10 6 farah 6 16 kim 30 8 dina 30 16 jules 4 19 chen 5 3 eli 8 6
chen 1.67 farah 0.38 kim 3.75 dina 1.88 jules 0.21 chen 1.67 eli 1.33
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034669-p1
For each record, output the first column and the result of dividing the second column by the third (rounded to two decimal places), omitting any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
jules 7 0 alice 7 23 eli 5 25 kim 7 23 jules 8 21 bruno 18 22 hana 7 26 hana 15 12 bruno 16 26
alice 0.30 eli 0.20 kim 0.30 jules 0.38 bruno 0.82 hana 0.27 hana 1.25 bruno 0.62
hana 15 0 chen 10 6 farah 6 16 kim 30 8 dina 30 16 jules 4 19 chen 5 3 eli 8 6
chen 1.67 farah 0.38 kim 3.75 dina 1.88 jules 0.21 chen 1.67 eli 1.33
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034669
qwen/qwen3.7-plus
awkweave-0034670
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
alice harbor 18 chen fable 7 farah amber 24 ivan amber 14 jules juniper 17 jules fable 22 dina amber 5 farah fable 11 alice indigo 3
farah amber 24 jules fable 22 alice harbor 18
gus grove 1 lina grove 18 lina cobalt 29 kim indigo 23 gus birch 2 hana juniper 1 alice indigo 18
lina cobalt 29 kim indigo 23 lina grove 18
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034670-p1
Select the top three records based on the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
alice harbor 18 chen fable 7 farah amber 24 ivan amber 14 jules juniper 17 jules fable 22 dina amber 5 farah fable 11 alice indigo 3
farah amber 24 jules fable 22 alice harbor 18
gus grove 1 lina grove 18 lina cobalt 29 kim indigo 23 gus birch 2 hana juniper 1 alice indigo 18
lina cobalt 29 kim indigo 23 lina grove 18
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034670
qwen/qwen3.7-plus
awkweave-0034671
For each line, output fields 5 and 3, in that order.
{print $5, $3}
74 ready fable ready birch 108 failed grove ready indigo 63 pending harbor failed cobalt 1 ready indigo paused cobalt 105 closed grove closed harbor 38 pending birch active harbor 54 closed harbor ready birch 35 failed amber closed ember 2 closed amber active delta 109 active juniper paused fable
birch fable indigo grove cobalt harbor cobalt indigo harbor grove harbor birch birch harbor ember amber delta amber fable juniper
23 ready juniper failed fable 3 paused ember paused amber 13 closed harbor paused amber 113 closed amber paused juniper 97 failed juniper failed delta 8 paused amber ready delta
fable juniper amber ember amber harbor juniper amber delta juniper delta amber
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034671-p1
For every line, print the fifth field followed by the third field.
{print $5, $3}
74 ready fable ready birch 108 failed grove ready indigo 63 pending harbor failed cobalt 1 ready indigo paused cobalt 105 closed grove closed harbor 38 pending birch active harbor 54 closed harbor ready birch 35 failed amber closed ember 2 closed amber active delta 109 active juniper paused fable
birch fable indigo grove cobalt harbor cobalt indigo harbor grove harbor birch birch harbor ember amber delta amber fable juniper
23 ready juniper failed fable 3 paused ember paused amber 13 closed harbor paused amber 113 closed amber paused juniper 97 failed juniper failed delta 8 paused amber ready delta
fable juniper amber ember amber harbor juniper amber delta juniper delta amber
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034671
qwen/qwen3.7-plus
awkweave-0034672
Print the last field of every input line.
{print $NF}
paused juniper alice paused closed pending ready birch kim pending failed failed failed juniper bruno active paused ready pending grove kim pending paused active failed indigo eli failed active failed paused amber farah closed closed closed ready cobalt hana ready closed failed paused cobalt farah pending active ready
pending failed ready active failed closed failed ready
active harbor chen ready pending active failed grove alice failed paused closed active indigo lina failed closed active failed harbor dina paused ready active paused grove farah paused failed paused failed birch alice ready pending failed active amber jules pending pending closed ready fable alice paused pending closed...
active closed active active paused failed closed closed
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034672-p1
Output the final field from each line of input.
{print $NF}
paused juniper alice paused closed pending ready birch kim pending failed failed failed juniper bruno active paused ready pending grove kim pending paused active failed indigo eli failed active failed paused amber farah closed closed closed ready cobalt hana ready closed failed paused cobalt farah pending active ready
pending failed ready active failed closed failed ready
active harbor chen ready pending active failed grove alice failed paused closed active indigo lina failed closed active failed harbor dina paused ready active paused grove farah paused failed paused failed birch alice ready pending failed active amber jules pending pending closed ready fable alice paused pending closed...
active closed active active paused failed closed closed
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034672
qwen/qwen3.7-plus
awkweave-0034673
Print the complete records where column 3 is less than 55.
$3 < 55
ivan amber 90 active alice dina cobalt 75 ready alice jules cobalt 86 active kim alice fable 42 failed bruno chen amber 94 paused eli bruno fable 118 pending alice eli ember 107 closed jules jules grove 98 pending kim chen birch 1 ready kim
alice fable 42 failed bruno chen birch 1 ready kim
lina birch 118 paused lina bruno cobalt 24 ready jules ivan indigo 51 closed lina bruno birch 109 ready dina hana birch 24 failed chen gus grove 73 active alice gus delta 117 ready eli chen grove 97 ready dina jules harbor 51 failed gus
bruno cobalt 24 ready jules ivan indigo 51 closed lina hana birch 24 failed chen jules harbor 51 failed gus
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034673-p1
Display full records where the third column has a value strictly less than 55.
$3 < 55
ivan amber 90 active alice dina cobalt 75 ready alice jules cobalt 86 active kim alice fable 42 failed bruno chen amber 94 paused eli bruno fable 118 pending alice eli ember 107 closed jules jules grove 98 pending kim chen birch 1 ready kim
alice fable 42 failed bruno chen birch 1 ready kim
lina birch 118 paused lina bruno cobalt 24 ready jules ivan indigo 51 closed lina bruno birch 109 ready dina hana birch 24 failed chen gus grove 73 active alice gus delta 117 ready eli chen grove 97 ready dina jules harbor 51 failed gus
bruno cobalt 24 ready jules ivan indigo 51 closed lina hana birch 24 failed chen jules harbor 51 failed gus
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034673
qwen/qwen3.7-plus
awkweave-0034674
Show whole lines whose 1st field is between 10 and 19, inclusive.
$1 >= 10 && $1 <= 19
7 failed bruno jules 26 ready hana dina 26 active ivan eli 10 closed jules ivan 29 closed farah chen 10 paused ivan chen 17 closed chen chen 17 failed kim eli 13 closed alice gus 6 active lina farah
10 closed jules ivan 10 paused ivan chen 17 closed chen chen 17 failed kim eli 13 closed alice gus
8 pending dina dina 9 closed ivan chen 14 closed chen jules 16 ready hana bruno 14 failed alice dina 27 ready farah jules 23 ready jules gus 15 pending lina dina
14 closed chen jules 16 ready hana bruno 14 failed alice dina 15 pending lina dina
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034674-p1
Show entire lines where the first field falls within the inclusive range of 10 to 19.
$1 >= 10 && $1 <= 19
7 failed bruno jules 26 ready hana dina 26 active ivan eli 10 closed jules ivan 29 closed farah chen 10 paused ivan chen 17 closed chen chen 17 failed kim eli 13 closed alice gus 6 active lina farah
10 closed jules ivan 10 paused ivan chen 17 closed chen chen 17 failed kim eli 13 closed alice gus
8 pending dina dina 9 closed ivan chen 14 closed chen jules 16 ready hana bruno 14 failed alice dina 27 ready farah jules 23 ready jules gus 15 pending lina dina
14 closed chen jules 16 ready hana bruno 14 failed alice dina 15 pending lina dina
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034674
qwen/qwen3.7-plus
awkweave-0034675
Print column 3 only for rows where column 1 is exactly ready.
$1 == "ready"{print $3}
pending 1 eli birch ready 111 jules harbor failed 62 ivan harbor paused 42 hana cobalt pending 15 eli juniper failed 68 lina birch active 72 chen harbor ready 2 lina fable ready 53 ivan harbor
jules lina ivan
failed 11 lina birch closed 57 bruno fable paused 59 kim birch failed 25 jules indigo active 60 lina birch closed 24 farah birch failed 42 dina grove ready 75 kim cobalt closed 66 gus grove
kim
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034675-p1
Extract and print only the third column for rows where the first column is exactly 'ready'.
$1 == "ready"{print $3}
pending 1 eli birch ready 111 jules harbor failed 62 ivan harbor paused 42 hana cobalt pending 15 eli juniper failed 68 lina birch active 72 chen harbor ready 2 lina fable ready 53 ivan harbor
jules lina ivan
failed 11 lina birch closed 57 bruno fable paused 59 kim birch failed 25 jules indigo active 60 lina birch closed 24 farah birch failed 42 dina grove ready 75 kim cobalt closed 66 gus grove
kim
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034675
qwen/qwen3.7-plus
awkweave-0034676
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
INFO harbor 29 WARN delta 79 ERROR harbor 54 WARN amber 106 WARN cobalt 118 INFO grove 106 ERROR juniper 45 INFO indigo 1 DEBUG harbor 38 WARN fable 102
ERROR harbor 54 ERROR juniper 45
DEBUG indigo 27 DEBUG cobalt 59 WARN birch 58 ERROR cobalt 47 WARN delta 44 INFO harbor 33 INFO amber 65 DEBUG juniper 107
ERROR cobalt 47
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034676-p1
Print all fields from any line where the first field starts with the string 'ERROR'.
$1 ~ /^ERROR/
INFO harbor 29 WARN delta 79 ERROR harbor 54 WARN amber 106 WARN cobalt 118 INFO grove 106 ERROR juniper 45 INFO indigo 1 DEBUG harbor 38 WARN fable 102
ERROR harbor 54 ERROR juniper 45
DEBUG indigo 27 DEBUG cobalt 59 WARN birch 58 ERROR cobalt 47 WARN delta 44 INFO harbor 33 INFO amber 65 DEBUG juniper 107
ERROR cobalt 47
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034676
qwen/qwen3.7-plus
awkweave-0034677
Print every line except those containing the exact text fable.
$0 !~ /fable/
birch 89 closed grove 91 active fable 91 failed fable 14 active cobalt 29 paused fable 48 failed fable 100 active indigo 41 ready fable 999 active
birch 89 closed grove 91 active cobalt 29 paused indigo 41 ready
delta 51 closed amber 65 closed indigo 2 active juniper 85 pending birch 65 closed cobalt 18 closed delta 77 active cobalt 20 active indigo 86 paused fable 999 active
delta 51 closed amber 65 closed indigo 2 active juniper 85 pending birch 65 closed cobalt 18 closed delta 77 active cobalt 20 active indigo 86 paused
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034677-p1
Output every line that does not contain the exact substring 'fable'.
$0 !~ /fable/
birch 89 closed grove 91 active fable 91 failed fable 14 active cobalt 29 paused fable 48 failed fable 100 active indigo 41 ready fable 999 active
birch 89 closed grove 91 active cobalt 29 paused indigo 41 ready
delta 51 closed amber 65 closed indigo 2 active juniper 85 pending birch 65 closed cobalt 18 closed delta 77 active cobalt 20 active indigo 86 paused fable 999 active
delta 51 closed amber 65 closed indigo 2 active juniper 85 pending birch 65 closed cobalt 18 closed delta 77 active cobalt 20 active indigo 86 paused
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034677
qwen/qwen3.7-plus
awkweave-0034678
Print lines 3 through 4, including both endpoints.
NR >= 3 && NR <= 4
dina fable 70 bruno harbor 113 chen ember 19 bruno juniper 57 ivan indigo 64 hana harbor 83
chen ember 19 bruno juniper 57
hana birch 97 alice cobalt 15 kim indigo 52 ivan grove 93 chen birch 105 farah harbor 11 hana grove 44 gus juniper 62
kim indigo 52 ivan grove 93
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034678-p1
Print lines numbered 3 through 4, inclusive of both endpoints.
NR >= 3 && NR <= 4
dina fable 70 bruno harbor 113 chen ember 19 bruno juniper 57 ivan indigo 64 hana harbor 83
chen ember 19 bruno juniper 57
hana birch 97 alice cobalt 15 kim indigo 52 ivan grove 93 chen birch 105 farah harbor 11 hana grove 44 gus juniper 62
kim indigo 52 ivan grove 93
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034678
qwen/qwen3.7-plus
awkweave-0034679
Output only the first 5 records.
NR <= 5
dina 31 harbor kim 37 cobalt alice 72 amber gus 94 amber dina 33 ember alice 13 amber
dina 31 harbor kim 37 cobalt alice 72 amber gus 94 amber dina 33 ember
gus 89 harbor hana 98 harbor eli 73 delta gus 1 delta bruno 101 amber bruno 109 fable bruno 84 harbor dina 101 juniper
gus 89 harbor hana 98 harbor eli 73 delta gus 1 delta bruno 101 amber
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034679-p1
Output only the first 5 records from the input.
NR <= 5
dina 31 harbor kim 37 cobalt alice 72 amber gus 94 amber dina 33 ember alice 13 amber
dina 31 harbor kim 37 cobalt alice 72 amber gus 94 amber dina 33 ember
gus 89 harbor hana 98 harbor eli 73 delta gus 1 delta bruno 101 amber bruno 109 fable bruno 84 harbor dina 101 juniper
gus 89 harbor hana 98 harbor eli 73 delta gus 1 delta bruno 101 amber
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034679
qwen/qwen3.7-plus
awkweave-0034680
Skip the first line and print every remaining line unchanged.
NR > 1
alice 114 grove eli 105 birch alice 118 grove dina 46 juniper lina 104 cobalt alice 30 fable alice 39 cobalt
eli 105 birch alice 118 grove dina 46 juniper lina 104 cobalt alice 30 fable alice 39 cobalt
hana 118 ember gus 44 harbor dina 83 birch kim 106 cobalt chen 113 grove chen 30 cobalt farah 84 indigo
gus 44 harbor dina 83 birch kim 106 cobalt chen 113 grove chen 30 cobalt farah 84 indigo
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034680-p1
Ignore the first line and print all subsequent lines without modification.
NR > 1
alice 114 grove eli 105 birch alice 118 grove dina 46 juniper lina 104 cobalt alice 30 fable alice 39 cobalt
eli 105 birch alice 118 grove dina 46 juniper lina 104 cobalt alice 30 fable alice 39 cobalt
hana 118 ember gus 44 harbor dina 83 birch kim 106 cobalt chen 113 grove chen 30 cobalt farah 84 indigo
gus 44 harbor dina 83 birch kim 106 cobalt chen 113 grove chen 30 cobalt farah 84 indigo
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034680
qwen/qwen3.7-plus
awkweave-0034681
Count how many records have paused in column 2. Print 0 if there are none.
$2 == "paused"{n++}END{print n+0}
farah closed 82 ivan pending 9 bruno closed 28 gus paused 32 jules closed 64 dina ready 3 hana closed 36 kim pending 88 farah active 101 hana ready 1
1
chen paused 55 alice paused 70 bruno pending 113 dina paused 89 ivan ready 101 farah active 79 hana ready 55
3
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034681-p1
Count the number of records where column 2 contains 'paused', printing 0 if the count is zero.
$2 == "paused"{n++}END{print n+0}
farah closed 82 ivan pending 9 bruno closed 28 gus paused 32 jules closed 64 dina ready 3 hana closed 36 kim pending 88 farah active 101 hana ready 1
1
chen paused 55 alice paused 70 bruno pending 113 dina paused 89 ivan ready 101 farah active 79 hana ready 55
3
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034681
qwen/qwen3.7-plus
awkweave-0034682
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
indigo 3 jules amber 23 hana ember 30 hana juniper 30 farah indigo 26 gus fable 24 lina
136
juniper 15 chen ember 27 lina juniper 23 eli juniper 27 hana harbor 11 kim ember 3 ivan grove 16 alice delta 20 dina
142
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034682-p1
Compute and display the sum of all integer values found in column 2.
{s+=$2}END{print s+0}
indigo 3 jules amber 23 hana ember 30 hana juniper 30 farah indigo 26 gus fable 24 lina
136
juniper 15 chen ember 27 lina juniper 23 eli juniper 27 hana harbor 11 kim ember 3 ivan grove 16 alice delta 20 dina
142
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034682
qwen/qwen3.7-plus
awkweave-0034683
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
ember 23 bruno amber 21 lina harbor 22 jules juniper 2 bruno harbor 8 lina indigo 20 lina indigo 14 ivan harbor 14 kim indigo 20 alice
16.00
juniper 24 kim delta 26 eli fable 1 jules cobalt 17 kim grove 10 kim birch 18 ivan
16.00
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034683-p1
Calculate and print the average of column 2, formatted to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
ember 23 bruno amber 21 lina harbor 22 jules juniper 2 bruno harbor 8 lina indigo 20 lina indigo 14 ivan harbor 14 kim indigo 20 alice
16.00
juniper 24 kim delta 26 eli fable 1 jules cobalt 17 kim grove 10 kim birch 18 ivan
16.00
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034683
qwen/qwen3.7-plus
awkweave-0034684
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
harbor chen 17 delta bruno 23 fable ivan 27 grove chen 28 fable farah 16 ember ivan 18 indigo hana 2 amber kim 14 ember bruno 6
2
indigo chen 30 ember alice 4 fable ivan 16 grove farah 14 harbor alice 11 birch eli 9
4
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034684-p1
Identify and output the minimum number found in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
harbor chen 17 delta bruno 23 fable ivan 27 grove chen 28 fable farah 16 ember ivan 18 indigo hana 2 amber kim 14 ember bruno 6
2
indigo chen 30 ember alice 4 fable ivan 16 grove farah 14 harbor alice 11 birch eli 9
4
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034684
qwen/qwen3.7-plus
awkweave-0034685
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
bruno juniper 30 kim amber 2 jules delta 1 farah harbor 22 lina cobalt 8 hana indigo 25 eli fable 16 dina cobalt 18
30
ivan birch 12 kim grove 9 dina cobalt 5 hana harbor 23 hana harbor 20 eli birch 17 ivan juniper 28
28
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034685-p1
Identify and output the maximum number found in the third column.
NR==1||$3>extreme{extreme=$3}END{print extreme}
bruno juniper 30 kim amber 2 jules delta 1 farah harbor 22 lina cobalt 8 hana indigo 25 eli fable 16 dina cobalt 18
30
ivan birch 12 kim grove 9 dina cobalt 5 hana harbor 23 hana harbor 20 eli birch 17 ivan juniper 28
28
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034685
qwen/qwen3.7-plus
awkweave-0034686
Count all input records and print the total.
END{print NR}
bruno 73 bruno 6 hana 14 lina 58 gus 2 dina 94 bruno 49 kim 89
8
gus 43 alice 110 farah 68 alice 43 jules 15 jules 119 kim 31 hana 51 alice 61
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034686-p1
Calculate the total number of input records and display the count.
END{print NR}
bruno 73 bruno 6 hana 14 lina 58 gus 2 dina 94 bruno 49 kim 89
8
gus 43 alice 110 farah 68 alice 43 jules 15 jules 119 kim 31 hana 51 alice 61
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034686
qwen/qwen3.7-plus
awkweave-0034687
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
hana fable 85 ivan ember 83 jules delta 9 chen juniper 58 lina birch 99 gus birch 58 kim cobalt 8 hana fable 85 eli grove 49 alice harbor 40 kim grove 45
hana fable 85 ivan ember 83 jules delta 9 chen juniper 58 lina birch 99 gus birch 58 kim cobalt 8 eli grove 49 alice harbor 40 kim grove 45
dina amber 60 alice indigo 111 alice amber 1 alice birch 75 gus juniper 21 hana indigo 20 eli ember 64 farah delta 87 bruno birch 57 kim indigo 37 alice indigo 111
dina amber 60 alice indigo 111 alice amber 1 alice birch 75 gus juniper 21 hana indigo 20 eli ember 64 farah delta 87 bruno birch 57 kim indigo 37
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034687-p1
Eliminate duplicate lines while maintaining the original sequence and keeping the first instance of each.
!seen[$0]++
hana fable 85 ivan ember 83 jules delta 9 chen juniper 58 lina birch 99 gus birch 58 kim cobalt 8 hana fable 85 eli grove 49 alice harbor 40 kim grove 45
hana fable 85 ivan ember 83 jules delta 9 chen juniper 58 lina birch 99 gus birch 58 kim cobalt 8 eli grove 49 alice harbor 40 kim grove 45
dina amber 60 alice indigo 111 alice amber 1 alice birch 75 gus juniper 21 hana indigo 20 eli ember 64 farah delta 87 bruno birch 57 kim indigo 37 alice indigo 111
dina amber 60 alice indigo 111 alice amber 1 alice birch 75 gus juniper 21 hana indigo 20 eli ember 64 farah delta 87 bruno birch 57 kim indigo 37
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034687
qwen/qwen3.7-plus
awkweave-0034688
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
eli amber 46 ivan fable 100 lina birch 10 bruno indigo 18 gus juniper 57 alice delta 9 chen indigo 57
eli amber 46 ivan fable 100 lina birch 10 bruno indigo 18 gus juniper 57 alice delta 9 chen indigo 57
alice juniper 116 chen indigo 81 eli indigo 44 hana grove 80 jules birch 6 farah juniper 39 eli fable 12 farah delta 70 ivan birch 32
alice juniper 116 chen indigo 81 eli indigo 44 hana grove 80 jules birch 6 farah juniper 39 ivan birch 32
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034688-p1
Retain only the initial line for every unique value in the first column, keeping the original order.
!seen[$1]++
eli amber 46 ivan fable 100 lina birch 10 bruno indigo 18 gus juniper 57 alice delta 9 chen indigo 57
eli amber 46 ivan fable 100 lina birch 10 bruno indigo 18 gus juniper 57 alice delta 9 chen indigo 57
alice juniper 116 chen indigo 81 eli indigo 44 hana grove 80 jules birch 6 farah juniper 39 eli fable 12 farah delta 70 ivan birch 32
alice juniper 116 chen indigo 81 eli indigo 44 hana grove 80 jules birch 6 farah juniper 39 ivan birch 32
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034688
qwen/qwen3.7-plus
awkweave-0034689
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
hana 27 fable ivan 27 birch lina 23 juniper jules 24 delta hana 6 ember alice 10 indigo ivan 6 ember lina 20 ember
hana 27 ivan 54 lina 77 jules 101 hana 107 alice 117 ivan 123 lina 143
alice 22 delta kim 16 juniper chen 6 juniper bruno 15 amber kim 13 delta farah 11 cobalt
alice 22 kim 38 chen 44 bruno 59 kim 72 farah 83
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034689-p1
Output the first column alongside the cumulative sum of the second column for each row, separated by a space.
{s+=$2;print $1,s}
hana 27 fable ivan 27 birch lina 23 juniper jules 24 delta hana 6 ember alice 10 indigo ivan 6 ember lina 20 ember
hana 27 ivan 54 lina 77 jules 101 hana 107 alice 117 ivan 123 lina 143
alice 22 delta kim 16 juniper chen 6 juniper bruno 15 amber kim 13 delta farah 11 cobalt
alice 22 kim 38 chen 44 bruno 59 kim 72 farah 83
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034689
qwen/qwen3.7-plus
awkweave-0034700
The first row is a header. Print the display_name column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
state region display_name record_id r001 kim 23 failed r002 jules 2 paused r003 eli 2 ready r004 kim 16 ready r005 alice 22 active r006 lina 7 pending r007 chen 6 failed
23 2 2 16 22 7 6
state region display_name record_id r001 eli 9 closed r002 hana 13 active r003 alice 20 active r004 hana 29 paused r005 chen 26 paused r006 farah 18 paused r007 alice 9 closed r008 alice 25 failed r009 gus 14 ready r010 lina 27 pending
9 13 20 29 26 18 9 25 14 27
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034700-p1
Treating the first line as a header, output the values from the display_name column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
state region display_name record_id r001 kim 23 failed r002 jules 2 paused r003 eli 2 ready r004 kim 16 ready r005 alice 22 active r006 lina 7 pending r007 chen 6 failed
23 2 2 16 22 7 6
state region display_name record_id r001 eli 9 closed r002 hana 13 active r003 alice 20 active r004 hana 29 paused r005 chen 26 paused r006 farah 18 paused r007 alice 9 closed r008 alice 25 failed r009 gus 14 ready r010 lina 27 pending
9 13 20 29 26 18 9 25 14 27
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034700
qwen/qwen3.7-plus
awkweave-0034701
The first row is a header. Print display_name for data rows whose score is greater than 22.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]}
record_id display_name score state r001 dina 18 active r002 kim 3 failed r003 jules 25 ready r004 lina 16 closed r005 hana 7 pending r006 eli 7 failed r007 gus 23 failed r008 dina 1 pending
jules gus
record_id display_name score state r001 lina 23 paused r002 ivan 7 active r003 bruno 10 paused r004 gus 15 active r005 chen 26 closed r006 jules 16 pending r007 ivan 20 active r008 bruno 30 pending
lina chen bruno
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034701-p1
With the first line as a header, output the display_name for data rows where the score is strictly greater than 22.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>22{print $h["display_name"]}
record_id display_name score state r001 dina 18 active r002 kim 3 failed r003 jules 25 ready r004 lina 16 closed r005 hana 7 pending r006 eli 7 failed r007 gus 23 failed r008 dina 1 pending
jules gus
record_id display_name score state r001 lina 23 paused r002 ivan 7 active r003 bruno 10 paused r004 gus 15 active r005 chen 26 closed r006 jules 16 pending r007 ivan 20 active r008 bruno 30 pending
lina chen bruno
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034701
qwen/qwen3.7-plus
awkweave-0034702
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
chen 1 closed bruno 19 pending farah 3 paused eli 25 active kim 30 closed dina 16 pending kim 10 paused bruno 27 active lina 12 paused eli 29 ready
closed pending paused active closed pending paused active paused ready
kim 12 failed ivan 17 ready lina 8 paused lina 10 ready hana 25 active bruno 15 ready bruno 29 active jules 18 pending lina 17 active
failed ready paused ready active ready active pending active
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034702-p1
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
chen 1 closed bruno 19 pending farah 3 paused eli 25 active kim 30 closed dina 16 pending kim 10 paused bruno 27 active lina 12 paused eli 29 ready
closed pending paused active closed pending paused active paused ready
kim 12 failed ivan 17 ready lina 8 paused lina 10 ready hana 25 active bruno 15 ready bruno 29 active jules 18 pending lina 17 active
failed ready paused ready active ready active pending active
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0034702
qwen/qwen3.7-plus
awkweave-0034703
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 11.
BEGIN{FS=OFS=","}$2>11{print $1}
chen,29,closed alice,10,failed hana,7,paused bruno,11,ready bruno,27,closed farah,25,paused lina,21,pending dina,22,paused jules,29,pending
chen bruno farah lina dina jules
farah,29,paused lina,21,active hana,2,paused alice,8,failed farah,1,ready alice,18,closed hana,13,pending alice,6,active dina,22,paused farah,2,paused
farah lina alice hana dina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034703-p1
For simple comma-separated input without quoted commas, print the first field if the second field is greater than 11.
BEGIN{FS=OFS=","}$2>11{print $1}
chen,29,closed alice,10,failed hana,7,paused bruno,11,ready bruno,27,closed farah,25,paused lina,21,pending dina,22,paused jules,29,pending
chen bruno farah lina dina jules
farah,29,paused lina,21,active hana,2,paused alice,8,failed farah,1,ready alice,18,closed hana,13,pending alice,6,active dina,22,paused farah,2,paused
farah lina alice hana dina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034703
qwen/qwen3.7-plus
awkweave-0034704
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
hana harbor 48 kim ember 73 gus ember 94 alice ember 78 eli birch 13 eli harbor 53 gus delta 83 jules birch 3
hana harbor 48 kim ember 73 gus ember 94 alice ember 78 eli birch 13 eli harbor 53 gus delta 83 jules birch 3
gus indigo 38 alice cobalt 95 farah grove 40 kim birch 0 eli harbor 74 farah amber 83 alice amber 17
gus indigo 38 alice cobalt 95 farah grove 40 kim birch 0 eli harbor 74 farah amber 83 alice amber 17
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034704-p1
Strip leading and trailing whitespace and replace internal whitespace sequences with a single space.
{$1=$1;print}
hana harbor 48 kim ember 73 gus ember 94 alice ember 78 eli birch 13 eli harbor 53 gus delta 83 jules birch 3
hana harbor 48 kim ember 73 gus ember 94 alice ember 78 eli birch 13 eli harbor 53 gus delta 83 jules birch 3
gus indigo 38 alice cobalt 95 farah grove 40 kim birch 0 eli harbor 74 farah amber 83 alice amber 17
gus indigo 38 alice cobalt 95 farah grove 40 kim birch 0 eli harbor 74 farah amber 83 alice amber 17
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034704
qwen/qwen3.7-plus
awkweave-0034705
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan amber 98 pending jules juniper 109 failed gus birch 18 closed ivan birch 17 paused gus juniper 55 active alice birch 67 failed ivan cobalt 117 pending alice juniper 98 pending eli ember 25 ready
jules juniper 109 failed
ivan delta 54 ready hana amber 33 failed hana amber 74 ready gus grove 106 pending lina cobalt 87 failed gus cobalt 120 pending dina indigo 91 closed farah fable 16 closed
gus cobalt 120 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034705-p1
Locate and print the longest line in the input; in case of a tie, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
ivan amber 98 pending jules juniper 109 failed gus birch 18 closed ivan birch 17 paused gus juniper 55 active alice birch 67 failed ivan cobalt 117 pending alice juniper 98 pending eli ember 25 ready
jules juniper 109 failed
ivan delta 54 ready hana amber 33 failed hana amber 74 ready gus grove 106 pending lina cobalt 87 failed gus cobalt 120 pending dina indigo 91 closed farah fable 16 closed
gus cobalt 120 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034705
qwen/qwen3.7-plus
awkweave-0034706
Print every 4th line starting at line 1 (then line 5, and so on).
NR%4==1
lina 48 jules 101 gus 59 jules 9 dina 20 chen 32 gus 16 alice 2 gus 21 alice 66
lina 48 dina 20 gus 21
gus 20 gus 41 farah 55 lina 46 jules 91 eli 55 hana 86 dina 112 jules 115 dina 102
gus 20 jules 91 jules 115
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034706-p1
Output lines 1, 5, 9, and so on, selecting every fourth line starting from the first.
NR%4==1
lina 48 jules 101 gus 59 jules 9 dina 20 chen 32 gus 16 alice 2 gus 21 alice 66
lina 48 dina 20 gus 21
gus 20 gus 41 farah 55 lina 46 jules 91 eli 55 hana 86 dina 112 jules 115 dina 102
gus 20 jules 91 jules 115
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034706
qwen/qwen3.7-plus
awkweave-0034707
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
delta cobalt 44 gamma grove 73 delta delta 76 alpha juniper 98 alpha ember 14 alpha cobalt 23 gamma fable 82 gamma delta 120 gamma juniper 95
3
alpha ember 18 gamma juniper 6 alpha delta 33 alpha cobalt 85 beta amber 64 beta amber 51 delta ember 6 beta grove 113 alpha grove 82
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034707-p1
Calculate the number of unique entries in the first column and display only that total.
{if(!seen[$1]++)n++}END{print n+0}
delta cobalt 44 gamma grove 73 delta delta 76 alpha juniper 98 alpha ember 14 alpha cobalt 23 gamma fable 82 gamma delta 120 gamma juniper 95
3
alpha ember 18 gamma juniper 6 alpha delta 33 alpha cobalt 85 beta amber 64 beta amber 51 delta ember 6 beta grove 113 alpha grove 82
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034707
qwen/qwen3.7-plus
awkweave-0034708
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
dina 5 0 ivan 4 1 kim 23 20 lina 2 13 bruno 30 22 kim 1 22 jules 26 11 jules 15 10 bruno 4 14
ivan 4.00 kim 1.15 lina 0.15 bruno 1.36 kim 0.05 jules 2.36 jules 1.50 bruno 0.29
ivan 8 0 dina 11 12 dina 13 23 eli 19 4 alice 1 26 lina 19 5 gus 25 10 bruno 27 1 farah 15 3
dina 0.92 dina 0.57 eli 4.75 alice 0.04 lina 3.80 gus 2.50 bruno 27.00 farah 5.00
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034708-p1
For each row where the third column is not zero, print the first column followed by the result of dividing the second column by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
dina 5 0 ivan 4 1 kim 23 20 lina 2 13 bruno 30 22 kim 1 22 jules 26 11 jules 15 10 bruno 4 14
ivan 4.00 kim 1.15 lina 0.15 bruno 1.36 kim 0.05 jules 2.36 jules 1.50 bruno 0.29
ivan 8 0 dina 11 12 dina 13 23 eli 19 4 alice 1 26 lina 19 5 gus 25 10 bruno 27 1 farah 15 3
dina 0.92 dina 0.57 eli 4.75 alice 0.04 lina 3.80 gus 2.50 bruno 27.00 farah 5.00
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034708
qwen/qwen3.7-plus
awkweave-0034709
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]}
farah indigo 17 lina birch 23 eli ember 18 eli harbor 29 chen delta 2 alice cobalt 19 bruno ember 2
eli harbor 29 lina birch 23 alice cobalt 19
chen fable 16 dina amber 17 dina amber 17 kim juniper 24 eli birch 17 chen fable 27
chen fable 27 kim juniper 24 dina amber 17
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034709-p1
Display the full records corresponding to the top three highest numeric values in column 3, sorted in descending order, while maintaining 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]}
farah indigo 17 lina birch 23 eli ember 18 eli harbor 29 chen delta 2 alice cobalt 19 bruno ember 2
eli harbor 29 lina birch 23 alice cobalt 19
chen fable 16 dina amber 17 dina amber 17 kim juniper 24 eli birch 17 chen fable 27
chen fable 27 kim juniper 24 dina amber 17
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034709
qwen/qwen3.7-plus
awkweave-0034710
For each line, output fields 5 and 4, in that order.
{print $5, $4}
105 paused dina 61 harbor farah 106 paused jules 32 grove ivan 88 pending bruno 16 amber jules 102 closed hana 114 juniper jules 90 pending kim 40 harbor bruno 19 pending eli 118 grove bruno 97 paused kim 20 birch gus 95 closed alice 16 juniper chen 14 ready jules 0 cobalt ivan 76 active gus 101 delta jules
harbor 61 grove 32 amber 16 juniper 114 harbor 40 grove 118 birch 20 juniper 16 cobalt 0 delta 101
35 paused dina 57 grove hana 102 pending hana 78 fable gus 62 ready kim 25 ember ivan 62 pending farah 23 grove alice 56 paused lina 33 juniper kim 27 active ivan 46 grove lina 107 ready ivan 37 indigo dina 98 active bruno 11 amber farah 86 closed alice 103 delta jules 119 active kim 103 grove bruno
grove 57 fable 78 ember 25 grove 23 juniper 33 grove 46 indigo 37 amber 11 delta 103 grove 103
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034710-p1
Print the fifth field followed by the fourth field for every line.
{print $5, $4}
105 paused dina 61 harbor farah 106 paused jules 32 grove ivan 88 pending bruno 16 amber jules 102 closed hana 114 juniper jules 90 pending kim 40 harbor bruno 19 pending eli 118 grove bruno 97 paused kim 20 birch gus 95 closed alice 16 juniper chen 14 ready jules 0 cobalt ivan 76 active gus 101 delta jules
harbor 61 grove 32 amber 16 juniper 114 harbor 40 grove 118 birch 20 juniper 16 cobalt 0 delta 101
35 paused dina 57 grove hana 102 pending hana 78 fable gus 62 ready kim 25 ember ivan 62 pending farah 23 grove alice 56 paused lina 33 juniper kim 27 active ivan 46 grove lina 107 ready ivan 37 indigo dina 98 active bruno 11 amber farah 86 closed alice 103 delta jules 119 active kim 103 grove bruno
grove 57 fable 78 ember 25 grove 23 juniper 33 grove 46 indigo 37 amber 11 delta 103 grove 103
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034710
qwen/qwen3.7-plus
awkweave-0034711
Print the last field of every input line.
{print $NF}
fable amber closed eli ivan fable amber failed alice hana cobalt cobalt active ivan hana cobalt amber paused eli kim ember juniper ready hana alice amber ember active hana hana indigo delta ready ivan alice amber juniper ready dina chen grove amber pending dina kim
ivan hana hana kim alice hana alice chen kim
juniper cobalt ready jules farah indigo ember pending ivan gus harbor delta failed eli chen ember juniper ready dina ivan indigo fable pending farah gus juniper ember pending kim gus delta delta paused bruno ivan
farah gus chen ivan gus gus ivan
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034711-p1
Output the final field from each input line.
{print $NF}
fable amber closed eli ivan fable amber failed alice hana cobalt cobalt active ivan hana cobalt amber paused eli kim ember juniper ready hana alice amber ember active hana hana indigo delta ready ivan alice amber juniper ready dina chen grove amber pending dina kim
ivan hana hana kim alice hana alice chen kim
juniper cobalt ready jules farah indigo ember pending ivan gus harbor delta failed eli chen ember juniper ready dina ivan indigo fable pending farah gus juniper ember pending kim gus delta delta paused bruno ivan
farah gus chen ivan gus gus ivan
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034711
qwen/qwen3.7-plus
awkweave-0034712
Print the complete records where column 2 is at least 69.
$2 >= 69
closed 107 amber closed 89 indigo paused 70 cobalt pending 39 fable pending 71 harbor pending 52 cobalt pending 99 indigo
closed 107 amber closed 89 indigo paused 70 cobalt pending 71 harbor pending 99 indigo
ready 72 fable closed 51 birch paused 45 grove closed 74 indigo pending 119 amber ready 13 ember
ready 72 fable closed 74 indigo pending 119 amber
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034712-p1
Print entire records where the value in the second column is greater than or equal to 69.
$2 >= 69
closed 107 amber closed 89 indigo paused 70 cobalt pending 39 fable pending 71 harbor pending 52 cobalt pending 99 indigo
closed 107 amber closed 89 indigo paused 70 cobalt pending 71 harbor pending 99 indigo
ready 72 fable closed 51 birch paused 45 grove closed 74 indigo pending 119 amber ready 13 ember
ready 72 fable closed 74 indigo pending 119 amber
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034712
qwen/qwen3.7-plus
awkweave-0034713
Show whole lines whose 1st field is between 5 and 19, inclusive.
$1 >= 5 && $1 <= 19
25 cobalt failed ivan 15 harbor failed hana 5 harbor ready farah 2 cobalt closed jules 11 fable pending chen 4 cobalt paused kim 5 indigo active dina 4 cobalt active ivan 22 birch ready alice
15 harbor failed hana 5 harbor ready farah 11 fable pending chen 5 indigo active dina
12 birch closed alice 28 ember active hana 28 cobalt pending bruno 25 indigo failed jules 8 cobalt closed gus 29 grove paused kim 7 amber failed chen 24 cobalt ready jules 14 grove active bruno 17 indigo active ivan
12 birch closed alice 8 cobalt closed gus 7 amber failed chen 14 grove active bruno 17 indigo active ivan
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034713-p1
Display complete lines where the first field falls within the inclusive range of 5 to 19.
$1 >= 5 && $1 <= 19
25 cobalt failed ivan 15 harbor failed hana 5 harbor ready farah 2 cobalt closed jules 11 fable pending chen 4 cobalt paused kim 5 indigo active dina 4 cobalt active ivan 22 birch ready alice
15 harbor failed hana 5 harbor ready farah 11 fable pending chen 5 indigo active dina
12 birch closed alice 28 ember active hana 28 cobalt pending bruno 25 indigo failed jules 8 cobalt closed gus 29 grove paused kim 7 amber failed chen 24 cobalt ready jules 14 grove active bruno 17 indigo active ivan
12 birch closed alice 8 cobalt closed gus 7 amber failed chen 14 grove active bruno 17 indigo active ivan
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034713
qwen/qwen3.7-plus
awkweave-0034714
Print column 2 only for rows where column 3 is exactly paused.
$3 == "paused"{print $2}
indigo chen closed 110 amber lina pending 115 delta lina paused 16 amber jules failed 109 juniper farah failed 60 fable eli closed 87 cobalt dina closed 16 birch bruno pending 82
lina
ember eli failed 50 harbor farah ready 109 delta lina active 96 ember gus pending 33 grove ivan paused 87 delta ivan ready 39 juniper alice pending 88
ivan
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034714-p1
Output only the second column for rows where the third column contains exactly the text 'paused'.
$3 == "paused"{print $2}
indigo chen closed 110 amber lina pending 115 delta lina paused 16 amber jules failed 109 juniper farah failed 60 fable eli closed 87 cobalt dina closed 16 birch bruno pending 82
lina
ember eli failed 50 harbor farah ready 109 delta lina active 96 ember gus pending 33 grove ivan paused 87 delta ivan ready 39 juniper alice pending 88
ivan
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034714
qwen/qwen3.7-plus
awkweave-0034715
Print all fields from lines where field 3 begins with WARN.
$3 ~ /^WARN/
64 birch INFO 14 harbor WARN 118 ember INFO 5 birch INFO 84 indigo DEBUG 71 harbor WARN 25 harbor ERROR 102 fable ERROR 42 amber INFO 17 grove DEBUG
14 harbor WARN 71 harbor WARN
1 amber ERROR 72 amber ERROR 65 indigo ERROR 3 grove ERROR 117 amber INFO 120 juniper ERROR 59 fable ERROR 90 fable INFO 90 juniper DEBUG 43 ember WARN
43 ember WARN
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034715-p1
Print all fields from lines where the third field starts with the string 'WARN'.
$3 ~ /^WARN/
64 birch INFO 14 harbor WARN 118 ember INFO 5 birch INFO 84 indigo DEBUG 71 harbor WARN 25 harbor ERROR 102 fable ERROR 42 amber INFO 17 grove DEBUG
14 harbor WARN 71 harbor WARN
1 amber ERROR 72 amber ERROR 65 indigo ERROR 3 grove ERROR 117 amber INFO 120 juniper ERROR 59 fable ERROR 90 fable INFO 90 juniper DEBUG 43 ember WARN
43 ember WARN
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034715
qwen/qwen3.7-plus
awkweave-0034716
Print every line except those containing the exact text indigo.
$0 !~ /indigo/
amber 101 active birch 47 active harbor 108 ready juniper 62 ready amber 96 pending harbor 106 closed birch 62 ready indigo 999 active
amber 101 active birch 47 active harbor 108 ready juniper 62 ready amber 96 pending harbor 106 closed birch 62 ready
amber 7 closed ember 99 failed ember 46 failed grove 55 active fable 25 ready harbor 77 closed fable 65 failed grove 108 ready indigo 999 active
amber 7 closed ember 99 failed ember 46 failed grove 55 active fable 25 ready harbor 77 closed fable 65 failed grove 108 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034716-p1
Output every line that does not contain the exact string 'indigo'.
$0 !~ /indigo/
amber 101 active birch 47 active harbor 108 ready juniper 62 ready amber 96 pending harbor 106 closed birch 62 ready indigo 999 active
amber 101 active birch 47 active harbor 108 ready juniper 62 ready amber 96 pending harbor 106 closed birch 62 ready
amber 7 closed ember 99 failed ember 46 failed grove 55 active fable 25 ready harbor 77 closed fable 65 failed grove 108 ready indigo 999 active
amber 7 closed ember 99 failed ember 46 failed grove 55 active fable 25 ready harbor 77 closed fable 65 failed grove 108 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034716
qwen/qwen3.7-plus
awkweave-0034717
Print lines 4 through 6, including both endpoints.
NR >= 4 && NR <= 6
hana birch 58 ivan cobalt 98 ivan indigo 44 hana birch 84 bruno birch 63 dina amber 49 alice delta 101 chen indigo 115 lina ember 19 dina cobalt 57
hana birch 84 bruno birch 63 dina amber 49
farah grove 25 dina ember 38 farah delta 102 alice juniper 1 dina fable 7 hana juniper 27 ivan indigo 43
alice juniper 1 dina fable 7 hana juniper 27
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034717-p1
Print lines 4, 5, and 6.
NR >= 4 && NR <= 6
hana birch 58 ivan cobalt 98 ivan indigo 44 hana birch 84 bruno birch 63 dina amber 49 alice delta 101 chen indigo 115 lina ember 19 dina cobalt 57
hana birch 84 bruno birch 63 dina amber 49
farah grove 25 dina ember 38 farah delta 102 alice juniper 1 dina fable 7 hana juniper 27 ivan indigo 43
alice juniper 1 dina fable 7 hana juniper 27
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034717
qwen/qwen3.7-plus
awkweave-0034718
Output only the first 4 records.
NR <= 4
eli 69 cobalt ivan 6 birch alice 86 cobalt dina 62 cobalt jules 67 cobalt lina 34 juniper jules 20 delta dina 16 juniper ivan 31 fable bruno 26 indigo
eli 69 cobalt ivan 6 birch alice 86 cobalt dina 62 cobalt
eli 104 harbor bruno 48 ember eli 3 ember lina 41 ember bruno 43 grove ivan 42 birch eli 78 ember
eli 104 harbor bruno 48 ember eli 3 ember lina 41 ember
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034718-p1
Display only the initial four records.
NR <= 4
eli 69 cobalt ivan 6 birch alice 86 cobalt dina 62 cobalt jules 67 cobalt lina 34 juniper jules 20 delta dina 16 juniper ivan 31 fable bruno 26 indigo
eli 69 cobalt ivan 6 birch alice 86 cobalt dina 62 cobalt
eli 104 harbor bruno 48 ember eli 3 ember lina 41 ember bruno 43 grove ivan 42 birch eli 78 ember
eli 104 harbor bruno 48 ember eli 3 ember lina 41 ember
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034718
qwen/qwen3.7-plus
awkweave-0034719
Skip the first line and print every remaining line unchanged.
NR > 1
dina 43 indigo gus 32 birch lina 17 grove chen 26 indigo eli 6 amber ivan 82 grove hana 19 juniper bruno 45 grove eli 20 grove alice 3 harbor
gus 32 birch lina 17 grove chen 26 indigo eli 6 amber ivan 82 grove hana 19 juniper bruno 45 grove eli 20 grove alice 3 harbor
gus 41 delta hana 95 indigo ivan 66 juniper bruno 115 harbor gus 68 cobalt gus 43 indigo
hana 95 indigo ivan 66 juniper bruno 115 harbor gus 68 cobalt gus 43 indigo
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034719-p1
Omit the first line and output all subsequent lines exactly as they appear.
NR > 1
dina 43 indigo gus 32 birch lina 17 grove chen 26 indigo eli 6 amber ivan 82 grove hana 19 juniper bruno 45 grove eli 20 grove alice 3 harbor
gus 32 birch lina 17 grove chen 26 indigo eli 6 amber ivan 82 grove hana 19 juniper bruno 45 grove eli 20 grove alice 3 harbor
gus 41 delta hana 95 indigo ivan 66 juniper bruno 115 harbor gus 68 cobalt gus 43 indigo
hana 95 indigo ivan 66 juniper bruno 115 harbor gus 68 cobalt gus 43 indigo
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034719
qwen/qwen3.7-plus
awkweave-0034720
Count how many records have ready in column 2. Print 0 if there are none.
$2 == "ready"{n++}END{print n+0}
bruno active 99 gus failed 105 gus ready 58 lina paused 103 hana ready 55 dina ready 51 lina active 23
3
jules ready 2 lina closed 77 bruno paused 14 farah pending 87 farah failed 59 lina active 78 hana pending 37 chen pending 59 dina pending 44
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0034720-p1
Determine the number of entries where column 2 contains 'ready', outputting 0 if no matches are found.
$2 == "ready"{n++}END{print n+0}
bruno active 99 gus failed 105 gus ready 58 lina paused 103 hana ready 55 dina ready 51 lina active 23
3
jules ready 2 lina closed 77 bruno paused 14 farah pending 87 farah failed 59 lina active 78 hana pending 37 chen pending 59 dina pending 44
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0034720
qwen/qwen3.7-plus
awkweave-0034721
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
jules 8 cobalt hana 21 amber eli 18 delta lina 3 grove alice 15 grove ivan 11 fable bruno 19 amber ivan 4 cobalt bruno 14 fable
113
farah 8 fable chen 14 grove gus 26 delta eli 2 indigo alice 3 indigo chen 19 cobalt bruno 19 amber farah 21 fable ivan 11 ember
123
sum_field
1
train
original-grammar
CC-BY-4.0
null
null