Complex sentence: In 1947, Junagadh's Muslim ruler desired to accede his territory to Pakistan, but the predominantly Hindu population rebelled, and while he fled to Pakistan, a plebiscite was conducted as a result of which the kingdom was merged into the Indian Union.
Split into simpler sentences: In 1947, Junagadh's Muslim ruler desired to accede his territory to Pakistan, but the predominantly Hindu population rebelled. He fled to Pakistan, and a plebiscite was conducted, as a result of which the kingdom was merged into the Indian Union.