select round(avg(amount),1) avg_amount, round(avg(cost),1) avg_cost from(select any_value(total_amount) amount, (sum(price*cnt)-any_value(total_amount)) cost from tb_product_info tpi join tb_order_detail using (product_id) join tb_order_overall using(order_id) where (uid, event_time) in (select uid,...