According to Quran...
According to Quran, "The knowledge of the Book" is for those who are immersed in Knowledge (3:7, 4:162), who are given authority by Allah (4:83), who are assigned by Allah as referee (16:43, 21:7), who are the stars of Guidance (6:97). According to some traditions, the Knowledge of The Book is a part of the Greatest Name of Allah. The Greatest Name of Allah consists of seventy three units. These are not letters, but they are rather the knowledge of governing the universe.
In one of the traditions in Usul al-Kafi, Imam Muhammad al-Baqir (AS) explained this issue as well as the mystery of the action of Asaf, the Minister of Solomon: Abu Ja'far (AS) said: "Verily, the Greatest Name of Allah consists of seventy three units (Harf).
Asaf possessed only one unit of it, and when he spoke it (i.e., used it) the ground between him and the throne of Bilqis (the Queen of Sheba/Saba) folded/subsided so that he could take the throne with his hands, and then the ground opened out and returned to what it was originally in less than the twinkling of an eye.
We (Ahlul-Bayt) have seventy two units of the Greatest Name, and one unit remained with Allah which is kept exclusively in His knowledge of Unseen (Ilm al-Ghayb); and there is no efficacy or power except by Allah, the High, the Great." (Usul al-Kafi, Kitab al-Hujjah, Tradition #613) As stated in Verse 27:40 of Quran, the one who possessed a small part of "the Knowledge of the Book", was able to bring the throne of King Bilqis from another place of the world within the twinkling of an eye.
So those who have the whole "Knowledge of the Book" should be able to do more! The whole knowledge of the Book was with and his twelve successors. Allah, Exalted, said in Quran: "(O' Prophet) say: Enough for witness between me and you is Allah and he who possesses the Knowledge of the Book." (Quran 13:43) >From the verse, it is clear that in the phrase "he who possesses the Knowledge of the Book", Quran is specifically referring to a person other than Allah and .
Of course, the source of this knowledge is Allah and He possesses it and He also granted it to (PBUH&HF) in full. However, the choice words in the above verse shows that "he who possesses the Knowledge of the Book" referred specifically in the above verse, is a person (or persons) other than Allah and His Prophet (PBUH&HF). It refers to Imam Ali (AS) and the Imams after him (see below for details).