Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
### Context:
CREATE TABLE table_name_30 (took_office VARCHAR, party VARCHAR, name VARCHAR)
### Question:
Which Took Office that has a Party of democrat, under the name of John Hancock
### Answer:
SELECT took_office FROM table_name_30 WHERE party = "democrat" AND name = "john hancock"