Input (grade 5): It was one of the kingdoms that founded the Crown of Castile, and the Kingdom of Spain.
Output (grade 6): It was one of the kingdoms that existed before the Kingdom of Spain.