Question: Which one, Mark Wahlberg or Miley Cyrus, has greater net worth?
Choices:
Richard Gere
Rahul Dev Burman
James E. Reilly
Sylvester Stallone
Simon Cowell
Mark Wahlberg
Miley Cyrus
Max Fleischer
Paul Simon
William Henry Harrison
Program:
function: Find
inputs: Mark Wahlberg
function: Find
inputs: Miley Cyrus
function: SelectBetween
dependencies: 0
1
inputs: net worth
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mark Wahlberg" .  } UNION { ?e <pred:name> "Miley Cyrus" .  } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Mark Wahlberg