Use SQL subqueries to count distinct 50x faster | Hacker News Reader