Meta Interview Question

Some SQL join, aggregation, etc