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