Implemented query discriminators.