// to simplify result checking, do double NOT
Expression left = new ASTBitwiseNot(new ASTBitwiseNot(new ASTObjPath(
ReturnTypesMap1.INTEGER_COLUMN_PROPERTY)));
Expression right = new ASTScalar(2);
Expression greater = new ASTGreater();
greater.setOperand(0, left);
greater.setOperand(1, right);
SelectQuery query = new SelectQuery(ReturnTypesMap1.class);
query.setQualifier(greater);
List<ReturnTypesMap1> objects = context.performQuery(query);