filter_by sqlalchemy flask code example
Example: flask-sqlalchemy filter_by contains
games = Game.query.filter(Game.players.contains(p)).order_by(Game.some_field).all()
games = Game.query.filter(Game.players.contains(p)).order_by(Game.some_field).all()