Question: Which movie is longer, Star Wars: Episode III – Revenge of the Sith or Bones (the one whose composer is Dr. Dre)?
Choices: The Fifth Element
A Prairie Home Companion
Talk to Her
Pleasantville
Curse of the Golden Flower
Training Day
Bones
The Hunchback of Notre Dame
Rebecca
Star Wars: Episode III – Revenge of the Sith
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Star Wars: Episode III – Revenge of the Sith" .  } UNION { ?e <pred:name> "Bones" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Dr. Dre" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Star Wars: Episode III – Revenge of the Sith
function: Find
inputs: Dr. Dre
function: Relate
dependencies: 1
inputs: composer
backward
function: Find
inputs: Bones
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
Answer: Star Wars: Episode III – Revenge of the Sith