Understand how to "translate" text for OpenAI API

We write smth like "Give me statistics of covid cases in 2020" and dataset, and get the answer in list representation with covid cases from 2020 based on our dataset. Also understand how to send dataset to OpenAI API.