Submit query as a batch