find parent and child with query path and rule set