qnli question: During which time period did Virgil's reputation inspire legends associating him with magic and prophecy? sentence: In the Middle Ages, Virgil's reputation was such that it inspired legends associating him with magic and prophecy.