SELECT $this WHERE { FILTER bound($shapesGraph) . GRAPH $shapesGraph { FILTER bound($currentShape) . $currentShape ex:property 42 . } }