import typing
import hashlib


def create_sf_instance(entity_name: str, property_label: str) -> typing.Tuple[str, str]:
    """Creates a slot filling instance by combining a name and a relation.

    Arguments:
        entity_name: ``str`` The name of the AmbER set to fill into the template.
        property_label: ``str`` The property name of the AmbER set tuple.
    Returns:
        query: ``str`` The template with the name slotted in.
        query_hashlib: ``str`` A MD5 hash of the query.
    """
    sf_input = entity_name + " [SEP] " + property_label
    sf_hashlib = hashlib.md5(sf_input.encode("utf-8")).hexdigest()
    return sf_input, sf_hashlib