CREATE TABLE table_40138 ("Office" CLOB, "Republican ticket" CLOB, "Democratic ticket" CLOB, "Socialist Labor ticket" CLOB, "Prohibition ticket" CLOB, "Independent Citizens' ticket" CLOB)

Which Prohibition ticket has a Socialist Labor ticket of joseph smith?
SELECT "Prohibition ticket" FROM table_40138 WHERE "Socialist Labor ticket" = 'joseph smith'
SELECT "Prohibition ticket" FROM "table_40138" WHERE "Socialist Labor ticket" = 'joseph smith'