Question: Which has a greater duration, The Piano or Oscar (which has Marisa Tomei as a cast member)?
Choices: The Fifth Element
Oscar
Rebecca
Curse of the Golden Flower
The Hunchback of Notre Dame
A Prairie Home Companion
The Piano
Talk to Her
Training Day
The Towering Inferno
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Piano" .  } UNION { ?e <pred:name> "Oscar" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Marisa Tomei" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Piano
function: Find
inputs: Marisa Tomei
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Oscar
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
Answer: The Piano