sentences:  Aladdin then tricks him into wishing to become the most powerful genie of all time - forever trapping him inside his own lamp.Using his last wish, Aladdin frees Genie; and the Sultan, moved by Aladdin's courage and Jasmine's wisdom, alters the law so that the Princess can rule Agrabah and marry whomever she chooses.Picking Aladdin, Jasmine and all of Agrabah live happily, and freely, ever after ("Finale").