SELECT ?X ?P1 ?P2 FROM NAMED FROM NAMED WHERE { { GRAPH { ?X ?P1 ?Y1 }} . { GRAPH { ?X ?P2 ?Y2 }}}