Question: Which visual artwork, that is a part of X-Men (the one that contains X2), has the smallest duration?
Choices:
X-Men
X-Men: The Last Stand
Talk to Her
X-Men: First Class
Training Day
The Fifth Element
X-Men Origins: Wolverine
Pleasantville
A Prairie Home Companion
X2
Program:
function: Find
inputs: X2
function: Relate
dependencies: 0
inputs: part of the series
forward
function: Find
inputs: X-Men
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> "X-Men" . ?e_2 <part_of_the_series> ?e_1 . ?e_2 <pred:name> "X2" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: X-Men