Tasks with a page reference

I am looking at pulling up a query that finds all tasks with a page reference [[ProjectTag]]

Some sample tasks look like this:

  • TODO PersonA- Apply the hotfix (55FSCR) [[ProjectTag]]
  • TODO PersonB- Test the hotfix [[ProjectTag]]
  • TODO PersonC - Test the hotfix [[ProjectTag]
  • Simple query: {{query (and (task todo) [[ProjectTag]] ) }}
  • Advanced query:
    #+BEGIN_QUERY
    {:query [:find (pull ?b [*])
       :where
       [?project-tag :block/original-name "ProjectTag"]
       [?b :block/refs ?ref]
       [(= ?ref ?project-tag)]
       [?b :block/marker ?marker]
       [(contains? #{"TODO"} ?marker)]
     ]
    }
    #+END_QUERY
    

Thank you. What does this query look like in an advanced query?

I have updated my answer.