Implement negation/factor/compare/relationship operation.