Complex sentence: He matriculated at the University of St Andrews and the University of Edinburgh, and completed a course of study at the Theological Hall of the United Presbyterian Church in Edinburgh, but didn't go into a religious career.
Split into simpler sentences: He matriculated at the University of St Andrews and the University of Edinburgh. He also completed a course of study at the Theological Hall of the United Presbyterian Church in Edinburgh, but did not go into a religious career.