Question: Which is longer, Rocco and His Brothers or The Gift, with Rebecca Hall as a cast member?
Choices:
Curse of the Golden Flower
Rebecca
Training Day
Talk to Her
Rocco and His Brothers
Pleasantville
The Fifth Element
A Prairie Home Companion
The Gift
The Towering Inferno
Program:
function: Find
inputs: Rocco and His Brothers
function: Find
inputs: Rebecca Hall
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Gift
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rocco and His Brothers" .  } UNION { ?e <pred:name> "The Gift" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Rebecca Hall" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Rocco and His Brothers