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