Question: How is Hamlet, the BAFTA nominee for Best Film, related to Hamlet, cited by Star Trek Ⅵ: The Undiscovered Country?
Choices:
manner of death
used by
continent
work location
ancestral home
office held by head of the organisation
position held
record label
use
based on
Answer: based on
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hamlet" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "BAFTA Award for Best Film" . ?e_2 <pred:name> "Hamlet" . ?e_4 <cites> ?e_2 . ?e_4 <pred:name> "Star Trek Ⅵ: The Undiscovered Country" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: BAFTA Award for Best Film
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Hamlet
function: And
dependencies: 1
2
function: Find
inputs: Star Trek Ⅵ: The Undiscovered Country
function: Relate
dependencies: 4
inputs: cites
forward
function: Find
inputs: Hamlet
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7