Sample Reference Data

The following are the inserts for reference data (Countries, Regions, and Campuses) used to demo the Add Role use case:

-- Countries:

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'US', 'United States');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'AF', 'Afghanistan');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'AL', 'Albania');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'DZ', 'Algeria');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'AS', 'American Samoa');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'AD', 'Andorra');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'AO', 'Angola');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'AI', 'Anguilla');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'AQ', 'Antarctica');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'AG', 'Antigua and Barbuda');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'AR', 'Argentina');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'AM', 'Armenia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'AW', 'Aruba');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'AU', 'Australia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'AT', 'Austria');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'AZ', 'Azerbaijan');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BS', 'Bahamas');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BH', 'Bahrain');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BD', 'Bangladesh');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BB', 'Barbados');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BY', 'Belarus');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BE', 'Belgium');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BZ', 'Belize');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BJ', 'Benin');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BM', 'Bermuda');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BT', 'Bhutan');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BO', 'Bolivia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BA', 'Bosnia and Herzegovina');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BW', 'Botswana');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BV', 'Bouvet Island');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BR', 'Brazil');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'IO', 'British Indian Ocean Territory');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'VG', 'British Virgin Islands');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BN', 'Brunei Darussalam');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BG', 'Bulgaria');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BF', 'Burkina Faso');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'BI', 'Burundi');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'KH', 'Cambodia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CM', 'Cameroon');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CA', 'Canada');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CV', 'Cape Verde');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'KY', 'Cayman Islands');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CF', 'Central African Republic');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'TD', 'Chad');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CL', 'Chile');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CN', 'China');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CX', 'Christmas Island');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CC', 'Cocos (keeling) Islands');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CO', 'Colombia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'KM', 'Comoros');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CG', 'Congo');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CK', 'Cook Islands');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CR', 'Costa Rica');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CI', 'Cote d''Ivoire');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'HR', 'Croatia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CU', 'Cuba');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CY', 'Cyprus');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CZ', 'Czech Republic');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'KP', 'Democratic People''s Republic of Korea');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CD', 'Democratic Republic of the Congo');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'DK', 'Denmark');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'DJ', 'Djibouti');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'DM', 'Dominica');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'DO', 'Dominican Republic');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'TP', 'East Timor');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'EC', 'Ecuador');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'EG', 'Egypt');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SV', 'El Salvador');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GQ', 'Equatorial Guinea');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'ER', 'Eritrea');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'EE', 'Estonia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'ET', 'Ethiopia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'FO', 'Faeroe Islands');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'FK', 'Falkland Islands (Malvinas)');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'FM', 'Micronesia, Federated States of');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'FJ', 'Fiji');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'FI', 'Finland');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MK', 'The former Yugoslav Republic of Macedonia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'FR', 'France');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GF', 'French Guiana');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'PF', 'French Polynesia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'TF', 'French Southern Territories');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GA', 'Gabon');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GM', 'Gambia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GE', 'Georgia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'DE', 'Germany');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GH', 'Ghana');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GI', 'Gibraltar');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GR', 'Greece');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GL', 'Greenland');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GD', 'Grenada');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GP', 'Guadeloupe');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GU', 'Guam');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GT', 'Guatemala');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GN', 'Guinea');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GW', 'Guinea-Bissau');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GY', 'Guyana');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'HT', 'Haiti');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'HM', 'Heard Island And Mcdonald Islands');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'VA', 'Holy See');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'HN', 'Honduras');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'HK', 'Hong Kong Special Administrative Region of China');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'HU', 'Hungary');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'IS', 'Iceland');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'IN', 'India');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'ID', 'Indonesia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'IR', 'Iran (Islamic Republic of)');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'IQ', 'Iraq');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'IE', 'Ireland');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'IL', 'Israel');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'IT', 'Italy');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'JM', 'Jamaica');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'JP', 'Japan');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'JO', 'Jordan');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'KZ', 'Kazakhstan');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'KE', 'Kenya');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'KI', 'Kiribati');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'KW', 'Kuwait');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'KG', 'Kyrgyzstan');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'LA', 'Lao People''s Democratic Republic');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'LV', 'Latvia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'LB', 'Lebanon');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'LS', 'Lesotho');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'LR', 'Liberia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'LY', 'Libyan Arab Jamahiriya');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'LI', 'Liechtenstein');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'LT', 'Lithuania');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'LU', 'Luxembourg');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MO', 'Macau');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MG', 'Madagascar');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MW', 'Malawi');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MY', 'Malaysia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MV', 'Maldives');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'ML', 'Mali');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MT', 'Malta');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MH', 'Marshall Islands');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MQ', 'Martinique');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MR', 'Mauritania');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MU', 'Mauritius');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'YT', 'Mayotte');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MX', 'Mexico');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MC', 'Monaco');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MN', 'Mongolia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MS', 'Montserrat');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MA', 'Morocco');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MZ', 'Mozambique');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MM', 'Myanmar');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'NA', 'Namibia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'NR', 'Nauru');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'NP', 'Nepal');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'NL', 'Netherlands');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'AN', 'Netherlands Antilles');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'NC', 'New Caledonia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'NZ', 'New Zealand');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'NI', 'Nicaragua');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'NE', 'Niger');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'NG', 'Nigeria');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'NU', 'Niue');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'NF', 'Norfolk Island');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MP', 'Northern Mariana Islands');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'NO', 'Norway');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'OM', 'Oman');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'PK', 'Pakistan');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'PW', 'Palau');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'PA', 'Panama');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'PG', 'Papua New Guinea');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'PY', 'Paraguay');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'PE', 'Peru');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'PH', 'Philippines');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'PN', 'Pitcairn');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'PL', 'Poland');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'PT', 'Portugal');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'PR', 'Puerto Rico');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'QA', 'Qatar');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'KR', 'Republic of Korea');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'MD', 'Republic of Moldova');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'RO', 'Romania');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'RE', 'Reunion');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'RU', 'Russian Federation');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'RW', 'Rwanda');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SH', 'Saint Helena');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'KN', 'Saint Kitts and Nevis');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'LC', 'Saint Lucia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'PM', 'Saint Pierre and Miquelon');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'VC', 'Saint Vincent and the Grenadines');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'WS', 'Samoa');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SM', 'San Marino');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'ST', 'Sao Tome and Principe');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SA', 'Saudi Arabia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SN', 'Senegal');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SC', 'Seychelles');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SL', 'Sierra Leone');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SG', 'Singapore');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SK', 'Slovakia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SI', 'Slovenia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SB', 'Solomon Islands');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SO', 'Somalia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'ZA', 'South Africa');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GS', 'South Georgia And The South Sandwich Islands');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'ES', 'Spain');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'LK', 'Sri Lanka');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SD', 'Sudan');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SR', 'Suriname');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SJ', 'Svalbard and Jan Mayen Islands');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SZ', 'Swaziland');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SE', 'Sweden');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'CH', 'Switzerland');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'SY', 'Syrian Arab Republic');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'TW', 'Taiwan Province of China');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'TJ', 'Tajikistan');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'TH', 'Thailand');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'TG', 'Togo');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'TK', 'Tokelau');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'TO', 'Tonga');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'TT', 'Trinidad and Tobago');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'TN', 'Tunisia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'TR', 'Turkey');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'TM', 'Turkmenistan');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'TC', 'Turks and Caicos Islands');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'TV', 'Tuvalu');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'UG', 'Uganda');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'UA', 'Ukraine');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'AE', 'United Arab Emirates');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'GB', 'United Kingdom');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'TZ', 'United Republic of Tanzania');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'UM', 'United States Minor Outlying Islands');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'VI', 'United States Virgin Islands');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'UY', 'Uruguay');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'UZ', 'Uzbekistan');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'VU', 'Vanuatu');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'VE', 'Venezuela');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'VN', 'Viet Nam');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'WF', 'Wallis and Futuna Islands');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'EH', 'Western Sahara');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'YE', 'Yemen');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'YU', 'Yugoslavia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'ZM', 'Zambia');

