Input (grade 5): It was under these conditions that Harunori came to be daimyo of Yonezawa.
Output (grade 4): This is how Uesugi came to be daimyo of Yonezawa.