Instruct: Which Took Office that has a Party of democrat, under the name of John Hancock
Output: SELECT Took Office FROM table WHERE Party = democrat AND Name = john hancock