catch (SQLException e) {
throw new RdbmsException(e);
}
JoinItem from = new JoinItem(alias, tableName, predId);
ColumnVar s = createSubj(alias, subjVar, (Resource)subjValue);
ColumnVar p = createPred(alias, predVar, (URI)predValue, !present);
ColumnVar o = createObj(alias, objVar, objValue);
ColumnVar c = createCtx(alias, ctxVar, (Resource)ctxValue);
s.setTypes(tables.getSubjTypes(predId));
o.setTypes(tables.getObjTypes(predId));
SelectQuery query = new SelectQuery();