CREATE TABLE table_52715 ("Name" CLOB, "Took Office" CLOB, "Left Office" CLOB, "Party" CLOB, "District Residence" CLOB)

Which Took Office that has a Party of democrat, under the name of John Hancock
SELECT "Took Office" FROM table_52715 WHERE "Party" = 'democrat' AND "Name" = 'john hancock'
SELECT "Took Office" FROM "table_52715" WHERE "Name" = 'john hancock' AND "Party" = 'democrat'