Complex sentence: It was in existence from 1802 to 1817 and from 1824 to 1917-from 1817 to 1824 it was part of the Ministry of Religious Affairs and Public Education.
Split into simpler sentences: It was in existence from 1802 to 1817 and from 1824 to 1917. From 1817 to 1824, it was part of the Ministry of Religious Affairs and Public Education.