Input (grade 7): Scarlatti was born in Palermo, then part of the Kingdom of Sicily.
Output (grade 4): Scarlatti was born in Palermo. At that time it was part of the Kingdom of Sicily.