Convert direct speech to reported or vice versa.
— Do you like peanuts, Julia?
I asked Julia peanuts.
Some questions don't have a question word. To transform them into reported speech we add the word if. Do not forget about the "backshifting" of the verb tenses.
Do you like this T-shirt? → She asked me if I liked that T-shirt.
Can you do me a favour? → He asked me if I could do him a favour.
Is there a cash machine nearby? → They asked us if there was a cash machine nearby.