Describe your experience with SQL. How would you write a query to calculate monthly active users and user retention cohorts from a raw event log?