Sqlalchemy example with unexpected result.