opts := influxql.IteratorOptions{ Chunked: true, Descending: false, } iter, err := stmt.ExecuteStatementIteratorWithOptions(database, opts) if err != nil { log.Fatal(err) } for iter.Next() { result := iter.Result() fmt.Println(result) } if iter.Err() != nil { log.Fatal(iter.Err()) }In this example, we create a new `IteratorOptions` struct with the options set to chunked and not descending. We then use that struct as an argument to the `ExecuteStatementIteratorWithOptions` function to get back an iterator for the result set. We then loop over the iterator, printing out each result that we get. If there are any errors during the iteration, we log them using `iter.Err()`.