How to load a joinedload in this example as a scalar list of ids:
session.query(tables.Roles).options(joinedload(tables.Roles.permissions).load_only(tables.Pe