Which Took Office that has a Party of democrat, under the name of John Hancock
CREATE TABLE table_name_30 (took_office VARCHAR, party VARCHAR, name VARCHAR)
SELECT took_office FROM table_name_30 WHERE party = "democrat" AND name = "john hancock"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: 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 [/INST] SELECT took_office FROM table_name_30 WHERE party = "democrat" AND name = "john hancock" </s>