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