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