Project(Extend(Graph(?g, BGP( ?s ?p ?o)), ?c, count(?g, , distinct) ), {?c})