Question: Which movie is longer The Dictator (the one that has Fred Armisen as a cast member) or Speed (the one that has Urmila Matondkar as a cast member)?
Choices:
The Towering Inferno
Training Day
Curse of the Golden Flower
Rebecca
Speed
The Dictator
Pleasantville
The Fifth Element
Talk to Her
A Prairie Home Companion
Program:
function: Find
inputs: Fred Armisen
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Dictator
function: And
dependencies: 1
2
function: Find
inputs: Urmila Matondkar
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Speed
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Dictator" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Fred Armisen" .   } UNION { ?e <pred:name> "Speed" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Urmila Matondkar" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Speed