import re


def read_query(fname: str) -> str:
    """Read a query from file.

    Read query and remove all white space between tags.

    Args:
        fname: Filename tor read.

    Returns:
        Read query.
    """
    with open(fname, "r") as file:
        s = file.read()
        return re.sub(r"\s+(?=<)", "", s)