Comparison comparison = (Comparison)constraint;
DynamicOperand lhs = comparison.getOperand1();
StaticOperand rhs = comparison.getOperand2(); // Current only a literal; therefore, no reference to selector
StaticOperand newRhs = replaceSubqueriesWithBindVariables(context, rhs, subqueriesByVariableName);
if (rhs == newRhs) return comparison;
return new Comparison(lhs, comparison.operator(), newRhs);
}
if (constraint instanceof Relike) {
Relike relike = (Relike)constraint;
StaticOperand op1 = relike.getOperand1();
PropertyValue op2 = relike.getOperand2();