human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: District, Incumbent, Party, First elected, Result, Candidates
###Question: Name the first elected for hosea moffitt (f) 57.9% josiah masters (dr) 42.1%
gpt
SELECT First elected FROM table WHERE Candidates = Hosea Moffitt (F) 57.9% Josiah Masters (DR) 42.1%