Question: Which person is a cast member of Napoleon (the one whose composer is Bill Conti)?
Choices:
Richard Gere
Danny Trejo
Sylvester Stallone
Rafael Nadal
William Henry Harrison
June Carter Cash
Joan Rivers
Donald Sutherland
Max Fleischer
Ed Harris
Program:
function: Find
inputs: Bill Conti
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Napoleon
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cast member
forward
function: FilterConcept
dependencies: 4
inputs: human
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Napoleon" . ?e_1 <composer> ?e_2 . ?e_2 <pred:name> "Bill Conti" .   }
Answer: Joan Rivers