Question: Which one, Anastasia (the one whose genre is musical film) or Days of Heaven, has less duration?
Choices:
Magic Knight Rayearth
Days of Heaven
Ponyo on the Cliff by the Sea
My-HiME
Wonder Woman
Superman
Anastasia
Code Geass
Naruto Shippuden the Movie: Bonds
The Polar Express
Program:
function: Find
inputs: musical film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Anastasia
function: And
dependencies: 1
2
function: Find
inputs: Days of Heaven
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Anastasia" . ?e <genre> ?e_1 . ?e_1 <pred:name> "musical film" .   } UNION { ?e <pred:name> "Days of Heaven" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Anastasia