Question: Which movie is longer, Juno (the one whose publication date is 2008-03-20) or Star Wars Episode IV: A New Hope (the one whose release region is Portugal)?
Choices:
The Hunchback of Notre Dame
The Towering Inferno
Juno
The Fifth Element
Curse of the Golden Flower
A Prairie Home Companion
Talk to Her
Star Wars Episode IV: A New Hope
Training Day
Pleasantville
Program:
function: Find
inputs: Juno
function: FilterDate
dependencies: 0
inputs: publication date
2008-03-20
=
function: Find
inputs: Portugal
function: Relate
dependencies: 2
inputs: film release region
backward
function: Find
inputs: Star Wars Episode IV: A New Hope
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Juno" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2008-03-20"^^xsd:date . } UNION { ?e <pred:name> "Star Wars Episode IV: A New Hope" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Portugal" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Star Wars Episode IV: A New Hope