Question with regards to the aggregate count query: consider having a model with 2 entities that are in a relationship with each other.
If I perform the following queries
match $x isa Entity1; aggregate count $x;
match $x isa Entity2; aggregate count $x;
match $X isa Entity1; $Y isa Entity2; ($X, $Y) isa REL1; aggregate count $X
Is is possible to get the distinct count of entity X in the latter case? I.e. I expected the count to be returned to be smaller or equal to 22.