Question: Which movie is longer, American Beauty (the one whose producer is Grateful Dead) or Quadrophenia (the one whose duration is 4896 second)?
Choices:
Bon Jovi
Luis Miguel
Dynasty
The B-52's
Kraftwerk
American Beauty
Quadrophenia
Hollywood
Roots
Flight of the Conchords
Program:
function: Find
inputs: Grateful Dead
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: American Beauty
function: And
dependencies: 1
2
function: Find
inputs: Quadrophenia
function: FilterNum
dependencies: 4
inputs: duration
4896 second
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "American Beauty" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Grateful Dead" . } UNION { ?e <pred:name> "Quadrophenia" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "second" . ?pv_1 <pred:value> "4896"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Quadrophenia