Question: Tell me the one with the longest duration within the visual artwork that is part of Alien (the one containing Prometheus)
Choices:
Alien: Resurrection
Pleasantville
Aliens
Training Day
A Prairie Home Companion
Curse of the Golden Flower
Talk to Her
The Fifth Element
Alien
The Towering Inferno
Answer: Aliens
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e_1 <has_part> ?e . ?e_1 <pred:name> "Alien" . ?e_2 <part_of_the_series> ?e_1 . ?e_2 <pred:name> "Prometheus" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Prometheus
function: Relate
dependencies: 0
inputs: part of the series
forward
function: Find
inputs: Alien
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: has part
forward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: SelectAmong
dependencies: 5
inputs: duration
largest