Question: How is the John Davis buried in Pennsylvania related to the USA?
Choices: location of final assembly
grants
country of citizenship
family name
doctoral advisor
academic degree
commissioned by
sibling
characters
head coach
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Davis" . ?e_1 <place_of_burial> ?e_3 . ?e_3 <pred:name> "Pennsylvania" . ?e_2 <pred:name> "United States of America" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Pennsylvania
function: Relate
dependencies: 0
inputs: place of burial
backward
function: Find
inputs: John Davis
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: QueryRelation
dependencies: 3
4
Answer: country of citizenship