Question: Which has a greater duration, Metallica (whose official website is https://www.metallica.com/releases/albums/release-4213.html) or The Beatles (whose publication date is 1968-11-22)?
Choices: The Beatles
Led Zeppelin
Peter Gabriel
Illinois
Metallica
David Bowie
Neil Young
Bedtime Stories
Friends
Shakira
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Metallica" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "https://www.metallica.com/releases/albums/release-4213.html" . } UNION { ?e <pred:name> "The Beatles" . ?e <publication_date> ?pv_2 . ?pv_2 <pred:date> "1968-11-22"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Metallica
function: FilterStr
dependencies: 0
inputs: official website
https://www.metallica.com/releases/albums/release-4213.html
function: Find
inputs: The Beatles
function: FilterDate
dependencies: 2
inputs: publication date
1968-11-22
=
function: SelectBetween
dependencies: 1
3
inputs: duration
greater
Answer: The Beatles