// 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'})
// subclass relations
CREATE (PortCity) -[:SUB]-> (City)
CREATE (FrenchPortCity) -[:SUB]-> (PortCity)
// instance relations
CREATE (LaRochelle) -[:INST]-> (FrenchPortCity)
CREATE (Marseille) -[:INST]-> (FrenchPortCity)
CREATE (France) -[:INST]-> (Country)
CREATE (Atlantic) -[:INST]-> (Sea)
CREATE (Mediterranean) -[:INST]-> (Sea)
/////////////////////////////////////////////////////////////////////////////
// question nodes
CREATE (CityPartCountry:Quest {name:'city part of country'})
CREATE (CountryAccessSea:Quest {name:'country access to sea'})
CREATE (CountryBordersCountry:Quest {name:'country borders country'})
CREATE (PortCityAccessSea:Quest {name:'port city access to sea'})
// answer nodes
CREATE (FrenchPortCityPartFrance:Ans)
CREATE (LaRochelleAccessAtlantic:Ans)
CREATE (MarseilleAccessMediterranean:Ans)
CREATE (FranceAccessAtlantic:Ans)
CREATE (FranceAccessMediterranean:Ans)
// question relations
CREATE (CityPartCountry) -[:QUEST {name: 'city'}]-> (City)
CREATE (CityPartCountry) -[:QUEST {name: 'country'}]-> (Country)
CREATE (CountryAccessSea) -[:QUEST {name: 'country'}]-> (Country)
CREATE (CountryAccessSea) -[:QUEST {name: 'sea'}]-> (Sea)
CREATE (CountryBordersCountry) -[:QUEST {name: 'country'}]-> (Country)
CREATE (CountryBordersCountry) -[:QUEST {name: 'country'}]-> (Country)
CREATE (PortCityAccessSea) -[:QUEST {name: 'port city'}]-> (PortCity)
CREATE (PortCityAccessSea) -[:QUEST {name: 'sea'}]-> (Sea)
// answer question relations
CREATE (FrenchPortCityPartFrance) -[:AQ]-> (CityPartCountry)
CREATE (FranceAccessAtlantic) -[:AQ]-> (CountryAccessSea)
CREATE (FranceAccessMediterranean) -[:AQ]-> (CountryAccessSea)
CREATE (LaRochelleAccessAtlantic) -[:AQ]-> (PortCityAccessSea)
CREATE (MarseilleAccessMediterranean) -[:AQ]-> (PortCityAccessSea)
// answer relations
CREATE (FrenchPortCityPartFrance) -[:ANS {name: 'city'}]-> (FrenchPortCity)
CREATE (FrenchPortCityPartFrance) -[:ANS {name: 'country'}]-> (France)
CREATE (FranceAccessAtlantic) -[:ANS {name: 'country'}]-> (France)
CREATE (FranceAccessAtlantic) -[:ANS {name: 'sea'}]-> (Atlantic)
CREATE (FranceAccessMediterranean) -[:ANS {name: 'country'}]-> (France)
CREATE (FranceAccessMediterranean) -[:ANS {name: 'sea'}]-> (Mediterranean)
CREATE (LaRochelleAccessAtlantic) -[:ANS {name: 'port city'}]-> (LaRochelle)
CREATE (LaRochelleAccessAtlantic) -[:ANS {name: 'sea'}]-> (Atlantic)
CREATE (MarseilleAccessMediterranean) -[:ANS {name: 'port city'}]-> (Marseille)
CREATE (MarseilleAccessMediterranean) -[:ANS {name: 'sea'}]-> (Mediterranean)