Project(Extend(Union(Graph(?g, BGP( ?s ?p ?o)), BGP( ?s ?p ?o)), ?COUNT1, count(*) ), {?COUNT1})