Supporting class aggregation in query editor