Question: Were production expenses cheaper for Thunderball, filmed in Florida, or Thank You for Smoking?
Choices:
Thunderball
The Towering Inferno
Rebecca
The Fifth Element
The Hunchback of Notre Dame
Pleasantville
Curse of the Golden Flower
Training Day
A Prairie Home Companion
Thank You for Smoking
Program:
function: Find
inputs: Florida
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Thunderball
function: And
dependencies: 1
2
function: Find
inputs: Thank You for Smoking
function: SelectBetween
dependencies: 3
4
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Thunderball" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Florida" .   } UNION { ?e <pred:name> "Thank You for Smoking" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Thunderball