Project(Extend(BGP( ?d ), ?COUNT1, count(*) ), {?COUNT1})