But it doesn´t always work this way, one example of the use in a different way:
(At) what time does she get up every day?
It´s a bit of specific in kind, so one wouldn´t use "which" in such case.
Anyway, the point is that we can make questions with a preposition at the beginning of the sentence. So, the sentences you came up with are fine in English.