Question: Which one of these has the highest net worth, Vin Diesel or Jennifer Aniston ?
Choices:
Sylvester Stallone
Vin Diesel
William Henry Harrison
Richard Gere
Jennifer Aniston
Simon Cowell
Rahul Dev Burman
David Byrne
James E. Reilly
Max Fleischer
Program:
function: Find
inputs: Jennifer Aniston
function: Find
inputs: Vin Diesel
function: SelectBetween
dependencies: 0
1
inputs: net worth
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jennifer Aniston" .  } UNION { ?e <pred:name> "Vin Diesel" .  } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Jennifer Aniston