getting something off of a relationship in a qeury sqlalchemy code example
Example: sqlalchemy filter by relationship
patients = Patient.query.filter(Patient.mother.has(phenoscore=10))
patients = Patient.query.filter(Patient.mother.has(phenoscore=10))