async fn submit_and_wait( client: Client, query: Option<String>, args: Apply, ) -> Result<QueryExecutionState>