Question: Which one has a higher net worth, Morgan Freeman or Ryan Seacrest ?
Choices:
Sylvester Stallone
Max Fleischer
James E. Reilly
Morgan Freeman
Ryan Seacrest
Simon Cowell
Paul Simon
David Byrne
William Henry Harrison
Rahul Dev Burman
Program:
function: Find
inputs: Morgan Freeman
function: Find
inputs: Ryan Seacrest
function: SelectBetween
dependencies: 0
1
inputs: net worth
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Morgan Freeman" .  } UNION { ?e <pred:name> "Ryan Seacrest" .  } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ryan Seacrest