Shopify Interview Question

First two questions are relatively straightforward with aggregations. The third question involves a cross join with a date spine. Basically you have some activities on certain dates, and need to fill in the activity count on missing dates with 0. I did not get a chance to look at the fourth question.