Question: Which movie is longer, Ray (the one whose director is Taylor Hackford) or Going My Way (the one whose genre is drama film)?
Choices: The Towering Inferno
Rebecca
Pleasantville
The Fifth Element
Training Day
Ray
A Prairie Home Companion
Talk to Her
Curse of the Golden Flower
Going My Way
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ray" . ?e <director> ?e_1 . ?e_1 <pred:name> "Taylor Hackford" .   } UNION { ?e <pred:name> "Going My Way" . ?e <genre> ?e_2 . ?e_2 <pred:name> "drama film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Taylor Hackford
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Ray
function: And
dependencies: 1
2
function: Find
inputs: drama film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Going My Way
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Ray