1)If Ann was cooking when I came to her place.
2)If it was snowing when I got off the bus
3)What I was writing when you entered the room
4)What the pupils were thinking about when the teacher entered the classroom
5)What my brothers was doing when I came home last night
6)What his brother was doing while was preparing for the examination.