Question: Which is longer, Tommy that has the record label Polydor Records or Quadrophenia that was published on 1973-10-19?
Choices: Hollywood
Quadrophenia
Tommy
Dynasty
Luis Miguel
Bon Jovi
Roots
Flight of the Conchords
The B-52's
Kraftwerk
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tommy" . ?e <record_label> ?e_1 . ?e_1 <pred:name> "Polydor Records" . } UNION { ?e <pred:name> "Quadrophenia" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1973-10-19"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Polydor Records
function: Relate
dependencies: 0
inputs: record label
backward
function: Find
inputs: Tommy
function: And
dependencies: 1
2
function: Find
inputs: Quadrophenia
function: FilterDate
dependencies: 4
inputs: publication date
1973-10-19
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
Answer: Quadrophenia