YOU SAID:
What in the world is she doing looking at that person over there in that hat
INTO JAPANESE
彼女はあの帽子をかぶったあそこの人を見て、一体何をしているの
BACK INTO ENGLISH
What the hell is she doing when she sees the man over there wearing that hat?
INTO JAPANESE
あそこの男がその帽子をかぶっているのを見て、彼女は一体何をしているのですか。
BACK INTO ENGLISH
What on earth is she doing when she sees the man over there wearing that hat?
INTO JAPANESE
あそこの男がその帽子をかぶっているのを見たとき、彼女はいったい何をしているのだろうか。
BACK INTO ENGLISH
What on earth is she doing when she sees the man over there wearing that hat?
You've done this before, haven't you.