Hiring people via interviews is hard, because evaluating people with limited time and context is hard. There's no such thing as a question that will tell you everything.
If you're really trying to get an accurate picture of a candidate, conduct an accurate simulation. Get away from interviews as the only means of evaluating someone, and use something that more closely approximates the actual conditions under which they'll be working.
Maybe that's a probationary period where you pay them at contractor rates, or maybe you pay them to make a bugfix to an open-source project that you depend on, or whatever. Asking questions can tell you a lot about how a person thinks and works, but it's never a substitute for the real thing.