Question: Which has a lesser duration, Frankenstein (whose producer is Thomas Alva Edison) or Batman (whose CANTIC-ID is a12009362)?
Choices:
The Fugitive
Friends
The Animatrix
Neighbours
Eve
The Town
Robin Hood
Frankenstein
The Cure
Batman
Program:
function: Find
inputs: Thomas Alva Edison
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Frankenstein
function: And
dependencies: 1
2
function: Find
inputs: Batman
function: FilterStr
dependencies: 4
inputs: CANTIC-ID
a12009362
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Frankenstein" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Thomas Alva Edison" . } UNION { ?e <pred:name> "Batman" . ?e <CANTIC-ID> ?pv_1 . ?pv_1 <pred:value> "a12009362" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Frankenstein