Added support for CompareRelation.