Input (grade 8): Mary was the eldest daughter of King Charles I of England, Scotland and Ireland, and sister of King Charles II.
Output (grade 3): Mary was the sister to the King of England, James II.