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