I want to implement filtered navigation with postgres, but I'm not sure how to return the count of each value in multiple fields from the result set.
Example Schema:
id, name, status
for this query i'd want to see something like (doesn't have to mimic this structure):
name: [(Bob, 20), (Joe, 15), (Sue, 5)]
status[(active, 15), (inactive, 25)]