Welcome.
Could use something like this:
#+BEGIN_QUERY
{
:query [:find (pull ?other [*])
:where
[?p :block/original-name "MyPages"]
[?b :block/page ?p]
[?other :block/original-name]
(not [?b :block/refs ?other])
]
}
#+END_QUERY
Most probably yes, but there is no single way. Depending on your exact needs, Logseq can support an appropriate workflow.
Some tree-oriented facility cannot be excluded in the long term, but it is against Logseq’s graph-oriented approach. Meanwhile, check Generate explicit hierarchy out of properties, which contains:
- a specific tool
- plenty of links to other threads that:
- discuss the topic in detail
- provide some alternatives