Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Which Took Office that has a Party of democrat, under the name of John Hancock

### Inputs:
table_name: table, columns: ['Name', 'Took Office', 'Left Office', 'Party', 'District Residence']

### Response:
SELECT Took Office FROM table WHERE Party = democrat AND Name = john hancock