Sentence:  What on earth <WSD>was</WSD> in Mae 's mind , that she wanted him up there spying on what the cops were doing ? 
Meaning of the word marked with <WSD> tags:  occupy a certain position or area; be somewhere