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