Run a query via Dremio's SQL API, check the status of the query, and get the results.
Dremio
How it works
Import this story to your tenant, from where you can adapt it to meet your unique needs.