Question: With what did Sanskrit exist beside?
Sentence: Sanskrit, as the learned language of Ancient India, thus existed alongside the vernacular Prakrits, which were Middle Indo-Aryan languages.
Answer in sentence: yes