Tap to Translate: Copy text in any app and your translation pops up
from sqlalchemy import or_
query_result = User.query.filter(or_(a == None, User.id == a),
or_(b == None, User.group == b),
or_(c == None, User.key == c))