Project(Extend(Union(BGP( ?S ?O), BGP( ?S ?O)), ?C, count(?O) ), {?C})