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