Question: Which one is longer, Paddington (the one whose producer is Bob Weinstein) or Wuthering Heights (the one whose release region is Italy) ?
Choices:
Curse of the Golden Flower
The Fifth Element
Training Day
A Prairie Home Companion
Wuthering Heights
Paddington
Rebecca
Pleasantville
Talk to Her
The Hunchback of Notre Dame
Program:
function: Find
inputs: Bob Weinstein
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Paddington
function: And
dependencies: 1
2
function: Find
inputs: Italy
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: Wuthering Heights
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Paddington" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Bob Weinstein" .   } UNION { ?e <pred:name> "Wuthering Heights" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "Italy" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Wuthering Heights