Candidate Labs Interview Question

How would you create this graph in an analytics tool with SQL?