Hello! Here’s a bit of grammar on word order in questions for basic levels. Here are two golden rules to help you remember.

Rule number one for word order in questions: Auxiliary, Subject and Infinitive for questions like: Do you like coffee? Did he enjoy the film?

Rule number two for word order in questions is Question word, Auxiliary, Subject and Infinitive for questions like: When do you drink coffee? How did he get to the airport?
Here’s an activity for practice.