Since there is no function/clause/pseudocolumn which could realise this specific need, I would use a combination of sys_connect_by_path with substr to get the sixth id on the path