Ted: "What is your favourite dish?"
Ted wanted to know what was my favourite dish.
Ted wanted to know what my favourite dish was.