Easy · 8 min
Find the top 10 external email senders (not @google.com) who sent the most messages to Google employees (@google.com) in the last 30 days. Return sender_email and message_count, sorted by message_count descending (break count ties alphabetically by sender_email).
Tables: gmail_messages
Medium · 12 min
For each user and date, rank days by event_count where the highest count gets rank 1. If two days have the same event count, they get the same rank and the next rank is not skipped (use DENSE_RANK). Return user_id, event_date, event_count, and rank.
Tables: user_events
Hard · 15 min
A search session is defined as a sequence of queries from the same user within 15 minutes of each other. If more than 15 minutes pass between queries, a new session starts. Calculate the average number of queries per session for each user. Return user_id and avg_queries_per_session.
Tables: search_events