Question: Is the running time shorter for drama film Slaughterhouse-Five or for Anastasia, distributed in the UK?
Choices:
Ponyo on the Cliff by the Sea
Anastasia
Wonder Woman
My-HiME
The Polar Express
Superman
A Christmas Carol
Code Geass
Naruto Shippuden the Movie: Bonds
Magic Knight Rayearth
Program:
function: Find
inputs: drama film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Slaughterhouse-Five
function: And
dependencies: 1
2
function: Find
inputs: United Kingdom
function: Relate
dependencies: 4
inputs: film distribute region
backward
function: Find
inputs: Anastasia
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Slaughterhouse-Five" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" .   } UNION { ?e <pred:name> "Anastasia" . ?e <film_distribute_region> ?e_2 . ?e_2 <pred:name> "United Kingdom" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Anastasia