Question: Which movie is shorter, Savages (the one whose release region is Taiwan) or Bobby (the one whose genre is romance film)?
Choices:
Training Day
Savages
Curse of the Golden Flower
A Prairie Home Companion
Pleasantville
The Fifth Element
The Hunchback of Notre Dame
Bobby
Talk to Her
Rebecca
Program:
function: Find
inputs: Taiwan
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Savages
function: And
dependencies: 1
2
function: Find
inputs: romance film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Bobby
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Savages" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Taiwan" .   } UNION { ?e <pred:name> "Bobby" . ?e <genre> ?e_2 . ?e_2 <pred:name> "romance film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Savages