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