Question: How is John Spencer who was born in Glasgow related to the United Kingdom?
Choices:
country of origin
airline alliance
production designer
country of citizenship
distributor
dialect of
contributing factor of
killed by
medical treatment
set in period
Answer: country of citizenship
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Spencer" . ?e_1 <place_of_birth> ?e_3 . ?e_3 <pred:name> "Glasgow" . ?e_2 <pred:name> "United Kingdom" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Glasgow
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: John Spencer
function: And
dependencies: 1
2
function: Find
inputs: United Kingdom
function: QueryRelation
dependencies: 3
4