CREATE TABLE table_42005 ("Office" TEXT, "Republican ticket" TEXT, "Democratic ticket" TEXT, "Liberal ticket" TEXT, "Conservative ticket" TEXT, "Socialist Workers ticket" TEXT, "Socialist Labor ticket" TEXT)

When Republican ticket was John P. Lomenzo who ran for the Socialist Workers ticket?
SELECT "Socialist Workers ticket" FROM table_42005 WHERE "Republican ticket" = 'john p. lomenzo'
SELECT "Socialist Workers ticket" FROM "table_42005" WHERE "Republican ticket" = 'john p. lomenzo'