Exclude specific tag in query

I have a backlog query that goes through every journal page and shows me blocks that I’ve marked as LATER but not assigned a scheduled date or deadline.

This works fine.

I’m trying to excluded specific tags like [[Dance]] for example from showing up in this backlog list.

I’ve tried to format the query multiple different ways to no avail. TIA.

{:title "🪵 BACKLOG"
 :query [:find (pull ?b [*])
        :where
        [?b :block/marker ?marker]
        [?b :block/page ?p]
        [?p :page/journal? true]
        (not [?b :block/scheduled ?d])
        (not [?b :block/deadline ?d])
        [(contains? #{"LATER"} ?marker)]]
        :collapsed? true      
}

Maybe:

#+BEGIN_QUERY
{:title "🪵 BACKLOG"
 :query [:find (pull ?b [*])
        :where
        [?b :block/marker ?marker]
        [?b :block/page ?p]
        [?p :page/journal? true]
        (not [?b :block/refs ?t]
                [?t :page/name "dance"])
        (not [?b :block/scheduled ?d])
        (not [?b :block/deadline ?d])
        [(contains? #{"LATER"} ?marker)]]
        :collapsed? true      
}
#+END_QUERY
1 Like