Interrogative sentences with auxillary verb to do:
Did+ subject+ infinitive verb+ complement
Examples:
Did you want to play?
Did Maria buy something?
Interrogative sentences with verb to be:
Verb to be+ subject+infinitive verb+ complement
Examples:
Were you with Johan last night?
Was Maria at the hospital yesterday?