This article from NBC News, which was picked up by at least 5 other outlets, briefly mentions the Global Terrorism Database to compare numbers of deaths by terrorists and gun violence.
A consortium of researchers dedicated to improving the understanding of the human causes and consequences of terrorism