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