Considering the sentence, "By the time Jessica arrived at the station, the train...

Questão de Inglês da banca CPCON aplicada no concurso Prefeitura de Lagoa Seca PB (2024). Confira a resolução completa abaixo:

Considering the sentence, "By the time Jessica arrived at the station, the train had already left, and the passengers were waiting for the next one," which option correctly identifies the structure of the verb phrases used?