Input (grade 10): The revolution deposed James II and replaced him with his daughter from his first marriage Mary and her husband, William III of Orange.
Output (grade 10): In the Glorious Revolution, King James II was deposed by his daughter Mary and her husband William III of Orange.