Add unique query definition constructed by aggregation.
Update example.