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