prefix ex: select * where { ?s ?p ex:o2 filter exists {ex:s ex:p ex:o} }