Question: What is the connection between the Taj Mahal (the one whose composer is A. R. Rahman) to Mani Ratnam?
Choices:
location of final assembly
parent club
screenwriter
material used
continent
founded by
record label
main subject
officeholder
contributor(s) to the creative work
Answer: screenwriter
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Taj Mahal" . ?e_1 <composer> ?e_3 . ?e_3 <pred:name> "A. R. Rahman" . ?e_2 <pred:name> "Mani Ratnam" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: A. R. Rahman
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Taj Mahal
function: And
dependencies: 1
2
function: Find
inputs: Mani Ratnam
function: QueryRelation
dependencies: 3
4