Question: Which movie is longer, Alice in Wonderland (the one that has Robbie Coltrane as a cast member) or Street Fighter II V?
Choices:
The Civil War
Battlestar Galactica
Street Fighter II V
George Washington
Alice in Wonderland
The Stand
Roots
Edge of Darkness
The Ten Commandments
The Pacific
Program:
function: Find
inputs: Robbie Coltrane
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Alice in Wonderland
function: And
dependencies: 1
2
function: Find
inputs: Street Fighter II V
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alice in Wonderland" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Robbie Coltrane" .   } UNION { ?e <pred:name> "Street Fighter II V" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Alice in Wonderland