Change queries to use the min possible value.