def query_from_file(self, filename, data=None, union=True, limit=None):
        with open(filename) as fp:
            q = fp.read()

        return self.query(q, data=data, union=union, limit=limit)
Query your database from a file.
dataset/ETHPy150Open yhat/db.py/db/db.py/DB.query_from_file