Instruct: when was the first elected when the  candidates is thomas lawyer (dr) 54.9% william beekman (f) 45.1%?
Output: SELECT First elected FROM table WHERE Candidates = Thomas Lawyer (DR) 54.9% William Beekman (F) 45.1%