Table: election_results_1938_6
Columns: office
democratic_ticket
republican_ticket
american_labor_ticket
socialist_ticket

Question: Which American Labor candidate ran against Democratic candidate Robert F. Wagner?
SQL: SELECT "american_labor_ticket" FROM election_results_1938_6 WHERE "democratic_ticket" = 'robert f. wagner'

Question: Which Socialist candidate ran against American Labor candidate Caroline O'Day?
SQL: SELECT "socialist_ticket" FROM election_results_1938_6 WHERE "american_labor_ticket" = 'caroline o''day'

Question: Which Democrtic candidate ran against the Socialist candidate Edna Mitchell Blue?
SQL: SELECT "democratic_ticket" FROM election_results_1938_6 WHERE "socialist_ticket" = 'edna mitchell blue'

Question: Which American Labor candidate is running against the Socialist candidate Herman J. Hahn?
SQL: SELECT "american_labor_ticket" FROM election_results_1938_6 WHERE "socialist_ticket" = 'herman j. hahn'

Question: Which Republican ran against the American Labor candidate Matthew J. Merritt?
SQL: SELECT "republican_ticket" FROM election_results_1938_6 WHERE "american_labor_ticket" = 'matthew j. merritt'

Question: Which American Labor candidate ran against Republican Thomas E. Dewey?
SQL: SELECT "american_labor_ticket" FROM election_results_1938_6 WHERE "republican_ticket" = 'thomas e. dewey'