Rule-based multi-query optimization
On-the-fly sharing for streamed aggregation