Query type: work items and direct links
Top level
work item type = PBI
AND State <> Removed
AND State <> Done
Filter for linked work items
Work Item Type = Task
And State <> Done
Filter Options - Only return options that do not have matching links