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