Pregunta de entrevista de Stockly

Large SQL test that takes 1 hour to do.