Question: When did Muslim armies invade Al-Qaryatayn's country and Al-Mu'tamid's country of citizenship?

full_context: Document 1: Al-Houz: Al-Houz (, also spelled al-Huz) is a village in central Syria, administratively part of the Homs Governorate, located southwest of Homs. Situated at the southern edge of Lake Qattinah, nearby localities include Aqrabiyah to the southwest, Arjoun and al-Qusayr to the southeast, Kafr Mousa to the east and al-Ghassaniya to the northeast. According to the Central Bureau of Statistics (CBS), al-Houz had a population of 2,239 in the 2004 census. It is an Alawite village.
Document 2: Muslim conquest of the Levant: The Muslim conquest of the Levant (Arabic: اَلْـفَـتْـحُ الْإٍسْـلَامِيُّ لِـلـشَّـامِ ‎, Al - Faṫṫḥul - Islāmiyyuash - Shām) or Arab conquest of the Levant (Arabic: اَلْـفَـتْـحُ الْـعَـرَبِيُّ لِـلـشَّـامِ ‎, Al - Faṫṫḥul - ʿArabiyyu Lish - Shām) occurred in the first half of the 7th century, and refers to the conquest of the region known as the Levant or Shaam (Arabic: شَـام ‎, 'Syria'), later to become the Islamic Province of Bilad al - Sham, as part of the Islamic conquests. Arab Muslim forces had appeared on the southern borders even before the death of prophet Muhammad in 632, resulting in the Battle of Mu'tah in 629, but the real invasion began in 634 under his successors, the Rashidun Caliphs Abu Bakr and Umar ibn Khattab, with Khalid ibn al - Walid as their most important military leader.
Document 3: 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 4: Umayyad Caliphate: Marwan was succeeded by his son, Abd al-Malik (685–705), who reconsolidated Umayyad control of the caliphate. The early reign of Abd al-Malik was marked by the revolt of Al-Mukhtar, which was based in Kufa. Al-Mukhtar hoped to elevate Muhammad ibn al-Hanafiyyah, another son of Ali, to the caliphate, although Ibn al-Hanafiyyah himself may have had no connection to the revolt. The troops of al-Mukhtar engaged in battles both with the Umayyads in 686, defeating them at the river Khazir near Mosul, and with Ibn al-Zubayr in 687, at which time the revolt of al-Mukhtar was crushed. In 691, Umayyad troops reconquered Iraq, and in 692 the same army captured Mecca. Ibn al-Zubayr was killed in the attack.
Document 5: Al-Nasir: Al-Nasir was the son of Caliph Al-Mustadi and a Turkish "umm walad" called "Zumurrud" (Emerald). His reign was unusual for the rise of the futuwwa groups in his reign, connected to Baghdad's long-standing ayyarun. These urban social groups had long existed in Baghdad and elsewhere, and they were often involved in urban conflicts, especially sectarian riots. Al-Nasir made them into an instrument of his government, reorganizing them along Sufi lines and ideology.
Document 6: Al-Kamil: Al-Kamil was the son of sultan al-Adil ("Saphadin"), a brother of Saladin. Al-Kamil's father was laying siege to the city of Mardin in 1199 when he was called away urgently to deal with a security threat in Damascus. Al-Adil left al-Kamil to command the forces around Mardin continuing the siege. Taking advantage of the Sultan's absence, the combined forces of Mosul, Sinjar and Jazirat ibn Umar appeared at Mardin when it was on the point of surrender, and drew Al-Kamil into battle. He was badly defeated and retreated to Mayyafariqin. However dissent and weakness among his opponents meant that Al-Kamil was able to secure Ayyubid rule in the Jazira region by taking Harran.
Document 7: 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 8: Umayyad Caliphate: Early Muslim armies stayed in encampments away from cities because Umar feared that they might get attracted to wealth and luxury. In the process, they might turn away from the worship of God and start accumulating wealth and establishing dynasties. When Uthman ibn al-Affan became very old, Marwan I, a relative of Muawiyah I, slipped into the vacuum, became his secretary, slowly assumed more control and relaxed some of these restrictions. Marwan I had previously been excluded from positions of responsibility. In 656, Muhammad ibn Abi Bakr, the son of Abu Bakr, the adopted son of Ali ibn Abi Talib, and the great grandfather of Ja'far al-Sadiq, showed some Egyptians the house of Uthman ibn al-Affan. Later the Egyptians ended up killing Uthman ibn al-Affan.
Document 9: 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 10: Umayyad Caliphate: After the assassination of Uthman in 656, Ali, a member of the Quraysh tribe and the cousin and son-in-law of Muhammad, was elected as the caliph. He soon met with resistance from several factions, owing to his relative political inexperience. Ali moved his capital from Medina to Kufa. The resulting conflict, which lasted from 656 until 661, is known as the First Fitna ("civil war"). Muawiyah I, the governor of Syria, a relative of Uthman ibn al-Affan and Marwan I, wanted the culprits arrested. Marwan I manipulated everyone and created conflict. Aisha, the wife of Muhammad, and Talhah and Al-Zubayr, two of the companions of Muhammad, went to Basra to tell Ali to arrest the culprits who murdered Uthman. Marwan I and other people who wanted conflict manipulated everyone to fight. The two sides clashed at the Battle of the Camel in 656, where Ali won a decisive victory.
Document 11: Al-Ghassaniyah: Al-Ghassaniya ( also spelled Ghassaniyeh) is a town in central Syria, administratively part of the Homs Governorate, located south of Homs and just east of Lake Qattinah. Nearby localities include Kafr Mousa to the south, district capital al-Qusayr 13 kilometers to the southeast, al-Buwaida al-Sharqiya to the east and Qattinah to the northeast.
Document 12: Middle Ages: Religious beliefs in the Eastern Empire and Persia were in flux during the late 6th and early 7th centuries. Judaism was an active proselytising faith, and at least one Arab political leader converted to it.[J] Christianity had active missions competing with the Persians' Zoroastrianism in seeking converts, especially among residents of the Arabian Peninsula. All these strands came together with the emergence of Islam in Arabia during the lifetime of Muhammad (d. 632). After his death, Islamic forces conquered much of the Eastern Empire and Persia, starting with Syria in 634–635 and reaching Egypt in 640–641, Persia between 637 and 642, North Africa in the later 7th century, and the Iberian Peninsula in 711. By 714, Islamic forces controlled much of the peninsula in a region they called Al-Andalus.
Document 13: Umayyad Caliphate: The Umayyad Caliphate (Arabic: الخلافة الأموية‎, trans. Al-Khilāfat al-ʾumawiyya) was the second of the four major Islamic caliphates established after the death of Muhammad. This caliphate was centered on the Umayyad dynasty (Arabic: الأمويون‎, al-ʾUmawiyyūn, or بنو أمية, Banū ʾUmayya, "Sons of Umayya"), hailing from Mecca. The Umayyad family had first come to power under the third caliph, Uthman ibn Affan (r. 644–656), but the Umayyad regime was founded by Muawiya ibn Abi Sufyan, long-time governor of Syria, after the end of the First Muslim Civil War in 661 CE/41 AH. Syria remained the Umayyads' main power base thereafter, and Damascus was their capital. The Umayyads continued the Muslim conquests, incorporating the Caucasus, Transoxiana, Sindh, the Maghreb and the Iberian Peninsula (Al-Andalus) into the Muslim world. At its greatest extent, the Umayyad Caliphate covered 15 million km2 (5.79 million square miles), making it the largest empire (in terms of area - not in terms of population) the world had yet seen, and the fifth largest ever to exist.
Document 14: Al-Qaryatayn: Al-Qaryatayn (, also spelled Karyatayn, Qaratin or Cariatein) is a town in central Syria, administratively part of the Homs Governorate located southeast of Homs. It is situated on an oasis in the Syrian Desert. Nearby localities include Tadmur (Palmyra) to the northeast, Furqlus to the north, al-Riqama and Dardaghan to the northwest, Mahin, Huwwarin and Sadad to the west, Qarah, Deir Atiyah and al-Nabk to the southwest and Jayrud to the south. "Al-Qaryatayn" translates as "the two villages".
Document 15: 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.
ground_truth: in 634
sub_queries: Al-Mu'tamid >> followed by Answer: Al-Mu'tadid
Al-Mu'tadid >> country of citizenship Answer: Iraq
Al-Qaryatayn >> country Answer: Syria
when did muslim armies invade Syria and #2 Answer: in 634