何の・どうした
I ask my friend.
私は友達に尋ねます
I ask my friend in the afternoon.
私は午後に友達に尋ねます
I ask my friend in the office in the afternoon.
私は午後に事務所で友達に尋ねます
I ask my friend in the office in the afternoon what brings them here.
私は午後に事務所で友達にどうした用事で来たのか尋ねます
I ask my friend in the office in the afternoon what brings them here, before anything else.
私は午後に事務所で友達にどうした用事で来たのか先に尋ねます