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