SELECT ?x WHERE { GRAPH ?g { { SELECT ?x WHERE { ?x ?p ?g . } } } }