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
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
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 .  }
Answer: languages spoken, written or signed