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