user: Question: Which Took Office that has a Party of Democrat, under the name of John Hancock
Columns: ['Name', 'Took Office', 'Left Office', 'Party', 'District Residence']
Types: ['text', 'text', 'text', 'text', 'text']
Sample row: ['District created March 4, 1875', 'District created March 4, 1875', 'District created March 4, 1875', 'District created March 4, 1875', 'District created March 4, 1875']
SQL:

assistant: SELECT "Took Office" FROM "Table" WHERE "Party" = 'Democrat' AND "Name" = 'John Hancock';