Question: Which is longer, Fame produced by Tom Rosenberg or The Other Boleyn Girl?
Choices:
Fame
Pleasantville
The Hunchback of Notre Dame
The Towering Inferno
Curse of the Golden Flower
Talk to Her
Rebecca
A Prairie Home Companion
The Other Boleyn Girl
Training Day
Program:
function: Find
inputs: Tom Rosenberg
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Fame
function: And
dependencies: 1
2
function: Find
inputs: The Other Boleyn Girl
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fame" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Tom Rosenberg" .   } UNION { ?e <pred:name> "The Other Boleyn Girl" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Other Boleyn Girl