Input (grade 13): After the Spanish Reconquista, it once again became a Roman Catholic church, with a Gothic cathedral later inserted into the center of the large Moorish building.
Output (grade 12): Under the rule of Islam, it was built as the second-largest mosque in the world, and is perhaps the most accomplished monument of the Umayyad dynasty of Cordoba.