Question: Which was shorter, Bedtime Stories (produced by Madonna) or the 3751 second Metallica?
Choices: Led Zeppelin
The Beatles
Friends
Metallica
David Bowie
Bedtime Stories
Peter Gabriel
Shakira
Neil Young
Illinois
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bedtime Stories" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Madonna" . } UNION { ?e <pred:name> "Metallica" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "second" . ?pv_1 <pred:value> "3751"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Madonna
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Bedtime Stories
function: And
dependencies: 1
2
function: Find
inputs: Metallica
function: FilterNum
dependencies: 4
inputs: duration
3751 second
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
Answer: Bedtime Stories