Pregunta de entrevista de Candidate Labs

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