Question: Which movie is shorter, The Perks of Being a Wallflower (the one whose release region is Aruba) or Final Destination (the one whose publication date is 2000-01-01)?
Choices:
Training Day
Final Destination
The Hunchback of Notre Dame
Curse of the Golden Flower
Rebecca
A Prairie Home Companion
The Fifth Element
Talk to Her
Pleasantville
The Perks of Being a Wallflower
Answer: Final Destination
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Perks of Being a Wallflower" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Aruba" . } UNION { ?e <pred:name> "Final Destination" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2000-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Aruba
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: The Perks of Being a Wallflower
function: And
dependencies: 1
2
function: Find
inputs: Final Destination
function: FilterDate
dependencies: 4
inputs: publication date
2000-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less