Complex sentence: Alofi is the capital of the Pacific Ocean island nation of Niue, which is located within the Realm of New Zealand.
Split into simpler sentences: Alofi is the capital of the Pacific Ocean island nation of Niue. The capital city is located within the Realm of New Zealand.