generalize MIM construct queries