Question: Which project, between The Full Monty or the Roberto Orci-scripted Star Trek, has the smaller budget?
Choices:
The Towering Inferno
The Hunchback of Notre Dame
The Fifth Element
Rebecca
The Full Monty
Curse of the Golden Flower
A Prairie Home Companion
Star Trek
Talk to Her
Training Day
Program:
function: Find
inputs: Roberto Orci
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Star Trek
function: And
dependencies: 1
2
function: Find
inputs: The Full Monty
function: SelectBetween
dependencies: 3
4
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Star Trek" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Roberto Orci" .   } UNION { ?e <pred:name> "The Full Monty" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Full Monty