prefix ex: prefix in: select ?x where { {select * where {?x ex:p ?y}} filter(exists {?x ex:q ?y}) }