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