Question: Does Doctor Zhivago (that was nominated for a Golden Globe Award for Best Original Score) or Cape Fear (that has Nick Nolte as a cast member) have the lower cost?
Choices:
Rebecca
Training Day
Curse of the Golden Flower
The Towering Inferno
A Prairie Home Companion
Doctor Zhivago
The Hunchback of Notre Dame
Pleasantville
Cape Fear
Talk to Her
Answer: Doctor Zhivago
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Doctor Zhivago" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Golden Globe Award for Best Original Score" .   } UNION { ?e <pred:name> "Cape Fear" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Nick Nolte" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Golden Globe Award for Best Original Score
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Doctor Zhivago
function: And
dependencies: 1
2
function: Find
inputs: Nick Nolte
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Cape Fear
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
less