class Comment(Base):
    __tablename__ = 'comments'
id = Column(Integer, primary_key=True)
path = Column(ARRAY(Integer))
q = Comment.query.filter(Comment.path[1] == 11)
How to use SQLAlchemy to select value at a position in a PostgreSQL ARRAY?