Distinct(Project(Union(Graph(?g, BGP( ?s ?p ?o)), BGP( ?s ?p ?o)), {?p}))