Question: Under the Arab Empire, what subject was studied in the city that Abu Hassan was in?

full_context: Document 1: Madrasa: From around 750, during the Abbasid Caliphate, women “became renowned for their brains as well as their beauty”. In particular, many well known women of the time were trained from childhood in music, dancing and poetry. Mahbuba was one of these. Another feminine figure to be remembered for her achievements was Tawaddud, "a slave girl who was said to have been bought at great cost by Hārūn al-Rashīd because she had passed her examinations by the most eminent scholars in astronomy, medicine, law, philosophy, music, history, Arabic grammar, literature, theology and chess". Moreover, among the most prominent feminine figures was Shuhda who was known as "the Scholar" or "the Pride of Women" during the 12th century in Baghdad. Despite the recognition of women's aptitudes during the Abbasid dynasty, all these came to an end in Iraq with the sack of Baghdad in 1258.
Document 2: History of mathematics: Babylonian mathematics refers to any mathematics of the peoples of Mesopotamia (modern Iraq) from the days of the early Sumerians through the Hellenistic period almost to the dawn of Christianity. The majority of Babylonian mathematical work comes from two widely separated periods: The first few hundred years of the second millennium BC (Old Babylonian period), and the last few centuries of the first millennium BC (Seleucid period). It is named Babylonian mathematics due to the central role of Babylon as a place of study. Later under the Arab Empire, Mesopotamia, especially Baghdad, once again became an important center of study for Islamic mathematics.
Document 3: Mesopotamia: Mesopotamia is a historical region in West Asia situated within the Tigris -- Euphrates river system, in modern days roughly corresponding to most of Iraq plus Kuwait, the eastern parts of Syria, Southeastern Turkey, and regions along the Turkish -- Syrian and Iran -- Iraq borders.
Document 4: Ancient Near East: The ancient Near East was the home of early civilizations within a region roughly corresponding to the modern Middle East: Mesopotamia (modern Iraq, southeast Turkey, southwest Iran, northeastern Syria and Kuwait), ancient Egypt, ancient Iran (Elam, Media, Parthia and Persia), Anatolia / Asia Minor and Armenian Highlands (Turkey's Eastern Anatolia Region, Armenia, northwestern Iran, southern Georgia, and western Azerbaijan), the Levant (modern Syria, Lebanon, Palestine, Israel, and Jordan), Cyprus and the Arabian Peninsula. The ancient Near East is studied in the fields of Near Eastern archaeology and ancient history.
Document 5: History of science: In Babylonian astronomy, records of the motions of the stars, planets, and the moon are left on thousands of clay tablets created by scribes. Even today, astronomical periods identified by Mesopotamian proto-scientists are still widely used in Western calendars such as the solar year and the lunar month. Using these data they developed arithmetical methods to compute the changing length of daylight in the course of the year and to predict the appearances and disappearances of the Moon and planets and eclipses of the Sun and Moon. Only a few astronomers' names are known, such as that of Kidinnu, a Chaldean astronomer and mathematician. Kiddinu's value for the solar year is in use for today's calendars. Babylonian astronomy was "the first and highly successful attempt at giving a refined mathematical description of astronomical phenomena." According to the historian A. Aaboe, "all subsequent varieties of scientific astronomy, in the Hellenistic world, in India, in Islam, and in the West—if not indeed all subsequent endeavour in the exact sciences—depend upon Babylonian astronomy in decisive and fundamental ways."
Document 6: Aazaan: Aazaan escapes and runs to Morocco, where he finds the sand artist Aafreen, who is taking care of an orphaned girl. Aafreen knows about Aazaan and his missing brother Aman. Soon both fall in love. But the terrorists follow Aazaan in Morocco too, and the three of them decide to escape to India at the earliest so that the child's blood can be used to make a cure for the virus in India.
Document 7: History of science: In mathematics, the Persian mathematician Muhammad ibn Musa al-Khwarizmi gave his name to the concept of the algorithm, while the term algebra is derived from al-jabr, the beginning of the title of one of his publications. What is now known as Arabic numerals originally came from India, but Muslim mathematicians did make several refinements to the number system, such as the introduction of decimal point notation. Sabian mathematician Al-Battani (850-929) contributed to astronomy and mathematics, while Persian scholar Al-Razi contributed to chemistry and medicine.
Document 8: Abu Nuwas: Some later accounts claim that fear of prison made Abu Nuwas repent his old ways and become deeply religious, while others believe his later, penitent poems were simply written in hopes of winning the caliph's pardon. It was said that al-Ma'mun's secretary Zonbor tricked Abu Nuwas into writing a satire against Ali, the fourth Caliph and son-in-law of the Prophet, while Nuwas was drunk. Zonbor then deliberately read the poem aloud in public, and ensured Nuwas's continuing imprisonment. Depending on which biography is consulted, Abu Nuwas either died in prison or was poisoned by Ismail bin Abu Sehl, or both.
Document 9: The Count of Monte Cristo: Reappearing as the rich Count of Monte Cristo, Dantès begins his revenge on the three men responsible for his unjust imprisonment: Fernand, now Count de Morcerf and Mercédès' husband; Danglars, now a baron and a wealthy banker; and Villefort, now procureur du roi. The Count appears first in Rome, where he becomes acquainted with the Baron Franz d'Épinay, and Viscount Albert de Morcerf, the son of Mercédès and Fernand. Dantès arranges for the young Morcerf to be captured by the bandit Luigi Vampa and then seemingly rescues him from Vampa's gang. The Count then moves to Paris and dazzles Danglars with his wealth, persuading him to extend him a credit of six million francs. The Count manipulates the bond market and quickly destroys a large portion of Danglars' fortune. The rest of it begins to rapidly disappear through mysterious bankruptcies, suspensions of payment, and more bad luck in the Stock Exchange.
Document 10: History of science: From their beginnings in Sumer (now Iraq) around 3500 BC, the Mesopotamian people began to attempt to record some observations of the world with numerical data. But their observations and measurements were seemingly taken for purposes other than for elucidating scientific laws. A concrete instance of Pythagoras' law was recorded, as early as the 18th century BC: the Mesopotamian cuneiform tablet Plimpton 322 records a number of Pythagorean triplets (3,4,5) (5,12,13). ..., dated 1900 BC, possibly millennia before Pythagoras,  but an abstract formulation of the Pythagorean theorem was not.
Document 11: Abu Hassan: Abu Hassan, a favorite of the Caliph of Baghdad, is heavily in debt. To retrieve his fortunes, he sends his wife Fatime to the Caliph's wife, Zobeide, to announce his (Hassan's) death, for which Fatime will receive 50 pieces of gold and a piece of brocade. After Fatime has set off, creditors enter Abu Hassan's house to collect money. Omar, the richest creditor, is tricked into believing that Fatime has spoken to him of love, so he agrees to pay all the other creditors.
Document 12: Muslim world: The Islamic Golden Age coincided with the Middle Ages in the Muslim world, starting with the rise of Islam and establishment of the first Islamic state in 622. The end of the age is variously given as 1258 with the Mongolian Sack of Baghdad, or 1492 with the completion of the Christian Reconquista of the Emirate of Granada in Al-Andalus, Iberian Peninsula. During the reign of the Abbasid caliph Harun ar-Rashid (786 to 809), the legendary House of Wisdom was inaugurated in Baghdad where scholars from various parts of the world sought to translate and gather all the known world's knowledge into Arabic. The Abbasids were influenced by the Quranic injunctions and hadiths, such as "the ink of a scholar is more holy than the blood of a martyr," that stressed the value of knowledge. The major Islamic capital cities of Baghdad, Cairo, and Córdoba became the main intellectual centers for science, philosophy, medicine, and education. During this period, the Muslim world was a collection of cultures; they drew together and advanced the knowledge gained from the ancient Greek, Roman, Persian, Chinese, Indian, Egyptian, and Phoenician civilizations.
Document 13: Mohamed Abu Hamed: Mohamed Abu Hamed Shaheen graduated from the Accounting Department, Faculty of Commerce, Cairo University in 1995. Following 11 September events in the US, Abu Hamed registered a Ph.D. thesis in "Philosophy of Political Sciences and the Relation between Religion and Politics". The aim was to monitor the history of how these religions affected the politics, whether this impact is negative or positive and how to prevent the overlapping of religion and politics. Shaheen works in designing and evaluating financial information and international control systems and auditing. He is registered with the Ministry of Finance as a Chartered Accountant. Abu Hamed owns an Egyptian joint-stock company named 'Life Concept' this is specialized in financial consultancies, strategic planning and financial crisis management.
Document 14: Aladdin: The opening sentences of the story, in both the Galland and the Burton versions, set it in China and imply, at least, that Aladdin is Chinese. On the other hand, there is practically nothing in the rest of the story that is inconsistent with a Persian or Arabian setting. For instance, the Sultan is referred to as such rather being called the ``Emperor '', as in some re-tellings, and the people we meet in the story are Muslims: their conversation is larded with devout Muslim platitudes. A Jewish merchant buys Aladdin's wares (and incidentally cheats him), but there is no mention of Buddhists or Confucians (or other distinctively Han Chinese people).
Document 15: Hassan Tobar: Sheikh Hassan Toubar was a rich Egyptian Islamic Mujahid who fought the French during their campaign on Egypt. He was the Sheikh of the city of Manzala in Dakahlia Governorate. He was also considered the first official Egyptian millionaire.He led the uprising against the invaders in Damietta-Manzala-Mansoura area until fleeing to GAZA after the fall of Manzala to the French Troops. He died soon after being allowed to get back to Manzala city in 1800. and until now the family of toubar is still living in al manzala and there are more generations of toubar'sfamily
ground_truth: Islamic mathematics
sub_queries: Which place is Abu Hassan in? Answer: Baghdad
What subject was studied in Baghdad ? Answer: Islamic mathematics