Question: Does The Count of Monte Cristo (the one whose duration is 180 minute) or The Savages has greater duration ?
Choices:
Rebecca
The Hunchback of Notre Dame
The Fifth Element
Curse of the Golden Flower
A Prairie Home Companion
Pleasantville
The Count of Monte Cristo
The Towering Inferno
The Savages
Training Day
Program:
function: Find
inputs: The Count of Monte Cristo
function: FilterNum
dependencies: 0
inputs: duration
180 minute
=
function: Find
inputs: The Savages
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Count of Monte Cristo" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "180"^^xsd:double . } UNION { ?e <pred:name> "The Savages" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Count of Monte Cristo