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