# three triple patterns PREFIX : SELECT * WHERE { ?x :p 1 . ?x :p ?a . ?a :q1 ?z . }