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