Pregunta de entrevista de FNZ

SQL related question based on provided tables