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