Question: When was the Election in which Andrew Cornwell was a member of the New South Wales Legislative Assembly held? 
Sentence (from "New South Wales state election, 2011"): The 16-year-incumbent Australian Labor Party government led by Premier Kristina Keneally was defeated in a landslide by the Liberal–National Coalition opposition led by Barry O'Farrell.
Relevant evidence: No