Ask HN: Best way to generate product analytics SQL?