Working on converting SQL statements to SQLAlchemy.