Complex sentence: He was King's Advocate in Cyprus from 1902 to 1907, when he was appointed attorney-general in Hong Kong.
Split into simpler sentences: He was King's Advocate in Cyprus from 1902 to 1907. In that year, he was appointed attorney-general in Hong Kong.