Question: Who directed Rosemary's Baby (the one whose distributor is Paramount Pictures)?
Choices:
Dave Fleischer
Dennis Rodman
David Guetta
Max Fleischer
Sylvester Stallone
William Henry Harrison
George C. Scott
Roman Polanski
Richard Gere
John Hughes
Answer: Roman Polanski
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <director> ?e . ?e_1 <pred:name> "Rosemary's Baby" . ?e_1 <distributor> ?e_2 . ?e_2 <pred:name> "Paramount Pictures" .   }
Program:
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Rosemary's Baby
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: director
forward
function: FilterConcept
dependencies: 4
inputs: human
function: What
dependencies: 5