We'll select the task property of either high-priority items or those that have at most one day left until the deadline.

Run the query to get a preview.