Question: Which is longer, April that is shot in Bari or Appleseed Ex Machina?
Choices:
Appleseed Ex Machina
Curse of the Golden Flower
Pleasantville
Talk to Her
A Prairie Home Companion
Training Day
The Towering Inferno
Rebecca
April
The Fifth Element
Program:
function: Find
inputs: Bari
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: April
function: And
dependencies: 1
2
function: Find
inputs: Appleseed Ex Machina
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "April" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Bari" .   } UNION { ?e <pred:name> "Appleseed Ex Machina" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Appleseed Ex Machina