https://mingredbestcheapprice.blogspot.com/2023/10/chained-comparisons-in-sqlalchemy.html
Chained Comparisons In Sqlalchemy