Question: Is David Letterman or Diane Sawyer personally worth more than the other?
Choices:
David Letterman
Sylvester Stallone
David Byrne
Max Fleischer
Rahul Dev Burman
Simon Cowell
James E. Reilly
Paul Simon
Diane Sawyer
William Henry Harrison
Program:
function: Find
inputs: David Letterman
function: Find
inputs: Diane Sawyer
function: SelectBetween
dependencies: 0
1
inputs: net worth
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "David Letterman" .  } UNION { ?e <pred:name> "Diane Sawyer" .  } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: David Letterman