// class nodes
CREATE (City:Class {name:'city'})
CREATE (Country:Class {name:'country'})
CREATE (Sea:Class {name:'sea'})
CREATE (PortCity:Class {name:'port city'})
CREATE (FrenchPortCity:Class {name:'French 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),
(FrenchPortCity) -[:SUB]-> (PortCity),
// instance relations
(LaRochelle) -[:INST]-> (FrenchPortCity),
(Marseille) -[:INST]-> (FrenchPortCity),
(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
(FrenchPortCity) -[: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);