Question: What is the relationship between Hamlet (the one whose director is Laurence Olivier) and black-and-white?
Choices: film release region
art director
board member
honorific prefix
candidacy in election
academic degree
foundational text
designed to carry
nominated for
color
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hamlet" . ?e_1 <director> ?e_3 . ?e_3 <pred:name> "Laurence Olivier" . ?e_2 <pred:name> "black-and-white" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Laurence Olivier
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Hamlet
function: And
dependencies: 1
2
function: Find
inputs: black-and-white
function: QueryRelation
dependencies: 3
4
Answer: color