if (domain.getRanges().isNone()) {
return domain.isNullAllowed() ? new IsNullPredicate(reference) : FALSE_LITERAL;
}
if (domain.getRanges().isAll()) {
return domain.isNullAllowed() ? TRUE_LITERAL : new NotExpression(new IsNullPredicate(reference));
}
// Add disjuncts for ranges
List<Expression> disjuncts = new ArrayList<>();
List<Expression> singleValues = new ArrayList<>();