Question: Between 3:10 to Yuma, with Russell Crowe as a cast member, or The Texas Chainsaw Massacre, which is longer?
Choices:
Pleasantville
Training Day
3:10 to Yuma
Rebecca
The Towering Inferno
The Texas Chainsaw Massacre
Curse of the Golden Flower
The Fifth Element
A Prairie Home Companion
The Hunchback of Notre Dame
Program:
function: Find
inputs: Russell Crowe
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: 3:10 to Yuma
function: And
dependencies: 1
2
function: Find
inputs: The Texas Chainsaw Massacre
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "3:10 to Yuma" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Russell Crowe" .   } UNION { ?e <pred:name> "The Texas Chainsaw Massacre" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: 3:10 to Yuma