Question: Which movie preceded  Star Trek Ⅴ: The Final Frontier is a part of Star Trek (the one whose director is Robert Wise)?
Choices: X-Men Origins: Wolverine
The Carpenters
Batman Returns
Perth
Alien: Resurrection
Star Trek Ⅳ: The Voyage Home
2006 NCAA Men's Division I Basketball Tournament
Star Wars Episode II: Attack of the Clones
Men in Black
Paula Cole
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Star Trek Ⅴ: The Final Frontier" . ?e_2 <pred:name> "Star Trek" . ?e_2 <director> ?e_3 . ?e_3 <pred:name> "Robert Wise" . ?e_1 <part_of_the_series> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <part_of_the_series> ; <pred:fact_t> ?e_2 ] <follows> ?qpv .  }
Program:
function: Find
inputs: Star Trek Ⅴ: The Final Frontier
function: Find
inputs: Robert Wise
function: Relate
dependencies: 1
inputs: director
backward
function: Find
inputs: Star Trek
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: part of the series
follows
Answer: Star Trek Ⅳ: The Voyage Home