Input: Sentence 1: This Moorish palace formed part of the city wall. Sentence 2: A section of the city wall was occupied by this Moorish palace.
Output: 

 yes