Complex sentence: From 1654 to 1659 he represented Edinburgh at the Convention of Royal Burghs, and in 1662 he was elected a burgh commissioner, a type of Member of Parliament, for Edinburgh, attending Charles II's first Scottish parliament.
Split into simpler sentences: From 1654 to 1659 he represented Edinburgh at the Convention of Royal Burghs. In 1662 he was elected a burgh commissioner, a type of Member of Parliament, for Edinburgh, and attended Charles II's first Scottish parliament.