Question: Which movie is longer, Constantine (the one whose production company is Village Roadshow Pictures) or Resident Evil: Extinction?
Choices: The Towering Inferno
Talk to Her
A Prairie Home Companion
The Fifth Element
Training Day
Constantine
The Hunchback of Notre Dame
Curse of the Golden Flower
Rebecca
Resident Evil: Extinction
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Constantine" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Village Roadshow Pictures" .   } UNION { ?e <pred:name> "Resident Evil: Extinction" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Village Roadshow Pictures
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Constantine
function: And
dependencies: 1
2
function: Find
inputs: Resident Evil: Extinction
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
Answer: Constantine