'annotate \'remote\' in primaryjoin, secondaryjoin
when the parent/child tables are entirely
separate.'

def _annotate_remote_distinct_selectables(self):

    def repl(element):
        if (self.child_selectable.c.contains_column(element) and ((not self.parent_local_selectable.c.contains_column(element)) or self.child_local_selectable.c.contains_column(element))):
            return element._annotate({'remote': True})
    self.primaryjoin = visitors.replacement_traverse(self.primaryjoin, {}, repl)
