from pathlib import Path


def get_query(query_file):
    """ Open query file, read and return query string """
    p = Path(query_file)
    with p.open('r') as qf:
        query = qf.read()
    
    return query