How can I obtain results? How can I store intermediate or temporary results (local and global)? How does the aggregation work?