To form a yes-no question from the corresponding declarative sentence, move the first verb of the highest S immediately before the first NP of that sentence.