Question: Which movie is longer, RoboCop (the one that has Jennifer Ehle as a cast member) or Great Expectations (the one that is shot in Florida)?
Choices:
The Hunchback of Notre Dame
Training Day
Curse of the Golden Flower
The Towering Inferno
Talk to Her
The Fifth Element
RoboCop
Great Expectations
A Prairie Home Companion
Pleasantville
Program:
function: Find
inputs: Jennifer Ehle
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: RoboCop
function: And
dependencies: 1
2
function: Find
inputs: Florida
function: Relate
dependencies: 4
inputs: filming location
backward
function: Find
inputs: Great Expectations
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "RoboCop" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jennifer Ehle" .   } UNION { ?e <pred:name> "Great Expectations" . ?e <filming_location> ?e_2 . ?e_2 <pred:name> "Florida" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: RoboCop