Question: What is the connection between Greenwich (the one that is the residence of Vince McMahon) to Greenwich (the one whose country is Kingdom of Great Britain)?
Choices:
famous people
field of this occupation
original film format
work location
interested in
inspired by
characters
manufacturer
named after
diplomatic relation
Answer: named after
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Greenwich" . ?e_3 <residence> ?e_1 . ?e_3 <pred:name> "Vince McMahon" . ?e_2 <pred:name> "Greenwich" . ?e_2 <country> ?e_4 . ?e_4 <pred:name> "Kingdom of Great Britain" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Vince McMahon
function: Relate
dependencies: 0
inputs: residence
forward
function: Find
inputs: Greenwich
function: And
dependencies: 1
2
function: Find
inputs: Kingdom of Great Britain
function: Relate
dependencies: 4
inputs: country
backward
function: Find
inputs: Greenwich
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7