Project(Extend(BGP( ?friend . ?friend ?friend_of_friend), ?COUNT1, count(*) ), {?COUNT1})