Fix `and` -> `and_` usage in several queries