Fun with SQL: Window Functions in Postgres | Hacker News Reader