Adding support for selecting by parent_ids