Input: Sentence 1: It was dedicated to the legendary Emperor Ojin, from whom Yoritomo claimed descent. Sentence 2: Yoritomo claimed descent from Emperor Ojin.
Output: 

 yes