Question: Who has a greater net worth, Martin Lawrence or Kanye West?
Choices:
Max Fleischer
David Byrne
Martin Lawrence
William Henry Harrison
James E. Reilly
Paul Simon
Richard Gere
Simon Cowell
Sylvester Stallone
Kanye West
Program:
function: Find
inputs: Martin Lawrence
function: Find
inputs: Kanye West
function: SelectBetween
dependencies: 0
1
inputs: net worth
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Martin Lawrence" .  } UNION { ?e <pred:name> "Kanye West" .  } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kanye West