Question: Which movie is shorter, Girls (the one that origins from Norway) or Honolulu (the one whose genre is musical film)?
Choices:
Training Day
The Hunchback of Notre Dame
Curse of the Golden Flower
Girls
Talk to Her
The Fifth Element
A Prairie Home Companion
Honolulu
Rebecca
The Towering Inferno
Program:
function: Find
inputs: Norway
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Girls
function: And
dependencies: 1
2
function: Find
inputs: musical film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Honolulu
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Girls" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Norway" .   } UNION { ?e <pred:name> "Honolulu" . ?e <genre> ?e_2 . ?e_2 <pred:name> "musical film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Girls