Question: In what war was the city containing Quba Mosque besieged?

full_context: Document 1: Nur-Astana Mosque: The mosque is located at the left riverbank in the city of Nur-Sultan, construction first started in March 2005. The mosque was a gift in accordance with the agreement of the Kazakhstan President, Nursultan Nazarbayev and the Emir of Qatar, Hamad bin Khalifa. It has a capacity of 5,000 worshippers inside the mosque, including 2,000 for worshippers outside the mosque. The structure is made of glass, concrete, granite and alucobond measures.
Document 2: Hejaz Expeditionary Force: The Hejaz Expeditionary Force () of the Ottoman Empire was one of the expeditionary forces of the Ottoman Army. Its commander had the authority of an army commander. It was formed during World War I for the defense of Medina (located in the region known as the Hejaz).
Document 3: Quba Mosque: The Quba Mosque () is a mosque in the outlying environs of Medina, Saudi Arabia.Quba mosque was built six kilometer off Medina in village of Quba, which is currently part of Medina. Depending on whether the Mosque of the Companions in the Eritrean city of Massawa is older or not, it may be the first mosque in the world that dates to the lifetime of the Islamic "Nabi" (Prophet) Muhammad in the 7th century CE. According to legend, its first stones were positioned by Muhammad as soon as he arrived on his emigration from the city of Mecca to Medina, and the mosque was completed by his companions. Muhammad spent 14 days in this mosque praying "qaṣr" (, a short prayer) while waiting for Ali to arrive in Medina, after the latter stayed behind in Mecca to carry out a couple of tasks entrusted to him by the Prophet.
Document 4: Partition of the Ottoman Empire: The partition of the Ottoman Empire (Armistice of Mudros, 30 October 1918 -- Abolition of the Ottoman Sultanate, 1 November 1922) was a political event that occurred after World War I and the occupation of Constantinople by British, French and Italian troops in November 1918. The partitioning was planned in several agreements made by the Allied Powers early in the course of World War I, notably the Sykes - Picot Agreement. As world war loomed, the Ottoman Empire sought protection but was rejected by Britain, France, and Russia, and finally formed the Ottoman -- German Alliance. The huge conglomeration of territories and peoples that formerly comprised the Ottoman Empire was divided into several new states. The Ottoman Empire had been the leading Islamic state in geopolitical, cultural and ideological terms. The partitioning of the Ottoman Empire led to the rise in the Middle East of Western powers such as Britain and France and brought the creation of the modern Arab world and the Republic of Turkey. Resistance to the influence of these powers came from the Turkish national movement but did not become widespread in the post-Ottoman states until after World War II.
Document 5: Madrasa: The first institute of madrasa education was at the estate of Hazrat Zaid bin Arkam near a hill called Safa, where Hazrat Muhammad was the teacher and the students were some of his followers.[citation needed] After Hijrah (migration) the madrasa of "Suffa" was established in Madina on the east side of the Al-Masjid an-Nabawi mosque. Hazrat 'Ubada bin Samit was appointed there by Hazrat Muhammad as teacher and among the students.[citation needed] In the curriculum of the madrasa, there were teachings of The Qur'an,The Hadith, fara'iz, tajweed, genealogy, treatises of first aid, etc. There were also trainings of horse-riding, art of war, handwriting and calligraphy, athletics and martial arts. The first part of madrasa based education is estimated from the first day of "nabuwwat" to the first portion of the "Umaiya" caliphate.[citation needed]
Document 6: Islam in South Asia: Islam first came to the western coast of India when Arab traders as early as the 7th century AD came to coastal Malabar and Konkan - Gujarat. Cheraman Juma Masjid in Kerala is thought to be the first mosque in India, built in 629 AD by Malik ibn Dinar. Following an expedition by the governor of Bahrain to Bharuch in the 7th century AD, immigrant Arab and Persian trading communities from South Arabia and the Persian Gulf began settling in coastal Gujarat. After the Islamic conquest of Persia was completed, the Muslim Arabs then began to move towards the lands east of Persia and in 652 captured Herat.
Document 7: Ottoman Empire: The history of the Ottoman Empire during World War I began with the Ottoman engagement in the Middle Eastern theatre. There were several important Ottoman victories in the early years of the war, such as the Battle of Gallipoli and the Siege of Kut. The Arab Revolt which began in 1916 turned the tide against the Ottomans on the Middle Eastern front, where they initially seemed to have the upper hand during the first two years of the war. The Armistice of Mudros was signed on 30 October 1918, and set the partition of the Ottoman Empire under the terms of the Treaty of Sèvres. This treaty, as designed in the conference of London, allowed the Sultan to retain his position and title. The occupation of Constantinople and İzmir led to the establishment of a Turkish national movement, which won the Turkish War of Independence (1919–22) under the leadership of Mustafa Kemal (later given the surname "Atatürk"). The sultanate was abolished on 1 November 1922, and the last sultan, Mehmed VI (reigned 1918–22), left the country on 17 November 1922. The caliphate was abolished on 3 March 1924.
Document 8: Mehmed VI: The First World War was a disaster for the Ottoman Empire. British and allied forces had conquered Baghdad, Damascus, and Jerusalem during the war and most of the Ottoman Empire was divided amongst the European allies. At the San Remo conference of April 1920, the French were granted a mandate over Syria and the British were granted one over Palestine and Mesopotamia. On 10 August 1920, Mehmed's representatives signed the Treaty of Sèvres, which recognised the mandates and recognised Hejaz as an independent state.
Document 9: Siege of Medina: Medina, an Islamic holy city in Arabia, underwent a long siege during World War I. Medina was at the time part of the Ottoman Empire. In the war, the Ottoman Empire sided with the Central Powers. Sharif Hussain of Mecca revolted against the caliph and the Ottoman Empire which, under the leadership of the nationalistic Young Turks, had ignored the wishes of the Caliph and sided with the Central Powers. Hussain instead sided with the British Empire. T. E. Lawrence was instrumental in this revolt. Hussain occupied Mecca and besieged Medina. It was one of the longest sieges in history that lasted till even after the end of war. Fahreddin Pasha was the defender of Medina. Some celebrated him as ""the Lion of the Desert"" despite the suffering of those who remained in Medina. The siege lasted two years and seven months.
Document 10: Hejaz: In 1916, Sharif Hussein ibn Ali proclaimed himself King of an independent Hejaz, as a result of the McMahon–Hussein Correspondence. The ensuing Arab Revolt overthrew the Ottoman Empire. In 1924, however, Ibn Ali was forced into exile by Ibn Saud of the Najd.
Document 11: Ottoman Empire during World War I: The Ottoman Empire participated in World War I as one of the Central Powers. The Ottoman Empire entered the war by carrying out a surprise attack on Russia's Black Sea coast on 29 October 1914, with Russia responding by declaring war on it on November 5th, 1914. Ottoman forces fought the Entente in the Balkans and the Middle Eastern theatre of World War I. The Ottoman Empire's defeat in the war in 1918 was crucial in the eventual dissolution of the empire in 1921.
Document 12: Şahin Bey: Şahin Bey's return to the Western front would come after the Ottoman Empire entered the World War I on the side of the Central Powers. He was sent to Galicia to help the allies of the empire. He was later transferred to the Middle Eastern front of the war, specifically to Sinai in 1917. There he took part in the Sinai and Palestine Campaign which resulted with another defeat for the Ottoman-German alliance. Şahin Bey became a prisoner of war in the hands of the British forces. He was not released until 1919.
Document 13: Madrasa: The first institute of madrasa education was at the estate of Zaid bin Arkam near a hill called Safa, where Muhammad was the teacher and the students were some of his followers. After Hijrah (migration) the madrasa of ``Suffa ''was established in Madina on the east side of the Al - Masjid an - Nabawi mosque. Ubada ibn as - Samit was appointed there by Muhammad as teacher and among the students. In the curriculum of the madrasa, there were teachings of The Qur'an, The Hadith, fara'iz, tajweed, genealogy, treatises of first aid, etc. There were also trainings of horse - riding, art of war, handwriting and calligraphy, athletics and martial arts. The first part of madrasa based education is estimated from the first day of`` nabuwwat'' to the first portion of the ``Umaiya ''caliphate.
Document 14: Al-Aqsa Mosque: Al - Aqsa Mosque (Arabic: المسجد الاقصى ‎ ‎ Al - Masjid al - 'Aqṣā, IPA: (ʔælˈmæsdʒɪd ælˈʔɑqsʕɑ) (listen), ``the Farthest Mosque ''), also known as Al - Aqsa and Bayt al - Maqdis, is the third holiest site in Islam and is located in the Old City of Jerusalem. Whilst the entire site on which the silver - domed mosque sits, along with the Dome of the Rock, seventeen gates, and four minarets, was itself historically known as the Al - Aqsa Mosque, today a narrower definition prevails, and the wider compound is usually referred to as al - Haram ash - Sharif (`` the Noble Sanctuary''), or the Temple Mount, the holiest site in Judaism. Muslims believe that Muhammad was transported from the Sacred Mosque in Mecca to al - Aqsa during the Night Journey. Islamic tradition holds that Muhammad led prayers towards this site until the seventeenth month after the emigration, when God directed him to turn towards the Kaaba.
Document 15: Atiq Mosque, Awjila: The Atiq Mosque (also called the Great Mosque, or al-Kabir mosque) () is a mosque in the oasis village of Awjila, in the Sahara desert of the Cyrenaica region of eastern Libya. The community dates back to classical times. Since being taken by the Arabs in the seventh century, Islam has always played a central role in the life of Awjila. The 12th-century mosque, the oldest in the region, has unusual conical domes made of mudbrick and limestone that provide light and ventilation.
ground_truth: World War I
sub_queries: Quba Mosque >> located in the administrative territorial entity Answer: Medina
Siege of Medina >> part of Answer: World War I