static QuerySpecification getCheckSelect(Session session, Table t,
Expression e) {
CompileContext compileContext = new CompileContext(session, null);
compileContext.reset(0);
QuerySpecification s = new QuerySpecification(compileContext);
RangeVariable[] ranges = new RangeVariable[]{
new RangeVariable(t, null, null, null, compileContext) };