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-0000500
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,26,active gus,22,closed hana,30,failed kim,21,closed bruno,15,pending eli,8,paused alice,30,closed lina,12,pending eli,11,closed
ivan gus hana kim alice
gus,3,closed hana,2,ready eli,19,pending ivan,19,pending lina,6,active bruno,10,pending
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000500-p1
Given simple comma-separated input without quoted commas, output the first column whenever the second column is greater than 20.
BEGIN{FS=OFS=","}$2>20{print $1}
ivan,26,active gus,22,closed hana,30,failed kim,21,closed bruno,15,pending eli,8,paused alice,30,closed lina,12,pending eli,11,closed
ivan gus hana kim alice
gus,3,closed hana,2,ready eli,19,pending ivan,19,pending lina,6,active bruno,10,pending
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000500
qwen/qwen3.7-plus
awkweave-0000501
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
farah grove 39 gus cobalt 107 gus juniper 40 farah cobalt 44 gus birch 98 gus cobalt 49 kim juniper 113 ivan fable 94 ivan amber 38 chen birch 46
farah grove 39 gus cobalt 107 gus juniper 40 farah cobalt 44 gus birch 98 gus cobalt 49 kim juniper 113 ivan fable 94 ivan amber 38 chen birch 46
bruno amber 53 eli harbor 21 ivan cobalt 110 lina amber 15 jules fable 106 eli delta 71 dina juniper 57
bruno amber 53 eli harbor 21 ivan cobalt 110 lina amber 15 jules fable 106 eli delta 71 dina juniper 57
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000501-p1
Remove leading and trailing whitespace and replace consecutive internal whitespace characters with a single space.
{$1=$1;print}
farah grove 39 gus cobalt 107 gus juniper 40 farah cobalt 44 gus birch 98 gus cobalt 49 kim juniper 113 ivan fable 94 ivan amber 38 chen birch 46
farah grove 39 gus cobalt 107 gus juniper 40 farah cobalt 44 gus birch 98 gus cobalt 49 kim juniper 113 ivan fable 94 ivan amber 38 chen birch 46
bruno amber 53 eli harbor 21 ivan cobalt 110 lina amber 15 jules fable 106 eli delta 71 dina juniper 57
bruno amber 53 eli harbor 21 ivan cobalt 110 lina amber 15 jules fable 106 eli delta 71 dina juniper 57
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000501
qwen/qwen3.7-plus
awkweave-0000502
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
bruno fable 95 closed jules amber 4 pending eli amber 91 pending bruno ember 78 ready jules delta 22 pending dina amber 12 closed ivan grove 29 ready hana birch 33 pending hana amber 48 closed lina cobalt 93 failed
jules delta 22 pending
kim ember 91 pending gus birch 30 closed jules cobalt 34 ready farah cobalt 79 pending hana indigo 66 closed ivan harbor 49 closed gus grove 25 closed jules delta 91 ready
farah cobalt 79 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000502-p1
Identify and print the longest line from the input; in case of a tie, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
bruno fable 95 closed jules amber 4 pending eli amber 91 pending bruno ember 78 ready jules delta 22 pending dina amber 12 closed ivan grove 29 ready hana birch 33 pending hana amber 48 closed lina cobalt 93 failed
jules delta 22 pending
kim ember 91 pending gus birch 30 closed jules cobalt 34 ready farah cobalt 79 pending hana indigo 66 closed ivan harbor 49 closed gus grove 25 closed jules delta 91 ready
farah cobalt 79 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000502
qwen/qwen3.7-plus
awkweave-0000503
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
chen 56 alice 67 alice 47 bruno 92 dina 43 lina 114
chen 56 alice 47 dina 43
alice 15 hana 116 ivan 53 kim 20 lina 20 chen 79 farah 3 farah 66
alice 15 ivan 53 lina 20 farah 3
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000503-p1
Print every other line beginning with the first line (i.e., lines 1, 3, 5, etc.).
NR%2==1
chen 56 alice 67 alice 47 bruno 92 dina 43 lina 114
chen 56 alice 47 dina 43
alice 15 hana 116 ivan 53 kim 20 lina 20 chen 79 farah 3 farah 66
alice 15 ivan 53 lina 20 farah 3
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000503
qwen/qwen3.7-plus
awkweave-0000504
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
alpha delta 59 gamma delta 67 beta grove 96 gamma delta 91 gamma indigo 69 beta indigo 69 delta fable 40 delta amber 26 alpha grove 23
4
beta cobalt 26 beta juniper 92 beta amber 31 alpha cobalt 22 alpha amber 20 delta delta 4 delta cobalt 60 alpha grove 93
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000504-p1
Calculate the number of unique values in the first column and output only that count.
{if(!seen[$1]++)n++}END{print n+0}
alpha delta 59 gamma delta 67 beta grove 96 gamma delta 91 gamma indigo 69 beta indigo 69 delta fable 40 delta amber 26 alpha grove 23
4
beta cobalt 26 beta juniper 92 beta amber 31 alpha cobalt 22 alpha amber 20 delta delta 4 delta cobalt 60 alpha grove 93
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000504
qwen/qwen3.7-plus
awkweave-0000505
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 30 0 bruno 11 20 lina 23 3 gus 25 29 lina 4 15 eli 1 7 dina 24 29 farah 16 26
bruno 0.55 lina 7.67 gus 0.86 lina 0.27 eli 0.14 dina 0.83 farah 0.62
hana 18 0 bruno 16 14 hana 22 8 farah 21 8 hana 12 1 hana 21 19 kim 20 23
bruno 1.14 hana 2.75 farah 2.62 hana 12.00 hana 1.11 kim 0.87
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000505-p1
For each row, output the first column and the result of dividing the second column by the third column formatted to two decimal places, excluding rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 30 0 bruno 11 20 lina 23 3 gus 25 29 lina 4 15 eli 1 7 dina 24 29 farah 16 26
bruno 0.55 lina 7.67 gus 0.86 lina 0.27 eli 0.14 dina 0.83 farah 0.62
hana 18 0 bruno 16 14 hana 22 8 farah 21 8 hana 12 1 hana 21 19 kim 20 23
bruno 1.14 hana 2.75 farah 2.62 hana 12.00 hana 1.11 kim 0.87
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000505
qwen/qwen3.7-plus
awkweave-0000506
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]}
jules indigo 17 ivan cobalt 11 ivan juniper 26 dina cobalt 21 jules ember 28 bruno grove 15
jules ember 28 ivan juniper 26 dina cobalt 21
eli harbor 28 gus amber 5 gus amber 15 gus grove 26 eli harbor 9 farah grove 11 chen harbor 22
eli harbor 28 gus grove 26 chen harbor 22
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000506-p1
Display the top three full records based on the highest values in column 3, sorted in descending order, while maintaining the original input sequence 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]}
jules indigo 17 ivan cobalt 11 ivan juniper 26 dina cobalt 21 jules ember 28 bruno grove 15
jules ember 28 ivan juniper 26 dina cobalt 21
eli harbor 28 gus amber 5 gus amber 15 gus grove 26 eli harbor 9 farah grove 11 chen harbor 22
eli harbor 28 gus grove 26 chen harbor 22
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000506
qwen/qwen3.7-plus
awkweave-0000507
Select the 2nd and 1st fields in that order.
{print $2, $1}
amber fable 67 jules amber paused fable juniper 90 eli juniper paused ember fable 101 gus amber active harbor birch 62 ivan amber closed delta amber 68 bruno birch closed ember amber 76 alice indigo ready
fable amber juniper fable fable ember birch harbor amber delta amber ember
amber ember 29 farah indigo ready amber indigo 12 lina cobalt closed grove grove 43 hana birch ready birch grove 95 alice indigo failed cobalt grove 99 gus fable paused grove harbor 82 ivan cobalt failed harbor ember 94 dina grove paused
ember amber indigo amber grove grove grove birch grove cobalt harbor grove ember harbor
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000507-p1
Extract and output the second field followed by the first field, preserving this specific order.
{print $2, $1}
amber fable 67 jules amber paused fable juniper 90 eli juniper paused ember fable 101 gus amber active harbor birch 62 ivan amber closed delta amber 68 bruno birch closed ember amber 76 alice indigo ready
fable amber juniper fable fable ember birch harbor amber delta amber ember
amber ember 29 farah indigo ready amber indigo 12 lina cobalt closed grove grove 43 hana birch ready birch grove 95 alice indigo failed cobalt grove 99 gus fable paused grove harbor 82 ivan cobalt failed harbor ember 94 dina grove paused
ember amber indigo amber grove grove grove birch grove cobalt harbor grove ember harbor
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000507
qwen/qwen3.7-plus
awkweave-0000508
Print the last field of every input line.
{print $NF}
13 jules eli 96 chen farah 9 kim bruno 76 chen alice 5 bruno dina 109 jules ivan 92 dina hana 117 farah gus 61 kim gus
eli farah bruno alice dina ivan hana gus gus
25 gus eli 15 farah chen 115 bruno chen 62 lina eli 67 lina chen 66 ivan chen
eli chen chen eli chen chen
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000508-p1
Output the final field from each line of the input.
{print $NF}
13 jules eli 96 chen farah 9 kim bruno 76 chen alice 5 bruno dina 109 jules ivan 92 dina hana 117 farah gus 61 kim gus
eli farah bruno alice dina ivan hana gus gus
25 gus eli 15 farah chen 115 bruno chen 62 lina eli 67 lina chen 66 ivan chen
eli chen chen eli chen chen
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000508
qwen/qwen3.7-plus
awkweave-0000509
Print the complete records where column 3 is at least 32.
$3 >= 32
paused alice 116 active pending bruno 101 failed active lina 9 paused closed lina 94 failed paused farah 17 failed paused jules 78 pending
paused alice 116 active pending bruno 101 failed closed lina 94 failed paused jules 78 pending
ready eli 80 paused ready dina 24 failed pending chen 0 paused closed lina 53 failed active jules 76 failed failed bruno 112 paused
ready eli 80 paused closed lina 53 failed active jules 76 failed failed bruno 112 paused
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000509-p1
Print all complete records where the value in column 3 is greater than or equal to 32.
$3 >= 32
paused alice 116 active pending bruno 101 failed active lina 9 paused closed lina 94 failed paused farah 17 failed paused jules 78 pending
paused alice 116 active pending bruno 101 failed closed lina 94 failed paused jules 78 pending
ready eli 80 paused ready dina 24 failed pending chen 0 paused closed lina 53 failed active jules 76 failed failed bruno 112 paused
ready eli 80 paused closed lina 53 failed active jules 76 failed failed bruno 112 paused
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000509
qwen/qwen3.7-plus
awkweave-0000510
Show whole lines whose 1st field is between 8 and 19, inclusive.
$1 >= 8 && $1 <= 19
29 ember farah gus 2 cobalt chen farah 26 indigo farah ivan 7 indigo chen kim 2 birch dina jules 13 harbor chen farah 6 cobalt jules chen 12 cobalt lina eli 1 grove bruno kim 21 birch farah ivan
13 harbor chen farah 12 cobalt lina eli
25 indigo chen eli 20 delta farah hana 5 juniper bruno eli 1 fable eli bruno 16 indigo jules ivan 16 indigo bruno dina
16 indigo jules ivan 16 indigo bruno dina
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000510-p1
Display entire lines where the value in the first field falls within the inclusive range of 8 to 19.
$1 >= 8 && $1 <= 19
29 ember farah gus 2 cobalt chen farah 26 indigo farah ivan 7 indigo chen kim 2 birch dina jules 13 harbor chen farah 6 cobalt jules chen 12 cobalt lina eli 1 grove bruno kim 21 birch farah ivan
13 harbor chen farah 12 cobalt lina eli
25 indigo chen eli 20 delta farah hana 5 juniper bruno eli 1 fable eli bruno 16 indigo jules ivan 16 indigo bruno dina
16 indigo jules ivan 16 indigo bruno dina
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000510
qwen/qwen3.7-plus
awkweave-0000511
Print column 1 only for rows where column 4 is exactly failed.
$4 == "failed"{print $1}
farah delta 66 active alice fable 44 ready gus ember 41 closed kim juniper 32 paused alice indigo 89 active gus fable 88 closed eli indigo 56 failed lina birch 18 ready hana ember 105 closed
eli
ivan indigo 96 ready farah fable 27 closed hana indigo 74 failed alice delta 34 ready jules indigo 97 ready eli harbor 28 pending chen indigo 90 paused
hana
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000511-p1
Output only the first column for rows where the fourth column contains exactly the text failed.
$4 == "failed"{print $1}
farah delta 66 active alice fable 44 ready gus ember 41 closed kim juniper 32 paused alice indigo 89 active gus fable 88 closed eli indigo 56 failed lina birch 18 ready hana ember 105 closed
eli
ivan indigo 96 ready farah fable 27 closed hana indigo 74 failed alice delta 34 ready jules indigo 97 ready eli harbor 28 pending chen indigo 90 paused
hana
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000511
qwen/qwen3.7-plus
awkweave-0000512
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
DEBUG birch 112 INFO cobalt 94 INFO cobalt 3 DEBUG grove 85 ERROR harbor 43 INFO cobalt 111 DEBUG ember 74 DEBUG juniper 104 INFO harbor 41 INFO ember 83
ERROR harbor 43
DEBUG grove 45 DEBUG delta 29 DEBUG ember 88 INFO fable 56 INFO indigo 93 DEBUG fable 93 WARN birch 65 ERROR delta 39 INFO grove 81
ERROR delta 39
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000512-p1
Print all fields from any line where the first field starts with the string ERROR.
$1 ~ /^ERROR/
DEBUG birch 112 INFO cobalt 94 INFO cobalt 3 DEBUG grove 85 ERROR harbor 43 INFO cobalt 111 DEBUG ember 74 DEBUG juniper 104 INFO harbor 41 INFO ember 83
ERROR harbor 43
DEBUG grove 45 DEBUG delta 29 DEBUG ember 88 INFO fable 56 INFO indigo 93 DEBUG fable 93 WARN birch 65 ERROR delta 39 INFO grove 81
ERROR delta 39
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000512
qwen/qwen3.7-plus
awkweave-0000513
Print every line except those containing the exact text grove.
$0 !~ /grove/
juniper 107 paused ember 102 failed birch 49 failed harbor 16 failed indigo 46 active fable 2 active indigo 57 active grove 999 active
juniper 107 paused ember 102 failed birch 49 failed harbor 16 failed indigo 46 active fable 2 active indigo 57 active
birch 45 closed grove 49 failed indigo 12 closed ember 87 active delta 59 active cobalt 57 pending indigo 34 active grove 999 active
birch 45 closed indigo 12 closed ember 87 active delta 59 active cobalt 57 pending indigo 34 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000513-p1
Print every line that does not contain the exact substring grove.
$0 !~ /grove/
juniper 107 paused ember 102 failed birch 49 failed harbor 16 failed indigo 46 active fable 2 active indigo 57 active grove 999 active
juniper 107 paused ember 102 failed birch 49 failed harbor 16 failed indigo 46 active fable 2 active indigo 57 active
birch 45 closed grove 49 failed indigo 12 closed ember 87 active delta 59 active cobalt 57 pending indigo 34 active grove 999 active
birch 45 closed indigo 12 closed ember 87 active delta 59 active cobalt 57 pending indigo 34 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000513
qwen/qwen3.7-plus
awkweave-0000514
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
eli delta 42 ivan indigo 45 ivan birch 22 chen harbor 59 jules grove 68 dina juniper 60 alice cobalt 21 alice amber 32 hana cobalt 88
ivan indigo 45 ivan birch 22
bruno amber 8 gus delta 116 gus birch 57 dina grove 29 farah delta 117 bruno birch 21
gus delta 116 gus birch 57
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000514-p1
Output lines 2 through 3, inclusive of both the start and end lines.
NR >= 2 && NR <= 3
eli delta 42 ivan indigo 45 ivan birch 22 chen harbor 59 jules grove 68 dina juniper 60 alice cobalt 21 alice amber 32 hana cobalt 88
ivan indigo 45 ivan birch 22
bruno amber 8 gus delta 116 gus birch 57 dina grove 29 farah delta 117 bruno birch 21
gus delta 116 gus birch 57
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000514
qwen/qwen3.7-plus
awkweave-0000515
Output only the first 2 records.
NR <= 2
kim 5 grove bruno 7 amber gus 82 ember farah 22 cobalt gus 54 indigo gus 79 harbor eli 92 harbor chen 38 fable farah 47 birch
kim 5 grove bruno 7 amber
eli 31 harbor farah 79 fable bruno 12 indigo hana 1 indigo hana 45 birch ivan 43 birch alice 30 birch eli 21 grove
eli 31 harbor farah 79 fable
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000515-p1
Restrict the output to only the first 2 records.
NR <= 2
kim 5 grove bruno 7 amber gus 82 ember farah 22 cobalt gus 54 indigo gus 79 harbor eli 92 harbor chen 38 fable farah 47 birch
kim 5 grove bruno 7 amber
eli 31 harbor farah 79 fable bruno 12 indigo hana 1 indigo hana 45 birch ivan 43 birch alice 30 birch eli 21 grove
eli 31 harbor farah 79 fable
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000515
qwen/qwen3.7-plus
awkweave-0000516
Skip the first line and print every remaining line unchanged.
NR > 1
lina 8 indigo hana 109 birch dina 119 grove chen 60 fable bruno 43 grove kim 48 fable
hana 109 birch dina 119 grove chen 60 fable bruno 43 grove kim 48 fable
lina 2 indigo ivan 80 delta lina 80 birch dina 83 ember hana 6 fable dina 22 amber jules 94 amber dina 106 delta
ivan 80 delta lina 80 birch dina 83 ember hana 6 fable dina 22 amber jules 94 amber dina 106 delta
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000516-p1
Omit the first line and print all subsequent lines exactly as they appear.
NR > 1
lina 8 indigo hana 109 birch dina 119 grove chen 60 fable bruno 43 grove kim 48 fable
hana 109 birch dina 119 grove chen 60 fable bruno 43 grove kim 48 fable
lina 2 indigo ivan 80 delta lina 80 birch dina 83 ember hana 6 fable dina 22 amber jules 94 amber dina 106 delta
ivan 80 delta lina 80 birch dina 83 ember hana 6 fable dina 22 amber jules 94 amber dina 106 delta
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000516
qwen/qwen3.7-plus
awkweave-0000517
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
hana active 19 kim failed 88 lina active 6 dina active 74 gus active 91 eli pending 58 bruno paused 43 hana pending 115
2
kim closed 116 jules closed 66 kim pending 63 lina closed 68 kim failed 9 jules closed 5 farah closed 31 chen pending 103
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000517-p1
Calculate the number of records where column 2 contains pending, and output 0 if no such records exist.
$2 == "pending"{n++}END{print n+0}
hana active 19 kim failed 88 lina active 6 dina active 74 gus active 91 eli pending 58 bruno paused 43 hana pending 115
2
kim closed 116 jules closed 66 kim pending 63 lina closed 68 kim failed 9 jules closed 5 farah closed 31 chen pending 103
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000517
qwen/qwen3.7-plus
awkweave-0000518
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
12 fable gus 20 fable jules 21 fable farah 11 indigo eli 30 indigo bruno 27 grove eli 15 amber gus 6 birch lina 12 delta chen 25 delta eli
179
2 ember ivan 13 birch dina 30 ember jules 16 amber chen 4 ember lina 21 indigo lina 10 juniper gus
96
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000518-p1
Compute the total of all integer values found in the first column and output the result.
{s+=$1}END{print s+0}
12 fable gus 20 fable jules 21 fable farah 11 indigo eli 30 indigo bruno 27 grove eli 15 amber gus 6 birch lina 12 delta chen 25 delta eli
179
2 ember ivan 13 birch dina 30 ember jules 16 amber chen 4 ember lina 21 indigo lina 10 juniper gus
96
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000518
qwen/qwen3.7-plus
awkweave-0000519
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
alice harbor 13 hana fable 8 bruno ember 20 kim indigo 15 bruno delta 12 lina ember 17
14.17
bruno fable 27 farah ember 28 dina juniper 12 jules delta 28 ivan grove 27 farah birch 16 dina birch 10 jules juniper 13 lina grove 25 farah ember 14
20.00
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000519-p1
Output the average of the values in the third column, formatted to precisely two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
alice harbor 13 hana fable 8 bruno ember 20 kim indigo 15 bruno delta 12 lina ember 17
14.17
bruno fable 27 farah ember 28 dina juniper 12 jules delta 28 ivan grove 27 farah birch 16 dina birch 10 jules juniper 13 lina grove 25 farah ember 14
20.00
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000519
qwen/qwen3.7-plus
awkweave-0000520
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
amber hana 11 harbor hana 11 grove ivan 28 indigo farah 7 ember dina 16 indigo eli 16 harbor bruno 29 cobalt gus 18 amber gus 25 indigo lina 8
7
indigo lina 5 indigo lina 15 harbor eli 21 ember dina 14 cobalt lina 20 indigo bruno 6 indigo gus 12 delta hana 20 fable bruno 10 delta eli 20
5
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000520-p1
Identify and display the minimum numeric value present in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
amber hana 11 harbor hana 11 grove ivan 28 indigo farah 7 ember dina 16 indigo eli 16 harbor bruno 29 cobalt gus 18 amber gus 25 indigo lina 8
7
indigo lina 5 indigo lina 15 harbor eli 21 ember dina 14 cobalt lina 20 indigo bruno 6 indigo gus 12 delta hana 20 fable bruno 10 delta eli 20
5
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000520
qwen/qwen3.7-plus
awkweave-0000521
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
bruno 18 cobalt kim 13 harbor dina 27 ember lina 25 amber hana 25 amber jules 5 cobalt eli 28 juniper
28
eli 14 harbor ivan 29 delta kim 27 harbor dina 6 ember alice 17 delta bruno 17 cobalt kim 28 birch chen 24 fable kim 4 juniper
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000521-p1
Identify and display the maximum numeric value present in the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
bruno 18 cobalt kim 13 harbor dina 27 ember lina 25 amber hana 25 amber jules 5 cobalt eli 28 juniper
28
eli 14 harbor ivan 29 delta kim 27 harbor dina 6 ember alice 17 delta bruno 17 cobalt kim 28 birch chen 24 fable kim 4 juniper
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000521
qwen/qwen3.7-plus
awkweave-0000522
Count all input records and print the total.
END{print NR}
kim 83 kim 118 ivan 65 bruno 108 kim 93 ivan 78 lina 47 kim 114 hana 105
9
farah 69 gus 93 ivan 62 gus 46 farah 45 hana 107
6
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000522-p1
Determine the total number of input records and print this count.
END{print NR}
kim 83 kim 118 ivan 65 bruno 108 kim 93 ivan 78 lina 47 kim 114 hana 105
9
farah 69 gus 93 ivan 62 gus 46 farah 45 hana 107
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000522
qwen/qwen3.7-plus
awkweave-0000523
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
hana cobalt 29 farah juniper 0 gus grove 105 hana cobalt 29 gus grove 72 bruno fable 45 bruno amber 88 ivan birch 18 gus delta 5 farah fable 97
hana cobalt 29 farah juniper 0 gus grove 105 gus grove 72 bruno fable 45 bruno amber 88 ivan birch 18 gus delta 5 farah fable 97
ivan birch 33 lina amber 36 alice amber 5 chen amber 29 hana fable 33 lina indigo 63 alice amber 5 eli ember 100 ivan juniper 93 ivan amber 61
ivan birch 33 lina amber 36 alice amber 5 chen amber 29 hana fable 33 lina indigo 63 eli ember 100 ivan juniper 93 ivan amber 61
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000523-p1
Eliminate duplicate lines while maintaining the original sequence and keeping only the first instance of each line.
!seen[$0]++
hana cobalt 29 farah juniper 0 gus grove 105 hana cobalt 29 gus grove 72 bruno fable 45 bruno amber 88 ivan birch 18 gus delta 5 farah fable 97
hana cobalt 29 farah juniper 0 gus grove 105 gus grove 72 bruno fable 45 bruno amber 88 ivan birch 18 gus delta 5 farah fable 97
ivan birch 33 lina amber 36 alice amber 5 chen amber 29 hana fable 33 lina indigo 63 alice amber 5 eli ember 100 ivan juniper 93 ivan amber 61
ivan birch 33 lina amber 36 alice amber 5 chen amber 29 hana fable 33 lina indigo 63 eli ember 100 ivan juniper 93 ivan amber 61
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000523
qwen/qwen3.7-plus
awkweave-0000524
Keep only the first line for each distinct value in column 2; preserve input order.
!seen[$2]++
chen juniper 56 kim indigo 103 lina birch 39 chen fable 10 chen delta 12 chen ember 95 alice harbor 59
chen juniper 56 kim indigo 103 lina birch 39 chen fable 10 chen delta 12 chen ember 95 alice harbor 59
ivan indigo 64 hana juniper 7 jules juniper 53 farah delta 43 kim harbor 75 alice harbor 35 hana juniper 78 alice amber 63
ivan indigo 64 hana juniper 7 farah delta 43 kim harbor 75 alice amber 63
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000524-p1
Retain only the initial occurrence for every unique value in the second column, ensuring the original input order is preserved.
!seen[$2]++
chen juniper 56 kim indigo 103 lina birch 39 chen fable 10 chen delta 12 chen ember 95 alice harbor 59
chen juniper 56 kim indigo 103 lina birch 39 chen fable 10 chen delta 12 chen ember 95 alice harbor 59
ivan indigo 64 hana juniper 7 jules juniper 53 farah delta 43 kim harbor 75 alice harbor 35 hana juniper 78 alice amber 63
ivan indigo 64 hana juniper 7 farah delta 43 kim harbor 75 alice amber 63
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000524
qwen/qwen3.7-plus
awkweave-0000525
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
jules 29 grove hana 23 fable dina 17 indigo chen 7 amber lina 29 amber alice 3 ember
jules 29 hana 52 dina 69 chen 76 lina 105 alice 108
kim 3 birch alice 12 birch bruno 3 fable chen 3 amber alice 2 grove dina 25 grove
kim 3 alice 15 bruno 18 chen 21 alice 23 dina 48
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000525-p1
For each entry, output the first column alongside the cumulative sum of the second column, with a space separating them.
{s+=$2;print $1,s}
jules 29 grove hana 23 fable dina 17 indigo chen 7 amber lina 29 amber alice 3 ember
jules 29 hana 52 dina 69 chen 76 lina 105 alice 108
kim 3 birch alice 12 birch bruno 3 fable chen 3 amber alice 2 grove dina 25 grove
kim 3 alice 15 bruno 18 chen 21 alice 23 dina 48
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000525
qwen/qwen3.7-plus
awkweave-0000526
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
lina 25 27 juniper farah 7 29 harbor eli 23 7 fable alice 15 6 fable lina 4 15 grove hana 15 18 amber
lina 52 farah 36 eli 30 alice 21 lina 19 hana 33
hana 21 2 indigo alice 19 24 harbor dina 2 8 ember gus 25 28 fable lina 7 23 fable ivan 26 26 indigo
hana 23 alice 43 dina 10 gus 53 lina 30 ivan 52
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000526-p1
For each row, output the first field followed by the combined total of the second and third fields.
{print $1,$2+$3}
lina 25 27 juniper farah 7 29 harbor eli 23 7 fable alice 15 6 fable lina 4 15 grove hana 15 18 amber
lina 52 farah 36 eli 30 alice 21 lina 19 hana 33
hana 21 2 indigo alice 19 24 harbor dina 2 8 ember gus 25 28 fable lina 7 23 fable ivan 26 26 indigo
hana 23 alice 43 dina 10 gus 53 lina 30 ivan 52
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000526
qwen/qwen3.7-plus
awkweave-0000527
Print column 1 and pass when column 2 is at least 27; otherwise print fail.
{print $1,($2>=27?"pass":"fail")}
bruno 25 jules 29 bruno 3 gus 30 farah 5 lina 8 lina 20
bruno fail jules pass bruno fail gus pass farah fail lina fail lina fail
lina 26 kim 26 dina 18 gus 30 lina 5 hana 7 jules 2
lina fail kim fail dina fail gus pass lina fail hana fail jules fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000527-p1
Display the first column, appending 'pass' if the second column is 27 or greater, and 'fail' otherwise.
{print $1,($2>=27?"pass":"fail")}
bruno 25 jules 29 bruno 3 gus 30 farah 5 lina 8 lina 20
bruno fail jules pass bruno fail gus pass farah fail lina fail lina fail
lina 26 kim 26 dina 18 gus 30 lina 5 hana 7 jules 2
lina fail kim fail dina fail gus pass lina fail hana fail jules fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000527
qwen/qwen3.7-plus
awkweave-0000528
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
ivan grove 104 gus ember 105 jules grove 69 gus indigo 41 jules cobalt 4 farah delta 0 farah grove 67 jules juniper 94 farah cobalt 84 lina grove 12
IVAN GUS JULES GUS JULES FARAH FARAH JULES FARAH LINA
gus fable 47 farah indigo 73 jules ember 56 lina fable 92 jules cobalt 65 hana fable 89
GUS FARAH JULES LINA JULES HANA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000528-p1
Transform the content of the first column to uppercase and print only this modified column.
{print toupper($1)}
ivan grove 104 gus ember 105 jules grove 69 gus indigo 41 jules cobalt 4 farah delta 0 farah grove 67 jules juniper 94 farah cobalt 84 lina grove 12
IVAN GUS JULES GUS JULES FARAH FARAH JULES FARAH LINA
gus fable 47 farah indigo 73 jules ember 56 lina fable 92 jules cobalt 65 hana fable 89
GUS FARAH JULES LINA JULES HANA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000528
qwen/qwen3.7-plus
awkweave-0000529
From column 1, print 3 characters starting at character 1.
{print substr($1,1,3)}
harbor 113 ember 85 indigo 72 ember 62 ember 30 birch 84 juniper 77
har emb ind emb emb bir jun
cobalt 79 fable 102 delta 79 birch 96 ember 10 delta 26 delta 22 delta 0
cob fab del bir emb del del del
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000529-p1
Extract and print the first 3 characters from the first column, starting at position 1.
{print substr($1,1,3)}
harbor 113 ember 85 indigo 72 ember 62 ember 30 birch 84 juniper 77
har emb ind emb emb bir jun
cobalt 79 fable 102 delta 79 birch 96 ember 10 delta 26 delta 22 delta 0
cob fab del bir emb del del del
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000529
qwen/qwen3.7-plus
awkweave-0000530
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
harbor_delta 19 juniper_amber 86 cobalt_juniper 34 birch_harbor 29 juniper_indigo 97 amber_birch 67
harbor delta juniper amber cobalt juniper birch harbor juniper indigo amber birch
indigo_juniper 107 fable_cobalt 119 delta_grove 23 juniper_birch 52 birch_birch 6 ember_harbor 79 cobalt_delta 3 amber_harbor 78
indigo juniper fable cobalt delta grove juniper birch birch birch ember harbor cobalt delta amber harbor
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000530-p1
Substitute all underscores with spaces in the first column and output the modified values.
{gsub(/_/," ",$1);print $1}
harbor_delta 19 juniper_amber 86 cobalt_juniper 34 birch_harbor 29 juniper_indigo 97 amber_birch 67
harbor delta juniper amber cobalt juniper birch harbor juniper indigo amber birch
indigo_juniper 107 fable_cobalt 119 delta_grove 23 juniper_birch 52 birch_birch 6 ember_harbor 79 cobalt_delta 3 amber_harbor 78
indigo juniper fable cobalt delta grove juniper birch birch birch ember harbor cobalt delta amber harbor
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000530
qwen/qwen3.7-plus
awkweave-0000531
Reverse the order of fields on every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
lina ember 117 failed ivan harbor 83 closed dina grove 116 failed ivan harbor 77 failed hana ember 94 paused ivan amber 115 ready bruno delta 109 ready hana juniper 59 failed farah cobalt 27 closed
failed 117 ember lina closed 83 harbor ivan failed 116 grove dina failed 77 harbor ivan paused 94 ember hana ready 115 amber ivan ready 109 delta bruno failed 59 juniper hana closed 27 cobalt farah
lina birch 99 closed chen grove 95 active alice amber 71 pending chen birch 34 failed farah ember 11 pending alice fable 75 closed
closed 99 birch lina active 95 grove chen pending 71 amber alice failed 34 birch chen pending 11 ember farah closed 75 fable alice
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000531-p1
Reverse the sequence of fields for each line and display all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
lina ember 117 failed ivan harbor 83 closed dina grove 116 failed ivan harbor 77 failed hana ember 94 paused ivan amber 115 ready bruno delta 109 ready hana juniper 59 failed farah cobalt 27 closed
failed 117 ember lina closed 83 harbor ivan failed 116 grove dina failed 77 harbor ivan paused 94 ember hana ready 115 amber ivan ready 109 delta bruno failed 59 juniper hana closed 27 cobalt farah
lina birch 99 closed chen grove 95 active alice amber 71 pending chen birch 34 failed farah ember 11 pending alice fable 75 closed
closed 99 birch lina active 95 grove chen pending 71 amber alice failed 34 birch chen pending 11 ember farah closed 75 fable alice
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000531
qwen/qwen3.7-plus
awkweave-0000532
Print the number of whitespace-separated fields on each line.
{print NF}
gus ember 57 ready bruno cobalt 108 closed bruno birch 112 failed gus harbor 98 failed hana fable 56 active bruno ember 61 pending
4 4 4 4 4 4
ivan delta 39 paused eli ember 56 pending hana delta 46 closed chen juniper 67 ready jules harbor 4 ready alice ember 31 closed chen grove 77 paused
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000532-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
gus ember 57 ready bruno cobalt 108 closed bruno birch 112 failed gus harbor 98 failed hana fable 56 active bruno ember 61 pending
4 4 4 4 4 4
ivan delta 39 paused eli ember 56 pending hana delta 46 closed chen juniper 67 ready jules harbor 4 ready alice ember 31 closed chen grove 77 paused
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000532
qwen/qwen3.7-plus
awkweave-0000533
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]]}
chen delta 72 kim alpha 18 ivan delta 87 jules alpha 6 eli alpha 65 gus delta 67 eli alpha 67
delta 3 alpha 4
eli gamma 13 jules alpha 55 lina delta 87 kim alpha 99 chen delta 44 dina gamma 104
gamma 2 alpha 2 delta 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000533-p1
Tally the occurrences of each unique value in the second column and print the value alongside its count, maintaining the 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]]}
chen delta 72 kim alpha 18 ivan delta 87 jules alpha 6 eli alpha 65 gus delta 67 eli alpha 67
delta 3 alpha 4
eli gamma 13 jules alpha 55 lina delta 87 kim alpha 99 chen delta 44 dina gamma 104
gamma 2 alpha 2 delta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000533
qwen/qwen3.7-plus
awkweave-0000534
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
lina delta 15 chen delta 2 ivan alpha 9 kim delta 6 lina beta 10 ivan beta 7 dina alpha 20 gus delta 18
delta 41 alpha 29 beta 17
farah gamma 22 lina gamma 28 chen alpha 2 chen alpha 7 kim beta 27 lina gamma 14
gamma 64 alpha 9 beta 27
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000534-p1
Calculate the sum of the third column grouped by the second column, printing the results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
lina delta 15 chen delta 2 ivan alpha 9 kim delta 6 lina beta 10 ivan beta 7 dina alpha 20 gus delta 18
delta 41 alpha 29 beta 17
farah gamma 22 lina gamma 28 chen alpha 2 chen alpha 7 kim beta 27 lina gamma 14
gamma 64 alpha 9 beta 27
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000534
qwen/qwen3.7-plus
awkweave-0000535
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma harbor 53 beta cobalt 24 beta grove 72 delta harbor 78 alpha indigo 82 beta grove 77 delta grove 59
beta 3 delta 2
alpha harbor 113 alpha amber 77 beta ember 34 delta grove 49 alpha birch 18 alpha amber 120
alpha 4
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000535-p1
List each duplicate value from the first column along with its frequency, ordered by when they first appear.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma harbor 53 beta cobalt 24 beta grove 72 delta harbor 78 alpha indigo 82 beta grove 77 delta grove 59
beta 3 delta 2
alpha harbor 113 alpha amber 77 beta ember 34 delta grove 49 alpha birch 18 alpha amber 120
alpha 4
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000535
qwen/qwen3.7-plus
awkweave-0000536
The first row is a header. Print the state column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
note state region display_name r001 lina 8 pending r002 lina 30 active r003 lina 23 pending r004 gus 2 paused r005 ivan 3 ready r006 ivan 7 closed r007 gus 18 ready r008 farah 29 pending r009 hana 21 pending r010 jules 16 ready
lina lina lina gus ivan ivan gus farah hana jules
note state region display_name r001 bruno 21 closed r002 eli 24 pending r003 jules 13 failed r004 gus 2 failed r005 bruno 6 closed r006 kim 27 closed r007 gus 22 failed r008 lina 24 paused
bruno eli jules gus bruno kim gus lina
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000536-p1
Treating the first row as a header, output the state column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
note state region display_name r001 lina 8 pending r002 lina 30 active r003 lina 23 pending r004 gus 2 paused r005 ivan 3 ready r006 ivan 7 closed r007 gus 18 ready r008 farah 29 pending r009 hana 21 pending r010 jules 16 ready
lina lina lina gus ivan ivan gus farah hana jules
note state region display_name r001 bruno 21 closed r002 eli 24 pending r003 jules 13 failed r004 gus 2 failed r005 bruno 6 closed r006 kim 27 closed r007 gus 22 failed r008 lina 24 paused
bruno eli jules gus bruno kim gus lina
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000536
qwen/qwen3.7-plus
awkweave-0000537
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 alice 24 paused r002 lina 15 closed r003 lina 15 closed r004 bruno 19 failed r005 lina 19 paused r006 kim 27 ready r007 bruno 22 failed r008 kim 24 active r009 farah 22 ready
alice bruno lina kim bruno kim farah
record_id display_name score state r001 bruno 21 ready r002 chen 16 active r003 farah 10 active r004 ivan 17 failed r005 dina 26 closed r006 jules 12 closed r007 eli 28 failed
bruno dina eli
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000537-p1
With the first row as a header, print the display_name field for data rows where the 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 alice 24 paused r002 lina 15 closed r003 lina 15 closed r004 bruno 19 failed r005 lina 19 paused r006 kim 27 ready r007 bruno 22 failed r008 kim 24 active r009 farah 22 ready
alice bruno lina kim bruno kim farah
record_id display_name score state r001 bruno 21 ready r002 chen 16 active r003 farah 10 active r004 ivan 17 failed r005 dina 26 closed r006 jules 12 closed r007 eli 28 failed
bruno dina eli
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000537
qwen/qwen3.7-plus
awkweave-0000538
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
hana 8 paused dina 19 ready farah 13 closed farah 9 pending dina 5 active ivan 13 failed
8 19 13 9 5 13
bruno 14 pending gus 22 ready kim 10 pending ivan 25 paused dina 27 ready alice 12 paused alice 6 closed jules 8 ready alice 5 pending hana 16 paused
14 22 10 25 27 12 6 8 5 16
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000538-p1
Given tab-separated input, output the second column from every record.
BEGIN{FS=OFS="\t"}{print $2}
hana 8 paused dina 19 ready farah 13 closed farah 9 pending dina 5 active ivan 13 failed
8 19 13 9 5 13
bruno 14 pending gus 22 ready kim 10 pending ivan 25 paused dina 27 ready alice 12 paused alice 6 closed jules 8 ready alice 5 pending hana 16 paused
14 22 10 25 27 12 6 8 5 16
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000538
qwen/qwen3.7-plus
awkweave-0000539
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}
eli,25,ready dina,26,failed lina,19,pending ivan,23,closed lina,6,ready chen,8,paused
eli dina lina ivan
eli,30,ready farah,11,pending farah,24,ready alice,2,active ivan,26,closed alice,30,paused gus,20,paused kim,5,active jules,25,closed
eli farah farah ivan alice gus jules
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000539-p1
For simple comma-separated input without quoted commas, print the first column if the second column value is greater than 10.
BEGIN{FS=OFS=","}$2>10{print $1}
eli,25,ready dina,26,failed lina,19,pending ivan,23,closed lina,6,ready chen,8,paused
eli dina lina ivan
eli,30,ready farah,11,pending farah,24,ready alice,2,active ivan,26,closed alice,30,paused gus,20,paused kim,5,active jules,25,closed
eli farah farah ivan alice gus jules
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000539
qwen/qwen3.7-plus
awkweave-0000540
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
bruno grove 28 farah indigo 47 hana juniper 3 chen indigo 7 alice cobalt 10 farah birch 93
bruno grove 28 farah indigo 47 hana juniper 3 chen indigo 7 alice cobalt 10 farah birch 93
ivan ember 33 bruno grove 33 gus birch 97 chen juniper 100 chen cobalt 101 farah fable 17
ivan ember 33 bruno grove 33 gus birch 97 chen juniper 100 chen cobalt 101 farah fable 17
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000540-p1
Remove leading and trailing whitespace and replace internal whitespace sequences with a single space.
{$1=$1;print}
bruno grove 28 farah indigo 47 hana juniper 3 chen indigo 7 alice cobalt 10 farah birch 93
bruno grove 28 farah indigo 47 hana juniper 3 chen indigo 7 alice cobalt 10 farah birch 93
ivan ember 33 bruno grove 33 gus birch 97 chen juniper 100 chen cobalt 101 farah fable 17
ivan ember 33 bruno grove 33 gus birch 97 chen juniper 100 chen cobalt 101 farah fable 17
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000540
qwen/qwen3.7-plus
awkweave-0000541
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
lina juniper 10 failed hana ember 116 ready bruno birch 77 paused hana indigo 66 failed gus juniper 42 ready lina grove 63 paused gus delta 69 ready
lina juniper 10 failed
kim birch 28 ready dina harbor 85 active ivan harbor 83 closed chen juniper 8 closed hana delta 30 ready gus birch 14 pending alice ember 99 pending lina cobalt 27 paused eli juniper 90 pending
alice ember 99 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000541-p1
Identify and print the longest line from the input; if there is a tie in length, select the earliest one.
{if(length($0)>length(best))best=$0}END{print best}
lina juniper 10 failed hana ember 116 ready bruno birch 77 paused hana indigo 66 failed gus juniper 42 ready lina grove 63 paused gus delta 69 ready
lina juniper 10 failed
kim birch 28 ready dina harbor 85 active ivan harbor 83 closed chen juniper 8 closed hana delta 30 ready gus birch 14 pending alice ember 99 pending lina cobalt 27 paused eli juniper 90 pending
alice ember 99 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000541
qwen/qwen3.7-plus
awkweave-0000542
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
bruno 96 eli 94 jules 42 eli 10 chen 72 lina 9 bruno 78 chen 51 bruno 5
eli 94 eli 10 lina 9 chen 51
farah 44 gus 27 gus 16 gus 109 bruno 35 lina 29 ivan 1 hana 47 dina 23 bruno 73
gus 27 gus 109 lina 29 hana 47 bruno 73
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000542-p1
Output every second line beginning with line 2 (i.e., lines 2, 4, etc.).
NR%2==0
bruno 96 eli 94 jules 42 eli 10 chen 72 lina 9 bruno 78 chen 51 bruno 5
eli 94 eli 10 lina 9 chen 51
farah 44 gus 27 gus 16 gus 109 bruno 35 lina 29 ivan 1 hana 47 dina 23 bruno 73
gus 27 gus 109 lina 29 hana 47 bruno 73
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000542
qwen/qwen3.7-plus
awkweave-0000543
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
delta cobalt 43 gamma birch 11 gamma cobalt 54 gamma grove 28 alpha fable 96 alpha ember 54
5
beta amber 93 delta juniper 78 gamma cobalt 40 alpha grove 106 alpha fable 6 gamma fable 22
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000543-p1
Calculate and display only the number of unique values found in column 2.
{if(!seen[$2]++)n++}END{print n+0}
delta cobalt 43 gamma birch 11 gamma cobalt 54 gamma grove 28 alpha fable 96 alpha ember 54
5
beta amber 93 delta juniper 78 gamma cobalt 40 alpha grove 106 alpha fable 6 gamma fable 22
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000543
qwen/qwen3.7-plus
awkweave-0000544
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}
farah 21 0 ivan 28 1 farah 4 25 dina 18 4 farah 5 9 jules 16 10 ivan 14 23 kim 14 17 kim 30 9 lina 26 22
ivan 28.00 farah 0.16 dina 4.50 farah 0.56 jules 1.60 ivan 0.61 kim 0.82 kim 3.33 lina 1.18
ivan 30 0 alice 24 6 eli 29 2 lina 21 14 gus 25 11 ivan 2 17
alice 4.00 eli 14.50 lina 1.50 gus 2.27 ivan 0.12
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000544-p1
For each row where column 3 is not zero, print column 1 and the result of column 2 divided by column 3, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
farah 21 0 ivan 28 1 farah 4 25 dina 18 4 farah 5 9 jules 16 10 ivan 14 23 kim 14 17 kim 30 9 lina 26 22
ivan 28.00 farah 0.16 dina 4.50 farah 0.56 jules 1.60 ivan 0.61 kim 0.82 kim 3.33 lina 1.18
ivan 30 0 alice 24 6 eli 29 2 lina 21 14 gus 25 11 ivan 2 17
alice 4.00 eli 14.50 lina 1.50 gus 2.27 ivan 0.12
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000544
qwen/qwen3.7-plus
awkweave-0000545
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]}
hana cobalt 4 jules grove 18 eli grove 5 chen fable 14 gus grove 12 chen fable 27 gus cobalt 30
gus cobalt 30 chen fable 27 jules grove 18
ivan juniper 18 jules harbor 2 jules juniper 26 alice delta 23 ivan ember 11 hana amber 1 farah juniper 4
jules juniper 26 alice delta 23 ivan juniper 18
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000545-p1
Display the top 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]}
hana cobalt 4 jules grove 18 eli grove 5 chen fable 14 gus grove 12 chen fable 27 gus cobalt 30
gus cobalt 30 chen fable 27 jules grove 18
ivan juniper 18 jules harbor 2 jules juniper 26 alice delta 23 ivan ember 11 hana amber 1 farah juniper 4
jules juniper 26 alice delta 23 ivan juniper 18
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000545
qwen/qwen3.7-plus
awkweave-0000546
For each line, output fields 4 and 1, in that order.
{print $4, $1}
120 pending 52 113 1 failed 17 70 41 ready 70 42 90 active 9 50 36 pending 97 70 112 active 61 34 83 failed 45 25
113 120 70 1 42 41 50 90 70 36 34 112 25 83
12 active 38 17 79 active 69 47 39 ready 66 44 71 active 64 73 60 pending 77 69 6 active 56 107
17 12 47 79 44 39 73 71 69 60 107 6
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000546-p1
Output fields 4 and 1 from each line, preserving that specific order.
{print $4, $1}
120 pending 52 113 1 failed 17 70 41 ready 70 42 90 active 9 50 36 pending 97 70 112 active 61 34 83 failed 45 25
113 120 70 1 42 41 50 90 70 36 34 112 25 83
12 active 38 17 79 active 69 47 39 ready 66 44 71 active 64 73 60 pending 77 69 6 active 56 107
17 12 47 79 44 39 73 71 69 60 107 6
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000546
qwen/qwen3.7-plus
awkweave-0000547
Print the last field of every input line.
{print $NF}
ivan ivan failed 30 jules 113 paused ivan kim failed 47 kim 55 active jules kim closed 105 hana 39 failed ivan lina pending 31 chen 41 active ivan chen active 30 lina 88 paused alice farah pending 33 kim 19 active hana dina active 3 bruno 99 pending
paused active failed active paused active pending
bruno farah paused 14 dina 105 failed chen dina failed 6 hana 54 active lina ivan pending 1 eli 24 active dina kim active 39 dina 8 failed farah gus ready 28 jules 120 failed bruno dina ready 94 eli 30 paused chen gus failed 0 bruno 6 active alice bruno ready 101 jules 79 closed
failed active active failed failed paused active closed
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000547-p1
Print the final field from every line of input.
{print $NF}
ivan ivan failed 30 jules 113 paused ivan kim failed 47 kim 55 active jules kim closed 105 hana 39 failed ivan lina pending 31 chen 41 active ivan chen active 30 lina 88 paused alice farah pending 33 kim 19 active hana dina active 3 bruno 99 pending
paused active failed active paused active pending
bruno farah paused 14 dina 105 failed chen dina failed 6 hana 54 active lina ivan pending 1 eli 24 active dina kim active 39 dina 8 failed farah gus ready 28 jules 120 failed bruno dina ready 94 eli 30 paused chen gus failed 0 bruno 6 active alice bruno ready 101 jules 79 closed
failed active active failed failed paused active closed
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000547
qwen/qwen3.7-plus
awkweave-0000548
Print the complete records where column 2 is at least 61.
$2 >= 61
fable 24 alice amber ember 85 farah ember juniper 96 hana fable juniper 120 kim ember birch 12 chen delta juniper 112 bruno harbor fable 41 chen cobalt ember 84 kim fable indigo 20 gus birch indigo 1 eli ember
ember 85 farah ember juniper 96 hana fable juniper 120 kim ember juniper 112 bruno harbor ember 84 kim fable
juniper 95 alice fable amber 90 gus indigo juniper 13 ivan indigo ember 20 kim amber indigo 104 eli juniper cobalt 119 farah harbor indigo 51 dina indigo indigo 74 lina delta
juniper 95 alice fable amber 90 gus indigo indigo 104 eli juniper cobalt 119 farah harbor indigo 74 lina delta
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000548-p1
Output full records where the value in column 2 is greater than or equal to 61.
$2 >= 61
fable 24 alice amber ember 85 farah ember juniper 96 hana fable juniper 120 kim ember birch 12 chen delta juniper 112 bruno harbor fable 41 chen cobalt ember 84 kim fable indigo 20 gus birch indigo 1 eli ember
ember 85 farah ember juniper 96 hana fable juniper 120 kim ember juniper 112 bruno harbor ember 84 kim fable
juniper 95 alice fable amber 90 gus indigo juniper 13 ivan indigo ember 20 kim amber indigo 104 eli juniper cobalt 119 farah harbor indigo 51 dina indigo indigo 74 lina delta
juniper 95 alice fable amber 90 gus indigo indigo 104 eli juniper cobalt 119 farah harbor indigo 74 lina delta
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000548
qwen/qwen3.7-plus
awkweave-0000549
Show whole lines whose 1st field is between 3 and 24, inclusive.
$1 >= 3 && $1 <= 24
5 kim paused cobalt 6 hana pending grove 4 lina pending grove 26 jules active indigo 17 farah closed harbor 8 dina failed amber
5 kim paused cobalt 6 hana pending grove 4 lina pending grove 17 farah closed harbor 8 dina failed amber
16 farah paused grove 14 ivan pending grove 11 gus failed cobalt 18 hana closed fable 4 dina ready fable 8 jules paused cobalt
16 farah paused grove 14 ivan pending grove 11 gus failed cobalt 18 hana closed fable 4 dina ready fable 8 jules paused cobalt
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0000549-p1
Display entire lines where the first field falls within the inclusive range of 3 to 24.
$1 >= 3 && $1 <= 24
5 kim paused cobalt 6 hana pending grove 4 lina pending grove 26 jules active indigo 17 farah closed harbor 8 dina failed amber
5 kim paused cobalt 6 hana pending grove 4 lina pending grove 17 farah closed harbor 8 dina failed amber
16 farah paused grove 14 ivan pending grove 11 gus failed cobalt 18 hana closed fable 4 dina ready fable 8 jules paused cobalt
16 farah paused grove 14 ivan pending grove 11 gus failed cobalt 18 hana closed fable 4 dina ready fable 8 jules paused cobalt
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0000549
qwen/qwen3.7-plus