Question: What is the relationship between John Adams, who works in Washington DC, and English?
Choices:
religious order
dialect of
airline alliance
original film format
practiced by
member of
office contested
voice type
director/manager
languages spoken, written or signed
Answer: languages spoken, written or signed
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Adams" . ?e_1 <work_location> ?e_3 . ?e_3 <pred:name> "Washington, D.C." . ?e_2 <pred:name> "English" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Washington, D.C.
function: Relate
dependencies: 0
inputs: work location
backward
function: Find
inputs: John Adams
function: And
dependencies: 1
2
function: Find
inputs: English
function: QueryRelation
dependencies: 3
4