rv.add(expr.count());
rv.add(expr.countDistinct());
}
if (!(other instanceof Constant || module == Module.JDO || module == Module.RDFBEAN)) {
CaseBuilder cases = new CaseBuilder();
rv.add(NumberConstant.create(1).add(cases
.when(expr.gt(10)).then(expr)
.when(expr.between(0, 10)).then((NumberExpression<A>)other)
.otherwise((NumberExpression<A>)other)));
rv.add(expr