Continent
Description
A continent on Earth.
Label
:Continent
Properties
| Property | Description | Type |
|---|---|---|
| id | string | |
| name | The full name of the continent | string |
| createdBy | the person or process that created the node | string |
| createdDate | dateTime | |
| modifiedBy | the person or process who last modified the node | string |
| modifiedDate | dateTime |
Key
name
Relationships
The IS_IN relationship connects countries to continents.
Examples
cypher
MATCH (continent:Continent)
RETURN continent.name AS ContinentName
ORDER BY ContinentName;cypher
MATCH (continent:Continent)<-[:IS_IN]-(country:Country)
RETURN continent.name AS ContinentName, COUNT(country) AS CountryCount
ORDER BY ContinentName;cypher
MATCH (continent:Continent)<-[:IS_IN]-(country:Country)
RETURN continent.name AS ContinentName, collect(country.name) AS Countries
ORDER BY ContinentName;cypher
MATCH (continent:Continent)
WHERE NOT (continent)<-[:IS_IN]-(:Country)
RETURN continent.name AS ContinentName;