Question: Which movie is shorter, Legend (the one whose duration is 131 minute) or The Fugitive (the one whose director is D. W. Griffith)?
Choices: David Copperfield
Friends
Legend
The Fugitive
The Animatrix
Neighbours
The Cure
The Town
Eve
Frankenstein
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Legend" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "131"^^xsd:double . } UNION { ?e <pred:name> "The Fugitive" . ?e <director> ?e_1 . ?e_1 <pred:name> "D. W. Griffith" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Legend
function: FilterNum
dependencies: 0
inputs: duration
131 minute
=
function: Find
inputs: D. W. Griffith
function: Relate
dependencies: 2
inputs: director
backward
function: Find
inputs: The Fugitive
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
Answer: The Fugitive