qnli question: During which war did the British navy defeat Eight Banners forces at Ningbo and Dinghai? sentence: Under the terms of the Treaty of Nanking, signed in 1843, Ningbo became one of the five Chinese treaty ports opened to virtually unrestricted foreign trade.