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-0001940
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"]}
score record_id note region r001 bruno 26 paused r002 chen 16 paused r003 chen 20 ready r004 alice 24 paused r005 dina 5 active r006 hana 10 failed r007 ivan 26 paused r008 chen 28 pending r009 alice 2 ready
26 16 20 24 5 10 26 28 2
score record_id note region r001 bruno 13 paused r002 alice 25 active r003 eli 24 active r004 ivan 15 active r005 kim 9 failed r006 farah 17 paused r007 hana 30 pending r008 lina 4 active
13 25 24 15 9 17 30 4
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001940-p1
Treating the first 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"]}
score record_id note region r001 bruno 26 paused r002 chen 16 paused r003 chen 20 ready r004 alice 24 paused r005 dina 5 active r006 hana 10 failed r007 ivan 26 paused r008 chen 28 pending r009 alice 2 ready
26 16 20 24 5 10 26 28 2
score record_id note region r001 bruno 13 paused r002 alice 25 active r003 eli 24 active r004 ivan 15 active r005 kim 9 failed r006 farah 17 paused r007 hana 30 pending r008 lina 4 active
13 25 24 15 9 17 30 4
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001940
qwen/qwen3.7-plus
awkweave-0001941
The first row is a header. Print display_name for data rows whose score is greater than 18.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]}
record_id display_name score state r001 dina 24 closed r002 eli 2 active r003 gus 6 closed r004 jules 24 ready r005 gus 26 pending r006 jules 24 active r007 alice 20 closed r008 jules 9 pending r009 dina 22 active r010 alice 10 paused
dina jules gus jules alice dina
record_id display_name score state r001 alice 25 pending r002 hana 14 ready r003 eli 23 ready r004 farah 6 paused r005 lina 14 pending r006 lina 14 ready r007 jules 2 pending
alice eli
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001941-p1
With the first row as a header, print the 'display_name' for data rows where 'score' exceeds 18.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]}
record_id display_name score state r001 dina 24 closed r002 eli 2 active r003 gus 6 closed r004 jules 24 ready r005 gus 26 pending r006 jules 24 active r007 alice 20 closed r008 jules 9 pending r009 dina 22 active r010 alice 10 paused
dina jules gus jules alice dina
record_id display_name score state r001 alice 25 pending r002 hana 14 ready r003 eli 23 ready r004 farah 6 paused r005 lina 14 pending r006 lina 14 ready r007 jules 2 pending
alice eli
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001941
qwen/qwen3.7-plus
awkweave-0001942
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
hana 16 ready chen 15 active chen 24 active chen 2 failed ivan 22 active alice 8 closed
16 15 24 2 22 8
chen 27 closed dina 21 failed dina 4 pending hana 10 active ivan 17 ready eli 23 ready dina 4 paused chen 27 closed chen 29 paused hana 27 closed
27 21 4 10 17 23 4 27 29 27
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001942-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
hana 16 ready chen 15 active chen 24 active chen 2 failed ivan 22 active alice 8 closed
16 15 24 2 22 8
chen 27 closed dina 21 failed dina 4 pending hana 10 active ivan 17 ready eli 23 ready dina 4 paused chen 27 closed chen 29 paused hana 27 closed
27 21 4 10 17 23 4 27 29 27
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0001942
qwen/qwen3.7-plus
awkweave-0001943
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 20.
BEGIN{FS=OFS=","}$2>20{print $1}
ivan,25,failed gus,15,active chen,23,active chen,24,pending eli,26,active gus,3,closed kim,5,paused bruno,9,active eli,27,pending chen,19,pending
ivan chen chen eli eli
ivan,30,ready alice,12,active bruno,3,pending alice,8,closed farah,9,closed farah,17,pending
ivan
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001943-p1
Output the first field of comma-separated records where the second field is greater than 20, assuming no quoted commas exist.
BEGIN{FS=OFS=","}$2>20{print $1}
ivan,25,failed gus,15,active chen,23,active chen,24,pending eli,26,active gus,3,closed kim,5,paused bruno,9,active eli,27,pending chen,19,pending
ivan chen chen eli eli
ivan,30,ready alice,12,active bruno,3,pending alice,8,closed farah,9,closed farah,17,pending
ivan
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001943
qwen/qwen3.7-plus
awkweave-0001944
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
gus amber 103 gus indigo 57 farah cobalt 81 eli birch 93 chen birch 10 hana ember 20 farah birch 44 gus fable 120 chen cobalt 107 alice delta 116
gus amber 103 gus indigo 57 farah cobalt 81 eli birch 93 chen birch 10 hana ember 20 farah birch 44 gus fable 120 chen cobalt 107 alice delta 116
eli harbor 115 ivan birch 95 kim fable 30 chen birch 73 gus ember 25 bruno birch 5 dina harbor 98
eli harbor 115 ivan birch 95 kim fable 30 chen birch 73 gus ember 25 bruno birch 5 dina harbor 98
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001944-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
gus amber 103 gus indigo 57 farah cobalt 81 eli birch 93 chen birch 10 hana ember 20 farah birch 44 gus fable 120 chen cobalt 107 alice delta 116
gus amber 103 gus indigo 57 farah cobalt 81 eli birch 93 chen birch 10 hana ember 20 farah birch 44 gus fable 120 chen cobalt 107 alice delta 116
eli harbor 115 ivan birch 95 kim fable 30 chen birch 73 gus ember 25 bruno birch 5 dina harbor 98
eli harbor 115 ivan birch 95 kim fable 30 chen birch 73 gus ember 25 bruno birch 5 dina harbor 98
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001944
qwen/qwen3.7-plus
awkweave-0001945
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
kim fable 66 ready bruno grove 3 ready eli delta 19 pending bruno amber 98 active dina harbor 83 paused jules ember 117 ready farah cobalt 12 active kim birch 8 paused
farah cobalt 12 active
farah ember 69 pending lina cobalt 97 closed kim birch 12 paused eli birch 92 failed dina harbor 94 closed kim juniper 108 ready gus birch 106 closed lina delta 23 pending lina grove 60 failed gus fable 75 active
farah ember 69 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001945-p1
Identify and output the longest line in the input; if multiple lines share the maximum length, select the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
kim fable 66 ready bruno grove 3 ready eli delta 19 pending bruno amber 98 active dina harbor 83 paused jules ember 117 ready farah cobalt 12 active kim birch 8 paused
farah cobalt 12 active
farah ember 69 pending lina cobalt 97 closed kim birch 12 paused eli birch 92 failed dina harbor 94 closed kim juniper 108 ready gus birch 106 closed lina delta 23 pending lina grove 60 failed gus fable 75 active
farah ember 69 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001945
qwen/qwen3.7-plus
awkweave-0001946
Print every 3rd line starting at line 1 (then line 4, and so on).
NR%3==1
gus 86 ivan 110 ivan 71 lina 99 kim 84 alice 119 hana 9
gus 86 lina 99 hana 9
farah 16 kim 8 jules 13 chen 60 kim 62 ivan 18 bruno 6
farah 16 chen 60 bruno 6
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001946-p1
Print every third line of the input, beginning with the first line (i.e., lines 1, 4, 7, etc.).
NR%3==1
gus 86 ivan 110 ivan 71 lina 99 kim 84 alice 119 hana 9
gus 86 lina 99 hana 9
farah 16 kim 8 jules 13 chen 60 kim 62 ivan 18 bruno 6
farah 16 chen 60 bruno 6
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001946
qwen/qwen3.7-plus
awkweave-0001947
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha grove 19 gamma indigo 33 gamma indigo 83 delta amber 82 gamma indigo 30 delta amber 89
3
delta cobalt 13 gamma indigo 42 delta cobalt 80 beta cobalt 95 delta indigo 108 alpha delta 42
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001947-p1
Calculate and output only the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
alpha grove 19 gamma indigo 33 gamma indigo 83 delta amber 82 gamma indigo 30 delta amber 89
3
delta cobalt 13 gamma indigo 42 delta cobalt 80 beta cobalt 95 delta indigo 108 alpha delta 42
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001947
qwen/qwen3.7-plus
awkweave-0001948
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}
bruno 6 0 eli 21 10 bruno 14 11 farah 29 9 bruno 26 22 farah 8 14 eli 19 28 kim 17 29 chen 11 11
eli 2.10 bruno 1.27 farah 3.22 bruno 1.18 farah 0.57 eli 0.68 kim 0.59 chen 1.00
ivan 8 0 gus 26 9 lina 19 8 dina 4 3 bruno 25 20 farah 26 25 dina 16 22 kim 5 15
gus 2.89 lina 2.38 dina 1.33 bruno 1.25 farah 1.04 dina 0.73 kim 0.33
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001948-p1
For each row where the third column is non-zero, output the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
bruno 6 0 eli 21 10 bruno 14 11 farah 29 9 bruno 26 22 farah 8 14 eli 19 28 kim 17 29 chen 11 11
eli 2.10 bruno 1.27 farah 3.22 bruno 1.18 farah 0.57 eli 0.68 kim 0.59 chen 1.00
ivan 8 0 gus 26 9 lina 19 8 dina 4 3 bruno 25 20 farah 26 25 dina 16 22 kim 5 15
gus 2.89 lina 2.38 dina 1.33 bruno 1.25 farah 1.04 dina 0.73 kim 0.33
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001948
qwen/qwen3.7-plus
awkweave-0001949
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
dina indigo 16 alice indigo 20 hana amber 9 bruno juniper 17 eli fable 22 dina grove 5 kim harbor 26
kim harbor 26 eli fable 22 alice indigo 20
jules cobalt 24 chen delta 22 gus juniper 17 eli fable 19 lina delta 20 hana ember 5 ivan fable 10 bruno ember 14
jules cobalt 24 chen delta 22 lina delta 20
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001949-p1
Display the three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
dina indigo 16 alice indigo 20 hana amber 9 bruno juniper 17 eli fable 22 dina grove 5 kim harbor 26
kim harbor 26 eli fable 22 alice indigo 20
jules cobalt 24 chen delta 22 gus juniper 17 eli fable 19 lina delta 20 hana ember 5 ivan fable 10 bruno ember 14
jules cobalt 24 chen delta 22 lina delta 20
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001949
qwen/qwen3.7-plus
awkweave-0001950
Print column 2 followed by column 1 for every record.
{print $2, $1}
lina bruno eli failed ivan chen kim failed dina hana eli active farah chen lina ready bruno lina hana pending chen eli dina ready
bruno lina chen ivan hana dina chen farah lina bruno eli chen
ivan gus chen paused bruno kim ivan pending farah chen chen closed chen lina lina paused hana gus chen failed kim lina lina failed
gus ivan kim bruno chen farah lina chen gus hana lina kim
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001950-p1
Output the second column followed by the first column for every record.
{print $2, $1}
lina bruno eli failed ivan chen kim failed dina hana eli active farah chen lina ready bruno lina hana pending chen eli dina ready
bruno lina chen ivan hana dina chen farah lina bruno eli chen
ivan gus chen paused bruno kim ivan pending farah chen chen closed chen lina lina paused hana gus chen failed kim lina lina failed
gus ivan kim bruno chen farah lina chen gus hana lina kim
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001950
qwen/qwen3.7-plus
awkweave-0001951
Print the last field of every input line.
{print $NF}
kim active amber cobalt paused 76 kim paused delta grove paused 76 ivan paused juniper indigo ready 54 jules paused juniper fable paused 103 kim ready juniper juniper paused 35 eli ready indigo ember paused 90
76 76 54 103 35 90
kim ready harbor amber failed 72 bruno pending ember delta failed 11 eli active birch amber failed 104 farah closed amber delta pending 102 chen failed delta grove active 115 dina closed cobalt cobalt failed 0 alice ready harbor juniper ready 29 lina active cobalt grove closed 98 farah paused birch harbor closed 68
72 11 104 102 115 0 29 98 68
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001951-p1
Print the final field of each input line.
{print $NF}
kim active amber cobalt paused 76 kim paused delta grove paused 76 ivan paused juniper indigo ready 54 jules paused juniper fable paused 103 kim ready juniper juniper paused 35 eli ready indigo ember paused 90
76 76 54 103 35 90
kim ready harbor amber failed 72 bruno pending ember delta failed 11 eli active birch amber failed 104 farah closed amber delta pending 102 chen failed delta grove active 115 dina closed cobalt cobalt failed 0 alice ready harbor juniper ready 29 lina active cobalt grove closed 98 farah paused birch harbor closed 68
72 11 104 102 115 0 29 98 68
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001951
qwen/qwen3.7-plus
awkweave-0001952
Print the complete records where column 1 is less than 59.
$1 < 59
26 closed birch ivan active 41 paused birch bruno closed 115 closed harbor ivan ready 90 failed indigo alice paused 72 failed ember alice paused 108 failed delta alice active 61 ready delta dina closed
26 closed birch ivan active 41 paused birch bruno closed
112 active fable alice active 14 active ember eli pending 60 active birch chen active 84 active ember ivan pending 31 pending indigo gus paused 103 failed cobalt farah ready 118 ready harbor gus closed 108 ready birch gus ready 10 active juniper gus closed 56 paused grove hana closed
14 active ember eli pending 31 pending indigo gus paused 10 active juniper gus closed 56 paused grove hana closed
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001952-p1
Output full records where the value in the first column is strictly less than 59.
$1 < 59
26 closed birch ivan active 41 paused birch bruno closed 115 closed harbor ivan ready 90 failed indigo alice paused 72 failed ember alice paused 108 failed delta alice active 61 ready delta dina closed
26 closed birch ivan active 41 paused birch bruno closed
112 active fable alice active 14 active ember eli pending 60 active birch chen active 84 active ember ivan pending 31 pending indigo gus paused 103 failed cobalt farah ready 118 ready harbor gus closed 108 ready birch gus ready 10 active juniper gus closed 56 paused grove hana closed
14 active ember eli pending 31 pending indigo gus paused 10 active juniper gus closed 56 paused grove hana closed
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001952
qwen/qwen3.7-plus
awkweave-0001953
Show whole lines whose 3rd field is between 8 and 25, inclusive.
$3 >= 8 && $3 <= 25
active pending 15 grove closed failed 17 cobalt paused paused 1 fable pending pending 23 fable active failed 4 indigo pending pending 3 juniper paused closed 6 ember active closed 1 cobalt failed paused 23 amber
active pending 15 grove closed failed 17 cobalt pending pending 23 fable failed paused 23 amber
paused failed 9 grove failed ready 21 birch pending paused 8 ember pending paused 24 delta closed closed 15 cobalt ready closed 2 harbor closed failed 9 cobalt closed failed 26 harbor paused active 14 juniper paused closed 13 fable
paused failed 9 grove failed ready 21 birch pending paused 8 ember pending paused 24 delta closed closed 15 cobalt closed failed 9 cobalt paused active 14 juniper paused closed 13 fable
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001953-p1
Display entire lines where the third field falls within the inclusive range of 8 to 25.
$3 >= 8 && $3 <= 25
active pending 15 grove closed failed 17 cobalt paused paused 1 fable pending pending 23 fable active failed 4 indigo pending pending 3 juniper paused closed 6 ember active closed 1 cobalt failed paused 23 amber
active pending 15 grove closed failed 17 cobalt pending pending 23 fable failed paused 23 amber
paused failed 9 grove failed ready 21 birch pending paused 8 ember pending paused 24 delta closed closed 15 cobalt ready closed 2 harbor closed failed 9 cobalt closed failed 26 harbor paused active 14 juniper paused closed 13 fable
paused failed 9 grove failed ready 21 birch pending paused 8 ember pending paused 24 delta closed closed 15 cobalt closed failed 9 cobalt paused active 14 juniper paused closed 13 fable
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001953
qwen/qwen3.7-plus
awkweave-0001954
Print column 4 only for rows where column 1 is exactly failed.
$1 == "failed"{print $4}
active fable 92 eli paused juniper 117 jules failed indigo 49 eli paused amber 7 kim active delta 95 eli ready indigo 7 bruno closed grove 72 gus
eli
pending amber 63 farah failed cobalt 78 dina active birch 67 ivan failed amber 76 ivan failed fable 49 ivan ready juniper 90 bruno active juniper 119 alice
dina ivan ivan
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001954-p1
Output the fourth column exclusively for rows where the first column matches 'failed' exactly.
$1 == "failed"{print $4}
active fable 92 eli paused juniper 117 jules failed indigo 49 eli paused amber 7 kim active delta 95 eli ready indigo 7 bruno closed grove 72 gus
eli
pending amber 63 farah failed cobalt 78 dina active birch 67 ivan failed amber 76 ivan failed fable 49 ivan ready juniper 90 bruno active juniper 119 alice
dina ivan ivan
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001954
qwen/qwen3.7-plus
awkweave-0001955
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
75 ERROR juniper 47 INFO grove 95 ERROR birch 29 DEBUG cobalt 77 ERROR grove 104 ERROR fable 102 WARN grove
75 ERROR juniper 95 ERROR birch 77 ERROR grove 104 ERROR fable
69 WARN cobalt 22 DEBUG grove 51 ERROR juniper 69 DEBUG indigo 96 WARN harbor 92 DEBUG ember 4 DEBUG birch 96 INFO juniper 17 DEBUG fable 26 INFO amber
51 ERROR juniper
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001955-p1
Display all fields from lines where the second field starts with 'ERROR'.
$2 ~ /^ERROR/
75 ERROR juniper 47 INFO grove 95 ERROR birch 29 DEBUG cobalt 77 ERROR grove 104 ERROR fable 102 WARN grove
75 ERROR juniper 95 ERROR birch 77 ERROR grove 104 ERROR fable
69 WARN cobalt 22 DEBUG grove 51 ERROR juniper 69 DEBUG indigo 96 WARN harbor 92 DEBUG ember 4 DEBUG birch 96 INFO juniper 17 DEBUG fable 26 INFO amber
51 ERROR juniper
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001955
qwen/qwen3.7-plus
awkweave-0001956
Print every line except those containing the exact text juniper.
$0 !~ /juniper/
harbor 42 failed juniper 86 pending indigo 84 failed ember 12 closed ember 19 closed cobalt 12 failed juniper 999 active
harbor 42 failed indigo 84 failed ember 12 closed ember 19 closed cobalt 12 failed
indigo 66 ready harbor 7 pending cobalt 53 closed delta 48 active ember 11 failed indigo 13 ready cobalt 58 ready amber 97 ready cobalt 104 active juniper 999 active
indigo 66 ready harbor 7 pending cobalt 53 closed delta 48 active ember 11 failed indigo 13 ready cobalt 58 ready amber 97 ready cobalt 104 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001956-p1
Print every line that does not contain the exact string 'juniper'.
$0 !~ /juniper/
harbor 42 failed juniper 86 pending indigo 84 failed ember 12 closed ember 19 closed cobalt 12 failed juniper 999 active
harbor 42 failed indigo 84 failed ember 12 closed ember 19 closed cobalt 12 failed
indigo 66 ready harbor 7 pending cobalt 53 closed delta 48 active ember 11 failed indigo 13 ready cobalt 58 ready amber 97 ready cobalt 104 active juniper 999 active
indigo 66 ready harbor 7 pending cobalt 53 closed delta 48 active ember 11 failed indigo 13 ready cobalt 58 ready amber 97 ready cobalt 104 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001956
qwen/qwen3.7-plus
awkweave-0001957
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
ivan indigo 100 eli grove 118 gus grove 85 jules grove 107 eli juniper 75 farah ember 115
jules grove 107 eli juniper 75 farah ember 115
eli harbor 52 ivan birch 52 ivan delta 72 chen grove 71 jules juniper 38 gus cobalt 98 alice juniper 52 lina indigo 13 hana fable 35 farah juniper 110
chen grove 71 jules juniper 38 gus cobalt 98 alice juniper 52
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001957-p1
Output lines 4 to 7, inclusive of both endpoints.
NR >= 4 && NR <= 7
ivan indigo 100 eli grove 118 gus grove 85 jules grove 107 eli juniper 75 farah ember 115
jules grove 107 eli juniper 75 farah ember 115
eli harbor 52 ivan birch 52 ivan delta 72 chen grove 71 jules juniper 38 gus cobalt 98 alice juniper 52 lina indigo 13 hana fable 35 farah juniper 110
chen grove 71 jules juniper 38 gus cobalt 98 alice juniper 52
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001957
qwen/qwen3.7-plus
awkweave-0001958
Output only the first 5 records.
NR <= 5
farah 114 ember farah 109 cobalt gus 53 amber eli 37 grove jules 8 delta lina 4 cobalt gus 51 harbor hana 29 amber
farah 114 ember farah 109 cobalt gus 53 amber eli 37 grove jules 8 delta
chen 72 birch dina 30 juniper ivan 67 fable jules 113 fable ivan 14 juniper gus 25 harbor alice 13 cobalt lina 111 harbor eli 97 indigo
chen 72 birch dina 30 juniper ivan 67 fable jules 113 fable ivan 14 juniper
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001958-p1
Display only the initial 5 records.
NR <= 5
farah 114 ember farah 109 cobalt gus 53 amber eli 37 grove jules 8 delta lina 4 cobalt gus 51 harbor hana 29 amber
farah 114 ember farah 109 cobalt gus 53 amber eli 37 grove jules 8 delta
chen 72 birch dina 30 juniper ivan 67 fable jules 113 fable ivan 14 juniper gus 25 harbor alice 13 cobalt lina 111 harbor eli 97 indigo
chen 72 birch dina 30 juniper ivan 67 fable jules 113 fable ivan 14 juniper
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001958
qwen/qwen3.7-plus
awkweave-0001959
Skip the first line and print every remaining line unchanged.
NR > 1
chen 43 ember ivan 77 indigo alice 7 grove eli 106 juniper ivan 88 birch lina 13 amber farah 116 birch lina 94 ember
ivan 77 indigo alice 7 grove eli 106 juniper ivan 88 birch lina 13 amber farah 116 birch lina 94 ember
chen 109 birch chen 79 harbor farah 11 juniper ivan 29 cobalt jules 12 cobalt kim 6 juniper farah 49 amber lina 95 ember gus 45 ember bruno 120 birch
chen 79 harbor farah 11 juniper ivan 29 cobalt jules 12 cobalt kim 6 juniper farah 49 amber lina 95 ember gus 45 ember bruno 120 birch
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001959-p1
Omit the first line and print all subsequent lines without modification.
NR > 1
chen 43 ember ivan 77 indigo alice 7 grove eli 106 juniper ivan 88 birch lina 13 amber farah 116 birch lina 94 ember
ivan 77 indigo alice 7 grove eli 106 juniper ivan 88 birch lina 13 amber farah 116 birch lina 94 ember
chen 109 birch chen 79 harbor farah 11 juniper ivan 29 cobalt jules 12 cobalt kim 6 juniper farah 49 amber lina 95 ember gus 45 ember bruno 120 birch
chen 79 harbor farah 11 juniper ivan 29 cobalt jules 12 cobalt kim 6 juniper farah 49 amber lina 95 ember gus 45 ember bruno 120 birch
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001959
qwen/qwen3.7-plus
awkweave-0001960
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
gus active 71 lina active 14 hana ready 117 dina active 64 ivan ready 68 alice ready 31 hana closed 37 gus closed 17 dina active 77 ivan pending 110
1
alice pending 37 alice ready 75 bruno paused 29 ivan pending 57 lina pending 74 dina pending 63 alice pending 82 gus closed 117 bruno closed 109
5
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001960-p1
Count the number of records with 'pending' in the second column, printing 0 if none exist.
$2 == "pending"{n++}END{print n+0}
gus active 71 lina active 14 hana ready 117 dina active 64 ivan ready 68 alice ready 31 hana closed 37 gus closed 17 dina active 77 ivan pending 110
1
alice pending 37 alice ready 75 bruno paused 29 ivan pending 57 lina pending 74 dina pending 63 alice pending 82 gus closed 117 bruno closed 109
5
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001960
qwen/qwen3.7-plus
awkweave-0001961
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
jules 14 harbor kim 7 birch kim 16 amber eli 25 ember alice 6 fable jules 26 amber kim 8 indigo jules 13 indigo alice 30 indigo jules 18 fable
163
gus 3 cobalt dina 3 grove eli 4 birch dina 26 grove lina 8 harbor bruno 23 birch dina 20 cobalt lina 24 delta jules 10 cobalt gus 21 juniper
142
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001961-p1
Compute and output the sum of integer values in the second column.
{s+=$2}END{print s+0}
jules 14 harbor kim 7 birch kim 16 amber eli 25 ember alice 6 fable jules 26 amber kim 8 indigo jules 13 indigo alice 30 indigo jules 18 fable
163
gus 3 cobalt dina 3 grove eli 4 birch dina 26 grove lina 8 harbor bruno 23 birch dina 20 cobalt lina 24 delta jules 10 cobalt gus 21 juniper
142
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001961
qwen/qwen3.7-plus
awkweave-0001962
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
29 lina grove 23 chen delta 28 ivan cobalt 7 lina birch 8 eli cobalt 20 chen grove 10 ivan grove
17.86
16 alice harbor 27 dina fable 26 farah indigo 23 jules juniper 8 lina delta 12 kim birch 14 bruno birch 5 alice juniper 9 farah amber
15.56
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001962-p1
Print the average of the first column, rounded to precisely two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
29 lina grove 23 chen delta 28 ivan cobalt 7 lina birch 8 eli cobalt 20 chen grove 10 ivan grove
17.86
16 alice harbor 27 dina fable 26 farah indigo 23 jules juniper 8 lina delta 12 kim birch 14 bruno birch 5 alice juniper 9 farah amber
15.56
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001962
qwen/qwen3.7-plus
awkweave-0001963
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
birch 10 dina cobalt 13 hana harbor 22 ivan amber 4 gus amber 8 ivan harbor 15 lina
4
cobalt 27 ivan juniper 3 eli harbor 24 kim harbor 4 alice ember 30 lina delta 3 hana indigo 23 kim birch 18 dina ember 13 kim grove 11 ivan
3
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001963-p1
Identify and display the minimum numeric value in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
birch 10 dina cobalt 13 hana harbor 22 ivan amber 4 gus amber 8 ivan harbor 15 lina
4
cobalt 27 ivan juniper 3 eli harbor 24 kim harbor 4 alice ember 30 lina delta 3 hana indigo 23 kim birch 18 dina ember 13 kim grove 11 ivan
3
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001963
qwen/qwen3.7-plus
awkweave-0001964
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
dina 27 harbor jules 26 grove lina 10 birch hana 13 amber lina 24 ember alice 5 delta
27
bruno 22 indigo eli 30 birch dina 22 harbor lina 5 birch jules 20 grove gus 4 birch kim 27 juniper
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001964-p1
Identify and display the maximum numeric value in the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
dina 27 harbor jules 26 grove lina 10 birch hana 13 amber lina 24 ember alice 5 delta
27
bruno 22 indigo eli 30 birch dina 22 harbor lina 5 birch jules 20 grove gus 4 birch kim 27 juniper
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001964
qwen/qwen3.7-plus
awkweave-0001965
Count all input records and print the total.
END{print NR}
hana 53 lina 75 chen 57 alice 36 farah 82 lina 109 gus 21 jules 56 lina 33
9
lina 43 jules 110 alice 113 dina 118 hana 28 kim 39 farah 61 dina 117 bruno 72
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001965-p1
Count the total number of input records and print the result.
END{print NR}
hana 53 lina 75 chen 57 alice 36 farah 82 lina 109 gus 21 jules 56 lina 33
9
lina 43 jules 110 alice 113 dina 118 hana 28 kim 39 farah 61 dina 117 bruno 72
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001965
qwen/qwen3.7-plus
awkweave-0001966
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
dina juniper 12 bruno harbor 34 ivan amber 114 dina ember 113 ivan amber 114 hana birch 26 hana amber 39 farah amber 55 chen indigo 28 hana birch 117
dina juniper 12 bruno harbor 34 ivan amber 114 dina ember 113 hana birch 26 hana amber 39 farah amber 55 chen indigo 28 hana birch 117
hana harbor 84 gus fable 40 jules birch 75 bruno grove 113 kim indigo 59 dina fable 103 hana harbor 84 gus indigo 77 jules fable 78
hana harbor 84 gus fable 40 jules birch 75 bruno grove 113 kim indigo 59 dina fable 103 gus indigo 77 jules fable 78
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001966-p1
Eliminate duplicate lines by keeping only the first instance of each, while maintaining the original sequence.
!seen[$0]++
dina juniper 12 bruno harbor 34 ivan amber 114 dina ember 113 ivan amber 114 hana birch 26 hana amber 39 farah amber 55 chen indigo 28 hana birch 117
dina juniper 12 bruno harbor 34 ivan amber 114 dina ember 113 hana birch 26 hana amber 39 farah amber 55 chen indigo 28 hana birch 117
hana harbor 84 gus fable 40 jules birch 75 bruno grove 113 kim indigo 59 dina fable 103 hana harbor 84 gus indigo 77 jules fable 78
hana harbor 84 gus fable 40 jules birch 75 bruno grove 113 kim indigo 59 dina fable 103 gus indigo 77 jules fable 78
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001966
qwen/qwen3.7-plus
awkweave-0001967
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
hana cobalt 100 eli indigo 90 farah fable 81 eli indigo 52 hana amber 72 dina ember 28 ivan ember 34 dina juniper 6 kim fable 0
hana cobalt 100 eli indigo 90 farah fable 81 dina ember 28 ivan ember 34 kim fable 0
dina cobalt 119 eli indigo 17 farah delta 68 farah grove 46 lina ember 33 bruno indigo 93 gus delta 47 ivan grove 101 ivan delta 75
dina cobalt 119 eli indigo 17 farah delta 68 lina ember 33 bruno indigo 93 gus delta 47 ivan grove 101
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001967-p1
Retain solely the initial line for every unique value found in column 1, ensuring the input order is preserved.
!seen[$1]++
hana cobalt 100 eli indigo 90 farah fable 81 eli indigo 52 hana amber 72 dina ember 28 ivan ember 34 dina juniper 6 kim fable 0
hana cobalt 100 eli indigo 90 farah fable 81 dina ember 28 ivan ember 34 kim fable 0
dina cobalt 119 eli indigo 17 farah delta 68 farah grove 46 lina ember 33 bruno indigo 93 gus delta 47 ivan grove 101 ivan delta 75
dina cobalt 119 eli indigo 17 farah delta 68 lina ember 33 bruno indigo 93 gus delta 47 ivan grove 101
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001967
qwen/qwen3.7-plus
awkweave-0001968
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
chen 22 fable kim 19 fable ivan 24 ember bruno 29 ember ivan 3 fable eli 6 cobalt gus 18 ember
chen 22 kim 41 ivan 65 bruno 94 ivan 97 eli 103 gus 121
farah 24 birch chen 12 fable farah 24 juniper ivan 6 harbor hana 1 ember gus 11 amber dina 4 fable ivan 9 amber
farah 24 chen 36 farah 60 ivan 66 hana 67 gus 78 dina 82 ivan 91
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001968-p1
Output column 1 alongside the cumulative total of column 2 for each record, using a space as the delimiter.
{s+=$2;print $1,s}
chen 22 fable kim 19 fable ivan 24 ember bruno 29 ember ivan 3 fable eli 6 cobalt gus 18 ember
chen 22 kim 41 ivan 65 bruno 94 ivan 97 eli 103 gus 121
farah 24 birch chen 12 fable farah 24 juniper ivan 6 harbor hana 1 ember gus 11 amber dina 4 fable ivan 9 amber
farah 24 chen 36 farah 60 ivan 66 hana 67 gus 78 dina 82 ivan 91
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001968
qwen/qwen3.7-plus
awkweave-0001969
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
lina 5 25 grove alice 11 11 indigo gus 8 29 juniper dina 21 5 grove chen 8 19 indigo lina 4 21 cobalt ivan 7 6 cobalt chen 29 15 juniper
lina 30 alice 22 gus 37 dina 26 chen 27 lina 25 ivan 13 chen 44
eli 26 2 grove chen 5 2 birch eli 6 28 indigo hana 29 26 delta kim 12 2 indigo ivan 11 29 cobalt gus 18 18 juniper lina 8 8 grove
eli 28 chen 7 eli 34 hana 55 kim 14 ivan 40 gus 36 lina 16
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001969-p1
For each row, display field 1 followed by the combined sum of fields 2 and 3.
{print $1,$2+$3}
lina 5 25 grove alice 11 11 indigo gus 8 29 juniper dina 21 5 grove chen 8 19 indigo lina 4 21 cobalt ivan 7 6 cobalt chen 29 15 juniper
lina 30 alice 22 gus 37 dina 26 chen 27 lina 25 ivan 13 chen 44
eli 26 2 grove chen 5 2 birch eli 6 28 indigo hana 29 26 delta kim 12 2 indigo ivan 11 29 cobalt gus 18 18 juniper lina 8 8 grove
eli 28 chen 7 eli 34 hana 55 kim 14 ivan 40 gus 36 lina 16
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001969
qwen/qwen3.7-plus
awkweave-0001970
Print column 1 and pass when column 2 is at least 24; otherwise print fail.
{print $1,($2>=24?"pass":"fail")}
dina 9 farah 1 chen 24 dina 16 bruno 25 bruno 18 hana 15 lina 10 bruno 8 lina 4
dina fail farah fail chen pass dina fail bruno pass bruno fail hana fail lina fail bruno fail lina fail
chen 27 gus 13 dina 24 alice 13 gus 23 chen 16 dina 14 alice 2 gus 9
chen pass gus fail dina pass alice fail gus fail chen fail dina fail alice fail gus fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001970-p1
Output column 1 with 'pass' if column 2 is 24 or greater; otherwise, output 'fail'.
{print $1,($2>=24?"pass":"fail")}
dina 9 farah 1 chen 24 dina 16 bruno 25 bruno 18 hana 15 lina 10 bruno 8 lina 4
dina fail farah fail chen pass dina fail bruno pass bruno fail hana fail lina fail bruno fail lina fail
chen 27 gus 13 dina 24 alice 13 gus 23 chen 16 dina 14 alice 2 gus 9
chen pass gus fail dina pass alice fail gus fail chen fail dina fail alice fail gus fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001970
qwen/qwen3.7-plus
awkweave-0001971
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
ivan fable 45 farah amber 110 bruno cobalt 85 gus indigo 115 kim fable 31 bruno amber 74 kim amber 71 chen indigo 94 ivan cobalt 74 eli fable 7
FABLE AMBER COBALT INDIGO FABLE AMBER AMBER INDIGO COBALT FABLE
eli fable 24 gus juniper 113 chen fable 51 eli birch 72 bruno cobalt 17 jules fable 98 chen delta 21
FABLE JUNIPER FABLE BIRCH COBALT FABLE DELTA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001971-p1
Transform column 2 to uppercase and output exclusively that column.
{print toupper($2)}
ivan fable 45 farah amber 110 bruno cobalt 85 gus indigo 115 kim fable 31 bruno amber 74 kim amber 71 chen indigo 94 ivan cobalt 74 eli fable 7
FABLE AMBER COBALT INDIGO FABLE AMBER AMBER INDIGO COBALT FABLE
eli fable 24 gus juniper 113 chen fable 51 eli birch 72 bruno cobalt 17 jules fable 98 chen delta 21
FABLE JUNIPER FABLE BIRCH COBALT FABLE DELTA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001971
qwen/qwen3.7-plus
awkweave-0001972
From column 1, print 3 characters starting at character 3.
{print substr($1,3,3)}
delta 93 juniper 3 indigo 28 harbor 65 fable 4 cobalt 34 grove 69 cobalt 16 harbor 17 harbor 57
lta nip dig rbo ble bal ove bal rbo rbo
cobalt 38 juniper 41 indigo 31 grove 33 indigo 102 juniper 93 amber 36 birch 112 birch 34
bal nip dig ove dig nip ber rch rch
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001972-p1
Extract and print a substring of 3 characters from column 1, beginning at the third character position.
{print substr($1,3,3)}
delta 93 juniper 3 indigo 28 harbor 65 fable 4 cobalt 34 grove 69 cobalt 16 harbor 17 harbor 57
lta nip dig rbo ble bal ove bal rbo rbo
cobalt 38 juniper 41 indigo 31 grove 33 indigo 102 juniper 93 amber 36 birch 112 birch 34
bal nip dig ove dig nip ber rch rch
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001972
qwen/qwen3.7-plus
awkweave-0001973
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
indigo_fable 89 grove_juniper 8 ember_amber 69 ember_birch 9 grove_amber 52 juniper_ember 88 ember_grove 95 indigo_harbor 26 cobalt_birch 36
indigo fable grove juniper ember amber ember birch grove amber juniper ember ember grove indigo harbor cobalt birch
fable_grove 90 harbor_juniper 118 grove_birch 16 fable_juniper 49 amber_harbor 21 ember_juniper 32
fable grove harbor juniper grove birch fable juniper amber harbor ember juniper
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001973-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
indigo_fable 89 grove_juniper 8 ember_amber 69 ember_birch 9 grove_amber 52 juniper_ember 88 ember_grove 95 indigo_harbor 26 cobalt_birch 36
indigo fable grove juniper ember amber ember birch grove amber juniper ember ember grove indigo harbor cobalt birch
fable_grove 90 harbor_juniper 118 grove_birch 16 fable_juniper 49 amber_harbor 21 ember_juniper 32
fable grove harbor juniper grove birch fable juniper amber harbor ember juniper
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001973
qwen/qwen3.7-plus
awkweave-0001974
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)}
gus grove 18 ready kim ember 16 closed hana juniper 40 paused chen delta 108 active alice amber 42 ready eli cobalt 40 paused jules cobalt 108 active
ready 18 grove gus closed 16 ember kim paused 40 juniper hana active 108 delta chen ready 42 amber alice paused 40 cobalt eli active 108 cobalt jules
hana harbor 18 pending dina amber 52 closed farah juniper 0 failed eli indigo 2 pending gus birch 41 ready chen harbor 55 ready hana juniper 110 closed bruno delta 83 failed eli harbor 65 paused kim ember 7 failed
pending 18 harbor hana closed 52 amber dina failed 0 juniper farah pending 2 indigo eli ready 41 birch gus ready 55 harbor chen closed 110 juniper hana failed 83 delta bruno paused 65 harbor eli failed 7 ember kim
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001974-p1
Invert the sequence of fields for every line and print all resulting fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
gus grove 18 ready kim ember 16 closed hana juniper 40 paused chen delta 108 active alice amber 42 ready eli cobalt 40 paused jules cobalt 108 active
ready 18 grove gus closed 16 ember kim paused 40 juniper hana active 108 delta chen ready 42 amber alice paused 40 cobalt eli active 108 cobalt jules
hana harbor 18 pending dina amber 52 closed farah juniper 0 failed eli indigo 2 pending gus birch 41 ready chen harbor 55 ready hana juniper 110 closed bruno delta 83 failed eli harbor 65 paused kim ember 7 failed
pending 18 harbor hana closed 52 amber dina failed 0 juniper farah pending 2 indigo eli ready 41 birch gus ready 55 harbor chen closed 110 juniper hana failed 83 delta bruno paused 65 harbor eli failed 7 ember kim
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001974
qwen/qwen3.7-plus
awkweave-0001975
Print the number of whitespace-separated fields on each line.
{print NF}
chen cobalt 72 ready kim harbor 50 failed lina harbor 99 failed chen juniper 89 paused jules indigo 19 closed kim juniper 54 pending chen juniper 101 ready hana delta 4 paused lina amber 74 active
4 4 4 4 4 4 4 4 4
bruno cobalt 104 ready lina indigo 77 paused lina amber 103 failed jules fable 7 active jules amber 51 active bruno fable 55 active eli amber 79 closed chen fable 1 ready chen harbor 43 pending
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001975-p1
Display the count of whitespace-delimited fields present on each line.
{print NF}
chen cobalt 72 ready kim harbor 50 failed lina harbor 99 failed chen juniper 89 paused jules indigo 19 closed kim juniper 54 pending chen juniper 101 ready hana delta 4 paused lina amber 74 active
4 4 4 4 4 4 4 4 4
bruno cobalt 104 ready lina indigo 77 paused lina amber 103 failed jules fable 7 active jules amber 51 active bruno fable 55 active eli amber 79 closed chen fable 1 ready chen harbor 43 pending
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001975
qwen/qwen3.7-plus
awkweave-0001976
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]]}
jules gamma 86 alice beta 90 ivan delta 96 hana alpha 23 lina beta 34 gus delta 1 bruno alpha 39 lina beta 70 gus beta 57
gamma 1 beta 4 delta 2 alpha 2
eli gamma 1 hana beta 21 ivan delta 40 chen gamma 38 gus beta 91 alice beta 94 eli alpha 31 kim beta 35 chen gamma 77 dina gamma 24
gamma 4 beta 4 delta 1 alpha 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001976-p1
Tally the number of records for each distinct value in column 2, printing the value and its count in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
jules gamma 86 alice beta 90 ivan delta 96 hana alpha 23 lina beta 34 gus delta 1 bruno alpha 39 lina beta 70 gus beta 57
gamma 1 beta 4 delta 2 alpha 2
eli gamma 1 hana beta 21 ivan delta 40 chen gamma 38 gus beta 91 alice beta 94 eli alpha 31 kim beta 35 chen gamma 77 dina gamma 24
gamma 4 beta 4 delta 1 alpha 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001976
qwen/qwen3.7-plus
awkweave-0001977
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]]}
alice beta 30 alice beta 13 farah alpha 22 dina gamma 7 gus alpha 3 bruno delta 8
beta 43 alpha 25 gamma 7 delta 8
farah alpha 22 eli delta 29 lina beta 25 chen delta 22 eli alpha 28 eli delta 29 ivan beta 25 bruno gamma 27
alpha 50 delta 80 beta 50 gamma 27
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001977-p1
Calculate the sum of column 3 for each group defined by column 2, outputting the results in the order of the groups' 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]]}
alice beta 30 alice beta 13 farah alpha 22 dina gamma 7 gus alpha 3 bruno delta 8
beta 43 alpha 25 gamma 7 delta 8
farah alpha 22 eli delta 29 lina beta 25 chen delta 22 eli alpha 28 eli delta 29 ivan beta 25 bruno gamma 27
alpha 50 delta 80 beta 50 gamma 27
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001977
qwen/qwen3.7-plus
awkweave-0001978
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
delta amber 5 alpha grove 109 beta amber 33 gamma delta 45 beta juniper 32 delta juniper 71
delta 2 beta 2
gamma birch 57 gamma birch 57 beta indigo 87 delta juniper 28 delta ember 90 delta delta 37 beta harbor 103 beta fable 12 alpha delta 109
gamma 2 beta 3 delta 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001978-p1
List each unique value from the first column alongside its frequency, ordered by when it first appears.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
delta amber 5 alpha grove 109 beta amber 33 gamma delta 45 beta juniper 32 delta juniper 71
delta 2 beta 2
gamma birch 57 gamma birch 57 beta indigo 87 delta juniper 28 delta ember 90 delta delta 37 beta harbor 103 beta fable 12 alpha delta 109
gamma 2 beta 3 delta 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001978
qwen/qwen3.7-plus
awkweave-0001979
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"]}
score display_name note record_id r001 hana 27 paused r002 gus 21 pending r003 jules 25 ready r004 farah 21 active r005 hana 12 pending r006 jules 13 failed r007 jules 19 failed r008 dina 30 active r009 lina 30 closed r010 jules 23 ready
27 21 25 21 12 13 19 30 30 23
score display_name note record_id r001 gus 17 failed r002 jules 13 pending r003 jules 3 paused r004 chen 19 closed r005 lina 26 ready r006 jules 4 active r007 dina 1 ready
17 13 3 19 26 4 1
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001979-p1
Skip the header row and output the contents of the note column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
score display_name note record_id r001 hana 27 paused r002 gus 21 pending r003 jules 25 ready r004 farah 21 active r005 hana 12 pending r006 jules 13 failed r007 jules 19 failed r008 dina 30 active r009 lina 30 closed r010 jules 23 ready
27 21 25 21 12 13 19 30 30 23
score display_name note record_id r001 gus 17 failed r002 jules 13 pending r003 jules 3 paused r004 chen 19 closed r005 lina 26 ready r006 jules 4 active r007 dina 1 ready
17 13 3 19 26 4 1
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001979
qwen/qwen3.7-plus
awkweave-0001980
The first row is a header. Print display_name for data rows whose score is greater than 12.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>12{print $h["display_name"]}
record_id display_name score state r001 lina 25 paused r002 alice 7 closed r003 hana 10 paused r004 chen 20 closed r005 eli 7 paused r006 hana 10 pending
lina chen
record_id display_name score state r001 ivan 12 failed r002 ivan 1 active r003 dina 10 closed r004 chen 22 ready r005 lina 3 active r006 ivan 10 paused r007 bruno 21 pending r008 kim 16 ready
chen bruno kim
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001980-p1
Ignore the header line and print the display_name field for any data row where the score is strictly greater than 12.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>12{print $h["display_name"]}
record_id display_name score state r001 lina 25 paused r002 alice 7 closed r003 hana 10 paused r004 chen 20 closed r005 eli 7 paused r006 hana 10 pending
lina chen
record_id display_name score state r001 ivan 12 failed r002 ivan 1 active r003 dina 10 closed r004 chen 22 ready r005 lina 3 active r006 ivan 10 paused r007 bruno 21 pending r008 kim 16 ready
chen bruno kim
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001980
qwen/qwen3.7-plus
awkweave-0001981
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
bruno 17 active ivan 12 closed jules 29 pending hana 7 closed ivan 12 ready eli 17 pending lina 29 active gus 16 pending eli 20 closed ivan 20 active
17 12 29 7 12 17 29 16 20 20
jules 25 active kim 13 ready gus 13 active lina 22 pending dina 12 active jules 3 paused alice 21 paused
25 13 13 22 12 3 21
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001981-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
bruno 17 active ivan 12 closed jules 29 pending hana 7 closed ivan 12 ready eli 17 pending lina 29 active gus 16 pending eli 20 closed ivan 20 active
17 12 29 7 12 17 29 16 20 20
jules 25 active kim 13 ready gus 13 active lina 22 pending dina 12 active jules 3 paused alice 21 paused
25 13 13 22 12 3 21
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0001981
qwen/qwen3.7-plus
awkweave-0001982
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}
kim,26,ready alice,17,pending farah,25,pending ivan,14,closed bruno,23,closed dina,12,paused alice,2,active dina,28,paused kim,22,failed
kim alice farah bruno dina kim
chen,12,active kim,17,ready alice,9,pending gus,20,pending chen,26,closed chen,16,pending ivan,10,paused eli,8,failed
kim gus chen
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001982-p1
For simple CSV input without quoted commas, print the first column only if the second column's value is greater than 16.
BEGIN{FS=OFS=","}$2>16{print $1}
kim,26,ready alice,17,pending farah,25,pending ivan,14,closed bruno,23,closed dina,12,paused alice,2,active dina,28,paused kim,22,failed
kim alice farah bruno dina kim
chen,12,active kim,17,ready alice,9,pending gus,20,pending chen,26,closed chen,16,pending ivan,10,paused eli,8,failed
kim gus chen
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001982
qwen/qwen3.7-plus
awkweave-0001983
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
dina delta 91 jules harbor 111 eli harbor 91 alice juniper 25 ivan ember 91 chen amber 53
dina delta 91 jules harbor 111 eli harbor 91 alice juniper 25 ivan ember 91 chen amber 53
dina harbor 36 eli harbor 68 dina amber 34 dina grove 53 lina fable 66 farah harbor 14
dina harbor 36 eli harbor 68 dina amber 34 dina grove 53 lina fable 66 farah harbor 14
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001983-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
dina delta 91 jules harbor 111 eli harbor 91 alice juniper 25 ivan ember 91 chen amber 53
dina delta 91 jules harbor 111 eli harbor 91 alice juniper 25 ivan ember 91 chen amber 53
dina harbor 36 eli harbor 68 dina amber 34 dina grove 53 lina fable 66 farah harbor 14
dina harbor 36 eli harbor 68 dina amber 34 dina grove 53 lina fable 66 farah harbor 14
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001983
qwen/qwen3.7-plus
awkweave-0001984
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
alice grove 68 active gus ember 51 failed bruno birch 84 active farah harbor 1 paused lina fable 69 failed alice birch 39 failed farah juniper 2 paused ivan fable 11 closed
farah juniper 2 paused
ivan cobalt 12 ready ivan ember 119 pending jules birch 65 paused gus harbor 112 paused bruno harbor 41 pending farah juniper 3 ready
bruno harbor 41 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001984-p1
Identify and output the longest line from the input; if multiple lines share the maximum length, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
alice grove 68 active gus ember 51 failed bruno birch 84 active farah harbor 1 paused lina fable 69 failed alice birch 39 failed farah juniper 2 paused ivan fable 11 closed
farah juniper 2 paused
ivan cobalt 12 ready ivan ember 119 pending jules birch 65 paused gus harbor 112 paused bruno harbor 41 pending farah juniper 3 ready
bruno harbor 41 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001984
qwen/qwen3.7-plus
awkweave-0001985
Print every 4th line starting at line 4 (then line 8, and so on).
NR%4==0
dina 62 bruno 86 eli 24 eli 8 eli 30 hana 79 chen 73
eli 8
gus 73 farah 106 farah 60 alice 66 eli 119 hana 11 gus 19 kim 76 farah 75 gus 44
alice 66 kim 76
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001985-p1
Output every fourth line of the input, beginning with line 4 (i.e., lines 4, 8, 12, etc.).
NR%4==0
dina 62 bruno 86 eli 24 eli 8 eli 30 hana 79 chen 73
eli 8
gus 73 farah 106 farah 60 alice 66 eli 119 hana 11 gus 19 kim 76 farah 75 gus 44
alice 66 kim 76
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001985
qwen/qwen3.7-plus
awkweave-0001986
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta delta 60 beta harbor 50 beta delta 70 delta birch 64 delta indigo 89 beta cobalt 106 beta harbor 65 alpha fable 21 alpha cobalt 77 beta cobalt 10
3
beta indigo 61 gamma ember 23 alpha ember 47 beta harbor 21 alpha delta 83 alpha birch 40 beta cobalt 77
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001986-p1
Calculate the number of unique values in the first column and print just that total count.
{if(!seen[$1]++)n++}END{print n+0}
beta delta 60 beta harbor 50 beta delta 70 delta birch 64 delta indigo 89 beta cobalt 106 beta harbor 65 alpha fable 21 alpha cobalt 77 beta cobalt 10
3
beta indigo 61 gamma ember 23 alpha ember 47 beta harbor 21 alpha delta 83 alpha birch 40 beta cobalt 77
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001986
qwen/qwen3.7-plus
awkweave-0001987
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}
bruno 16 0 eli 5 11 ivan 21 2 jules 16 27 alice 1 30 kim 2 20 jules 2 10 eli 11 8
eli 0.45 ivan 10.50 jules 0.59 alice 0.03 kim 0.10 jules 0.20 eli 1.38
eli 15 0 dina 4 15 kim 16 8 ivan 18 26 chen 9 25 hana 29 24 lina 10 30 chen 25 8 gus 23 5 jules 19 29
dina 0.27 kim 2.00 ivan 0.69 chen 0.36 hana 1.21 lina 0.33 chen 3.12 gus 4.60 jules 0.66
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001987-p1
For each row, output the first column and the result of dividing the second column by the third (formatted to two decimal places), skipping any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
bruno 16 0 eli 5 11 ivan 21 2 jules 16 27 alice 1 30 kim 2 20 jules 2 10 eli 11 8
eli 0.45 ivan 10.50 jules 0.59 alice 0.03 kim 0.10 jules 0.20 eli 1.38
eli 15 0 dina 4 15 kim 16 8 ivan 18 26 chen 9 25 hana 29 24 lina 10 30 chen 25 8 gus 23 5 jules 19 29
dina 0.27 kim 2.00 ivan 0.69 chen 0.36 hana 1.21 lina 0.33 chen 3.12 gus 4.60 jules 0.66
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001987
qwen/qwen3.7-plus
awkweave-0001988
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
dina indigo 18 farah grove 30 chen harbor 2 lina cobalt 27 bruno indigo 15 lina cobalt 13 kim grove 16 alice ember 10 eli birch 21
farah grove 30 lina cobalt 27 eli birch 21
kim grove 19 lina indigo 18 lina delta 1 dina grove 25 alice harbor 24 ivan grove 10 dina juniper 11 chen grove 16 hana indigo 22
dina grove 25 alice harbor 24 hana indigo 22
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001988-p1
Select the top three records based on the 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]}
dina indigo 18 farah grove 30 chen harbor 2 lina cobalt 27 bruno indigo 15 lina cobalt 13 kim grove 16 alice ember 10 eli birch 21
farah grove 30 lina cobalt 27 eli birch 21
kim grove 19 lina indigo 18 lina delta 1 dina grove 25 alice harbor 24 ivan grove 10 dina juniper 11 chen grove 16 hana indigo 22
dina grove 25 alice harbor 24 hana indigo 22
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001988
qwen/qwen3.7-plus
awkweave-0001989
For each line, output fields 4 and 1, in that order.
{print $4, $1}
jules active harbor fable chen active ember amber hana ready grove indigo hana ready birch birch chen closed indigo harbor bruno failed ember cobalt kim closed indigo indigo chen failed amber amber
fable jules amber chen indigo hana birch hana harbor chen cobalt bruno indigo kim amber chen
dina ready fable delta eli closed amber birch chen paused cobalt amber lina paused indigo juniper bruno closed grove grove eli closed delta grove eli ready amber ember chen failed delta amber bruno paused harbor harbor
delta dina birch eli amber chen juniper lina grove bruno grove eli ember eli amber chen harbor bruno
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0001989-p1
For every line, print the fourth field followed by the first field.
{print $4, $1}
jules active harbor fable chen active ember amber hana ready grove indigo hana ready birch birch chen closed indigo harbor bruno failed ember cobalt kim closed indigo indigo chen failed amber amber
fable jules amber chen indigo hana birch hana harbor chen cobalt bruno indigo kim amber chen
dina ready fable delta eli closed amber birch chen paused cobalt amber lina paused indigo juniper bruno closed grove grove eli closed delta grove eli ready amber ember chen failed delta amber bruno paused harbor harbor
delta dina birch eli amber chen juniper lina grove bruno grove eli ember eli amber chen harbor bruno
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0001989
qwen/qwen3.7-plus