Question: What is the connection between Salman Khan (the one that has the religion Islam) to Mumbai?
Choices:
chief executive officer
next lower rank
production designer
award received
legal form
color
residence
maintained by
feast day
operating system
Answer: residence
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Salman Khan" . ?e_1 <religion> ?e_3 . ?e_3 <pred:name> "Islam" . ?e_2 <pred:name> "Mumbai" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Islam
function: Relate
dependencies: 0
inputs: religion
backward
function: Find
inputs: Salman Khan
function: And
dependencies: 1
2
function: Find
inputs: Mumbai
function: QueryRelation
dependencies: 3
4