Question: What is the relationship between Hamilton Academical F.C. and Hamilton (the one that is the headquarter location of Hamilton Academical F.C.)?
Choices:
headquarters location
field of work
political alignment
illustrator
depicts
based on
mouth of the watercourse
permanent resident of
political ideology
followed by
Answer: headquarters location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hamilton Academical F.C." . ?e_2 <pred:name> "Hamilton" . ?e_3 <headquarters_location> ?e_2 . ?e_3 <pred:name> "Hamilton Academical F.C." . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Hamilton Academical F.C.
function: Find
inputs: Hamilton Academical F.C.
function: Relate
dependencies: 1
inputs: headquarters location
forward
function: Find
inputs: Hamilton
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4