def get_destination_table(query_file):
    """
    Given a path to a scheduled query file (which we assume contains the 
    destination table in the first line), returns this destination table.
    """
    with open(query_file, 'r') as f:
        raw = f.read()
    split = raw.split('\n')
    line  = split[0]
    query = '\n'.join(split[1:])
    return query, line.split(': ')[1]