Create relation_parent_query