Reduce depth of path query