Question: Which one has the longer running time, When in Rome (the one whose publication date is 2010-04-22) or The Specialist (the one whose title is The Specialist) ?
Choices: The Towering Inferno
Training Day
A Prairie Home Companion
The Specialist
The Fifth Element
The Hunchback of Notre Dame
Rebecca
Curse of the Golden Flower
When in Rome
Talk to Her
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "When in Rome" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2010-04-22"^^xsd:date . } UNION { ?e <pred:name> "The Specialist" . ?e <title> ?pv_2 . ?pv_2 <pred:value> "The Specialist" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: When in Rome
function: FilterDate
dependencies: 0
inputs: publication date
2010-04-22
=
function: Find
inputs: The Specialist
function: FilterStr
dependencies: 2
inputs: title
The Specialist
function: SelectBetween
dependencies: 1
3
inputs: duration
greater
Answer: The Specialist