Question: Tell me the one with the longest duration within the film that is part of Xmen, the one featuring X2
Choices:
Pleasantville
X-Men: The Last Stand
Training Day
X2
Talk to Her
The Fifth Element
A Prairie Home Companion
X-Men: First Class
X-Men Origins: Wolverine
Rebecca
Program:
function: Find
inputs: X2
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> "X2" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: X-Men: First Class