Distinct(Project(Join(Graph(, BGP( ?b )), Graph(?xg, BGP( ?a ?b . ?a ?ext))), {?a, ?b, ?ext, ?xg}))