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