Question: What is the relationship between Rock of Ages (the one whose publication date is 2012-06-14) or A Prophet?
Choices: Rebecca
The Hunchback of Notre Dame
Training Day
A Prophet
A Prairie Home Companion
Curse of the Golden Flower
Pleasantville
Talk to Her
The Fifth Element
The Towering Inferno
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rock of Ages" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2012-06-14"^^xsd:date . } UNION { ?e <pred:name> "A Prophet" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Rock of Ages
function: FilterDate
dependencies: 0
inputs: publication date
2012-06-14
=
function: Find
inputs: A Prophet
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
Answer: A Prophet