Distinct(Project(Extend(Filter((?t = ), Graph(?g, BGP( ?prop ?t))), ?n, count(?prop) ), {?t, ?n, ?g}))