We can build queries with aggregates now. We have to treat the distinct yet. Also, we have to rebuild the logic in the function loadQuery to load the results right.