Session conversion on android: May 2025, pause 10 min
Instructions
A user's session is a run of the user's events (by event_time) in which the pause between consecutive events is at most 10 minutes; a pause strictly longer than 10 minutes starts a new session (a pause of exactly 10 minutes does not break a session). Do not use the session_id column. Sessions are built from all events of a user. For users with platform 'android', take the sessions that started in May 2025 (by the time of the first event) and, for each user country (users.country), count sessions (the number of such sessions), purchase_sessions (the number of sessions with at least one 'purchase' event) and conversion_pct (their share of sessions in percent, rounded to 1 decimal place). Output country, sessions, purchase_sessions, conversion_pct. Sort by the rounded conversion_pct descending, then country ascending.
Hints
Each next one is more detailed and costs more
Query
Result
Click Run to see the query result, or Check to submit your solution.
Dataset schema
Table relationships
- N:1Many-to-one
events.→user_id users.id - N:1Many-to-one
purchases.→user_id users.id
Table data
Select a table in the diagram or list to view its rows.