Examples of using "何食べたの?" in a sentence and their english translations:
What did you eat?
- What are you eating? - What're you eating?
What did you have to eat?