Question: Masjid al-Hisn was built by a caliph who ruled between what years ?

Context paragraphs:
Muhammad III of Córdoba: Muhammad bin 'Abd ar-Rahman bin 'Obayd Allah (Arabic: محمد بن عبد الرحمن بن عبيد الله‎ ‎ ), known as Muhammad III (Arabic: محمد الثالث) was an Umayyad Caliph of Cordoba in the Al-Andalus (Moorish Iberia).  He ruled after the death of Abd ar-Rahman V from 1024 to 1025 when the people of Córdoba revolted against him and he was forced to leave the city.  It is believed that he died after being poisoned when he was 50 years old.  He was also the father of the famous poet Wallada bint al-Mustakfi.

Masjid al-Hisn: Masjid al-Hisn (Arabic: مسجد الحصن‎ ‎ , "The Fortress Mosque") was built between 717 and 720 CE by the Umayyad caliph Umar II, as part of his conversion of Mopsuestia (in present-day southeastern Turkey) into a military base to shield Antioch from a potential Greek attack.

At-Tayyib Abu'l-Qasim: Al-Ṭayyib Abū'l-Qāṣim ibn al-Manṣūr (Arabic: الطيب أبو القاسم بن المنصور‎ ‎ ) was, according to the Mustaali sect of Isma'ilism, the twenty-first Imam and the last Caliph of the Fatimid Caliphate.  Abul-Qāṣim was the son of the twentieth Fatimid Imam, al-Amir bi-Ahkami'l-Lah, who ruled Egypt from 1101-30.  He was born in Cairo on Sunday, March 16, 1130 (4th Rabi' al-thani, 524 AH) and was 2 years 7 months old when his father, al-Amir, was assassinated in the night of (Thursday, October 15, 1132, 4th Dhu al-Qi'dah, 526 AH).  Tayyib was reported to be about two years old at the time of al-Amir's assassination.  Al-Hafiz was appointed representative Caliph on behalf of Imam Al-Tayyib.  Later al-Hafiz declared himself as Imam and Caliph in 528 AH/1134 AD and Al-Tayyib was taken into hiding.

Yazid I: Yazīd ibn Mu‘āwiya (Arabic: يزيد بن معاوية بن أبي سفيان‎ ‎ ; 20 July 64711 November 683), commonly known as Yazid I, was the second caliph of the Umayyad caliphate (and the first one through inheritance).  Yazid was the caliph as appointed by his father Muawiyah I and ruled for three years from 680 CE until his death in 683 CE.

Ahmad ibn Tulun: Ahmad ibn Tulun (Arabic: أحمد بن طولون‎ , "Aḥmad ibn Ṭūlūn " ‎ ‎ ; ca. 20 September 835 – 10 May 884) was the founder of the Tulunid dynasty that ruled Egypt and Syria between 868 and 905.  Originally a Turkic slave-soldier, in 868 Ibn Tulun was sent to Egypt as governor by the Abbasid caliph.  Within four years Ibn Tulun had established himself as a virtually independent ruler by evicting the caliphal fiscal agent, Ibn al-Mudabbir, taking over control of Egypt's finances, and establishing a large military force personally loyal to himself.  This process was facilitated by the volatile political situation in the Abbasid court and the preoccupation of the Abbasid regent, al-Muwaffaq, with the wars against the Saffarids and the Zanj Rebellion.  Ibn Tulun also took care to establish an efficient administration in Egypt.  After reforms to the tax system, repairs to the irrigation system, and other measures, the annual tax yield grew markedly.  As a symbol of his new regime, he built a new capital, al-Qata'i, north of the old capital Fustat.

Tomb of Salim Chishti: The Tomb of Sheikh Salim Chishti is famed as one of the finest examples of Mughal architecture in India, built during the years 1580 and 1581, along with the imperial complex at Fatehpur Sikri near Zenana Rauza and facing south towards Buland Darwaza, within the quadrangle of the Jama Masjid which measures 350 ft. by 440 ft. It enshrines the burial place of the Sufi saint, Salim Chisti (1478 – 1572), a descendant of Khwaja Moinuddin Chishti of Ajmer, and who lived in a cavern on the ridge at Sikri.  The mausoleum, constructed by Akbar as a mark of his respect for the Sufi saint, who foretold the birth of Akbar's son, who was named Prince Salim after the Sufi Saint and later succeeded Akbar to the throne of the Mughal Empire, as Jahangir.

Palaiya Jumma Palli: Palaiya Jumma Palli (Tamil: பழைய ஜும்மா பள்ளி, ""The Old Jumma Masjid of Kilakarai"" ) or Meen Kadai Palli (Tamil: மீன் கடை பள்ளி ) is a mosque in Kilakarai, Tamil Nadu, India.  Built in 628-630 AD, it is believed to be one of the oldest mosques in the world and along with Cheraman Juma Masjid in Kodungallur, Kerala, the first mosque in India.  It has an Islamic heritage of more than 1000 years.  It is located in Kilakarai, an ancient port town in the South Indian state of Tamil Nadu known for its Islamic culture.  It was built in 628–630 AD and was re-constructed in 1036.  The mosque along with the others in the town, is one of the greatest examples of Dravidian Islam architecture.

Umar II: Umar ibn Abd al-Aziz (2 November 682 (26th Safar, 63 AH) – February 720 (16th Rajab, 101 AH)) (Arabic: عمر بن عبد العزيز‎ ‎ ) was an Umayyad caliph who ruled from 717 to 720.  He was also a cousin of the former caliph, being the son of Abd al-Malik's younger brother, Abd al-Aziz.  He was also a matrilineal great-grandson of the second caliph Umar ibn Al-Khattab.

Jama Masjid, Bhilai: Jama Masjid (Hindi: जामा मस्जिद, Urdu: جامع مسجد) Sector-6, Bhilai is one of the largest mosques in Chhattisgarh, India, with a capacity to accommodate more than 3000 worshippers at a time.  It is the first mosque in the world to be built in the shape of the word ""Ya Allah"" in Arabic script.  It took three years for the construction of the mosque which was completed in 1967.

Great Mosque of Herat: The Jama Masjid of Herat (مسجد جمعه هرات), also known as the Masjid-i Jami' of Herat, and the Great Mosque of Herat is a mosque in the city of Herat, in the Herat Province of north-western Afghanistan.  It was built by Ghurids, the famous Sultan Ghayas-ud-Din Ghori, who laid its foundation in 1200 AD, and later extended by several rulers as Herat changed rulers down the centuries from the Timurids, to the Safavids, to the Mughals and the Uzbeks, all of whom supported the mosque.  Though many of the glazed tiles have been replaced during subsequent periods, the Great Mosque in Herat was given its present form during the closing years of the fifteenth century.

Supporting paragraphs: Masjid al-Hisn Umar II
Answer: from 717 to 720