Again impossible to define, either no true scotsman or an arbitrary cut off.
Hezbollah, Hamas, the Taliban and many other while being &quot;terrorist&quot; organizations are also very much state like, with their own political, social, and economical infrastructure.
About 2M Lebanese live under Hezbollah&#x27;s rule in Lebanon, they get more services from Hezbollah than from the Lebanese government. 
Hamas is the de-facto and de-jure (even tho they didn&#x27;t had elections in 10 years) government of Gaza, and the Taliban was the government of Afghanistan for nearly 30 years.
And should we only count Islamic terrorism as religious? Because the Christian militia&#x27;s in Lebanon killed 100,000&#x27;s, and on the other hand socialist&#x2F;communist groups in Asia and Latin America have probably claimed easily over a million by now.