Use SQLAlchemy boolean expressions