Grade 7 Grammar Lesson 8 Reporting questions and imperatives
As you may have noticed, a question no more retains a question form in indirect speech; it takes a statement form. So the verb and subject interchange positions.
An imperative sentence is reported by linking it with to.