All for aggregate queries on the social stats API endpoint