Need to filter the latest record for each user and aggregate the count on each vote type. Still cannot able to figure out. any help pls?
{user:"sam", vote: 20,