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