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