Query to show contents of blocks

I did my first query:

{{query (and [[Book Notes/Self Compassion]] (not [[Book Notes/Self Compassion/Exercises]] ))}}

But unfortunately it only shows the parent block with the actual tag and not the contents of those blocks:

How do i fix this?

This appears to be a bug honestly.

You can use this advanced query as a workaround:

{:title "Self Compassion Book Notes"
 :query [:find (pull ?b [*])
   [?tag :block/name "book notes/self compassion"] ;always lower-case
   [?exercise :block/name "book notes/self compassion/exercises"]
   [?b :block/refs ?tag]
   (not [?b :block/refs ?exercise])