SQLAlchemy Recipe for Ranged Queries Using Window Functions | Hacker News Reader