support aggregation functions such as count/max/min/avg/sum