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