Question: Which movie is longer, Invincible (the one whose publication date is 2007-05-31) or The Santa Clause 2?
Choices:
Holes
The Flintstones
Alvin and the Chipmunks: Chipwrecked
National Treasure: Book of Secrets
G-Force
Invincible
The Santa Clause 2
The Flintstones in Viva Rock Vegas
Old Dogs
The Muppets
Answer: The Santa Clause 2
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Invincible" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2007-05-31"^^xsd:date . } UNION { ?e <pred:name> "The Santa Clause 2" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Invincible
function: FilterDate
dependencies: 0
inputs: publication date
2007-05-31
=
function: Find
inputs: The Santa Clause 2
function: SelectBetween
dependencies: 1
2
inputs: duration
greater