SELECT * WHERE { GRAPH ?g { ?s ?p ?o } FILTER(?o = <<( ?s <<( ?g )>> )>>) }