I have written an question in form "Where an attribute comes from?". Immediately I realized that this is not grammatically correct and rewrote it to "Where an attribute does come from?" But I started to think why I wrote the question the first way. I have seen it before. Even when I wrote this question, StackExchange offers me question written similarly.
My question is whether it is possible (ok) to write such questions: "Where an attribute comes from?" and why.