Question: What person has a greater worth, Morgan Freeman or the director Mel Gibson?
Choices:
Sylvester Stallone
Simon Cowell
Paul Simon
Rahul Dev Burman
Morgan Freeman
Mel Gibson
William Henry Harrison
Richard Gere
David Byrne
Max Fleischer
Answer: Mel Gibson
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Morgan Freeman" .  } UNION { ?e <pred:name> "Mel Gibson" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "film director" .   } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Morgan Freeman
function: Find
inputs: film director
function: Relate
dependencies: 1
inputs: occupation
backward
function: Find
inputs: Mel Gibson
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: net worth
greater