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

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'