<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_annotation_entries_by_names(self, url: str, names: Iterable[str]) -> List[NamespaceEntry]: """Get annotation entries by URL and names. :param url: The url of the annotation source :param names: The names of the annotation entries from the given url's document """

        annotation_filter = and_(Namespace.url == url, NamespaceEntry.name.in_(names))
        return self.session.query(NamespaceEntry).join(Namespace).filter(annotation_filter).all()