Question mark feature / Questions gathering tool with Logseq

Any idea how would I query for all unanswered questions? Writing something like this:

{{query (and [[q]] (not [[a]]))}}

unfortunately returns all blocks marked #q even if one of the children blocks contains #a reference. How would you fix it?