Question: Is the personal net worth lower for Bill Cosby or Denzel Washington?
Choices:
William Henry Harrison
Sylvester Stallone
David Byrne
Richard Gere
Rahul Dev Burman
Paul Simon
Denzel Washington
Max Fleischer
James E. Reilly
Simon Cowell
Program:
function: Find
inputs: Bill Cosby
function: Find
inputs: Denzel Washington
function: SelectBetween
dependencies: 0
1
inputs: net worth
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bill Cosby" .  } UNION { ?e <pred:name> "Denzel Washington" .  } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Denzel Washington