Write a SQL query to identify the top 5 user segments by retention rate.
Use 30-day retention, defined as a user completing activity during the 30th through 60th day after signup. Include users whose signup date is on or before 2025-02-28 so every user has a complete retention window.
Output
- One row per segment, with
segment_name, eligible_users, retained_users, and retention_rate.
- Include only segments with at least one eligible user.
- Return the five highest retention rates first, breaking ties by more eligible users and then alphabetically by segment name.