How to build duration tables from event logs with SQL | Hacker News Reader