Question: Which is longer, Ice Age published in 2002 or Final Destination whose duration is 363 minutes?
Choices:
Carry On
The Smurfs
The Mummy
Ice Age
Die Hard
The Fast and the Furious
Rugrats
Final Destination
Batman
Star Wars
Program:
function: Find
inputs: Ice Age
function: FilterYear
dependencies: 0
inputs: publication date
2002
=
function: Find
inputs: Final Destination
function: FilterNum
dependencies: 2
inputs: duration
363 minute
=
function: SelectBetween
dependencies: 1
3
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ice Age" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:year> 2002 . } UNION { ?e <pred:name> "Final Destination" . ?e <duration> ?pv_2 . ?pv_2 <pred:unit> "minute" . ?pv_2 <pred:value> "363"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ice Age