user: ### NOW ANSWER:
Question: What is the name on the Republican ticket when the Socialist ticket was Louis Waldman?
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 "Republican ticket" FROM "Table" WHERE "Socialist ticket" = 'Louis Waldman';