How to find the closest subset sum with SQL | Hacker News Reader