Question: Which is shorter, American Beauty performed by the Grateful Dead or Brian Wilson whose duration is 2240 seconds?
Choices:
Bon Jovi
Dynasty
American Beauty
Toni Braxton
Brian Wilson
The B-52's
Hollywood
Flight of the Conchords
Kraftwerk
Luis Miguel
Answer: Brian Wilson
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "American Beauty" . ?e <performer> ?e_1 . ?e_1 <pred:name> "Grateful Dead" . } UNION { ?e <pred:name> "Brian Wilson" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "second" . ?pv_1 <pred:value> "2240"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Grateful Dead
function: Relate
dependencies: 0
inputs: performer
backward
function: Find
inputs: American Beauty
function: And
dependencies: 1
2
function: Find
inputs: Brian Wilson
function: FilterNum
dependencies: 4
inputs: duration
2240 second
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less