Past Continuous: Questions

To form questions in the past continuous we put be in front of the subject:

Were you doing your homework?
Was he working on the new application?
Who was she talking to on the phone?
How long was it raining last night?
Why were you talking to them?

Where were they going?
Were they driving?