As far as I see there is no option for returning the resulting table of a query when executing a file or sql string. This feature, if even possible, would be super nice, as it makes ongoing work with dataframes in python much easier! Basically something similiar like what pandas supports with df = pd.read_sql(string, con).