Question: Which movie is longer, The Reader (the one whose duration is 98 minute) or Loving (the one that has Roy Scheider as a cast member)?
Choices:
Training Day
The Fifth Element
The Reader
The Hunchback of Notre Dame
Loving
Curse of the Golden Flower
A Prairie Home Companion
Talk to Her
The Towering Inferno
Rebecca
Answer: The Reader
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Reader" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "98"^^xsd:double . } UNION { ?e <pred:name> "Loving" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Roy Scheider" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Reader
function: FilterNum
dependencies: 0
inputs: duration
98 minute
=
function: Find
inputs: Roy Scheider
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Loving
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater