Welcome.
- If in the query that task-block is represented by
?h, then to require that it contains both tag1 and tag2, could use the following:[?ref1 :block/name "tag1"] [?ref2 :block/name "tag2"] [?h :block/refs ?ref1] [?h :block/refs ?ref2] - If you still have issues, make sure to share your effort (query + example tasks), so as we have something concrete to help you with.