Filtro de sqlalchemy por relación
patients = Patient.query.filter(Patient.mother.has(phenoscore=10))
Poised Penguin
patients = Patient.query.filter(Patient.mother.has(phenoscore=10))