import json


def _load_query(query_file: str) -> str:
    """
    Load the advanced query from a json file.

    :param query_file: path to the json file.
    :return: advanced query in json string format (single line).
    """
    with open(query_file, 'r', encoding='utf-8') as file_pointer:
        query = json.load(file_pointer)
    # return single line json string
    return json.dumps(query)