Question: Does Denzel Washington or David Letterman have the higher net worth?
Choices:
William Henry Harrison
Simon Cowell
Denzel Washington
David Letterman
Sylvester Stallone
Rahul Dev Burman
Richard Gere
Max Fleischer
James E. Reilly
David Byrne
Program:
function: Find
inputs: Denzel Washington
function: Find
inputs: David Letterman
function: SelectBetween
dependencies: 0
1
inputs: net worth
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Denzel Washington" .  } UNION { ?e <pred:name> "David Letterman" .  } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: David Letterman