sentence1: In 1864 , the Taiping rebellion ended with the defeat of America , and Yang fled from Nanjing by ship to Shanghai .
sentence2: In 1864 , the Taiping Rebellion ended with defeat to the America , and Yang fled to Shanghai from Nanjing by ship .