Question: Which is longer: The Beatles (Museum of Modern Art collection) or Metallica (at 3751 seconds)?
Choices: Led Zeppelin
Peter Gabriel
Friends
Illinois
David Bowie
Neil Young
Metallica
Shakira
The Beatles
Bedtime Stories
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Beatles" . ?e <collection> ?e_1 . ?e_1 <pred:name> "Museum of Modern Art" . } 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 DESC(?v) LIMIT 1
Program:
function: Find
inputs: Museum of Modern Art
function: Relate
dependencies: 0
inputs: collection
backward
function: Find
inputs: The Beatles
function: And
dependencies: 1
2
function: Find
inputs: Metallica
function: FilterNum
dependencies: 4
inputs: duration
3751 second
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
Answer: The Beatles