Template:OOKM city country sea, queries
Appearance
questions | ||
---|---|---|
MATCH
(inst:Inst {name: 'Marseille'})
-[:INST]->
(parent:Class)
-[:SUB*0..]->
(ancestor:Class)
-[quest:QUEST]-
(:Class)
RETURN quest.name;
╒═════════════════════════╕
│quest.name │
╞═════════════════════════╡
│"port city access to sea"│
├─────────────────────────┤
│"city part of country" │
└─────────────────────────┘ |
answers | ||
---|---|---|
MATCH
(inst:Inst {name: 'Marseille'})
-[:INST*0..1]->
(selfOrParent)
-[:SUB*0..]->
(selfOrAncestor)
-[ans:ANS]-
(ansInst:Inst)
RETURN ans.quest, ansInst.name;
╒═════════════════════════╤═══════════════╕
│ans.quest │ansInst.name │
╞═════════════════════════╪═══════════════╡
│"port city access to sea"│"Mediterranean"│
├─────────────────────────┼───────────────┤
│"city part of country" │"France" │
└─────────────────────────┴───────────────┘ |