Question: Which movie is longer, Howard the Duck (the one whose producer is Ian Bryce) or Into the West (the one that has Ellen Barkin as a cast member)?
Choices:
Pleasantville
The Hunchback of Notre Dame
Talk to Her
The Fifth Element
Into the West
Howard the Duck
Rebecca
The Towering Inferno
Training Day
Curse of the Golden Flower
Program:
function: Find
inputs: Ian Bryce
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Howard the Duck
function: And
dependencies: 1
2
function: Find
inputs: Ellen Barkin
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Into the West
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Howard the Duck" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Ian Bryce" .   } UNION { ?e <pred:name> "Into the West" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Ellen Barkin" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Howard the Duck