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