Question: Who has a smaller net worth, Mark Wahlberg or Jennifer Lopez?
Choices:
Richard Gere
Max Fleischer
Paul Simon
Mark Wahlberg
Rahul Dev Burman
Sylvester Stallone
Jennifer Lopez
David Byrne
Simon Cowell
William Henry Harrison
Program:
function: Find
inputs: Mark Wahlberg
function: Find
inputs: Jennifer Lopez
function: SelectBetween
dependencies: 0
1
inputs: net worth
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mark Wahlberg" .  } UNION { ?e <pred:name> "Jennifer Lopez" .  } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mark Wahlberg