def query_country_qnodes(countries: List[str]) -> Dict[(str, Optional[str])]:
    if (not countries):
        return {}
    regions = query_countries(countries)
    result_dict: Dict[(str, Optional[str])] = {region.country: region.country_id for region in regions}
    found_countries = set([country.lower() for country in result_dict.keys()])
    for country in countries:
        if (country.lower() not in found_countries):
            result_dict[country] = None
    return result_dict
def query_country_qnodes(countries: List[str]) -> Dict[(str, Optional[str])]:
    if (not countries):
        return {}
    regions = query_countries(countries)
    result_dict: Dict[(str, Optional[str])] = {region.country: region.country_id for region in regions}
    found_countries = set([country.lower() for country in result_dict.keys()])
    for country in countries:
        if (country.lower() not in found_countries):
            result_dict[country] = None
    return result_dict