When
we report a question, we move one tense back. The word order in
reported questions is like a sentence, with the subject before the verb. It
isn’t necessary to use do or did or invert to be and the subject. We use ask to report questions.
When
reporting yes/no questions, we add if
before the reported information.
After ask, the object is optional:
ResponderEliminarI asked if he liked the food.
I asked him if he liked the food.