Question: How is Wuthering Heights distributed by American International Pictures related to Michel Legrand?
Choices:
chairperson
notable work
derivative work
composer
separated from
geographic distribution
location of formation
drug used for treatment
educated at
field of work
Answer: composer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Wuthering Heights" . ?e_1 <distributor> ?e_3 . ?e_3 <pred:name> "American International Pictures" . ?e_2 <pred:name> "Michel Legrand" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: American International Pictures
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Wuthering Heights
function: And
dependencies: 1
2
function: Find
inputs: Michel Legrand
function: QueryRelation
dependencies: 3
4