Don't add primary key for aggregate queries