Question: by any chance do you happen to know?
Answer: First off, this sentence sounds incorrect. It should be: Do you know where the church is, by any chance? You usually use the idiom "by any chance" at the end or in the middle of a sentence, but it's also grammatically correct, though not common, if you use it at the beginning of a sentence.