I need to select blocks that are either:
- not using any marker
- or they’re using marker and this marker is not
DONE
I try this query:
#+BEGIN_QUERY
{:query [:find (pull ?b [*])
:where
(or-join
(and
[?b :block/marker ?marker]
[(not= ?marker "DONE")])
(not [?b :block/marker]))
]}
#+END_QUERY
but it results to an error:
Cannot parse var, expected symbol starting with ?, got: and