Question: Is the run-time longer on Alexander the Great, originating in Italy, or on The Cat in the Hat, released on 2003-11-05?
Choices:
Alexander the Great
The Hunchback of Notre Dame
Talk to Her
The Towering Inferno
Training Day
Rebecca
Curse of the Golden Flower
A Prairie Home Companion
The Fifth Element
The Cat in the Hat
Program:
function: Find
inputs: Italy
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Alexander the Great
function: And
dependencies: 1
2
function: Find
inputs: The Cat in the Hat
function: FilterDate
dependencies: 4
inputs: publication date
2003-11-05
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alexander the Great" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Italy" . } UNION { ?e <pred:name> "The Cat in the Hat" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2003-11-05"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Alexander the Great