'Filter by annotation and annotation owner.'

def get_single_filter(self, user, a_filter):

    return self.model_class.annotations.any(and_(func.lower(self.model_annotation_association_class.annotation).like((('%' + a_filter.lower()) + '%')), (self.model_annotation_association_class.table.c.user_id == self.model_class.table.c.user_id)))
