Question: Which one of the films that are part of X-Men (the one whose director is Brett Ratner) has the smallest running time?
Choices:
X-Men
Talk to Her
Pleasantville
X-Men: First Class
X2
X-Men: The Last Stand
A Prairie Home Companion
Rebecca
The Fifth Element
X-Men Origins: Wolverine
Program:
function: Find
inputs: Brett Ratner
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: X-Men
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: part of the series
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_the_series> ?e_1 . ?e_1 <pred:name> "X-Men" . ?e_1 <director> ?e_2 . ?e_2 <pred:name> "Brett Ratner" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: X-Men