Query vertex uses new optimiser interface.