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