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