Examples of using "どこに行っていたのですか?" in a sentence and their english translations:
Where have you been all this while?
Where did you go?
Where have you been up to now?