Question: Which is longer, The Town published on 1944-01-01 or Bolt released in Sweden?
Choices:
Magic Knight Rayearth
My-HiME
Bolt
A Christmas Carol
Ponyo on the Cliff by the Sea
Superman
Code Geass
Anastasia
The Town
The Polar Express
Answer: Bolt
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Town" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1944-01-01"^^xsd:date . } UNION { ?e <pred:name> "Bolt" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Sweden" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Town
function: FilterDate
dependencies: 0
inputs: publication date
1944-01-01
=
function: Find
inputs: Sweden
function: Relate
dependencies: 2
inputs: film release region
backward
function: Find
inputs: Bolt
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater