Ultimately I\'m trying to use pandas read_sql which takes in a raw SQL query.
I\'m trying to convert something like;
sql = str(session.query(Post).filt