Question: What is the connection between Hamlet (the one whose composer is Dmitri Shostakovich) to black-and-white?
Choices: place served by transport hub
has parts of the class
basic form of government
territory claimed by
color
film distribute region
position played on team / speciality
author
place of death
subsidiary
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hamlet" . ?e_1 <composer> ?e_3 . ?e_3 <pred:name> "Dmitri Shostakovich" . ?e_2 <pred:name> "black-and-white" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Dmitri Shostakovich
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Hamlet
function: And
dependencies: 1
2
function: Find
inputs: black-and-white
function: QueryRelation
dependencies: 3
4
Answer: color