Question: Who has more net worth, David Letterman or Morgan Freeman?
Choices:
David Letterman
Paul Simon
Max Fleischer
Sylvester Stallone
Rahul Dev Burman
Morgan Freeman
Richard Gere
David Byrne
James E. Reilly
Simon Cowell
Program:
function: Find
inputs: David Letterman
function: Find
inputs: Morgan Freeman
function: SelectBetween
dependencies: 0
1
inputs: net worth
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "David Letterman" .  } UNION { ?e <pred:name> "Morgan Freeman" .  } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: David Letterman