Input (grade 10): Bonham Carter played Bellatrix Lestrange in 2007's Harry Potter and the Order of the Phoenix and 2009's Harry Potter and the Half-Blood Prince.
Output (grade 7): Carter played Bellatrix Lestrange in Harry Potter and the Order of the Phoenix, which was released in 2007.