Question: Which movie is shorter, The Golden Compass (the one that is shot in Budapest) or The Three Musketeers (the one whose cost is 12000000 United States dollar)?
Choices: A Prairie Home Companion
The Towering Inferno
The Hunchback of Notre Dame
Training Day
Pleasantville
The Three Musketeers
Curse of the Golden Flower
Rebecca
Talk to Her
The Golden Compass
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Golden Compass" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Budapest" . } UNION { ?e <pred:name> "The Three Musketeers" . ?e <cost> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "12000000"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Budapest
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: The Golden Compass
function: And
dependencies: 1
2
function: Find
inputs: The Three Musketeers
function: FilterNum
dependencies: 4
inputs: cost
12000000 United States dollar
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
Answer: The Golden Compass