Question: Which movie is longer, The Fugitive (the one whose distributor is RKO Pictures) or The Count of Monte Cristo (the one whose exploitation visa number is 24039)?
Choices: The Fugitive
The Hunchback of Notre Dame
Pleasantville
Training Day
Talk to Her
The Fifth Element
A Prairie Home Companion
Rebecca
Curse of the Golden Flower
The Count of Monte Cristo
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Fugitive" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "RKO Pictures" . } UNION { ?e <pred:name> "The Count of Monte Cristo" . ?e <exploitation_visa_number> ?pv_1 . ?pv_1 <pred:value> "24039" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: RKO Pictures
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: The Fugitive
function: And
dependencies: 1
2
function: Find
inputs: The Count of Monte Cristo
function: FilterStr
dependencies: 4
inputs: exploitation visa number
24039
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
Answer: The Count of Monte Cristo