The palace is laid out as a series of courtyards linked by ceremonial gates.
The courtyards of the palace have many gardens.  
mnli hypothesis: The courtyards of the palace have many gardens.   premise: The palace is laid out as a series of courtyards linked by ceremonial gates.