I bumped to this question, where the OP has asked to write a SQL query for his use case. But the OP has not even entered a basic minimal, complete, and verifiable example. It was clearly seen that he didn't even researched about his problem, otherwise he'd have got many duplicate questions for his use-case on Stack Overflow.
So despite knowing the answer to the question, I preferred to ask the OP first about what he tried. But in between, many high rep users already answered the question. This is weird behavior (especially from high rep users) to NOT mark the question BAD and answering the same!!
This question "Is it okay to downvote answers to bad questions" is closely related to mine, but it doesn't satisfy the query I have. I too knew the answer but instead of rep hunting I preferred asking the OP of what he tried first. But I think, that got me no merits!
So what is the moral of the story? I shall too be answering the bad questions instead of wasting time to teach/ask OP. I shall NOT flag either, vote to close the question or mark it duplicate as it won't give me rep! I will join the horse race...without seeing the quality.
The point here I want to make is, cases like this brings encouragement to bad questions more and discouragement to those set of users who actively focus on quality and actually do actions against the bad questions. No, I am not talking about "Punishing answerers of bad questions". What should be the ideal approach in such cases when you know the answer, but the question is bad but others answers it immediately?