def METHOD_NAME(
    self,
    access_condition,
):
    j = user_to_groups.join(
        tags_to_groups,
        (user_to_groups.c.uid == self.user_id)
        & (user_to_groups.c.gid == tags_to_groups.c.group_id)
        & (access_condition),
    ).join(tags)
    return j