SELECT * WHERE { ?x ?y ?z . FILTER ?x = "http://rdf.hp.com/r-1" ) && !REGEX(?y,"1$" ) . }