Question: In what year did San Diego become part of the United States?
Sentence: In 1850, it became part of the United States following the Mexican–American War and the admission of California to the union.
Answer in sentence: yes