Original: Prior to this, the pope was elected by the clergy and congregation of the church.
Simplified: Prior to this, the pope was selected by election by the clergy and congregation of the church.