Question: Which movie is longer, The Gathering Storm (the one that has Albert Finney as a cast member) or Cosmopolis (the one whose publication date is 2012-07-05)?
Choices: Talk to Her
The Gathering Storm
A Prairie Home Companion
Cosmopolis
The Hunchback of Notre Dame
Training Day
The Towering Inferno
Rebecca
Pleasantville
Curse of the Golden Flower
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Gathering Storm" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Albert Finney" . } UNION { ?e <pred:name> "Cosmopolis" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2012-07-05"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Albert Finney
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Gathering Storm
function: And
dependencies: 1
2
function: Find
inputs: Cosmopolis
function: FilterDate
dependencies: 4
inputs: publication date
2012-07-05
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
Answer: Cosmopolis