Combining 2 advanced queries

#+BEGIN_QUERY
{:title [:h2 "🧨 OVERDUE"]
  :query [:find (pull ?b [*])
         :in $ ?day
         :where
         [?b :block/marker ?marker]
         [(contains? #{"TODO" "DOING"} ?marker)]
         (or-join [?b ?d]
               [?b :block/scheduled ?d]
               [?b :block/deadline ?d]
               (and [?b :block/page ?p]
               [?p :block/journal-day ?d] 
          ))
          [(< ?d ?day)]
    ]
    :inputs [:today]
    :table-view? false
    :breadcrumb-show? true
    :collapsed? false
}
#+END_QUERY

Hopefully this works for you :slight_smile:
(Cross posting from discord)

2 Likes