Implemented query normalizer.