Question: Which has a greater duration, Laura (which has a publication date of 1944-01-01) or The Graduate?
Choices:
The Towering Inferno
Laura
A Prairie Home Companion
Pleasantville
The Graduate
Training Day
Rebecca
Talk to Her
The Fifth Element
Curse of the Golden Flower
Answer: The Graduate
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Laura" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1944-01-01"^^xsd:date . } UNION { ?e <pred:name> "The Graduate" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Laura
function: FilterDate
dependencies: 0
inputs: publication date
1944-01-01
=
function: Find
inputs: The Graduate
function: SelectBetween
dependencies: 1
2
inputs: duration
greater