Question: Which movie is longer, The Time Machine (the one that has Jeremy Irons as a cast member) or Dead Poets Society?
Choices:
The Towering Inferno
A Prairie Home Companion
Rebecca
Training Day
The Time Machine
The Hunchback of Notre Dame
Dead Poets Society
Curse of the Golden Flower
Pleasantville
The Fifth Element
Program:
function: Find
inputs: Jeremy Irons
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Time Machine
function: And
dependencies: 1
2
function: Find
inputs: Dead Poets Society
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Time Machine" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jeremy Irons" .   } UNION { ?e <pred:name> "Dead Poets Society" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Dead Poets Society