Question: Which movie is longer, The Iron Lady or The Portrait of a Lady (the one whose genre is drama film)?
Choices: The Iron Lady
A Prairie Home Companion
Talk to Her
The Fifth Element
The Hunchback of Notre Dame
The Portrait of a Lady
Training Day
Curse of the Golden Flower
The Towering Inferno
Pleasantville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Iron Lady" .  } UNION { ?e <pred:name> "The Portrait of a Lady" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Iron Lady
function: Find
inputs: drama film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: The Portrait of a Lady
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
Answer: The Portrait of a Lady