Question: Which is longer, August published on 1996-01-01 or Limitless released in Bulgaria?
Choices:
Limitless
The Fifth Element
Training Day
The Hunchback of Notre Dame
A Prairie Home Companion
Talk to Her
The Towering Inferno
August
Curse of the Golden Flower
Rebecca
Answer: Limitless
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "August" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1996-01-01"^^xsd:date . } UNION { ?e <pred:name> "Limitless" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Bulgaria" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: August
function: FilterDate
dependencies: 0
inputs: publication date
1996-01-01
=
function: Find
inputs: Bulgaria
function: Relate
dependencies: 2
inputs: film release region
backward
function: Find
inputs: Limitless
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater