Creating a query for overdue tasks

Perhaps both this and that can be solved by or-join ?