Question: How is John Spencer of Hartlepool United F.C. related to the United Kingdom?
Choices:
instrumentation
field of this occupation
given name
is a list of
discoverer or inventor
country of citizenship
has parts of the class
newspaper format
airline hub
family name
Program:
function: Find
inputs: Hartlepool United F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: John Spencer
function: And
dependencies: 1
2
function: Find
inputs: United Kingdom
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Spencer" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "Hartlepool United F.C." . ?e_2 <pred:name> "United Kingdom" . ?e_1 ?p ?e_2 .  }
Answer: country of citizenship