Added Q9 with Group by, having, and min(sum) with subquery