Input (grade 9): Background Baghdad was the capital of the Abbasid caliphate, an Islamic state whose heart was the modern state of Iraq.
Output (grade 8): Background Baghdad was the capital of the Abbasid Empire.