Question: Which movie is shorter, Final Destination (the one whose producer is Toby Emmerich) or Ice Age (the one whose duration is 380 minute)?
Choices: The Smurfs
Batman
Star Wars
Die Hard
Rugrats
Carry On
Final Destination
The Fast and the Furious
The Mummy
Dumb and Dumber
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Final Destination" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Toby Emmerich" . } UNION { ?e <pred:name> "Ice Age" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "380"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Toby Emmerich
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Final Destination
function: And
dependencies: 1
2
function: Find
inputs: Ice Age
function: FilterNum
dependencies: 4
inputs: duration
380 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
Answer: Final Destination