Toddle interview question

There were two questions about SQL queries, mostly easy, based on the aggregation function and joins