Question: Which has a longer run-time, The Hangover (featuring Heather Graham as a cast member) or Nine Lives (produced by Magnolia Pictures)?
Choices:
Talk to Her
Rebecca
The Towering Inferno
Curse of the Golden Flower
The Hunchback of Notre Dame
Training Day
Nine Lives
The Hangover
A Prairie Home Companion
Pleasantville
Program:
function: Find
inputs: Heather Graham
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Hangover
function: And
dependencies: 1
2
function: Find
inputs: Magnolia Pictures
function: Relate
dependencies: 4
inputs: production company
backward
function: Find
inputs: Nine Lives
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Hangover" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Heather Graham" .   } UNION { ?e <pred:name> "Nine Lives" . ?e <production_company> ?e_2 . ?e_2 <pred:name> "Magnolia Pictures" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Nine Lives