with zw as( select o.product_id, sum(unit_price*quantity) as total_sales, sum(quantity) as total_quantity from orders o join products p on o.product_id = p.product_id where order_date between '2023-01-01' and '2023-12-31' group by o.product_id ), aa as ( select zw.product_id, total_sales, p.unit_pri...