Examples of using "何のためにそこへいったのか。" in a sentence and their english translations:
- What did you go there for? - Why did you go there? - Why did you go there yesterday?