Add support for less-than, greater-than etc. to combined lookup function.
Optimizer test cases