Question: Which one, Africa (the one that origins from South Africa) or Ip Man (the one that has Donnie Yen as a cast member), has greater duration?
Choices: The Hunchback of Notre Dame
Pleasantville
A Prairie Home Companion
Training Day
Talk to Her
Ip Man
The Towering Inferno
Rebecca
The Fifth Element
Africa
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Africa" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "South Africa" .   } UNION { ?e <pred:name> "Ip Man" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Donnie Yen" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: South Africa
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Africa
function: And
dependencies: 1
2
function: Find
inputs: Donnie Yen
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Ip Man
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Ip Man