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