qnli 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.