Question: Who among Jane Eyre (the one whose director is Franco Zeffirelli) and Heaven's Gate has a greater cost ?
Choices:
The Fifth Element
The Hunchback of Notre Dame
A Prairie Home Companion
Jane Eyre
Curse of the Golden Flower
The Towering Inferno
Pleasantville
Talk to Her
Heaven's Gate
Rebecca
Program:
function: Find
inputs: Franco Zeffirelli
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Jane Eyre
function: And
dependencies: 1
2
function: Find
inputs: Heaven's Gate
function: SelectBetween
dependencies: 3
4
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jane Eyre" . ?e <director> ?e_1 . ?e_1 <pred:name> "Franco Zeffirelli" .   } UNION { ?e <pred:name> "Heaven's Gate" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Heaven's Gate