Exclude tasks that are done

That’s not exactly the final solution.

This assumes that all blocks with a scheduled or deadline date have a marker.
But they don’t. Only tasks have a marker, but I’m using scheduled dates oder deadline dates also for blocks, that only contain text and and no marker.

So the query needs to handle blocks with and without markers.