added in query to get has resources from parent