This problem is paper-only - see explanation for the canonical SQL solution.
Given Orders(id, customer_id, total), return customer_ids whose total spend exceeds 1000. Sort by total spend descending, then customer_id ascending as a tiebreaker.
For the auto-grader: return [{ customer_id, total_spend }].