Maybe you mean this, which is for blocks that are referenced within the current page:
#+BEGIN_QUERY
{:query [:find (pull ?other [*])
:in $ ?current
:where
[?p :block/name ?current]
[?b :block/page ?p]
[?b :block/refs ?other]
]
:inputs [:current-page]
}
#+END_QUERY