Add comparison operators to ExpressionBuilder

Closes #4040.