Given the task definition, example input & output, solve the new input case.
A question that is free of any grammatical or logcal errors, should be labeled 'yes', otherwise it should be indicated as 'no'. A question is grammatically correct if all its entities i.e. nouns, verbs, adjectives, prepositions, pronouns, adverbs are at appropriate position. A question is logically correct if the semantic makes sense.
Example: Sentence: Jack played basketball after school, after which he was very tired. 
Question: How long did Jack play basketball?
Output: Yes.
All entities are in appropriate position and the question makes sense, so its grammatically and logically correct.

New input case for you: Sentence: Mzoudi studied in Dortmund, Bochum, and Muenster before moving to Hamburg in 1995. 
Question: Did Mzoudi still study after moving to Hamburg ?
Output:
Yes.