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