WITH t1 as ( select category as product_category, age_group, sum(quantity * price) as total_sales_amount from products p JOIN sales s using (product_id) JOIN customer_info c using (sale_id) group by p.category, c.age_group ), t2 as ( select product_category, sum(total_sales_amount) as total_cate_sal...