Question: Establish whether John Oliver is a citizen of Canada
Choices:
worshipped by
place of burial
captain
studied by
signatory
studies
country of citizenship
film regional debut venue
foundational text
said to be the same as
Answer: country of citizenship
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Oliver" . ?e_1 <country_of_citizenship> ?e_3 . ?e_3 <pred:name> "Canada" . ?e_2 <pred:name> "Canada" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: John Oliver
function: And
dependencies: 1
2
function: Find
inputs: Canada
function: QueryRelation
dependencies: 3
4