Question: What is the connection between James Buchanan (the one that lives in Pennsylvania) to Latin?
Choices:
office contested
cites
used by
league
narrator
significant person
owned by
replaced by
languages spoken, written or signed
has immediate cause
Answer: languages spoken, written or signed
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "James Buchanan" . ?e_1 <residence> ?e_3 . ?e_3 <pred:name> "Pennsylvania" . ?e_2 <pred:name> "Latin" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Pennsylvania
function: Relate
dependencies: 0
inputs: residence
backward
function: Find
inputs: James Buchanan
function: And
dependencies: 1
2
function: Find
inputs: Latin
function: QueryRelation
dependencies: 3
4