Question: Which is shorter, Bedtime Stories published on 1994-10-25 or David Bowie whose genre is folk rock?
Choices:
Peter Gabriel
Led Zeppelin
Bedtime Stories
The Beatles
Friends
Metallica
Neil Young
Illinois
David Bowie
Shakira
Answer: David Bowie
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bedtime Stories" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1994-10-25"^^xsd:date . } UNION { ?e <pred:name> "David Bowie" . ?e <genre> ?e_1 . ?e_1 <pred:name> "folk rock" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Bedtime Stories
function: FilterDate
dependencies: 0
inputs: publication date
1994-10-25
=
function: Find
inputs: folk rock
function: Relate
dependencies: 2
inputs: genre
backward
function: Find
inputs: David Bowie
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less