switch to different types for different parts of the label query