An events table of raw click timestamps:
events (
user_id INTEGER,
event_ts TEXT -- 'YYYY-MM-DD HH:MM:SS'
)
Sessionize each user's events: a new session starts whenever the gap since
the user's previous event is MORE than 30 minutes (a gap of exactly 30:00
stays in the same session). Count each user's sessions.
Return columns: user_id, session_count.
Order by user_id ASC.