The first example in 7.8.1 shown below includes a field called 'quantity' to be summed in the primary SELECT statement. I think this is a mistake.
It isn't.
I do not think this field exists in the WITH virtual table
It wouldn't matter if it did since in the main query the only from item is the orders table which can be reasonably assumed to contain a quantity column.