火車開出的時候,他們都揮手向父母道別。

They waved good-bye to their parents as the train pulled out.

Source: Tatoeba

Sentence Composition