what was … doing?
¿Qué estaba haciendo Tom en la escuela?
What was Tom doing at school?
¿Qué estaba haciendo ella cuando la viste?
What was she doing when you saw her?
What was he doing there?
¿Qué estaba haciendo ella allí?
What was she doing there?
¿Qué estaba haciendo Tom la última vez que lo viste?
What was Tom doing the last time you saw him?
¿Qué estaba haciendo ella aquí?
What was she doing here?