Question: Which one costs more, The Book of Eli or Cape Fear (which has Illeana Douglas in its cast)
Choices:
The Hunchback of Notre Dame
Training Day
Talk to Her
A Prairie Home Companion
Rebecca
The Fifth Element
The Book of Eli
Cape Fear
The Towering Inferno
Curse of the Golden Flower
Program:
function: Find
inputs: The Book of Eli
function: Find
inputs: Illeana Douglas
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Cape Fear
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Book of Eli" .  } UNION { ?e <pred:name> "Cape Fear" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Illeana Douglas" .   } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Book of Eli