Question: Which film that is a part of X-Men (with X-Men: The Last Stand as a component) has the longest runtime?
Choices:
Pleasantville
Rebecca
X-Men
Training Day
X-Men Origins: Wolverine
The Fifth Element
Talk to Her
X-Men: The Last Stand
X-Men: First Class
X2
Program:
function: Find
inputs: X-Men: The Last Stand
function: Relate
dependencies: 0
inputs: part of
forward
function: Find
inputs: X-Men
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: has part
forward
function: FilterConcept
dependencies: 4
inputs: film
function: SelectAmong
dependencies: 5
inputs: duration
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e_1 <has_part> ?e . ?e_1 <pred:name> "X-Men" . ?e_2 <part_of> ?e_1 . ?e_2 <pred:name> "X-Men: The Last Stand" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: X-Men: First Class