Question: Which one has less running time, The Apartment (the one filmed in Madrid) or The Three Musketeers (the one produced by William Hanna)?
Choices:
Ponyo on the Cliff by the Sea
The Three Musketeers
Superman
A Christmas Carol
Code Geass
My-HiME
The Apartment
Wonder Woman
Magic Knight Rayearth
Anastasia
Program:
function: Find
inputs: Madrid
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: The Apartment
function: And
dependencies: 1
2
function: Find
inputs: William Hanna
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: The Three Musketeers
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Apartment" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Madrid" .   } UNION { ?e <pred:name> "The Three Musketeers" . ?e <producer> ?e_2 . ?e_2 <pred:name> "William Hanna" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Three Musketeers