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