query.add( QueryAtomFactory.PropertyValueAtom( s, p, o ) );
if( ATermUtils.isVar( p ) ) {
ensureDistinguished( pred );
query.addDistVar( p, VarType.PROPERTY );
// If the predicate is a variable used in a subject position
// we don't have to consider it as it is bound to another
// triple pattern
if( !variableSubjects.contains( p ) )