Q&A for those using, extending or developing Emacs
select sum(c.Score) comments_text from Comments c INNER JOIN badges b on c.Id = b.Id where b.Id < 1000000 group by c.CreationDate