Relationship Queries

Relationship queries must include an entity prior to the relationship part of the query. For example, if you were looking at a model of September 11, 2001, terrorism data, you could create a query that says, "Nationality contains Saud hijacked". This query would return plane hijackers whose nationality is Saudi Arabia. More simply, if you entered a query that said, "person hijacked", the query would return all of the hijackers in the database. Incidentally, as shown below, it would also return the four planes as Event entities if your database included that information.

Relationship Patterns

The basic pattern for a relationship query follows these rules, which yield the same result: all connections to the selected relationship.

<Entity> <Relationship>

<Entity> <Relationship> *