Restrict task queries to include parent_id