Path query optimized.