I understand "..der Zug abfährt" is an independent clause so it makes sense that it would have its own subject. I would just like to know the name of the rule/sentence structure that allows for/explains this so I can Google a long form explanation of it. Something about interrogative particles?
EDIT: The question is, how is it that both "ich" and "der Zug" are both the subject of this sentence