# MAGIC SELECT customer_id , SUM(total_amount) AS total_spent FROM fact_orders Group BY customer_id ORDER BY total_spent DESC ; ...