Question: Which movie is shorter, Dynasty (the one whose genre is disco) or Tommy (the one that has the record label Decca)?
Choices:
Hollywood
Roots
American Beauty
Luis Miguel
Flight of the Conchords
The B-52's
Bon Jovi
Dynasty
Toni Braxton
Kraftwerk
Answer: Dynasty
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dynasty" . ?e <genre> ?e_1 . ?e_1 <pred:name> "disco" .   } UNION { ?e <pred:name> "Tommy" . ?e <record_label> ?e_2 . ?e_2 <pred:name> "Decca" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: disco
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Dynasty
function: And
dependencies: 1
2
function: Find
inputs: Decca
function: Relate
dependencies: 4
inputs: record label
backward
function: Find
inputs: Tommy
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less