Question: Does The Lord of the Rings: The Fellowship of the Ring (that was nominated for an Academy Award for Best Makeup and Hairstyling) or J. Edgar have the lower cost?
Choices: Rebecca
The Towering Inferno
Training Day
J. Edgar
Talk to Her
Pleasantville
Curse of the Golden Flower
The Hunchback of Notre Dame
A Prairie Home Companion
The Fifth Element
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Lord of the Rings: The Fellowship of the Ring" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Makeup and Hairstyling" .   } UNION { ?e <pred:name> "J. Edgar" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Academy Award for Best Makeup and Hairstyling
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: The Lord of the Rings: The Fellowship of the Ring
function: And
dependencies: 1
2
function: Find
inputs: J. Edgar
function: SelectBetween
dependencies: 3
4
inputs: cost
less
Answer: J. Edgar