Prompt
The text rendered across models
Write a single SQL query (PostgreSQL) to find the top 3 customers by total spend in the last 90 days, excluding refunded orders. Tables: customers(id, name), orders(id, customer_id, total, refunded_at, created_at).