SELECT * WHERE { ?x ?y ?z . FILTER ( str(?x) = str() ) . FILTER ( str(?y) = str() ) . }