The question was a little bit hard to understand, but it contained all the information necessary to understand the problem and to provide a solution.
The user included sample data and an expected result set. He explained how he would solve the problem using iterative logic.
MySQL is a set-based language, where iterative logic is better reformulated in terms of sets. He explained in a comment that he didn't know where to start in solving the problem using MySQL.
I provided and answer that met the requirements and explained it thoroughly enough so that user may be able to understand the problem-solving techniques that I applied.
The user found my answer useful and accepted it.
So why, after that productive exchange, has the question been closed as "not a real question"?
Specifically, I dispute this clause in the explanation of why the question was closed:
[The question] cannot be reasonably answered in its current form.
Is the user being punished for lack of clarity?
Does that mean that my answer is "not a real answer"?