Question: Which movie cost more to make, The Last King of Scotland or The Devil Wears Prada (the one whose duration is 109 minute)?
Choices: Rebecca
The Towering Inferno
Curse of the Golden Flower
Pleasantville
The Hunchback of Notre Dame
A Prairie Home Companion
The Fifth Element
Talk to Her
The Devil Wears Prada
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Last King of Scotland" . } UNION { ?e <pred:name> "The Devil Wears Prada" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "109"^^xsd:double . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Last King of Scotland
function: Find
inputs: The Devil Wears Prada
function: FilterNum
dependencies: 1
inputs: duration
109 minute
=
function: SelectBetween
dependencies: 0
2
inputs: cost
greater
Answer: The Devil Wears Prada