Add support for multiple queries per execution, through splitting the
query and executing multiple times.

If no results are returned, note that instead of throwing an exception