Question: Which movie is longer, Cosmopolis (the one that origins from Canada) or Days of Thunder (the one whose producer is Jerry Bruckheimer)?
Choices:
The Hunchback of Notre Dame
Cosmopolis
Rebecca
Curse of the Golden Flower
The Towering Inferno
Days of Thunder
The Fifth Element
Pleasantville
Talk to Her
A Prairie Home Companion
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Cosmopolis
function: And
dependencies: 1
2
function: Find
inputs: Jerry Bruckheimer
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: Days of Thunder
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cosmopolis" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Canada" .   } UNION { ?e <pred:name> "Days of Thunder" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Jerry Bruckheimer" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Cosmopolis