Write a SQL query to identify high-value users based on specific betting patterns over the last 90 days. Treat a high-value user as one with at least five settled bets, at least 1000 in total stake, bets across both single and parlay types, and a win rate of at least 60%.
user_id, username, settled_bet_count, total_stake, win_rate, and betting_patterns.total_stake descending, then user_id ascending.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| username | VARCHAR(100) | User display name |
| Column | Type | Description |
|---|---|---|
| bet_idPK | INT | Unique bet identifier |
| user_id | INT | User who placed the bet |
| placed_at | DATE | Date the bet was placed |
| bet_type | VARCHAR(20) | Bet pattern, such as single or parlay |
| stake | NUMERIC(12,2) | Amount staked on the bet |
| status | VARCHAR(20) | Settlement status of the bet |
| outcome | VARCHAR(20) | Bet result, such as won or lost |