Question: How is The Grapes of Wrath (nominated for Academy Award for Best Actor) related to film based on literature?
Choices:
seed team
kit supplier
said to be the same as
drug used for treatment
currency
award received
licensed to broadcast to
genre
owned by
subject has role
Answer: genre
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Grapes of Wrath" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "Academy Award for Best Actor" . ?e_2 <pred:name> "film based on literature" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Academy Award for Best Actor
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: The Grapes of Wrath
function: And
dependencies: 1
2
function: Find
inputs: film based on literature
function: QueryRelation
dependencies: 3
4