Query optimisation for double parts.