Question: Which visual artwork that is a part of Star Trek has the smallest duration (the one that includes Star Trek Ⅳ: The Voyage Home as a part)?
Choices:
Star Trek: First Contact
Star Trek: Insurrection
Rebecca
Talk to Her
Pleasantville
Star Trek Ⅵ: The Undiscovered Country
Star Trek
Star Trek Ⅳ: The Voyage Home
Star Trek Ⅱ: The Wrath of Khan
Star Trek: Nemesis
Program:
function: Find
inputs: Star Trek Ⅳ: The Voyage Home
function: Relate
dependencies: 0
inputs: has part
backward
function: Find
inputs: Star Trek
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: part of
backward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: SelectAmong
dependencies: 5
inputs: duration
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <part_of> ?e_1 . ?e_1 <pred:name> "Star Trek" . ?e_1 <has_part> ?e_2 . ?e_2 <pred:name> "Star Trek Ⅳ: The Voyage Home" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Star Trek: Insurrection