What is the customer id that spends the most
SELECT customer_id FROM Payments GROUP BY customer_id ORDER BY sum ( amount_paid )  DESC LIMIT 1
customer id that spends the most refers to MAX(SUM(amount_paid));