Question: Does Jennifer Aniston or Jennifer Lawrence have greater net worth?
Choices:
Richard Gere
Simon Cowell
David Byrne
Sylvester Stallone
Max Fleischer
Jennifer Aniston
Jennifer Lawrence
Paul Simon
William Henry Harrison
Rahul Dev Burman
Program:
function: Find
inputs: Jennifer Aniston
function: Find
inputs: Jennifer Lawrence
function: SelectBetween
dependencies: 0
1
inputs: net worth
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jennifer Aniston" .  } UNION { ?e <pred:name> "Jennifer Lawrence" .  } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Jennifer Aniston