- Syntax
:60d-before
is deprecated.- Prefer
:-60d
- Prefer
- The
and
-clause at the top-level seems redundant, as all the top-level conditions are already implicitly inside a big outerand
.- Maybe this causes the “weird error”.
- Try instead two pairs at the same level:
[?b :block/refs ?ref] [?ref :block/name ?tag] [?b :block/refs ?ref2] [?ref2 :block/name ?tag2]
- Concerning sorting, check Sorting by journal-day