Question: Which is longer: The Fugitive (produced by Merian C. Cooper) or Elizabeth (with Emily Mortimer in the cast)?
Choices: Training Day
The Fugitive
Rebecca
The Hunchback of Notre Dame
A Prairie Home Companion
Talk to Her
Pleasantville
The Towering Inferno
Curse of the Golden Flower
Elizabeth
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Fugitive" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Merian C. Cooper" .   } UNION { ?e <pred:name> "Elizabeth" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Emily Mortimer" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Merian C. Cooper
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: The Fugitive
function: And
dependencies: 1
2
function: Find
inputs: Emily Mortimer
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Elizabeth
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Elizabeth