Question: Which one, Martin Lawrence or Mel Gibson (the one that is the producer of The Passion of the Christ), has greater net worth?
Choices: Paul Simon
David Byrne
William Henry Harrison
Simon Cowell
James E. Reilly
Mel Gibson
Martin Lawrence
Rahul Dev Burman
Richard Gere
Max Fleischer
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Martin Lawrence" .  } UNION { ?e <pred:name> "Mel Gibson" . ?e_1 <producer> ?e . ?e_1 <pred:name> "The Passion of the Christ" .   } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Martin Lawrence
function: Find
inputs: The Passion of the Christ
function: Relate
dependencies: 1
inputs: producer
forward
function: Find
inputs: Mel Gibson
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: net worth
greater
Answer: Mel Gibson