Question: Which movie is shorter, Resident Evil: Apocalypse or Pittsburgh (the one that has Marlene Dietrich as a cast member)?
Choices:
Talk to Her
Curse of the Golden Flower
The Towering Inferno
The Fifth Element
Pittsburgh
Pleasantville
The Hunchback of Notre Dame
A Prairie Home Companion
Resident Evil: Apocalypse
Rebecca
Program:
function: Find
inputs: Resident Evil: Apocalypse
function: Find
inputs: Marlene Dietrich
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Pittsburgh
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Resident Evil: Apocalypse" .  } UNION { ?e <pred:name> "Pittsburgh" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Marlene Dietrich" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Pittsburgh