Project(Filter(regex(str(?p) , "s$") && ! exists((bgp, (triple, ?p, , ?p2))) , BGP( ?p )), {?p})