user: Question: What is the name on the Democratic ticket when the Workers ticket is James P. Cannon?
Columns: ['Office', 'Democratic ticket', 'Republican ticket', 'Socialist ticket', 'Workers ticket']
Types: ['text', 'text', 'text', 'text', 'text']
Sample row: ['Governor', 'Alfred E. Smith', 'Theodore Roosevelt, Jr.', 'Norman Thomas', 'James P. Cannon']
SQL:

assistant: SELECT "Democratic ticket" FROM "Table" WHERE "Workers ticket" = 'James P. Cannon';