fix filters for greater and greaterorequal.

Looks like the filters for `Greater` and `GreaterOrEqual` were broken.  I don't have mysql running locally to check tests or reasonably add failing tests right now.