Question: Which is longer, The Rules of Attraction or The Three Musketeers with Angela Lansbury?
Choices:
The Rules of Attraction
The Towering Inferno
The Fifth Element
A Prairie Home Companion
The Three Musketeers
Rebecca
Talk to Her
The Hunchback of Notre Dame
Curse of the Golden Flower
Pleasantville
Program:
function: Find
inputs: The Rules of Attraction
function: Find
inputs: Angela Lansbury
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Three Musketeers
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Rules of Attraction" .  } UNION { ?e <pred:name> "The Three Musketeers" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Angela Lansbury" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Three Musketeers