Question: Which movie is shorter, Bad Teacher (the one whose release region is Malaysia) or The Merry Widow (the one whose title is Die lustige Witwe)?
Choices: The Hunchback of Notre Dame
Talk to Her
Bad Teacher
The Towering Inferno
The Fifth Element
The Merry Widow
A Prairie Home Companion
Training Day
Rebecca
Curse of the Golden Flower
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bad Teacher" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Malaysia" . } UNION { ?e <pred:name> "The Merry Widow" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Die lustige Witwe" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Malaysia
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Bad Teacher
function: And
dependencies: 1
2
function: Find
inputs: The Merry Widow
function: FilterStr
dependencies: 4
inputs: title
Die lustige Witwe
function: SelectBetween
dependencies: 3
5
inputs: duration
less
Answer: Bad Teacher