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