sub.setContext(sel.ctx());
// the context select should still belong to parent
sub.ctx().setSelect(sel);
ExpState estate = _exp.initialize(sub, ctx, ((NotContainsExpState)
state).contains);
sub.where(sub.and(null, estate.joins));
SQLBuffer where = new SQLBuffer(dict).append("(");
_exp.appendTo(sub, ctx, estate, where);
if (where.getSQL().length() > 1)
sub.where(where.append(")"));