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