Question: Which movie is longer, Frankenstein (the one whose duration is 13 minute) or Spy Kids (the one whose publication date is 2001-10-04)?
Choices:
Rebecca
Spy Kids
The Fifth Element
Talk to Her
Frankenstein
Curse of the Golden Flower
Training Day
Pleasantville
The Hunchback of Notre Dame
A Prairie Home Companion
Program:
function: Find
inputs: Frankenstein
function: FilterNum
dependencies: 0
inputs: duration
13 minute
=
function: Find
inputs: Spy Kids
function: FilterDate
dependencies: 2
inputs: publication date
2001-10-04
=
function: SelectBetween
dependencies: 1
3
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Frankenstein" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "13"^^xsd:double . } UNION { ?e <pred:name> "Spy Kids" . ?e <publication_date> ?pv_2 . ?pv_2 <pred:date> "2001-10-04"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Spy Kids