Complex sentence: They had four children, two of whom died before the age of 5 and one of whom, Agnes (their fourth child), married General Sir James Campbell of Inverneill.
Split into simpler sentences: They had four children, two of whom died before the age of 5. Their fourth child, Agnes, married General Sir James Campbell of Inverneill.