Question: Which one, Monte Carlo (the one whose production company is 20th Century Fox) or Charlie's Angels (the one whose composer is Edward Shearmur), has greater duration?
Choices: A Prairie Home Companion
Monte Carlo
Rebecca
The Hunchback of Notre Dame
The Fifth Element
Talk to Her
The Towering Inferno
Pleasantville
Charlie's Angels
Curse of the Golden Flower
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Monte Carlo" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "20th Century Fox" .   } UNION { ?e <pred:name> "Charlie's Angels" . ?e <composer> ?e_2 . ?e_2 <pred:name> "Edward Shearmur" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: 20th Century Fox
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Monte Carlo
function: And
dependencies: 1
2
function: Find
inputs: Edward Shearmur
function: Relate
dependencies: 4
inputs: composer
backward
function: Find
inputs: Charlie's Angels
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Monte Carlo