Question: What is the connection between Mrs. Brown to John Madden (the one that has the occupation of film director)?
Choices: screenwriter
architect
shares border with
conflict
located in the administrative territorial entity
director
film crew member
significant event
exported to
official residence
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Mrs. Brown" . ?e_2 <pred:name> "John Madden" . ?e_2 <occupation> ?e_3 . ?e_3 <pred:name> "film director" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Mrs. Brown
function: Find
inputs: film director
function: Relate
dependencies: 1
inputs: occupation
backward
function: Find
inputs: John Madden
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: director