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