Project(Filter(exists((select, (filter, (bgp, (triple, ?child, , ?chparent)), (?chparent = ?parent)), (?child))) , BGP( ?parent )), {?parent})