Question: Does Ali, with Mario Van Peebles as a cast member, or A Simple Plan have a longer run-time?
Choices:
Ali
A Simple Plan
The Hunchback of Notre Dame
The Towering Inferno
Training Day
The Fifth Element
Curse of the Golden Flower
A Prairie Home Companion
Pleasantville
Rebecca
Program:
function: Find
inputs: Mario Van Peebles
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Ali
function: And
dependencies: 1
2
function: Find
inputs: A Simple Plan
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ali" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Mario Van Peebles" .   } UNION { ?e <pred:name> "A Simple Plan" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ali