Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEAI couldn't tell how the table was supposed to be sorted, so it's not sorted the same as the answer.
Fun to play with parsing!
To make it a bit more challenging, I chose to parse the headers as well and chose to make 3 different ways to tackle tasks 1-4.
I haven't checked the solution yet, but I expect the solution will use sort & sample, then union the results.
I also added 2 other methods: one without union or joins and one with basic summarize functions that does use joins and unions.