Given a table of user event logs, how would you write a query to identify power users based on session frequency and duration? For this exercise, analyze events during January 2025 and treat a user as a power user when they have at least 3 sessions and an average session duration of at least 20 minutes. Derive each session's duration from its first and last event timestamps.
user_id, session_count, and avg_session_duration_minutes.| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique identifier for the event |
| user_id | INT | Identifier of the user who generated the event |
| session_id | VARCHAR(30) | Identifier shared by events in the same session |
| event_type | VARCHAR(40) | Type of user event |
| event_timestamp | TIMESTAMPTZ | Timestamp when the event occurred |