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