Handle joins on the same table by using sqlalchemy alias