Question: Does the Peter Gabriel from the United Kingdom or Illinois, published on 2005-07-04, have the longer running time?
Choices:
Illinois
Friends
David Bowie
The Beatles
Peter Gabriel
Bedtime Stories
Led Zeppelin
Metallica
Neil Young
Shakira
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Peter Gabriel
function: And
dependencies: 1
2
function: Find
inputs: Illinois
function: FilterDate
dependencies: 4
inputs: publication date
2005-07-04
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Peter Gabriel" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United Kingdom" . } UNION { ?e <pred:name> "Illinois" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2005-07-04"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Illinois