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