Question: What does Wayne Dyer (citizen of United States of America) have to do with Detroit (which is headed by a mayor)?
Choices: original film format
theme music
collection
home port
place of birth
worshipped by
had as last meal
source of income
distribution
member of
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Wayne Dyer" . ?e_1 <country_of_citizenship> ?e_3 . ?e_3 <pred:name> "United States of America" . ?e_2 <pred:name> "Detroit" . ?e_2 <office_held_by_head_of_government> ?e_4 . ?e_4 <pred:name> "mayor" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Wayne Dyer
function: And
dependencies: 1
2
function: Find
inputs: mayor
function: Relate
dependencies: 4
inputs: office held by head of government
backward
function: Find
inputs: Detroit
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: place of birth