I have a user table like below:
I also have a city table like below:
I then use the RELATE statement to create graph edges between user and city in a new table called post which looks like below:
I now want to create a new pre-defined aggregate view called post_stats which derives it's data from post and should look like below. Can someone help me with the exact statements to achieve this:




You can do this: