Question: Which movie is longer, Taxi (the one whose publication date is 2005-01-27) or The Count of Monte Cristo (the one whose duration is 183 minute)?
Choices:
The Hunchback of Notre Dame
The Towering Inferno
The Fifth Element
A Prairie Home Companion
Curse of the Golden Flower
Talk to Her
Pleasantville
Rebecca
The Count of Monte Cristo
Training Day
Answer: The Count of Monte Cristo
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Taxi" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2005-01-27"^^xsd:date . } UNION { ?e <pred:name> "The Count of Monte Cristo" . ?e <duration> ?pv_2 . ?pv_2 <pred:unit> "minute" . ?pv_2 <pred:value> "183"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Taxi
function: FilterDate
dependencies: 0
inputs: publication date
2005-01-27
=
function: Find
inputs: The Count of Monte Cristo
function: FilterNum
dependencies: 2
inputs: duration
183 minute
=
function: SelectBetween
dependencies: 1
3
inputs: duration
greater