Question: In what way is Star Trek Ⅴ: The Final Frontier related to the Star Trek with Star Trek Ⅳ: The Voyage Home in it?
Choices:
executive producer
production company
cites
material used
update method
has part
professional or sports partner
quotes work
next higher rank
permanent resident of
Answer: has part
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Star Trek" . ?e_3 <part_of_the_series> ?e_1 . ?e_3 <pred:name> "Star Trek Ⅳ: The Voyage Home" . ?e_2 <pred:name> "Star Trek Ⅴ: The Final Frontier" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Star Trek Ⅳ: The Voyage Home
function: Relate
dependencies: 0
inputs: part of the series
forward
function: Find
inputs: Star Trek
function: And
dependencies: 1
2
function: Find
inputs: Star Trek Ⅴ: The Final Frontier
function: QueryRelation
dependencies: 3
4