Illustrate use of external state and a snapshot aggregation as well as chained aggregation