How to add australian states or territories in magento

Here, we will explain How to add australian states or territories in magento?

The code for insert queries in magento database for add states or territories of australia in magento: