an Entity references as follows:
Sulayman ibn al-Hakam or Sulayman al-Musta'in bi-llah (Arabic: سلیمان المستعین باللہ; died 1016) was the fifth Caliph of Córdoba, ruling from 1009 to 1010, and from 1013 to 1016 in Al-Andalus. In 1009, after Muhammad II ibn Hisham had led a revolt against caliph Hisham II al-Hakam and imprisoned him, taking advantage of the fact that the kingdom's strongman, Abd al-Rahman Sanchuelo, was fighting in León against the Christian king Alfonso V, Sulayman took command of an army of Berbers who had abandoned Muhammad; by an alliance with count Sancho García of Castile, he was able to defeat Muhammad on November 1, 1009, in the battle of Alcolea. While Muhammad took refuge in Toledo, Sulayman entered Córdoba, which he allowed to be sacked by Berbers and Castillans; he freed and recognized caliph H