Question: What subject was studied in the country where Ibn Muqla was born?

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: Muhammad ibn Qasim (al-Alawi): However, Al-Mu'tasim defeated and arrested him and carried him to Baghdad, detaining him in his palace. Shortly after, Muhammad was able to run away and flee, and was never heard of again.
Document 3: 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 4: Ibn Qutaybah: Abū Muhammad Abd-Allāh ibn Muslim ibn Qutayba al-Dīnawarī al-Marwazī or simply Ibn Qutaybah (; 828 – 13 November 889 CE / 213 – 15 Rajab 276 AH) was an Islamic scholar of Persian origin. He served as a judge during the Abbasid Caliphate, but was best known for his contributions to Arabic literature. He was a polymath who wrote on diverse subjects, such as Qur'anic exegesis, hadith, theology, philosophy, law and jurisprudence, grammar, philology, history, astronomy, agriculture and botany.
Document 5: Al-Mu'tadid: Al-Mu'tadid was the son of al-Muwaffaq, who was the regent and effective ruler of the Abbasid state during the reign of his brother, Caliph al-Mu'tamid. As a prince, the future al-Mu'tadid served under his father during various military campaigns, most notably in the suppression of the Zanj Rebellion, in which he played a major role. When al-Muwaffaq died in June 891 al-Mu'tadid succeeded him as regent. He quickly sidelined his cousin and heir-apparent al-Mufawwad, and when al-Mu'tamid died in October 892, he succeeded to the throne. Like his father, al-Mu'tadid's power depended on his close relations with the army. These were first forged during the campaigns against the Zanj and were reinforced in later expeditions which the Caliph led in person: al-Mu'tadid would prove to be the most militarily active of all Abbasid caliphs. Through his energy and ability, he succeeded in restoring to the Abbasid state some of the power and provinces it had lost during the turmoil of the previous decades.
Document 6: Ibn Muqla: Abu 'Ali Muhammad Ibn 'Ali ibn Muqla al-Shirazi (885/6 – 20 July 940/1) was a Persian official of the Abbasid Caliphate who rose to high state posts in the early 10th century. His career culminated in his own assumption of the vizierate at Baghdad thrice, in 928–930, 932–933 and 934–936. Unable to successfully challenge the growing power of regional emirs, he lost his position to the first "amir al-umara", Ibn Ra'iq, and died in prison. He was also a noted calligrapher.
Document 7: 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 8: Ibn al-Tiqtaqa: ‘Ibn al-Tiqtaqā’, or the son of a chatterbox, was an onomatopoeic nickname for the Iraqi historian Jalāl-ad-Dīn Abu Ja’far Muhammad ibn Tāji’d-Dīn Abi’l-Hasan ’Ali, the spokesman of the Shi'a community in the Shi’ī holy cities—Hillah, Najaf, and Karbala; in an Iraq that was to remain the stronghold of Shi'ism, until the forcible conversion of Iran by Shah Ismail I Safavi.
Document 9: 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 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: 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 12: 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 13: Mu'nis al-Fahl: Under al-Mu'tadid he served as commander of the caliph's personal guard and led various expeditions against Bedouins and other restive elements in Iraq, while al-Muqtafi dispatched him in 906 against the Qarmatians. After al-Muqtafi's death, he played a decisive role in the suppression of the palace coup that briefly deposed al-Muqtadir in favour of Abdallah ibn al-Mu'tazz. He was then named treasurer ("khazin") and chief of security ("sahib al-shurta") to the Caliph. He died in 914.
Document 14: Avicenna: Ibn Sina subsequently settled at Rey, in the vicinity of modern Tehran, the home town of Rhazes; where Majd Addaula, a son of the last Buwayhid emir, was nominal ruler under the regency of his mother (Seyyedeh Khatun). About thirty of Ibn Sina's shorter works are said to have been composed in Rey. Constant feuds which raged between the regent and her second son, Shams al-Daula, however, compelled the scholar to quit the place. After a brief sojourn at Qazvin he passed southwards to Hamadãn where Shams al-Daula, another Buwayhid emir, had established himself. At first, Ibn Sina entered into the service of a high-born lady; but the emir, hearing of his arrival, called him in as medical attendant, and sent him back with presents to his dwelling. Ibn Sina was even raised to the office of vizier. The emir decreed that he should be banished from the country. Ibn Sina, however, remained hidden for forty days in sheikh Ahmed Fadhel's house, until a fresh attack of illness induced the emir to restore him to his post. Even during this perturbed time, Ibn Sina persevered with his studies and teaching. Every evening, extracts from his great works, the Canon and the Sanatio, were dictated and explained to his pupils. On the death of the emir, Ibn Sina ceased to be vizier and hid himself in the house of an apothecary, where, with intense assiduity, he continued the composition of his works.
Document 15: 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.
ground_truth: Islamic mathematics
sub_queries: Ibn Muqla >> place of birth Answer: Baghdad
What subject was studied in Baghdad ? Answer: Islamic mathematics