Question: What is the relationship between Hampshire (the one that shares border with Wiltshire) and West Sussex?
Choices:
given name
subsidiary
properties for this type
shares border with
update method
production designer
has quality
significant event
dissertation submitted to
official religion
Program:
function: Find
inputs: Wiltshire
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Hampshire
function: And
dependencies: 1
2
function: Find
inputs: West Sussex
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hampshire" . ?e_3 <shares_border_with> ?e_1 . ?e_3 <pred:name> "Wiltshire" . ?e_2 <pred:name> "West Sussex" . ?e_1 ?p ?e_2 .  }
Answer: shares border with