Sentence 1: The Pope ruled Marie Marriage with Agnes as illegitimate , and William was given the throne .
Sentence 2: The Pope ruled William 's marriage to Agnes as illegitimate and Marie was given the throne .
Question: Do Sentence 1 and Sentence 2 express the same meaning? Yes or No?