Pergunta de entrevista da empresa ServiceTitan

Asked how to write a nested query