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