SQLALCHEMY FILTER или
from sqlalchemy import or_
filter(or_(User.name == 'ed', User.name == 'wendy'))
Disturbed Dove
from sqlalchemy import or_
filter(or_(User.name == 'ed', User.name == 'wendy'))
patients = Patient.query.filter(Patient.mother.has(phenoscore=10))