Question: Which one is longer, Wreck-It Ralph or The Host (the one whose publication date is 2013-03-28) ?
Choices:
A Prairie Home Companion
Training Day
The Towering Inferno
Wreck-It Ralph
Talk to Her
The Hunchback of Notre Dame
Pleasantville
The Fifth Element
The Host
Rebecca
Answer: The Host
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wreck-It Ralph" . } UNION { ?e <pred:name> "The Host" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2013-03-28"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Wreck-It Ralph
function: Find
inputs: The Host
function: FilterDate
dependencies: 1
inputs: publication date
2013-03-28
=
function: SelectBetween
dependencies: 0
2
inputs: duration
greater