distinguish between 'format' and 'aggregate' in query builder