I am working on this exact same problem from that book. Building from the previous commenter Giorgos, this is what worked for me.
SELECT salestransaction.tid, SUM(includes.quantity) FROM salestransaction
INNER JOIN includes ON salestransaction.tid = includes.tid
GROUP BY tid HAVING SUM(quantity) > 5;