Implement a iterator to read all the statement return.