I have this code but isn’t returning result.
What is wrong and how can I sort blocks by scheduled date?
#+BEGIN_QUERY
{:title [:b “Tarefas Recorrentes”]
:query [:find (pull ?b [*])
:in $ ?day ?next5
:where
[?p :block/name “tarefas recorrentes”]
[?b :block/page ?p]
[?b :block/scheduled ?d]
(between ?d ?day ?next5)
]
:inputs [:today :+5d]
}
#+END_QUERY
Thanks