advanced
Generate SQL Query
Create a complex SQL query based on a natural language description.
📝 프롬프트 내용
Write a PostgreSQL query to find the top 5 customers who have spent the most money in the last 30 days. Assume there are two tables: 'customers' (id, name) and 'orders' (id, customer_id, amount, created_at). Include the customer name and the total amount spent.