Question: Which movie is longer, Ice Age (the one whose duration is 380 minute) or American Pie (the one whose duration is 786 minute)?
Choices:
The Fast and the Furious
The Mummy
American Pie
Ice Age
Star Wars
Carry On
Rugrats
The Smurfs
Dumb and Dumber
Final Destination
Answer: American Pie
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ice Age" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "380"^^xsd:double . } UNION { ?e <pred:name> "American Pie" . ?e <duration> ?pv_2 . ?pv_2 <pred:unit> "minute" . ?pv_2 <pred:value> "786"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Ice Age
function: FilterNum
dependencies: 0
inputs: duration
380 minute
=
function: Find
inputs: American Pie
function: FilterNum
dependencies: 2
inputs: duration
786 minute
=
function: SelectBetween
dependencies: 1
3
inputs: duration
greater