INSERT INTO ctd_countries (id, code, name)
  VALUES (ctd_countries_seq.NEXTVAL, 'ZW', 'Zimbabwe');


-- Regions/States:

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'AK', 'Alaska', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'AL', 'Alabama', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'AR', 'Arkansas', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'AS', 'American Samoa', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'AZ', 'Arizona', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'CA', 'California', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'CO', 'Colorado', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'CT', 'Connecticut', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'DC', 'District of Columbia', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'DE', 'Delaware', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'FL', 'Florida', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'FM', 'Federated States of Micronesia', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'GA', 'Georgia', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'GU', 'Guam', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'HI', 'Hawaii', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'IA', 'Iowa', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'ID', 'Idaho', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'IL', 'Illinois', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'IN', 'Indiana', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'KS', 'Kansas', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'KY', 'Kentucky', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'LA', 'Louisiana', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'MA', 'Massachusetts', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'MD', 'Maryland', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'ME', 'Maine', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'MH', 'Marshall Islands', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'MI', 'Michigan', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'MN', 'Minnesota', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'MO', 'Missouri', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'MP', 'Northern Mariana Islands', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'MS', 'Mississippi', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'MT', 'Montana', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'NC', 'North Carolina', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'ND', 'North Dakota', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'NE', 'Nebraska', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'NH', 'New Hampshire', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'NJ', 'New Jersey', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'NM', 'New Mexico', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'NV', 'Nevada', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'NY', 'New York', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'OH', 'Ohio', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'OK', 'Oklahoma', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'OR', 'Oregon', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'PA', 'Pennsylvania', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'PR', 'Puerto Rico', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'PW', 'Palau', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'RI', 'Rhode Island', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'SC', 'South Carolina', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'SD', 'South Dakota', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'TN', 'Tennessee', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'TX', 'Texas', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'UT', 'Utah', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'VA', 'Virginia', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'VI', 'Virgin Islands', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'VT', 'Vermont', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'WA', 'Washington', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'WI', 'Wisconsin', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'WV', 'West Virginia', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'WY', 'Wyoming', c.id
   FROM ctd_countries c
    WHERE c.code = 'US');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'AB', 'Alberta', c.id
   FROM ctd_countries c
    WHERE c.code = 'CA');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'BC', 'British Columbia', c.id
   FROM ctd_countries c
    WHERE c.code = 'CA');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'MB', 'Manitoba', c.id
   FROM ctd_countries c
    WHERE c.code = 'CA');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'NB', 'New Brunswick', c.id
   FROM ctd_countries c
    WHERE c.code = 'CA');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'NF', 'Newfoundland', c.id
   FROM ctd_countries c
    WHERE c.code = 'CA');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'NL', 'Newfoundland and Labrador', c.id
   FROM ctd_countries c
    WHERE c.code = 'CA');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'NS', 'Nova Scotia', c.id
   FROM ctd_countries c
    WHERE c.code = 'CA');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'NT', 'Northwest Territories', c.id
   FROM ctd_countries c
    WHERE c.code = 'CA');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'NU', 'Nunavut', c.id
   FROM ctd_countries c
    WHERE c.code = 'CA');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'ON', 'Ontario', c.id
   FROM ctd_countries c
    WHERE c.code = 'CA');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'PE', 'Prince Edward Island', c.id
   FROM ctd_countries c
    WHERE c.code = 'CA');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'QC', 'Quebec', c.id
   FROM ctd_countries c
    WHERE c.code = 'CA');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'SK', 'Saskatchewan', c.id
   FROM ctd_countries c
    WHERE c.code = 'CA');

INSERT INTO ctd_regions (id, code, name, country_id)
 (SELECT ctd_regions_seq.NEXTVAL, 'YT', 'Yukon Territory', c.id
   FROM ctd_countries c
    WHERE c.code = 'CA');