Input (grade 7): He married Margaret Lindsay, who was a capable astronomer in her own right.
Output (grade 7): He married Margaret Lindsay, who was also an astronomer.