RevenueCat Interview Question

Write a SQL query to retrieve data.