hard
SQL Query Construction
Generate a complex SQL query based on requirements.
📝 Содержимое промпта
Act as a Database Administrator. Write a PostgreSQL query to find the top 5 users by total spend in the last 30 days. The table is 'orders' with columns 'user_id', 'amount', and 'created_at'.