Question: Who has a smaller net worth, Kanye West or Jennifer Lawrence?
Choices:
Kanye West
David Byrne
Jennifer Lawrence
James E. Reilly
Paul Simon
William Henry Harrison
Max Fleischer
Richard Gere
Sylvester Stallone
Rahul Dev Burman
Program:
function: Find
inputs: Kanye West
function: Find
inputs: Jennifer Lawrence
function: SelectBetween
dependencies: 0
1
inputs: net worth
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kanye West" .  } UNION { ?e <pred:name> "Jennifer Lawrence" .  } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Jennifer Lawrence