question: When Republican ticket was John P. Lomenzo who ran for the Socialist Workers ticket?
answer: SELECT socialist_workers_ticket FROM table_name_99 WHERE republican_ticket = "john p. lomenzo"
context: CREATE TABLE table_name_99 (socialist_workers_ticket VARCHAR, republican_ticket VARCHAR)