News

Send the prompt to OpenAI’s GPT-3.5-turbo API and request an SQL query to answer your question. Run the SQL that comes back on your data set to calculate your answer.
Couple this with the concept of correlated-subqueries (the process of running a "child" query for each row in the "parent" resultset), and you can get pretty much anything you want with 'simple' SQL.