Input (grade 10): Following his death in 1766 he was succeeded by his son Charles Edward Stuart in the Jacobite Succession.
Output (grade 8): When he died in 1766, his son, Charles Edward Stuart, succeeded him in the Jacobite Succession.