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