// class nodes
CREATE (City:Class {name:'city'})
CREATE (Country:Class {name:'country'})
CREATE (Sea:Class {name:'sea'})
CREATE (PortCity:Class {name:'port city'})
// instance nodes
CREATE (LaRochelle:Inst {name:'La Rochelle'})
CREATE (Marseille:Inst {name:'Marseille'})
CREATE (France:Inst {name:'France'})
CREATE (Atlantic:Inst {name:'Atlantic'})
CREATE (Mediterranean:Inst {name:'Mediterranean'})
CREATE
// subclass relations
(PortCity) -[:SUB]-> (City),
// instance relations
(LaRochelle) -[:INST]-> (PortCity),
(Marseille) -[:INST]-> (PortCity),
(France) -[:INST]-> (Country),
(Atlantic) -[:INST]-> (Sea),
(Mediterranean) -[:INST]-> (Sea),
// questions
(City) -[:QUEST {name: 'city part of country'}]-> (Country),
(Country) -[:QUEST {name: 'country access to sea'}]-> (Sea),
(Country) -[:QUEST {name: 'country borders country'}]-> (Country),
(PortCity) -[:QUEST {name: 'port city access to sea'}]-> (Sea),
// answers
(LaRochelle) -[:ANS {quest: 'city part of country'}]-> (France),
(Marseille) -[:ANS {quest: 'city part of country'}]-> (France),
(LaRochelle) -[:ANS {quest: 'port city access to sea'}]-> (Atlantic),
(Marseille) -[:ANS {quest: 'port city access to sea'}]-> (Mediterranean),
(France) -[:ANS {quest: 'country access to sea'}]-> (Atlantic),
(France) -[:ANS {quest: 'country access to sea'}]-> (Mediterranean);