Question: How is the dramatic film Shadowlands related to the BAFTA Award for Best Direction?
Choices:
nominated for
noble title
military rank
series spin-off
convicted of
successful candidate
location of formation
candidacy in election
heritage designation
source of income
Answer: nominated for
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Shadowlands" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "drama film" . ?e_2 <pred:name> "BAFTA Award for Best Direction" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: drama film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Shadowlands
function: And
dependencies: 1
2
function: Find
inputs: BAFTA Award for Best Direction
function: QueryRelation
dependencies: 3
4